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 "m32_math.h" float m32_tanf (float x) __z88dk_fastcall { return m32_sinf(x)/m32_cosf(x); }
19.8
5
(translation_unit) "#include "m32_math.h"\n\nfloat m32_tanf (float x) __z88dk_fastcall\n{\n return m32_sinf(x)/m32_cosf(x);\n}\n\n" (preproc_include) "#include "m32_math.h"\n" (#include) "#include" (string_literal) ""m32_math.h"" (") """ (string_content) "m32_math.h" (") """ (function_d...
38
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 19.8, "nodes": 23, "errors": 0, "source_hash": "09eb72a3749a1e80dacc17a39cddf9baccf27838b2ac60fbe06e13a5f7cbee99", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
8,000
c
#ifndef XArray_H #define XArray_H #define XArray_ERROR 255 #include <Python.h> typedef struct XArrayCtx { PyObject* self; size_t nKeys, nCols, nRows; char* table; double* data; } XArrayCtx; typedef struct XArrayMember { XArrayCtx* ctx; size_t start; } XArrayMember; XArrayCtx* XArray_initCtx(PyObject* s...
27.18
22
(translation_unit) "#ifndef XArray_H\n#define XArray_H\n\n#define XArray_ERROR 255\n\n#include <Python.h>\n\ntypedef struct XArrayCtx {\n PyObject* self;\n size_t nKeys, nCols, nRows;\n char* table;\n double* data;\n} XArrayCtx;\n\ntypedef struct XArrayMember {\n XArrayCtx* ctx;\n size_t start;\n} XArrayMember;\n...
192
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.18, "nodes": 148, "errors": 0, "source_hash": "158c0a2885fabffe56124bb3fc73a0edc18749b15a9d13fe0c1e329573d0b93f", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,001
c
#ifndef FILTER_CPP #define FILTER_CPP #include "filter.cpp" enum radialBlurType{ ROTATE, SCALE }; #endif // !FILTER_CPP
16.29
7
(translation_unit) "#ifndef FILTER_CPP\n#define FILTER_CPP\n\n#include "filter.cpp"\nenum radialBlurType{\n ROTATE, SCALE\n};\n\n#endif // !FILTER_CPP\n" (preproc_ifdef) "#ifndef FILTER_CPP\n#define FILTER_CPP\n\n#include "filter.cpp"\nenum radialBlurType{\n ROTATE, SCALE\n};\n\n#endif" (#ifndef) "#ifndef" (i...
27
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 16.29, "nodes": 18, "errors": 0, "source_hash": "7162a47e7754d5794c0e86304970454da13895eb5f2c98be5d55f8e6d0921d56", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
8,002
c
#import <Foundation/Foundation.h> #import "cocos2d.h" @interface SZTitleScreenLayer : CCLayer + (CCScene *)scene; - (id)init; - (void)loadBackground; @end
21.14
7
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import "cocos2d.h"\n\n@interface SZTitleScreenLayer : CCLayer\n\n+ (CCScene *)scene;\n- (id)init;\n- (void)loadBackground;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundati...
50
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.14, "nodes": 33, "errors": 0, "source_hash": "5bbe09265f38aa2597e7c8ce542cb81bf8c23856e0b4ddd3d2d5d7983b14add7", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
8,003
c
/* Sigma-delta Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <std...
27.46
54
(translation_unit) "/* Sigma-delta Example \n \n This example code is in the Public Domain (or CC0 licensed, at your option.) \n \n Unless required by applicable law or agreed to in writing, this \n software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR \n CONDITIONS OF ANY KIND, either express or i...
191
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 27.46, "nodes": 112, "errors": 0, "source_hash": "315b23c874a12133e9da893609c0e896826a505eccbdee3ed3ea37f4d0dbfdcc", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,004
c
#include <assert.h> #include <stdio.h> int getAge(const char *inputString) { int age; sscanf(inputString, "%d", &age); return age; } int main() { assert(getAge("5 years old") == 5); assert(getAge("9 years old") == 9); assert(getAge("1 years old") == 1); }
22.33
12
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n\nint getAge(const char *inputString) {\n int age;\n sscanf(inputString, "%d", &age);\n return age;\n}\n\nint main() {\n assert(getAge("5 years old") == 5);\n assert(getAge("9 years old") == 9);\n assert(getAge("1 years old") == 1);\n}\n" ...
116
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.33, "nodes": 63, "errors": 0, "source_hash": "e9ac58c830466f1a13565c4a9108899067d5c8e26170760a5cd803a542a089ca", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,005
c
// // Foo+Swizzling.h // SwizzleFun // // Created by ben on 5/31/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "Foo.h" @interface Foo (Swizzling) @end
16.5
10
(translation_unit) "//\n// Foo+Swizzling.h\n// SwizzleFun\n//\n// Created by ben on 5/31/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import "Foo.h"\n\n@interface Foo (Swizzling)\n\n@end\n" (comment) "//" (comment) "// Foo+Swizzling.h" (comment) "// SwizzleFun" (comment) "//" (comment...
23
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.5, "nodes": 12, "errors": 0, "source_hash": "def5c6821adf75378750e859548ea6589c1505a939c20d0a23bd0e1f2a793ca5", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"F...
8,006
c
#ifndef SCENARIO_UTILS_CONVERTER_H_INCLUDED #define SCENARIO_UTILS_CONVERTER_H_INCLUDED #include <geometry_msgs/Quaternion.h> #include <geometry_msgs/Vector3.h> #include <tf2/transform_datatypes.h> namespace scenario_utility { inline namespace converter { geometry_msgs::Quaternion convert(geometry_msgs::Vector3 rpy)...
33.93
14
(translation_unit) "#ifndef SCENARIO_UTILS_CONVERTER_H_INCLUDED\n#define SCENARIO_UTILS_CONVERTER_H_INCLUDED\n\n#include <geometry_msgs/Quaternion.h>\n#include <geometry_msgs/Vector3.h>\n#include <tf2/transform_datatypes.h>\n\nnamespace scenario_utility\n{\ninline namespace converter\n{\n\ngeometry_msgs::Quaternion con...
68
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.93, "nodes": 42, "errors": 0, "source_hash": "bc6040d1a4862e862b47f37526cccb060871401ba6c752905ed4cb1c96b74f5b", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,007
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #ifndef _MYST_ATOMIC_H #define _MYST_ATOMIC_H #include <myst/defs.h> #include <myst/types.h> MYST_INLINE int myst_atomic_exchange(volatile int* ptr, int value) { __asm__ __volatile__("xchg %0, %1" : "=r"(value), "...
29.07
15
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#ifndef _MYST_ATOMIC_H\n#define _MYST_ATOMIC_H\n\n#include <myst/defs.h>\n#include <myst/types.h>\n\nMYST_INLINE int myst_atomic_exchange(volatile int* ptr, int value)\n{\n __asm__ __volatile__("xchg %0, %1"\n ...
93
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.07, "nodes": 52, "errors": 0, "source_hash": "dc38faeff3ba12a11709f639245b2116eb7266608d98a25f13ac14b9f2ffacff", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,008
c
#ifndef HEADER_HNS_BASE32_H #define HEADER_HNS_BASE32_H #include <stdlib.h> int hns_base32_encode( const unsigned char *data, size_t data_len, char *out, int pad ); int hns_base32_encode_hex( const unsigned char *data, size_t data_len, char *out, int pad ); int hns_base32_encode_size(const unsigned ...
22.79
34
(translation_unit) "#ifndef HEADER_HNS_BASE32_H\n#define HEADER_HNS_BASE32_H\n\n#include <stdlib.h>\n\nint\nhns_base32_encode(\n const unsigned char *data,\n size_t data_len,\n char *out,\n int pad\n);\n\nint\nhns_base32_encode_hex(\n const unsigned char *data,\n size_t data_len,\n char *out,\n int pad\n);\n\ni...
253
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 22.79, "nodes": 185, "errors": 0, "source_hash": "cb39bc6889be9cad4556f2c81af6adad0d2167763cd45a79ba8402d0bba62ac8", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,009
c
/*************************************************************** * Name: UserData.h * Purpose: Defines Node-CEF User Data Class * Author: <NAME> (<EMAIL>) * Created: 2016-05-30 * Copyright: Studio GPBeta (www.gpbeta.com) * License: ************************************************************...
27.48
84
(translation_unit) "/*************************************************************** \n * Name: UserData.h \n * Purpose: Defines Node-CEF User Data Class \n * Author: <NAME> (<EMAIL>) \n * Created: 2016-05-30 \n * Copyright: Studio GPBeta (www.gpbeta.com) \n * License: \n ***********************************...
401
12
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 27.48, "nodes": 240, "errors": 0, "source_hash": "4ba4aac5a7a88fe28c21cb5f23c94bab4938ee4bfa19b8d872e62c5b8f36869f", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,010
c
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. 2008 <NAME> This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General...
24.22
148
(translation_unit) "/*\n===========================================================================\nCopyright (C) 1999-2005 Id Software, Inc.\n 2008 <NAME>\n\nThis file is part of Quake III Arena source code.\n\nQuake III Arena source code is free software; you can redistribute it\nand/or modify it under ...
1,066
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 24.22, "nodes": 699, "errors": 0, "source_hash": "229d917972eae0de5e36f55d7a759f92e7077d5eeca347519dab2542322822bd", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,011
c
#include <analysis.h> namespace analysis { /*! \brief Discover control dependences in the program */ class ControlDependenceAnalysis : public KernelAnalysis, public PTXInstructionDependenceGraph { public: ControlDependenceAnalysis(); public: void analyze(ir::IRKernel& kernel); }; }
20.92
13
(translation_unit) "#include <analysis.h>\n\nnamespace analysis\n{\n\n/*! \brief Discover control dependences in the program */\nclass ControlDependenceAnalysis\n: public KernelAnalysis, public PTXInstructionDependenceGraph\n{\npublic:\n ControlDependenceAnalysis();\n\npublic:\n void analyze(ir::IRKernel& kernel);\n};\...
55
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.92, "nodes": 26, "errors": 0, "source_hash": "62d795790ccedb20b07e1085b93b9c76911e048cc58dd41ab2f96084f8349368", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,012
c
// // XQQClearCacheCell.h // XQQThinkProj // // Created by XQQ on 16/10/12. // Copyright © 2016年 UIP. All rights reserved. // #import <UIKit/UIKit.h> @interface XQQClearCacheCell : UITableViewCell @end
19.6
10
(translation_unit) "//\n// XQQClearCacheCell.h\n// XQQThinkProj\n//\n// Created by XQQ on 16/10/12.\n// Copyright © 2016年 UIP. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XQQClearCacheCell : UITableViewCell\n\n@end\n" (comment) "//" (comment) "// XQQClearCacheCell.h" (comment) "// XQQT...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.6, "nodes": 10, "errors": 0, "source_hash": "36f3f4cedb4457f8b3ae8ab0630cfe596352535b260ab6185b8285dad246d57e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
8,013
c
#pragma once #ifndef RESTC_CPP_HELPER_H_ #define RESTC_CPP_HELPER_H_ #include <memory> #include <string> #include <cstring> #include <boost/utility/string_ref.hpp> #include <boost/optional.hpp> #include <boost/asio.hpp> #if defined(_WIN32) || defined(_WIN64) #define strcasecmp _stricmp #define strncasecmp _strnicm...
26.92
63
(translation_unit) "#pragma once\n\n#ifndef RESTC_CPP_HELPER_H_\n#define RESTC_CPP_HELPER_H_\n\n#include <memory>\n#include <string>\n#include <cstring>\n#include <boost/utility/string_ref.hpp>\n#include <boost/optional.hpp>\n#include <boost/asio.hpp>\n\n#if defined(_WIN32) || defined(_WIN64)\n #define strcasecmp _stri...
453
27
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 26.92, "nodes": 247, "errors": 0, "source_hash": "980e75994bdd790c92436aa3b7fc6918dd1ea461d89e64fea2e47b08e27ff5e6", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,014
c
// -*- C++ -*- #ifndef ALIEN_MCGIMPL_MCGCOMPOSITEVECTOR_H #define ALIEN_MCGIMPL_MCGCOMPOSITEVECTOR_H #include <alien/utils/Precomp.h> #include <alien/core/impl/IVectorImpl.h> #include <alien/data/ISpace.h> #include "alien/kernels/mcg/MCGPrecomp.h" BEGIN_MCGINTERNAL_NAMESPACE class CompositeVectorInternal; END_MCGI...
29.95
37
(translation_unit) "// -*- C++ -*-\n#ifndef ALIEN_MCGIMPL_MCGCOMPOSITEVECTOR_H\n#define ALIEN_MCGIMPL_MCGCOMPOSITEVECTOR_H\n\n#include <alien/utils/Precomp.h>\n#include <alien/core/impl/IVectorImpl.h>\n#include <alien/data/ISpace.h>\n\n#include "alien/kernels/mcg/MCGPrecomp.h"\n\nBEGIN_MCGINTERNAL_NAMESPACE\n\nclass Co...
264
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.95, "nodes": 151, "errors": 0, "source_hash": "06f06e2b7b0ca1ec902fdef2301722a37d287bfa24e91884aded25819ec8fbe2", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,015
c
//.............................................................................. // // This file is part of the AXL library. // // AXL is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/axl/...
30
64
(translation_unit) "//..............................................................................\n//\n// This file is part of the AXL library.\n//\n// AXL is distributed under the MIT license.\n// For details see accompanying license.txt file,\n// the public copy of which is also available at:\n// http://tibbo...
419
24
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 30.0, "nodes": 230, "errors": 0, "source_hash": "05e987fa2ee8ceffcd800ecb482aed1b7baff0eff636be95dd83685f88f7d42c", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,016
c
/**@file * This file is part of the utilities library; it contains the implementation of * mkjmp() and sigmkjmp(). * * @see lely/util/mkjmp.h * * @copyright 2018-2020 Lely Industries N.V. * * @author <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
29.4
171
(translation_unit) "/**@file\n * This file is part of the utilities library; it contains the implementation of\n * mkjmp() and sigmkjmp().\n *\n * @see lely/util/mkjmp.h\n *\n * @copyright 2018-2020 Lely Industries N.V.\n *\n * @author <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "Licens...
1,040
45
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 29.4, "nodes": 706, "errors": 0, "source_hash": "b8631aee4c6e57f5e7c7d62b8e6384c5a8b21ae2ec156579b439325b5cdc66d8", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
8,017
c
/* * Copyright 2021 <NAME>. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
35.17
40
(translation_unit) "/*\n * Copyright 2021 <NAME>. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U...
244
16
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 35.17, "nodes": 165, "errors": 0, "source_hash": "7edbfaa4c503d2df154bbaa234f68284ae368156c67463e9c545c5a2a2d1c269", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ENV_LO...
8,018
c
1350 // Mutual exclusion spin locks. 1351 1352 #include "types.h" 1353 #include "defs.h" 1354 #include "param.h" 1355 #include "x86.h" 1356 #include "mmu.h" 1357 #include "proc.h" 1358 #include "spinlock.h" 1359 1360 extern int use_console_lock; 1361 1362 void 1363 initlock(struct spinlock *lock, char *name) 1364 { ...
20.82
150
(translation_unit) "1350 // Mutual exclusion spin locks.\n1351 \n1352 #include "types.h"\n1353 #include "defs.h"\n1354 #include "param.h"\n1355 #include "x86.h"\n1356 #include "mmu.h"\n1357 #include "proc.h"\n1358 #include "spinlock.h"\n1359 \n1360 extern int use_console_lock;\n1361 \n1362 void\n1363 initlock(struct sp...
876
50
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 20.82, "nodes": 582, "errors": 0, "source_hash": "efdd6c363da5b7b8cf308e6f5c91c7b864c307226a15e43c4f44578bf4a6a30a", "categorized_nodes": 437}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "1350 // Mutua...
8,019
c
/* * RTMPE encryption utilities * Copyright (c) 2012 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
36.2
61
(translation_unit) "/*\n * RTMPE encryption utilities\n * Copyright (c) 2012 <NAME>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * ver...
119
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.2, "nodes": 84, "errors": 0, "source_hash": "6ebb8e6150250e901b379b56ab7eac94cfdc495a7aab779455cccd7ac0dabd25", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
8,020
c
/* * CPC-XT CAN Interface Kernel Driver * * Copyright (C) 2000-2009 EMS Dr. <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published * by the Free Software Foundation; version 2 of the License. * * This program is distri...
38.67
72
(translation_unit) "/*\n * CPC-XT CAN Interface Kernel Driver\n *\n * Copyright (C) 2000-2009 EMS Dr. <NAME>\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published\n * by the Free Software Foundation; version 2 of the License.\n...
283
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 38.67, "nodes": 233, "errors": 0, "source_hash": "44c68bad86fc69a86e7134dd6390994fe25c2aefbbbd7a6e2a40d1dce7af0b61", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,021
c
#ifndef FILEMANAGER_H #define FILEMANAGER_H /* AUTHOR : <NAME> (angelo12 AT vt DOT edu) PROJECT : Hybrid Rendering Engine LICENSE : This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) DATE : 2018-11-19 PURPOSE : Abstract file loading and checking from scene...
34.56
18
(translation_unit) "#ifndef FILEMANAGER_H\n#define FILEMANAGER_H\n\n/*\nAUTHOR : <NAME> (angelo12 AT vt DOT edu)\nPROJECT : Hybrid Rendering Engine \nLICENSE : This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)\nDATE : 2018-11-19\nPURPOSE : Abstract file loa...
58
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.56, "nodes": 32, "errors": 0, "source_hash": "50216e42767896d283c29eea53664547cbd2381524bb15f268d0662b0b654726", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,022
c
/***** I/O Manager Stream Driver Interface *****/ #ifndef IOMStream_Interface #define IOMStream_Interface /************************ ***** Components ***** ************************/ #include "IOMDriver.h" /************************** ***** Declarations ***** **************************/ class IOMStreamProduc...
31.4
133
(translation_unit) "/***** I/O Manager Stream Driver Interface *****/\n#ifndef IOMStream_Interface\n#define IOMStream_Interface\n\n/************************\n ***** Components *****\n ************************/\n\n#include "IOMDriver.h"\n\n/**************************\n ***** Declarations *****\n ******************...
959
38
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 31.4, "nodes": 630, "errors": 0, "source_hash": "8af539218fcecf8d35e73122a1e18ed587c0df253a3c8a7fb8a4878b78a6f582", "categorized_nodes": 397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,023
c
/// <introduction> /// doubly linked list /// </introduction> #pragma once #include <stdint.h> template<typename T> class LinkedList { public: class Node { friend class LinkedList; private: Node* prev_; Node* next_; LinkedList* container_; public: T data; public: Node() : prev_(nullptr), next_(nullp...
24.44
52
(translation_unit) "/// <introduction>\n/// doubly linked list\n/// </introduction>\n#pragma once\n#include <stdint.h>\n\ntemplate<typename T>\nclass LinkedList\n{\npublic:\n class Node\n {\n friend class LinkedList;\n private:\n Node* prev_;\n Node* next_;\n LinkedList* container_;\n\n public:\n T data;\n\n publi...
537
16
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.44, "nodes": 328, "errors": 0, "source_hash": "2ada381424c7fe940826c259f30af77b03776a42e78d977bb812c5ce061ca8f0", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,024
c
#include <phpcpp.h> #include "../include/aspose.h" #include "../include/collection.h" #include "../include/aspose_php.h" #ifndef MASTERSLIDECOLLECTION_H #define MASTERSLIDECOLLECTION_H using namespace Aspose::Slides; namespace AsposePhp { class MasterSlideCollection : public AsposeObjectWrapper<IMasterSlideCol...
39.11
19
(translation_unit) "#include <phpcpp.h>\n#include "../include/aspose.h"\n#include "../include/collection.h"\n#include "../include/aspose_php.h"\n\n#ifndef MASTERSLIDECOLLECTION_H\n#define MASTERSLIDECOLLECTION_H\n\nusing namespace Aspose::Slides;\n\nnamespace AsposePhp {\n\n class MasterSlideCollection : public Asp...
166
16
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.11, "nodes": 95, "errors": 0, "source_hash": "4bcd3c8275e28b4a7da53c8f7056e7dffee4ddbe37917cff494757ae43693b74", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,025
c
#ifndef _ZFI_ZFMainEntry_sys_iOS_h_ #define _ZFI_ZFMainEntry_sys_iOS_h_ #include "ZFCore.h" #include "ZFImpl_sys_iOS_ZF_impl.h" /* * main entry steps: * -# ensure your UIApplication.keyWindow has been setup properly * during application:didFinishLaunchingWithOptions: */ #if ZF_ENV_sys_iOS #import <UIKit/UIKit....
33.5
18
(translation_unit) "#ifndef _ZFI_ZFMainEntry_sys_iOS_h_\n#define _ZFI_ZFMainEntry_sys_iOS_h_\n\n#include "ZFCore.h"\n#include "ZFImpl_sys_iOS_ZF_impl.h"\n\n/*\n * main entry steps:\n * -# ensure your UIApplication.keyWindow has been setup properly\n * during application:didFinishLaunchingWithOptions:\n */\n#if ZF_ENV...
67
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.5, "nodes": 49, "errors": 0, "source_hash": "d005745219ec829b6f9301cf927f761d735914aa699c2afd11e28da0e4e915c6", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,026
c
/* Copyright (c) 2018-2020, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file network_sys.c * \brief Subsystem object for networking setup. **/ #include "orconfig.h" #include "lib/subsys/subsys.h" #include "lib/net/network_sys.h" #include "lib/net/resolve.h" #include "lib/net/socket....
21.13
39
(translation_unit) "/* Copyright (c) 2018-2020, The Tor Project, Inc. */\n/* See LICENSE for licensing information */\n\n/**\n * \file network_sys.c\n * \brief Subsystem object for networking setup.\n **/\n\n#include "orconfig.h"\n#include "lib/subsys/subsys.h"\n#include "lib/net/network_sys.h"\n#include "lib/net/resol...
161
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 21.13, "nodes": 92, "errors": 0, "source_hash": "1a760c796e523af0da7b4ae9c52841934fc9c061ffc96077bd529ca1b4d022ce", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,027
c
// // BaseViewController.h // GCYBase // // Created by gaochongyang on 2018/4/19. // #import <UIKit/UIKit.h> @interface BaseViewController : UIViewController @end
17.44
9
(translation_unit) "//\n// BaseViewController.h\n// GCYBase\n//\n// Created by gaochongyang on 2018/4/19.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BaseViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// BaseViewController.h" (comment) "// GCYBase" (comment) "//" (comment) "// C...
18
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.44, "nodes": 9, "errors": 0, "source_hash": "9f991d4c4b0944f6471fdcfe224f6748069db0ed08db8d0ab65b4e30145acab6", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
8,028
c
/** * @file include/retdec/bin2llvmir/optimizations/types_propagator/types_propagator.h * @brief Data type propagation. * @copyright (c) 2020 Avast Software, licensed under the MIT license */ #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_TYPES_PROPAGATOR_TYPES_PROPAGATOR_H #define RETDEC_BIN2LLVMIR_OPTIMIZATIONS_TYPES_PROPA...
28.81
58
(translation_unit) "/**\n* @file include/retdec/bin2llvmir/optimizations/types_propagator/types_propagator.h\n* @brief Data type propagation.\n* @copyright (c) 2020 Avast Software, licensed under the MIT license\n*/\n\n#ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_TYPES_PROPAGATOR_TYPES_PROPAGATOR_H\n#define RETDEC_BIN2LLVMI...
421
22
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 28.81, "nodes": 277, "errors": 0, "source_hash": "aa7316a3f3d646d94cc45a7b928984ba67c8f8265938fcd1a931137048cf05de", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,029
c
//! @file //! //! Copyright (c) Memfault, Inc. //! See License.txt for details //! //! A Software Watchdog implementation backed by the Zephyr timer subsystem //! //! The implementation uses the k_timer_ module. When the timer expires, //! the implementation will assert so a coredump of the system state is captured. #...
34.05
37
(translation_unit) "//! @file\n//!\n//! Copyright (c) Memfault, Inc.\n//! See License.txt for details\n//!\n//! A Software Watchdog implementation backed by the Zephyr timer subsystem\n//!\n//! The implementation uses the k_timer_ module. When the timer expires,\n//! the implementation will assert so a coredump of the ...
221
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.05, "nodes": 120, "errors": 0, "source_hash": "d3d15eaf26b6cc7c420993d038628599b760942de8e2fb21216732d4cc8c6218", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,030
c
/* * Copyright (c) 2019 <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 of con...
25.3
248
(translation_unit) "/*\n * Copyright (c) 2019 <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 copyright\n *...
1,785
1
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 25.3, "nodes": 1006, "errors": 0, "source_hash": "f685e82f4da198d3191b1fc59ab8934bd5c89c818b98c41b14c6c1c89f3b9bc9", "categorized_nodes": 742}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,031
c
// // GA-SDK-CPP // Copyright 2018 GameAnalytics C++ SDK. All rights reserved. // #pragma once #include <sqlite3.h> #include <vector> #include "rapidjson/document.h" #include "GameAnalytics.h" #include <mutex> #include <cstdlib> namespace gameanalytics { namespace store { class GAStore { ...
39.18
65
(translation_unit) "//\n// GA-SDK-CPP\n// Copyright 2018 GameAnalytics C++ SDK. All rights reserved.\n//\n\n#pragma once\n\n#include <sqlite3.h>\n#include <vector>\n#include "rapidjson/document.h"\n#include "GameAnalytics.h"\n#include <mutex>\n#include <cstdlib>\n\nnamespace gameanalytics\n{\n namespace store\n {...
577
11
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 39.18, "nodes": 325, "errors": 0, "source_hash": "2f3725907ad9c1b8cbe7942041a6f73372d7b1948d34948ce8285d984e2ba09f", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,032
c
/* ------------------------------------------ * Copyright (c) 2018, Synopsys, Inc. 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 copyr...
37.5
103
(translation_unit) "/* ------------------------------------------\n * Copyright (c) 2018, Synopsys, Inc. All rights reserved.\n\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n\n * 1) Redistributions of source code m...
610
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 37.5, "nodes": 360, "errors": 0, "source_hash": "c88b4886045f0e17c5c833a1a3d2d219e35aa2adcdc4671011b5abd457729e08", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,033
c
#ifndef CAIRO_VERSION_H #define CAIRO_VERSION_H #define CAIRO_VERSION_MAJOR 1 #define CAIRO_VERSION_MINOR 8 #define CAIRO_VERSION_MICRO 6 #endif
23.17
6
(translation_unit) "#ifndef CAIRO_VERSION_H\n#define CAIRO_VERSION_H\n\n#define CAIRO_VERSION_MAJOR 1\n#define CAIRO_VERSION_MINOR 8\n#define CAIRO_VERSION_MICRO 6\n\n#endif\n" (preproc_ifdef) "#ifndef CAIRO_VERSION_H\n#define CAIRO_VERSION_H\n\n#define CAIRO_VERSION_MAJOR 1\n#define CAIRO_VERSION_MINOR 8\n#define CA...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.17, "nodes": 19, "errors": 0, "source_hash": "b7b641558b2c511b1222ff37917b67a4a0f70c339a4fb3bd04bdb86023d564c2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CA...
8,034
c
/*============================================================================= FrKeyword.h: List of fluscript keywords. Copyright Jun.2016 <NAME>. =============================================================================*/ // It's messy a little. Store source macro. // Its here since some keywords are C++...
20.01
71
(translation_unit) "/*=============================================================================\n FrKeyword.h: List of fluscript keywords.\n Copyright Jun.2016 <NAME>.\n=============================================================================*/\n\n// It's messy a little. Store source macro.\n// Its here s...
351
1
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 20.01, "nodes": 225, "errors": 0, "source_hash": "7f33ed219f6b567d693e9ebe66f5fb7855668efea3a14c73ea06141648ddfd5e", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,035
c
/** ****************************************************************************** * @file ctimer.h * @author YANDLD * @version V3.0.0 * @date 2016.05.31 * @brief www.beyondcore.net http://upcmcu.taobao.com ****************************************************************************** */ #if...
34.84
49
(translation_unit) "/**\n ******************************************************************************\n * @file ctimer.h\n * @author YANDLD\n * @version V3.0.0\n * @date 2016.05.31\n * @brief www.beyondcore.net http://upcmcu.taobao.com \n ************************************************************...
284
1
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 34.84, "nodes": 219, "errors": 0, "source_hash": "e37265a68c12a4fc9f97f9d88db5c10bfa270bac3225c053c18ccf6d5d99d933", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __CH_L...
8,036
c
#ifndef DEMO_H #define DEMO_H #include "image.h" #endif
13
4
(translation_unit) "#ifndef DEMO_H\n#define DEMO_H\n\n#include "image.h"\n\n#endif\n" (preproc_ifdef) "#ifndef DEMO_H\n#define DEMO_H\n\n#include "image.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "DEMO_H" (preproc_def) "#define DEMO_H\n" (#define) "#define" (identifier) "DEMO_H" (prepr...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 13.0, "nodes": 10, "errors": 0, "source_hash": "d394dc15acb427784f44dd9ab35895fa988bf9ca2870951f9093387ec5edc8bc", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DEM...
8,037
c
/* * Copyright (c) 2014, <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, p...
32.89
107
(translation_unit) "/*\n * Copyright (c) 2014, <NAME> <<EMAIL>>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to u...
844
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 32.89, "nodes": 486, "errors": 0, "source_hash": "8e2d652a0e53f689d4a046a0eadc0fa2f84acd1d97fa2d38f91534f7d222f0d2", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,038
c
#ifndef __SIMPLE_MM_H_ #define __SIMPLE_MM_H_ void * malloc_simple(int size); void free_simple(char * puntero); int getTotalMem_Simple(); int getUsedMem_Simple(); #endif
23.29
7
(translation_unit) "#ifndef __SIMPLE_MM_H_\n#define __SIMPLE_MM_H_\n\nvoid * malloc_simple(int size);\n\nvoid free_simple(char * puntero);\n\nint getTotalMem_Simple();\n\nint getUsedMem_Simple();\n\n#endif" (preproc_ifdef) "#ifndef __SIMPLE_MM_H_\n#define __SIMPLE_MM_H_\n\nvoid * malloc_simple(int size);\n\nvoid free...
50
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.29, "nodes": 37, "errors": 0, "source_hash": "a5ebc6a804ce2727027883eac6b12e9762dcd86d579a82a241b37bf04946a949", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,039
c
#ifndef VECTORNAV_H #define VECTORNAV_H #include "vnbool.h" #include "vnenum.h" #include "vnutil.h" #include "vnupackf.h" #endif
14.44
9
(translation_unit) "#ifndef VECTORNAV_H \n#define VECTORNAV_H \n \n#include "vnbool.h" \n#include "vnenum.h" \n#include "vnutil.h" \n#include "vnupackf.h" \n \n#endif \n" (preproc_ifdef) "#ifndef VECTORNAV_H \n#define VECTORNAV_H \n \n#include "vnbool.h" \n#include "vnenum.h" \n#include "vnutil.h" \n#include "vnupack...
32
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 14.44, "nodes": 19, "errors": 0, "source_hash": "3f011adef73cf6727f03c9d68b12c1a2c8eb616c2426f0786de84c948ec8ae97", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef V...
8,040
c
#include <stdio.h> #include <string.h> #define MAX_BUF 1024 int main () { /* Zero out the array */ int letter_frequency[26] = {0}; int len = 0, i, ch; char buf[MAX_BUF]; while((ch = getchar()) != EOF && len < MAX_BUF){ buf[len] = ch; len++; } do { if(buf[len] >= 65 && buf[len] <= 90){ ...
23.04
27
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#define MAX_BUF 1024\n\nint main () {\n\n /* Zero out the array */\n int letter_frequency[26] = {0};\n int len = 0, i, ch;\n char buf[MAX_BUF];\n\n while((ch = getchar()) != EOF && len < MAX_BUF){\n buf[len] = ch;\n len++;\n }\n \n do {\n if(...
259
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.04, "nodes": 155, "errors": 0, "source_hash": "73ceda44b8049dd73376dbea83118aabdba66e187fc2d8a97cc0de067aeed115", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,041
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "composewidget.h" #include "tweetdraftswidget.h" #include "tweettemplateswidget.h" #include "settingsdialog.h" #include "toast.h" #include "datastore.h" #include "jsonserializer.h" #include "settingsmanager.h" #include "twitterapiclient.h" #inc...
30.72
61
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n\n#include "composewidget.h"\n#include "tweetdraftswidget.h"\n#include "tweettemplateswidget.h"\n#include "settingsdialog.h"\n#include "toast.h"\n#include "datastore.h"\n#include "jsonserializer.h"\n#include "settingsmanager.h"\n#...
424
5
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.72, "nodes": 273, "errors": 0, "source_hash": "99107bc7621756f30338392023bb4affe03d261df94264807d0829f7b2268cf9", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,042
c
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 RDK Management * * 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 cop...
33.33
90
(translation_unit) "/*\n * If not stated otherwise in this file or this component's LICENSE file the\n * following copyright and licenses apply:\n *\n * Copyright 2020 RDK Management\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the Licen...
651
43
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 33.33, "nodes": 360, "errors": 0, "source_hash": "6b81b237e803db6952269a65116a555d7ae954fecd2e1cf223a86a1d80c6b287", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,043
c
#ifndef __REVERSESTRINGNODE_H__ #define __REVERSESTRINGNODE_H__ // TODO #endif /*__REVERSESTRINGNODE_H__*/
25.75
4
(translation_unit) "#ifndef __REVERSESTRINGNODE_H__\n#define __REVERSESTRINGNODE_H__\n\n// TODO\n\n#endif /*__REVERSESTRINGNODE_H__*/\n" (preproc_ifdef) "#ifndef __REVERSESTRINGNODE_H__\n#define __REVERSESTRINGNODE_H__\n\n// TODO\n\n#endif" (#ifndef) "#ifndef" (identifier) "__REVERSESTRINGNODE_H__" (prepr...
10
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.75, "nodes": 7, "errors": 0, "source_hash": "590012283d95e749d26b2b8183faa6e04b2328a063190b6377475243dbf9a746", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __R...
8,044
c
/******************************************************* * Data buffer class -- header file * * * * Author: Ferry "Wyz" Timmers * * * * Date: 15:29 23-8-2012 ...
35.32
63
(translation_unit) "/*******************************************************\n * Data buffer class -- header file *\n * *\n * Author: Ferry "Wyz" Timmers *\n * *\n * Date: 1...
332
9
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.32, "nodes": 181, "errors": 0, "source_hash": "e8f209bca831014f22fd6e0294db643403aa2115a59c68ce2bb460926267ea56", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,045
c
/** * @file alignedallocator.h * @brief * @author <NAME> (<EMAIL>) * @date 2001-12-25 * @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved. * @details */ #ifndef _O3D_ALIGNEDALLOCATOR_H #define _O3D_ALIGNEDALLOCATOR_H #include "memorydbg.h" namespace o3d { /** * @brief Aligned allocato...
32.88
78
(translation_unit) "/**\n * @file alignedallocator.h\n * @brief \n * @author <NAME> (<EMAIL>)\n * @date 2001-12-25\n * @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.\n * @details \n */\n\n#ifndef _O3D_ALIGNEDALLOCATOR_H\n#define _O3D_ALIGNEDALLOCATOR_H\n\n#include "memorydbg.h"\n\nnamespace o3d...
577
24
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 32.88, "nodes": 323, "errors": 0, "source_hash": "ee53efe3a6ebd3e5e3c1ebeecb65df2562f3224cdc85b0a05ff4b66035f1da28", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,046
c
/** * @file [BlockInfo.h] * @brief 关联关系及数据引用的管理 * @author <Terry> * @date <2017/06/03> * @version <v1.0> * @note * */ #ifndef BLOCKINFO_H #define BLOCKINFO_H #ifdef __cplusplus #if __cplusplus extern "C"{ #endif #endif /* __cplusplus */ #define IO_SIGINAL_BLOCK 0x1 #define CMD_BLOCK 0x2 #defin...
16.49
105
(translation_unit) "/**\n * @file [BlockInfo.h]\n * @brief 关联关系及数据引用的管理\n * @author <Terry>\n * @date <2017/06/03>\n * @version <v1.0>\n * @note\n *\n */\n\n#ifndef BLOCKINFO_H\n#define BLOCKINFO_H\n\n#ifdef __cplusplus\n#if __cplusplus\nextern "C"{\n#endif\n#endif /* __cplusplus */\n\n\n#define IO_SIGINAL...
203
2
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 16.49, "nodes": 149, "errors": 0, "source_hash": "1036d61a63e3c5b507ed404bba222bfd9cd30bd6a275525a899f11eee89fe83a", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "ine BLOCKINFO_...
8,047
c
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2018, Intel Corporation * Copied from reset-sunxi.c */ #include <linux/err.h> #include <linux/io.h> #include <linux/init.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/platform_device.h> #include <linux/reset-controller.h> #include <linu...
27.29
72
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n/*\n * Copyright (C) 2018, Intel Corporation\n * Copied from reset-sunxi.c\n */\n\n#include <linux/err.h>\n#include <linux/io.h>\n#include <linux/init.h>\n#include <linux/of.h>\n#include <linux/of_address.h>\n#include <linux/platform_device.h>\n#include <linux/re...
487
3
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 27.29, "nodes": 306, "errors": 0, "source_hash": "46c41a11970a8b8a5a4b3b1b13b17f0e28c97339e77fceeb814852dd296d3d97", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,048
c
#ifndef NVIM_TAG_H #define NVIM_TAG_H #include "nvim/ex_cmds_defs.h" #include "nvim/types.h" /* * Values for do_tag(). */ #define DT_TAG 1 // jump to newer position or same tag again #define DT_POP 2 // jump to older position #define DT_NEXT 3 // jump to next match of same tag #define DT_PREV 4 //...
37.35
48
(translation_unit) "#ifndef NVIM_TAG_H\n#define NVIM_TAG_H\n\n#include "nvim/ex_cmds_defs.h"\n#include "nvim/types.h"\n\n/*\n * Values for do_tag().\n */\n#define DT_TAG 1 // jump to newer position or same tag again\n#define DT_POP 2 // jump to older position\n#define DT_NEXT 3 // jump to next match of sa...
162
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 37.35, "nodes": 134, "errors": 0, "source_hash": "1c162678098e569dce5305e54bc2e620f1c495cc85f792640810a020f5125370", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,049
c
#include "hal/HALBase.h" #include "hal/DIO.h" #include "hal/PWM.h" #include "hal/Notifier.h" #include "stdio.h" #include "stdlib.h" #include "pthread.h" #include "ntcore_c.h" #include "hal/AnalogInput.h" #include "hal/AnalogOutput.h" #include "hal/Accelerometer.h" #include "hal/Interrupts.h" #include ...
26.25
160
(translation_unit) "#include "hal/HALBase.h" \n#include "hal/DIO.h" \n#include "hal/PWM.h" \n#include "hal/Notifier.h" \n \n#include "stdio.h" \n#include "stdlib.h" \n#include "pthread.h" \n \n#include "ntcore_c.h" \n \n#include "hal/AnalogInput.h" \n#include "hal/AnalogOutput.h" \n#include "hal/Accelerometer.h" \n#inc...
1,207
0
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 26.25, "nodes": 674, "errors": 0, "source_hash": "428743280f0f092af2f42fb738c864128dbc51fbfc120d3d92c5b3b18bbd2a80", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,050
c
// // UIImage+Blur.h // Items4Dota2 // // Created by Kael on 16/4/8. // Copyright © 2016年 Kael. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Blur) -(UIImage *)boxblurImageWithBlur:(CGFloat)blur; @end
19.64
11
(translation_unit) "//\n// UIImage+Blur.h\n// Items4Dota2\n//\n// Created by Kael on 16/4/8.\n// Copyright © 2016年 Kael. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (Blur)\n-(UIImage *)boxblurImageWithBlur:(CGFloat)blur;\n@end\n" (comment) "//" (comment) "// UIImage+Blur.h" (com...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.64, "nodes": 25, "errors": 0, "source_hash": "39c599fb2bd25ca38bbf4d3d1ea95418d1dc97efc8f01c4affbbbc4e861b5d63", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
8,051
c
// Name: <NAME> // Seneca Student ID: 134465160 // Seneca email: <EMAIL> // Date of completion: 2018-09-28 // // I confirm that the content of this file is created by me, // with the exception of the parts provided to me by my professor. #ifndef PAIR_H #define PAIR_H template <typename A, typename B> class Pair { A...
18.62
26
(translation_unit) "// Name: <NAME>\n// Seneca Student ID: 134465160\n// Seneca email: <EMAIL>\n// Date of completion: 2018-09-28\n//\n// I confirm that the content of this file is created by me,\n// with the exception of the parts provided to me by my professor.\n\n#ifndef PAIR_H\n#define PAIR_H\n\ntemplate <typename ...
145
15
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.62, "nodes": 68, "errors": 0, "source_hash": "b203bf05af4b33671013a54c0f319908ddc7bd6336fdd5ce20bf0cff9f672075", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,052
c
#define _GNU_SOURCE #include <mpi.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <unistd.h> #include <sys/stat.h> #include <sys/time.h> #include <time.h> #include <execinfo.h> #include <sys/resource.h> #include <utmpx.h> #ifdef USE_NVTX #include <cuda_pr...
35.48
190
(translation_unit) "#define _GNU_SOURCE\n#include <mpi.h>\n#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdarg.h>\n#include <string.h>\n#include <unistd.h>\n#include <sys/stat.h>\n#include <sys/time.h>\n#include <time.h>\n#include <execinfo.h> \n#include <sys/resource.h>\n#include <utmpx.h>\...
1,603
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 35.48, "nodes": 1074, "errors": 0, "source_hash": "cb4344f195f10a180f497e57b3a47f6022001763ee2180f1ec2abe0d928c1878", "categorized_nodes": 592}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
8,053
c
#include "ds.h" void tree_print_level_zigzag(treenode *root) { if (!root) { printf("null\n"); return; } int get_from_left = 1; int cur_level = 1; int next_level = 0; stack *s1 = stack_create(); stack *s2 = stack_create(); #define PUSH(s, x) stack_push(s, (long)(x)) #define...
24.69
54
(translation_unit) "#include "ds.h"\n\nvoid tree_print_level_zigzag(treenode *root)\n{\n if (!root) {\n printf("null\n");\n return;\n }\n\n int get_from_left = 1;\n int cur_level = 1;\n int next_level = 0;\n\n stack *s1 = stack_create();\n stack *s2 = stack_create();\n#define PUSH(s, ...
438
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.69, "nodes": 251, "errors": 0, "source_hash": "19e8df6b8217d09e145acf6f83093477ab20c10ff19cdad798fadf6902dbc1ef", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,054
c
#pragma once #include "motiondetector.h" // alpr #include "helper-net.h" using namespace alpr; namespace openalprnet { public ref class AlprMotionDetectionNet : IDisposable { public: AlprMotionDetectionNet() : m_motionDetector(new MotionDetector()) { } void AlprMotionDetectionNet::ResetMotionDetection(Bi...
31.02
41
(translation_unit) "#pragma once\n\n#include "motiondetector.h" // alpr\n#include "helper-net.h"\n\nusing namespace alpr;\n\nnamespace openalprnet\n{\n public ref class AlprMotionDetectionNet : IDisposable {\n public:\n AlprMotionDetectionNet() : m_motionDetector(new MotionDetector())\n {\n\n }\n\n void AlprMotionD...
365
26
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.02, "nodes": 209, "errors": 0, "source_hash": "4e75d006461d596b645d007385e85f4021dac9230ec8e6041508a32ca87bf05b", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,055
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "defs.h" #include "misc.h" #include "mem.h" #include "buffer.h" #include "argparse.h" static void RandIfExtra(uint8_t value, char *bases) { if(value == 'A' || value == 'C' || value == 'G' || value == 'T') { putchar(value); return; } pu...
28.67
57
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "defs.h"\n#include "misc.h"\n#include "mem.h"\n#include "buffer.h"\n#include "argparse.h"\n\nstatic void RandIfExtra(uint8_t value, char *bases)\n{\n if(value == 'A' || value == 'C' || value == 'G' || value == 'T')\n {\n put...
524
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.67, "nodes": 313, "errors": 0, "source_hash": "7a3ae6be569c80eade09a4b197906108c0ae253430e7d53af54f15c36689eb8f", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,056
c
#pragma once #include "../Framework.h" // A type representing a 2D floating-point vector struct Vec { float x, y; Vec() { x = y = 0; } Vec(float x, float y) { this->x = x; this->y = y; } Vec(float both) { this->x = both; this->y = both; } Vec(ImVec2 imVec) { this->x = imVec.x; this->y = imVec.y; ...
25.82
220
(translation_unit) "#pragma once\n#include "../Framework.h"\n\n// A type representing a 2D floating-point vector\nstruct Vec {\n float x, y;\n\n Vec() {\n x = y = 0;\n }\n\n Vec(float x, float y) { this->x = x; this->y = y; }\n\n Vec(float both) {\n this->x = both;\n this->y = both;\n }\n\n Vec(ImVec2 imVec) {\n th...
2,633
59
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 25.82, "nodes": 1703, "errors": 0, "source_hash": "fe73cae2eeb4488f9d0d31297e91d79d66b2cfd9ad70e052fa6aa0389612b2c7", "categorized_nodes": 1256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
8,057
c
#include <stdio.h> int f(int input2) { if(input2==3) return 1; if(input2==5) return 2; if(input2==10||input2==11) return 3; if(input2==12&&input2==13) return 4; // unreachable if(!(input2==14)) return 5; return 100; } int main() { int input,output; while(1) { scanf("%d",&input)...
15.7
23
(translation_unit) "#include <stdio.h>\n\nint f(int input2) {\n if(input2==3)\n return 1;\n if(input2==5)\n return 2;\n if(input2==10||input2==11)\n return 3;\n if(input2==12&&input2==13)\n return 4; // unreachable\n if(!(input2==14))\n return 5;\n return 100;\n}\n\nint main() {\n int input,output...
172
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.7, "nodes": 100, "errors": 0, "source_hash": "72fc4d52b3ebc3affc7459a7da88b75e2aa7a8a7902b9c57df470720f27a5e2b", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,058
c
/* Generated by RuntimeBrowser. */ @protocol NEExtensionAppProxyProviderProtocol <NEExtensionTunnelProviderProtocol> @required - (void)setDelegateInterface:(unsigned int)arg1; - (void)setInitialFlowDivertControlSocket:(NSFileHandle *)arg1; @end
34.14
7
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol NEExtensionAppProxyProviderProtocol <NEExtensionTunnelProviderProtocol>\n\n@required\n\n- (void)setDelegateInterface:(unsigned int)arg1;\n- (void)setInitialFlowDivertControlSocket:(NSFileHandle *)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeB...
50
8
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.14, "nodes": 33, "errors": 0, "source_hash": "987618683b2cc47ae3f62350dcc0ee8848bb5fd2197ce1ed4b871055707485a9", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol NEExten...
8,059
c
#pragma once #include "structs.h" #include <windows.h> #include <vector> #include <string> #include <tchar.h> #include "variable.h" #define HX_STARTENTRY 0x7E #define HX_ENDENTRY 0x7B #define ID_STRINGL 0 #define ID_TRANSFORM 1 #define ID_FLOAT 2 #define ID_STRING 3 #define ID_BOOL 4 #defi...
24.03
105
(translation_unit) "#pragma once \n \n#include "structs.h" \n#include <windows.h> \n#include <vector> \n#include <string> \n#include <tchar.h> \n#include "variable.h" \n \n#define HX_STARTENTRY 0x7E \n#define HX_ENDENTRY 0x7B \n \n#define ID_STRINGL 0 \n#define ID_TRANSFORM 1 \n#define ID_FLOAT 2 \n#define ID_ST...
626
24
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 24.03, "nodes": 428, "errors": 0, "source_hash": "dc9e6b2eb17cf0ce60d10dcad7bf45eee1ea61a89b14f6ffcf3a8eff8826ec85", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
8,060
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-IEs" * found in "asn.1/Information Element Definitions.asn1" * `asn1c -pdu=all -fcompound-names -fno-include-deps -findirect-choice -gen-PER -D src` */ #ifndef _Ngap_AuthenticatedIndication_H_ #define _Ngap_AuthenticatedIndicati...
37.52
46
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NGAP-IEs"\n * found in "asn.1/Information Element Definitions.asn1"\n * `asn1c -pdu=all -fcompound-names -fno-include-deps -findirect-choice -gen-PER -D src`\n */\n\n#ifndef _Ngap_AuthenticatedIndication_H_\n#define...
135
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 37.52, "nodes": 99, "errors": 0, "source_hash": "50df2cf9b4c8257330d74d0d31a07bdc98834e3d1e7b528bbbb770bbc23929ba", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
8,061
c
// Axel '0vercl0k' Souchet - February 20 2020 #pragma once #include <windows.h> // // Ghetto version of base::win::ScopedHandle: // https://cs.chromium.org/chromium/buildtools/gn/src/base/win/scoped_handle.h // template <typename HandleTy, typename DeleterTy> class Scoped_t { private: HandleTy Handle_; public: ...
27.38
61
(translation_unit) "// Axel '0vercl0k' Souchet - February 20 2020\n#pragma once\n\n#include <windows.h>\n\n//\n// Ghetto version of base::win::ScopedHandle:\n// https://cs.chromium.org/chromium/buildtools/gn/src/base/win/scoped_handle.h\n//\n\ntemplate <typename HandleTy, typename DeleterTy>\nclass Scoped_t\n{\nprivate...
444
28
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.38, "nodes": 233, "errors": 0, "source_hash": "bbc0cb1bb6e21abd8be9b3a7b0f77ccb1b10cf1bde64c70f9482f6bbd1abb09f", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,062
c
/* * Copyright (C) 2018, ZhaoZhenge, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
30.62
90
(translation_unit) "/*\n * Copyright (C) 2018, ZhaoZhenge, All Rights Reserved\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * ht...
128
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 30.62, "nodes": 73, "errors": 0, "source_hash": "ef067e311390d95632831edb8df976ea2c6fd97f7465a9f525d1b816251066db", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,063
c
// slang-process-util.h #ifndef SLANG_PROCESS_UTIL_H #define SLANG_PROCESS_UTIL_H #include "slang-string.h" #include "slang-list.h" #include "slang-string-escape-util.h" namespace Slang { struct CommandLine { enum class ExecutableType { Unknown, ///< The executable is not specifie...
42.59
76
(translation_unit) "// slang-process-util.h\n#ifndef SLANG_PROCESS_UTIL_H\n#define SLANG_PROCESS_UTIL_H\n\n#include "slang-string.h"\n#include "slang-list.h"\n\n#include "slang-string-escape-util.h"\n\nnamespace Slang {\n\nstruct CommandLine\n{\n enum class ExecutableType\n {\n Unknown, ...
623
32
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 42.59, "nodes": 342, "errors": 0, "source_hash": "fbbe1fce55971d69310fcf43ae652fceeaecf65dfc41c5c7ac44af9f52530a47", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,064
c
//----------------------------------------------------------------------------- // File: AutorunMsi.h // // Declaration of the MSI-specific Autorun functionality. // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #pragma once ...
36.48
29
(translation_unit) "//-----------------------------------------------------------------------------\n// File: AutorunMsi.h\n//\n// Declaration of the MSI-specific Autorun functionality.\n//\n// Copyright (c) Microsoft Corporation. All rights reserved.\n//-----------------------------------------------------------------...
103
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.48, "nodes": 53, "errors": 0, "source_hash": "82d1c77fd193e5071851e42ccc6b00d84f736d24afc1279cdddcfd8757c55c64", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,065
c
// // ComplicatedViewController.h // XTUniversalTable // // Created by wuwen on 16/5/6. // Copyright © 2016年 X-Team. All rights reserved. // #import <UIKit/UIKit.h> #import "ResumeInfoViewModel.h" @interface ComplicatedViewController : UIViewController @property (strong, nonatomic) ResumeInfoViewModel *viewModel...
26
12
(translation_unit) "//\n// ComplicatedViewController.h\n// XTUniversalTable\n//\n// Created by wuwen on 16/5/6.\n// Copyright © 2016年 X-Team. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ResumeInfoViewModel.h"\n\n@interface ComplicatedViewController : UIViewController\n\n@property (strong, nonatomi...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.0, "nodes": 26, "errors": 0, "source_hash": "e235549b26bec594ac196a51ff998b01f31792addf9ddc7f77a0353353d1faee", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
8,066
c
// computes the exit code from the status value // exit code is in the least significant bits from 8 to 16 uint64_t wexitstatus(uint64_t status) { return status * 281474976710656 / 72057594037927936; } int main() { uint64_t pid; uint64_t* exit_code; // Enforce an unmapped virtual address by allocating a page-...
32.26
23
(translation_unit) "// computes the exit code from the status value\n// exit code is in the least significant bits from 8 to 16\nuint64_t wexitstatus(uint64_t status) {\n return status * 281474976710656 / 72057594037927936;\n}\n\nint main() {\n uint64_t pid;\n uint64_t* exit_code;\n\n // Enforce an unmapped virtual...
130
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.26, "nodes": 80, "errors": 0, "source_hash": "3c724426ed61d89c0e17540529a96601e9a27b1ee108811f7fa7ce6d74066b53", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "ui...
8,067
c
#include<stdio.h> int main(int argc, char const *argv[]) { int i,j,k,l; for(i=1; i<=5;i++) { for (j = 0; j<i ; j++) { printf("*"); } printf("\n"); } for(k=5; k>=1;--k) { for (l = 1; l<=k ; ++l) { printf("*"); } ...
14.39
23
(translation_unit) "#include<stdio.h>\n\nint main(int argc, char const *argv[])\n{\n \n int i,j,k,l;\n\n for(i=1; i<=5;i++)\n {\n for (j = 0; j<i ; j++)\n {\n printf("*");\n }\n printf("\n"); \n }\n\n for(k=5; k>=1;--k)\n {\n for (l = 1; l<=k ; ++l)\n ...
162
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 14.39, "nodes": 89, "errors": 0, "source_hash": "d6ae1a64503aeb5ac84b5b04eb90d29d25fb99990d217e68a79057f369c78511", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,068
c
/// /// @file /// /// @brief This file contains interface to configure the intra-node execution /// environment. /// /// @author <NAME> (<EMAIL>), Umeå University /// @author <NAME> (<EMAIL>), Umeå University /// /// @internal LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in s...
29.66
224
(translation_unit) "///\n/// @file\n///\n/// @brief This file contains interface to configure the intra-node execution\n/// environment.\n///\n/// @author <NAME> (<EMAIL>), Umeå University\n/// @author <NAME> (<EMAIL>), Umeå University\n///\n/// @internal LICENSE\n///\n/// Copyright (c) 2019-2020, Umeå Universitet\n///...
368
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 29.66, "nodes": 141, "errors": 0, "source_hash": "710a50814ef1a5cffb5d139bbbcb0e0e28d80102672d46a5fbcb367ce06da9c0", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef S...
8,069
c
#pragma once //------------------------------------------------------------------------------ // SimpsonIntegrator.h // Implement integration via Simpsons method // // Copyright (c) 2019 GlenSand // All rights reserved. // // Date: 27.09.2019 // Author: <NAME> //--------------------------------------------------------...
28.85
26
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n// SimpsonIntegrator.h\n// Implement integration via Simpsons method \n//\n// Copyright (c) 2019 GlenSand\n// All rights reserved.\n//\n// Date: 27.09.2019\n// Author: <NAME>\n//--------------------------...
136
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.85, "nodes": 77, "errors": 0, "source_hash": "155fd4cffe399072572eaebd2e896af71ec6e7b5394a563b0f7d901adbc05288", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,070
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020 MediaTek Inc. * * Author: <NAME> <<EMAIL>> */ #ifndef _MT7628_H_ #define _MT7628_H_ #define SYSCTL_BASE 0x10000000 #define SYSCTL_SIZE 0x100 #define MEMCTL_BASE 0x10000300 #define MEMCTL_SIZE 0x100 #define RBUSCTL_BASE 0x10000400 #define RB...
26.83
86
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright (C) 2020 MediaTek Inc.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef _MT7628_H_\n#define _MT7628_H_\n\n#define SYSCTL_BASE 0x10000000\n#define SYSCTL_SIZE 0x100\n#define MEMCTL_BASE 0x10000300\n#define MEMCTL_SIZE 0x100\n#define RB...
321
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 26.83, "nodes": 314, "errors": 0, "source_hash": "c1a9660fff5e07d42df580934973518663c3eea110763a4772695672641d058e", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,071
c
// // Copyright (c) 2019 Open Whisper Systems. All rights reserved. // #import <SignalServiceKit/SSKEnvironment.h> @class OWSAudioSession; @class OWSContactsManager; @class OWSPreferences; @class OWSSounds; @class OWSWindowManager; @protocol OWSProximityMonitoringManager; /** * * Environment is a data and data a...
40.24
37
(translation_unit) "//\n// Copyright (c) 2019 Open Whisper Systems. All rights reserved.\n//\n\n#import <SignalServiceKit/SSKEnvironment.h>\n\n@class OWSAudioSession;\n@class OWSContactsManager;\n@class OWSPreferences;\n@class OWSSounds;\n@class OWSWindowManager;\n\n@protocol OWSProximityMonitoringManager;\n\n/**\n *\...
269
40
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.24, "nodes": 178, "errors": 0, "source_hash": "493b5963b343ab225ce2281c7c6492d94a588e387ab605fb3c1fb2ff5aefac1b", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
8,072
c
/** @defgroup MleCore Magic Lantern Core Utility Library API */ /** * @file MleDsoLoader.h * @ingroup MleCore * * This file contains a generic interface for loading dynamic * loadable modules such as DSOs and DLLs. */ // COPYRIGHT_BEGIN // // The MIT License (MIT) // // Copyright (c) 2015-2020 Wizzer Works // /...
33.44
143
(translation_unit) "/** @defgroup MleCore Magic Lantern Core Utility Library API */\n\n/**\n * @file MleDsoLoader.h\n * @ingroup MleCore\n *\n * This file contains a generic interface for loading dynamic\n * loadable modules such as DSOs and DLLs.\n */\n\n// COPYRIGHT_BEGIN\n//\n// The MIT License (MIT)\n//\n// Copyrig...
316
3
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 33.44, "nodes": 176, "errors": 0, "source_hash": "e1018585b1888fb830fa5b92d421e76feaeea6d1d0c65993f0c62f2539acb326", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,073
c
#pragma once #include <QWidget> #include "cachesim.h" namespace Ripes { namespace Ui { class CacheConfigWidget; } class CacheConfigWidget : public QWidget { Q_OBJECT public: CacheConfigWidget(QWidget* parent); ~CacheConfigWidget() override; void setCache(const std::shared_ptr<CacheSim>& cache); s...
31.85
39
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include "cachesim.h"\n\nnamespace Ripes {\n\nnamespace Ui {\nclass CacheConfigWidget;\n}\n\nclass CacheConfigWidget : public QWidget {\n Q_OBJECT\n\npublic:\n CacheConfigWidget(QWidget* parent);\n ~CacheConfigWidget() override;\n\n void setCache(const...
251
14
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.85, "nodes": 151, "errors": 0, "source_hash": "71fd25a614fcc5f093bb33d9b60f1e83fb3bdd59947de9801d5823ceb6657ef3", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,074
c
/* BEGIN_TEST_DATA f: {processor} ret: int args: int input: "zero.wav" output: "sine.wav" error: "" filename: "node/node_sine2" END_TEST_DATA */ struct osc { DECLARE_NODE(osc); template <int P> void setParameter(double v) { } // setting some random values here... double uptime = 0.1260; doub...
13.82
55
(translation_unit) "/*\nBEGIN_TEST_DATA\n f: {processor}\n ret: int\n args: int\n input: "zero.wav"\n output: "sine.wav"\n error: ""\n filename: "node/node_sine2"\nEND_TEST_DATA\n*/\n\n\nstruct osc\n{\n DECLARE_NODE(osc);\n\n template <int P> void setParameter(double v)\n {\n \n }\n\n // setting some random val...
232
15
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 13.82, "nodes": 148, "errors": 0, "source_hash": "0ffcdeeab2bbe43c70a6987d0cd7c6575f51e29fe26bc8dbac4a8fd58117da2d", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct os...
8,075
c
/* * Copyright 2021 <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 use, copy, modify, merge, publish, distrib...
37.69
48
(translation_unit) "/*\n * Copyright 2021 <NAME>\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 limitation the rights\n * to use, copy, modif...
87
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 37.69, "nodes": 51, "errors": 0, "source_hash": "9826a20e69b497d021d62b889fe2c429e01d0d1b84d5831fe7f3b56d2516c324", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,076
c
// // NSMutableAttributedString+Typeset.h // Typeset // // Created by apple on 15/5/26. // Copyright (c) 2015年 DeltaX. All rights reserved. // #import <UIKit/UIKit.h> @class TypesetKit; @interface NSMutableAttributedString (Typeset) - (TypesetKit *)typeset; - (NSMutableAttributedString *(^)(id))append; @end
23.08
13
(translation_unit) "//\n// NSMutableAttributedString+Typeset.h\n// Typeset\n//\n// Created by apple on 15/5/26.\n// Copyright (c) 2015年 DeltaX. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class TypesetKit;\n\n@interface NSMutableAttributedString (Typeset)\n\n- (TypesetKit *)typeset;\n\n- (NSMutableAttri...
63
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.08, "nodes": 35, "errors": 0, "source_hash": "d3d1426374d6d404feb015e648dbbed12595f5e90166541a3fbb2d221cbdaba4", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
8,077
c
/* MQTT Reciever - http_serv.h Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
29.86
79
(translation_unit) "/*\n MQTT Reciever - http_serv.h\n Copyright 2019 <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless require...
375
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 29.86, "nodes": 243, "errors": 0, "source_hash": "946db07a9222a19b3818e1581324ebbfd5573ab8baabe3b9669d2f4fffa5bc0b", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,078
c
/* This file is part of the JitCat library. Copyright (C) <NAME> 2018 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #pragma once #include "jitcat/Lexeme.h" #include <memory> namespace jitcat::Tokenizer { class Document; class ParseToken { public: Pa...
28.81
37
(translation_unit) "/*\n This file is part of the JitCat library.\n \n Copyright (C) <NAME> 2018\n Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).\n*/\n\n#pragma once\n\n#include "jitcat/Lexeme.h"\n\n#include <memory>\n\n\nnamespace jitcat::Tokenizer\n{\n class Document;\...
248
12
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.81, "nodes": 149, "errors": 0, "source_hash": "2c875da4ee5273e9fc06deddd7b84413b7746b0a4a24a4f26c51fdd358eb5131", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,079
c
void PzStartScene(void); void PzEndScene(void);
23
2
(translation_unit) "void PzStartScene(void);\nvoid PzEndScene(void);\n" (declaration) "void PzStartScene(void);" (primitive_type) "void" (function_declarator) "PzStartScene(void)" (identifier) "PzStartScene" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" ...
21
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 23.0, "nodes": 14, "errors": 0, "source_hash": "b66bcbb9d8969e463620c25f8c82993f07d3d8dd066d73e9a0de9d7eef0a1e1f", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void PzStartS...
8,080
c
/* * Base64 encoding/decoding (RFC1341) * Copyright (c) 2005, <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. * * Alternatively, this software may be distrib...
28.38
26
(translation_unit) "/*\n * Base64 encoding/decoding (RFC1341)\n * Copyright (c) 2005, <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 * Alternatively, ...
91
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.38, "nodes": 68, "errors": 0, "source_hash": "e82740c77203fee62f31c5179f27f774a274f88f6d954617801be56aba8ed2fa", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,081
c
#include <stdio.h> #include <stdlib.h> static int *twosum(int *nums, int numsSize, int target) { static int array[2] = {0}; int i = 0, j = 0; for(i = 0; i < numsSize; i++) { for(j = i+1; j < numsSize; j++) { if(target == nums[i] + nums[j]) { ...
18.4
35
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nstatic int *twosum(int *nums, int numsSize, int target)\n{\n static int array[2] = {0};\n \n int i = 0, j = 0;\n \n for(i = 0; i < numsSize; i++)\n {\n for(j = i+1; j < numsSize; j++)\n {\n if(target == nums[i] + n...
244
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.4, "nodes": 152, "errors": 0, "source_hash": "8a523cbed7c6ac665b6efd0e259973237cbc88c2fa466cc88a41e368996ba9a3", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,082
c
// // Shopping2PagedDialog.h // FlameDragon // // Created by <NAME> on 12-9-22. // Copyright 2012 ms. All rights reserved. // #import "cocos2d.h" #import "Shopping2Dialog.h" @interface Shopping2PagedDialog : Shopping2Dialog { int pageIndex; NSMutableArray *itemList; } -(void) initializeWithList:(NSMutableA...
20.77
22
(translation_unit) "//\n// Shopping2PagedDialog.h\n// FlameDragon\n//\n// Created by <NAME> on 12-9-22.\n// Copyright 2012 ms. All rights reserved.\n//\n\n#import "cocos2d.h"\n#import "Shopping2Dialog.h"\n\n@interface Shopping2PagedDialog : Shopping2Dialog {\n \n int pageIndex;\n\n NSMutableArray *itemList;\n\n}\n\...
118
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.77, "nodes": 71, "errors": 0, "source_hash": "7089e4e9dd37376a6f5a25f07ab7906ec9c9e548e40b1b022fb31ea19a0ed320", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
8,083
c
#include <stdio.h> extern int N; extern int arr[]; int main() { int pos = 0; for (int i = 1; i < N; i++) { int diff = arr[i] != arr[pos]; arr[pos += diff] = arr[i]; } return pos + 1; }
18.73
11
(translation_unit) "#include <stdio.h>\n\nextern int N;\nextern int arr[];\n\nint main() {\n int pos = 0;\n for (int i = 1; i < N; i++) {\n int diff = arr[i] != arr[pos];\n arr[pos += diff] = arr[i];\n }\n return pos + 1;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#includ...
100
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.73, "nodes": 68, "errors": 0, "source_hash": "195eae211224998a729e467afacbd42ce600295b2853d429cf1e60b9c94bd76b", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,084
c
/* * Copyright (c) 2018 IOTA Stiftung * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ #ifndef __CIRI_NODE_PIPELINE_BROADCASTER_H__ #define __CIRI_NODE_PIPELINE_BROADCASTER_H__ #include <stdbool.h> #include "ciri/node/protocol/gossip.h" #include "common/errors...
29.11
87
(translation_unit) "/*\n * Copyright (c) 2018 IOTA Stiftung\n * https://github.com/iotaledger/entangled\n *\n * Refer to the LICENSE file for licensing information\n */\n\n#ifndef __CIRI_NODE_PIPELINE_BROADCASTER_H__\n#define __CIRI_NODE_PIPELINE_BROADCASTER_H__\n\n#include <stdbool.h>\n\n#include "ciri/node/protocol/g...
229
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 29.11, "nodes": 140, "errors": 0, "source_hash": "3a52ed8520007ef880887434162acf0ce56e629174bc5a942f15fb0eb81e21b3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,085
c
/* Copyright (c) 2006, <NAME> <<EMAIL>> * * Distributed under the MIT Licence. * This is free software. See 'LICENSE' for details. * You must read and accept the license prior to use. */ #ifndef _SK_UTIL_SELECTOR_ #define _SK_UTIL_SELECTOR_ #include <sk/util/Object.h> namespace sk { namespace util { te...
23.57
21
(translation_unit) "/* Copyright (c) 2006, <NAME> <<EMAIL>>\n *\n * Distributed under the MIT Licence.\n * This is free software. See 'LICENSE' for details.\n * You must read and accept the license prior to use.\n*/\n\n#ifndef _SK_UTIL_SELECTOR_\n#define _SK_UTIL_SELECTOR_\n\n#include <sk/util/Object.h>\n\nnamespac...
83
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.57, "nodes": 48, "errors": 0, "source_hash": "0bd2d710771bdd27138065a34befb2edc6bdaafabcb4a16b5bb896a95af85f06", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,086
c
// // EnvironmentHeader.h // // // Created by FZQ on 2018/2/9. // Copyright © 2018年 FZQ. All rights reserved. // 此文件用于存放环境相关的参数 #ifndef EnvironmentHeader_h #define EnvironmentHeader_h //-------------------------------- 环境选择相关 ----------------------------------- // 版本检测 #define APP_ID @"" #define APP_VERSION_URL...
24.3
37
(translation_unit) "//\n// EnvironmentHeader.h\n// \n//\n// Created by FZQ on 2018/2/9.\n// Copyright © 2018年 FZQ. All rights reserved.\n// 此文件用于存放环境相关的参数\n\n#ifndef EnvironmentHeader_h\n#define EnvironmentHeader_h\n\n//-------------------------------- 环境选择相关 -----------------------------------\n// 版本检测\n#define A...
90
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.3, "nodes": 69, "errors": 0, "source_hash": "fe229fdf23ff07ffba2225b3537be2b07d2aad4c977548c13ad7a2cbe6e09f21", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fine Envi...
8,087
c
include<stdio.h> include<math.h> /* Monte Carlo integration of circle * * * TODO: random sampling in main */ bool in_circle(float x, float y) { if (pow(x,2.0) + pow(y,2.0) < pow(radius, 2.0) return true; return false; } double monte_carlo( int n){ pi_count = 0; for (int i=0; i < n; i++){ d...
13.55
29
(translation_unit) "include<stdio.h>\ninclude<math.h>\n\n/* Monte Carlo integration of circle \n *\n *\n * TODO: random sampling in main\n */\nbool in_circle(float x, float y) {\n\n if (pow(x,2.0) + pow(y,2.0) < pow(radius, 2.0)\n return true; \n\n\n return false;\n}\n\ndouble monte_carlo( int n){\n\n pi_coun...
170
14
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 13.55, "nodes": 116, "errors": 0, "source_hash": "48cdf260ad405cf0b0654282dc6dd8187daf33b0ef6f97db1061cd0cf581c0da", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "update_expression", "text": "inc...
8,088
c
#ifndef _ASM_IA64_CURRENT_H #define _ASM_IA64_CURRENT_H /* * Copyright (C) 1998-2000 Hewlett-Packard Co * Copyright (C) 1998-2000 <NAME> <<EMAIL>> */ /* In kernel mode, thread pointer (r13) is used to point to the current task structure. */ register struct task_struct *current asm ("r13"); #endif /* _ASM_IA64...
32.1
10
(translation_unit) "#ifndef _ASM_IA64_CURRENT_H\n#define _ASM_IA64_CURRENT_H\n\n/*\n * Copyright (C) 1998-2000 Hewlett-Packard Co\n * Copyright (C) 1998-2000 <NAME> <<EMAIL>>\n */\n\n/* In kernel mode, thread pointer (r13) is used to point to the\n current task structure. */\nregister struct task_struct *current asm...
29
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.1, "nodes": 19, "errors": 0, "source_hash": "e33a83e95145ce14165fe3c536747646a162ffb809691be4d37b21f09de5a3e2", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,089
c
#include <stdio.h> #include <stdlib.h> #include "avl.h" int main(int argc, char* argv[]) { FILE* fp; AVLTree myTree = NULL; ElementType num; fp = fopen(argv[1], "r"); while(!feof(fp)) { fscanf(fp, "%d", &num); myTree = Insert(num, myTree); PrintInorder(myTree); putc...
20.59
17
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "avl.h"\n\nint main(int argc, char* argv[]) {\n FILE* fp;\n AVLTree myTree = NULL;\n ElementType num;\n\n fp = fopen(argv[1], "r");\n while(!feof(fp)) {\n fscanf(fp, "%d", &num);\n myTree = Insert(num, myTree);\n P...
150
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.59, "nodes": 88, "errors": 0, "source_hash": "ad7deff6f1d3a684c541ef223c15e905747aa63142a50be5fd2666491861bd6e", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,090
c
#pragma once #include "Camera.h" #include "CorePrerequisites.h" class EditorCamera : public Camera { private: float m_Latitude; float m_Azimuth; bool m_IsPanning; bool m_IsRotating; bool m_IsZooming; float m_FocalDistance; float m_ZoomDampenFactor; bool m_Update; public: EditorCam...
21.88
24
(translation_unit) "#pragma once\n#include "Camera.h"\n#include "CorePrerequisites.h"\n\nclass EditorCamera : public Camera\n{\nprivate:\n float m_Latitude;\n float m_Azimuth;\n\n bool m_IsPanning;\n bool m_IsRotating;\n bool m_IsZooming;\n float m_FocalDistance;\n float m_ZoomDampenFactor;\n bo...
157
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.88, "nodes": 98, "errors": 0, "source_hash": "0b2b47bb41ba8eb3530c578065b408dcb11ec4e7018a59c5640a137b108701c7", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,091
c
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2021 <NAME> <<EMAIL>> * * Generated using linux-mdss-dsi-panel-driver-generator from Lineage OS device tree: * https://github.com/LineageOS/android_kernel_xiaomi_msm8996/blob/lineage-18.1/arch/arm/boot/dts/qcom/a1-msm8996-mtp.dtsi */ #include <linux/dela...
30.85
254
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-only\n/*\n * Copyright (c) 2021 <NAME> <<EMAIL>>\n *\n * Generated using linux-mdss-dsi-panel-driver-generator from Lineage OS device tree:\n * https://github.com/LineageOS/android_kernel_xiaomi_msm8996/blob/lineage-18.1/arch/arm/boot/dts/qcom/a1-msm8996-mtp.dtsi\...
2,237
3
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 30.85, "nodes": 1334, "errors": 0, "source_hash": "521ccea7452bbcf26181fbe298fb2002a7ba70d0dfc2ff26cdab1abaa72015d5", "categorized_nodes": 1006}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
8,092
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 3:11:39 PM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /usr/libexec/gamed * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #import <gamed/GKIDSLookupBulletin.h> ...
38.68
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 3:11:39 PM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /usr/libexec/gamed\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n\n#import <g...
134
16
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 38.68, "nodes": 77, "errors": 0, "source_hash": "3b75f58ebcc1c2bdb0aadffb9034f2387710770e3b3ed4b0f6b38ebd770cc0bb", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <g...
8,093
c
#include <stdio.h> #include "NuMicro.h" #ifdef __cplusplus extern "C" { #endif #include "hal_api.h" #define MAX_PKT_SIZE (64) #define nRTSPin (PE12) #define REVEIVE_MODE (0) #define TRANSMIT_MODE (1) void RS485_Init(void) { /* Enable UART module clock */ CLK->APBCLK0 |= CLK_APBCLK0_UART1CKEN_Msk;...
36.89
82
(translation_unit) "#include <stdio.h>\n#include "NuMicro.h"\n\n#ifdef __cplusplus\nextern "C"\n{\n#endif\n\n#include "hal_api.h"\n\n#define MAX_PKT_SIZE (64)\n#define nRTSPin (PE12)\n#define REVEIVE_MODE (0)\n#define TRANSMIT_MODE (1)\n\nvoid RS485_Init(void)\n{\n /* Enable UART module clock */\n CLK-...
625
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 36.89, "nodes": 379, "errors": 0, "source_hash": "f6246c9512ffd7367924d5c690d8e7a1cffa65ea46c158ea191cf13bb719d146", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,094
c
#ifndef SRC_AV_SDL2_ERROR_H_ #define SRC_AV_SDL2_ERROR_H_ #include "util/compiler.h" #include "util/string-view.h" void sdlError(StringView system, StringView function) noexcept; void sdlDie(StringView system, StringView function) noexcept; #endif // SRC_AV_SDL2_ERROR_H_
29.33
9
(translation_unit) "#ifndef SRC_AV_SDL2_ERROR_H_\n#define SRC_AV_SDL2_ERROR_H_\n\n#include "util/compiler.h"\n#include "util/string-view.h"\n\nvoid\nsdlError(StringView system, StringView function) noexcept;\nvoid\nsdlDie(StringView system, StringView function) noexcept;\n\n#endif // SRC_AV_SDL2_ERROR_H_\n" (preproc...
55
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 29.33, "nodes": 35, "errors": 0, "source_hash": "d12ead36cc789035bc4c63be9cb1c9584578e2ae9ee5f2d84d56a42500fd8410", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
8,095
c
#include <stdio.h> #include "python2.7/Python.h" #include "erl_nif.h" static ErlNifTid tid_main; static ErlNifCond* cond_stop_requested; static ErlNifMutex* mutex_stop_requested; #define SAFE_COND_DESTROY(X) \ if (X) { \ enif_cond_destroy(X); ...
27.02
150
(translation_unit) "#include <stdio.h>\n#include "python2.7/Python.h"\n#include "erl_nif.h"\n\nstatic ErlNifTid tid_main;\nstatic ErlNifCond* cond_stop_requested;\nstatic ErlNifMutex* mutex_stop_requested;\n\n#define SAFE_COND_DESTROY(X) \\n if (X) { \\n e...
1,228
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 27.02, "nodes": 698, "errors": 0, "source_hash": "ea78a296f420711756b4dc1d6b5fb7e3f58bf0c9aadfe601c7ebc9f69d4511af", "categorized_nodes": 464}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,096
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* open_db.c :+: :+: :+: ...
29.18
101
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* open_db.c ...
913
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 29.18, "nodes": 549, "errors": 0, "source_hash": "f6434af42c44f62a20c34748be65032c06d32d7551d24648fc19ebad1f23bc0f", "categorized_nodes": 430}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,097
c
#pragma once #include <utility> #include "vector_def.h" namespace lib_gui { class GuiRect { public: GuiRect(lib_core::Vector2 pos, lib_core::Vector2 hs, lib_core::Vector4 col, uint8_t l = 0) : position_(pos), half_size_(hs), rgba_(col), layer(l) {} GuiRect() = default; ~GuiRect() = default; l...
25.28
18
(translation_unit) "#pragma once\n#include <utility>\n#include "vector_def.h"\n\nnamespace lib_gui {\nclass GuiRect {\n public:\n GuiRect(lib_core::Vector2 pos, lib_core::Vector2 hs, lib_core::Vector4 col,\n uint8_t l = 0)\n : position_(pos), half_size_(hs), rgba_(col), layer(l) {}\n GuiRect() = default...
166
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.28, "nodes": 92, "errors": 0, "source_hash": "b0a3f859c56280883e76e600aae9de322f24cb4d146bba24824b35842256a92e", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,098
c
int my_func(int stat_loc) { // this is a 'temporary union' return ((union { __typeof(stat_loc) __in; int __i; }) { .__in =(stat_loc) }).__i; } int main(void) { int x; assert(my_func(x)==x); }
17.55
11
(translation_unit) "int my_func(int stat_loc)\n{\n // this is a 'temporary union'\n return ((union { __typeof(stat_loc) __in; int __i; })\n { .__in =(stat_loc) }).__i;\n}\n\nint main(void)\n{\n int x;\n assert(my_func(x)==x);\n} \n" (function_definition) "int my_func(int stat_loc)\n{\n // this is a 'temporary...
90
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.55, "nodes": 52, "errors": 0, "source_hash": "e6b6ef468b4062bc5bb7f3585b2af6ac25d1f7f08c15c7aa999b4065f35c0a44", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
8,099