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
// Used indirectly. See build/scripts/vcs_info.py // ya-bin dump vcs-info > vcs.json // python build/scripts/vcs_info.py vcs.json out.c build/scripts/c_templates/svn_interface.c <any_prefix>library/svnversion<any_suffix> #include "build/scripts/c_templates/svnversion.h" #define STR1(x) #x #define STR2(x) STR1(x) co...
19.75
146
(translation_unit) "// Used indirectly. See build/scripts/vcs_info.py\n// ya-bin dump vcs-info > vcs.json\n// python build/scripts/vcs_info.py vcs.json out.c build/scripts/c_templates/svn_interface.c <any_prefix>library/svnversion<any_suffix>\n\n\n#include "build/scripts/c_templates/svnversion.h"\n\n#define STR1(x) #x\...
749
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 19.75, "nodes": 436, "errors": 0, "source_hash": "cc238fcff7e6cbc59e968af16f6d36f79854b6c26336aa52bd73498c8c2e4424", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,800
c
#ifndef __PROCESS_DLL_H__ #define __PROCESS_DLL_H__ #include "ProcessMonitor.h" #ifdef PROCESSDLL_EXPORTS #define PROCESSDLL_EXPORTS_API __declspec(dllexport) __stdcall #else #define PROCESSDLL_EXPORTS_API __declspec(dllimport) __stdcall #endif #ifdef __cplusplus extern "C" { #endif struct DriverStatus { e...
15.06
49
(translation_unit) "#ifndef __PROCESS_DLL_H__\n#define __PROCESS_DLL_H__\n\n#include "ProcessMonitor.h"\n\n#ifdef PROCESSDLL_EXPORTS\n#define PROCESSDLL_EXPORTS_API __declspec(dllexport) __stdcall \n#else\n#define PROCESSDLL_EXPORTS_API __declspec(dllimport) __stdcall \n#endif\n\n\n\n#ifdef __cplusplus\nextern "C" {\n...
160
1
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 15.06, "nodes": 107, "errors": 0, "source_hash": "53fde6869492c2608798d875cbabde6fe21845ba80b737e513fad2ade9f01d55", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,801
c
#ifndef UTF8_TEST_H #define UTF8_TEST_H 1 #include <assert.h> #define UTF8_STRINGIFY_HELPER(x) #x #define UTF8_STRINGIFY(x) UTF8_STRINGIFY_HELPER(x) #define D(name) int utf8_test_##name (); #define T(name) { \ printf("%s: checking..\n", UTF8_STRINGIFY(name)); \ assert(0 == utf8_test_##name ()); \ printf("%s:...
34.54
13
(translation_unit) "#ifndef UTF8_TEST_H\n#define UTF8_TEST_H 1\n\n#include <assert.h>\n\n#define UTF8_STRINGIFY_HELPER(x) #x\n#define UTF8_STRINGIFY(x) UTF8_STRINGIFY_HELPER(x)\n\n#define D(name) int utf8_test_##name ();\n\n#define T(name) { \\n printf("%s: checking..\n", UTF8_STRINGIFY(name)); \\n assert(0 == utf8_t...
65
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.54, "nodes": 50, "errors": 0, "source_hash": "ccaa1a07d855a3d9f56292904f97ab8162113ea757d63332eed5017a9a8705e0", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,802
c
// Copyright 2018 <NAME>, <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in wri...
40.57
37
(translation_unit) "// Copyright 2018 <NAME>, <NAME>\n\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n\n// http://www.apache.org/licenses/LICENSE-2.0\n\n// Unless required by applic...
287
15
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.57, "nodes": 171, "errors": 0, "source_hash": "afdccf2c17a5b3f5121e86cdd2e0250ff4a757d974d6d4b7769a4e732cacdc54", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,803
c
#ifndef CUHKSZ_CONTAINERS #define CUHKSZ_CONTAINERS #include "containers/List.h" #include "containers/Map.h" #include "containers/MultiMap.h" #include "containers/MultiSet.h" #include "containers/Queue.h" #include "containers/Set.h" #include "containers/Stack.h" #include "containers/Vector.h" #endif // CUHKSZ_CONTAI...
28.36
11
(translation_unit) "#ifndef CUHKSZ_CONTAINERS\n#define CUHKSZ_CONTAINERS\n\n#include "containers/List.h"\n#include "containers/Map.h"\n#include "containers/MultiMap.h"\n#include "containers/MultiSet.h"\n#include "containers/Queue.h"\n#include "containers/Set.h"\n#include "containers/Stack.h"\n#include "containers/Vecto...
57
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.36, "nodes": 31, "errors": 0, "source_hash": "bfc24ec95838352110137116efb4216637424c7d1b7bf120e12cb60927b96db6", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,804
c
// Datei : DX8Enum.h // -------------------------------------------------------------------------------------- // // Devices auflisten // // -------------------------------------------------------------------------------------- #ifndef _DX8Enum_h_ #define _DX8Enum_h_ #include "DX8Graphics.h" bool InitD3D(); #endi...
27.82
11
(translation_unit) "// Datei : DX8Enum.h\n\n// -------------------------------------------------------------------------------------- \n//\n// Devices auflisten\n//\n// --------------------------------------------------------------------------------------\n\n#ifndef _DX8Enum_h_\n#define _DX8Enum_h_\n\n#include "DX8Grap...
28
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.82, "nodes": 15, "errors": 0, "source_hash": "b4f4b551d566ced693f9f9c1ce7483a2a481f665345fff365aecea5a174fcde8", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,805
c
/* * Copyright 2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
31.52
174
(translation_unit) "/*\n * Copyright 2014 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b...
835
49
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 31.52, "nodes": 449, "errors": 0, "source_hash": "ba079e25df80450ec02bd111778972eae0283ffc46654335472b0c8d5e2cf353", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,806
c
/* * tcm.h * * TILER container manager specification and support functions for TI * TILER driver. * * Author: <NAME> <<EMAIL>> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *...
34.06
291
(translation_unit) "/*\n * tcm.h\n *\n * TILER container manager specification and support functions for TI\n * TILER driver.\n *\n * Author: <NAME> <<EMAIL>>\n *\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the followi...
1,723
0
{"language": "c", "success": true, "metadata": {"lines": 291, "avg_line_length": 34.06, "nodes": 1206, "errors": 0, "source_hash": "8dfc4c9094cc221d51a198fa239f8b92cb7e423db4600111944f452e0577679f", "categorized_nodes": 932}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
13,807
c
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
43.45
20
(translation_unit) "/*----------------------------------------------------------------------------*/\n/* Copyright (c) 2018 FIRST. All Rights Reserved. */\n/* Open Source Software - may be modified and shared by FRC teams. The code */\n/* must be accompanied by the FIRST BSD license file i...
78
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 43.45, "nodes": 39, "errors": 0, "source_hash": "9e2129ae3a08cdedc8d1c21bc24525f7b63bc0be6609676d9d2a322ff8e59411", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,808
c
#ifndef _QUIET_BENCH_H_ #define _QUIET_BENCH_H_ /* ticks - not tested on anything other than x86 */ static inline uint64_t get_ticks(void) { #if defined(CPU_X86) || defined(CPU_X86_64) #if defined(COMPILER_INTEL) return _rdtsc(); #elif defined(COMPILER_MSVC) return __rdt...
34.5
50
(translation_unit) "#ifndef _QUIET_BENCH_H_\n#define _QUIET_BENCH_H_\n\n/* ticks - not tested on anything other than x86 */\nstatic inline uint64_t\nget_ticks(void)\n{\n#if defined(CPU_X86) || defined(CPU_X86_64)\n #if defined(COMPILER_INTEL)\n return _rdtsc();\n #elif defined(COMPILER_MSVC...
447
1
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 34.5, "nodes": 269, "errors": 0, "source_hash": "19a1f4646de7ce74ba8bbe1b1396d8b020a4cdf59e7e944b45796a63597e91fe", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,809
c
#ifndef LICE_CONV_HDR #define LICE_CONV_HDR /* * File: conv.h * Implements the interface to LICE's type conversion. */ #include "ast.h" /* * Function: conv_capable * Determines if type conversion is capable for a given type. * * Parameters: * type - The type to test for conversion capability * * Retur...
28.66
59
(translation_unit) "#ifndef LICE_CONV_HDR\n#define LICE_CONV_HDR\n\n/*\n * File: conv.h\n * Implements the interface to LICE's type conversion.\n */\n#include "ast.h"\n\n/*\n * Function: conv_capable\n * Determines if type conversion is capable for a given type.\n *\n * Parameters:\n * type - The type to test for...
91
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.66, "nodes": 67, "errors": 0, "source_hash": "66bafb1b2b53f29d1ddd452391c75046d0cb5b551c9d585814a609cf16bd7ba8", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,810
c
#include "uthash/src/uthash.h" #include <stdlib.h> #include <string.h> // Uthash structure. typedef struct { int key; int value; UT_hash_handle hh; } d_entry; // Compare function for chars. int cmpc(const void *x, const void *y) { char a = *(const char *)x; char b = *(const char *)y; return (a > b) - (a ...
27.88
81
(translation_unit) "#include "uthash/src/uthash.h"\n#include <stdlib.h>\n#include <string.h>\n\n// Uthash structure.\ntypedef struct {\n int key;\n int value;\n UT_hash_handle hh;\n} d_entry;\n\n// Compare function for chars.\nint cmpc(const void *x, const void *y) {\n char a = *(const char *)x;\n char b = *(const...
740
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 27.88, "nodes": 471, "errors": 0, "source_hash": "5a1513ec56b03b413e3158d574a12c76c5f5a4840696f25a10d3c29c6383ba55", "categorized_nodes": 302}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,811
c
/** * This file is part of the statismo library. * * Author: <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * * Copyright (c) 2011 University of Basel * All rights reserved. * * Statismo is licensed under the BSD licence (3 clause) license */ #ifndef KERNELCOMBINATORS_H #define KERNELCOMBINATORS_H #include "...
36.93
251
(translation_unit) "/**\n * This file is part of the statismo library.\n *\n * Author: <NAME> (<EMAIL>)\n * <NAME> (<EMAIL>)\n *\n * Copyright (c) 2011 University of Basel\n * All rights reserved.\n *\n * Statismo is licensed under the BSD licence (3 clause) license\n */\n\n#ifndef KERNELCOMBINATORS_H\n#define...
1,991
103
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 36.93, "nodes": 1147, "errors": 0, "source_hash": "a371d14e159121638cb60a9392f65819dbc1784c2601f0e791628aea1ddb7e8f", "categorized_nodes": 783}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
13,812
c
// Platform specific staff #ifndef _PLATFORM_H_ #define _PLATFORM_H_ #include "Platform/TargetPlatforms.h" #ifdef ENGINE_TARGET_WIN32 #include "Platform/win.h" #else // !ENGINE_TARGET_WIN32 #define MAX_PATH 512 #define __forceinline int strcpy_s(char* Dst, size_t DstSize, const char* Src); int strcat_s(char* Dst...
32.07
29
(translation_unit) "// Platform specific staff\n\n#ifndef _PLATFORM_H_\n#define _PLATFORM_H_\n\n#include "Platform/TargetPlatforms.h"\n\n#ifdef ENGINE_TARGET_WIN32\n\n#include "Platform/win.h"\n\n#else // !ENGINE_TARGET_WIN32\n\n#define MAX_PATH 512\n#define __forceinline\n\nint strcpy_s(char* Dst, size_t DstSize, cons...
238
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.07, "nodes": 167, "errors": 0, "source_hash": "14a6f92da256005e5178eeaae14a8bf7a4c6395fe8cab81393a8a7e5edb0981f", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,813
c
#pragma once #include <iostream> #include <iomanip> #include <sstream> #include <string> #include <stdexcept> #include <unordered_map> #include <unordered_set> namespace sbpl_utils { // A generic hash manager for maintaining a two-way mapping between states and unique IDs. // The template type HashableState must impl...
39.14
200
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <iomanip>\n#include <sstream>\n#include <string>\n#include <stdexcept>\n#include <unordered_map>\n#include <unordered_set>\n\nnamespace sbpl_utils {\n// A generic hash manager for maintaining a two-way mapping between states and unique IDs.\n// The templ...
1,804
115
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 39.14, "nodes": 1047, "errors": 0, "source_hash": "260d9d545703bb165916925133f45b044add8be9980615609f78d4bed293e572", "categorized_nodes": 722}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
13,814
c
#pragma once #include <utility> #include <vector> #include <sqlitepp/result_iterator.h> namespace sqlitepp { class database; class statement { database* m_db; sqlite3_stmt* m_handle; template<typename Arg1, typename... Args> void bind_all_impl(size_t idx, Arg1&& arg1, Args&&... args) { this->bind(idx, a...
32.39
76
(translation_unit) "#pragma once\n#include <utility>\n#include <vector>\n\n#include <sqlitepp/result_iterator.h>\n\nnamespace sqlitepp {\n class database;\n class statement {\n database* m_db;\n sqlite3_stmt* m_handle;\n\n template<typename Arg1, typename... Args>\n void bind_all_impl(size_t idx, Arg1&& arg1, Args&...
935
57
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 32.39, "nodes": 569, "errors": 0, "source_hash": "eef12fcabce27ad74ce39c1a53fdb5d7e5f2184f2ac2dd5b25dcd2ee4f311d6e", "categorized_nodes": 378}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,815
c
#ifndef INCLUDED_NETWORK_ROTATE_H #define INCLUDED_NETWORK_ROTATE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "platform/export.h" #include "single_message_sender.h" #include "actor_frequency_timer.h" namespace network { class Rota...
32.73
60
(translation_unit) "#ifndef INCLUDED_NETWORK_ROTATE_H\n#define INCLUDED_NETWORK_ROTATE_H\n\n#include "network/message.h"\n#include "network/message_handler_sub_system.h"\n#include "network/message_sender_system.h"\n#include "platform/export.h"\n#include "single_message_sender.h"\n#include "actor_frequency_timer.h"\n\nn...
448
25
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 32.73, "nodes": 254, "errors": 0, "source_hash": "83781dfe444f461735dcbdfae45a6a3bacd9a68487202bd3c7014b4b8eb0f742", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,816
c
#include "itkVector.h" //--------------------------------------------------------------------------------------------------- //TextureFeaturesFilter Template Begins //--------------------------------------------------------------------------------------------------- namespace itk{ template<class TImageType> class IT...
32.95
83
(translation_unit) "#include "itkVector.h"\n\n\n//---------------------------------------------------------------------------------------------------\n//TextureFeaturesFilter Template Begins\n//---------------------------------------------------------------------------------------------------\nnamespace itk{\ntemplate<...
584
36
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.95, "nodes": 350, "errors": 0, "source_hash": "ee407574c76f87ec74a94811c823bf83678c7e0d38bc0031707c2e39b84260a0", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,817
c
#pragma once #include "Micro/Goals/Subgoal.h" class KillSubgoal : public Subgoal { public: KillSubgoal(SubgoalLogic l, UnitsGroup* ug, BWAPI::Unit* u); BWAPI::Unit* _target; bool isRealized(); void tryToRealize(); double distanceToRealize(); };
20.83
12
(translation_unit) "#pragma once \n#include "Micro/Goals/Subgoal.h" \n \nclass KillSubgoal : public Subgoal \n{ \npublic: \n KillSubgoal(SubgoalLogic l, UnitsGroup* ug, BWAPI::Unit* u); \n BWAPI::Unit* _target; \n bool isRealized(); \n void tryToRealize(); \n double distanceToRealize(); \n};" (preproc_call) "#pragma ...
86
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.83, "nodes": 50, "errors": 0, "source_hash": "7b29d92129c92a83d6f10cbf7ddae0edccb734510fd7362ff75f10f5475c81ef", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,818
c
#ifndef __TASK_DEBUG_H__ #define __TASK_DEBUG_H__ #include "message.h" extern q_msg_t gw_task_debug_mailbox; extern void* gw_task_debug_entry(void*); #endif //__TASK_DEBUG_H__
28.33
6
(translation_unit) "#ifndef __TASK_DEBUG_H__\n#define __TASK_DEBUG_H__\n\n#include "message.h"\n\nextern q_msg_t gw_task_debug_mailbox;\nextern void* gw_task_debug_entry(void*);\n\n#endif //__TASK_DEBUG_H__\n" (preproc_ifdef) "#ifndef __TASK_DEBUG_H__\n#define __TASK_DEBUG_H__\n\n#include "message.h"\n\nextern q_msg_...
37
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 28.33, "nodes": 28, "errors": 0, "source_hash": "436f4f2148b6147e40b548ba3e24081076e9de698e363ca020e363a72b2d57ea", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,819
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ROZMIAR_BUF 4096 void dopisz(FILE *zrodlo, FILE *cel); int main(int argc, char *argv[]) { FILE *pd, *pz; //pd - docelowy, pz - dopisywany int pliki = 0; int ch; if ((pd = fopen(argv[1], "a")) == NULL) { fprintf(stderr...
29.37
60
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define ROZMIAR_BUF 4096\n\nvoid dopisz(FILE *zrodlo, FILE *cel);\n\nint main(int argc, char *argv[])\n{\n FILE *pd, *pz; //pd - docelowy, pz - dopisywany\n int pliki = 0; \n int ch;\n\n if ((pd = fopen(argv[1], "a")) == ...
647
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.37, "nodes": 356, "errors": 0, "source_hash": "16b391d5934d5dbbe76080a0ccfe334a0ad42523a3dd39525ef847c49bd948cc", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,820
c
#ifndef teca_bayesian_ar_detect_h #define teca_bayesian_ar_detect_h #include "teca_shared_object.h" #include "teca_algorithm.h" #include "teca_metadata.h" #include <string> #include <vector> TECA_SHARED_OBJECT_FORWARD_DECL(teca_bayesian_ar_detect) /// The TECA BARD atmospheric river detector. /** * Given a point w...
36.57
116
(translation_unit) "#ifndef teca_bayesian_ar_detect_h\n#define teca_bayesian_ar_detect_h\n\n#include "teca_shared_object.h"\n#include "teca_algorithm.h"\n#include "teca_metadata.h"\n\n#include <string>\n#include <vector>\n\nTECA_SHARED_OBJECT_FORWARD_DECL(teca_bayesian_ar_detect)\n\n/// The TECA BARD atmospheric river ...
437
28
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 36.57, "nodes": 274, "errors": 0, "source_hash": "e06fd17cf4aac246c9080246c06c68edab62f3e9dd7ca0cebb1c301869c83481", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,821
c
#ifndef SIGNATURE_H #define SIGNATURE_H int check_signature(const uint8_t * hash, size_t hash_len, const uint8_t * signature, size_t signature_len, const char * public); #endif
35.17
6
(translation_unit) "#ifndef SIGNATURE_H\n#define SIGNATURE_H\n\nint check_signature(const uint8_t * hash, size_t hash_len,\n const uint8_t * signature, size_t signature_len,\n const char * public);\n\n#endif\n" (preproc_ifdef) "#ifndef SIGNATURE_H\n#define SIGNATURE_H\n\nint chec...
47
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 35.17, "nodes": 32, "errors": 0, "source_hash": "8c2d4ac04d99f70f3fe8259c9d692877acbcaa8c771b0a91338c4dbe58c45958", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
13,822
c
// // JCMediaChannelParticipant.h // JCSDK-OC // // Created by maikireton on 2017/8/11. // Copyright © 2017年 juphoon. All rights reserved. // #import <Foundation/Foundation.h> #import "JCMediaChannelConstants.h" /** * 上次更新到这次更新间的状态变化集合 */ @interface JCMediaChannelParticipantChangeParam : NSObject /** * 上传音频是否...
18.56
106
(translation_unit) "//\n// JCMediaChannelParticipant.h\n// JCSDK-OC\n//\n// Created by maikireton on 2017/8/11.\n// Copyright © 2017年 juphoon. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "JCMediaChannelConstants.h"\n\n/**\n * 上次更新到这次更新间的状态变化集合\n */\n@interface JCMediaChannelParticipantCha...
376
79
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 18.56, "nodes": 263, "errors": 0, "source_hash": "0eca80deba3d9a915dd75ed64eedcb236e4b16bdaf605d0177d8545a81cce5b2", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
13,823
c
/* <DESC> * Uses the "Streaming HTML parser" to extract the href pieces in a streaming * manner from a downloaded HTML. * </DESC> */ /* * The HTML parser is found at http://code.google.com/p/htmlstreamparser/ */ #include <stdio.h> #include <curl/curl.h> #include <htmlstreamparser.h> static size_t write_callbac...
31.66
50
(translation_unit) "/* <DESC>\n * Uses the "Streaming HTML parser" to extract the href pieces in a streaming\n * manner from a downloaded HTML.\n * </DESC>\n */\n/*\n * The HTML parser is found at http://code.google.com/p/htmlstreamparser/\n */\n\n#include <stdio.h>\n#include <curl/curl.h>\n#include <htmlstreamparser.h...
461
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.66, "nodes": 251, "errors": 0, "source_hash": "5447a2b7ef5c25baacd75c9f0aa67b24b465bb29594a0f1bd9c1e6c1fd24a7f1", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,824
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/DeviceManagement.framework/DeviceManagement */ @interface DMFScreenTimePolicyMonitor : NSObject { NSUUID * _policyMonitorIdentifier; long long _screenTimePolicy; } @property (nonatomic, readonly) NSUUID *policyMonitorIdentifier; @pro...
34.8
20
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/DeviceManagement.framework/DeviceManagement\n */\n\n@interface DMFScreenTimePolicyMonitor : NSObject {\n NSUUID * _policyMonitorIdentifier;\n long long _screenTimePolicy;\n}\n\n@property (nonatomic, readonly) NSUUID *...
192
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 34.8, "nodes": 121, "errors": 0, "source_hash": "5b26239d454e71f2c71043e6ce6e0098e6652e949e66daa68a977e410a2da5fa", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface DMFSc...
13,825
c
 #ifndef __CHARACTER_DATA_H__ #define __CHARACTER_DATA_H__ #include "tjsCommHead.h" #include "tvpfontstruc.h" /** * 1グリフのメトリックを表す構造体 */ struct tGlyphMetrics { tjs_int CellIncX; //!< 一文字進めるの必要なX方向のピクセル数 tjs_int CellIncY; //!< 一文字進めるの必要なY方向のピクセル数 }; //-----------------------------------------------------------...
25.05
111
(translation_unit) "fndef __CHARACTER_DATA_H__\n#define __CHARACTER_DATA_H__\n\n#include "tjsCommHead.h"\n#include "tvpfontstruc.h"\n\n/**\n * 1グリフのメトリックを表す構造体\n */\nstruct tGlyphMetrics\n{\n tjs_int CellIncX; //!< 一文字進めるの必要なX方向のピクセル数\n tjs_int CellIncY; //!< 一文字進めるの必要なY方向のピクセル数\n};\n\n//-----------------------------...
654
19
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 25.05, "nodes": 405, "errors": 0, "source_hash": "1af89a64ee88ec7ec5a5cdc4cc8fa1118e8457041073e6954de2422779505c0a", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
13,826
c
// // NewsListViewModel.h // HotLibApp // // Created by weiying on 16/9/13. // Copyright © 2016年 amoby. All rights reserved. // #import <Foundation/Foundation.h> @interface NewsListViewModel : NSObject @property (nonatomic, strong) RACCommand *fetchListModelCommand; @end
24.09
11
(translation_unit) "//\n// NewsListViewModel.h\n// HotLibApp\n//\n// Created by weiying on 16/9/13.\n// Copyright © 2016年 amoby. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NewsListViewModel : NSObject\n\n@property (nonatomic, strong) RACCommand *fetchListModelCommand;\n\n@end\n" (...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.09, "nodes": 23, "errors": 0, "source_hash": "9c3aeeb46f61c502529b7daf91f905ab41eddecc4dfd9f8994ad1d6c1d9a0230", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
13,827
c
/** * This header is generated by class-dump-z 0.2-1. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: /System/Library/PrivateFrameworks/Message.framework/Message */ #import <Foundation/NSObject.h> @class MessageLibrary; @interface MessageDetails : NSObject { MessageLibrary* ...
24.29
31
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-1.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: /System/Library/PrivateFrameworks/Message.framework/Message\n */\n\n#import <Foundation/NSObject.h>\n\n@class MessageLibrary;\n\n@interface MessageDetails...
156
7
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.29, "nodes": 101, "errors": 0, "source_hash": "a1a91d4d13995abca520238194c61181ab7d2f3a36578c7b83b13d845719f331", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,828
c
//===----------------------------------------------------------------------===// // // FBench // // https://fdbresearch.github.io/ // // Copyright (c) 2019, FDB Research Group, University of Oxford // //===----------------------------------------------------------------------===// #ifndef INCLUDE_ENGINE_HPP_ #define ...
20.57
58
(ERROR) "//===----------------------------------------------------------------------===//\n//\n// FBench\n//\n// https://fdbresearch.github.io/\n//\n// Copyright (c) 2019, FDB Research Group, University of Oxford\n// \n//===----------------------------------------------------------------------===//\n\n#ifndef INCLUDE_E...
264
14
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 20.57, "nodes": 179, "errors": 0, "source_hash": "e6401b8c470cfb1f3c78308fa8ae447e4f32507335fe4b690b675190fb9a3d18", "categorized_nodes": 116}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//===--------------------...
13,829
c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
31.57
72
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (...
330
18
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.57, "nodes": 198, "errors": 0, "source_hash": "9e54b0b9a703c7d500f17ba6f340491965f174e21ebe820dbcd7855abc78f3cf", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,830
c
#ifndef QUERYMODEL_H #define QUERYMODEL_H #include "Mappings/ClassMapBase.h" #include "GroupConditions.h" #include "QueryTableModel.h" #include "Mappings/ConfigurationMap.h" namespace QtOrm { namespace Sql { using Mapping::ClassMapBase; enum class QueryModelType : int { Select, Insert, Update, Delete, UpdateColumn ...
32.09
32
(translation_unit) "#ifndef QUERYMODEL_H\n#define QUERYMODEL_H\n\n#include "Mappings/ClassMapBase.h"\n#include "GroupConditions.h"\n#include "QueryTableModel.h"\n#include "Mappings/ConfigurationMap.h"\n\nnamespace QtOrm {\nnamespace Sql {\n\nusing Mapping::ClassMapBase;\n\nenum class QueryModelType : int { Select, Inse...
273
16
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.09, "nodes": 167, "errors": 0, "source_hash": "e71f805b1c7104e48e9196079530bec82827e7567e9a252dcefc4bf4db66ee5f", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QUERYM...
13,831
c
/*! @file epSmartObject.h @author <NAME> a.k.a Chris. <<EMAIL>> <http://github.com/juhgiyo/eplibrary> @date April 17, 2009 @brief Smart Object Interface @version 2.0 @section LICENSE The MIT License (MIT) Copyright (c) 2008-2013 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaini...
28.34
203
(translation_unit) "/*! \n@file epSmartObject.h\n@author <NAME> a.k.a Chris. <<EMAIL>>\n <http://github.com/juhgiyo/eplibrary>\n@date April 17, 2009\n@brief Smart Object Interface\n@version 2.0\n\n@section LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2008-2013 <NAME> <<EMAIL>>\n\nPermission is hereby granted, fre...
863
16
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 28.34, "nodes": 499, "errors": 0, "source_hash": "fe9a32b31100960ed9c8e2b48b89de2daeb78481287084fae22044d1257cead2", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,832
c
/* SPDX-License-Identifier: MIT */ /* * Author: <NAME> <<EMAIL>> * Date: 2021 */ #include <FreeRTOS.h> #include <uart.h> #define UART_PRV #include <uart_prv.h> #include <sbi.h> struct uart { struct uart_generic gen; }; UART_INIT(sbi, port, baudrate) { int32_t ret; struct uart *uart = (struct uart *) UART_GET_D...
17.95
203
(translation_unit) "/* SPDX-License-Identifier: MIT */\n/*\n * Author: <NAME> <<EMAIL>>\n * Date: 2021\n */\n#include <FreeRTOS.h>\n#include <uart.h>\n#define UART_PRV\n#include <uart_prv.h>\n#include <sbi.h>\n\n\nstruct uart {\n struct uart_generic gen;\n};\n\nUART_INIT(sbi, port, baudrate) {\n int32_t ret;\n struct u...
1,493
5
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 17.95, "nodes": 807, "errors": 0, "source_hash": "acd2207dc9880034bd38d2aae531133c6dc1ce08efa503ab7e09102843b9db02", "categorized_nodes": 573}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,833
c
#pragma once #include "SystemBase.h" #include "ComponentData.h" #include "CollapsedComponent.h" #include "FreeVector.h" #include "EntityIdTypeDef.h" #include <vector> #include <map> #include <unordered_map> //A two component system that ensures the two component lists stay in sync template <typename T, typename U> cla...
33.99
97
(translation_unit) "#pragma once\n#include "SystemBase.h"\n#include "ComponentData.h"\n#include "CollapsedComponent.h"\n#include "FreeVector.h"\n#include "EntityIdTypeDef.h"\n#include <vector>\n#include <map>\n#include <unordered_map>\n\n//A two component system that ensures the two component lists stay in sync\ntempla...
721
14
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 33.99, "nodes": 421, "errors": 0, "source_hash": "63b61cbc70a0ac04121ea40145262be3cb90a79a7b3868314a909e917ca5132b", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,834
c
// // ALFlickerLabel.h // AnimationLabel // // Created by QD-ZC on 2017/12/5. // Copyright © 2017年 Hacky. All rights reserved. // #import <UIKit/UIKit.h> #import "ALAnimationProtocol.h" @interface ALFlickerLabel : UILabel <ALAnimationProtocol> @end
22
11
(translation_unit) "//\n// ALFlickerLabel.h\n// AnimationLabel\n//\n// Created by QD-ZC on 2017/12/5.\n// Copyright © 2017年 Hacky. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ALAnimationProtocol.h"\n@interface ALFlickerLabel : UILabel <ALAnimationProtocol>\n\n@end\n" (comment) "//" (comment) "...
28
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.0, "nodes": 18, "errors": 0, "source_hash": "5d8179126376f521f9b15687934ef7d85a191d1ee8966bb50ace7c14a04d3f99", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
13,835
c
/* n_20.c: Definition of macro lexically identical to keyword. */ /* 20.1: */ /* double fl; */ #define float double float fl; /* { dg-do preprocess } { dg-final { if ![file exist n_20.i] { return } } } { dg-final { if \{ [grep n_20.i "double +fl"] != "" \} \{ } } ...
41.91
11
(translation_unit) "/* n_20.c: Definition of macro lexically identical to keyword. */\n\n/* 20.1: */\n/* double fl; */\n#define float double\n float fl;\n\n/* { dg-do preprocess }\n { dg-final { if ![file exist n_20.i] { return } } }\n { dg-final { if \{ [grep n_20.i "double +fl"] ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 41.91, "nodes": 7, "errors": 0, "source_hash": "90d3c786bc734ee5eeecb7fe4341b9918d69c15f51c6be4ba0f78a7362309d8e", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define floa...
13,836
c
// // HzSystem.h // ZHFramework // // Created by xzh. on 15/7/23. // Copyright (c) 2015年 xzh. All rights reserved. // #import <Foundation/Foundation.h> @interface HZSystem : NSObject /********系统********/ + (BOOL)isIOS6Later; //包括IOS6,下同 + (BOOL)isIOS7Later; + (BOOL)isIOS8Later; + (BOOL)isIOS9Later; + (BOOL)isI...
22.03
38
(translation_unit) "//\n// HzSystem.h\n// ZHFramework\n//\n// Created by xzh. on 15/7/23.\n// Copyright (c) 2015年 xzh. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@interface HZSystem : NSObject\n\n/********系统********/\n+ (BOOL)isIOS6Later; //包括IOS6,下同\n+ (BOOL)isIOS7Later;\n+ (BOOL)isIOS8Later...
281
4
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.03, "nodes": 163, "errors": 0, "source_hash": "df4159311879b405c4ca9571d96c503b8a05381fc40ef9bfd6339798bc24af4d", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
13,837
c
/* * Test Program - csuspend */ #include <stdio.h> #include <stdlib.h> #include "../include/cthread.h" #include "../include/LGA_logger.h" void* func0(void *arg) { LGA_LOGGER_TEST("Entering First thread"); if (*(int *)arg == 5) { LGA_LOGGER_TEST("Thread Creation Test SUCCEEDED"); } else { LGA_LOGGER_TEST("...
25.12
42
(translation_unit) "/*\n * Test Program - csuspend\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "../include/cthread.h"\n#include "../include/LGA_logger.h"\n\nvoid* func0(void *arg) {\n LGA_LOGGER_TEST("Entering First thread");\n\n if (*(int *)arg == 5) {\n LGA_LOGGER_TEST("Thread Creation Test SUCCEEDE...
357
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 25.12, "nodes": 183, "errors": 0, "source_hash": "6509be1c2914b137953c142325adb30ae5603065871646a1c8fd5bde46a89afa", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,838
c
// // WVRManualArrangePresenter.h // WhaleyVR // // Created by qbshen on 2017/7/21. // Copyright © 2017年 Snailvr. All rights reserved. // #import "WVRPresenter.h" #import "WVRManualArrangeViewCProtocol.h" @interface WVRManualArrangePresenter : WVRPresenter @property (nonatomic, weak, readonly) id<WVRManualArrang...
28.79
14
(translation_unit) "//\n// WVRManualArrangePresenter.h\n// WhaleyVR\n//\n// Created by qbshen on 2017/7/21.\n// Copyright © 2017年 Snailvr. All rights reserved.\n//\n\n#import "WVRPresenter.h"\n#import "WVRManualArrangeViewCProtocol.h"\n\n@interface WVRManualArrangePresenter : WVRPresenter\n\n@property (nonatomic, w...
75
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.79, "nodes": 50, "errors": 0, "source_hash": "e814ac62e956149b99ce35ced817e2aee258964b7dd86a47f8e57510d822b94a", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"WV...
13,839
c
/* <stig/rpc/type/poly1.h> Arity-1 polymorphic types. Copyright 2010-2014 Tagged 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-...
31.74
50
(translation_unit) "/* <stig/rpc/type/poly1.h> \n\n Arity-1 polymorphic types.\n\n Copyright 2010-2014 Tagged\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://ww...
212
11
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.74, "nodes": 125, "errors": 0, "source_hash": "4eefa125652c3d57e2b7eecf257fcfadd32beceb7feade610c29c381774ed7f5", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,840
c
#include <stdio.h> int main() { int n; double x1,y1, x2, y2; while(scanf("%d %lf %lf %lf %lf", &n, &x1, &y1, &x2, &y2) == 5) { int find = 0; double x, y, ansx, ansy; while(n--) { scanf("%lf %lf", &x, &y); if(find) continue; if(4*((...
26.68
25
(translation_unit) "#include <stdio.h>\n\nint main() {\n int n;\n double x1,y1, x2, y2;\n while(scanf("%d %lf %lf %lf %lf", &n, &x1, &y1, &x2, &y2) == 5) {\n int find = 0;\n double x, y, ansx, ansy;\n while(n--) {\n scanf("%lf %lf", &x, &y);\n if(find)\n ...
271
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.68, "nodes": 155, "errors": 0, "source_hash": "4d3f115068be12b5cf3ad78b403d3f379130012f1731e09cfe32fa24843f5879", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,841
c
/** * /file Standing.h * /author <NAME> * /version 0.2 * /date 2020-11-3 * * @copyright Copyright (c) 2020 * */ #ifndef STANDING_H_INCLUDED #define STANDING_H_INCLUDED #include "ExoTestState.h" /** * @brief State for the ExoTestMachine (implementing ExoTestState) - representing when the exoskeleton is sta...
27.56
25
(translation_unit) "/**\n * /file Standing.h\n * /author <NAME>\n * /version 0.2\n * /date 2020-11-3\n * \n * @copyright Copyright (c) 2020\n * \n */\n\n#ifndef STANDING_H_INCLUDED\n#define STANDING_H_INCLUDED\n\n#include "ExoTestState.h"\n\n/**\n * @brief State for the ExoTestMachine (implementing ExoTestState) - repr...
112
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.56, "nodes": 68, "errors": 0, "source_hash": "620714fd6f937ce6e64f8a2fc65432d59983fad595094c87308a21dab6638e0e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,842
c
#include "clingo/container/CBitVec.h" #include "clingo/lang/expect.h" int main( void ) { init_tap_c_(); CBitVec* vec = new_bit_vec_c( 15 ); expect_c_( bit_vec_is_c_( vec, "0000 0000 0000 000" ) ); set_on_bit_vec_c( vec, 0, 1 ); set_on_bit_vec_c( vec, 3, 1 ); set_on_bit_vec_c( vec, 4, 1 ); set_o...
28.53
19
(translation_unit) "#include "clingo/container/CBitVec.h"\n#include "clingo/lang/expect.h"\n\nint main( void )\n{\n init_tap_c_();\n\n CBitVec* vec = new_bit_vec_c( 15 );\n\n expect_c_( bit_vec_is_c_( vec, "0000 0000 0000 000" ) );\n\n set_on_bit_vec_c( vec, 0, 1 );\n set_on_bit_vec_c( vec, 3, 1 );\n set_on...
182
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.53, "nodes": 93, "errors": 0, "source_hash": "7c0a3f6dd4b7b3a7708e3b3364b9a8960799e5b806aec321ec936613832e5b3c", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,843
c
#pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> #include <tchar.h> #include <mutex> #include <unordered_map> #include <windowsx.h>
19.78
9
(translation_unit) "#pragma once\n\n#include "targetver.h"\n\n#define WIN32_LEAN_AND_MEAN\n#include <windows.h>\n\n#include <stdio.h>\n#include <tchar.h>\n#include <mutex>\n#include <unordered_map>\n#include <windowsx.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.78, "nodes": 27, "errors": 0, "source_hash": "045adb2de5c1fe0513049e387a187147aab6c1b924441208ee597842fdf69f8d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,844
c
// // DXLaunchViewController.h // dongxi // // Created by <NAME> on 15/10/21. // Copyright (c) 2015年 北京聚益网络科技有限公司. All rights reserved. // #import <UIKit/UIKit.h> extern NSString * const DXNotificationLaunchWindowDidAppear; extern NSString * const DXNotificationLaunchWindowDidDisappear; @interface DXLaunchViewCo...
30
13
(translation_unit) "//\n// DXLaunchViewController.h\n// dongxi\n//\n// Created by <NAME> on 15/10/21.\n// Copyright (c) 2015年 北京聚益网络科技有限公司. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nextern NSString * const DXNotificationLaunchWindowDidAppear;\nextern NSString * const DXNotificationLaunchWindowDidDisapp...
56
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.0, "nodes": 38, "errors": 0, "source_hash": "8b1ee5316f145cd6059f81761182deec547ffdb69a4e316f3ed3abc93a307a0e", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "xtern NSSt...
13,845
c
/* Distributed under the Apache License, Version 2.0. See accompanying NOTICE file for details.*/ #pragma once #include "patient/actions/SEPatientAction.h" CDM_BIND_DECL(MechanicalVentilationData) class Serializer; class SESubstance; class SESubstanceFraction; class SEMechanicalVentilationConfiguration; class CDM_...
42.82
49
(translation_unit) "/* Distributed under the Apache License, Version 2.0.\n See accompanying NOTICE file for details.*/\n\n#pragma once\n#include "patient/actions/SEPatientAction.h"\nCDM_BIND_DECL(MechanicalVentilationData)\nclass Serializer;\nclass SESubstance;\nclass SESubstanceFraction;\nclass SEMechanicalVentilat...
518
37
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 42.82, "nodes": 283, "errors": 0, "source_hash": "4d7d477b85d623bc6c536df1ad6f2200c9202d767525402ea39a36ab27ca0114", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,846
c
// // RoundButton.h // getgood // // Created by <NAME> on 23/12/17. // Copyright © 2017 PH. All rights reserved. // #import <UIKit/UIKit.h> IB_DESIGNABLE @interface RoundButton : UIButton { } @property (nonatomic,assign) IBInspectable CGFloat radius; @end /* RoundButton_h */
16.81
16
(translation_unit) "//\n// RoundButton.h\n// getgood\n//\n// Created by <NAME> on 23/12/17.\n// Copyright © 2017 PH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nIB_DESIGNABLE\n@interface RoundButton : UIButton\n{\n \n}\n\n@property (nonatomic,assign) IBInspectable CGFloat radius;\n\n@end\n\n/* RoundBu...
46
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.81, "nodes": 25, "errors": 0, "source_hash": "be87aa6232647efa331d077ed8f7a1db31f340e84bcc242f7c1a5c3669dc2bf5", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
13,847
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <MediaPlayer/MPMediaArray.h> #import <MediaPlayer/NSCopying-Protocol.h> @class MPMediaLibrary, MPMediaQueryCriteria, MPMediaQuerySe...
36.45
29
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <MediaPlayer/MPMediaArray.h>\n\n#import <MediaPlayer/NSCopying-Protocol.h>\n\n@class MPMediaLibrary, MPMedi...
224
18
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.45, "nodes": 147, "errors": 0, "source_hash": "3bc2de2a25be88f4f90d0b5c9353831c2b29b793310291a24d54f7c7b5326aa0", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,848
c
// // Created by joseph on 14/12/18. // #ifndef SIM_VSOC_H #define SIM_VSOC_H #include <systemc> #include "ADC.h" #include "CPU_Bayer.h" #include "SensorReader.h" #include "Interconnect.h" class VSoC : public sc_module { std::unique_ptr<SensorReader>reader; ADC *adc[9]; CPU_Bayer *cpuBayer[9]; Inte...
19.27
22
(translation_unit) "//\n// Created by joseph on 14/12/18.\n//\n\n#ifndef SIM_VSOC_H\n#define SIM_VSOC_H\n\n#include <systemc>\n\n#include "ADC.h"\n#include "CPU_Bayer.h"\n#include "SensorReader.h"\n#include "Interconnect.h"\n\nclass VSoC : public sc_module {\n\n std::unique_ptr<SensorReader>reader;\n ADC *adc[9];...
123
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.27, "nodes": 70, "errors": 0, "source_hash": "1fa07c3ed871b3effff407b86cd9fa58ea98583609d9ffda0e49d097fcfe96bc", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,849
c
// Copyright 2014 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 DeprecatedScheduleStyleRecalcDuringLayout_h #define DeprecatedScheduleStyleRecalcDuringLayout_h #include "core/dom/DocumentLifecycle.h" #include ...
36.81
21
(translation_unit) "// Copyright 2014 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 DeprecatedScheduleStyleRecalcDuringLayout_h\n#define DeprecatedScheduleStyleRecalcDuringLayout_h\n\n#include "core/dom/Doc...
99
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.81, "nodes": 50, "errors": 0, "source_hash": "20acc03c2efd5182ec3750301fae0f5e2f7c63ebbb094bb9bc966d47eadf3be8", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,850
c
/* Copyright (C) 2009-2019 Parallel Realities This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
26.25
150
(translation_unit) "/*\nCopyright (C) 2009-2019 Parallel Realities\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis...
1,261
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 26.25, "nodes": 737, "errors": 0, "source_hash": "f448537f9a081695353719e20f000e1a868d76127606e2172f13c4df7e3af8ea", "categorized_nodes": 568}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,851
c
//******************************************************************************************************** // // © 2016 Regents of the University of California on behalf of the University of California at Berkeley // with rights granted for USDOT OSADP distribution with the ECL-2.0 open source license. // //*****...
34.22
59
(translation_unit) "//********************************************************************************************************\n//\n// © 2016 Regents of the University of California on behalf of the University of California at Berkeley\n// with rights granted for USDOT OSADP distribution with the ECL-2.0 open sou...
174
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 34.22, "nodes": 117, "errors": 0, "source_hash": "c3b01a0329534c06a87d0ed3f8182fbef1c81382a1a101cd2c61ec929759e39c", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef\...
13,852
c
#include <stdint.h> #include <stdbool.h> #include <avr/io.h> #include <util/delay.h> void note(int x, float length); void beeps(); void true_note(float x, float y, float length); void play_note(double freq, int vol); void stop_note(double freq); void stop_all_notes(); void init_notes();
25.18
11
(translation_unit) "#include <stdint.h>\n#include <stdbool.h>\n#include <avr/io.h>\n#include <util/delay.h>\n\nvoid note(int x, float length);\nvoid beeps();\nvoid true_note(float x, float y, float length);\nvoid play_note(double freq, int vol);\nvoid stop_note(double freq);\nvoid stop_all_notes();\nvoid init_notes();"...
97
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.18, "nodes": 71, "errors": 0, "source_hash": "320004d0317879a5da04a546e1530b62059b10ba7bb563e5dc4580bbda6e34ad", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,853
c
/* Test AAPCS64 layout and __builtin_va_start. Pass named HFA/HVA argument on stack. */ /* { dg-do run { target aarch64*-*-* } } */ #ifndef IN_FRAMEWORK #define AAPCS64_TEST_STDARG #define TESTFILE "va_arg-13.c" struct float_float_t { float a; float b; } float_float; union float_int_t { float b8; int b...
27.04
51
(translation_unit) "/* Test AAPCS64 layout and __builtin_va_start.\n\n Pass named HFA/HVA argument on stack. */\n\n/* { dg-do run { target aarch64*-*-* } } */\n\n#ifndef IN_FRAMEWORK\n#define AAPCS64_TEST_STDARG\n#define TESTFILE "va_arg-13.c"\n\nstruct float_float_t\n{\n float a;\n float b;\n} float_float;\n\nuni...
338
18
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 27.04, "nodes": 216, "errors": 0, "source_hash": "8914de64311fc1b25a0e86e5c76a3220499c3b7b8523046dee0be58c4ef17891", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,854
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Key management related functions. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson */ #ifndef WFX_KEY_H #define WFX_KEY_H #include <net/mac80211.h> struct wfx_dev; struct wfx_vif; int wfx_set_key(struct ieee80211_hw *hw, e...
27.93
15
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * Key management related functions.\n *\n * Copyright (c) 2017-2020, Silicon Laboratories, Inc.\n * Copyright (c) 2010, ST-Ericsson\n */\n#ifndef WFX_KEY_H\n#define WFX_KEY_H\n\n#include <net/mac80211.h>\n\nstruct wfx_dev;\nstruct wfx_vif;\n\nint wfx...
66
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.93, "nodes": 54, "errors": 0, "source_hash": "069dc466d4556dc43714e9d88ff90bb950586b6bf508f7e74a881c530e4ad787", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,855
c
/* * Copyright (c) 2016, Laminar Research. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, ...
37.23
141
(translation_unit) "/*\n * Copyright (c) 2016, Laminar Research.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to ...
1,057
25
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 37.23, "nodes": 643, "errors": 0, "source_hash": "a8636f7fb1e1505a5a07deddae9c9f2c2f9eb395aa87be38c74ca15bf57cc362", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,856
c
#include "EstadoState.h" #include "EstadoStateInternal.h" #include "message.h" // DEBUG /* Provide the default implementations: */ void defaultImplementation (EstadoStatePtr state) { message ("** defaultImplementation **"); }
22
10
(translation_unit) "#include "EstadoState.h"\n#include "EstadoStateInternal.h"\n\n#include "message.h" // DEBUG\n\n/*\nProvide the default implementations:\n*/\n\nvoid defaultImplementation (EstadoStatePtr state)\n{\n message ("** defaultImplementation **");\n}\n" (preproc_include) "#include "EstadoState.h"\n" ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.0, "nodes": 21, "errors": 0, "source_hash": "832894f1600030f79c3e309152155be63fd86e438c2bb798ed40fc887025c555", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,857
c
#include <stdlib.h> #include "object.h" #include "util.h" #include "exc.h" #include "nativefunc.h" static void nativefunc_free(RhoValue *nfunc) { /* * Purposefully do not call super-destructor, * since NativeFuncObjects should be statically * allocated. */ RHO_UNUSED(nfunc); } static RhoValue nativefunc_cal...
22.8
49
(translation_unit) "#include <stdlib.h>\n#include "object.h"\n#include "util.h"\n#include "exc.h"\n#include "nativefunc.h"\n\nstatic void nativefunc_free(RhoValue *nfunc)\n{\n /*\n * Purposefully do not call super-destructor,\n * since NativeFuncObjects should be statically\n * allocated.\n */\n RHO_UNUSED(nfunc);\...
323
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 22.8, "nodes": 213, "errors": 0, "source_hash": "a2d8ad248a052c8295fbcd443a64d3e21858807775df761eafd0e2e97ee296ca", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,858
c
// This test code demonstrates a bug where the ";" is // unparsed after the macro expansion, and AFTER the // header file CPP include directive: #include "test2015_103.h" #define FILE_LICENCE( _sym ) char _sym[0] // It might be the the source position for this variable declaration is incorrect. FILE_LICENCE ( BSD2 ...
29.07
15
(translation_unit) "// This test code demonstrates a bug where the ";" is \n// unparsed after the macro expansion, and AFTER the \n// header file CPP include directive: #include "test2015_103.h"\n\n#define FILE_LICENCE( _sym ) char _sym[0]\n\n// It might be the the source position for this variable declaration is incor...
58
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.07, "nodes": 37, "errors": 0, "source_hash": "fe00e434953a3d1366e6f1c2b887a55a5f4c69fd6b794dad429c8908e32f1792", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
13,859
c
/* * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: BSD-3-Clause */ /* * Code for communicating shared memory between participants in a * multi-participant simulation. */ #include <stdlib.h> #include <assert.h> #include <unistd.h> #include <stdbool.h> #include <memory.h> #include <usfstl/alloc...
34.7
233
(translation_unit) "/*\n * Copyright (C) 2020 Intel Corporation\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n/*\n * Code for communicating shared memory between participants in a\n * multi-participant simulation.\n */\n#include <stdlib.h>\n#include <assert.h>\n#include <unistd.h>\n#include <stdbool.h>\n#include ...
1,434
3
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 34.7, "nodes": 844, "errors": 0, "source_hash": "db0556258c5dbf1be2b3c4a97ed4a8c4205c9139911eb8b63c23749b0b5571d4", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,860
c
// // XQTopicViewController.h // Baisi // // Created by 吴章琦 on 2017/1/24. // Copyright © 2017年 吴章琦. All rights reserved. // #import <UIKit/UIKit.h> #import "XQTopic.h" @interface XQTopicViewController : UITableViewController // 只写get方法是为了避免外界修改 - (XQTopicType)type; @end
20.15
13
(translation_unit) "//\n// XQTopicViewController.h\n// Baisi\n//\n// Created by 吴章琦 on 2017/1/24.\n// Copyright © 2017年 吴章琦. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "XQTopic.h"\n\n@interface XQTopicViewController : UITableViewController\n\n// 只写get方法是为了避免外界修改\n- (XQTopicType)type;\n\n@end\n" ...
36
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.15, "nodes": 20, "errors": 0, "source_hash": "1c837ec9691969b2cdbbe2434f4e557afc3d077057a2fbc909e7811a13b80fd0", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
13,861
c
/* * texture.h * GLB * March 01, 2013 * <NAME> */ #ifndef _GLB_TEXTURE_H #define _GLB_TEXTURE_H #include "glb_types.h" /* enum GLBAccess { GLB_READ_ONLY = GL_READ_ONLY, GLB_WRITE_ONLY = GL_WRITE_ONLY, GLB_READ_WRITE = GL_READ_WRITE, };*/ enum GLBImageFormat { GLB_RGBA = 0, GLB_RG...
37.21
66
(translation_unit) "/*\n * texture.h\n * GLB\n * March 01, 2013\n * <NAME>\n */\n\n#ifndef _GLB_TEXTURE_H\n#define _GLB_TEXTURE_H\n\n#include "glb_types.h"\n\n/*\nenum GLBAccess\n{\n GLB_READ_ONLY = GL_READ_ONLY,\n GLB_WRITE_ONLY = GL_WRITE_ONLY,\n GLB_READ_WRITE = GL_READ_WRITE,\n};*/\n\nenum GLBImageFormat\n...
478
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 37.21, "nodes": 362, "errors": 0, "source_hash": "b2080d09be84630acaaa3955b12ac4bdd220cfb1b3f8094305f2e7b45bd7058e", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,862
c
/*** aeiou.c -- ascii<->unicode converter/normaliser * * Copyright (C) 2014-2017 <NAME> * * Author: <NAME> <<EMAIL>> * * This file is part of aeiou. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. ...
22.95
327
(translation_unit) "/*** aeiou.c -- ascii<->unicode converter/normaliser\n *\n * Copyright (C) 2014-2017 <NAME>\n *\n * Author: <NAME> <<EMAIL>>\n *\n * This file is part of aeiou.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following con...
2,820
0
{"language": "c", "success": true, "metadata": {"lines": 327, "avg_line_length": 22.95, "nodes": 1767, "errors": 0, "source_hash": "e03bc529ef63c24cd1425d8d1ec2ece37198a20f37d0ff45e7ffbc4795e86ea5", "categorized_nodes": 1248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if de...
13,863
c
/* * Variables.h */ #ifdef GAUGES // Current millis updated on each loop unsigned long loopTime = 0; // Current function mode volatile byte modeFunc = FUNC_NORMAL; // current value volatile float val = 0.0; // a buffer for the values char buffer[50]; byte debug = 0; byte demo = 0; // create a voltmeter //Gaug...
33.21
129
(translation_unit) "/*\n * Variables.h\n */\n\n\n#ifdef GAUGES\n// Current millis updated on each loop\nunsigned long loopTime = 0;\n\n// Current function mode\nvolatile byte modeFunc = FUNC_NORMAL;\n\n// current value\nvolatile float val = 0.0;\n\n// a buffer for the values\nchar buffer[50];\n\n\nbyte debug = 0;\nbyte...
714
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 33.21, "nodes": 576, "errors": 0, "source_hash": "8637b59595e2da1f9daa9d4b4dd2379882523e9c6477aed3e4a7ad26b0e5a6b8", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
13,864
c
/* * DEBUG: section 16 Cache Manager API * */ #ifndef SQUID_MGR_IO_ACTION_H #define SQUID_MGR_IO_ACTION_H #include "mgr/Action.h" #include "IoStats.h" namespace Mgr { /// store server-side network read() size histograms class IoActionData { public: IoActionData(); IoActionData& operator += (const IoAc...
23.98
44
(translation_unit) "/*\n * DEBUG: section 16 Cache Manager API\n *\n */\n\n#ifndef SQUID_MGR_IO_ACTION_H\n#define SQUID_MGR_IO_ACTION_H\n\n#include "mgr/Action.h"\n#include "IoStats.h"\n\nnamespace Mgr\n{\n\n/// store server-side network read() size histograms\nclass IoActionData\n{\npublic:\n IoActionData();\n ...
262
16
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.98, "nodes": 144, "errors": 0, "source_hash": "0e065e75a20479f2c0e426fb76ef8a9838031e3433c97fbcc1030a88ab7d0156", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,865
c
#ifndef CONNECTOR_MESSAGES_H #define CONNECTOR_MESSAGES_H #include <WString.h> #include "data_message.h" /******************************************************************/ class Connector; class ConnectorMessage : public DataMessage { public: ConnectorMessage(Connector* conn); virtual char* G...
23.46
84
(translation_unit) "#ifndef CONNECTOR_MESSAGES_H \n#define CONNECTOR_MESSAGES_H \n \n#include <WString.h> \n \n#include "data_message.h" \n \n/******************************************************************/ \n \nclass Connector; \n \nclass ConnectorMessage : public DataMessage \n{ \npublic: \n ConnectorMessage(Conn...
431
22
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 23.46, "nodes": 226, "errors": 0, "source_hash": "4a9ec000de8a00fd157fda1d9ff532ed249b81ec3c7a6dbc87e8f1b5908da3a3", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,866
c
#include<stdio.h> void insertion_sort(int arr[], int size) { int i,j,temp; for(i=1;i<size;i++) { temp=arr[i]; j=i-1; while( ( temp<arr[j] ) && ( j>=0 ) ) { arr[j+1] = arr[j]; j=j-1; } arr[j+1]=temp; } } int main() { int arr[100],i,j,temp,size; printf("Enter the size of the arr...
20.48
33
(translation_unit) "#include<stdio.h>\nvoid insertion_sort(int arr[], int size)\n{ int i,j,temp;\n for(i=1;i<size;i++)\n {\n temp=arr[i];\n j=i-1;\n while( ( temp<arr[j] ) && ( j>=0 ) )\n {\n arr[j+1] = arr[j];\n j=j-1;\n }\n arr[j+1]=temp;\n }\n}\n\nint main()\n{\n int arr[100],i,j,temp,si...
305
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.48, "nodes": 166, "errors": 0, "source_hash": "73a6a5e2aeb81f6441661d991f8d0e959eb9a5c6c852868dd89ea9a18608e234", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,867
c
// // OneKeyImport.h // OneKey // // Created by xiaoliang on 2020/10/12. // Copyright © 2020 OneKey. All rights reserved.. // #ifndef OneKeyImport_h #define OneKeyImport_h #import "Notification.h" #import "OKComMarco.h" #import "OKColors.h" #import "NSString+OKAdd.h" #import "NSArray+OKAdd.h" #import "NSDictionar...
26.14
72
(translation_unit) "//\n// OneKeyImport.h\n// OneKey\n//\n// Created by xiaoliang on 2020/10/12.\n// Copyright © 2020 OneKey. All rights reserved..\n//\n\n#ifndef OneKeyImport_h\n#define OneKeyImport_h\n\n#import "Notification.h"\n#import "OKComMarco.h"\n#import "OKColors.h"\n#import "NSString+OKAdd.h"\n#import "NS...
202
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 26.14, "nodes": 131, "errors": 0, "source_hash": "17aab4ef99d3a9ae12c48939b1339177367fe79115893d929b6123ffc08e11f7", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
13,868
c
#pragma once #include "CoreMinimal.h" #include "CloudLoadRequest.generated.h" USTRUCT() struct FCloudLoadRequest { GENERATED_BODY() public: UPROPERTY() FString SteamTicket; UPROPERTY() FString PSTicket; UPROPERTY() FString Branch; UPROPERTY() int32 Offset; FS...
15.62
21
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "CloudLoadRequest.generated.h"\n\nUSTRUCT()\nstruct FCloudLoadRequest {\n GENERATED_BODY()\npublic:\n UPROPERTY()\n FString SteamTicket;\n \n UPROPERTY()\n FString PSTicket;\n \n UPROPERTY()\n FString Branch;\n \n UPRO...
91
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.62, "nodes": 50, "errors": 0, "source_hash": "19b00947ffc402b526e7ac7dc2b7a4a4ba9724f5403693000720f8e6f1bc335e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,869
c
#include "Input.h" #include "Graphics.h" #include "Constants.h" //Constants #define MAX_COLORS 9 const ushort COLORS[] = { 0x7FFF, //WHITE 0x1F, //COLORFUL MODE 0x1F, //RED 0x3e0, //GREEN 0x7C00, //BLUE 0x3FF, //YELLOW 0x7C1F, //MAGENTA 0x7FE0, //CY...
24.43
129
(translation_unit) "#include "Input.h"\n#include "Graphics.h"\n#include "Constants.h"\n\n//Constants\n#define MAX_COLORS 9\nconst ushort COLORS[] =\n{\n 0x7FFF, //WHITE\n 0x1F, //COLORFUL MODE\n 0x1F, //RED\n 0x3e0, //GREEN\n 0x7C00, //BLUE\n 0x3FF, //YELLOW\n 0x7C1F, ...
786
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 24.43, "nodes": 462, "errors": 0, "source_hash": "62ad8984776222d5e33e427585ca775b169d54e7524c467a5f51d174135c5a9a", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,870
c
/* dtkCryptoLicenseManager.h --- * * Author: <NAME> * Copyright (C) 2008 - <NAME>, Inria. * Created: Thu Jan 7 10:48:37 2010 (+0100) * Version: $Id$ * Last-Updated: Mon Feb 15 20:07:13 2010 (+0100) * By: <NAME> * Update #: 30 */ /* Commentary: * * See credits at EOF. */ /* Change log: ...
39.09
70
(translation_unit) "/* dtkCryptoLicenseManager.h --- \n * \n * Author: <NAME>\n * Copyright (C) 2008 - <NAME>, Inria.\n * Created: Thu Jan 7 10:48:37 2010 (+0100)\n * Version: $Id$\n * Last-Updated: Mon Feb 15 20:07:13 2010 (+0100)\n * By: <NAME>\n * Update #: 30\n */\n\n/* Commentary: \n * \n * See cred...
242
7
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 39.09, "nodes": 137, "errors": 0, "source_hash": "541df081fac917ac0622bf71b054b95f145824ac403a7dff854c53e7202c05a5", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,871
c
// // ViewTest.h // SKTest // // Created by 孙昕 on 15/11/28. // Copyright © 2015年 孙昕. All rights reserved. // #import <UIKit/UIKit.h> #import <SpriteKit/SpriteKit.h> #import "ViewGameProtovol.h" @interface ViewGame : SKView -(instancetype)initWithPowerCount:(NSInteger)count Money:(NSInteger)money Time:(NSInteger)us...
35.08
24
(ERROR) "//\n// ViewTest.h\n// SKTest\n//\n// Created by 孙昕 on 15/11/28.\n// Copyright © 2015年 孙昕. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <SpriteKit/SpriteKit.h>\n#import "ViewGameProtovol.h"\n@interface ViewGame : SKView\n-(instancetype)initWithPowerCount:(NSInteger)count Money:(NSInteger)mon...
249
14
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.08, "nodes": 159, "errors": 0, "source_hash": "c1a4b37c5bf7b87adf4af7924ba92b348860c3fd98049a4527d35b604c3a43d2", "categorized_nodes": 97}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ViewTest.h\n// SK...
13,872
c
// // DemoSectionController.h // objc_template // // Created by stone on 2019/5/3. // Copyright © 2019 stone. All rights reserved. // #import <IGListKit/IGListKit.h> NS_ASSUME_NONNULL_BEGIN @interface DemoItem : NSObject <IGListDiffable> @property (copy, nonatomic) NSString *name; @property (strong, nonatomic) ...
36.57
21
(translation_unit) "//\n// DemoSectionController.h\n// objc_template\n//\n// Created by stone on 2019/5/3.\n// Copyright © 2019 stone. All rights reserved.\n//\n\n#import <IGListKit/IGListKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DemoItem : NSObject <IGListDiffable>\n\n@property (copy, nonatomic) NSString *na...
153
21
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.57, "nodes": 97, "errors": 0, "source_hash": "efac059c01064cf1fbe28bc6a22e3371dbe8da3003bb9eb45749f996dcc44c0a", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <I...
13,873
c
#pragma once #include <forward_list> #include <map> #include <functional> #include "Arduino.h" class SystemObject { public: SystemObject(String name); static SystemObject*get_object(String name); String get_name() { return object_name; } private: String object_name; };
21.14
14
(translation_unit) "#pragma once\n#include <forward_list>\n#include <map>\n#include <functional>\n#include "Arduino.h"\n\nclass SystemObject\n{\n public:\n SystemObject(String name);\n static SystemObject*get_object(String name);\n String get_name() { return object_name; }\n private:\n ...
77
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.14, "nodes": 47, "errors": 0, "source_hash": "da2b440fd33c7a6aaf5936e548ca0e4e1cbbf5f6ef145cbed39bacb01da3f3a7", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,874
c
#ifndef __APP_SEND_H__ #define __APP_SEND_H__ #include <rtdef.h> int app_create_send(const char* dstIp, rt_uint16_t dstPort[2]); rt_bool_t app_delete_send(const char* dstIp, rt_uint16_t srcPort[2]); void read_udp_port(void); void write_default_control_ini_file(void); rt_uint16_t get_local_port(int udp, int idx); rt_bo...
30.86
14
(translation_unit) "#ifndef __APP_SEND_H__\n#define __APP_SEND_H__\n#include <rtdef.h>\nint app_create_send(const char* dstIp, rt_uint16_t dstPort[2]);\nrt_bool_t app_delete_send(const char* dstIp, rt_uint16_t srcPort[2]);\nvoid read_udp_port(void);\nvoid write_default_control_ini_file(void);\n\nrt_uint16_t get_local_p...
134
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.86, "nodes": 94, "errors": 0, "source_hash": "5db7b4939379ebd69702d5579aa7cd1e2b5e563dbda1d4cd456c38e2b3fdf3da", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,875
c
//add include statements #include <string> /* Write prototype for function(s) */ int factorial(int num); int gcd(int num1, int num2); int get_int(std::string prompt); void print_menu(); bool run_menu_choice();
20
10
(translation_unit) "//add include statements\n#include <string>\n/*\nWrite prototype for function(s)\n*/\n\nint factorial(int num);\n\nint gcd(int num1, int num2);\n\nint get_int(std::string prompt);\n\nvoid print_menu();\n\nbool run_menu_choice();" (comment) "//add include statements" (preproc_include) "#include <...
63
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 42, "errors": 0, "source_hash": "d0825ab87f57127b1a768a45a56b0a3ac8e0d54a6aa666cc51b74541ebb16bf7", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,876
c
/* * Copyright 2013 Arma2NET Developers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
30.72
29
(translation_unit) "/*\n* Copyright 2013 Arma2NET Developers\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by ...
120
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.72, "nodes": 69, "errors": 0, "source_hash": "5a4fb6871dc31e1fc13be216eb9f0e42a59d31909f910aee7fc8d253dd645b73", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,877
c
/* * ELECON.c * * Created on: Nov 9, 2021 * Author: Martin */ #include "ELECON.h" #include "VARS.h" #include "SHUNT.h" #include "BMS1.h" #include "BMS2.h" #include "COM.h" #include "ADC.h" #include "UI.h" #include "RTC.h" int16_t mSoc_pct100; uint8_t mBattFullFlag; int64_t mBattRemaining_mAs; // milia...
31.88
231
(translation_unit) "/*\n * ELECON.c\n *\n * Created on: Nov 9, 2021\n * Author: Martin\n */\n\n\n\n#include "ELECON.h"\n#include "VARS.h"\n#include "SHUNT.h"\n#include "BMS1.h"\n#include "BMS2.h"\n#include "COM.h"\n#include "ADC.h"\n#include "UI.h"\n#include "RTC.h"\n\n\n\nint16_t mSoc_pct100;\nuint8_t mBattFullF...
1,471
0
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 31.88, "nodes": 894, "errors": 0, "source_hash": "74df09ff8b2bb55ad6aa5d27eeb97bd87925c52391e2f9d0da6437e642065386", "categorized_nodes": 659}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,878
c
/* Do not edit: automatically built by gen_rec.awk. */ #ifndef __dbreg_AUTO_H #define __dbreg_AUTO_H #define DB___dbreg_register 2 typedef struct ___dbreg_register_args { u_int32_t type; DB_TXN *txnp; DB_LSN prev_lsn; u_int32_t opcode; DBT name; DBT uid; int32_t fileid; DBTYPE ftype;...
22.47
17
(translation_unit) "/* Do not edit: automatically built by gen_rec.awk. */\n\n#ifndef __dbreg_AUTO_H\n#define __dbreg_AUTO_H\n#define DB___dbreg_register 2\ntypedef struct ___dbreg_register_args {\n u_int32_t type;\n DB_TXN *txnp;\n DB_LSN prev_lsn;\n u_int32_t opcode;\n DBT name;\n DBT uid;\n in...
65
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.47, "nodes": 49, "errors": 0, "source_hash": "a74843a195a4c75561caa1318f76301206306628e96396a1148817ad8a3b80f9", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,879
c
// // XPcommunityProgressTableViewCell.h // YJOTC // // Created by l on 2018/12/25. // Copyright © 2018年 前海. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface XPcommunityProgressTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIView *bgview; @property (weak, ...
38.14
22
(translation_unit) "//\n// XPcommunityProgressTableViewCell.h\n// YJOTC\n//\n// Created by l on 2018/12/25.\n// Copyright © 2018年 前海. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface XPcommunityProgressTableViewCell : UITableViewCell\n@property (weak, nonatomic) IBOutlet ...
200
24
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 38.14, "nodes": 146, "errors": 0, "source_hash": "d586c2fc35f0a96e0e2f1e245ecf4900425731c9f1dee66f55c7e24eecd832b8", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/...
13,880
c
/* PsychToolbox3/Source/Common/WaitSecs/WaitSecs.h PLATFORMS: All AUTHORS: <NAME> awi <EMAIL> HISTORY: 1/20/02 awi wrote it. */ //begin include once #ifndef PSYCH_IS_INCLUDED_WaitSecs #define PSYCH_IS_INCLUDED_WaitSecs //project includes #include "Psych.h" #include "Psyc...
25.5
22
(translation_unit) "/*\n PsychToolbox3/Source/Common/WaitSecs/WaitSecs.h\n\n PLATFORMS: All\n\n AUTHORS:\n\n <NAME> awi <EMAIL>\n\n HISTORY:\n 1/20/02 awi wrote it.\n*/\n\n//begin include once\n#ifndef PSYCH_IS_INCLUDED_WaitSecs\n#define PSYCH_IS_INCLUDED_WaitSecs\n\n//project inclu...
82
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.5, "nodes": 52, "errors": 0, "source_hash": "bc8cf5c4ca0c18b5e4b16b5efd45b1e43958d9fbfebea1787ee2e76f36d357b5", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
13,881
c
#include "serial_interface.h" extern struct serial_interface serial_emu;
35.5
2
(translation_unit) "#include "serial_interface.h"\n\nextern struct serial_interface serial_emu;\n" (preproc_include) "#include "serial_interface.h"\n" (#include) "#include" (string_literal) ""serial_interface.h"" (") """ (string_content) "serial_interface.h" (") """ (declaration) "extern s...
15
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 35.5, "nodes": 10, "errors": 0, "source_hash": "006e5aa1e24ca1af020c38b16f858a81277c61b9d09f70e3d1ea5099de41b19d", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
13,882
c
/************************************************************************* * * ADOBE CONFIDENTIAL * * Copyright 2017 Adobe * * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have receiv...
32.06
124
(translation_unit) "/*************************************************************************\n*\n* ADOBE CONFIDENTIAL\n* \n* Copyright 2017 Adobe\n* \n* All Rights Reserved.\n*\n* NOTICE: Adobe permits you to use, modify, and distribute this file in\n* accordance with the terms of the Adobe license agreement accompan...
826
47
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 32.06, "nodes": 498, "errors": 0, "source_hash": "288a7c6d1bcc44ca8920a2acaa444801a479de5b47bcf41d429966fe849355c0", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,883
c
/* Copyright (C) 2012-2014 Soomla Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
37.81
70
(translation_unit) "/*\n Copyright (C) 2012-2014 Soomla Inc.\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable l...
326
23
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.81, "nodes": 187, "errors": 0, "source_hash": "7e1deaf9c20be9cebbf63d84c359eefc46fe0b635a9c471cbf9d24bc5a8e5fa6", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,884
c
// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
34.57
201
(translation_unit) "// Copyright 2011 the V8 project authors. All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// ...
1,219
40
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 34.57, "nodes": 710, "errors": 0, "source_hash": "f1c9d30fadf61dfbadcdb5ea9ef7a6a5afc1a315be20300e5d195579915d2a6c", "categorized_nodes": 470}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,885
c
// // Created by <NAME> on 2019/1/19. // #ifndef MIYUKI_INTERSECTION_H #define MIYUKI_INTERSECTION_H #include "../utils/util.h" #include "ray.h" #include "spectrum.h" namespace Miyuki { class Scene; class Intersection { public: RTCIntersectContext context; RTCRayHit rayHit; Inte...
28.93
42
(translation_unit) "//\n// Created by <NAME> on 2019/1/19.\n//\n\n#ifndef MIYUKI_INTERSECTION_H\n#define MIYUKI_INTERSECTION_H\n\n#include "../utils/util.h"\n#include "ray.h"\n#include "spectrum.h"\n\nnamespace Miyuki {\n class Scene;\n\n class Intersection {\n public:\n RTCIntersectContext context;\n ...
326
14
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.93, "nodes": 174, "errors": 0, "source_hash": "b84f82ce7fed1f0159926a151b4b6a83e17f2911bffc3c7483dcd0aaa90fa06f", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,886
c
#pragma once namespace lib_input { enum class Key { kMouseLeft, kMouseRight, kMouseMiddle, kMouse4, kMouse5, kMouse6, kMouse7, kMouse8, kSpace, kApostrophe, kComma, kMinus, kPeriod, kSlash, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9, kSemicolon, kEqual, kA, kB, kC,...
9.11
158
(translation_unit) "#pragma once\n\nnamespace lib_input {\nenum class Key {\n kMouseLeft,\n kMouseRight,\n kMouseMiddle,\n kMouse4,\n kMouse5,\n kMouse6,\n kMouse7,\n kMouse8,\n kSpace,\n kApostrophe,\n kComma,\n kMinus,\n kPeriod,\n kSlash,\n k0,\n k1,\n k2,\n k3,\n k4,\n k5,\n k6,\n k7,\n k8,\n...
481
4
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 9.11, "nodes": 312, "errors": 0, "source_hash": "a952205bf59ffe3ce002543897d633c4d9eed93b52ef7a85ff1aca04ca2a4461", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,887
c
#ifndef PAGODA_PROCEDURAL_GRAPH_GRAPH_STATEMENT_NODE_H_ #define PAGODA_PROCEDURAL_GRAPH_GRAPH_STATEMENT_NODE_H_ #include "ast_node.h" namespace pagoda { /** * Represents a statement in the graph format. * Statements can be, for example, a node definition or node links. */ class GraphStatementNode : public AstNode ...
28.91
23
(translation_unit) "#ifndef PAGODA_PROCEDURAL_GRAPH_GRAPH_STATEMENT_NODE_H_\n#define PAGODA_PROCEDURAL_GRAPH_GRAPH_STATEMENT_NODE_H_\n\n#include "ast_node.h"\n\nnamespace pagoda\n{\n/**\n * Represents a statement in the graph format.\n * Statements can be, for example, a node definition or node links.\n */\nclass Graph...
140
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.91, "nodes": 72, "errors": 0, "source_hash": "56ce025932507ed557e91b0bbfb8e96e3cac13dfa88adff1e159d1f22ca546f6", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PAGODA_P...
13,888
c
/****************************************************************************** Copyright (C) 2018-2020 aitos.io 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 with...
40.82
50
(translation_unit) "/******************************************************************************\nCopyright (C) 2018-2020 aitos.io\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without re...
149
2
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 40.82, "nodes": 113, "errors": 0, "source_hash": "5f0c1cb571f9832b18d5d0ef4ed0f4d864cc61b60a714912da8089d7aa4c4a6f", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,889
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" @interface AKCertificatePinning : NSObject { } + (BOOL)isValidCertificateTrust:(struct __SecTrust *)arg1 forHostname:(id)arg2; @end
24.91
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 "NSObject.h"\n\n@interface AKCertificatePinning : NSObject\n{\n}\n\n+ (BOOL)isValidCertificateTrust:(struct __SecTrust *)arg1 forHostname:(id)arg2;\n\n@e...
57
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.91, "nodes": 32, "errors": 0, "source_hash": "072cc7ac9277db7fea2b86d275dce331ca7ee66aa5ab5ff85fb88db96800ef2d", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
13,890
c
// Copyright 2022 PDFium 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 CORE_FPDFAPI_PARSER_CPDF_TEST_DOCUMENT_H_ #define CORE_FPDFAPI_PARSER_CPDF_TEST_DOCUMENT_H_ #include "core/fpdfapi/parser/cpdf_document.h" class CPDF_...
39.17
12
(translation_unit) "// Copyright 2022 PDFium 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 CORE_FPDFAPI_PARSER_CPDF_TEST_DOCUMENT_H_\n#define CORE_FPDFAPI_PARSER_CPDF_TEST_DOCUMENT_H_\n\n#include "core/fpdfapi/parser/cp...
53
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 39.17, "nodes": 28, "errors": 0, "source_hash": "4f817f0c090c78aba9ca8262af503451edcca1f51ad0f6a6203c76d2698fb040", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,891
c
#ifndef MUX_H #define MUX_H #define MUX_IN_bm (1<<0) #define MUX_GND 0 #define MUX_R 1 void mux_init(); void mux_select(uint8_t dir); #endif
17
8
(translation_unit) "#ifndef MUX_H\n#define MUX_H\n\n#define MUX_IN_bm (1<<0)\n\n#define MUX_GND 0 \n#define MUX_R 1\n\nvoid mux_init();\nvoid mux_select(uint8_t dir);\n\n#endif\n" (preproc_ifdef) "#ifndef MUX_H\n#define MUX_H\n\n#define MUX_IN_bm (1<<0)\n\n#define MUX_GND 0 \n#define MUX_R 1\n\nvoid mux_init();\n...
39
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.0, "nodes": 32, "errors": 0, "source_hash": "ffcb5c6cbc870ad3eb380bbcae105161837019e9fcdc55e44be87dadb533cd51", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MU...
13,892
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <curses.h> #include <panel.h> #include <form.h> #include "todo.h" /* Creates the MainWindow instance and returns a pointer to it. */ MainWindow* window_main_create(char *name) { MainWindow *todo = (MainWindow*) malloc(sizeof(...
32.23
206
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include <curses.h>\n#include <panel.h>\n#include <form.h>\n\n#include "todo.h"\n\n/* Creates the MainWindow instance and returns a pointer to it.\n */\nMainWindow*\nwindow_main_create(char *name)\n{\n MainWindow *t...
1,686
0
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 32.23, "nodes": 1024, "errors": 0, "source_hash": "fc0775c0fb26751d57bc032be042f4ff9838522dafd20d3912c901d8513e421f", "categorized_nodes": 783}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,893
c
#pragma once #ifndef STRUCTURES_H #define STRUCTURES_H #include <cstdint> #include <array> #include <map> namespace THUAI5 { /// <summary> /// 道具 /// </summary> enum class PropType :unsigned char { NullPropType = 0, Booster = 1, Battery = 2, CPU = 3, Shield ...
35.22
222
(ERROR) "#pragma once\n#ifndef STRUCTURES_H\n#define STRUCTURES_H\n\n#include <cstdint>\n#include <array>\n#include <map>\n\nnamespace THUAI5\n{\n /// <summary>\n /// 道具\n /// </summary>\n enum class PropType :unsigned char\n {\n NullPropType = 0,\n Booster = 1,\n Battery = 2,\n ...
1,291
71
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 35.22, "nodes": 667, "errors": 0, "source_hash": "835a70a517e2e3aa3c38a76f42e05796098a8b0d4f64782bdbf808efb6a1af5d", "categorized_nodes": 485}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n#ifndef ST...
13,894
c
// // ProfileViewController.h // PlayPlan // // Created by Zeacone on 15/11/8. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import "PlayPlan.h" @class ExplorerViewController; @protocol ExplorerDelegate <NSObject> - (void)dismissExplorerViewController:(ExplorerViewController *)e...
30.75
16
(translation_unit) "//\n// ProfileViewController.h\n// PlayPlan\n//\n// Created by Zeacone on 15/11/8.\n// Copyright © 2015年 Zeacone. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "PlayPlan.h"\n\n@class ExplorerViewController;\n\n@protocol ExplorerDelegate <NSObject>\n\n- (void)dismissExplorerViewCon...
89
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.75, "nodes": 63, "errors": 0, "source_hash": "3954fc4fb4d9f086510dc1cabccca55e44cdd426d0eeb2e5c6212f875cdca45d", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
13,895
c
#ifndef EventQtSlotConnect_H #define EventQtSlotConnect_H #include <QMainWindow> #include <vtkObject.h> #include <vtkSmartPointer.h> // Forward class declarations class vtkEventQtSlotConnect; /* * See "The Single Inheritance Approach" in this link: * [Using a Designer UI File in Your C++ * Application](https://d...
25.34
29
(translation_unit) "#ifndef EventQtSlotConnect_H\n#define EventQtSlotConnect_H\n\n#include <QMainWindow>\n\n#include <vtkObject.h>\n#include <vtkSmartPointer.h>\n\n// Forward class declarations\nclass vtkEventQtSlotConnect;\n\n/*\n * See "The Single Inheritance Approach" in this link:\n * [Using a Designer UI File in Y...
133
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.34, "nodes": 88, "errors": 0, "source_hash": "b329daafb5e273524e93d08c91f64aeb5c5c75809542d1a424f8fa0a7a2288e0", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,896
c
#ifndef _SAMPLE_INSTRUMENT_H_ #define _SAMPLE_INSTRUMENT_H_ #include "I_Instrument.h" #include "SampleRenderingParams.h" #include "SRPUpdaters.h" #include "SoundSource.h" #include "Application/Model/Song.h" #include "Foundation/Observable.h" #include "Foundation/Types/Types.h" #include "Foundation/Variables/WatchedV...
34.88
114
(translation_unit) "#ifndef _SAMPLE_INSTRUMENT_H_\n#define _SAMPLE_INSTRUMENT_H_\n\n#include "I_Instrument.h"\n#include "SampleRenderingParams.h"\n#include "SRPUpdaters.h"\n\n#include "SoundSource.h"\n#include "Application/Model/Song.h" \n#include "Foundation/Observable.h"\n#include "Foundation/Types/Types.h"\n#include...
777
18
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 34.88, "nodes": 555, "errors": 0, "source_hash": "69819f01d8ec2f105a18f4243937aa5be61940467edc2a7e13d99c00a96d3b75", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,897
c
#include <stdio.h> #include <stdlib.h> typedef struct Noeud Noeud; struct Noeud { Noeud *suivant; int donnee; }; typedef Noeud *Liste; void creerListe(Liste *liste) { *liste = NULL; } void supprimerListe(Liste *liste) { Noeud *iListe; for(iListe = *liste; iListe != NULL; ) { Noeud *temp; ...
19.66
115
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct Noeud Noeud;\nstruct Noeud\n{\n Noeud *suivant;\n int donnee;\n};\n\ntypedef Noeud *Liste;\n\nvoid creerListe(Liste *liste)\n{\n *liste = NULL;\n}\n\nvoid supprimerListe(Liste *liste)\n{\n Noeud *iListe;\n\n for(iListe = *liste; iLi...
877
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 19.66, "nodes": 565, "errors": 0, "source_hash": "7f13f28720982e0ecce32852bf3f9b3255f6fd7af6ed21b7a9015d169951c76f", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,898
c
/* Copyright 2014 (c) <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 or agre...
33.17
71
(translation_unit) "/* Copyright 2014 (c) <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 * Unless requir...
830
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 33.17, "nodes": 576, "errors": 0, "source_hash": "bf7fb53eb8062c4056b11ecff7bc7fdf6609c4910a5e5097c571e0aa40ca46d0", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,899