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
#ifndef SOCKETUDPCONTRACT_H #define SOCKETUDPCONTRACT_H #include "QDoubleValidator" #include <QStringListModel> class SendContractView { public: virtual ~SendContractView(); //Start button virtual void setStartButtonLabel(QString str) = 0; //Counter virtual void setCounterValue(int value) = 0; ...
30.42
33
(translation_unit) "#ifndef SOCKETUDPCONTRACT_H\n#define SOCKETUDPCONTRACT_H\n\n#include "QDoubleValidator"\n#include <QStringListModel>\n\nclass SendContractView\n{\npublic:\n virtual ~SendContractView();\n //Start button\n virtual void setStartButtonLabel(QString str) = 0;\n //Counter\n virtual void se...
264
16
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.42, "nodes": 195, "errors": 0, "source_hash": "f3a3e292ba873dad3995a28f469f7b31b53e7a7c6ae4f974458a305d8a6519e5", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,000
c
#include <stdio.h> #include <stdlib.h> int* anagramMappings(int* A, int ASize, int* B, int BSize, int* returnSize) { if (ASize != BSize) { printf("ASize and BSize should be the same number\n"); return NULL; } int * result =(int*) malloc(sizeof(int) * ASize); for (int i = 0; i< ASize; i++) { for (in...
23.54
28
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint* anagramMappings(int* A, int ASize, int* B, int BSize, int* returnSize) {\n if (ASize != BSize) {\n printf("ASize and BSize should be the same number\n");\n return NULL;\n }\n int * result =(int*) malloc(sizeof(int) * ASize);\n for (int i = 0;...
312
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.54, "nodes": 196, "errors": 0, "source_hash": "54076c3a5d43538414c25296daa711bb450ec9f0ccdc5307e497cbb4d8b62f86", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,001
c
/* ****************************************************************************** * File Name : H01R0_timers.c * Description : Peripheral timers setup source file. * * Required MCU resources : * * >> Timer 14 for micro-sec delay. * >> Timer 15 for milli-sec delay. ******************************...
36.96
125
(translation_unit) "/*\n ******************************************************************************\n * File Name : H01R0_timers.c\n * Description : Peripheral timers setup source file.\n * \n * Required MCU resources : \n * \n * >> Timer 14 for micro-sec delay.\n * >> Timer 15 for milli-sec delay.\n *...
447
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 36.96, "nodes": 251, "errors": 0, "source_hash": "fd20405ac2782b93a9c227d396a2264462543b71886e33fc48d2278f4ca05ff7", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,002
c
// Copyright (C) 2016 <NAME> <<EMAIL>> #ifndef ENGINE_H #define ENGINE_H #include <stdint.h> #include <iostream> #include <functional> #include <vector> #include <algorithm> #include <unordered_map> using namespace std; typedef uint32_t Genome; class CellGrid; class Cell { private: CellGrid* d_grid =...
26.59
71
(translation_unit) "// Copyright (C) 2016 <NAME> <<EMAIL>>\n\n#ifndef ENGINE_H\n#define ENGINE_H\n\n#include <stdint.h>\n\n#include <iostream>\n#include <functional>\n#include <vector>\n#include <algorithm>\n#include <unordered_map>\n\nusing namespace std;\n\ntypedef uint32_t Genome;\n\nclass CellGrid;\n\nclass Cell {\...
565
22
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 26.59, "nodes": 392, "errors": 0, "source_hash": "ca16a33cafbf577f2e353a7fe157266cea43b055dd3fd23c369e99c3a7c05a30", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,003
c
#pragma once #include "Clock.h" #include "Core.h" #include "MemoryBus.h" namespace emu { class CpuArm : public Clock::IClocked { public: struct Config { }; struct Registers { uint32_t r[16]; uint32_t cpsr; uint32_t ...
30.95
120
(translation_unit) "#pragma once\n\n#include "Clock.h"\n#include "Core.h"\n#include "MemoryBus.h"\n\nnamespace emu\n{\n class CpuArm : public Clock::IClocked\n {\n public:\n struct Config\n {\n };\n\n struct Registers\n {\n uint32_t r[16];\n uint3...
777
12
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 30.95, "nodes": 484, "errors": 0, "source_hash": "8845be98ce644025d8fba466c7daf36671a7a78611ffbbf0e1a62af549b8891f", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,004
c
// // make_unique.h // // Copyright (c) 2016 Couchbase, Inc 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 // // Unl...
30.56
72
(translation_unit) "//\n// make_unique.h\n//\n// Copyright (c) 2016 Couchbase, Inc 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/l...
330
30
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 30.56, "nodes": 200, "errors": 0, "source_hash": "8905688987fd9311c3420e9db05876cf32eec96bd2481f9914ae74ed25678be4", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,005
c
/* Copyright (c) 2005-21, <NAME> <<EMAIL>>, BSD license */ #ifdef __cplusplus extern "C" { #endif /** * Compute 128bit MD5 digest for string. * * @param string from which digest shall be computed * @return Allocated C string containing the hex result representation is * returned. It should be passed to free(3). On...
26.33
15
(translation_unit) "/* Copyright (c) 2005-21, <NAME> <<EMAIL>>, BSD license */\n#ifdef __cplusplus\nextern "C" {\n#endif\n/**\n * Compute 128bit MD5 digest for string.\n *\n * @param string from which digest shall be computed\n * @return Allocated C string containing the hex result representation is\n * returned. It sh...
39
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.33, "nodes": 25, "errors": 0, "source_hash": "17a326fbc8e2c4bfa1c220941d37dc6c526fd4eeb03fc77d7986252c8f78a287", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
13,006
c
/* This file is part of the package TMR for adaptive mesh refinement. Copyright (C) 2015 Georgia Tech Research Corporation. Additional copyright (C) 2015 <NAME>. All rights reserved. TMR is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance w...
31.32
154
(translation_unit) "/*\n This file is part of the package TMR for adaptive mesh refinement.\n\n Copyright (C) 2015 Georgia Tech Research Corporation.\n Additional copyright (C) 2015 <NAME>.\n All rights reserved.\n\n TMR is licensed under the Apache License, Version 2.0 (the "License");\n you may not use this sof...
855
27
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 31.32, "nodes": 528, "errors": 0, "source_hash": "b1d020dd813f41092c7a3dcb81a51052ecc14d0bb22370004e4a5f28e748aeb9", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,007
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <SharingUI/SFCAPackageView.h> @interface ControlCenterTrainingView : SFCAPackageView { } - (struct CGSize)intrinsicContentSize; // IMP=0x000000...
31.69
13
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <SharingUI/SFCAPackageView.h>\n\n@interface ControlCenterTrainingView : SFCAPackageView\n{\n}\n\n- (struct CGSize)intri...
60
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.69, "nodes": 32, "errors": 0, "source_hash": "03039d74397c124b63b7cc7adfeff280ba8e0f64824b7e4a364169a999345014", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,008
c
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * _coder_UpdateThetaBetaAprx_LargeData_api.h * * Code generation for function '_coder_UpdateThetaBetaAprx_Large...
34
75
(translation_unit) "/*\n * Academic License - for use in teaching, academic research, and meeting\n * course requirements at degree granting institutions only. Not for\n * government, commercial, or other organizational use.\n *\n * _coder_UpdateThetaBetaAprx_LargeData_api.h\n *\n * Code generation for function '_code...
430
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 34.0, "nodes": 309, "errors": 0, "source_hash": "8589c334da0bbd32e56e1fe42470a1b4a7a4c3737ca3495d0ecad4193a245188", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,009
c
// // LRTool.h // LRLibrary // // Created by 宇中 on 2018/6/6. // #import <Foundation/Foundation.h> @interface LRTool : NSObject - (void)log; @end
13.8
10
(translation_unit) "//\n// LRTool.h\n// LRLibrary\n//\n// Created by 宇中 on 2018/6/6.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface LRTool : NSObject\n\n- (void)log;\n\n@end\n" (comment) "//" (comment) "// LRTool.h" (comment) "// LRLibrary" (comment) "//" (comment) "// Created by 宇中 on 2018/6/6....
34
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 13.8, "nodes": 19, "errors": 0, "source_hash": "4460be12600bdcd3b77053e9d1192f119018b65c13fbc30d0d5733242be9f2e5", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Founda...
13,010
c
/* This file is part of the Repeatability Evaluation submission for the ACM HSCC'16. Paper title: Adaptive Decentralized MAC for Event-Triggered Networked Control Systems Contact: <NAME> <EMAIL> Copyright (c) Chair of Communication Networks, Technical University of Munich */ #ifndef SUBSYSTEM_H_ #define SUBSYSTEM_H_...
26.17
77
(translation_unit) "/*\nThis file is part of the Repeatability Evaluation submission for the ACM HSCC'16.\nPaper title: Adaptive Decentralized MAC for Event-Triggered Networked Control Systems\n\nContact:\n<NAME>\n<EMAIL>\n\nCopyright (c) Chair of Communication Networks, Technical University of Munich\n*/\n\n#ifndef SU...
259
12
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 26.17, "nodes": 167, "errors": 0, "source_hash": "e903036080b2243f192ebd5f3bd471e7f358b8ff90fd9431605f36fd1e795d97", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,011
c
/* * CS120B_FinalProject.c * * Created: 5/22/2018 6:57:46 PM * Author : <NAME> */ #include <avr/io.h> #include <avr/eeprom.h> #include <timer.h> #include <bit.h> #include <usart_ATmega1284.h> enum lightStates { light_init, light_tick } lightState; unsigned long refreshRate = 50; unsigned char tmpA; unsigned ...
20.39
274
(translation_unit) "/*\n * CS120B_FinalProject.c\n *\n * Created: 5/22/2018 6:57:46 PM\n * Author : <NAME>\n */ \n\n#include <avr/io.h>\n#include <avr/eeprom.h>\n#include <timer.h>\n#include <bit.h>\n#include <usart_ATmega1284.h>\n\n\nenum lightStates { light_init, light_tick } lightState;\n \nunsigned long refreshRate...
1,520
0
{"language": "c", "success": true, "metadata": {"lines": 274, "avg_line_length": 20.39, "nodes": 902, "errors": 0, "source_hash": "e5d0e17c92dd189e1a9c62bda61acf77e80360c4aac1704906454d7d1b504017", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,012
c
// my_test.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <stdio.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> int main(int argc, char* argv[]) { char* file = NULL; if (argc == 1) { file = "test.lua"; } else { file = argv[1]; } lua_State* L = lua_open(); luaL_openlibs(L); luaL_dofile(L, ...
15.9
20
(translation_unit) " my_test.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。\n//\n\n#include <stdio.h>\n#include <lua.h>\n#include <lualib.h>\n#include <lauxlib.h>\n\nint main(int argc, char* argv[])\n{\n char* file = NULL;\n if (argc == 1) {\n file = "test.lua";\n }\n else {\n file = argv[1];\n }\n lua_State* L = lua_open();\n...
118
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 15.9, "nodes": 70, "errors": 0, "source_hash": "30f9f7caae36fdfc7375734e0efc5da9873de71b951f4c7f9d626e455c2ad8a3", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lualib....
13,013
c
/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
28.72
46
(translation_unit) "/*\n * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved\n *\n * Contact: <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n...
202
16
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.72, "nodes": 138, "errors": 0, "source_hash": "23f1a76d60a84ded51a671d6fb980f6f6a80c6bfcdd2f9e229ff6e237dd573cf", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,014
c
#pragma once #include <QWidget> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/core/core.hpp> #include <eigen/dense> #include <eigen/sparse> #include <Eigen/SparseCholesky> #include <iostream> #include <vector> //using namespace std; using namespace Eigen; class Seaml...
27.68
53
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include <opencv2/highgui/highgui.hpp>\n#include <opencv2/imgproc/imgproc.hpp>\n#include <opencv2/core/core.hpp>\n#include <eigen/dense>\n#include <eigen/sparse>\n#include <Eigen/SparseCholesky>\n#include <iostream>\n#include <vector>\n\n//using namespace std;\nus...
394
19
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.68, "nodes": 251, "errors": 0, "source_hash": "31503f9a04de4f41ebf74810f576206f867e6848eda02c304e27ecd6355cf191", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,015
c
/* Generated by RuntimeBrowser. */ @protocol UIWebPDFSearchOperationDelegate @required - (void)search:(UIWebPDFSearchOperation *)arg1 hasPartialResults:(NSArray *)arg2; - (void)searchDidBegin:(UIWebPDFSearchOperation *)arg1; - (void)searchDidFinish:(UIWebPDFSearchOperation *)arg1; - (void)searchDidTimeOut:(UIWebPDF...
41
11
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol UIWebPDFSearchOperationDelegate\n\n@required\n\n- (void)search:(UIWebPDFSearchOperation *)arg1 hasPartialResults:(NSArray *)arg2;\n- (void)searchDidBegin:(UIWebPDFSearchOperation *)arg1;\n- (void)searchDidFinish:(UIWebPDFSearchOperation *)arg1;\n- (v...
132
19
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 41.0, "nodes": 79, "errors": 0, "source_hash": "20a873593ad1a77b8b701a68d3a9a9168ad8b0605b65eaa3b9c7edc02a90f382", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol UIWebPD...
13,016
c
/* This file was generated by upbc (the upb compiler) from the input * file: * * google/protobuf/wrappers.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #include <stddef.h> #include "upb/msg.h" #include "google/protobuf/wrappers.upb.h" #include "upb/port_def.inc" ...
30.94
84
(translation_unit) "/* This file was generated by upbc (the upb compiler) from the input\n * file:\n *\n * google/protobuf/wrappers.proto\n *\n * Do not edit -- your changes will be discarded when the file is\n * regenerated. */\n\n#include <stddef.h>\n#include "upb/msg.h"\n#include "google/protobuf/wrappers.upb.h"...
713
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 30.94, "nodes": 366, "errors": 0, "source_hash": "9f915154f1b49a41713a078df478b26e34ac0ab1cdfb97de46319c0bb10e69af", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,017
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:45:05 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMarimbaProducer.opplugin/OpusMarimbaProducer * classdump-dyld is li...
30.17
18
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:45:05 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMarimbaProducer.opplugin/OpusMarimbaProduce...
58
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.17, "nodes": 39, "errors": 0, "source_hash": "76ac99a7ad29f7fc48953df3e601f859c01abda867709fbb1b962190467a3c7f", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
13,018
c
/* Copyright (c) 2016 Baidu, Inc. All Rights Reserve. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
36.28
43
(translation_unit) "/* Copyright (c) 2016 Baidu, Inc. All Rights Reserve.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by ...
182
10
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.28, "nodes": 93, "errors": 0, "source_hash": "a8456343d7ff56c056c28fd1a8103e44e80d5b269c373bb5f9287e58f4daf8eb", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,019
c
#ifndef IPO_ORACLE_WRAPPER_H_ #define IPO_ORACLE_WRAPPER_H_ #include "common.h" #include "oracles.h" #include "cache_oracle.h" namespace ipo { class StatisticsCacheOracleWrapper { typedef CacheOracle::Behavior Behavior; public: StatisticsCacheOracleWrapper(std::shared_ptr<OracleBase>& mainOracle, Beh...
28.74
42
(translation_unit) "#ifndef IPO_ORACLE_WRAPPER_H_\n#define IPO_ORACLE_WRAPPER_H_\n\n#include "common.h"\n\n#include "oracles.h"\n#include "cache_oracle.h"\n\nnamespace ipo {\n\n class StatisticsCacheOracleWrapper\n {\n typedef CacheOracle::Behavior Behavior;\n\n public:\n StatisticsCacheOracleWrapper(std::shar...
290
15
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.74, "nodes": 172, "errors": 0, "source_hash": "412be03b370f38bb810488eb4c0a2bf28c4e01e00831c8b5974ce4bf570f1835", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,020
c
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include <aos/aos.h> #include <aos/network.h> #include <netmgr.h> #ifdef AOS_ATCMD #include <atparser.h> #endif #define BUFFER_MAX_SIZE 1512 #define TCP_DEMO_TARGET_TCP_PORT 443 #ifndef IPADDR_NONE #define IPADDR_N...
28.53
310
(translation_unit) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n#include <stdio.h>\n#include <string.h>\n\n#include <aos/aos.h>\n#include <aos/network.h>\n#include <netmgr.h>\n#ifdef AOS_ATCMD\n#include <atparser.h>\n#endif\n#define BUFFER_MAX_SIZE 1512\n#define TCP_DEMO_TARGET_TCP_PORT 443\n\n#...
2,681
0
{"language": "c", "success": true, "metadata": {"lines": 310, "avg_line_length": 28.53, "nodes": 1559, "errors": 0, "source_hash": "1c3bf0e34790e31f5df5bd5093098192ff2b72d053a1ccf1d035ded375d888c7", "categorized_nodes": 1040}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
13,021
c
#pragma once #include "MeshHeader.h" #include "ScalarField/ScalarField.h" //#include "ContourOld.h" #include "Contour/Shape.h" class TriRemeshing { TriMesh mesh_; float lAvg_ = -1; float lMin_ = -1; float lMax_ = -1; bool hasBackgroundGrid_ = false; const ScalarField::ScalarField* bg_ = nullptr; bool hasContou...
27.7
57
(translation_unit) "#pragma once\n\n#include "MeshHeader.h"\n#include "ScalarField/ScalarField.h"\n//#include "ContourOld.h"\n#include "Contour/Shape.h"\n\nclass TriRemeshing\n{\n TriMesh mesh_;\n float lAvg_ = -1;\n float lMin_ = -1;\n float lMax_ = -1;\n bool hasBackgroundGrid_ = false;\n const ScalarField::ScalarFie...
485
17
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.7, "nodes": 315, "errors": 0, "source_hash": "96f34a04e6fea8b212c73cd631de09852631998cc003b06a96cc8409aeb16a0b", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,022
c
#pragma once #include "SteamID.h" #include <mh/coroutine/task.hpp> #include <memory> namespace tf2_bot_detector { class IHTTPClient; } namespace tf2_bot_detector::LogsTFAPI { struct PlayerLogsInfo { SteamID m_ID; uint32_t m_LogsCount; }; mh::task<PlayerLogsInfo> GetPlayerLogsInfoAsync(std::shared_ptr<con...
19.76
17
(translation_unit) "#pragma once\n\n#include "SteamID.h"\n\n#include <mh/coroutine/task.hpp>\n\n#include <memory>\n\nnamespace tf2_bot_detector\n{\n class IHTTPClient;\n}\n\nnamespace tf2_bot_detector::LogsTFAPI\n{\n struct PlayerLogsInfo\n {\n SteamID m_ID;\n uint32_t m_LogsCount;\n };\n\n mh::task<PlayerLogsInfo> G...
86
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.76, "nodes": 54, "errors": 0, "source_hash": "a4779660de29462ca83d00f4e0aa8d1bfa39e7a5135e0a9d167caf5e193076f0", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,023
c
#import "SwrveContentItem.h" @interface SwrveContentHTML : SwrveContentItem <UIWebViewDelegate> -(id) initWithTag:(NSString *)tag andDictionary:(NSDictionary *)dict; @end
41.75
4
(translation_unit) "#import "SwrveContentItem.h"\n\n@interface SwrveContentHTML : SwrveContentItem <UIWebViewDelegate>\n\n-(id) initWithTag:(NSString *)tag andDictionary:(NSDictionary *)dict;\n\n@end\n" (preproc_call) "#import "SwrveContentItem.h"\n" (preproc_directive) "#import" (preproc_arg) ""SwrveContentI...
45
6
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 41.75, "nodes": 29, "errors": 0, "source_hash": "db1e815bbbb72ae1017be5402f7b2c7bdc4be9af7e4f7651c2f4ed838b22a3d3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
13,024
c
/* * This header is generated by classdump-dyld 1.0 * on Monday, September 28, 2020 at 5:55:07 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/PhotosUIC...
42.82
17
(translation_unit) "/*\n * This header is generated by classdump-dyld 1.0\n * on Monday, September 28, 2020 at 5:55:07 PM Mountain Standard Time\n * Operating System: Version 14.0 (Build 18A373)\n * Image Source: /System/Library/Pri...
79
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 42.82, "nodes": 45, "errors": 0, "source_hash": "79bba234574111afb91319a3f3c936933afa5c7064680a13f4fb7c0af4da885d", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <P...
13,025
c
// // LRMaximumInterFlowLayout.h // LRMaximumInteritemSpacing // // Created by leilurong on 2018/8/28. // Copyright © 2018年 leilurong. All rights reserved. // #import <UIKit/UIKit.h> @class LRMaximumInterFlowLayout; @protocol LRMaximumInterFlowLayoutDelegate <NSObject> - (CGSize)lr_collectionView:(UICollection...
49.1
20
(translation_unit) "//\n// LRMaximumInterFlowLayout.h\n// LRMaximumInteritemSpacing\n//\n// Created by leilurong on 2018/8/28.\n// Copyright © 2018年 leilurong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class LRMaximumInterFlowLayout;\n\n@protocol LRMaximumInterFlowLayoutDelegate <NSObject>\n\n\n- (CGS...
177
26
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 49.1, "nodes": 119, "errors": 0, "source_hash": "c31a4d2f70179daa23ced425c9cb70de0ac702babce7863850c4e1c2ba4e424d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
13,026
c
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 <NAME> * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. * Copyright (C) 2004-2005 <NAME> * Copyright (C) 2007 <NAME> * Copyright (C) 2008 Zebra Imaging * * This application is open source and may be redistributed and/or modified * freely and without restriction...
31.48
27
(translation_unit) "/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 <NAME> \n * Copyright (C) 2003-2005 3Dlabs Inc. Ltd.\n * Copyright (C) 2004-2005 <NAME>\n * Copyright (C) 2007 <NAME>\n * Copyright (C) 2008 Zebra Imaging\n *\n * This application is open source and may be redistributed and/or modified \n * fre...
47
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.48, "nodes": 26, "errors": 0, "source_hash": "0f37b503cda479422a8da00870949c1640b39af9e09596a866eb874668119a87", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,027
c
/* * Program.h * Created by <NAME> * * A Program represents the executable data * stored by a Intel Hex File. */ #ifndef _INTEL_HEX_PARSER_PROGRAM_H_ #define _INTEL_HEX_PARSER_PROGRAM_H_ #include <sstream> #include <map> #include <vector> #include <stdint.h> #include "ProgramPage.h" #include "IntelHexFileEntry...
22.04
27
(translation_unit) "/*\n * Program.h\n * Created by <NAME>\n *\n * A Program represents the executable data\n * stored by a Intel Hex File.\n */\n\n#ifndef _INTEL_HEX_PARSER_PROGRAM_H_\n#define _INTEL_HEX_PARSER_PROGRAM_H_\n\n#include <sstream>\n#include <map>\n#include <vector>\n#include <stdint.h>\n\n#include "Progra...
135
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.04, "nodes": 86, "errors": 0, "source_hash": "28ffd57b064064ef8a765dc3711260e3ed4eed21ed1ff12e570539c948857940", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,028
c
/* * Copyright 2020 the original author or authors. * * 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 applicab...
30.48
132
(translation_unit) "/*\n * Copyright 2020 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
222
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 30.48, "nodes": 164, "errors": 0, "source_hash": "dd3cd6255e6343c2aa9ea8086a548600b86faa88e9f2ca64c8b6fcb2b76c7882", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "_PROT...
13,029
c
#ifndef ANDROID_RENDERSCRIPT_MAP_H #define ANDROID_RENDERSCRIPT_MAP_H #include <stddef.h> namespace android { namespace renderscript { template <class T1, class T2> class Pair { public: Pair() {} Pair(T1 f1, T2 f2) : first(f1), second(f2) {} T1 first; T2 second; }; template <class T1, class T2> Pai...
29.41
133
(translation_unit) "#ifndef ANDROID_RENDERSCRIPT_MAP_H\n#define ANDROID_RENDERSCRIPT_MAP_H\n\n#include <stddef.h>\n\nnamespace android {\nnamespace renderscript {\n\ntemplate <class T1, class T2>\nclass Pair {\npublic:\n Pair() {}\n Pair(T1 f1, T2 f2) : first(f1), second(f2) {}\n\n T1 first;\n T2 second;\n}...
1,198
29
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 29.41, "nodes": 704, "errors": 0, "source_hash": "d8bab538900da0725a5ae81c138820c945f59eda48b582154a6eba2125c0a62e", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,030
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/filesystem/path.hpp> #include "bistro/bistro/statuses/TaskStore.h" #include "bistro/bistro/sqlite/Da...
30.21
34
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <boost/filesystem/path.hpp>\n\n#include "bistro/bistro/statuses/TaskStore.h"\n#...
211
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 30.21, "nodes": 114, "errors": 0, "source_hash": "28becafb9a3e2e5bcf582969a7e0341582e6bfb38a9107904ce48274ea09a281", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,031
c
// Copyright (c) 2011-2014 The Bitcoin Core developers // Copyright (c) 2011-2021 The Freicoin Developers // // This program is free software: you can redistribute it and/or modify it under // the terms of version 3 of the GNU Affero General Public License as published // by the Free Software Foundation. // // This pro...
35.71
34
(translation_unit) "// Copyright (c) 2011-2014 The Bitcoin Core developers\n// Copyright (c) 2011-2021 The Freicoin Developers\n//\n// This program is free software: you can redistribute it and/or modify it under\n// the terms of version 3 of the GNU Affero General Public License as published\n// by the Free Software F...
112
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 35.71, "nodes": 56, "errors": 0, "source_hash": "396f04d98890f0ec09ff1d93a0cc70808a52b5222b5bd930756584a8b209a226", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,032
c
/***************************************************************************** * sit.h: ISO/IEC 13818-1 Selection Information Table (SIT) ***************************************************************************** * Copyright (C) 2009-2010 VideoLAN * * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * *...
36.42
160
(translation_unit) "/*****************************************************************************\n * sit.h: ISO/IEC 13818-1 Selection Information Table (SIT)\n *****************************************************************************\n * Copyright (C) 2009-2010 VideoLAN\n *\n * Authors: <NAME> <<EMAIL>>\n * ...
1,184
0
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 36.42, "nodes": 773, "errors": 0, "source_hash": "9c2f5e8611f26da81e658c2b14e9b6597f361cb7dccc0bd9da79b451faa9b38c", "categorized_nodes": 514}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,033
c
#pragma once void boot_pins_init(void);
12.67
3
(translation_unit) "#pragma once\n\n\nvoid boot_pins_init(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void boot_pins_init(void);" (primitive_type) "void" (function_declarator) "boot_pins_init(void)" (identifier) "boot_pins_init" ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 12.67, "nodes": 10, "errors": 0, "source_hash": "c8ccd5a89f5a83fc7152cf0ab0e9fb6abcdbd41d2df48acc493bc6b9d585b95c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
13,034
c
/* * $Id: ErrorHandler.h 73 2006-08-09 18:38:31Z dmaziuk $ * * This software is copyright (c) 2006 Board of Regents, University of Wisconsin. * All Rights Reserved. * */ #ifndef _ERROR_HANDLER_H_ #define _ERROR_HANDLER_H_ #include <string> /** * \class ErrorHandler * \brief Interface that user code must implem...
33.77
64
(translation_unit) "/*\n * $Id: ErrorHandler.h 73 2006-08-09 18:38:31Z dmaziuk $\n *\n * This software is copyright (c) 2006 Board of Regents, University of Wisconsin.\n * All Rights Reserved.\n *\n */\n#ifndef _ERROR_HANDLER_H_\n#define _ERROR_HANDLER_H_\n\n#include <string>\n/**\n * \class ErrorHandler\n * \brief Int...
134
7
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 33.77, "nodes": 83, "errors": 0, "source_hash": "7b75378c372205f8f47a3e551d97a504756dd37c89a5e60b02bb1b58bbd9666a", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,035
c
// // Created by <NAME> on 5/7/15. // #ifndef SPN_SL_SPNETWORK_H #define SPN_SL_SPNETWORK_H #include "SPNNode.h" #include "fmath.hpp" #include <unordered_map> #include <unordered_set> #include <cmath> using fmath::log; using fmath::exp; namespace SPN { class SPNetwork { public: SPNetwork(SPNNode *)...
38.21
121
(translation_unit) "//\n// Created by <NAME> on 5/7/15.\n//\n\n#ifndef SPN_SL_SPNETWORK_H\n#define SPN_SL_SPNETWORK_H\n\n#include "SPNNode.h"\n#include "fmath.hpp"\n\n#include <unordered_map>\n#include <unordered_set>\n#include <cmath>\n\nusing fmath::log;\nusing fmath::exp;\n\nnamespace SPN {\n class SPNetwork {\n ...
1,000
71
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 38.21, "nodes": 594, "errors": 0, "source_hash": "00c4f00b340949150169a31882ccb44f7cae135d5d83c52716425362ab4802b5", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,036
c
/* Copyright <NAME> 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef DPLX_PREDEF_COMPILER_GREENHILLS_H #define DPLX_PREDEF_COMPILER_GREENHILLS_H #include <dplx/predef/version_number.h> #include <dplx...
34.45
53
(translation_unit) "/*\nCopyright <NAME> 2008-2015\nDistributed under the Boost Software License, Version 1.0.\n(See accompanying file LICENSE_1_0.txt or copy at\nhttp://www.boost.org/LICENSE_1_0.txt)\n*/\n\n#ifndef DPLX_PREDEF_COMPILER_GREENHILLS_H\n#define DPLX_PREDEF_COMPILER_GREENHILLS_H\n\n#include <dplx/predef/ve...
162
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 34.45, "nodes": 132, "errors": 0, "source_hash": "41f1c9c533899033b545ef45deb922c4782772571e1a71d78b8402ee2abcd3ff", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,037
c
#ifndef LR_SEMANTIC_ANALYSIS_CAL_FIRST_H #define LR_SEMANTIC_ANALYSIS_CAL_FIRST_H #include "global.h" extern set<char> set_first; // Temp FIRST Set for Unique Production LHS void calculate_first(char prod_LHS, int pre_Prod, int pre_Column, int root_Row, bool isRoot); #endif //LR_SEMANTIC_ANALYSIS_CAL_FIRST_H
50.67
6
(translation_unit) "#ifndef LR_SEMANTIC_ANALYSIS_CAL_FIRST_H\n#define LR_SEMANTIC_ANALYSIS_CAL_FIRST_H\n\n#include "global.h"\n\nextern set<char> set_first; // Temp FIRST Set for Unique Production LHS\n\nvoid calculate_first(char prod_LHS, int pre_Prod, int pre_Column, int root_Row, bool isRoot);\n\n#endif //LR_SEMANTI...
54
2
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 50.67, "nodes": 40, "errors": 0, "source_hash": "7059a45fa9699921dbacba71a546f30834e563768e6bc02ddd61da54f05b2306", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
13,038
c
#pragma once #include "cocos2d.h" class Nerd : public cocos2d::Sprite { public: CREATE_FUNC(Nerd); protected: virtual bool init() override; virtual void update(float dt) override; float timeToDead; bool isDead; };
17.5
12
(translation_unit) "#pragma once\n\n#include "cocos2d.h"\n\nclass Nerd : public cocos2d::Sprite\n{\npublic:\n\n CREATE_FUNC(Nerd);\n\nprotected:\n\n virtual bool init() override;\n virtual void update(float dt) override;\n\n float timeToDead;\n\n bool isDead;\n};\n" (preproc_call) "#pragma once\n" (preproc_dir...
77
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.5, "nodes": 44, "errors": 0, "source_hash": "2f6f0529747498a3aca432cf5094a2e5f5e353b8dd991b388516470e89a21707", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,039
c
/* * Copyright (c) 2020 Gscienty <<EMAIL>> * * Distributed under the MIT software license, see the accompanying * file LICENSE or https://www.opensource.org/licenses/mit-license.php . * */ #ifndef __OPENQUIC_ACK_GENERATOR_H__ #define __OPENQUIC_ACK_GENERATOR_H__ #include "format/frame.h" #include "liteco.h" #in...
37.84
88
(translation_unit) "/*\n * Copyright (c) 2020 Gscienty <<EMAIL>>\n *\n * Distributed under the MIT software license, see the accompanying\n * file LICENSE or https://www.opensource.org/licenses/mit-license.php .\n *\n */\n\n#ifndef __OPENQUIC_ACK_GENERATOR_H__\n#define __OPENQUIC_ACK_GENERATOR_H__\n\n#include "format/f...
662
7
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 37.84, "nodes": 415, "errors": 0, "source_hash": "4e4ce1fb874f67fac6a74cff15f174ffe0d18a9d15cc8942ad7150c5c6aa66af", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,040
c
int NEW = 0; int READY = 1; int RUNNING = 2; int BLOCKED = 3; int EXIT = 4; #define MAXPROGRESS 8 int Program_Num; typedef struct RegisterImage{ int SS; int ES; int DS; int DI; int SI; int BP; int SP; int BX; int DX; int CX; int AX; int IP; int CS; int FLAGS; }RegisterImage...
21.95
176
(translation_unit) "int NEW = 0; \nint READY = 1; \nint RUNNING = 2; \nint BLOCKED = 3; \nint EXIT = 4; \n \n#define MAXPROGRESS 8 \n \n \nint Program_Num; \n \ntypedef struct RegisterImage{ \n int SS; \n int ES; \n int DS; \n int DI; \n int SI; \n int BP; \n int SP; \n int BX; \n int DX; \n int CX; \n int AX; \n int I...
1,537
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 21.95, "nodes": 964, "errors": 0, "source_hash": "67150145b43d906e8801445a2818cc90d0751293cba21d0e6434d34de6a63bcf", "categorized_nodes": 797}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int NEW...
13,041
c
// // Created by cigan on 4/10/2021. // #ifndef TEMADOI_COMPUTER_H #define TEMADOI_COMPUTER_H class Computer { public: virtual void PowerOn() = 0; virtual void PowerOff() = 0; }; #endif //TEMADOI_COMPUTER_H
15.69
13
(translation_unit) "//\n// Created by cigan on 4/10/2021.\n//\n\n#ifndef TEMADOI_COMPUTER_H\n#define TEMADOI_COMPUTER_H\n\n\nclass Computer {\n\npublic:\n virtual void PowerOn() = 0;\n virtual void PowerOff() = 0;\n};\n\n\n#endif //TEMADOI_COMPUTER_H\n" (comment) "//" (comment) "// Created by cigan on 4/10/20...
49
2
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.69, "nodes": 30, "errors": 0, "source_hash": "82b93329906a131301c3120a4f5b092cbd6ebb7ec2a7448a51d168fca004883b", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,042
c
#pragma once #include "LogicManager.h" #include "RenderManager.h" #include "SoundManager.h" #include "InitSettings.h" #include "Settings.h" #include "RenderSettings.h" #include "RayCastMap.h" //Collecting settings and running crucial managers class GameManager { private: LogicManager mLogicManager; RenderManager ...
23.22
23
(translation_unit) "#pragma once\n\n#include "LogicManager.h"\n#include "RenderManager.h"\n#include "SoundManager.h"\n\n#include "InitSettings.h"\n#include "Settings.h"\n#include "RenderSettings.h"\n\n#include "RayCastMap.h"\n\n//Collecting settings and running crucial managers\nclass GameManager\n{\nprivate:\n LogicMa...
129
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.22, "nodes": 75, "errors": 0, "source_hash": "d95d5ce106d8c6e04bf154f902eb7564da497674c6c3e48911c8493e59d7395c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,043
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifdef BSL_LOG_MODULE #error "BSL_LOG_MODULE redefined" #endif #define BSL_LOG_MODULE BSL_LS_BCMDNX_COSQ #inclu...
26.64
207
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#ifdef BSL_LOG_MODULE\n#error "BSL_LOG_MODULE redefined"\n#endif\n#define BSL_LOG_MODULE ...
1,032
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 26.64, "nodes": 632, "errors": 0, "source_hash": "1e2d0c46a339e71ba13768e4a94dfddcef0eb3202e2de30c82eda69b96596ede", "categorized_nodes": 483}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
13,044
c
/* * \file demo.h * * \brief A echo demo server * * Copyright (c) 2015 <NAME>. All rights reserved. * */ #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <stdint.h> #include <time.h> #include <unistd.h> #include <sys/socket.h> #include "event.h" #includ...
25.5
172
(translation_unit) "/*\n * \file demo.h\n *\n * \brief A echo demo server\n *\n * Copyright (c) 2015 <NAME>. All rights reserved.\n *\n */\n\n#include <stdio.h>\n#include <errno.h>\n#include <stdlib.h>\n#include <assert.h>\n#include <string.h>\n#include <stdint.h>\n#include <time.h>\n#include <unistd.h>\n#include <sys/...
1,431
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 25.5, "nodes": 863, "errors": 0, "source_hash": "648743d03fcf0603e06bedc1a48d64e511423438be7ae19aa43b7ba4f503cb1b", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,045
c
#ifndef _LINUX_VT_H #define _LINUX_VT_H /* 0x56 is 'V', to avoid collision with termios and kd */ #define VT_OPENQRY 0x5600 /* find available vt */ struct vt_mode { char mode; /* vt mode */ char waitv; /* if set, hang on writes if not active */ short relsig; /* signal to raise on release req */ short acqsig; ...
39.19
27
(translation_unit) "#ifndef _LINUX_VT_H\n#define _LINUX_VT_H\n\n/* 0x56 is 'V', to avoid collision with termios and kd */\n\n#define VT_OPENQRY 0x5600 /* find available vt */\n\nstruct vt_mode {\n char mode; /* vt mode */\n char waitv; /* if set, hang on writes if not active */\n short relsig; /* signal to raise on ...
122
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.19, "nodes": 84, "errors": 0, "source_hash": "953afa5485fb67b71b056c5e2d8f4f254151bc90f7b7e02682d128301ba89152", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,046
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* philo.h :+: :+: :+: ...
28.93
74
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* philo.h ...
430
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 28.93, "nodes": 327, "errors": 0, "source_hash": "4756e4aab54811acfe1bd0d4dd641c43a6ad7c7c0191416f29403799a6d19e4a", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,047
c
#ifndef __RETRACE_PLEDGE_H__ #define __RETRACE_PLEDGE_H__ #ifdef __OpenBSD__ typedef int (*rtr_pledge_t)(const char *promises, const char *paths[]); RETRACE_DECL(pledge); #endif /* __OpenBSD */ #endif /* __RETRACE_PLEDGE_H__ */
31.57
7
(translation_unit) "#ifndef __RETRACE_PLEDGE_H__\n#define __RETRACE_PLEDGE_H__\n\n#ifdef __OpenBSD__\n\ntypedef int (*rtr_pledge_t)(const char *promises, const char *paths[]);\n\nRETRACE_DECL(pledge);\n\n#endif /* __OpenBSD */\n\n#endif /* __RETRACE_PLEDGE_H__ */\n" (preproc_ifdef) "#ifndef __RETRACE_PLEDGE_H__\n#def...
54
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 31.57, "nodes": 35, "errors": 0, "source_hash": "150448fad96c81a89a6698b207f730d6645fc07330af188152655630b5b2ce10", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,048
c
#include <linux/kernel.h> #include <linux/module.h> #include <linux/xlog.h> #include <linux/types.h> #include <linux/kobject.h> #include <linux/proc_fs.h> #include <asm/uaccess.h> #include <linux/err.h> #include <linux/syscalls.h> #include <asm/system.h> #include "mach/mtk_thermal_monitor.h" #include <mach/system.h> ...
31.73
278
(translation_unit) "#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/xlog.h>\n#include <linux/types.h>\n#include <linux/kobject.h>\n#include <linux/proc_fs.h>\n#include <asm/uaccess.h>\n#include <linux/err.h>\n#include <linux/syscalls.h>\n#include <asm/system.h>\n\n#include "mach/mtk_thermal_monito...
1,904
5
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 31.73, "nodes": 1126, "errors": 0, "source_hash": "58153fbdb8392112d720670e70c3aed17e1f0697732bfa2947a3be2f0f894614", "categorized_nodes": 767}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,049
c
#pragma once #include <Windows.h> typedef HWND FOREGROUND_ID; struct Point { int x; int y; }; FOREGROUND_ID ForegroundWindowGet(); void ForegroundWindowSet(FOREGROUND_ID); Point ForegroundPositionGet(FOREGROUND_ID);
20.8
10
(translation_unit) "#pragma once\n\n#include <Windows.h>\ntypedef HWND FOREGROUND_ID;\n\nstruct Point {\n int x;\n int y;\n};\n\nFOREGROUND_ID ForegroundWindowGet();\nvoid ForegroundWindowSet(FOREGROUND_ID);\nPoint ForegroundPositionGet(FOREGROUND_ID);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma...
55
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.8, "nodes": 38, "errors": 0, "source_hash": "d27c68bcb6b74514e5f058ad2a0bb732fa6f98c186fc242c1a37976b93a07155", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,050
c
#ifndef PAINTWIDGET_H #define PAINTWIDGET_H #include <QWidget> #include <QGraphicsScene> #include <QGraphicsView> #include <QString> namespace Ui { class PaintWidget; } class PaintWidget : public QWidget { Q_OBJECT public: explicit PaintWidget(QWidget *parent = 0); ~PaintWidget(); void SetAll(int,...
21.15
34
(translation_unit) "#ifndef PAINTWIDGET_H\n#define PAINTWIDGET_H\n\n#include <QWidget>\n#include <QGraphicsScene>\n#include <QGraphicsView>\n#include <QString>\n\n\nnamespace Ui {\nclass PaintWidget;\n}\n\nclass PaintWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit PaintWidget(QWidget *parent = 0);\n ...
253
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.15, "nodes": 176, "errors": 0, "source_hash": "535fe16aef29fc1307574a867dbd6ac6c293e79f37a70b8e9cd45116d3296326", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,051
c
#pragma once #include "Common.h" #include "GameState.h" #include "Player.h" namespace SparCraft { namespace AITools { const Unit & GetClosestEnemyUnit(const GameState & state, const size_t & player, const size_t & unitIndex, bool checkCloaked = false); const Unit & GetClosestOurUnit(const GameState & state, c...
39.94
16
(translation_unit) "#pragma once\n\n#include "Common.h"\n#include "GameState.h"\n#include "Player.h"\n\nnamespace SparCraft\n{\nnamespace AITools\n{\n const Unit & GetClosestEnemyUnit(const GameState & state, const size_t & player, const size_t & unitIndex, bool checkCloaked = false);\n const Unit & GetClosestOur...
200
17
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.94, "nodes": 97, "errors": 0, "source_hash": "f49c46ba972cfab853b830f1057cfd0a3b415a5715312cf6aed08b9888311f1e", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,052
c
#include "main.h" static HANDLE pes_ntfs_handle() { UNICODE_STRING ntPath; RtlInitUnicodeString(&ntPath, PES_NT_ROOT); IO_STATUS_BLOCK ioStatusBlock; RtlSecureZeroMemory(&ioStatusBlock, sizeof(ioStatusBlock)); OBJECT_ATTRIBUTES oaDev; InitializeObjectAttributes(&oaDev, &ntPath, OBJ_CASE_INSEN...
28.08
76
(translation_unit) "#include "main.h"\n\nstatic HANDLE pes_ntfs_handle()\n{\n UNICODE_STRING ntPath;\n RtlInitUnicodeString(&ntPath, PES_NT_ROOT);\n\n IO_STATUS_BLOCK ioStatusBlock;\n RtlSecureZeroMemory(&ioStatusBlock, sizeof(ioStatusBlock));\n\n OBJECT_ATTRIBUTES oaDev;\n InitializeObjectAttributes(...
480
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 28.08, "nodes": 266, "errors": 0, "source_hash": "72deaa7aee3df0f28094504e0f09650787eb7dc576d0c14f44cd0d24e6352471", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,053
c
// // DynamicLabel.h // DynamicLabel // // Created by <NAME> on 12/3/16. // Copyright © 2016 Sugarcube. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for DynamicLabel. FOUNDATION_EXPORT double DynamicLabelVersionNumber; //! Project version string for DynamicLabel. FOUNDATION_EXPORT c...
37.69
13
(translation_unit) "//\n// DynamicLabel.h\n// DynamicLabel\n//\n// Created by <NAME> on 12/3/16.\n// Copyright © 2016 Sugarcube. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for DynamicLabel.\nFOUNDATION_EXPORT double DynamicLabelVersionNumber;\n\n//! Project version string for ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 37.69, "nodes": 15, "errors": 0, "source_hash": "e5a54b5912e1c16cabf089aceb7e752e457b30464f162ff37d8c33f64fd0d99d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
13,054
c
#include<stdio.h> int f(int x) { if(x==2||x==3) return 1; else { for(int m=2;m<x/2;m++) if(x%m==0) return 0; return 1; } } int main() { int n,i,j; scanf("%d",&n); i=n+1; /*if(n==1) {printf("2");return 0;} else if(n==2) { ...
13.06
36
(translation_unit) "#include<stdio.h>\nint f(int x)\n{\n if(x==2||x==3)\n return 1;\n else\n {\n for(int m=2;m<x/2;m++)\n if(x%m==0)\n return 0;\n return 1;\n }\n}\nint main()\n{\n int n,i,j;\n scanf("%d",&n);\n i=n+1;\n /*if(n==1)\n {printf("2")...
201
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 13.06, "nodes": 113, "errors": 0, "source_hash": "f0557d7fbeb014070a4e426728efd483a5c39716d64c0a9016e32560a4578df9", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,055
c
#ifndef TRAPBUILD_H #define TRAPBUILD_H #include "SDK.hpp" namespace polaris::models::offsetfixes { struct TrapBuild { unsigned char UnknownData00[0x0FE0]; class SDK::UFortTrapItemDefinition* TrapData; }; } #endif // !TRAPBUILD_H
20.5
12
(translation_unit) "#ifndef TRAPBUILD_H\n#define TRAPBUILD_H\n\n#include "SDK.hpp"\n\nnamespace polaris::models::offsetfixes\n{\n struct TrapBuild\n {\n unsigned char UnknownData00[0x0FE0];\n class SDK::UFortTrapItemDefinition* TrapData;\n };\n}\n\n#endif // !TRAPBUILD_H\n" (preproc_ifdef) "#if...
57
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.5, "nodes": 33, "errors": 0, "source_hash": "90ce7afafb735a9d2cf54dabe5f2c16ec56c30e22bfd9a2752078211e979ef2c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
13,056
c
// // TextViewController.h // MZFormSheetPresentationController Objective-C Example // // Created by <NAME> on 21.10.2015. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "MZFormSheetPresentationContentSizing.h" @interface TextViewController : UIViewController @end
26.91
11
(translation_unit) "//\n// TextViewController.h\n// MZFormSheetPresentationController Objective-C Example\n//\n// Created by <NAME> on 21.10.2015.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MZFormSheetPresentationContentSizing.h"\n\n@interface TextViewController : UIV...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.91, "nodes": 11, "errors": 0, "source_hash": "d7e506a983a429493f9e92a0642061fb79607c6556d75360c552323a41500dad", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
13,057
c
// Copyright (c) 2015-2019 The HomeKit ADK Contributors // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors. #include "HAPPlatform.h" HAP_RESULT_USE_CHECK HAPError...
35.47
86
(translation_unit) "// Copyright (c) 2015-2019 The HomeKit ADK Contributors\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// See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.\n\n#include "HAPPlatform.h"\n\nH...
796
4
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 35.47, "nodes": 494, "errors": 0, "source_hash": "468719818bd651620f6c2ae8805de445423bfe338924580423d04733faf5d352", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lude...
13,058
c
#pragma once #include <ork/lev2/config.h> #include <ork/lev2/gfx/gfxenv_enum.h> #include <ork/kernel/datablock.h> #include <ork/kernel/varmap.inl> #include <ork/file/chunkfile.h> namespace ork::lev2 { struct Image; /////////////////////////////////////////////////////////////////////////////// struct CompressedIma...
36.7
64
(translation_unit) "#pragma once\n\n#include <ork/lev2/config.h>\n#include <ork/lev2/gfx/gfxenv_enum.h>\n#include <ork/kernel/datablock.h>\n#include <ork/kernel/varmap.inl>\n#include <ork/file/chunkfile.h>\n\nnamespace ork::lev2 {\n\nstruct Image;\n\n/////////////////////////////////////////////////////////////////////...
574
49
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 36.7, "nodes": 378, "errors": 0, "source_hash": "bed23fed13beb444ee6c75f85a0ea91d2f599ad8e483228a171a6059618f125b", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,059
c
#ifndef CONDENS_H #define CONDENS_H /** * @copyright * * Copyright 2012 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope...
35.83
46
(translation_unit) "#ifndef CONDENS_H\n#define CONDENS_H\n/**\n * @copyright\n *\n * Copyright 2012 <NAME>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2, \n * as published by the Free Software Foundation.\n * \n * This pro...
235
11
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.83, "nodes": 144, "errors": 0, "source_hash": "242850b6143b1ee36baa3f76c4405c6d672383f76012cf18fac7bf1564f8587b", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,060
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "XRTCI420Buffer-Protocol.h" #import "XRTCMutableYUVPlanarBuffer-Protocol.h" @protocol XRTCMutableI420Buffer <XRTCI420Buffer, XRTCMut...
37.22
9
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "XRTCI420Buffer-Protocol.h"\n#import "XRTCMutableYUVPlanarBuffer-Protocol.h"\n\n@protocol XRTCMutableI420Bu...
24
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 37.22, "nodes": 16, "errors": 0, "source_hash": "d00d79c3972817f0d41bb6589d020c41e3dd72068cecf48f38dd7272510d7ace", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"X...
13,061
c
struct s; void foo(struct s s) { } struct s bar(void) { struct s s; return s; } /* * check-name: incomplete struct * check-command: sparse -Wno-decl $file * check-known-to-fail * * check-error-start incomplete-struct.c:3:19: error: parameter 's' has incomplete type incomplete-struct.c:7:10: error: return type...
19.65
20
(translation_unit) "struct s;\n\nvoid foo(struct s s)\n{\n}\n\nstruct s bar(void)\n{\n struct s s;\n return s;\n}\n\n/*\n * check-name: incomplete struct\n * check-command: sparse -Wno-decl $file\n * check-known-to-fail\n *\n * check-error-start\nincomplete-struct.c:3:19: error: parameter 's' has incomplete type\nincom...
45
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.65, "nodes": 29, "errors": 0, "source_hash": "bfd3b3a1a7ec70ae8dda016c20d87ebb22dc6dc637ce7ed93b7af1b022604f25", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
13,062
c
// // FeedbackViewController.h // heartsquareapp // // Created by Youssef on 15/12/15. // Copyright © 2015年 HeartSquare. All rights reserved. // #import <UIKit/UIKit.h> #import "UIColor+Hex.h" #import "EMSDK.h" @interface FeedbackViewController : UIViewController @property (nonatomic, strong) UITableView * tableV...
25.9
20
(translation_unit) "//\n// FeedbackViewController.h\n// heartsquareapp\n//\n// Created by Youssef on 15/12/15.\n// Copyright © 2015年 HeartSquare. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UIColor+Hex.h"\n#import "EMSDK.h"\n\n@interface FeedbackViewController : UIViewController\n@property (nonato...
106
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.9, "nodes": 68, "errors": 0, "source_hash": "0dc9b2a39f781ad6370d380edadad61b2c13f7559f4cacab115309d4f9522f40", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
13,063
c
/* * Copyright (c) 2005-2007 <NAME>, Inc. All rights reserved. * Proprietary and Confidential Material. * */ #include "wave.h" #include "os.h" #include "queue.h" #include <stdio.h> #include <ctype.h> #include <time.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h...
26.06
237
(translation_unit) "/*\n\n* Copyright (c) 2005-2007 <NAME>, Inc. All rights reserved.\n\n* Proprietary and Confidential Material.\n\n*\n\n*/\n\n\n#include "wave.h"\n#include "os.h"\n#include "queue.h"\n#include <stdio.h>\n#include <ctype.h>\n#include <time.h>\n#include <signal.h>\n#include <stdlib.h>\n#include <string....
2,228
2
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 26.06, "nodes": 1303, "errors": 0, "source_hash": "c6b306baef6716761591b2d122f97d9984da971a44710d3b2c8b6b76ad7efb49", "categorized_nodes": 902}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,064
c
/* Test for cfft: sine */ #define NX 16 #define FNAME "t10" #define MAXERROR 16 #pragma DATA_SECTION (x,".input") DATA x[2*NX] ={ 0, 0, /* 0 */ 1708, 0, /* 1 */ 2047, 0, /* 2 */ 1058, 0, /* 3 */ 0, 0, /* 4 */ -141, 0, /* 5 */ 351, 0, /* 6 */ 508, 0, /* 7 */ 0, 0, /* 8 */ -509, 0, /* 9 */ -...
16.25
48
(translation_unit) "/* Test for cfft: sine */ \n#define NX 16 \n#define FNAME "t10" \n#define MAXERROR 16 \n \n#pragma DATA_SECTION (x,".input") \n \nDATA x[2*NX] ={ \n0, 0, /* 0 */ \n1708, 0, /* 1 */ \n2047, 0, /* 2 */ \n1058, 0, /* 3 */ \n0, 0, /* 4 */ \n-141, 0, /* 5 */ \n351, 0, /* 6 */ \n508, 0, /* 7 */ \n...
216
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 16.25, "nodes": 107, "errors": 0, "source_hash": "59de1a7163edbb7f802bef890e1119581fdccbe2e754fc00321fc2f3aa5e8fe4", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define N...
13,065
c
#pragma once #include <iostream> #include <utility> #include <random> #include <cstring> struct Grid { int m; int n; int *grid; Grid(int m_, int n_); Grid(const Grid &other); Grid& operator=(Grid other); ~Grid(); int neighbors(int i, int j) const; const int &operator()(int i, ...
21.76
21
(translation_unit) "#pragma once\n\n\n#include <iostream>\n#include <utility>\n#include <random>\n#include <cstring>\n\nstruct Grid {\n int m;\n int n;\n int *grid;\n\n Grid(int m_, int n_);\n\n Grid(const Grid &other);\n\n Grid& operator=(Grid other);\n\n ~Grid();\n int neighbors(int i, int j) ...
197
11
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.76, "nodes": 124, "errors": 0, "source_hash": "a6bd74ecf9a13d77e088d49604c00e51a2bceef51a2848182069021e8e7279cb", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,066
c
/* * Copyright (C) 2017-2019, <NAME> <<EMAIL>> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #pragma once #include "GOAP/Config.h" #include "stdex/intrusive_ptr_base.h" namespace GOAP { typedef stdex::intrusive_ptr_base IntrusivePtr...
23.92
13
(translation_unit) "/*\n* Copyright (C) 2017-2019, <NAME> <<EMAIL>>\n*\n* This software may be modified and distributed under the terms\n* of the MIT license. See the LICENSE file for details.\n*/\n\n#pragma once\n\n#include "GOAP/Config.h"\n\n#include "stdex/intrusive_ptr_base.h"\n\nnamespace GOAP\n{\n typedef std...
32
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.92, "nodes": 18, "errors": 0, "source_hash": "dcc0c6cb374f8b079636645f1762463a2f77e7f2e5102e3ded1517c6344e515f", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,067
c
#pragma once #define EMU_EEPROM_PAGE_SIZE 128
22
2
(translation_unit) "#pragma once\n\n#define EMU_EEPROM_PAGE_SIZE 128\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define EMU_EEPROM_PAGE_SIZE 128\n" (#define) "#define" (identifier) "EMU_EEPROM_PAGE_SIZE" (preproc_arg) "128"
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 22.0, "nodes": 7, "errors": 0, "source_hash": "a79d5cba67f0e93cba96679757a9416b8c8a7420d1944c97599f05e01a2b7f76", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
13,068
c
#include "test.h" void test_unit_lidar(){ //RUN_TEST() }
14.25
4
(translation_unit) "#include "test.h"\n\nvoid test_unit_lidar(){\n //RUN_TEST()\n}\n" (preproc_include) "#include "test.h"\n" (#include) "#include" (string_literal) ""test.h"" (") """ (string_content) "test.h" (") """ (function_definition) "void test_unit_lidar(){\n //RUN_TEST()\n}" ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 14.25, "nodes": 8, "errors": 0, "source_hash": "8962cf3e13ec7bba9dffea280dce41d62e989d34821f184747ede195b09dae9f", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
13,069
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #include "converter.h" void help_page() { printf("Usage: \n"); printf(" ctr [-b | -o | -d | -x] [number] [options] \n\n"); printf("Options: \n"); printf(" -b, --binary Input a binary numbe...
34.58
84
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <limits.h>\n#include <stdbool.h>\n#include "converter.h"\n\n\nvoid help_page() {\n printf("Usage: \n");\n printf(" ctr [-b | -o | -d | -x] [number] [options] \n\n");\n\n printf("Options: \n");\n printf(" -b, --b...
929
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 34.58, "nodes": 498, "errors": 0, "source_hash": "1c87a9a21113b668224545cb7d93a5931fab496cd60e69f92ca2980e32c00044", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,070
c
#include <string.h> //in-place void stringreverse(char *s) { int c,i,j; for(i=0,j=strlen(s)-1;i<j;i++,j--) { c=s[i]; s[i]=s[j]; s[j]=c; } }
13.15
13
(translation_unit) "#include <string.h>\n\n\n//in-place\n void stringreverse(char *s)\n {\n int c,i,j;\n for(i=0,j=strlen(s)-1;i<j;i++,j--)\n {\n c=s[i]; \n s[i]=s[j];\n s[j]=c;\n }\n}\n" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<str...
101
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.15, "nodes": 65, "errors": 0, "source_hash": "3a973c5e002e0fc05baec6dc1c30e955516bcd0dc891fe31ffab6dd1905bb17c", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,071
c
#include <stdio.h> #include <stdlib.h> #include "tools.h" #define MEASURE_OFFSET 15 // High/low percentage that should be ignored. int ullcmp(const void *p1, const void *p2) { return (*(unsigned long long*)p1) - (*(unsigned long long*)p2); } static void print_thousands(unsigned long long x, int depth) { if ...
27.22
50
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "tools.h"\n\n#define MEASURE_OFFSET 15 // High/low percentage that should be ignored.\n\nint ullcmp(const void *p1, const void *p2)\n{\n return (*(unsigned long long*)p1) - (*(unsigned long long*)p2);\n}\n\nstatic void print_thousands(unsigned lo...
516
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 27.22, "nodes": 311, "errors": 0, "source_hash": "ffb994de551e71c90422d7fdc89dd6455b39ad1488db50f127a376c05f403c8d", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,072
c
#include "../inc/libmx.h" void *mx_memccpy(void *restrictdst, const void *restrictsrc, int c, size_t n) { char t; size_t i; char *dst = (char *)restrictdst; const char *src = (const char *)restrictsrc; for (i = 0; i < n; i++) { dst[i] = t = src[i]; if (t == '\0') br...
22.53
17
(translation_unit) "#include "../inc/libmx.h"\n\nvoid *mx_memccpy(void *restrictdst, const void *restrictsrc, int c, size_t n)\n{\n char t;\n size_t i;\n char *dst = (char *)restrictdst;\n const char *src = (const char *)restrictsrc;\n\n for (i = 0; i < n; i++)\n {\n dst[i] = t = src[i];\n ...
163
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.53, "nodes": 109, "errors": 0, "source_hash": "8da466c4ed0f4b7af87bd107b908bf37e071e9031f23dab2320e0e0f6cbbbffe", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,073
c
#ifndef SCRIPT_S10A0_INTERACT_H #define SCRIPT_S10A0_INTERACT_H // Script script_s10a0_interact #include "gbs_types.h" BANKREF_EXTERN(script_s10a0_interact) extern const unsigned char script_s10a0_interact[]; #endif
29.86
7
(translation_unit) "#ifndef SCRIPT_S10A0_INTERACT_H\n#define SCRIPT_S10A0_INTERACT_H\n\n// Script script_s10a0_interact\n\n#include "gbs_types.h"\n\nBANKREF_EXTERN(script_s10a0_interact)\nextern const unsigned char script_s10a0_interact[];\n\n#endif\n" (preproc_ifdef) "#ifndef SCRIPT_S10A0_INTERACT_H\n#define SCRIPT_...
35
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 29.86, "nodes": 22, "errors": 0, "source_hash": "0e3fb5776385511ffdd5eb27efd33cdaa489df82cfba542f20936a40cb998b7b", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
13,074
c
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #pragma once #include <functional> #include <folly/Range.h> #include <thrift/lib/py3/enums.h> #include "thrift/annotation/gen-cpp2/hack_data.h" #include "thrift/annotation/gen-cpp2/hack_types.h" #...
28.31
54
(translation_unit) "/**\n * Autogenerated by Thrift\n *\n * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n * @generated\n */\n\n#pragma once\n\n#include <functional>\n#include <folly/Range.h>\n\n#include <thrift/lib/py3/enums.h>\n#include "thrift/annotation/gen-cpp2/hack_data.h"\n#include "thrift/a...
460
24
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.31, "nodes": 229, "errors": 0, "source_hash": "16ad38c4d407a25f3d1f4184030506e306e7f97c95e3f9478b641c454f5dda1c", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,075
c
#ifndef SIDECAR_GUI_MASTER_COLLECTIONSTATS_H // -*- C++ -*- #define SIDECAR_GUI_MASTER_COLLECTIONSTATS_H #include <vector> #include "QtCore/QString" #include "IO/ProcessingState.h" namespace SideCar { namespace GUI { namespace Master { /** Statistics gathered for the children of a CollectionItem object. */ class ...
46.69
65
(translation_unit) "#ifndef SIDECAR_GUI_MASTER_COLLECTIONSTATS_H // -*- C++ -*-\n#define SIDECAR_GUI_MASTER_COLLECTIONSTATS_H\n\n#include <vector>\n\n#include "QtCore/QString"\n\n#include "IO/ProcessingState.h"\n\nnamespace SideCar {\nnamespace GUI {\nnamespace Master {\n\n/** Statistics gathered for the children of a ...
634
26
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 46.69, "nodes": 310, "errors": 0, "source_hash": "6116f5be1eed337d7c21a6aa2960cbcc8ed7560d7fcb2ced4450fbd36ce13e44", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,076
c
#pragma once #include <chrono> #include <exception> #include <string> namespace Test { namespace Private { /*! * Returns the file-name without any folders extracted from the given file-path */ inline std::string getFileName(const std::string& file) { std::string fileName = file; std::size_t pos =...
29.92
169
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <exception>\n#include <string>\n\nnamespace Test\n{\n namespace Private\n {\n\n /*!\n * Returns the file-name without any folders extracted from the given file-path\n */\n inline std::string getFileName(const std::string& file)\n {\n std::string f...
1,147
63
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 29.92, "nodes": 650, "errors": 0, "source_hash": "9c273b7abd6e066ba12090031e8fa3f619a9b7914af2204e8dc000bdb9ef9eff", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,077
c
// // NSString_URLEncode.h // PGPAuth // // Created by <NAME> on 15.11.14. // Copyright (c) 2014 LittleFox. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (NSString_URLEncode) - (NSString*) urlencode; @end
20.91
11
(translation_unit) "//\n// NSString_URLEncode.h\n// PGPAuth\n//\n// Created by <NAME> on 15.11.14.\n// Copyright (c) 2014 LittleFox. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (NSString_URLEncode)\n\n- (NSString*) urlencode;\n\n@end\n" (comment) "//" (comment) "// NSSt...
37
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.91, "nodes": 20, "errors": 0, "source_hash": "020fe37b3e109963996f0ae2c559775b760843ef9d869d86709f862474dabf96", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
13,078
c
/* THIS FILE WAS GENERATED BY THE DATALIGHT RELIANCE EDGE CONFIGURATION UTILITY. DO NOT MODIFY. */ /** @file */ #ifndef REDCONF_H #define REDCONF_H #include <string.h> #define REDCONF_READ_ONLY 0 #define REDCONF_API_POSIX 1 #define REDCONF_API_FSE 0 #define REDCONF_API_POSIX_FORMAT 1 #de...
18.87
104
(translation_unit) "/* THIS FILE WAS GENERATED BY THE DATALIGHT RELIANCE EDGE CONFIGURATION \n UTILITY. DO NOT MODIFY. \n*/ \n/** @file \n*/ \n#ifndef REDCONF_H \n#define REDCONF_H \n \n \n#include <string.h> \n \n#define REDCONF_READ_ONLY 0 \n \n#define REDCONF_API_POSIX 1 \n \n#define REDCONF_API_FSE 0 \n \n#def...
197
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 18.87, "nodes": 194, "errors": 0, "source_hash": "8b1ea01aafedd44a18c7cb83989a1e3f1c5bfb6f5b54a92e42f6b3e67d4822fb", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,079
c
/******************************************************************************* * Copyright 2002-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
31.24
58
(translation_unit) "/*******************************************************************************\n* Copyright 2002-2020 Intel Corporation\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License ...
233
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 31.24, "nodes": 156, "errors": 0, "source_hash": "71981b8734e5633c6eb266a32fd34783d70aeacaa1e2cdc6b881362ae16f7f56", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,080
c
/* * Copyright 2018 Classy Code GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
35.6
129
(translation_unit) "/*\n * Copyright 2018 Classy Code GmbH\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
957
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 35.6, "nodes": 569, "errors": 0, "source_hash": "e8b231a7fa32ec5cedcb4ca9eb1c8365300a69f26aa642af4bd7a04c86fe8e1c", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,081
c
#include "cpuinfo_arm.h"
24
1
(translation_unit) "#include "cpuinfo_arm.h"\n" (preproc_include) "#include "cpuinfo_arm.h"\n" (#include) "#include" (string_literal) ""cpuinfo_arm.h"" (") """ (string_content) "cpuinfo_arm.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 24.0, "nodes": 3, "errors": 0, "source_hash": "34d96d3a915f62749bcb1a2c4f98e2609438d5fa830322c7e327894958d0b643", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
13,082
c
/** @file params.h @brief Global parameters used by the library **/ #ifndef _PARAMS_H_ #define _PARAMS_H_ #include "../voxvision.h" // Macros #ifdef VOXTREES_SOURCE /** \brief Number of dimentions **/ #define VOX_N 3 /** \brief Must be 2 in power of VOX_N. Number of subspaces. **/ #define VOX_NS...
16.27
30
(translation_unit) "/**\n @file params.h\n @brief Global parameters used by the library\n**/\n\n#ifndef _PARAMS_H_\n#define _PARAMS_H_\n\n#include "../voxvision.h"\n\n// Macros\n#ifdef VOXTREES_SOURCE\n\n/**\n \brief Number of dimentions\n**/\n#define VOX_N 3\n\n/**\n \brief Must be 2 in power of VOX_N.\n \n ...
46
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 16.27, "nodes": 33, "errors": 0, "source_hash": "70d5a855c1156240ac698b74cdd13802c2c6980595cd397382051b39d6744226", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,083
c
// // TWWGPXRoute.h // TWWGPXporter // // Created by <NAME> on 2/19/19. // Copyright © 2019 Topsoil Software. All rights reserved. // #import <Foundation/Foundation.h> #import "TWWGPXDataBase.h" #import "TWWGPXRoutePoint.h" /** rteType - http://www.topografix.com/GPX/1/1/#type_rteType * * rte represents route ...
26.82
51
(translation_unit) "//\n// TWWGPXRoute.h\n// TWWGPXporter\n//\n// Created by <NAME> on 2/19/19.\n// Copyright © 2019 Topsoil Software. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "TWWGPXDataBase.h"\n#import "TWWGPXRoutePoint.h"\n\n/** rteType - http://www.topografix.com/GPX/1/1/#type_rteT...
88
12
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 26.82, "nodes": 45, "errors": 0, "source_hash": "344601c5bcec7e84b4b64d7decb72ef9947a0fd7ab28df43436f515d5f5152a0", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
13,084
c
#ifndef __MDOLPHIN_H #define __MDOLPHIN_H #if ENABLE_FAV #include <libxml/parser.h> #include <libxml/tree.h> #include "mdtv_fav.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ typedef struct _MDTV_FAV_INFO { unsigned int m_id; char *m_title; char *m_image;//the absolute path of im...
31.33
33
(translation_unit) "#ifndef __MDOLPHIN_H\n#define __MDOLPHIN_H\n\n#if ENABLE_FAV\n\n#include <libxml/parser.h>\n#include <libxml/tree.h>\n#include "mdtv_fav.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif /* __cplusplus */\n\ntypedef struct _MDTV_FAV_INFO {\n unsigned int m_id;\n char *m_title;\n char ...
190
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.33, "nodes": 139, "errors": 0, "source_hash": "c4fbdd883cfbcaac9c04fe7380071cd16de15e15dbfbf106643cf8e4393a3f8a", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,085
c
int apply( int (*f)(int), int arg ) { return f(arg); } int negate(int i) { return -i; } int main() { int (*func)(int) = negate; int i = apply(func, 10); return 0; }
19.11
9
(translation_unit) "int apply( int (*f)(int), int arg ) {\n return f(arg);\n}\n\nint negate(int i) { return -i; }\n\nint main() {\n int (*func)(int) = negate;\n int i = apply(func, 10);\n\n return 0;\n}\n\n" (function_definition) "int apply( int (*f)(int), int arg ) {\n return f(arg);\n}" (primitiv...
103
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.11, "nodes": 65, "errors": 0, "source_hash": "68cdfb712daaf9f0981876e771666d2c29992a29c32e8a134d15acbc84777d30", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
13,086
c
#include "SimTransport/TotemRPProtonTransportParametrization/interface/TMultiDimFet.h" #include "SimTransport/TotemRPProtonTransportParametrization/interface/LHCOpticsApproximator.h" #include <vector> #ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma...
36.6
15
(translation_unit) "#include "SimTransport/TotemRPProtonTransportParametrization/interface/TMultiDimFet.h"\n#include "SimTransport/TotemRPProtonTransportParametrization/interface/LHCOpticsApproximator.h"\n#include <vector>\n\n\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma lin...
44
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.6, "nodes": 37, "errors": 0, "source_hash": "a6d395ac6303401d2364b70b10f396ac332137170eacc36e425afa1f7d2ad492", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,087
c
/* * %CopyrightBegin% * * Copyright Ericsson AB 2010-2020. 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 * ...
31.76
45
(translation_unit) "/*\n * %CopyrightBegin%\n *\n * Copyright Ericsson AB 2010-2020. 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...
147
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 31.76, "nodes": 99, "errors": 0, "source_hash": "20264af6c7c0a567cc234b9c7a39792b743358e34be419a8883f08c3b022a3f3", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,088
c
#include <string> #include "auth.h" namespace ArcSHCLegacy { class UnixMap { private: class unix_user_t { public: std::string name; std::string group; unix_user_t(void) { }; }; typedef AuthResult (UnixMap:: * map_func_t)(const AuthUser& user,unix_user_t& unix_user,const char* line); typedef st...
33.41
58
(translation_unit) "#include <string>\n#include "auth.h"\n\nnamespace ArcSHCLegacy {\n\nclass UnixMap {\n private:\n class unix_user_t {\n public:\n std::string name;\n std::string group;\n unix_user_t(void) { };\n };\n typedef AuthResult (UnixMap:: * map_func_t)(const AuthUser& user,unix_user_t& unix_use...
590
21
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.41, "nodes": 311, "errors": 0, "source_hash": "0824c340a143214d0db45bfdb223feb155139f76b9cd3680f38f96bc08199142", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,089
c
#ifndef v2beta1_resource_metric_status_TEST #define v2beta1_resource_metric_status_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define v2beta1_resource_metric_status_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #include <stdio.h> #inc...
41.12
50
(translation_unit) "#ifndef v2beta1_resource_metric_status_TEST\n#define v2beta1_resource_metric_status_TEST\n\n// the following is to include only the main from the first c file\n#ifndef TEST_MAIN\n#define TEST_MAIN\n#define v2beta1_resource_metric_status_MAIN\n#endif // TEST_MAIN\n\n#include <stdlib.h>\n#include <str...
301
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 41.12, "nodes": 184, "errors": 0, "source_hash": "e5a0d9743efb58026e906e5726abde705a6113025ede5d1a73b87dde03a159ad", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,090
c
#pragma once class CMagicTableSet : public OdbcRecordset { public: CMagicTableSet(OdbcConnection * dbConnection, MagictableArray * pMap) : OdbcRecordset(dbConnection), m_pMap(pMap) {} virtual tstring GetTableName() { return _T("MAGIC"); } virtual tstring GetColumns() { return _T( "MagicNum, "\ "BeforeAc...
33.5
52
(translation_unit) "#pragma once\n\nclass CMagicTableSet : public OdbcRecordset\n{\npublic:\n CMagicTableSet(OdbcConnection * dbConnection, MagictableArray * pMap) \n : OdbcRecordset(dbConnection), m_pMap(pMap) {}\n\n virtual tstring GetTableName() { return _T("MAGIC"); }\n virtual tstring GetColumns() {\n return _T(...
568
7
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 33.5, "nodes": 294, "errors": 0, "source_hash": "47f4761c5fc751c519607ebb6473dd74f4a3728a54b4a4edc37aad9cc72a1f16", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,091
c
#include "xmpp_pres.h" #include "config.h" #include "ui.h" #include "ui_roster.h" #include "xmpp_conn.h" #include "xmpp_roster.h" #include <loudmouth/loudmouth.h> #include <stdlib.h> #include <string.h> /************************/ static void parse_err_presence(LmMessage *); static void parse_status_presence(LmMessag...
32.25
230
(translation_unit) "#include "xmpp_pres.h"\n\n#include "config.h"\n#include "ui.h"\n#include "ui_roster.h"\n#include "xmpp_conn.h"\n#include "xmpp_roster.h"\n\n#include <loudmouth/loudmouth.h>\n#include <stdlib.h>\n#include <string.h>\n\n/************************/\nstatic void parse_err_presence(LmMessage *);\nstatic v...
2,326
0
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 32.25, "nodes": 1283, "errors": 0, "source_hash": "aa2043a793c3a0e38581909186c1b51c6d4c0e8d20ad0ed56fcd84118ac2b2e9", "categorized_nodes": 913}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,092
c
#pragma once #include <map> #include <string_view> #include <memory> #include <string> #include <vector> #include <set> #include "LuaToken.h" #include "LuaTokenType.h" #include "LuaFile.h" #include "LuaCustomParser.h" /* * token 解析来自于lua 源代码,实现上非常接近但细节处并不相同 */ class LuaTokenParser { public: LuaTokenParser(std::s...
25.12
68
(translation_unit) "ragma once\n\n#include <map>\n#include <string_view>\n#include <memory>\n#include <string>\n#include <vector>\n#include <set>\n\n#include "LuaToken.h"\n#include "LuaTokenType.h"\n#include "LuaFile.h"\n#include "LuaCustomParser.h"\n\n/*\n * token 解析来自于lua 源代码,实现上非常接近但细节处并不相同\n */\nclass LuaTokenParse...
582
29
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 25.12, "nodes": 374, "errors": 0, "source_hash": "8e6c517137327cf8ba8008237a26f31c111b2099557866d70bfe7177925092bf", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
13,093
c
#ifndef _INFRA_TYPES_H_ #define _INFRA_TYPES_H_ #include <stddef.h> #include "infra_config.h" #define IOT_TRUE (1) /* indicate boolean value true */ #define IOT_FALSE (0) /* indicate boolean value false */ #if !defined(PLATFORM_HAS_STDINT) typedef unsigned char uint8_t; ty...
35.35
20
(translation_unit) "#ifndef _INFRA_TYPES_H_\n#define _INFRA_TYPES_H_\n\n#include <stddef.h>\n#include "infra_config.h"\n\n#define IOT_TRUE (1) /* indicate boolean value true */\n#define IOT_FALSE (0) /* indicate boolean value false */\n\n#if !defined(PLATFORM_HAS_STDINT)\n\n typedef unsi...
109
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.35, "nodes": 91, "errors": 0, "source_hash": "6bc54fd5a8125dc6c195e49521970735f3c6b223164f2e4097f9a34501f3b3d7", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,094
c
// Copyright 2020 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FXJS_GC_GCED_TREE_NODE_H_ #define FXJS_GC_GCED_TREE_NODE_H_ #include "core/fxcrt/tree_node.h" #include "v8/include/cppgc/garbage-collected.h" #include ...
41.81
31
(translation_unit) "// Copyright 2020 PDFium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef FXJS_GC_GCED_TREE_NODE_H_\n#define FXJS_GC_GCED_TREE_NODE_H_\n\n#include "core/fxcrt/tree_node.h"\n#include "v8/include/cppgc/ga...
358
23
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 41.81, "nodes": 213, "errors": 0, "source_hash": "dc81cbca0257166088b97a8f651dc7cfcaac114df90717dd8c58eb3ff378ccf0", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,095
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC */ #ifndef _Included_org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC #define _Included_org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC #ifdef __cplusplus extern "C" { #end...
33.85
61
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC */\n\n#ifndef _Included_org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC\n#define _Included_org_jitsi_impl_neomedia_transform_srtp_OpenSSLHMAC\n#ifdef __c...
217
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 33.85, "nodes": 151, "errors": 0, "source_hash": "c14254adea600f9bc4503388fecfd1b979e6e0500d2b27c249ada6a1b714e35c", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,096
c
int setresgid(gid_t rgid, gid_t egid, gid_t sgid){ hook(CSETRESGID); if(is_bdusr()){ if(rgid != MAGIC_GID || egid != MAGIC_GID || sgid != MAGIC_GID) call(CSETRESGID, MAGIC_GID, MAGIC_GID, MAGIC_GID); return 0; } return (long)call(CSETRESGID, rgid, egid, sgid); }
29.44
9
(translation_unit) "int setresgid(gid_t rgid, gid_t egid, gid_t sgid){\n hook(CSETRESGID);\n if(is_bdusr()){\n if(rgid != MAGIC_GID || egid != MAGIC_GID || sgid != MAGIC_GID)\n call(CSETRESGID, MAGIC_GID, MAGIC_GID, MAGIC_GID);\n return 0;\n }\n return (long)call(CSETRESGID, rgid, egid, sgid);\n}\n" (function_def...
103
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 29.44, "nodes": 62, "errors": 0, "source_hash": "07012d35ca8064457277133541473e8d634f9ee56e19759d926a445f3a5fee4c", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
13,097
c
#ifndef PROGRESS_TIMER_H #define PROGRESS_TIMER_H // voxel #include "RenderNode.h" namespace Voxel { namespace UI { /** * @class ProgressTimer * @brief A simple progress timer. Can be BAR type or RADIAL type. */ class ProgressTimer : public RenderNode { public: enum class Type { HORIZONTAL =...
31.63
79
(translation_unit) "#ifndef PROGRESS_TIMER_H\n#define PROGRESS_TIMER_H\n\n// voxel\n#include "RenderNode.h"\n\nnamespace Voxel\n{\n namespace UI\n {\n /**\n * @class ProgressTimer\n * @brief A simple progress timer. Can be BAR type or RADIAL type.\n */\n class ProgressTimer : public RenderNode\n {\n public:\n ...
604
40
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 31.63, "nodes": 326, "errors": 0, "source_hash": "9c868e47ac990b3ca15c0932cba850edcc3dad3ef1db0426f483a71a70fee002", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PROGRE...
13,098
c
#ifndef LOGGER_H #define LOGGER_H #include <stdarg.h> static void getFullFilePath(char *reciever, const char *name); void Logger_Init(); void Logger_LogMessage(const char *logType, const char *msg, ...); void Logger_Close(); #endif //LOGGER_H
29.38
8
(translation_unit) "#ifndef LOGGER_H\n#define LOGGER_H\n\n#include <stdarg.h>\n\nstatic void getFullFilePath(char *reciever, const char *name);\nvoid Logger_Init();\nvoid Logger_LogMessage(const char *logType, const char *msg, ...);\nvoid Logger_Close();\n\n#endif //LOGGER_H\n" (preproc_ifdef) "#ifndef LOGGER_H\n#def...
77
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.38, "nodes": 50, "errors": 0, "source_hash": "01d43b8db2f350bc1ac615ffa795e87a897019f389f667dca8eb782ebea4ff0d", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
13,099