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
// // WeatherGeneralInfoView.h // SRClimate // // Created by https://github.com/guowilling on 16/5/6. // Copyright © 2016年 SR. All rights reserved. // #import <UIKit/UIKit.h> @class NowWeatherData, CityWeatherData; #define kWeatherGeneralItemWH SCREEN_ADJUST(49) @interface WeatherGeneralInfoView : UIView @prop...
37.6
20
(translation_unit) "//\n// WeatherGeneralInfoView.h\n// SRClimate\n//\n// Created by https://github.com/guowilling on 16/5/6.\n// Copyright © 2016年 SR. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class NowWeatherData, CityWeatherData;\n\n#define kWeatherGeneralItemWH SCREEN_ADJUST(49)\n\n@interface Weat...
160
30
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 37.6, "nodes": 116, "errors": 0, "source_hash": "d45cac211578bb8179fa86f2e1d654666f3893b4f46c01e4abac20be67d79fd5", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,200
c
#define WINVER 0x0501 #undef UNICODE #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <stdlib.h> #include <stdio.h> #pragma comment (lib, "Ws2_32.lib") // #pragma comment (lib, "Mswsock.lib") #define DEFAULT_BUFLEN 512 #define DEFAULT_PORT "27015" int __cdecl main(...
25.97
70
(translation_unit) "#define WINVER 0x0501\n#undef UNICODE\n#define WIN32_LEAN_AND_MEAN\n#include <windows.h>\n#include <winsock2.h>\n#include <ws2tcpip.h>\n#include <stdlib.h>\n#include <stdio.h>\n\n#pragma comment (lib, "Ws2_32.lib")\n// #pragma comment (lib, "Mswsock.lib")\n#define DEFAULT_BUFLEN 512\n#define DEFAULT...
559
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 25.97, "nodes": 341, "errors": 0, "source_hash": "9d783f859c0547a9c98aef08911957a0122b4df9c50c362c4a6c9592aa0a054f", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
7,201
c
/* The file is part of Snowman decompiler. */ /* See doc/licenses.asciidoc for the licensing information. */ #pragma once #include <nc/config.h> #include <vector> #include <boost/unordered_map.hpp> #include <nc/common/Range.h> namespace nc { class CancellationToken; namespace core { namespace ir { class BasicB...
32.53
57
(translation_unit) "/* The file is part of Snowman decompiler. */\n/* See doc/licenses.asciidoc for the licensing information. */\n\n#pragma once\n\n#include <nc/config.h>\n\n#include <vector>\n\n#include <boost/unordered_map.hpp>\n\n#include <nc/common/Range.h>\n\nnamespace nc {\n\nclass CancellationToken;\n\nnamespac...
340
15
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.53, "nodes": 191, "errors": 0, "source_hash": "2c0d18bc95708cd0c1b7d2b4d48c734f69f62bfb55db75301a3026a471420384", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,202
c
#include "holberton.h" /** * _printf - print a string * @format: string to print * * Return: number of characters on stronf */ int _printf(const char * const format, ...) { unsigned int i; int flag = 0, size_f = 0; va_list arg; if (format == (char *)0) return (-1); va_start(arg, format); i = 0; while ...
17.25
89
(translation_unit) "#include "holberton.h"\n\n/**\n * _printf - print a string\n * @format: string to print\n *\n * Return: number of characters on stronf\n */\nint _printf(const char * const format, ...)\n{\n unsigned int i;\n int flag = 0, size_f = 0;\n va_list arg;\n\n if (format == (char *)0)\n return (-1);\n\n va...
666
8
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 17.25, "nodes": 414, "errors": 0, "source_hash": "22363f79d7e8a3d488f42deb481d1138760ece79c8e3b1ef95a4e32f36ff7c1a", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,203
c
#ifndef SHELL_H #define SHELL_H #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wait.h> #include <errno.h> #define __USE_GNU #include <fcntl.h> #include <unistd.h> #include <signal.h> #include <stdbool.h> #include "shellerrors.h" #include "debugutil.h" ...
21.44
152
(translation_unit) "#ifndef SHELL_H\n#define SHELL_H\n\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <wait.h>\n#include <errno.h>\n#define __USE_GNU\n#include <fcntl.h>\n#include <unistd.h>\n#include <signal.h>\n#include <stdbool.h>\n#include "she...
834
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 21.44, "nodes": 683, "errors": 0, "source_hash": "8bee4ad68ece37a6fef1d8ff2ee5729b627e6515cb3c86bd46581e514bb3ca7c", "categorized_nodes": 370}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,204
c
#pragma once #include "StrokeStyle.h" #include "core/collection/Array.h" #include "core/reflection/Type.h" #include "ui/effects/ShadowEffect.h" #include "ui/effects/TintEffect.h" namespace Ghurund::Core { class ResourceManager; class Window; } namespace Ghurund::UI { class IUIContext { private: ...
32.7
37
(translation_unit) "#pragma once\n\n#include "StrokeStyle.h"\n#include "core/collection/Array.h"\n#include "core/reflection/Type.h"\n#include "ui/effects/ShadowEffect.h"\n#include "ui/effects/TintEffect.h"\n\nnamespace Ghurund::Core {\n class ResourceManager;\n class Window;\n}\n\nnamespace Ghurund::UI {\n cla...
358
22
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 32.7, "nodes": 195, "errors": 0, "source_hash": "bab3708ea55274bff9c6706d6203b603b3ae6a3c8f0cbf2a047d0a288454ec6c", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,205
c
#ifndef __MGNSS_PLUGINS_XBOT_BASE_UNIFY_H #define __MGNSS_PLUGINS_XBOT_BASE_UNIFY_H #include <XCM/XBotControlPlugin.h> #include <mwoibn/robot_class/robot_xbot_rt.h> #include "mgnss/modules/base.h" #include "mgnss/plugins/generator.h" #include <mwoibn/common/xbot_logger.h> namespace mgnss::plugins { //! Wrapper over t...
39.89
100
(translation_unit) "#ifndef __MGNSS_PLUGINS_XBOT_BASE_UNIFY_H\n#define __MGNSS_PLUGINS_XBOT_BASE_UNIFY_H\n\n#include <XCM/XBotControlPlugin.h>\n#include <mwoibn/robot_class/robot_xbot_rt.h>\n#include "mgnss/modules/base.h"\n#include "mgnss/plugins/generator.h"\n#include <mwoibn/common/xbot_logger.h>\n\nnamespace mgnss:...
797
53
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 39.89, "nodes": 436, "errors": 0, "source_hash": "457574744edcf96c7d93adfa6785530edd1ff54866d302625c65cc4e15cbdfe6", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,206
c
#include <stdlib.h> #include <libbesl/libbesl.h> BESL_API BESL_Context* beslCreateContext(void) { BESL_Context* ctx; ctx = calloc(1, sizeof(*ctx)); if (!ctx) return NULL; return ctx; } BESL_API void beslDestroyContext(BESL_Context* ctx) { if (ctx) { free(ctx); } }
17.18
17
(translation_unit) "#include <stdlib.h>\n#include <libbesl/libbesl.h>\n\nBESL_API BESL_Context* beslCreateContext(void)\n{\n BESL_Context* ctx;\n\n ctx = calloc(1, sizeof(*ctx));\n if (!ctx)\n return NULL;\n return ctx;\n}\n\nBESL_API void beslDestroyContext(BESL_Context* ctx)\n{\n if (ctx)\n {...
100
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.18, "nodes": 63, "errors": 0, "source_hash": "b2223181bfe98bcbfebb8623084b2d18afc5855bd4d53ca87d46fbe2b35fd615", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,207
c
/* * Copyright (C) Hisilicon Technologies Co., Ltd. 2012-2019. All rights reserved. * Description: * Author: Hisilicon multimedia software group * Create: 2011/06/28 */ #ifndef __HI_AF_COMM_H__ #define __HI_AF_COMM_H__ #include "hi_type.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* En...
17.04
27
(translation_unit) "/*\n* Copyright (C) Hisilicon Technologies Co., Ltd. 2012-2019. All rights reserved.\n* Description:\n* Author: Hisilicon multimedia software group\n* Create: 2011/06/28\n*/\n \n#ifndef __HI_AF_COMM_H__ \n#define __HI_AF_COMM_H__ \n \n#include "hi_type.h" \n \n#ifdef __cplusplus \n#if __cplusplus \n...
48
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 17.04, "nodes": 35, "errors": 0, "source_hash": "25e421c4d3b3075bf0414150422a13a0169785aa8f7a9552156eb29d8c829f46", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __HI_AF_...
7,208
c
#ifndef EXPERT_EXPERT_H #define EXPERT_EXPERT_H #include <cstdint> #include <string_view> /** * Base class for all platform experts */ class Expert { public: virtual ~Expert() = default; /// Performs a probe for available devices. virtual void probe() = 0; public: /// Creat...
23.76
17
(translation_unit) "#ifndef EXPERT_EXPERT_H\n#define EXPERT_EXPERT_H\n\n#include <cstdint>\n#include <string_view>\n\n/**\n * Base class for all platform experts\n */\nclass Expert {\n public:\n virtual ~Expert() = default;\n\n /// Performs a probe for available devices.\n virtual void probe() =...
81
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.76, "nodes": 51, "errors": 0, "source_hash": "e5f0bd475a65230746047ded666df61790d2e14947e2276e22ec7c6dfa656c7a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,209
c
void main() { int i; print(asin(.5)); print(rand()); print(i = round(3.14)); }
12.57
7
(translation_unit) "void main()\n{\n int i;\n print(asin(.5));\n print(rand());\n print(i = round(3.14));\n}\n" (function_definition) "void main()\n{\n int i;\n print(asin(.5));\n print(rand());\n print(i = round(3.14));\n}" (primitive_type) "void" (function_declarator) "main()" ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 12.57, "nodes": 31, "errors": 0, "source_hash": "ef096129a8c46f46efffc758c41dad3ff7b65de2f3cd09839457bd00c7164d01", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
7,210
c
//********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsScriptEnginePrerequisites.h" #include "BsScriptObje...
39.33
18
(translation_unit) "//********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************//\n//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//\n#pragma once\n\n#include "BsScriptEnginePrerequisites.h...
115
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.33, "nodes": 60, "errors": 0, "source_hash": "25f891f240d45761a2b95777f5e52f978f97b7a5beb7b05c0bd3f173d7c1060a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,211
c
#include "i2c_master_noint.h" #include <stdio.h> #include <sys/attribs.h> // __ISR macro #include <xc.h> // processor SFR definitions // DEVCFG0 #pragma config DEBUG = OFF // disable debugging #pragma config JTAGEN = OFF // disable jtag #pragma config ICESEL = ICS_PGx1 // use PGED1 and PGEC1 #pragm...
37.05
184
(translation_unit) "#include "i2c_master_noint.h"\n#include <stdio.h>\n#include <sys/attribs.h> // __ISR macro\n#include <xc.h> // processor SFR definitions\n\n// DEVCFG0\n#pragma config DEBUG = OFF // disable debugging\n#pragma config JTAGEN = OFF // disable jtag\n#pragma config ICESEL = ICS_PGx1 /...
1,234
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 37.05, "nodes": 723, "errors": 0, "source_hash": "4bb466d5b90266980f3e4e5e8954398858e206642afb6134de2cdfd1315f7049", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,212
c
//Faça um Programa que peça um número correspondente a um determinado ano e em seguida informe se este ano é ou não bissexto. #include <stdio.h> int main(void){ int ano,resto; printf("Insira o ano: \n"); scanf("%i",&ano); resto = ano % 4; if (resto == 0) printf("Ano bissexto\n"); else printf("...
25.77
13
(translation_unit) "//Faça um Programa que peça um número correspondente a um determinado ano e em seguida informe se este ano é ou não bissexto.\n\n#include <stdio.h>\n\nint main(void){\n\n int ano,resto;\n\n printf("Insira o ano: \n");\n scanf("%i",&ano);\n\n resto = ano % 4;\n\n if (resto == 0)\n printf("Ano...
98
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.77, "nodes": 47, "errors": 0, "source_hash": "764e441073edc5f49cca2228043572324395e35b45c5623c406e7edb959610c7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ude <s...
7,213
c
#ifndef lint static const char RCSid[] = "$Id: pmapdump.c,v 2.18 2021/02/18 17:08:50 rschregle Exp $"; #endif /* ====================================================================== Dump photon maps as RADIANCE scene description or ASCII point list to stdout <NAME> (<EMAIL>, gmail.com}) (c) Fraunhof...
34.01
339
(translation_unit) "#ifndef lint\nstatic const char RCSid[] = "$Id: pmapdump.c,v 2.18 2021/02/18 17:08:50 rschregle Exp $";\n#endif\n\n/* \n ======================================================================\n Dump photon maps as RADIANCE scene description or ASCII point list\n to stdout\n\n <NAME> (<EMAIL>...
2,620
0
{"language": "c", "success": true, "metadata": {"lines": 339, "avg_line_length": 34.01, "nodes": 1468, "errors": 0, "source_hash": "67260078ec01b36931c9083d7716f9aad607ca7b14ec6b0126b0c8b278fd5625", "categorized_nodes": 1053}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
7,214
c
#include<stdio.h> #include<math.h> #include<stdlib.h> int main() { double h,m,t,i,j,k,l,n,a; while(scanf("%lf:%lf", &h, &m)==2) { if(h==0 && m==0) break; i=((h*30)+(m/2)); j=(m*6); t=i-j; if(t<0) t*=-1; if(t>180) t=360-t...
16.57
21
(translation_unit) "#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\nint main()\n{\n double h,m,t,i,j,k,l,n,a;\n while(scanf("%lf:%lf", &h, &m)==2)\n {\n if(h==0 && m==0)\n break;\n\n i=((h*30)+(m/2));\n j=(m*6);\n\n t=i-j;\n\n if(t<0)\n t*=-1;\n...
182
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.57, "nodes": 114, "errors": 0, "source_hash": "35855f7147cedb734af82f2a0872cf0d54faf9b4dbe82d3886a36c4aebe08394", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,215
c
// // CNISDKAddSumUpCreditCardRequestInfo.h // CNISDKSumUpKit // // Created by <NAME> on 14.07.17. // Copyright © 2017 conichi GmbH. All rights reserved. // @import Foundation; #import <CNISDKPaymentKit/CNISDKAddCreditCardRequestInfo.h> NS_ASSUME_NONNULL_BEGIN @interface CNISDKAddSumUpCreditCardRequestInfo : ...
23.93
15
(translation_unit) "//\n// CNISDKAddSumUpCreditCardRequestInfo.h\n// CNISDKSumUpKit\n//\n// Created by <NAME> on 14.07.17.\n// Copyright © 2017 conichi GmbH. All rights reserved.\n//\n\n@import Foundation;\n\n#import <CNISDKPaymentKit/CNISDKAddCreditCardRequestInfo.h>\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@interface CN...
33
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.93, "nodes": 19, "errors": 0, "source_hash": "089a52940c5e0d55affedfef8993e7701b7fd62a3436434add9fefed1e03b740", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
7,216
c
#include <emote.h> EMOTE( "~Name ~verbdance nekkid.@@dancing nekkid", "~Name ~verbdance nekkid for ~targ.@@dancing nekkid for ~targ") EMOTE_ATTRIBUTE( ATT_FOOLISH )
40.5
4
(translation_unit) "#include <emote.h>\n\nEMOTE( "~Name ~verbdance nekkid.@@dancing nekkid",\n "~Name ~verbdance nekkid for ~targ.@@dancing nekkid for ~targ")\n\nEMOTE_ATTRIBUTE( ATT_FOOLISH )" (preproc_include) "#include <emote.h>\n" (#include) "#include" (system_lib_string) "<emote.h>" (expression_stateme...
27
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 40.5, "nodes": 12, "errors": 0, "source_hash": "c5837c1b82725fc5ad03e6da55059708bb6fe3c21b4a168d81bab997ee701748", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,217
c
#ifndef TARGET_CLANG_GEN_WEIGHT_FILE_PASS_H_INCLUDED #define TARGET_CLANG_GEN_WEIGHT_FILE_PASS_H_INCLUDED #include "CLangMeta.h" #include <onnc/Core/CustomPass.h> #include <onnc/Support/Path.h> namespace onnc { class CLangGenWeightFilePass final : public CustomPass<CLangGenWeightFilePass> { public: CLangGenWeight...
36.62
26
(translation_unit) "#ifndef TARGET_CLANG_GEN_WEIGHT_FILE_PASS_H_INCLUDED\n#define TARGET_CLANG_GEN_WEIGHT_FILE_PASS_H_INCLUDED\n\n#include "CLangMeta.h"\n\n#include <onnc/Core/CustomPass.h>\n#include <onnc/Support/Path.h>\n\nnamespace onnc {\n\nclass CLangGenWeightFilePass final : public CustomPass<CLangGenWeightFilePa...
211
13
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.62, "nodes": 125, "errors": 0, "source_hash": "7ed557d41794a9bdda98543e4e2cf5efb7ec9ea1e421569aef6caca5be27c38c", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TARGET_...
7,218
c
#include "nav/event/shell.h" #include "nav/event/wstream.h" #include "nav/event/event.h" #include "nav/event/hook.h" #include "nav/log.h" #include "nav/option.h" #include "nav/plugins/out/out.h" #include "nav/plugins/op/op.h" static void out_data_cb(Stream *, RBuffer *, size_t, void *, bool); static void shell_write_...
25.01
175
(translation_unit) "#include "nav/event/shell.h"\n#include "nav/event/wstream.h"\n#include "nav/event/event.h"\n#include "nav/event/hook.h"\n#include "nav/log.h"\n#include "nav/option.h"\n#include "nav/plugins/out/out.h"\n#include "nav/plugins/op/op.h"\n\nstatic void out_data_cb(Stream *, RBuffer *, size_t, void *, bo...
1,885
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 25.01, "nodes": 1119, "errors": 0, "source_hash": "bde2d0d81f7c4e46f5b7f08306fe5e2baa609ba0c2521c37b21e0cfa39b673f1", "categorized_nodes": 788}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,219
c
// Copyright 2018 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. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef XFA_FXFA_PARSER_CXFA_NODEOWNER_H_ #define XFA_FXFA_PARSER_CXFA_NODEOWN...
35.4
20
(translation_unit) "// Copyright 2018 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef XFA_FXFA_PARSER_CXFA_NODEOWNER_H_\n#define X...
117
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.4, "nodes": 69, "errors": 0, "source_hash": "84f61475cdcfccb5fb7d0bd9b837e3ba5420586222d8799c20a1ce78be700d8a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef X...
7,220
c
#include "types.h" #include "user.h" int main(int argc, char *argv[]) { if (argc != 1) { printf(1, "Usage: ps\n"); exit(); } cps(); exit(); }
13.27
11
(translation_unit) "#include "types.h"\n#include "user.h"\n \nint main(int argc, char *argv[]) {\n if (argc != 1) {\n printf(1, "Usage: ps\n");\n exit();\n }\n cps();\n exit();\n}" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_co...
82
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.27, "nodes": 41, "errors": 0, "source_hash": "2fbf3baa4b1606001bf532358dd420a875a6b5d8d80e5b6d3dfeac501a12759f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,221
c
/* * linux/fs/hfsplus/xattr_trusted.c * * <NAME> <<EMAIL>> * * Handler for trusted extended attributes. */ #include <linux/nls.h> #include "hfsplus_fs.h" #include "xattr.h" static int hfsplus_trusted_getxattr(struct dentry *dentry, const char *name, void *buffer, size_t size, int type) { char *xattr_name...
27.59
59
(translation_unit) "/*\n * linux/fs/hfsplus/xattr_trusted.c\n *\n * <NAME> <<EMAIL>>\n *\n * Handler for trusted extended attributes.\n */\n\n#include <linux/nls.h>\n\n#include "hfsplus_fs.h"\n#include "xattr.h"\n\nstatic int hfsplus_trusted_getxattr(struct dentry *dentry, const char *name,\n void *buffer, size_t s...
436
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.59, "nodes": 278, "errors": 0, "source_hash": "de1d4c72a7198d2b1fb5a6f99efee0b27d8b222332a74ff11f5b36ea9838879f", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,222
c
// clang-format off #include "GL/glew.h" // clang-format on #include "view.h" #include "field.h" #include <GLFW/glfw3.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct RenderInfo { GLuint programId; GLuint vertexBufferId; GLuint vertexArrayId; GLuint indexBufferId; GLuint uOffsetLocation...
38.15
134
(translation_unit) "// clang-format off\n#include "GL/glew.h"\n// clang-format on\n\n#include "view.h"\n#include "field.h"\n#include <GLFW/glfw3.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nstruct RenderInfo {\n GLuint programId;\n GLuint vertexBufferId;\n GLuint vertexArrayId;\n GLuint index...
1,337
1
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 38.15, "nodes": 809, "errors": 0, "source_hash": "c2869a4be18d66023da20f7e082a3bcab3315463baa2e50fa790513b805601c4", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,223
c
/* Copyright (C) 2017-2019 Intel Corporation 3 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted for any purpose (including commercial purposes) * provided that the following conditions are met: * * 1. Redistributions of source code must re...
31.67
163
(translation_unit) "/* Copyright (C) 2017-2019 Intel Corporation\n3 * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted for any purpose (including commercial purposes)\n * provided that the following conditions are met:\n *\n * 1. Redistribut...
1,106
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 31.67, "nodes": 643, "errors": 0, "source_hash": "8fef91f5de24dd29f92021fd0e4748b8321bbdb1bf8c298169d93c01af85db44", "categorized_nodes": 436}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,224
c
#ifndef __HAL_SPI_FLASH_H__ #define __HAL_SPI_FLASH_H__ #include <stdint.h> void hal_spi_flash_config(void); int hal_spi_flash_erase(uint32_t addr, int32_t len); int hal_spi_flash_write(const void* buf, int32_t len, uint32_t* location); int hal_spi_flash_erase_write(const void* buf, int32_t len, uint32_t location)...
42.25
12
(translation_unit) "#ifndef __HAL_SPI_FLASH_H__\n#define __HAL_SPI_FLASH_H__\n\n#include <stdint.h>\n\nvoid hal_spi_flash_config(void);\n\nint hal_spi_flash_erase(uint32_t addr, int32_t len);\n\nint hal_spi_flash_write(const void* buf, int32_t len, uint32_t* location);\n\nint hal_spi_flash_erase_write(const void* buf, ...
136
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 42.25, "nodes": 99, "errors": 0, "source_hash": "a949b44630104bcfd34d0cd6165459423e863a3c2194eaa8162e0cdd9b3f421c", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,225
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FMCore.framework/FMCore */ @interface FMSystemInfo_osx : FMSystemInfo - (id)deviceClass; - (id)deviceModelName; - (id)deviceName; - (id)deviceUDID; - (id)osVersion; - (id)productName; - (id)productType; @end
22.67
12
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/FMCore.framework/FMCore\n */\n\n@interface FMSystemInfo_osx : FMSystemInfo\n\n- (id)deviceClass;\n- (id)deviceModelName;\n- (id)deviceName;\n- (id)deviceUDID;\n- (id)osVersion;\n- (id)productName;\n- (id)productType;\n\n@end...
83
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.67, "nodes": 49, "errors": 0, "source_hash": "0e9846ffb2df311152062978fad8df12ff5e0c6373f592a8a208c06f9523bfce", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface FMSys...
7,226
c
/** * \file ui-context.h * \brief Show player and terrain context menus. * * Copyright (c) 2011 <NAME> * * This work is free software; you can redistribute it and/or modify it * under the terms of either: * * a) the GNU General Public License as published by the Free Software * Foundation, version 2, or *...
33.38
29
(translation_unit) "/**\n * \file ui-context.h\n * \brief Show player and terrain context menus.\n *\n * Copyright (c) 2011 <NAME>\n *\n * This work is free software; you can redistribute it and/or modify it\n * under the terms of either:\n *\n * a) the GNU General Public License as published by the Free Software\n * ...
127
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 33.38, "nodes": 93, "errors": 0, "source_hash": "3fc50e44e96d42529f600811857c7216fbfb84410bec02c87838aeaaf40d1726", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,227
c
#include "skynet.h" #include "skynet_timer.h" #include "skynet_mq.h" #include "skynet_server.h" #include "skynet_handle.h" #include "spinlock.h" #include <time.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <stdint.h> typedef void (*timer_execute_func)(void *ud, void *arg); #define TIME_NEA...
26.21
245
(translation_unit) "#include "skynet.h"\n\n#include "skynet_timer.h"\n#include "skynet_mq.h"\n#include "skynet_server.h"\n#include "skynet_handle.h"\n#include "spinlock.h"\n\n#include <time.h>\n#include <assert.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h>\n\ntypedef void (*timer_execute_func)(void ...
2,114
1
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 26.21, "nodes": 1352, "errors": 0, "source_hash": "bedb0d98e65d9406ba168c132949d01035e95bc9cba052217614b05d15b47ca0", "categorized_nodes": 975}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,228
c
#pragma once #include <iostream> #include "GameFrameworkLib.h" #include "GameUtilityLib.h" #include "BaseCharacter.h" namespace GameUtility { class TimeInput : public Input { public: inline TimeInput(const UtilityParams& _params) : Input(_params) { } const float getValue(const Blackboard* _blackboard, const Ta...
33
25
(translation_unit) "#pragma once\n\n#include <iostream>\n#include "GameFrameworkLib.h"\n#include "GameUtilityLib.h"\n#include "BaseCharacter.h"\n\nnamespace GameUtility\n{\n class TimeInput : public Input\n {\n public:\n inline TimeInput(const UtilityParams& _params) : Input(_params) { }\n const float getValue(const ...
268
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 33.0, "nodes": 159, "errors": 0, "source_hash": "8ef90e7a6bfca34403892f7f87c0b376296385ff1a4dae3bff263b8283a5e950", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,229
c
#pragma once #include "VulkanAPIIncludes.h" #include "../GraphicsInstance.h" #include <vector> #include <memory> namespace Jimara { namespace Graphics { namespace Vulkan { /// <summary> /// VULkan API backend instance /// </summary> class VulkanInstance : public GraphicsInstance { public: /// <su...
35.8
56
(translation_unit) "#pragma once\n#include "VulkanAPIIncludes.h"\n#include "../GraphicsInstance.h"\n#include <vector>\n#include <memory>\n\nnamespace Jimara {\n namespace Graphics {\n namespace Vulkan {\n /// <summary>\n /// VULkan API backend instance\n /// </summary>\n class VulkanInstance : public GraphicsI...
249
18
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.8, "nodes": 139, "errors": 0, "source_hash": "2ccecb2236abe63bd98d493d70d5620d474e9cd8fb7a445b926dfc15b696bd4a", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,230
c
#include "holberton.h" /** *puts2 - prints every even numbered char in a string *@str: pointer to a string to be printed * *Return: void */ void puts2(char *str) { int i = 0; while (str[i]) { if (!(i % 2)) _putchar(str[i]); i++; } _putchar('\n'); }
13.78
18
(translation_unit) "#include "holberton.h"\n\n/**\n *puts2 - prints every even numbered char in a string\n *@str: pointer to a string to be printed\n *\n *Return: void\n */\nvoid puts2(char *str)\n{\n int i = 0;\n\n while (str[i])\n {\n if (!(i % 2))\n _putchar(str[i]);\n i++;\n }\n _putchar('\n');\n}\n" (preproc...
85
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 13.78, "nodes": 49, "errors": 0, "source_hash": "d75ccff41a7f5e3aa27cad85985513d4b5d76bd54a0091d42713df7bd5458b93", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,231
c
#if !defined(AFX_BCGPODBCGRIDCTRL_H__C1682894_119A_4E19_B8CF_54A43B685FA0__INCLUDED_) #define AFX_BCGPODBCGRIDCTRL_H__C1682894_119A_4E19_B8CF_54A43B685FA0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //******************************************************************************* // COPYRIGH...
33.84
92
(translation_unit) "#if !defined(AFX_BCGPODBCGRIDCTRL_H__C1682894_119A_4E19_B8CF_54A43B685FA0__INCLUDED_)\n#define AFX_BCGPODBCGRIDCTRL_H__C1682894_119A_4E19_B8CF_54A43B685FA0__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n//****************************************************************...
505
24
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 33.84, "nodes": 312, "errors": 0, "source_hash": "936a1ceaac16caa23926151198c3fa30ca6ae083165f915429684120dfaf1570", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
7,232
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "datastore.h" #include "issuedetailsui.h" #include "settings.h" #include <QMainWindow> #include <QListWidgetItem> #include <QTreeWidget> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget...
37.33
57
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include "datastore.h"\n#include "issuedetailsui.h"\n#include "settings.h"\n\n#include <QMainWindow>\n#include <QListWidgetItem>\n#include <QTreeWidget>\n\nnamespace Ui {\nclass MainWindow;\n}\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\n...
506
11
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 37.33, "nodes": 336, "errors": 0, "source_hash": "e469e84405f28611c44712f23ed9005865862c04f257f0e53265a57f40a57a92", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,233
c
#pragma once #include <QMainWindow> #include "interfaces/QWorkspace.h" class QWorkspaceWindow : public QMainWindow { Q_OBJECT; public: QWorkspaceWindow() = default; virtual ~QWorkspaceWindow() override = default; public slots: virtual void addWorkspace(QWorkspace* workspace) = 0; };
24
12
(translation_unit) "#pragma once\n#include <QMainWindow>\n\n#include "interfaces/QWorkspace.h"\n\nclass QWorkspaceWindow : public QMainWindow\n{\n Q_OBJECT;\npublic:\n QWorkspaceWindow() = default;\n virtual ~QWorkspaceWindow() override = default;\n\npublic slots:\n virtual void addWorkspace(QWorkspace* wor...
76
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.0, "nodes": 48, "errors": 0, "source_hash": "0638bb101414571dce23169ef6a4f12fe47c28aed11b126d7a71022c4f150075", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,234
c
#pragma once /******************************************************************************/ #include "Reader.h" #include "amqp/schema/Field.h" /******************************************************************************/ namespace amqp::internal::reader { class PropertyReader : public Reader { pr...
42.42
33
(translation_unit) "#pragma once\n\n/******************************************************************************/\n\n#include "Reader.h"\n\n#include "amqp/schema/Field.h"\n\n/******************************************************************************/\n\nnamespace amqp::internal::reader {\n\n class PropertyRea...
319
24
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 42.42, "nodes": 180, "errors": 0, "source_hash": "15c7c514e934f989bff0acad3615103454d2978e7b42160537db87c22089a5ed", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,235
c
/* * Copyright (c) 2020, Intel Corporation * 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 con...
32.28
283
(translation_unit) "/*\n * Copyright (c) 2020, Intel Corporation\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright no...
1,592
19
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 32.28, "nodes": 993, "errors": 0, "source_hash": "552da68e0fbda77ff8a9e37f9a27767e39be4d7cfc013079cd91b374325d5a72", "categorized_nodes": 686}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
7,236
c
#ifndef ARK_CORE_BITWISE_TRIE_H_ #define ARK_CORE_BITWISE_TRIE_H_ #include <algorithm> #include <map> #include <unordered_map> #include "core/forwarding.h" #include "core/base/api.h" namespace ark { namespace { template<size_t> struct _KeySelector; template<> struct _KeySelector<1> { typedef uint8_t KeyValue; }; t...
35.66
201
(translation_unit) "#ifndef ARK_CORE_BITWISE_TRIE_H_\n#define ARK_CORE_BITWISE_TRIE_H_\n\n#include <algorithm>\n#include <map>\n#include <unordered_map>\n\n#include "core/forwarding.h"\n#include "core/base/api.h"\n\nnamespace ark {\n\nnamespace {\n\ntemplate<size_t> struct _KeySelector;\ntemplate<> struct _KeySelector<...
2,385
78
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 35.66, "nodes": 1499, "errors": 0, "source_hash": "a20086d0f2aba9deb6e0dc8030a1673eb93957a8bf44c73143968c5b84f97923", "categorized_nodes": 1045}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
7,237
c
/******************************************************************* * * DESCRIPTION: classModelAdmin and SingleModelAdmin * * AUTHOR: <NAME> & <NAME> * <NAME> (v3) * * EMAIL: mailto://<EMAIL> * mailto://<EMAIL> * mailto://<EMAIL> * * DATE: 27/6/1998 * 27/9/2000 (v3) * ******************************...
26.62
125
(translation_unit) "/*******************************************************************\n*\n* DESCRIPTION: classModelAdmin and SingleModelAdmin\n*\n* AUTHOR: <NAME> & <NAME>\n* <NAME> (v3)\n*\n* EMAIL: mailto://<EMAIL>\n* mailto://<EMAIL>\n* mailto://<EMAIL>\n*\n* DATE: 27/6/1998\n* 27/9/2000 (v3)\...
798
59
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 26.62, "nodes": 431, "errors": 0, "source_hash": "e7bca3be0690786e3df98ba45428224ad8e48e08e3177654a594ee9e780b0e15", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,238
c
/* * fsp-error.h * * Copyright (C) 2010-2012 <NAME> * Authors: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General * Public License as published by the Free Software Foundation. * * This program is distributed in...
31.66
95
(translation_unit) "/*\n * fsp-error.h\n *\n * Copyright (C) 2010-2012 <NAME>\n * Authors: <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of version 3 of the GNU Lesser General\n * Public License as published by the Free Software Foundation.\n *\n * ...
224
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.66, "nodes": 149, "errors": 0, "source_hash": "26cdf37fe753cb57b986702c21b99ad57cd7c2b7608d02718882fc1ce6b1b17d", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,239
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
28.1
49
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
77
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 28.1, "nodes": 42, "errors": 0, "source_hash": "240336e23d548461f2ddcede0b6275b91055922ab1de89063657c4d90af799de", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,240
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: sw=2 ts=8 et : */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mo...
28.61
54
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n * vim: sw=2 ts=8 et :\n */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org...
264
13
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.61, "nodes": 148, "errors": 0, "source_hash": "a93f25257abd85ffa07d9644e77dec2ac6438f77b6c0977c745b5512e013f118", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,241
c
/*====================================================================* * * MACAddr.c - MAC Address encode and decode functions; * *. Motley Tools by <NAME> *: Published 1982-2005 by <NAME> for personal use *; Licensed under the Internet Software Consortium License * *--------------------------------------...
28.17
59
(translation_unit) "/*====================================================================*\n *\n * MACAddr.c - MAC Address encode and decode functions;\n *\n *. Motley Tools by <NAME>\n *: Published 1982-2005 by <NAME> for personal use\n *; Licensed under the Internet Software Consortium License\n *\n *----------...
172
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.17, "nodes": 97, "errors": 0, "source_hash": "ca6c8ee3d85877a9165684e23c5bb4eb31cec0ccfa8dcd4224872d763cd0b5b2", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,242
c
/*! @file @author <NAME> @date 03/2008 */ /* This file is part of MyGUI. MyGUI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versi...
33.66
211
(translation_unit) "/*!\n @file\n @author <NAME>\n @date 03/2008\n*/\n/*\n This file is part of MyGUI.\n\n MyGUI is free software: you can redistribute it and/or modify\n it under the terms of the GNU Lesser General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (...
1,151
14
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 33.66, "nodes": 787, "errors": 0, "source_hash": "fbcbec90979aa089cb43f352152fffd698b4eda5c39b3b03fa57b383ea4b1391", "categorized_nodes": 597}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,243
c
#include <stdio.h> //headerFile int max_of_four(int , int , int , int); //function declaration int max_of_four(int a, int b, int c, int d) //function definition { //body of function int res = a; if (b > res) res = b; if (c > res) res = c; if (d > res) res = d; return ...
25.35
23
(translation_unit) "#include <stdio.h> //headerFile\nint max_of_four(int , int , int , int); //function declaration\n\nint max_of_four(int a, int b, int c, int d) //function definition\n{\n //body of function\n int res = a;\n\n if (b > res)\n res = b;\n if (c > res)\n res = c;\n if (d > re...
203
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.35, "nodes": 118, "errors": 0, "source_hash": "05a315dd6ca87b016878435e1ca3dcad9c123b6e52664e15c0241cc665c5ae89", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,244
c
#ifndef C0P_PARAM_RUN_PARAPETERS_H #define C0P_PARAM_RUN_PARAMETERS_H #pragma once #include "core/run/prop.h" namespace c0p { // Run simulation parameters struct RunParameters { // Fixed time step of the simulation. // Should be greater than zero. double dt = 0.002; // Number of time steps of the sim...
29
21
(translation_unit) "#ifndef C0P_PARAM_RUN_PARAPETERS_H\n#define C0P_PARAM_RUN_PARAMETERS_H\n#pragma once\n\n#include "core/run/prop.h"\n\nnamespace c0p {\n\n// Run simulation parameters\nstruct RunParameters {\n // Fixed time step of the simulation.\n // Should be greater than zero.\n double dt = 0.002;\n /...
81
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.0, "nodes": 49, "errors": 0, "source_hash": "3858eebf50c492ec5942b576ca4a9b83e5f8955261eb5399f439b3c9b3405033", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
7,245
c
// // Created by Tenton on 7/8/2018. // #include <stdio.h> #include <stdlib.h> #include "../zenvm.h" #include "../instructions.h" void zen_ins_and() { //global_data_seg[dst_operand].value = global_data_seg[dst_operand].value & src_operand_value.value; } void zen_ins_or() { //global_data_seg[dst_operand].val...
26.22
18
(translation_unit) "//\n// Created by Tenton on 7/8/2018.\n//\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "../zenvm.h"\n#include "../instructions.h"\n\nvoid zen_ins_and() {\n //global_data_seg[dst_operand].value = global_data_seg[dst_operand].value & src_operand_value.value;\n}\n\n\nvoid zen_ins_or() {\n ...
55
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.22, "nodes": 27, "errors": 0, "source_hash": "90ad3e5cb2877762a751aa17535b7867c686701855fe8267efbc7c9c013c3354", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,246
c
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
29.31
45
(translation_unit) "/*\n * Copyright (C) 2011 The Android Open Source Project\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...
263
6
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 29.31, "nodes": 149, "errors": 0, "source_hash": "c9f4a4649217b0b2f7252167f6164757698ce06a88562ba2112ed1c454aadd68", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,247
c
#pragma once #include <string> #include <map> #include <list> #include "IndirectFunctionCaller.h" using namespace std; class ITestAction { public: virtual ~ITestAction(){} virtual void Excecute() = 0; }; template <class T> class ActionTemplate : public ITestAction { typedef void(T::*ActionFunctor)(); pub...
20.97
103
(translation_unit) "ragma once\n\n#include <string>\n#include <map>\n#include <list>\n\n#include "IndirectFunctionCaller.h"\n\nusing namespace std;\n\nclass ITestAction\n{\npublic:\n virtual ~ITestAction(){}\n virtual void Excecute() = 0;\n};\n\ntemplate <class T>\nclass ActionTemplate : public ITestAction\n{\n t...
756
30
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 20.97, "nodes": 440, "errors": 0, "source_hash": "db1c89f9a87ddd7d15650a1008f5524e0c801d1f5b017fb44ee692f84c1a21ea", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
7,248
c
/* @include embmat ************************************************************ ** ** General match routines ** ** @author Copyright (c) 1999 <NAME> ** @version $Revision: 1.17 $ ** @modified $Date: 2013/03/05 23:08:59 $ by $Author: rice $ ** @@ ** ** This library is free software; you can redistribute it and/or ** mod...
31.81
176
(translation_unit) "/* @include embmat ************************************************************\n**\n** General match routines\n**\n** @author Copyright (c) 1999 <NAME>\n** @version $Revision: 1.17 $\n** @modified $Date: 2013/03/05 23:08:59 $ by $Author: rice $\n** @@\n**\n** This library is free software; you can ...
380
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 31.81, "nodes": 258, "errors": 0, "source_hash": "6788461a15992887696e85a435bd01d21b69a4bfdc264ac6848a939909ec0368", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,249
c
/* COPYRIGHT 2019 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions. For additional information, contact: Environmental Systems Research Institute, Inc. A...
25.29
35
(translation_unit) "/*\n COPYRIGHT 2019 ESRI\n \n TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL\n Unpublished material - all rights reserved under the\n Copyright Laws of the United States and applicable international\n laws, treaties, and conventions.\n \n For additional information, contact:\n Environmental System...
42
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.29, "nodes": 33, "errors": 0, "source_hash": "df942e887faa931ebe5b54ef3c5f2ade56a31d26906dc82993586d407d3c3769", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,250
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "UncaughtExceptionHandler.h" FOUNDATION_EXPORT double SXDemoVersionNumber; FOUNDATION_EXPORT const unsigned char SXD...
23.14
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "UncaughtExceptionHandler.h"\n\nFOUNDATION_EXPORT double SXDemoVersionNumber;\nFOUNDA...
55
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.14, "nodes": 45, "errors": 0, "source_hash": "e4a8e5c7866ce98c724924de0361e0f435f5a0bae142ee75c0c9c6d08d17a29f", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
7,251
c
// // HWListIntoSingleSectionController.h // IGListLearning // // Created by Heath on 2018/4/28. // Copyright © 2018 Heath. All rights reserved. // #import "IGListSectionController.h" /** * one section include mul same data. */ @interface HWListIntoSingleSectionController : IGListSectionController @end
21.21
14
(translation_unit) "//\n// HWListIntoSingleSectionController.h\n// IGListLearning\n//\n// Created by Heath on 2018/4/28.\n// Copyright © 2018 Heath. All rights reserved.\n//\n\n#import "IGListSectionController.h"\n\n/**\n * one section include mul same data.\n */\n@interface HWListIntoSingleSectionController : IGLi...
20
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.21, "nodes": 9, "errors": 0, "source_hash": "8bd1f13da47b23de081041e8551f7a6d00ca15e947c3d1ef3085ba71d382c9bb", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"IG...
7,252
c
#pragma once #include <frc2/command/SubsystemBase.h> #include <ctre/Phoenix.h> #include <frc/XboxController.h> #include <frc/Compressor.h> #include <frc/DoubleSolenoid.h> #include <frc/PneumaticsModuleType.h> #include "rev/CANSparkMax.h" #include "Constants.h" class IntakeSubsystem : public frc2::SubsystemBase { publ...
32.81
36
(ERROR) "#pragma once\n\n#include <frc2/command/SubsystemBase.h>\n#include <ctre/Phoenix.h>\n#include <frc/XboxController.h>\n#include <frc/Compressor.h>\n#include <frc/DoubleSolenoid.h>\n#include <frc/PneumaticsModuleType.h>\n#include "rev/CANSparkMax.h"\n#include "Constants.h"\n\nclass IntakeSubsystem : public frc2::...
328
24
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.81, "nodes": 179, "errors": 0, "source_hash": "73d870690dc94e9613db22ad3ae792c9139c96463b3b6a92c1f65760f9827f2c", "categorized_nodes": 124}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
7,253
c
/** * @author <NAME> */ #ifndef DQCLAUSE_H #define DQCLAUSE_H /** @file @brief Header file for DQClause */ #include <QList> #include <QVariant> #include <QVector> /// The clause of a column definition /** DQClause is a data structure to describe the clause of column definition for "create table". It is used...
30.11
104
(translation_unit) "/**\n * @author <NAME>\n */\n\n#ifndef DQCLAUSE_H\n#define DQCLAUSE_H\n\n/** @file\n @brief Header file for DQClause\n\n */\n\n#include <QList>\n#include <QVariant>\n#include <QVector>\n\n/// The clause of a column definition\n/** DQClause is a data structure to describe the clause of column defini...
236
8
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 30.11, "nodes": 141, "errors": 0, "source_hash": "44c489a9b8fb0a21f6fe88303ba10b60f250698b7b644793547ba79d906d74ff", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,254
c
// // CASCenteringClipView.h // scrollview-test // // derived from AGCenteringClipView at http://cocoadev.com/wiki/CenteringInsideNSScrollView // #import <Cocoa/Cocoa.h> @interface CASCenteringClipView : NSClipView - (void)resetClipView; + (void)replaceClipViewInScrollView:(NSScrollView*)scrollView; @end
24.83
12
(translation_unit) "//\n// CASCenteringClipView.h\n// scrollview-test\n//\n// derived from AGCenteringClipView at http://cocoadev.com/wiki/CenteringInsideNSScrollView\n//\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface CASCenteringClipView : NSClipView\n- (void)resetClipView;\n+ (void)replaceClipViewInScrollView:(NSScrol...
47
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.83, "nodes": 27, "errors": 0, "source_hash": "4b604b303cbdd3d241d5eea239d6d9f60c4fe45c6f173ac67aebf98876153319", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,255
c
// // FQChartView.h // JTFQ_TestCharts // // Created by fanqi on 2018/11/12. // Copyright © 2018年 fanqi. All rights reserved. // #import <UIKit/UIKit.h> #import "FQChartConfiguration.h" #import "FQSeriesElement.h" NS_ASSUME_NONNULL_BEGIN @class FQChartView; @protocol FQChartViewDelegate <NSObject> @optional ...
25.7
155
(translation_unit) "//\n// FQChartView.h\n// JTFQ_TestCharts\n//\n// Created by fanqi on 2018/11/12.\n// Copyright © 2018年 fanqi. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "FQChartConfiguration.h"\n#import "FQSeriesElement.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class FQChartView;\n\n@protocol FQChartV...
733
83
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 25.7, "nodes": 512, "errors": 0, "source_hash": "8e07992f234ff6bc3a33f0f945abe0b55509228d1e8bdaf0c9a2ddf59f2240f0", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <U...
7,256
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/TextInput.framework/TextInput */ @interface TITypologyRecordLastAcceptedCandidateCorrected : TITypologyRecord - (void)applyToStatistic:(id)arg1; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)shortDescription; @end
33.89
9
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/TextInput.framework/TextInput\n */\n\n@interface TITypologyRecordLastAcceptedCandidateCorrected : TITypologyRecord\n\n- (void)applyToStatistic:(id)arg1;\n- (void)encodeWithCoder:(id)arg1;\n- (id)initWithCoder:(id)arg1;\n- (i...
71
7
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 33.89, "nodes": 40, "errors": 0, "source_hash": "69df8fcaa293eb225e301181b15eef42bc4c6e8cef954f9880a0562c30820504", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface TITypo...
7,257
c
// Objective-C API for talking to weiss Go package. // gobind -lang=objc weiss // // File is generated by gobind. Do not edit. #ifndef __Weiss_H__ #define __Weiss_H__ @import Foundation; #include "ref.h" #include "Universe.objc.h" @class WeissAnswer; @class WeissOneZeroReq; @class WeissOneZeroRes; @class WeissQue...
33.68
60
(translation_unit) "// Objective-C API for talking to weiss Go package.\n// gobind -lang=objc weiss\n//\n// File is generated by gobind. Do not edit.\n\n#ifndef __Weiss_H__\n#define __Weiss_H__\n\n@import Foundation;\n#include "ref.h"\n#include "Universe.objc.h"\n\n\n@class WeissAnswer;\n@class WeissOneZeroReq;\n@cla...
563
97
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.68, "nodes": 400, "errors": 0, "source_hash": "9febdaf59708e67937d0036391cebaf1016939f8726ee64b5a097f74977999af", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,258
c
#ifndef SPLATT_CSF_H #define SPLATT_CSF_H #include "base.h" /****************************************************************************** * ENUMS and CONSTANTS *****************************************************************************/ /* The types of mode ordering available. */ typedef enum { CSF_SORTED_S...
31.68
272
(translation_unit) "#ifndef SPLATT_CSF_H\n#define SPLATT_CSF_H\n\n#include "base.h"\n\n/******************************************************************************\n * ENUMS and CONSTANTS\n *****************************************************************************/\n\n\n/* The types of mode ordering available. */...
626
0
{"language": "c", "success": true, "metadata": {"lines": 272, "avg_line_length": 31.68, "nodes": 380, "errors": 0, "source_hash": "2667350f85c2643194a4720b6ea06674bf2ace2e3226d2340634909c1a3f1e41", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,259
c
/* Copyright 2020 <NAME> * Released under MIT license * * Driver for ST7735 LCD on Longan Nano board */ #pragma once //#define LCD_HORIZONTAL #define LCD_VERTICAL #ifdef LCD_HORIZONTAL #define LCD_WIDTH (160) #define LCD_HEIGHT (80) #define LCD_OFFSET_X (1) #define LCD_OFFSET_Y (26) #else #define LCD_WIDTH (80...
24.21
24
(translation_unit) "/* Copyright 2020 <NAME>\n * Released under MIT license \n * \n * Driver for ST7735 LCD on Longan Nano board \n */\n#pragma once\n\n//#define LCD_HORIZONTAL\n#define LCD_VERTICAL\n\n#ifdef LCD_HORIZONTAL\n#define LCD_WIDTH (160)\n#define LCD_HEIGHT (80)\n#define LCD_OFFSET_X (1)\n#define LCD_OFFSET_...
114
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.21, "nodes": 93, "errors": 0, "source_hash": "5064b1dad6f754a954e1457af877a4ef66bc09a230adf929b4799c091b34645d", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,260
c
/* * TCPRCSServer.h * * Created on: 09.03.2015 * Author: <NAME> */ #ifndef TCPRCSSERVER_H_ #define TCPRCSSERVER_H_ #include "../../Threading/Thread.h" #include "../../DataStructures/FastVectorN.h" #include "../../DataStructures/FastKTuple.h" #include "../TCPSocket.h" #include "../TCPConnectionPoll.h" #inc...
37.89
84
(translation_unit) "/*\n * TCPRCSServer.h\n *\n * Created on: 09.03.2015\n * Author: <NAME>\n */\n\n#ifndef TCPRCSSERVER_H_\n#define TCPRCSSERVER_H_\n\n#include "../../Threading/Thread.h"\n#include "../../DataStructures/FastVectorN.h"\n#include "../../DataStructures/FastKTuple.h"\n\n#include "../TCPSocket.h"\n#in...
558
33
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 37.89, "nodes": 366, "errors": 0, "source_hash": "3be27bb6f1323a0faf633760959cbba99f477c292687297c0664aa57594177fa", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,261
c
#include <stdio.h> #include <dlfcn.h> #include <pthread.h> typedef void* (*thread_main_t)(void*); int main() { puts("hello from main"); void *lib_handle = dlopen("./liblib.so", RTLD_NOW); if (!lib_handle) { puts("cannot load side module"); puts(dlerror()); return 1; } thread_main_t tmain = (th...
24.75
24
(translation_unit) "#include <stdio.h>\n#include <dlfcn.h>\n#include <pthread.h>\n\ntypedef void* (*thread_main_t)(void*);\n\nint main() {\n puts("hello from main");\n\n void *lib_handle = dlopen("./liblib.so", RTLD_NOW);\n if (!lib_handle) {\n puts("cannot load side module");\n puts(dlerror());\n return 1;...
228
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.75, "nodes": 122, "errors": 0, "source_hash": "1f8a4d2a1f54e07380047797222aa28cb8db44dcff67bf5dddd77d008a0c655f", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,262
c
#ifndef PORTSELECT_H #define PORTSELECT_H #include <QDialog> #include <QListView> #include <QListWidgetItem> #include <QSerialPortInfo> namespace Ui { class PortSelect; } class PortSelect : public QDialog { Q_OBJECT public: explicit PortSelect(QWidget *parent = nullptr); ~PortSelect(); QString getPo...
23.63
27
(translation_unit) "#ifndef PORTSELECT_H\n#define PORTSELECT_H\n\n#include <QDialog>\n#include <QListView>\n#include <QListWidgetItem>\n#include <QSerialPortInfo>\n\nnamespace Ui {\nclass PortSelect;\n}\n\nclass PortSelect : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit PortSelect(QWidget *parent = nullptr);...
161
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.63, "nodes": 108, "errors": 0, "source_hash": "f85be48c4cc3eca6f8fd3856ab8d2a59c13a376ecc98370532ae0c4ddd9a80b0", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,263
c
char *Uptime(DWORD TickCount,DWORD Startup, BOOL vDays=FALSE); #ifndef NO_RECORD_UPTIME extern BOOL bRecUpdated; char *RecordUptime(void); BOOL UpdateRecord(void); DWORD GetRecord(void); DWORD WINAPI RecordUptimeThread(LPVOID param); #endif #ifndef NO_SYSINFO void sysinfo(char *target, void* conn); #endif #ifndef NO...
25.35
17
(translation_unit) "char *Uptime(DWORD TickCount,DWORD Startup, BOOL vDays=FALSE);\n\n#ifndef NO_RECORD_UPTIME\nextern BOOL bRecUpdated;\nchar *RecordUptime(void);\nBOOL UpdateRecord(void);\nDWORD GetRecord(void);\nDWORD WINAPI RecordUptimeThread(LPVOID param);\n#endif\n\n#ifndef NO_SYSINFO\nvoid sysinfo(char *target, ...
155
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.35, "nodes": 121, "errors": 0, "source_hash": "f3743a5bd72417b1511b59b733840d6d0cb395a9c8f5259c44c12867f711dab6", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char *Upt...
7,264
c
#ifndef mm_vec_swizzle_out_h #define mm_vec_swizzle_out_h #include "mm_common.h" #include "mm_vec2_impl.h" #include "mm_vec3_impl.h" #include "mm_vec4_impl.h" namespace mymath { namespace impl { //vec3 swizzlers for vec2 template<typename ty> template<int a> class vec2i<ty>::swizzle < a, a, a, -3 ...
20.36
220
(translation_unit) "#ifndef mm_vec_swizzle_out_h\n#define mm_vec_swizzle_out_h\n\n#include "mm_common.h"\n#include "mm_vec2_impl.h"\n#include "mm_vec3_impl.h"\n#include "mm_vec4_impl.h"\n\nnamespace mymath\n{\n namespace impl\n {\n //vec3 swizzlers for vec2\n template<typename ty>\n template<int a>\n clas...
1,988
140
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 20.36, "nodes": 1272, "errors": 0, "source_hash": "84495d188972f98bc21e8e4de25fadeb022ba57c1589310a10f13eaf883e427b", "categorized_nodes": 959}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,265
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_check.c :+: :+: :+: ...
31.84
64
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_check.c ...
481
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 31.84, "nodes": 326, "errors": 0, "source_hash": "add1b51d8f65d87aef5702846dc76831fb1030b75bef2586b6d6377e4144539a", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,266
c
#ifndef MTX_VECTOR_H #define MTX_VECTOR_H #include "csc_storage_format.h" #include <list> #include <set> /** * MtxVector is an implementation of CSCStorageFormat abstract class * representing CSC format for a vector. */ template<class DataType> class MtxVector : CSCStorageFormat<DataType> { public: // read fil...
31.9
49
(translation_unit) "#ifndef MTX_VECTOR_H\n#define MTX_VECTOR_H\n\n#include "csc_storage_format.h"\n#include <list>\n#include <set>\n\n/**\n * MtxVector is an implementation of CSCStorageFormat abstract class\n * representing CSC format for a vector.\n */\ntemplate<class DataType>\nclass MtxVector : CSCStorageFormat<Dat...
274
9
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.9, "nodes": 161, "errors": 0, "source_hash": "9dfccb1ef50b002d6842b03a5fc7d980c9a9c318a350117c3149670fe08af89b", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,267
c
// // ArVideoView.h // RTMPCDemo // // Created by 余生丶 on 2019/4/16. // Copyright © 2019 anyRTC. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol HangUpDelegate <NSObject> //主播或自己挂断连麦 - (void)hangUpOperation:(NSString *)peerId; @end @interface ArVideoView : UIView @property (n...
27.32
22
(translation_unit) "//\n// ArVideoView.h\n// RTMPCDemo\n//\n// Created by 余生丶 on 2019/4/16.\n// Copyright © 2019 anyRTC. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol HangUpDelegate <NSObject>\n\n//主播或自己挂断连麦\n- (void)hangUpOperation:(NSString *)peerId;\n\n@end\n\n@inter...
161
22
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.32, "nodes": 106, "errors": 0, "source_hash": "34fc14162c34141e76684dd1bdcf6e02df2c61a722476338ecc4b140175ee324", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/...
7,268
c
#pragma once #ifndef _AST_H_ #define _AST_H_ #include "scope.h" #include "context.h" #include <stdlib.h> #include <stdbool.h> #include <setjmp.h> typedef enum { NODE_LITERAL_STRING = 0, NODE_STRING, NODE_REAL, NODE_BOOL, NODE_ID, NODE_NIL, NODE_FN, NODE_MACRO, NODE_ARRAY, NODE_HASH, NODE_BIN...
31.35
279
(translation_unit) "#pragma once\n\n#ifndef _AST_H_\n#define _AST_H_\n\n#include "scope.h"\n#include "context.h"\n\n#include <stdlib.h>\n#include <stdbool.h>\n#include <setjmp.h>\n\ntypedef enum {\n NODE_LITERAL_STRING = 0,\n NODE_STRING,\n NODE_REAL,\n NODE_BOOL,\n NODE_ID,\n NODE_NIL,\n\n NODE_FN,\n NODE_MACR...
2,414
0
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 31.35, "nodes": 1783, "errors": 0, "source_hash": "b62e748d901579221a8411e10beec72d4200fdc9a06bc73eb2a2f909a950a141", "categorized_nodes": 1073}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
7,269
c
#pragma once typedef unsigned char BYTE; typedef unsigned short UINT16; typedef unsigned int UINT32; typedef unsigned long long UINT64;
26.2
5
(translation_unit) "#pragma once\n\ntypedef unsigned char BYTE;\ntypedef unsigned short UINT16;\ntypedef unsigned int UINT32;\ntypedef unsigned long long UINT64;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef unsigned char BYTE;" (typedef...
33
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 26.2, "nodes": 28, "errors": 0, "source_hash": "083e6623dfd08aa79666e9c10cdbfb3b110b2466a156c00f0d6f9dae03ff31e0", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,270
c
//***************************************************************************** // //! @page MCP980x test //! //! File: @ref xmcp980xtest.c //! //! <h2>Description</h2> //! This module implements the test sequence for the Xcore sub component.<br><br> //! - \p Board: NUC140 <br><br> //! - \p Last-Time(about): 0.5s <b...
28.82
233
(translation_unit) "//*****************************************************************************\n//\n//! @page MCP980x test\n//! \n//! File: @ref xmcp980xtest.c\n//! \n//! <h2>Description</h2>\n//! This module implements the test sequence for the Xcore sub component.<br><br>\n//! - \p Board: NUC140 <br><br>\n//! -...
1,217
0
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 28.82, "nodes": 619, "errors": 0, "source_hash": "57bd83219393eab95bc7b10b79561e33148214e9e5b79bad424a181929e3bff5", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,271
c
#pragma once #define _FILE_OFFSET_BITS 64 #include <iostream> #include <fstream> #include <sstream> #include <string> #include <iomanip> #include <vector> #include <set> #include <map> #include <unordered_map> #include <deque> #include <algorithm> #include <numeric> #include <random> #include <chrono> #include <cctyp...
20.44
52
(translation_unit) "#pragma once\n#define _FILE_OFFSET_BITS 64 \n\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <string>\n#include <iomanip>\n#include <vector>\n#include <set>\n#include <map>\n#include <unordered_map>\n#include <deque>\n#include <algorithm>\n#include <numeric>\n#include <random...
157
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 20.44, "nodes": 142, "errors": 0, "source_hash": "c4ab4208465de456edd4b076437f57f9f0c2a3b5bedd0a6939abd7c6178a2296", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,272
c
/*++ Copyright (c) 1992-1994 Microsoft Corporation Module Name: videosim.h Abstract: definitions for the simulation driver. Environment: Kernel mode Revision History: --*/ // // Define device extension structure. This is device dependant/private // information. // typede...
15.28
40
(translation_unit) "/*++ \n \nCopyright (c) 1992-1994 Microsoft Corporation \n \nModule Name: \n \n videosim.h \n \nAbstract: \n \n definitions for the simulation driver. \n \nEnvironment: \n \n Kernel mode \n \nRevision History: \n \n--*/ \n \n// \n// Define device extension structure. This is device dependa...
65
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 15.28, "nodes": 44, "errors": 0, "source_hash": "0af3112d0bf32323d562583e2ba8d24711141544bb6f625bcb7b8367bc787671", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
7,273
c
// // UIView+WBConstraints.h // WBCategories // // Created by Admin on 2018/2/9. // Copyright © 2018年 WENBO. All rights reserved. // /** < Get view's constraints. > */ #import <UIKit/UIKit.h> @interface UIView (WBConstraints) - (NSLayoutConstraint *)wb_constraintForAttribute:(NSLayoutAttribute)attribute;...
31.68
25
(translation_unit) "//\n// UIView+WBConstraints.h\n// WBCategories\n//\n// Created by Admin on 2018/2/9.\n// Copyright © 2018年 WENBO. All rights reserved.\n//\n\n/** <\n Get view's constraints.\n > */\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (WBConstraints)\n\n- (NSLayoutConstraint *)wb_constraintForAtt...
176
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.68, "nodes": 113, "errors": 0, "source_hash": "beb3e3bda4fb8157a80839dd026da1ebf042f29f11ba50d8502b21ba2c18b0ef", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
7,274
c
#include <stdio.h> void main() { float horas, vm; scanf("%f%f", &horas, &vm); printf("%.3f\n", (vm * horas) / 12); }
20.5
6
(translation_unit) "#include <stdio.h>\n\nvoid main() {\n float horas, vm;\n scanf("%f%f", &horas, &vm);\n printf("%.3f\n", (vm * horas) / 12);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "void main() {\n float horas,...
62
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 20.5, "nodes": 33, "errors": 0, "source_hash": "6aa4a0c6aaf700beb21224e818aaee4d50a561a0e2262dddb4e283e6b7f73d90", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,275
c
#include "xvmaininc.h" #include "defines.h" #include "rtlintproto.h" #include "declares.h" #include "externs.h" #include "ftnbridge.h" #define ABORT(x) {v2_error_handler(parm_file_unit,x); return x;} /************************************************************************/ /* Write a parameter out to the file opened...
33.73
134
(translation_unit) "#include "xvmaininc.h"\n#include "defines.h"\n#include "rtlintproto.h"\n#include "declares.h"\n#include "externs.h"\n#include "ftnbridge.h"\n\n#define ABORT(x) {v2_error_handler(parm_file_unit,x); return x;}\n\n/************************************************************************/\n/* Write a pa...
1,103
1
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 33.73, "nodes": 639, "errors": 0, "source_hash": "5b0ddc0de83d784a56724b83271da3540b3d95c03a7f9174ef7ac205ec0e81f9", "categorized_nodes": 474}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,276
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/crypto/RsaCipher.java // #ifndef _AMRsaCipher_H_ #define _AMRsaCipher_H_ #include "J2ObjC_header.h" #include "im/actor/model/crypto/RsaEncryptCipher.h" @class IOSByte...
37.44
16
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/crypto/RsaCipher.java\n//\n\n#ifndef _AMRsaCipher_H_\n#define _AMRsaCipher_H_\n\n#include "J2ObjC_header.h"\n#include "im/actor/model/crypto/RsaEnc...
83
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 37.44, "nodes": 56, "errors": 0, "source_hash": "9d8a7b059d68971cff8be2b8c611796972c3be2d06a341875091c27672d95cb7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,277
c
// Copyright 2020 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 V8_CRDTP_ERROR_SUPPORT_H_ #define V8_CRDTP_ERROR_SUPPORT_H_ #include <cstdint> #include <string> #include "export.h" #include "span.h" namespace...
39.61
51
(translation_unit) "// Copyright 2020 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 V8_CRDTP_ERROR_SUPPORT_H_\n#define V8_CRDTP_ERROR_SUPPORT_H_\n\n#include <cstdint>\n#include <string>\n#include "export.h"...
215
4
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 39.61, "nodes": 119, "errors": 0, "source_hash": "8ab5d05e2d99b66f39c8d11f82cd417cf35a4599c57bb9597943faf7b303afc5", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,278
c
// // EncoderDemoViewController.h // Encoder Demo // // Created by <NAME> on 11/01/2013. // Copyright (c) 2013 GDCL http://www.gdcl.co.uk/license.htm // #import <UIKit/UIKit.h> @interface EncoderDemoViewController : UIViewController @property (strong, nonatomic) IBOutlet UIView *cameraView; @property (strong, non...
28.77
13
(translation_unit) "//\n// EncoderDemoViewController.h\n// Encoder Demo\n//\n// Created by <NAME> on 11/01/2013.\n// Copyright (c) 2013 GDCL http://www.gdcl.co.uk/license.htm\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EncoderDemoViewController : UIViewController\n@property (strong, nonatomic) IBOutlet UIView *cam...
71
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.77, "nodes": 46, "errors": 0, "source_hash": "440cf333a9a99773dc0fc3ffcca7247c1de1b330082a687d971c1d8201cb40d9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,279
c
#ifndef __FILLPACKET__H_ #define __FILLPACKET__H_ #include <netinet/ip.h> #include <netinet/ip_icmp.h> typedef char u8; typedef unsigned short u16; #define DEFAULT_TIMEOUT 1500 #define ETHERNET_HDR_SIZE 14 typedef struct { struct ip ip_hdr; struct icmphdr icmp_hdr; u8 data[10]; } myicmp ; typedef struct { stru...
30.81
43
(translation_unit) "#ifndef __FILLPACKET__H_\n#define __FILLPACKET__H_\n\n#include <netinet/ip.h>\n#include <netinet/ip_icmp.h>\n\ntypedef char u8;\ntypedef unsigned short u16;\n\n#define DEFAULT_TIMEOUT 1500\n#define ETHERNET_HDR_SIZE 14\n\ntypedef struct\n{\n struct ip ip_hdr;\n struct icmphdr icmp_hdr;\n u8 data[10]...
158
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 30.81, "nodes": 107, "errors": 0, "source_hash": "5d1ef0b1f5a3dd0d66ca68c19593a284c4a31ed602c2a61b5e9e765956598d14", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,280
c
// // CheckboxObjCViewController.h // AndesUI-demoapp // // Created by <NAME> on 6/22/20. // Copyright © 2020 MercadoLibre. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface CheckboxObjCViewController : UIViewController @end NS_ASSUME_NONNULL_END
22.67
12
(translation_unit) "//\n// CheckboxObjCViewController.h\n// AndesUI-demoapp\n//\n// Created by <NAME> on 6/22/20.\n// Copyright © 2020 MercadoLibre. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CheckboxObjCViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.67, "nodes": 14, "errors": 0, "source_hash": "250c9af36409ac3858a3b2a8af277bd4d849be84cbc2d52372e8a17caba19359", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
7,281
c
/* * Copyright (C) 2005-2015 <NAME> * * This program, aufs 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 ...
26.44
180
(translation_unit) "/*\n * Copyright (C) 2005-2015 <NAME>\n *\n * This program, aufs is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later versi...
1,137
6
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 26.44, "nodes": 653, "errors": 0, "source_hash": "70d21919e4558cc401e65d8baa729e1ea65cd48e7e6cff2cabfc3740c838dcd5", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,282
c
#include <stdio.h> #define MAXN 1000 int main(int argc, char *argv[]){ FILE *fin,*fout; int i,tcase,T,R,k,N,g[MAXN],r,cap,starti; unsigned long long res; /*i=0; while(1) { printf("2^%d = %d",i,((int) 1)<<i); i++; getchar(); }*/ if (argc>1) fin=fope...
18.77
69
(translation_unit) "#include <stdio.h> \n \n#define MAXN 1000 \n \nint main(int argc, char *argv[]){ \n FILE *fin,*fout; \n int i,tcase,T,R,k,N,g[MAXN],r,cap,starti; \n unsigned long long res; \n \n /*i=0; \n while(1) \n { \n printf("2^%d = %d",i,((int) 1)<<i); \n i++; \n getchar(); \n }*...
523
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 18.77, "nodes": 294, "errors": 0, "source_hash": "6a6dff5d1c40b971388c0ad3452d729cf7a9f35da8fe213cec7684bafd714c90", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,283
c
#include <vector> #include <string> #include <string.h> #include <utility> void lexxerCmd(); std::pair<std::vector<int>, std::vector<std::string>> lex(std::string str); void runTests(); // Data (actual data) #define SMALLINT 201 #define INTEGER 202 #define BIGINT 203 #define NULLCHAR 204 #define CHARACTER 205 #define...
20.5
217
(translation_unit) "#include <vector>\n#include <string>\n#include <string.h>\n#include <utility>\n\nvoid lexxerCmd();\nstd::pair<std::vector<int>, std::vector<std::string>> lex(std::string str);\nvoid runTests();\n\n// Data (actual data)\n#define SMALLINT 201\n#define INTEGER 202\n#define BIGINT 203\n#define NULLCHAR ...
722
3
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 20.5, "nodes": 694, "errors": 0, "source_hash": "2aa1038b54e09b4e28ab28463d62bdad2becc27b00b63abb9ac095c53ffca88d", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,284
c
// // ShopModel.h // KVC // // Created by ckl on 2019/10/31. // Copyright © 2019年 ckl. All rights reserved. // #import <Foundation/Foundation.h> @interface ShopModel : NSObject @property (nonatomic,copy) NSString *shopName; @end
18.5
12
(translation_unit) "//\n// ShopModel.h\n// KVC\n//\n// Created by ckl on 2019/10/31.\n// Copyright © 2019年 ckl. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ShopModel : NSObject\n\n@property (nonatomic,copy) NSString *shopName;\n\n\n@end\n" (comment) "//" (comment) "// ShopModel....
36
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.5, "nodes": 23, "errors": 0, "source_hash": "85304caa44349f937ab9d30b2d7fbfd5834e147a0035a8f7a1526ef91f279b97", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
7,285
c
// // WXMeHeaderTableViewCell.h // renew // // Created by younghacker on 3/13/18. // Copyright © 2018 toureek. All rights reserved. // #import <UIKit/UIKit.h> extern NSString *const kWXMeHeaderTableViewCellTag; extern CGFloat const kWXMeHeaderTableViewCellHeight; extern CGFloat const kWXCommonLeftRightPaddingSpa...
29.56
18
(translation_unit) "//\n// WXMeHeaderTableViewCell.h\n// renew\n//\n// Created by younghacker on 3/13/18.\n// Copyright © 2018 toureek. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\nextern NSString *const kWXMeHeaderTableViewCellTag;\nextern CGFloat const kWXMeHeaderTableViewCellHeight;\nextern CGFloat c...
89
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.56, "nodes": 57, "errors": 0, "source_hash": "025b5bb208258c7baec06047dd8c54ca7ad705fa0010006cec29c48e63777ada", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
7,286
c
// Author: <NAME> 2020 #ifndef TRIANGLE_MESH_H_ #define TRIANGLE_MESH_H_ #include <eigen3/Eigen/Geometry> #include <vector> namespace data_representation { class TriangleMesh { public: /** * @brief TriangleMesh Constructor of the class. Calls clear. */ TriangleMesh(); /** * @brief ~TriangleMesh De...
22.46
35
(translation_unit) "// Author: <NAME> 2020\n\n#ifndef TRIANGLE_MESH_H_\n#define TRIANGLE_MESH_H_\n\n#include <eigen3/Eigen/Geometry>\n\n#include <vector>\n\nnamespace data_representation {\n\nclass TriangleMesh {\n public:\n /**\n * @brief TriangleMesh Constructor of the class. Calls clear.\n */\n TriangleMesh();...
129
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.46, "nodes": 70, "errors": 0, "source_hash": "670b9395d1d26872094a6b43306f6f00ecb85f9be3936bee623fa3c84c76fd96", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,287
c
//===-- msan_origin.h ----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
35.87
145
(translation_unit) "//===-- msan_origin.h ----------------------------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===-------------------------------------...
1,101
23
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 35.87, "nodes": 614, "errors": 0, "source_hash": "4fa5484da4e47e7e2aefe922c91e9967a0688b5f84460d2e60330d1b68d2768e", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,288
c
/* ** EPITECH PROJECT, 2020 ** libjzon ** File description: ** jzon_geti implementation */ #include "my/my.h" #include "my/collections/vec.h" #include "jzon/jzon.h" jzon_t jzon_geti(const jzon_t self, usize_t index) { OPT(ptr) ptr_val = NONE(ptr); if (self->v->type != JZ_ARR) return (NULL); ptr_v...
23.47
17
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** libjzon\n** File description:\n** jzon_geti implementation\n*/\n\n#include "my/my.h"\n#include "my/collections/vec.h"\n#include "jzon/jzon.h"\n\njzon_t jzon_geti(const jzon_t self, usize_t index)\n{\n OPT(ptr) ptr_val = NONE(ptr);\n\n if (self->v->type != JZ_AR...
125
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.47, "nodes": 75, "errors": 0, "source_hash": "295635a7dfd0b75c8243f649ffe0aa45a2c229cb815653fba27de4d92773116f", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,289
c
// SPDX-License-Identifier: GPL-2.0-only /* * Windfarm PowerMac thermal control. AD7417 sensors * * Copyright 2012 <NAME>, IBM Corp. */ #include <linux/types.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/wait.h> #inclu...
25.41
296
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-only\n/*\n * Windfarm PowerMac thermal control. AD7417 sensors\n *\n * Copyright 2012 <NAME>, IBM Corp.\n */\n\n#include <linux/types.h>\n#include <linux/errno.h>\n#include <linux/kernel.h>\n#include <linux/delay.h>\n#include <linux/slab.h>\n#include <linux/init.h...
2,372
1
{"language": "c", "success": true, "metadata": {"lines": 296, "avg_line_length": 25.41, "nodes": 1427, "errors": 0, "source_hash": "739b3b0c0ce39d7785e5552c4a4fb42f5aa6fe8df59553e3ab59fc3f534b9b7c", "categorized_nodes": 1065}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
7,290
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "doubly_linked_list.h" #include "tested_declarations.h" #include "rdebug.h" struct doubly_linked_list_t* dll_create(){ struct doubly_linked_list_t *dll = (struct doubly_linked_list_t*)malloc(sizeof(struct doubly_linked_list_t)); ...
23.44
253
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include "doubly_linked_list.h"\n#include "tested_declarations.h"\n#include "rdebug.h"\n\nstruct doubly_linked_list_t* dll_create(){\n struct doubly_linked_list_t *dll = (struct doubly_linked_list_t*)malloc(sizeof(str...
2,624
0
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 23.44, "nodes": 1719, "errors": 0, "source_hash": "d209e25d050e8a7bd5ac93550e9ecfc286105fbdc106590d34a148bd448c1552", "categorized_nodes": 1256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
7,291
c
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
33.6
47
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE...
183
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.6, "nodes": 105, "errors": 0, "source_hash": "8c5accf7b61fab54c886648945a2f6bb29bcaab8c14d77b8b29fefcc64473607", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,292
c
@interface QCLighting : QCPatch { QCNumberPort *inputObjectSpecular; // 156 = 0x9c QCNumberPort *inputObjectShininess; // 160 = 0xa0 QCColorPort *inputAmbientColor; // 164 = 0xa4 BOOL _separateSpecular; // 168 = 0xa8 BOOL _twoSideLighting; // 169 = 0xa9 float _polygonOffset; // 172 = 0xac NSMutableArray *_lightP...
35.03
29
(translation_unit) "@interface QCLighting : QCPatch\n{\n QCNumberPort *inputObjectSpecular; // 156 = 0x9c\n QCNumberPort *inputObjectShininess; // 160 = 0xa0\n QCColorPort *inputAmbientColor; // 164 = 0xa4\n BOOL _separateSpecular; // 168 = 0xa8\n BOOL _twoSideLighting; // 169 = 0xa9\n float _polygonOffset; // 172 = 0x...
318
22
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.03, "nodes": 191, "errors": 0, "source_hash": "0cc14bfd5cd238e349445bce9f07dbf947849669a4bb373621993f3e8c7c56fa", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
7,293
c
#pragma once #include "misc.h" // Smoke test control for Charger. // To run a smoke test, uncomment this and set SMOKE_TEST_CHARGER to the smoke test you want to run. // #define CHARGER_SMOKE_TEST SMOKE_TEST_CHARGER_COMMS typedef enum { SMOKE_TEST_CHARGER_COMMS = 0, // see smoke_charger_comms.c NUM_SMOKE_TESTS...
44.77
13
(translation_unit) "#pragma once\n\n#include "misc.h"\n\n// Smoke test control for Charger.\n\n// To run a smoke test, uncomment this and set SMOKE_TEST_CHARGER to the smoke test you want to run.\n// #define CHARGER_SMOKE_TEST SMOKE_TEST_CHARGER_COMMS\n\ntypedef enum {\n SMOKE_TEST_CHARGER_COMMS = 0, // see smoke_cha...
60
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 44.77, "nodes": 37, "errors": 0, "source_hash": "fc3c7084ea53f25eecd2b1f466e252be704f01104e71210a8876156459efc14c", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,294
c
// // LiveDataFetcher.h // CHAOSFramework // // Created by <NAME> on 1/5/13. // Copyright (c) 2013 INFN. All rights reserved. // #ifndef __CHAOSFramework__LiveDataFetcher__ #define __CHAOSFramework__LiveDataFetcher__ #include <chaos/common/data/CDataWrapper.h> #include <chaos/common/general/Configurable.h> #inclu...
32.26
69
(translation_unit) "//\n// LiveDataFetcher.h\n// CHAOSFramework\n//\n// Created by <NAME> on 1/5/13.\n// Copyright (c) 2013 INFN. All rights reserved.\n//\n\n#ifndef __CHAOSFramework__LiveDataFetcher__\n#define __CHAOSFramework__LiveDataFetcher__\n\n#include <chaos/common/data/CDataWrapper.h>\n#include <chaos/commo...
318
22
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 32.26, "nodes": 176, "errors": 0, "source_hash": "cdb6f3c72ec7a6eda32f75647d4840ad83cd71a971c9765715b1482c02c9c133", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,295
c
// // CGPinglunren.h // ChineseGirl_Example // // Created by Wallen on 2017/11/12. // Copyright © 2017年 wanjiehuizhaofang. All rights reserved. // #import <Foundation/Foundation.h> @interface CGPinglunren : NSObject @property(nonatomic,copy)NSString *ids; @property(nonatomic,copy)NSString *username; @property(non...
28.81
16
(translation_unit) "//\n// CGPinglunren.h\n// ChineseGirl_Example\n//\n// Created by Wallen on 2017/11/12.\n// Copyright © 2017年 wanjiehuizhaofang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CGPinglunren : NSObject\n@property(nonatomic,copy)NSString *ids;\n@property(nonatomic,copy)N...
116
22
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.81, "nodes": 82, "errors": 0, "source_hash": "72122c8488c66b0e0cc262f654957b566ea4d471b826f4bf993357fa88dbac58", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
7,296
c
#include <stdio.h> #include <stdlib.h> int main() { int N; int t; int x; int y; int old_t; int old_x; int old_y; int i; int diff; int diff_t; scanf("%d", &N); t = 0; x = 0; y = 0; for(i = 0; i < N; i++) { old_t = t; old_x = x; old_y ...
16.34
38
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int N;\n int t;\n int x;\n int y;\n int old_t;\n int old_x;\n int old_y;\n int i;\n int diff;\n int diff_t;\n\n scanf("%d", &N);\n\n t = 0;\n x = 0;\n y = 0;\n for(i = 0; i < N; i++) {\n ol...
270
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 16.34, "nodes": 161, "errors": 0, "source_hash": "ba4e94ee084b5a5ef04db25bb8b54fbd5761476c61eb0ed2f090bc338b88b6b4", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,297
c
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c = 0, d = 0, i; char input[100000] = ""; scanf("%d %d", &a, &b); for (i = 0; i < a; i++) { scanf("%d", input + i); if (i < b) c += input[i]; } d = c; for (i = 0; i < a - b; i++) { c -= input[i] - input[i + b]; d = c > d ? c : d; } printf("...
18.41
17
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n int a, b, c = 0, d = 0, i;\n char input[100000] = "";\n scanf("%d %d", &a, &b);\n for (i = 0; i < a; i++) {\n scanf("%d", input + i);\n if (i < b) c += input[i];\n }\n d = c;\n for (i = 0; i < a - b; i++) {\n c -= input[i] - input[i + b];\...
198
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.41, "nodes": 121, "errors": 0, "source_hash": "538eb86a98611a39261cf98e0f54ce8dcb69dfe8d8e5c807e822f51e61eb6475", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,298
c
#import <libhdev/HPreferences/HPSPreferences.h> #import <libhdev/HUtilities/HCommon.h> @interface MDPRootListController : HPSRootListController @end
36.25
4
(translation_unit) "#import <libhdev/HPreferences/HPSPreferences.h>\n#import <libhdev/HUtilities/HCommon.h>\n\n@interface MDPRootListController : HPSRootListController\n@end\n" (preproc_call) "#import <libhdev/HPreferences/HPSPreferences.h>\n" (preproc_directive) "#import" (preproc_arg) "<libhdev/HPreferences...
15
3
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 36.25, "nodes": 12, "errors": 0, "source_hash": "d879befb0d1b585f600bdff43ea81e86042df3d4bac97812ece0044798fe589a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <li...
7,299