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 "build.h" #include "colors.h" #include "print.h" #include "kissat.h" #include <stdio.h> const char * kissat_signature (void) { return "kissat-" VERSION; } const char * kissat_id (void) { return ID; } const char * kissat_compiler (void) { return COMPILER; } const char * kissat_copyright (void) { re...
16.12
75
(translation_unit) "#include "build.h"\n#include "colors.h"\n#include "print.h"\n#include "kissat.h"\n\n#include <stdio.h>\n\nconst char *\nkissat_signature (void)\n{\n return "kissat-" VERSION;\n}\n\nconst char *\nkissat_id (void)\n{\n return ID;\n}\n\nconst char *\nkissat_compiler (void)\n{\n return COMPILER;\n}\n...
441
2
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 16.12, "nodes": 226, "errors": 0, "source_hash": "fac796cd02e6f22d90749fcb2a8c908c66c0403e78a54fa45ebd33babb49d6ac", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,600
c
#ifndef lint static const char RCSid[] = "$Id: sceneio.c,v 2.6 2021/02/19 16:51:10 greg Exp $"; #endif /* * Portable, binary Radiance i/o routines. * * Called from octree and mesh i/o routines. */ #include "copyright.h" #include "standard.h" #include "octree.h" #include "object.h" #include "otypes.h" static OBJ...
22.94
151
(translation_unit) "#ifndef lint\nstatic const char RCSid[] = "$Id: sceneio.c,v 2.6 2021/02/19 16:51:10 greg Exp $";\n#endif\n/*\n * Portable, binary Radiance i/o routines.\n *\n * Called from octree and mesh i/o routines.\n */\n\n#include "copyright.h"\n#include "standard.h"\n#include "octree.h"\n#include "object.h"...
1,481
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 22.94, "nodes": 889, "errors": 0, "source_hash": "01482daf96df7e9552ce69a7f0b38b02798c274adc09aef841ff05288305fb6e", "categorized_nodes": 669}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,601
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parse_args.c :+: :+: :+: ...
33.77
60
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* parse_args.c ...
640
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.77, "nodes": 376, "errors": 0, "source_hash": "bcb22430072e07a93b11268978e5d1f1917c638b5c59fb32edd0600a3df319b9", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,602
c
// // Created by xhy on 2021/2/16. // #ifndef MOD_TRAPDOORTEST_H #define MOD_TRAPDOORTEST_H #include "Actor.h" #include "BDSMod.h" #include "TrapdoorMod.h" #include "CommandManager.h" namespace mod::test { void registerTestCommand(trapdoor::CommandManager &); } #endif //MOD_TRAPDOORTEST_H
20.07
14
(translation_unit) "//\n// Created by xhy on 2021/2/16.\n//\n\n#ifndef MOD_TRAPDOORTEST_H\n#define MOD_TRAPDOORTEST_H\n\n#include "Actor.h"\n#include "BDSMod.h"\n#include "TrapdoorMod.h"\n#include "CommandManager.h"\n\nnamespace mod::test {\n void registerTestCommand(trapdoor::CommandManager &);\n}\n\n\n#endif //MOD...
62
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.07, "nodes": 32, "errors": 0, "source_hash": "0b55e4a738e0a8efc5bbe5293b88ced77839cae6822a750370fbef7608ee4874", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,603
c
// // TYDownloadDelegate.h // TYDownloadManagerDemo // // Created by tany on 16/6/24. // Copyright © 2016年 tany. All rights reserved. // #import <Foundation/Foundation.h> #import "TKDownloadModel.h" // 下载代理 @protocol TKDownloadDelegate <NSObject> // 更新下载进度 - (void)downloadModel:(TKDownloadModel *)downloadModel d...
32
16
(translation_unit) "//\n// TYDownloadDelegate.h\n// TYDownloadManagerDemo\n//\n// Created by tany on 16/6/24.\n// Copyright © 2016年 tany. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "TKDownloadModel.h"\n\n// 下载代理\n@protocol TKDownloadDelegate <NSObject>\n\n// 更新下载进度\n- (void)downloadModel...
100
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.0, "nodes": 64, "errors": 0, "source_hash": "4c86b64dc51fdd1138eb87006ea256d34910c7c402a4372e5547c4e2d1151db7", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
78,604
c
/** * @file AggregatorConfig.h * @author <NAME> * @date Jun 23, 2011 * @brief */ #ifndef AGGREGATOR_CONFIG_H_ #define AGGREGATOR_CONFIG_H_ #include <stdint.h> #include <string> #include <vector> #include <sstream> #include "Typedef.h" namespace net{ namespace aggregator{ class AggregatorConfig { public: A...
27.27
104
(translation_unit) "/**\n * @file AggregatorConfig.h\n * @author <NAME>\n * @date Jun 23, 2011\n * @brief \n */\n#ifndef AGGREGATOR_CONFIG_H_\n#define AGGREGATOR_CONFIG_H_\n\n#include <stdint.h>\n#include <string>\n#include <vector>\n#include <sstream>\n\n#include "Typedef.h"\n\nnamespace net{\nnamespace aggregator{\n\...
755
19
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.27, "nodes": 445, "errors": 0, "source_hash": "88c6fc9513a95fb82743ed563721f8f81e6cf9b8f3e3c1d54227ea7ab176848f", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,605
c
/* * dmessage.c * * for the client of a socket based protocol. */ #include "copyright.h" #include <stdio.h> #include <math.h> #include "Wlib.h" #include "defs.h" #include "xsg_defs.h" #include "struct.h" #include "localdata.h" char *whydeadmess[] = { "", "[quit]", "[photon]", "[phaser]", "[planet]", "[explosio...
26.87
110
(translation_unit) "/*\n * dmessage.c \n *\n * for the client of a socket based protocol.\n */\n#include "copyright.h"\n\n#include <stdio.h>\n#include <math.h>\n#include "Wlib.h"\n#include "defs.h"\n#include "xsg_defs.h"\n#include "struct.h"\n#include "localdata.h"\n\nchar *whydeadmess[] = { "", "[quit]", "[photon]", "...
988
4
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 26.87, "nodes": 541, "errors": 0, "source_hash": "db28d405838c6a8be059ec4097e120e4b188878b5f62b15a88b035be6265d89d", "categorized_nodes": 401}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,606
c
#ifndef _RenderUI_H_ #define _RenderUI_H_ #include "CommonTypes.h" #include "IvVector2.h" #include <map> using namespace Types; namespace Graphics { class Widget; // Everything that can be rendered shall be a "IDrawable" class RenderUI { public: // virtual destructor virtual ~RenderUI() { } stati...
30.16
45
(translation_unit) "#ifndef _RenderUI_H_\n#define _RenderUI_H_\n\n#include "CommonTypes.h"\n#include "IvVector2.h"\n#include <map>\n\nusing namespace Types;\n\nnamespace Graphics\n{\n class Widget;\n // Everything that can be rendered shall be a "IDrawable"\n class RenderUI\n {\n public:\n // virtual destructor\n ...
359
27
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.16, "nodes": 202, "errors": 0, "source_hash": "73497442889c4222c8cab2ce4e23b3372672e4e09198a159ba3fb48910fa7db2", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,607
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "treasure.h" void treasure_init() { treasure_size = 0; treasure_list = NULL; } void treasure_destroy() { TREASURE *current; TREASURE *temp; current = treasure_list; while (current != NULL) { temp = current->next; ...
24.79
87
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "treasure.h"\n\nvoid treasure_init() {\n treasure_size = 0;\n treasure_list = NULL;\n}\n\nvoid treasure_destroy() {\n TREASURE *current;\n TREASURE *temp;\n\n current = treasure_list;\n while (current != NULL) {...
749
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 24.79, "nodes": 472, "errors": 0, "source_hash": "b19b1115d97eca3830cfc83e358d074904c8182692453a6ad4139a1dcc42acfa", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,608
c
#pragma once #include <memory> #include <list> #include <functional> #include <exception> #include <optional> template<typename K, typename V> class hashtable { public: hashtable(size_t initNumBuckets, float load_factor) : _numOfBuckets(initNumBuckets), _buckets(std::make_unique<std::lis...
32.54
134
(translation_unit) "#pragma once\n\n#include <memory>\n#include <list>\n#include <functional>\n#include <exception>\n#include <optional>\n\ntemplate<typename K, typename V>\nclass hashtable {\npublic:\n hashtable(size_t initNumBuckets, float load_factor)\n : _numOfBuckets(initNumBuckets),\n _...
1,378
79
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 32.54, "nodes": 836, "errors": 0, "source_hash": "8083ae4cb9c2aa4bd6b2262606193cae6511bb41aa3632095ed72e3a40b962ec", "categorized_nodes": 560}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,609
c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * (C) 2015 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ /* This test is going to test the atomicity for "read-modify-write" in GACC * operations */ /* This test is similiar with atomic_rmw_fop.c. * There ar...
36.33
233
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */\n/*\n *\n * (C) 2015 by Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n */\n\n/* This test is going to test the atomicity for "read-modify-write" in GACC\n * operations */\n\n/* This test is similiar with...
2,006
0
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 36.33, "nodes": 1152, "errors": 0, "source_hash": "56e6a725b6d8057733d782052ad6a841cf2ccf5f74216b3615f8dd17fad76448", "categorized_nodes": 864}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,610
c
#include "../common.h" #include <netinet/ip.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/epoll.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <assert.h> #include <errno.h> #include <stdio.h> #include <sched.h> #include <poll.h> #include "override.h" #in...
28.86
176
(translation_unit) "#include "../common.h"\n\n#include <netinet/ip.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <sys/epoll.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <string.h>\n#include <signal.h>\n#include <assert.h>\n#include <errno.h>\n#include <stdio.h>\n#include <sched.h>\n#include <...
1,339
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 28.86, "nodes": 796, "errors": 0, "source_hash": "99a1cbb4215c88540174f13954c9a8d3dcfbde89c8386e2ee8dae6525d280611", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,611
c
/*------------------------------------------------------------------------- * * cdbpgdatabase.c * Set-returning function to view pgdatabase table. * * IDENTIFICATION * *------------------------------------------------------------------------- */ #include "postgres.h" #include "funcapi.h" #include "access/heap...
30.61
107
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * cdbpgdatabase.c\n * Set-returning function to view pgdatabase table.\n *\n * IDENTIFICATION\n *\n *-------------------------------------------------------------------------\n */\n#include "postgres.h"\n\n#include "f...
827
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 30.61, "nodes": 493, "errors": 0, "source_hash": "3061daad7164afe057bf2e1a32ea62cc6ec7be72e02333845ded689cd0bcbac0", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,612
c
#pragma once #include "_share_lock_if.h" #include "_share_mem_if.h" #include "SpinLock.h" #include "SmProcess.h" class ProcessGlobal { public: static ProcessGlobal * Instance(); static void Release(); public: SmProcess * GetProcess(); private: static ProcessGlobal * _instance; static SpinLock _lock; private: ...
18
20
(translation_unit) "#pragma once\n\n#include "_share_lock_if.h"\n#include "_share_mem_if.h"\n#include "SpinLock.h"\n#include "SmProcess.h"\n\nclass ProcessGlobal\n{\npublic:\n static ProcessGlobal * Instance();\n static void Release();\n\npublic:\n SmProcess * GetProcess();\n\nprivate:\n static ProcessGlobal * _instanc...
116
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.0, "nodes": 61, "errors": 0, "source_hash": "290017e092d2e464e927d46875957cf51539683ff1047d9057c1fd8590011de6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,613
c
/* * HoverParams.h * * Created on: Oct 25, 2020 * Author: ballance */ #pragma once #include "TextDocumentPositionParams.h" namespace lls { class HoverParams; typedef std::shared_ptr<HoverParams> HoverParamsSP; class HoverParams : public TextDocumentPositionParams { public: HoverParams(const nlohmann::jso...
22.05
19
(translation_unit) "/*\n * HoverParams.h\n *\n * Created on: Oct 25, 2020\n * Author: ballance\n */\n\n#pragma once\n#include "TextDocumentPositionParams.h"\n\nnamespace lls {\n\nclass HoverParams;\ntypedef std::shared_ptr<HoverParams> HoverParamsSP;\nclass HoverParams : public TextDocumentPositionParams {\npubli...
102
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.05, "nodes": 51, "errors": 0, "source_hash": "85d3e1bc5f4ecbb552add57122588b0cf4e0174c89e25a83b3dae5e235d44d52", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,614
c
/***********************************************************************/ // File: lib.h // Typ: Header File // Author: YD95 // Created: 06/11/2019 (MM/DD/YYYY) // Changed: 06/11/2019 (MM/DD/YYYY) // Version: v1.00 // ---------------------------------------------------------------------- // description: // Declares a...
29.73
26
(translation_unit) "/***********************************************************************/\n// File: lib.h\n// Typ: Header File\n// Author: YD95\n// Created: 06/11/2019 (MM/DD/YYYY)\n// Changed: 06/11/2019 (MM/DD/YYYY)\n// Version: v1.00\n// ----------------------------------------------------------------------\n// ...
49
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.73, "nodes": 28, "errors": 0, "source_hash": "4753ff943599d90e87b4f964d862a365cc9b56512eff7e8ac23c1247238e3342", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,615
c
// // Copyright (c) SRG SSR. All rights reserved. // // License information is available from the LICENSE file. // @import Foundation; @import SRGDataProviderModel; NS_ASSUME_NONNULL_BEGIN /** * Notification sent when a download state changes (added or removed). * Use the `DownloadStateKey` to retrieve new sta...
28.08
154
(translation_unit) "//\n// Copyright (c) SRG SSR. All rights reserved.\n//\n// License information is available from the LICENSE file.\n//\n\n@import Foundation;\n@import SRGDataProviderModel;\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * Notification sent when a download state changes (added or removed).\n * Use the `Down...
471
68
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 28.08, "nodes": 294, "errors": 0, "source_hash": "0599290e052ce27e5ef7a6928548f7e94aaf820b7db822228eb27abfd85e8270", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent":...
78,616
c
/****************************************************************** * File Name : producer.h * Description : * * Copyright (C) 2016 <NAME> * Mail : <EMAIL> * Author : <NAME> * Created time : 2016-12-13 02:36:22 PM * Last modified : 2016-12-13 02:36:22 PM *************************...
27.61
76
(translation_unit) "/******************************************************************\n * File Name : producer.h\n * Description : \n *\n * Copyright (C) 2016 <NAME>\n * Mail : <EMAIL>\n * Author : <NAME>\n * Created time : 2016-12-13 02:36:22 PM\n * Last modified : 2016-12-13 02:36:22 ...
633
2
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 27.61, "nodes": 371, "errors": 0, "source_hash": "601113574f0b230d1f2c9e1a357a7bff0e55dd5c92311b846a5636204ed2ac7d", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,617
c
#include "atlas_misc.h" #include "atlas_threads.h" int ATL_DecGlobalAtomicCount(void *vp, int rank) /* * This routine returns a global counter that has been distributed over * P local counters */ { int i, j, P, b, icnt, extra, nL, *ip=vp, *iloc; void **acnts; P = ip[0]; b = ip[1]; extra = ip[2]; n...
22.19
48
(translation_unit) "#include "atlas_misc.h"\n#include "atlas_threads.h"\nint ATL_DecGlobalAtomicCount(void *vp, int rank)\n/*\n * This routine returns a global counter that has been distributed over\n * P local counters\n */\n{\n int i, j, P, b, icnt, extra, nL, *ip=vp, *iloc;\n void **acnts;\n\n P = ip[0];\n b...
327
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.19, "nodes": 207, "errors": 0, "source_hash": "2f7b206d2efdbf8a3f4ee05e26627cb1830e534fdfda059dd2ebdecf6d7a0674", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,618
c
/* * Copyright (c) 2015-2016 <NAME> (<EMAIL>) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the i...
38.1
154
(translation_unit) "/*\n * Copyright (c) 2015-2016 <NAME> (<EMAIL>)\n *\n * This is free software: you can redistribute it and/or modify\n * it under the terms of the Artistic License 2.0 as published by\n * The Perl Foundation.\n *\n * This source is distributed in the hope that it will be useful,\n * but WITHOUT ANY ...
1,097
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 38.1, "nodes": 781, "errors": 0, "source_hash": "8d422999dcf22a37bc9273f432b306eee3c52a20249aa24a01bc2fdaa6d79f85", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,619
c
#ifndef joedb_Mutex_declared #define joedb_Mutex_declared #include <exception> namespace joedb { //////////////////////////////////////////////////////////////////////////// class Mutex //////////////////////////////////////////////////////////////////////////// { private: virtual void lock() = 0; virtual...
23.16
38
(translation_unit) "#ifndef joedb_Mutex_declared\n#define joedb_Mutex_declared\n\n#include <exception>\n\nnamespace joedb\n{\n ////////////////////////////////////////////////////////////////////////////\n class Mutex\n ////////////////////////////////////////////////////////////////////////////\n {\n private:\n vir...
217
17
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 23.16, "nodes": 117, "errors": 0, "source_hash": "dc3253549272b06fff5afd86f2b706470242af6a6efec95d7a3d7a7848c07e79", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,620
c
#ifndef HELPERS_H #define HELPERS_H #include <math.h> #include <string> #include <vector> #include <iostream> // for convenience using std::string; using std::vector; // // Helper functions related to waypoints and converting from XY to Frenet // or vice versa // class Helper { public: constexpr static const...
30.75
44
(translation_unit) "#ifndef HELPERS_H\n#define HELPERS_H\n\n#include <math.h>\n#include <string>\n#include <vector>\n#include <iostream>\n\n// for convenience\nusing std::string;\nusing std::vector;\n\n\n//\n// Helper functions related to waypoints and converting from XY to Frenet\n// or vice versa\n//\n\nclass Helpe...
433
2
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 30.75, "nodes": 271, "errors": 0, "source_hash": "ab7a9e7d29c19dc5390780083f8e1baa6325c75b9fddb8b70e67ecac76fcb178", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,621
c
#ifndef demo_cards2_test_DeckTest_h #define demo_cards2_test_DeckTest_h 1 #include "demo/cards2/Deck.h" #include "demo/cards2_test/DeckTestMeta.h" #include "demo/cards2_test/TestCase.h" namespace demo { namespace cards2_test { // Auto-generated test class for demo.cards2.Deck class DeckTest : public demo::cards2_tes...
32.06
16
(translation_unit) "#ifndef demo_cards2_test_DeckTest_h\n#define demo_cards2_test_DeckTest_h 1\n\n#include "demo/cards2/Deck.h"\n#include "demo/cards2_test/DeckTestMeta.h"\n#include "demo/cards2_test/TestCase.h"\n\nnamespace demo {\nnamespace cards2_test {\n\n// Auto-generated test class for demo.cards2.Deck\nclass Dec...
77
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.06, "nodes": 36, "errors": 0, "source_hash": "2b0bf5f6139b28bbc03d33331d40a8b8e0ccddeea3a0e7e4d9fd1bcb40880f72", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,622
c
#pragma once #include "PlayFabError.h" namespace PlayFab { class PlayFabSettings { public: static bool useDevelopmentEnvironment; static FString serverURL; static FString developmentEnvironmentURL; static FString productionEnvironmentURL; static FString logicServerURL; static FSt...
26.27
30
(translation_unit) "#pragma once\n\n#include "PlayFabError.h"\n\nnamespace PlayFab\n{\n\n class PlayFabSettings\n {\n public:\n\n static bool useDevelopmentEnvironment;\n static FString serverURL;\n static FString developmentEnvironmentURL;\n static FString productionEnvironmentURL;\n static F...
166
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.27, "nodes": 87, "errors": 0, "source_hash": "cf0632c49bf34e6b2b6ddaec716da5d70f588949992257ad436c890a6edb0787", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,623
c
/****************************************************************** iLBC Speech Coder ANSI-C Source Code LPCencode.h Copyright (C) The Internet Society (2004). All Rights Reserved. ******************************************************************/ #ifndef _...
33.08
26
(translation_unit) "/******************************************************************\n \n iLBC Speech Coder ANSI-C Source Code\n \n LPCencode.h\n \n Copyright (C) The Internet Society (2004). \n All Rights Reserved.\n \n **************************************************************...
51
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.08, "nodes": 37, "errors": 0, "source_hash": "36d5ab8600ec0ae09ff5c4d7b88fc573ed0175ea8981cb6c77b495f34a3f654f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,624
c
#warning "omg" #warning "lol"
14
2
(translation_unit) "#warning "omg"\n#warning "lol"\n" (preproc_call) "#warning "omg"\n" (preproc_directive) "#warning" (preproc_arg) ""omg"" (preproc_call) "#warning "lol"\n" (preproc_directive) "#warning" (preproc_arg) ""lol""
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 14.0, "nodes": 6, "errors": 0, "source_hash": "13c5318302167c0940dd73a3f4740bf1427c15851015f9d88ea100a73b1f7b89", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#warning \"om...
78,625
c
#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/stat.h> #include "restart.h" #define BUFSIZE 256 #define FIFO_MODES O_RDONLY int dofifoparent(const char *fifoname) { char buf[BUFSIZE]; int fd; int rval; fprintf(stderr, "[%ld]:(parent) about ...
31.03
31
(translation_unit) "#include <errno.h>\n#include <fcntl.h> \n#include <stdio.h>\n#include <string.h>\n#include <unistd.h>\n#include <sys/stat.h>\n#include "restart.h"\n#define BUFSIZE 256\n#define FIFO_MODES O_RDONLY\n\nint dofifoparent(const char *fifoname) {\n char buf[BUFSIZE];\n int fd;\n int rval;\n\n fpr...
305
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 31.03, "nodes": 176, "errors": 0, "source_hash": "3cbcc447f04535c72a710dbf7ec301fa42b322b7efd86b27b7565f5987628c39", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,626
c
#include <sot/core/op-point-modifier.hh> typedef boost::mpl::vector<dynamicgraph::sot::OpPointModifier> entities_t;
57
2
(translation_unit) "#include <sot/core/op-point-modifier.hh>\n\ntypedef boost::mpl::vector<dynamicgraph::sot::OpPointModifier> entities_t;\n" (preproc_include) "#include <sot/core/op-point-modifier.hh>\n" (#include) "#include" (system_lib_string) "<sot/core/op-point-modifier.hh>" (type_definition) "typedef ...
25
1
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 57.0, "nodes": 15, "errors": 0, "source_hash": "8150a9c53b94336abb9788da2f991bccd8919bb672eacad2b5fac4a04833a814", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
78,627
c
#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/param.h> #include <sys/pstat.h> #include <machine/inline.h> long long cpucycles_hppapstat(void) { register long long result; _MFCTL(16,result); return result; } long long cpucycles_hppapstat_persecond(void) { struct pst_processor pst;...
22.61
23
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <sys/types.h>\n#include <sys/param.h>\n#include <sys/pstat.h>\n#include <machine/inline.h>\n\nlong long cpucycles_hppapstat(void)\n{\n register long long result;\n _MFCTL(16,result);\n return result;\n}\n\nlong long cpucycles_hppapstat_persecond(v...
156
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.61, "nodes": 105, "errors": 0, "source_hash": "390b2c0e95ea731d1c0eae36f3c00f42f0253c58c4fec806e09ce006278b6e9a", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,628
c
#pragma once #include <basis/seadTypes.h> namespace sead { class Base64 { public: static void encode(char* dst, const void* src, size_t length, bool url_safe); static bool decode(void* dst, size_t dst_size, const char* src, size_t src_size, size_t* decoded_size); }; } // namespace sead...
25.58
12
(translation_unit) "#pragma once\n\n#include <basis/seadTypes.h>\n\nnamespace sead\n{\nclass Base64\n{\npublic:\n static void encode(char* dst, const void* src, size_t length, bool url_safe);\n static bool decode(void* dst, size_t dst_size, const char* src, size_t src_size,\n size_t* decoded...
93
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.58, "nodes": 59, "errors": 0, "source_hash": "e70ab0f428fb4b492cdad9ae61783094ad592277a4a3cbccfc66650b46cababc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,629
c
#ifndef ENTRYPOINT_H #define ENTRYPOINT_H #ifdef HZ_PLATFORM_WINDOWS #include "application.h" #include "log.h" extern HazelApi::Application* HazelApi::CreateApplication(); int main(int argc, char** argv) { HazelApi::Log::Init(); HZ_CORE_WARN("Initialized Log!"); HZ_CLIENT_INFO("Hello Log!"...
18.26
23
(translation_unit) "#ifndef ENTRYPOINT_H \n#define ENTRYPOINT_H \n \n#ifdef HZ_PLATFORM_WINDOWS \n \n#include "application.h" \n#include "log.h" \n \nextern HazelApi::Application* HazelApi::CreateApplication(); \n \nint main(int argc, char** argv) \n{ \n HazelApi::Log::Init(); \n HZ_CORE_WARN("Initialized Log!");...
134
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 18.26, "nodes": 77, "errors": 0, "source_hash": "880f5e5f3b4da321d9d41adc01706a81a346196f017ef259d93eb7c14fabe1ea", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,630
c
/* * web_thing_action.h * * Created on: Jun 27, 2019 * Last update: Apr 02, 2021 * Author: kz */ #ifndef WEB_THING_ACTION_H_ #define WEB_THING_ACTION_H_ #include <time.h> #include "common.h" #include "web_thing.h" typedef struct action_t action_t; typedef struct action_input_prop_t action_input_prop_t; ...
24.41
90
(translation_unit) "/*\n * web_thing_action.h\n *\n * Created on: Jun 27, 2019\n * Last update: Apr 02, 2021\n * Author: kz\n */\n\n#ifndef WEB_THING_ACTION_H_\n#define WEB_THING_ACTION_H_\n\n#include <time.h>\n\n#include "common.h"\n#include "web_thing.h"\n\ntypedef struct action_t action_t;\ntypedef struct acti...
506
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 24.41, "nodes": 377, "errors": 0, "source_hash": "c93c884cba5f95009ae56f6153a865732b91cb91ffa20b541df6854d6cf6a30d", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,631
c
#pragma once #include <memory> #include <base/title_bar/AbstractTitleItemProvider.h> #include <base/title_bar/QuartzItem.h> namespace Quartz { namespace Ext { namespace Sample { class TitleBarButton : public QuartzItem { Q_OBJECT public: explicit TitleBarButton(QWidget* parent = nullptr); ~TitleBarButt...
29.28
25
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include <base/title_bar/AbstractTitleItemProvider.h>\n#include <base/title_bar/QuartzItem.h>\n\nnamespace Quartz { namespace Ext { namespace Sample {\n\nclass TitleBarButton : public QuartzItem {\n Q_OBJECT\npublic:\n explicit TitleBarButton(QWidget* paren...
185
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.28, "nodes": 99, "errors": 0, "source_hash": "ed0d807ffd74b408dca6bfa528b78693248a552fe93c7d50b7119392037b4a1b", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,632
c
/* * return 'true' if c is a graphic character * (33-126) */ isgraph(register int c) { return (c >= 33 && c <= 126); }
16.57
7
(translation_unit) "/*\n * return 'true' if c is a graphic character\n * (33-126)\n */\nisgraph(register int c) {\n return (c >= 33 && c <= 126);\n}\n\n" (comment) "/*\n * return 'true' if c is a graphic character\n * (33-126)\n */" (macro_type_specifier) "isgraph(register int c)" (identifier) "isgraph" (()...
31
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 16.57, "nodes": 19, "errors": 0, "source_hash": "d8409d0f215ab939ed5967c985d4d1c0c8554ceabbe33dc2880bf21a9c947d2a", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "macro_type_specifier", "text": "is...
78,633
c
/* * Copyright 2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef CHART_LEGEND_H #define CHART_LEGEND_H #include <Point.h> #include <Size.h> class BView; class ChartDataRange; class ChartLegend { public: ChartLegend(int32 level = 0); // A lower level means more ...
23.2
35
(translation_unit) "/*\n * Copyright 2009, <NAME>, <EMAIL>.\n * Distributed under the terms of the MIT License.\n */\n#ifndef CHART_LEGEND_H\n#define CHART_LEGEND_H\n\n#include <Point.h>\n#include <Size.h>\n\n\nclass BView;\nclass ChartDataRange;\n\n\nclass ChartLegend {\npublic:\n ChartLegend(int32 level = 0);\...
185
6
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 23.2, "nodes": 125, "errors": 0, "source_hash": "3c810315046610ae5bbb86cb4a68b0940b57f8f9c753bffb395e6b5f9f53d34e", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,634
c
// // AMAppDelegate.h // AMSmoothAlertViewDemo // // Created by AMarliac on 2014-04-24. // Copyright (c) 2014 AMarliac. All rights reserved. // #import <UIKit/UIKit.h> @interface AMAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
25.18
11
(translation_unit) "//\n// AMAppDelegate.h\n// AMSmoothAlertViewDemo\n//\n// Created by AMarliac on 2014-04-24.\n// Copyright (c) 2014 AMarliac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AMAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.18, "nodes": 25, "errors": 0, "source_hash": "ed8f4c979eaf55ff750c14e4435b7aa19d07cce270b570a9fb6b95d2f3f0c7bc", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,635
c
#ifndef _GLDEFERREDGEOMETRYRENDERSTAGE_H_ #define _GLDEFERREDGEOMETRYRENDERSTAGE_H_ #include "cilantroengine.h" #include "graphics/GLGeometryRenderStage.h" #include <set> class GLRenderStage; class GLDeferredGeometryRenderStage : public GLGeometryRenderStage { public: __EAPI GLDeferredGeometryRenderStage (); ...
37.04
25
(translation_unit) "#ifndef _GLDEFERREDGEOMETRYRENDERSTAGE_H_\n#define _GLDEFERREDGEOMETRYRENDERSTAGE_H_\n\n#include "cilantroengine.h"\n#include "graphics/GLGeometryRenderStage.h"\n#include <set>\n\nclass GLRenderStage;\n\nclass GLDeferredGeometryRenderStage : public GLGeometryRenderStage\n{\npublic:\n __EAPI GLDef...
185
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 37.04, "nodes": 111, "errors": 0, "source_hash": "c9045f7ccc674b0057228a0b549b421ff867ff06759b20ac2b914cd907150488", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,636
c
#include <kipr/botball.h> int main() { printf("set servos\n"); printf("set servos\n"); set_servo_position(1,593); msleep(200); ao(); printf("Start while loop\n"); while (analog(0)<=4000) { msleep(5); //If Mr. Reflecter sees dark go right ...
20.73
26
(translation_unit) "#include <kipr/botball.h>\n\nint main()\n{\n \n printf("set servos\n");\n printf("set servos\n");\n set_servo_position(1,593);\n msleep(200);\n ao();\n \n printf("Start while loop\n"); \n while (analog(0)<=4000) { \n msleep(5);\n //If Mr. Reflec...
184
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.73, "nodes": 87, "errors": 0, "source_hash": "063d661b0f5dbbf577b14b2ddd8598b73a09432b426f6c15e2f4310746e5580f", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,637
c
/* ***************************************************************** * Copyright Copyright (c) 2015- Hisilicon Technologies CO., Ltd. * File name cmdlst_drv.h * Description: * * Version 1.0 * Date 2015-05-17 16:28:35 * Author sunjikun_s00236180 ******************************...
42.19
32
(translation_unit) "/* *****************************************************************\n * Copyright Copyright (c) 2015- Hisilicon Technologies CO., Ltd.\n * File name cmdlst_drv.h\n * Description:\n *\n * Version 1.0\n * Date 2015-05-17 16:28:35\n * Author sunjikun_s00236180\n **...
299
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 42.19, "nodes": 223, "errors": 0, "source_hash": "4b9603ec521772423f87a82137b986b81067cd3676f064cafecc61144e748862", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,638
c
/* * fft_memory.c * * Created on: Jan 3, 2019 * Author: finn */ #include "fft_memory.h" uint8_t fft_memory[FFT_MEMORY_SIZE] __used __section(".extsram"); /** * Assignes memory to all N given instances. Returns 1 on success. * This might fail if not enough memory is available. If disable_on_overflow is 1,...
30.79
38
(translation_unit) "/*\n * fft_memory.c\n *\n * Created on: Jan 3, 2019\n * Author: finn\n */\n#include "fft_memory.h"\n\nuint8_t fft_memory[FFT_MEMORY_SIZE] __used __section(".extsram");\n\n/**\n * Assignes memory to all N given instances. Returns 1 on success.\n * This might fail if not enough memory is availab...
211
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 30.79, "nodes": 120, "errors": 0, "source_hash": "e7f7e0a9c245443d2da7e0ad9a0064919d2e2f2984232d0658274171eeb540d4", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,639
c
#include "GameObject.h" #include "TextLabel.h" #include <functional> class QuestTracker : public GameObject { public: enum QuestTrackerType { QUEST_TRACKER_UNIQUE_OBJECTIVE, QUEST_TRACKER_MULTI_OBJECTIVE }; QuestTrackerType type = QUEST_TRACKER_UNIQUE_OBJECTIVE; // Constructor QuestTracker(std::string q...
27.5
32
(translation_unit) "#include "GameObject.h"\n\n#include "TextLabel.h"\n\n#include <functional>\n\nclass QuestTracker : public GameObject\n{\npublic:\n\n enum QuestTrackerType\n {\n QUEST_TRACKER_UNIQUE_OBJECTIVE,\n QUEST_TRACKER_MULTI_OBJECTIVE\n };\n\n QuestTrackerType type = QUEST_TRACKER_UNIQUE_OBJECTIVE;\n\n // C...
232
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.5, "nodes": 156, "errors": 0, "source_hash": "247e119218455fc8f2e74e186a11f4498434d95308d173961a533c6f93a89498", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,640
c
/* GLFont.h - by <NAME> */ #ifndef GLFONT_DEFINED #define GLFONT_DEFINED 1 #include <ft2build.h> #include FT_FREETYPE_H #include <setjmp.h> #if defined(__APPLE__) || defined(MACOSX) #include <GLUT/glut.h> #include <OpenGL/glu.h> #include <OpenGL/gl.h> #else #ifdef WIN32 #define WINDOWS_LEAN_AND_MEAN #include <window...
37.84
70
(translation_unit) "/* GLFont.h - by <NAME> */\n\n#ifndef GLFONT_DEFINED\n#define GLFONT_DEFINED 1\n\n#include <ft2build.h>\n#include FT_FREETYPE_H\n#include <setjmp.h>\n\n#if defined(__APPLE__) || defined(MACOSX)\n#include <GLUT/glut.h>\n#include <OpenGL/glu.h>\n#include <OpenGL/gl.h>\n#else\n#ifdef WIN32\n#define WIN...
510
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.84, "nodes": 361, "errors": 0, "source_hash": "3ad2626a27f431971595f567a40b61337225e4e7d1e0e13ac6fcfba36aaba72b", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,641
c
/* * src/covid.h * * Copyleft (C) 2020 <NAME> (a.k.a. kala13x) * * Get and parse COVID-19 case statistics from https://stopcov.ge/ */ #ifndef __COVID_H__ #define __COVID_H__ #ifdef __cplusplus extern "C" { #endif typedef struct { int nQuarantined; int nSupervision; int nConfirmed; int nReco...
17.79
24
(translation_unit) "/*\n * src/covid.h\n * \n * Copyleft (C) 2020 <NAME> (a.k.a. kala13x)\n *\n * Get and parse COVID-19 case statistics from https://stopcov.ge/\n */\n\n#ifndef __COVID_H__\n#define __COVID_H__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef struct {\n int nQuarantined;\n int nSupervisi...
71
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 17.79, "nodes": 50, "errors": 0, "source_hash": "900a35c5296f0ae170adbab451d4e7aafb6cd8ebfd2ce3ccd300006d6f86d5f9", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,642
c
#include "cpu_control/dbg_cpu_thread_control.h" #include "std_types.h" #include "target/target_os_api.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <pthread.h> #include <sys/time.h> typedef enum { THREAD_STATE...
23.76
114
(translation_unit) "#include "cpu_control/dbg_cpu_thread_control.h"\n#include "std_types.h"\n#include "target/target_os_api.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <pthread.h>\n#include <sys/time.h>...
755
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 23.76, "nodes": 432, "errors": 0, "source_hash": "22612f8ee9cc4f06ba222462255989b71a1ec6680c0057c234c83346bf2a0d6f", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,643
c
#ifndef SHAPE_H #define SHAPE_H #include "../core/types.h" #include "../core/builder.h" #include "../core/ecs.h" #include "../math/vec.h" #include "../gfx/mesher.h" #include "bullet/btBulletCollisionCommon.h" #include "bullet/BulletCollision/CollisionShapes/btShapeHull.h" #include "quickhull.h" NS_BEGIN class Co...
30.98
145
(translation_unit) "#ifndef SHAPE_H\n#define SHAPE_H\n\n#include "../core/types.h"\n#include "../core/builder.h"\n#include "../core/ecs.h"\n\n#include "../math/vec.h"\n\n#include "../gfx/mesher.h"\n\n#include "bullet/btBulletCollisionCommon.h"\n#include "bullet/BulletCollision/CollisionShapes/btShapeHull.h"\n\n#include...
1,576
73
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 30.98, "nodes": 960, "errors": 0, "source_hash": "dda0bb2ae285ec76ce484e2d054c10ad2070d4eacbcbea90faadc78a80435932", "categorized_nodes": 691}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,644
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GamsAerialVehicle.h" #include "GamsDjiPhantom.generated.h" class UStaticMeshComponent; /** * */ UCLASS() class GAMSAGENTS_API AGamsDjiPhantom : public AGamsAerialVehicle { GENERATED_BOD...
24.29
21
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GamsAerialVehicle.h"\n#include "GamsDjiPhantom.generated.h"\n\nclass UStaticMeshComponent;\n\n/**\n * \n */\nUCLASS()\nclass GAMSAGENTS_API AGamsDjiPhantom : public A...
80
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.29, "nodes": 41, "errors": 0, "source_hash": "896b433b5e117da6d9d7bd806d185727de304e731f9d402e23def8ba6e547896", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,645
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CNObservable.h" @class NSString; @interface CNAutocompleteObservable : CNObservable { NSString *_debugDescription; CNObservable *_observable; } @property(retain, nonat...
32.06
18
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "CNObservable.h"\n\n@class NSString;\n\n@interface CNAutocompleteObservable : CNObservable\n{\n NSString *_debugDescription;\n CNObservable *_obser...
125
14
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.06, "nodes": 74, "errors": 0, "source_hash": "88bb638b203e05084984f624b32dbf6346e1d49b90dc7ff9fdd3c60431a32b75", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
78,646
c
#include <ntddk.h> #include <intrin.h> #include "smbdoor.h" DRIVER_INITIALIZE DriverEntry; DRIVER_UNLOAD SmbDoorUnload; #ifdef ALLOC_PRAGMA #pragma alloc_text( INIT, DriverEntry ) #pragma alloc_text( PAGE, SmbDoorUnload ) #endif NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING Registry...
20.17
30
(translation_unit) "#include <ntddk.h> \n#include <intrin.h> \n \n#include "smbdoor.h" \n \nDRIVER_INITIALIZE DriverEntry; \nDRIVER_UNLOAD SmbDoorUnload; \n \n#ifdef ALLOC_PRAGMA \n#pragma alloc_text( INIT, DriverEntry ) \n#pragma alloc_text( PAGE, SmbDoorUnload ) \n#endif \n \nNTSTATUS DriverEntry(PDRIVER_OBJECT Drive...
114
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.17, "nodes": 71, "errors": 0, "source_hash": "0853ef381c5c5a67b6771eb6d15f42e1e46d6b46855a376a60da169b8493ec99", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,647
c
#ifndef __BINARY_INSERTION_SORT_H #define __BINARY_INSERTION_SORT_H #include "../algoritimo.h" extern const Algoritimo alg_binary_insertion_sort; int binary_insertion_sort(char** linhas, unsigned int qtd_linhas); #endif
35.67
6
(translation_unit) "#ifndef __BINARY_INSERTION_SORT_H\n#define __BINARY_INSERTION_SORT_H\n\n#include "../algoritimo.h"\n\nextern const Algoritimo alg_binary_insertion_sort;\n\nint binary_insertion_sort(char** linhas, unsigned int qtd_linhas);\n\n#endif\n" (preproc_ifdef) "#ifndef __BINARY_INSERTION_SORT_H\n#define __...
43
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 35.67, "nodes": 32, "errors": 0, "source_hash": "11519bf57ed7ddfbfdb7b2e1909b05988f460967483f7821588ea54e988e703a", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,648
c
#ifndef RecoPixelVertexingPixelTripletsPixelTuplesHeterogeneousProduct_H #define RecoPixelVertexingPixelTripletsPixelTuplesHeterogeneousProduct_H #include <cstdint> #include <vector> #include "HeterogeneousCore/Product/interface/HeterogeneousProduct.h" #include "RecoPixelVertexing/PixelTrackFitting/interface/FitResu...
39.88
41
(translation_unit) "#ifndef RecoPixelVertexingPixelTripletsPixelTuplesHeterogeneousProduct_H\n#define RecoPixelVertexingPixelTripletsPixelTuplesHeterogeneousProduct_H\n\n\n#include <cstdint>\n#include <vector>\n\n#include "HeterogeneousCore/Product/interface/HeterogeneousProduct.h"\n#include "RecoPixelVertexing/PixelTr...
285
20
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 39.88, "nodes": 200, "errors": 0, "source_hash": "3052c927e76322f0198fef7266f5f2814b925253fc886436454b452c1b02aa3d", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,649
c
#include <stdio.h> int main(){ int i; for(i=0;i<1000;i++) printf("Hello World\n"); return 0; }
14
7
(translation_unit) "#include <stdio.h>\n\nint main(){\n int i;\n for(i=0;i<1000;i++)\n printf("Hello World\n");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(){\n int i;\n for(i=0;i<1000;i++)\n prin...
51
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 14.0, "nodes": 30, "errors": 0, "source_hash": "e285c2a068f01ab60137c694610c909c08d098e6a8c45c45b267b7d9ff793364", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
78,650
c
#include<stdio.h> #include <sys/types.h> #include<unistd.h> #include<stdlib.h> #include <sys/wait.h> int main(int argc ,char** argv) { //Checking for valid input if(argc != 2) { printf("Invalid Input\n"); } char* c = argv[1]; int t = atoi(c); //Creating new process and pid hold...
21.61
49
(translation_unit) "#include<stdio.h>\n#include <sys/types.h>\n#include<unistd.h>\n#include<stdlib.h>\n#include <sys/wait.h>\n\nint main(int argc ,char** argv)\n{\n \n //Checking for valid input\n if(argc != 2)\n {\n printf("Invalid Input\n");\n }\n char* c = argv[1];\n int t = atoi(c);\n \n ...
264
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 21.61, "nodes": 139, "errors": 0, "source_hash": "b5a37bd66fc1c8635f67199cafefcb8c127bd88646e99e7a728bd0c128bb8117", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,651
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_POWER_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_POWER_HANDLER_H_ #incl...
40.07
43
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_POWER_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVIC...
243
12
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 40.07, "nodes": 133, "errors": 0, "source_hash": "6a1aaa114bda49ae67867cf6ee2c08db16d5aa32b3736f4fb2218ec967ea6d94", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,652
c
#ifndef REACTOR_H #define REACTOR_H #include "context.h" #include <lace/singleton.h> #include "file_descriptor.h" class trigger; class reactor : public lace::singleton<reactor> { friend class lace::singleton<reactor>; reactor(); public: ~reactor(); bool alone() const; bool armed() const; int poll(con...
21.29
21
(translation_unit) "#ifndef REACTOR_H\n#define REACTOR_H\n\n#include "context.h"\n#include <lace/singleton.h>\n#include "file_descriptor.h"\n\nclass trigger;\n\nclass reactor : public lace::singleton<reactor> {\n\n friend class lace::singleton<reactor>;\n reactor();\n\npublic:\n ~reactor();\n\n bool alone() const;\...
155
13
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.29, "nodes": 83, "errors": 0, "source_hash": "1eab9c565e4c11b7bf02f22f064cf13df2a86dd89019adafbe61b8bb9bc3202c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,653
c
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // -*- c++ -*- #ifndef FAISS_METRIC_TYPE_H #define FAISS_METRIC_TYPE_H namespace faiss { /// The metric space for vector compar...
34.84
31
(translation_unit) "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n// -*- c++ -*-\n\n#ifndef FAISS_METRIC_TYPE_H\n#define FAISS_METRIC_TYPE_H\n\nnamespace faiss {\n\n/// ...
72
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.84, "nodes": 40, "errors": 0, "source_hash": "2c2af91f923c0b6a0d508d5d354e87d932d03a2553fd613dbfff10608cd95171", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,654
c
#include <stdio.h> extern void tryToRev(int); int main(void) { puts("testing 1..."); tryToRev(100); puts("testing 2..."); tryToRev(1432175799); return 0; }
15.1
10
(translation_unit) "#include <stdio.h>\n\nextern void tryToRev(int);\n\nint main(void)\n{\n puts("testing 1...");\n tryToRev(100);\n puts("testing 2...");\n tryToRev(1432175799);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "e...
70
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.1, "nodes": 37, "errors": 0, "source_hash": "202fd3e10d17bb117fffe9ed67f8a54a27b4c96204ef060bbe9b6d0f4e8cc4d4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,655
c
// driver.h // Primitive driver system #ifndef INCLUDE_TROS_DRIVER_H #define INCLUDE_TROS_DRIVER_H #define TROS_DRIVER_OK 1 #define TROS_DRIVER_WASOPEN -2 #define TROS_DRIVER_ERROR -1 typedef enum { DRV_GENERIC = 0x01, DRV_BLOCK, DRV_FRAMEBUFFER } driver_t; typedef struct { char n...
28
50
(translation_unit) "// driver.h\n// Primitive driver system\n\n#ifndef INCLUDE_TROS_DRIVER_H\n#define INCLUDE_TROS_DRIVER_H\n\n#define TROS_DRIVER_OK 1\n#define TROS_DRIVER_WASOPEN -2\n#define TROS_DRIVER_ERROR -1\n\ntypedef enum\n{\n DRV_GENERIC = 0x01,\n DRV_BLOCK,\n DRV_FRAMEBUFFER\n} dri...
473
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.0, "nodes": 342, "errors": 0, "source_hash": "ade86c23f5668387387b292c5851ec874f099a480007700c33bb9a0fbccd0dd2", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,656
c
// <NAME> <<EMAIL>> #include <stdio.h> #include <stdlib.h> #include <time.h> enum { len = 12 }; void func_bad(void) { char id[len]; int r; int num; // ... // ruleid: raptor-insecure-api-rand-srand r = rand(); num = snprintf(id, len, "ID%-d", r); // ... } void func_good(void) { char id[len]; int r; i...
15.77
39
(translation_unit) "// <NAME> <<EMAIL>>\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\nenum { len = 12 };\n\nvoid func_bad(void) \n{\n char id[len];\n int r;\n int num;\n\n // ...\n\n // ruleid: raptor-insecure-api-rand-srand\n r = rand();\n num = snprintf(id, len, "ID%-d", r);\n\n // ...\n}\n\nvoid f...
215
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 15.77, "nodes": 122, "errors": 0, "source_hash": "f0680c0ec6f97a690b3df90dd047e48d32797c22baf3757a1d304610f07ca79b", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,657
c
#include <stdlib.h> int foo(void);
16.5
2
(translation_unit) "#include <stdlib.h>\n\nint foo(void);\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (declaration) "int foo(void);" (primitive_type) "int" (function_declarator) "foo(void)" (identifier) "foo" (parameter_list) "(void...
14
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 16.5, "nodes": 10, "errors": 0, "source_hash": "414565a6c3158f846bff4b4c66c7bfcd7848142242e7a756694910acec940582", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
78,658
c
#include <types.h> #include <serial.h> #include <debugger.h> #include <stdarg.h> #include <lib.h> static uint32_t uintToBase(uint64_t value, char * buffer, uint32_t base); int strlen(const char * s); void itoc(int number, char str[]); static char buffer[64] = { '0' }; void sPrint(const char* s) { for (int i = 0; s[i...
18.6
235
(translation_unit) "#include <types.h>\n#include <serial.h>\n#include <debugger.h>\n#include <stdarg.h>\n#include <lib.h>\n\nstatic uint32_t uintToBase(uint64_t value, char * buffer, uint32_t base);\nint strlen(const char * s);\nvoid itoc(int number, char str[]);\nstatic char buffer[64] = { '0' };\n\nvoid sPrint(const ...
1,780
2
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 18.6, "nodes": 1139, "errors": 0, "source_hash": "4d8b4a18b20aa7dff98498c245d206e207f6618d42b2969ce71bd08b0b4fe4eb", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,659
c
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2001-2006. ------------------------------------------------------------------------- $Id$ $DateTime$ Description: Implements a seat action to handle IK on the passenger body -------------------...
33.29
48
(translation_unit) "/*************************************************************************\nCrytek Source File.\nCopyright (C), Crytek Studios, 2001-2006.\n-------------------------------------------------------------------------\n$Id$\n$DateTime$\nDescription: Implements a seat action to handle IK on the passenger...
304
19
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 33.29, "nodes": 195, "errors": 0, "source_hash": "106272ef096a21928a243a7177e150852b3703658f7e60a0cd4398bab3ad6f7f", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,660
c
#ifndef _ANIMATEDSPR_GFXS_ #define _ANIMATEDSPR_GFXS_ #include <coleco.h> #include "pacspritegfx.h" // generetad by gfx2col #endif
25.4
5
(translation_unit) "#ifndef _ANIMATEDSPR_GFXS_\n#define _ANIMATEDSPR_GFXS_\n\n#include <coleco.h>\n\n#include "pacspritegfx.h" // generetad by gfx2col\n\n#endif\n" (preproc_ifdef) "#ifndef _ANIMATEDSPR_GFXS_\n#define _ANIMATEDSPR_GFXS_\n\n#include <coleco.h>\n\n#include "pacspritegfx.h" // generetad by gfx2col\n\n#...
18
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 25.4, "nodes": 13, "errors": 0, "source_hash": "55f5e2d6fb1fbd0f35f17716fe18da2436ca12f8ca1b178770618983eac97051", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _A...
78,661
c
#pragma once #include "../common.h" struct Object { int32_t id; uint8_t *obj_name, *obj_desc, *obj_keywords[]; int32_t obj_weight; };
18.57
7
(translation_unit) "#pragma once\n\n#include "../common.h"\n\nstruct Object {\n int32_t id;\n uint8_t *obj_name, *obj_desc, *obj_keywords[];\n int32_t obj_weight;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "../common.h"\n" (#incl...
42
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 18.57, "nodes": 27, "errors": 0, "source_hash": "57e09640804dca64aefe62bb65ab1b7ca1822f4fb8d4a9bae9f9a81d578a3211", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,662
c
#include "algo.h" #include <Python.h> static void* create_map(struct game_env* env, PyObject* list) { env->size = PyList_Size(list); env->desk = (unsigned char**)calloc(env->size + 1, sizeof(unsigned char*)); // printf("read player: %u\n", env->player); // printf("read deep: %u\n", env->deep); if (!env->desk) { ...
29.21
213
(translation_unit) "#include "algo.h"\n#include <Python.h>\n\nstatic void* create_map(struct game_env* env, PyObject* list) {\n env->size = PyList_Size(list);\n env->desk = (unsigned char**)calloc(env->size + 1, sizeof(unsigned char*));\n// printf("read player: %u\n", env->player);\n// printf("read deep: %u\n", env->de...
2,133
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 29.21, "nodes": 1212, "errors": 0, "source_hash": "e724d80218cbb9aff053971e65025b80ab3929f485c339d6bfdaba9433dec3dc", "categorized_nodes": 874}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,663
c
#ifndef CONST_H #define CONST_H #include<sys/time.h> /////////// astrophisical constant (MKS) ////////////// const double Gsi = 6.67259E-11; // m^3/kg/sec^2 const double csi = 2.99792458E08; // m/sec const double Pc = 3.08567802E16; //1pc const double AUsi = 1.49597892E11; // 1AU const double Rsolsi = 6.9599E08; ...
32.86
59
(translation_unit) "#ifndef CONST_H\n#define CONST_H\n\n#include<sys/time.h>\n\n/////////// astrophisical constant (MKS) //////////////\nconst double Gsi = 6.67259E-11; // m^3/kg/sec^2\nconst double csi = 2.99792458E08; // m/sec\nconst double Pc = 3.08567802E16; //1pc\nconst double AUsi = 1.49597892E11; // 1AU\ncon...
593
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 32.86, "nodes": 417, "errors": 0, "source_hash": "74bbca9713d8584d1af4b71a8ae78150fcf6cfbb552b53989c25627d8feccce3", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,664
c
//////////////////////////////////////////////////////////////////////////////// // Distributed under the Boost Software License, Version 1.0. // // (See accompanying file LICENSE or copy at // // https://www.boost.org/LICENSE_1_0.txt) ...
36.07
131
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n// Distributed under the Boost Software License, Version 1.0. //\n// (See accompanying file LICENSE or copy at //\n// https://www.boost.org/LICENSE_1_0.t...
526
36
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 36.07, "nodes": 316, "errors": 0, "source_hash": "3a807ac2c7ed6d451b5eb12cddd048ef4075f1b791169be329b6604d5a5afb6c", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,665
c
// Fake AVR watchdog #ifndef WATCHDOG_H #define WATCHDOG_H void wdt_reset(void); void wdt_enable(uint16_t t); void wdt_disable(void); #define WDTO_15MS 0 #define WDTO_30MS 1 #define WDTO_60MS 2 #define WDTO_120MS 3 #define WDTO_250MS 4 #define WDTO_500MS 5 #define WDTO_1S 6 #define WDTO_2S 7 #define ...
20.94
17
(translation_unit) "// Fake AVR watchdog\n#ifndef WATCHDOG_H\n#define WATCHDOG_H\n\nvoid wdt_reset(void);\nvoid wdt_enable(uint16_t t);\nvoid wdt_disable(void);\n\n#define WDTO_15MS 0\n#define WDTO_30MS 1\n#define WDTO_60MS 2\n#define WDTO_120MS 3\n#define WDTO_250MS 4\n#define WDTO_500MS 5\n#define WDTO_1S ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.94, "nodes": 69, "errors": 0, "source_hash": "2056c1d6060265add3b78390a6a95c381a56eb7be3d847bf975753a833e2250b", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,666
c
#ifndef UNZIP_CLASS #define UNZIP_CLASS #include "unzip.h" class UNZIP { private: struct RELEASE_STRING { char *str; struct RELEASE_STRING *next; } *stack; char commondir[ MAX_PATH ]; virtual void Free( void *r ); virtual int Push( char *str ); virtual char *Pop( void ); virtual char *JoinPath( char *a, ch...
27.47
32
(translation_unit) "#ifndef UNZIP_CLASS\n#define UNZIP_CLASS\n#include "unzip.h"\n\nclass UNZIP\n{\nprivate:\n struct RELEASE_STRING\n {\n char *str;\n struct RELEASE_STRING *next;\n } *stack;\n char commondir[ MAX_PATH ];\n virtual void Free( void *r );\n virtual int Push( char *str );\n virtual char *Pop( void );\n...
339
16
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.47, "nodes": 257, "errors": 0, "source_hash": "4bf3bd9d5e1ac9d53018c130dda5fd06875de334dc2da5669c46fc6ee3aced44", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,667
c
#pragma once #include <QWidget> namespace Ui { class PageBasic; } //基础组件 class PageBasic : public QWidget { Q_OBJECT public: explicit PageBasic(QWidget *parent = nullptr); ~PageBasic(); //QPushButton void initButton(); private: Ui::PageBasic *ui; };
15.12
17
(translation_unit) "#pragma once\n#include <QWidget>\n\nnamespace Ui {\nclass PageBasic;\n}\n\n//基础组件\nclass PageBasic : public QWidget\n{\n Q_OBJECT\npublic:\n explicit PageBasic(QWidget *parent = nullptr);\n ~PageBasic();\n\n //QPushButton\n void initButton();\n\nprivate:\n Ui::PageBasic *ui;\n};\n\...
85
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.12, "nodes": 55, "errors": 0, "source_hash": "67fe5a49d4bb831053ff6c1a0e0c231974a3e04e1b365ea05df9c42b01e9c1b0", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,668
c
#include "daemonize/daemonize.h" #include "server/server.h" static int running = 0; static int port = 0; static char *confFilename = "/etc/TCPserver/TCPserver.conf"; static char *logFilename = "/var/log/TCPserver.log"; static char *daemonName = "TCPserver"; static FILE *logStream; void server_signal_handler(int sig)...
26
43
(translation_unit) "#include "daemonize/daemonize.h"\n#include "server/server.h"\n\nstatic int running = 0;\nstatic int port = 0;\nstatic char *confFilename = "/etc/TCPserver/TCPserver.conf";\nstatic char *logFilename = "/var/log/TCPserver.log";\nstatic char *daemonName = "TCPserver";\nstatic FILE *logStream;\n\nvoid ...
355
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 26.0, "nodes": 192, "errors": 0, "source_hash": "5f800ea85d7fc5f32559d9fd98bb815b4aa2e68a32ab9151e24f8fe465685a7a", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,669
c
#pragma once // msvc does not support token for logical operators // https://stackoverflow.com/questions/24414124/why-does-vs-not-define-the-alternative-tokens-for-logical-operators #include <ciso646> // sometimes assumed #include <string> // only defined in stdlib.h double drand48();
34.75
8
(translation_unit) "#pragma once\n\n// msvc does not support token for logical operators\n// https://stackoverflow.com/questions/24414124/why-does-vs-not-define-the-alternative-tokens-for-logical-operators\n#include <ciso646>\n\n// sometimes assumed\n#include <string>\n\n// only defined in stdlib.h\ndouble drand48();\n...
22
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 34.75, "nodes": 14, "errors": 0, "source_hash": "6f9ed17eb22524c1d77eb6efe9228fb9720f22019f73e5dfad6a9c9a1336b17d", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,670
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <PhotosGraph/PGGraphEdge.h> @interface PGGraphPresentEdge : PGGraphEdge { } @property(readonly, nonatomic) unsigned long long numberOfAssets; @end
25.09
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <PhotosGraph/PGGraphEdge.h>\n\n@interface PGGraphPresentEdge : PGGraphEdge\n{\n}\n\n@property(readonly, nonatomic) unsigned long long numberOfAssets;\n\n...
42
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.09, "nodes": 25, "errors": 0, "source_hash": "3058025c15483b9fc585e869dc3a5f2be4102f537cb3f46dd766aef39ed8ce27", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,671
c
/* Copyright (C) 2015-2020 IoT.bzh author: <NAME> <<EMAIL>> 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...
23.54
142
(translation_unit) "/*\n Copyright (C) 2015-2020 IoT.bzh\n\n author: <NAME> <<EMAIL>>\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 Un...
1,016
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 23.54, "nodes": 636, "errors": 0, "source_hash": "d9d080b76c312f9b51fa2f36451039f180b1d84030669cb5d842f5f88a63f7a0", "categorized_nodes": 458}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
78,672
c
// // CVSDKSocketIOManager.h // Chainverse-SDK // // Created by <NAME> on 16/06/2021. // #import <Foundation/Foundation.h> @import SocketIO; NS_ASSUME_NONNULL_BEGIN @interface CVSDKBaseSocketIO : NSObject @property (nonatomic, nonatomic) SocketManager* manager; - (instancetype)init; - (void)connect; - (void)discon...
30.17
18
(translation_unit) "//\n// CVSDKSocketIOManager.h\n// Chainverse-SDK\n//\n// Created by <NAME> on 16/06/2021.\n//\n\n#import <Foundation/Foundation.h>\n@import SocketIO;\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CVSDKBaseSocketIO : NSObject\n@property (nonatomic, nonatomic) SocketManager* manager;\n- (instancetype)init...
171
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.17, "nodes": 117, "errors": 0, "source_hash": "b1311c3410dc5fdbe964eaad04f0e38d0a5b951d2f8223e88648ed627f45447f", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,673
c
/* <NAME> (<EMAIL>) */ /* * udpserver.c - A simple UDP echo server * usage: udpserver <port> */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <linux/udp.h> #de...
27.34
346
(translation_unit) "/*\n<NAME> (<EMAIL>)\n*/\n\n/*\n * udpserver.c - A simple UDP echo server\n * usage: udpserver <port>\n */\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <netdb.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arp...
2,799
0
{"language": "c", "success": true, "metadata": {"lines": 346, "avg_line_length": 27.34, "nodes": 1776, "errors": 0, "source_hash": "d998cc7627c5ec2c12faa1f0bc75ffe595efff350ac1a2a3720cc1e5315979c4", "categorized_nodes": 1210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
78,674
c
// // HBMyAssetReleaseController.h // HuaBi // // Created by Roy on 2018/11/8. // Copyright © 2018年 前海数交平台运营. All rights reserved. // #import "YJBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface HBMyAssetReleaseController : YJBaseViewController @property(nonatomic,strong)NSDictionary *dataDic; @property(n...
27.73
15
(translation_unit) "//\n// HBMyAssetReleaseController.h\n// HuaBi\n//\n// Created by Roy on 2018/11/8.\n// Copyright © 2018年 前海数交平台运营. All rights reserved.\n//\n\n#import "YJBaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HBMyAssetReleaseController : YJBaseViewController\n@property(nonatomic,strong)N...
81
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.73, "nodes": 48, "errors": 0, "source_hash": "d2799bc7b88f8635f75a3aef0a4bad576ac102d327d4cd9751aac62d464d550e", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Controlle...
78,675
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class MTResultsChangeGenerator, NSIndexPath; @protocol MTResultsChangeGeneratorDelegate <NSObject> - (void)generator:(MTResultsChangeGenerator *)arg1 didChangeObje...
42.9
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class MTResultsChangeGenerator, NSIndexPath;\n\n@protocol MTResultsChangeGeneratorDelegate <NSObject>\n- (void)generator:(MTResultsChang...
94
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 42.9, "nodes": 57, "errors": 0, "source_hash": "9f2c141d31aede0fad157257c98f878a3e10bf3536f0d1739694803c9f0ca394", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
78,676
c
/** ArticleListModel.h 启动引擎 Created by chenglei on 2017/07/21 Copyright © 2017年 All rights reserved. */ #import <UIKit/UIKit.h> #import "SlideModel.h" #import "AttachmentModel.h" @interface ArticleListModel : SlideModel @property(nonatomic,strong)AttachmentModel *attachment; @property(nonatomic, copy)NSStrin...
31.84
31
(translation_unit) "/**\n ArticleListModel.h\n 启动引擎\n \n Created by chenglei on 2017/07/21\n Copyright © 2017年 All rights reserved.\n */\n\n#import <UIKit/UIKit.h>\n#import "SlideModel.h"\n#import "AttachmentModel.h"\n\n@interface ArticleListModel : SlideModel\n\n@property(nonatomic,strong)AttachmentModel *attachment;\...
306
66
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 31.84, "nodes": 236, "errors": 0, "source_hash": "fbc9450790e4b06557a8e4cab3613da48c6358c1db36c2051c49ee0e2c46bdd2", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIK...
78,677
c
int *x; int bar() { int b; x = &b; }
5.83
6
(translation_unit) "int *x;\n\nint bar()\n{\n int b;\n x = &b;\n}\n" (declaration) "int *x;" (primitive_type) "int" (pointer_declarator) "*x" (*) "*" (identifier) "x" (;) ";" (function_definition) "int bar()\n{\n int b;\n x = &b;\n}" (primitive_type) "int" (function_declarator) "...
29
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 5.83, "nodes": 18, "errors": 0, "source_hash": "484273d03d99785b97a045fa29d49623a4458b7d6b09f5f19bbd6ac89123d0f9", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int *x;", "p...
78,678
c
// // MissionCell.h // Courier // // Created by 朱玉涵 on 16/8/11. // Copyright © 2016年 dabao. All rights reserved. // #import <UIKit/UIKit.h> @interface MissionCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIView *bgview; @property (weak, nonatomic) IBOutlet UILabel *contentLab; @property (weak, non...
26.62
13
(translation_unit) "//\n// MissionCell.h\n// Courier\n//\n// Created by 朱玉涵 on 16/8/11.\n// Copyright © 2016年 dabao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MissionCell : UITableViewCell\n@property (weak, nonatomic) IBOutlet UIView *bgview;\n\n@property (weak, nonatomic) IBOutlet UILabel *...
80
13
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.62, "nodes": 57, "errors": 0, "source_hash": "2dc478fd79ddef3d17b52c924d21313181a59644e5747b040b4223cb37df37cc", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
78,679
c
// // HMHubAPI.h // HomeMateSDK // // Created by Air on 2017/5/2. // Copyright © 2017年 orvibo. All rights reserved. // #import "HMBaseAPI.h" #import "HMTypes.h" @class Gateway; @interface HMHubAPI : HMBaseAPI /** 添加网关 @param gateway Gateway对象 @param valueBlock 添加结果 */ + (void)addGateway:(Gateway *)gateway r...
22.73
93
(ERROR) "//\n// HMHubAPI.h\n// HomeMateSDK\n//\n// Created by Air on 2017/5/2.\n// Copyright © 2017年 orvibo. All rights reserved.\n//\n\n#import "HMBaseAPI.h"\n#import "HMTypes.h"\n\n@class Gateway;\n\n@interface HMHubAPI : HMBaseAPI\n\n/**\n 添加网关\n @param gateway Gateway对象\n @param valueBlock 添加结果\n */\n+ (void)ad...
359
40
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 22.73, "nodes": 216, "errors": 0, "source_hash": "1d9f3f3e228cab80c0f5bd6778ff19afffc69496197dcc77692dc9968bb6e965", "categorized_nodes": 117}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// HMHubAPI.h\n// H...
78,680
c
// threadtracer.h // (c) 2017 by Game Studio Abraham Stolk Inc. #include <pthread.h> #ifdef __cplusplus extern "C" { #endif #define TT_CALLING_THREAD (pthread_t)(-1) extern int tt_signin( pthread_t tid, const char* threadname ); extern int tt_stamp( const char* cat, const char* tag, const char* phase ); extern in...
22.52
31
(translation_unit) "// threadtracer.h\n// (c) 2017 by Game Studio Abraham Stolk Inc.\n\n#include <pthread.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define TT_CALLING_THREAD (pthread_t)(-1)\n\nextern int tt_signin( pthread_t tid, const char* threadname );\n\nextern int tt_stamp( const char* cat, const char* tag...
220
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.52, "nodes": 128, "errors": 0, "source_hash": "5bd09be980ec0d8c20149a4ffdd1994c0bc82709c3b6b30dac989c657f7ce691", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,681
c
#pragma once #include "json.h" #include "jsonException.h" namespace miniJson { // constexpr function to determine a char is a specified number constexpr bool is1to9(char ch) { return ch >= '1' && ch <= '9'; } constexpr bool is0to9(char ch) { return ch >= '0' && ch <= '9'; } class Parser { public: // ctor expli...
32.95
38
(translation_unit) "#pragma once\n\n#include "json.h"\n#include "jsonException.h"\n\nnamespace miniJson {\n\n// constexpr function to determine a char is a specified number\nconstexpr bool is1to9(char ch) { return ch >= '1' && ch <= '9'; }\nconstexpr bool is0to9(char ch) { return ch >= '0' && ch <= '9'; }\n\nclass Pars...
394
15
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 32.95, "nodes": 228, "errors": 0, "source_hash": "645863533ee3ecdad1233c6782b6fe65549bb3772fd48b64dc71051d11d3411a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,682
c
#ifndef zego_api_audio_encrypt_decrypt_oc #define zego_api_audio_encrypt_decrypt_oc #import <Foundation/Foundation.h> @protocol ZegoAudioEncryptDecryptDelegate <NSObject> @required /** 音频加密、解密回调 @param streamID 标识当前回调的音频数据属于哪条流 @param inData SDK回调给用户的音频数据, 推流时用于加密,拉流时用于解密 @param inDataLen SDK回调给用户的音频数据的长度(单位:b...
29.59
34
(translation_unit) "#ifndef zego_api_audio_encrypt_decrypt_oc\n#define zego_api_audio_encrypt_decrypt_oc\n\n#import <Foundation/Foundation.h>\n\n@protocol ZegoAudioEncryptDecryptDelegate <NSObject>\n@required\n/**\n 音频加密、解密回调\n \n @param streamID 标识当前回调的音频数据属于哪条流\n @param inData SDK回调给用户的音频数据, 推流时用于加密,拉流时用于解密\n @param...
163
14
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.59, "nodes": 109, "errors": 0, "source_hash": "f7c0063214291bca5325a05b25a7edafdb874cc2fd9568a2d0d4c4da92ba88e0", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,683
c
// This file is part of LatNet Builder. // // Copyright (C) 2012-2021 The LatNet Builder author's, supervised by <NAME>, Universite de Montreal. // // 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 Lice...
31.73
101
(translation_unit) "// This file is part of LatNet Builder.\n//\n// Copyright (C) 2012-2021 The LatNet Builder author's, supervised by <NAME>, Universite de Montreal.\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...
432
18
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 31.73, "nodes": 240, "errors": 0, "source_hash": "d9aa4cce43782b8334233e18a9ed689a40667238cf3768caf0235a56ccde1ee1", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,684
c
/* Copyright (c) 2013-2014 <NAME>. All rights reserved. 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,...
32.93
111
(translation_unit) "/*\n Copyright (c) 2013-2014 <NAME>. All rights reserved.\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"),\n to deal in the Software without restriction, including without limitation\n the ri...
960
1
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 32.93, "nodes": 612, "errors": 0, "source_hash": "64d073cdd38ad308c81cfdcc0d54f30eb9c02f6e94428678564e3799c105a741", "categorized_nodes": 465}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,685
c
#pragma once #include <optional> #include "d_precision.h" namespace dal { class MassValue { private: float_t m_massInv = 0.0; public: MassValue(void) = default; MassValue(const float_t mass) { this->setMass(mass); } float_t getMassInv(void) const n...
25.5
38
(translation_unit) "#pragma once\n\n#include <optional>\n\n#include "d_precision.h"\n\n\nnamespace dal {\n\n class MassValue {\n\n private:\n float_t m_massInv = 0.0;\n\n public:\n MassValue(void) = default;\n MassValue(const float_t mass) {\n this->setMass(mass);\n }\n\n...
271
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.5, "nodes": 154, "errors": 0, "source_hash": "460a11c097b42e23867baaa78fcbb9ea14491f1f6602a86b34ee201b7554b607", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,686
c
//-------------------------------------------------- // Atta UI System // physicsSystemWindow.h // Date: 2021-12-01 // By <NAME> //-------------------------------------------------- #ifndef ATTA_UI_SYSTEM_LAYERS_EDITOR_WINDOWS_PHYSICS_SYSTEM_WINDOW_H #define ATTA_UI_SYSTEM_LAYERS_EDITOR_WINDOWS_PHYSICS_SYSTEM_WINDOW_H ...
31
22
(translation_unit) "//--------------------------------------------------\n// Atta UI System\n// physicsSystemWindow.h\n// Date: 2021-12-01\n// By <NAME>\n//--------------------------------------------------\n#ifndef ATTA_UI_SYSTEM_LAYERS_EDITOR_WINDOWS_PHYSICS_SYSTEM_WINDOW_H\n#define ATTA_UI_SYSTEM_LAYERS_EDITOR_WINDO...
73
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.0, "nodes": 42, "errors": 0, "source_hash": "1968d78b1b0e6cf90c4b11e19f39b35bc63caa1bc082ea6c6507a106ffa3a281", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
78,687
c
#include "gpuquery.h" #include "openclerrorcode.h" #include "debug.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif #include <unistd.h> #include <sched.h> static int gpu_query_exec_1 (gpuQueryP, size_t *, size_t *, queryOperat...
27.02
229
(translation_unit) "#include "gpuquery.h"\n\n#include "openclerrorcode.h"\n#include "debug.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#ifdef __APPLE__\n#include <OpenCL/opencl.h>\n#else\n#include <CL/cl.h>\n#endif\n\n#include <unistd.h>\n#include <sched.h>\n\nstatic int gpu_query_exec_1 (gpuQ...
1,968
0
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 27.02, "nodes": 1168, "errors": 0, "source_hash": "a9f35b3cf53a4a512d59fb1af048ba47986a02d48fe72444c8bc3dc38105886f", "categorized_nodes": 891}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,688
c
#ifndef _POSIX_FCNTL_H #define _POSIX_FCNTL_H #include_next <fcntl.h> #define F_ULOCK 0 #define F_LOCK 1 #define F_TLOCK 2 #define F_TEST 3 #endif /* _POSIX_FCNTL_H */
20.25
8
(translation_unit) "#ifndef _POSIX_FCNTL_H\n#define _POSIX_FCNTL_H\n\n#include_next <fcntl.h>\n\n#define F_ULOCK 0\n#define F_LOCK 1\n#define F_TLOCK 2\n#define F_TEST 3\n\n#endif /* _POSIX_FCNTL_H */\n" (preproc_ifdef) "#ifndef _POSIX_FCNTL_H\n#define _POSIX_FCNTL_H\n\n#include_next <fcntl.h>\n\n#define F_ULOCK 0\...
28
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.25, "nodes": 26, "errors": 0, "source_hash": "c72975c1ed770064f451c93b72fc7f7c7ada40a05c3ae9c2b814b1203b332926", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,689
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth */ @interface CBATTRequest : NSObject { CBCentral * _central; CBCharacteristic * _characteristic; BOOL _ignoreResponse; unsigned long long _offset; NSNumber * _transactionID; ...
35.55
33
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth\n */\n\n@interface CBATTRequest : NSObject {\n CBCentral * _central;\n CBCharacteristic * _characteristic;\n BOOL _ignoreResponse;\n unsigned long long _offset;\n NS...
392
27
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.55, "nodes": 247, "errors": 0, "source_hash": "78d80302600f32686e91d768820924dc86801cf51e39490931d2a786c624045e", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
78,690
c
#pragma once #include "../utils/mymath.h" class INodeModifier { public: virtual void advance(int64_t msec) = 0; virtual void modify(MyMath::SimpleVertex * vertex) = 0; };
19.89
9
(translation_unit) "#pragma once \n#include "../utils/mymath.h" \n \nclass INodeModifier \n{ \npublic: \n virtual void advance(int64_t msec) = 0; \n virtual void modify(MyMath::SimpleVertex * vertex) = 0; \n}; \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (pr...
59
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.89, "nodes": 39, "errors": 0, "source_hash": "156b6325236e8208ae45cf0156c27a2ebde28c12dff47ece4f66d25837c22ac9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,691
c
#ifndef _CPP_CORE_SPARSEMAT_H_ #define _CPP_CORE_SPARSEMAT_H_ // ReSharper disable CppInconsistentNaming // ReSharper disable CppNonInlineFunctionDefinitionInHeaderFile #include "include_opencv.h" CVAPI(ExceptionStatus) core_SparseMat_new1(cv::SparseMat **returnValue) { BEGIN_WRAP *returnValue = new cv::Spar...
26.04
237
(ERROR) "#ifndef _CPP_CORE_SPARSEMAT_H_\n#define _CPP_CORE_SPARSEMAT_H_\n\n// ReSharper disable CppInconsistentNaming\n// ReSharper disable CppNonInlineFunctionDefinitionInHeaderFile\n\n#include "include_opencv.h"\n\nCVAPI(ExceptionStatus) core_SparseMat_new1(cv::SparseMat **returnValue)\n{\n BEGIN_WRAP\n *return...
2,071
152
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 26.04, "nodes": 1410, "errors": 0, "source_hash": "a35d8e09bc52449f40a9a63b08bad18c2172b8936c4d341f9470081f18a6f9c2", "categorized_nodes": 864}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _CPP_CORE_SPARS...
78,692
c
#pragma once #ifndef __ENEMY_SOLDIER_LEVEL2_H__ #define __ENEMY_SOLDIER_LEVEL2_H__ #include "Enemy.h" #include "Path.h" class Enemy_Soldier_Level2 : public Enemy { public: // Constructor (x y coordinates in the world) // Creates animation and movement data and the collider Enemy_Soldier_Level2(int x, int y); // ...
30.3
40
(translation_unit) "#pragma once\n#ifndef __ENEMY_SOLDIER_LEVEL2_H__\n#define __ENEMY_SOLDIER_LEVEL2_H__\n\n#include "Enemy.h"\n#include "Path.h"\n\nclass Enemy_Soldier_Level2 : public Enemy\n{\npublic:\n // Constructor (x y coordinates in the world)\n // Creates animation and movement data and the collider\n Enemy_Sol...
146
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.3, "nodes": 93, "errors": 0, "source_hash": "b2cf296e1e46dcdac3fd5a6d502a9113b0cb15ad0819f9aeb4f4bf22b832f83a", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,693
c
#pragma once #define F_NONE 0x0 #define F_PIPE 0x1 #define F_INODE 0x2 struct file { uint8_t type; uint16_t ref; uint8_t readable; uint8_t writeable; //struct pipe *pipe; struct inode *ip; uint32_t off; }; struct stat; void ftable_init(void); struct file *falloc(void); struct file *fdu...
22.64
22
(translation_unit) "#pragma once\n\n#define F_NONE 0x0\n#define F_PIPE 0x1\n#define F_INODE 0x2\n\nstruct file\n{\n uint8_t type;\n uint16_t ref;\n uint8_t readable;\n uint8_t writeable;\n //struct pipe *pipe;\n struct inode *ip;\n uint32_t off;\n};\n\nstruct stat;\n\nvoid ftable_init(void);\nstr...
189
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.64, "nodes": 148, "errors": 0, "source_hash": "1417a7679756a4958402b2adcfa800e597316a11353d75daf251212a78781a40", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,694
c
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2016 Intel Corporation. All rights reserved. * * Author: <NAME> <<EMAIL>> */ #ifdef __SOF_LIB_CLK_H__ #ifndef __PLATFORM_LIB_CLK_H__ #define __PLATFORM_LIB_CLK_H__ #include <sof/lib/io.h> #include <sof/lib/shim.h> #include <stdint.h> #define CLK_CPU(x) ...
26.19
26
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause\n *\n * Copyright(c) 2016 Intel Corporation. All rights reserved.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifdef __SOF_LIB_CLK_H__\n\n#ifndef __PLATFORM_LIB_CLK_H__\n#define __PLATFORM_LIB_CLK_H__\n\n#include <sof/lib/io.h>\n#include <sof/lib/shim.h>\n#inclu...
79
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.19, "nodes": 70, "errors": 0, "source_hash": "9cbea4ba747e7e010e0d6ce019459960bb1387ac105e4c6655802baeb1020ec5", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
78,695
c
#include <stdio.h> extern int sum(int, int); int main(){ int r = sum(1,3); printf("Result is %d \n", r); }
18.33
6
(translation_unit) "#include <stdio.h>\nextern int sum(int, int);\n\nint main(){\n int r = sum(1,3);\n printf("Result is %d \n", r);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "extern int sum(int, int);" (storage_class_specif...
57
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.33, "nodes": 35, "errors": 0, "source_hash": "b5d4527458ef74944f0e25730d706b58ff0a1692cdf938f2561e32a64c882ac2", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,696
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <MapsSupport/MSPMutableFavorite.h> #import "MSPFavoriteTransitLine.h" @class MSPTransitLineBookmark, NSString, NSUUID; @interface MSPMutableFavoriteTransitLine : MSPMutableFavo...
36.65
26
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <MapsSupport/MSPMutableFavorite.h>\n\n#import "MSPFavoriteTransitLine.h"\n\n@class MSPTransitLineBookmark, NSString, NSUUID;\n\n@interface MSPMutableFavo...
236
25
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.65, "nodes": 153, "errors": 0, "source_hash": "2e1119db67afe6631fd4cfdc2f41ddc2bbfac32c50eeab6c5e0e7e21c71607e3", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,697
c
/* * Copyright (C) 2010 <NAME> <<EMAIL>>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or any later version. * * This program is distributed in th...
27.72
61
(translation_unit) "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of the\n * License, or any later version.\n *\n * This ...
230
2
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.72, "nodes": 136, "errors": 0, "source_hash": "cc64549a858a941511ef436a4dd4cd06e7607eba67b848e336348f490c142f13", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,698
c
/* * Copyright 2020-2020 Exactpro (Exactpro Systems Limited) * * 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...
41.51
35
(translation_unit) "/*\n * Copyright 2020-2020 Exactpro (Exactpro Systems Limited)\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...
178
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 41.51, "nodes": 120, "errors": 0, "source_hash": "421ea9056ba0da78c281a056ead9d4b22b8eec7113d834268bcdba2f724c5fbc", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,699