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
K at(K x,K y); K promote(K a); K demote(K a); K collapse(K x); K delist(K x); K *EVP(K e); K kap(K *a,V v); extern S LS; I VA(V p); K kcloneI(K a,const char*f,int n); #define kclone(a) kcloneI(a,__FILE__,__LINE__) K kcopyI(K a,const char*f,int n); #define kcopy(a) kcopyI(a,__FILE__,__LINE__)
21.92
13
(translation_unit) "K at(K x,K y);\nK promote(K a);\nK demote(K a);\nK collapse(K x);\nK delist(K x);\nK *EVP(K e);\nK kap(K *a,V v);\nextern S LS;\nI VA(V p);\nK kcloneI(K a,const char*f,int n);\n#define kclone(a) kcloneI(a,__FILE__,__LINE__)\nK kcopyI(K a,const char*f,int n);\n#define kcopy(a) kcopyI(a,__FILE__,...
169
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.92, "nodes": 123, "errors": 0, "source_hash": "d99663814cf3c8c6751b827b1e2ba47b7fddebe26ee8409174b4b677bf2009c7", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "K at(K x,...
14,700
c
#pragma once #include <vector> class SceneBehavior; enum UpdateOrder { PRE_UPDTATE = 0, POST_UPDATE = 1 }; typedef std::vector<SceneBehavior*> scene_behavior_list; class SceneBehaviorManager { public: SceneBehaviorManager(); ~SceneBehaviorManager(); void initialize(); void terminate(); ...
23.13
23
(translation_unit) "#pragma once\n#include <vector>\nclass SceneBehavior;\n\nenum UpdateOrder\n{\n PRE_UPDTATE = 0,\n POST_UPDATE = 1\n};\n\ntypedef std::vector<SceneBehavior*> scene_behavior_list;\n\nclass SceneBehaviorManager\n{\npublic:\n SceneBehaviorManager();\n ~SceneBehaviorManager();\n\n void ini...
133
1
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.13, "nodes": 87, "errors": 0, "source_hash": "8f097327260f8a663f94d5a3fe845b7561adfba21820dc73cf9e11d86eff3cd9", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,701
c
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <<EMAIL>> * http://ugene.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the L...
36.16
49
(translation_unit) "/**\n * UGENE - Integrated Bioinformatics Tools.\n * Copyright (C) 2008-2020 UniPro <<EMAIL>>\n * http://ugene.net\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; e...
169
8
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.16, "nodes": 100, "errors": 0, "source_hash": "6f053187592cc0d57422cd93d397eb954faaa90f6b94ad34c942781e4904b2f0", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,702
c
#include<stdio.h> #include<string.h> #define N 128 #define ALPHA 1 #define NO_ALPHA 0 //找出字符串中最长单词的位置 int longest(char *s,int *start,int *leng); //是否是字母 int alphabetic(char ch); int main() { //输出字符串中最长单词 char s[N]; char *p; int i; int start;//最长单词的起始位置 int len;//最长单词的长度 p = s; start = len = -1; ...
15.34
82
(translation_unit) "#include<stdio.h>\n#include<string.h>\n\n#define N 128\n#define ALPHA 1\n#define NO_ALPHA 0\n\n\n//找出字符串中最长单词的位置\nint longest(char *s,int *start,int *leng);\n\n//是否是字母\nint alphabetic(char ch);\n\n\nint main()\n{\n //输出字符串中最长单词\n char s[N];\n char *p;\n int i;\n int start;//最长单词的起始位置\n int len...
510
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 15.34, "nodes": 315, "errors": 0, "source_hash": "e3b58548ff3bb778b8bfb1ac369f21e2b2b0954b2e0ee1348dc8f04ef82b3238", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,703
c
/* Level-US project Class to use the OpenCR IMU @author <NAME> (Level-US team) @version 1.0 28/03/2021 */ #ifndef OpenCR_IMU_H_ #define OpenCR_IMU_H_ #include <Arduino.h> #include <IMU.h> #include <cstdint> class OpenCR_IMU { public: OpenCR_IMU(); int initIMU(); int updateAngles(); int getAngles...
15.85
27
(translation_unit) "/*\nLevel-US project\nClass to use the OpenCR IMU\n@author <NAME> (Level-US team)\n@version 1.0 28/03/2021\n*/\n\n#ifndef OpenCR_IMU_H_\n#define OpenCR_IMU_H_\n\n#include <Arduino.h>\n#include <IMU.h>\n#include <cstdint>\n\nclass OpenCR_IMU\n{\n public:\n OpenCR_IMU();\n \n int initIMU()...
95
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.85, "nodes": 59, "errors": 0, "source_hash": "317e5235b450aa56e4fcc25cfa69462c39ac447ccad79160abc71a07247dffca", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,704
c
/* * cli.h */ #pragma once #include <iostream> #include <string> #include <vector> #include <map> using namespace std; // ensures map<string, string, cmp> will keep original ordering struct cmp { bool operator()(const string& a, const string& b) const { return 1; } }; void print_usage(char* bin_n...
33.94
18
(translation_unit) "/*\n * cli.h\n */\n\n#pragma once\n\n#include <iostream>\n#include <string>\n#include <vector>\n#include <map>\n\nusing namespace std;\n\n// ensures map<string, string, cmp> will keep original ordering\nstruct cmp {\n bool operator()(const string& a, const string& b) const {\n return 1;\n ...
201
15
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.94, "nodes": 141, "errors": 0, "source_hash": "4c3b2518a9ae6afebfabc12a31fffd1443a6a6293bfaee9707b61c26ad0a031b", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,705
c
/*******************************************************************\ Module: C++ Language Type Checking Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_CPP_DECLARATOR_H #define CPROVER_CPP_DECLARATOR_H #include <expr.h> #include "cpp_name.h" class cp...
48.23
44
(translation_unit) "/*******************************************************************\\n\nModule: C++ Language Type Checking\n\nAuthor: <NAME>, <EMAIL>\n\n\*******************************************************************/\n\n#ifndef CPROVER_CPP_DECLARATOR_H\n#define CPROVER_CPP_DECLARATOR_H\n\n#include <expr.h>\n...
630
30
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 48.23, "nodes": 290, "errors": 0, "source_hash": "57e59225f5dd78a20d6bfe64b5b2486cc0de126c4a2f70d40a0ca936494abdd5", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,706
c
#pragma once #include <functional> // for std::hash #include <type_traits> namespace util::SafeTypes { template <typename, typename = void> constexpr bool is_comparable = false; template <class T> inline constexpr bool is_comparable<T, std::void_t<typename T::is_comparable>> = true; template <typename, typename = v...
38.36
56
(translation_unit) "#pragma once\n\n#include <functional> // for std::hash\n#include <type_traits>\n\nnamespace util::SafeTypes {\n\ntemplate <typename, typename = void>\nconstexpr bool is_comparable = false;\ntemplate <class T>\ninline constexpr bool is_comparable<T, std::void_t<typename T::is_comparable>> = true;\n\n...
797
64
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 38.36, "nodes": 567, "errors": 0, "source_hash": "31fba92411ce8d4b0d4209f9a33674df838dabcbacf1bafa18bdaa6791c16f45", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,707
c
// // CCViewController.h // ATAuthSDK // // Created by deju on 12/07/2019. // Copyright (c) 2019 deju. All rights reserved. // @import UIKit; @interface CCViewController : UIViewController @end
18.8
10
(translation_unit) "//\n// CCViewController.h\n// ATAuthSDK\n//\n// Created by deju on 12/07/2019.\n// Copyright (c) 2019 deju. All rights reserved.\n//\n\n@import UIKit;\n\n@interface CCViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// CCViewController.h" (comment) "// ATAuthSDK" ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.8, "nodes": 10, "errors": 0, "source_hash": "c79a952683dd90c3e71c1a00c666b24874ce8b665915841d1bc3ee4e1d17c9c8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
14,708
c
#import <Foundation/Foundation.h> #import "RTErrorMessageView.h" @protocol RTFollowUserView <NSObject, RTErrorMessageView> - (void)showUserAsFollowedForUsername:(NSString *)username; @end
36.6
5
(translation_unit) "#import <Foundation/Foundation.h>\n#import "RTErrorMessageView.h"\n\n@protocol RTFollowUserView <NSObject, RTErrorMessageView>\n\n- (void)showUserAsFollowedForUsername:(NSString *)username;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (prepr...
40
6
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 36.6, "nodes": 27, "errors": 0, "source_hash": "782705f38a7f2d9ca188944b2310c27e88592afa632a4ffec628af825644fad0", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
14,709
c
#ifndef ITEM_H #define ITEM_H #include "../util/Base.h" class Item { public: mutex locker; int itemID; vector<int> raterIDs; unordered_map<int, string> ratings; Item() {} }; #endif //ITEM_H
16.5
12
(translation_unit) "#ifndef ITEM_H\n#define ITEM_H\n\n#include "../util/Base.h"\n\nclass Item {\npublic:\n mutex locker;\n int itemID;\n vector<int> raterIDs;\n unordered_map<int, string> ratings;\n\n Item() {}\n};\n\n#endif //ITEM_H\n" (preproc_ifdef) "#ifndef ITEM_H\n#define ITEM_H\n\n#include "../ut...
65
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.5, "nodes": 38, "errors": 0, "source_hash": "bfdc7ffd2d4f62fab48724b67341c5c56210697238de090324a4dc9c848fed51", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
14,710
c
#pragma once #include <string> #include <memory> #include "ObjectFactory.h" #include "Engine/Core/CoreMacro.h" #include "Engine/Core/JSON/Json.h" #define REGISTER_OBJECT_HEADER(OBJECT_CLASS_NAME)\ virtual ::std::string GetTypeName () const override { return #OBJECT_CLASS_NAME; } #define REGISTER_OBJECT_CPP(OBJECT_C...
29.97
31
(translation_unit) "#pragma once\n\n#include <string>\n#include <memory>\n\n#include "ObjectFactory.h"\n#include "Engine/Core/CoreMacro.h"\n#include "Engine/Core/JSON/Json.h"\n\n#define REGISTER_OBJECT_HEADER(OBJECT_CLASS_NAME)\\nvirtual ::std::string GetTypeName () const override { return #OBJECT_CLASS_NAME; }\n\n#def...
257
17
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.97, "nodes": 150, "errors": 0, "source_hash": "b53cf56fdea064fc256802f085bad1ac139807fc73cd8c6efc7c0dc4c2c106c5", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,711
c
/* ** EPITECH PROJECT, 2019 ** my_strcat_dup ** File description: ** combine my_strcat and my_strdup */ #include "garbage.h" #include "my.h" char *my_strcat_dup(char *str1, char *str2) { char *new = gc_malloc(get_garbage(), sizeof(char) * (my_strlen(str1) + my_strlen(str2) + 1)...
25.81
16
(translation_unit) "/*\n** EPITECH PROJECT, 2019\n** my_strcat_dup\n** File description:\n** combine my_strcat and my_strdup\n*/\n\n#include "garbage.h"\n#include "my.h"\n\nchar *my_strcat_dup(char *str1, char *str2)\n{\n char *new = gc_malloc(get_garbage(), sizeof(char) *\n (my_st...
125
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.81, "nodes": 72, "errors": 0, "source_hash": "3855b7200f6dee7afd9fe2e4ab28f405532af019ac7fc88e162e7a0bd48480ff", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,712
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FuseUI.framework/FuseUI */ @interface MusicLibraryBrowseTableViewConfiguration : MusicLibraryViewConfiguration { unsigned long long _minimumNumberOfEntitiesToAllowSectionHeaders; } @property (nonatomic) unsigned long long minimumNumberOf...
45.91
11
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/FuseUI.framework/FuseUI\n */\n\n@interface MusicLibraryBrowseTableViewConfiguration : MusicLibraryViewConfiguration {\n unsigned long long _minimumNumberOfEntitiesToAllowSectionHeaders;\n}\n\n@property (nonatomic) unsign...
83
9
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 45.91, "nodes": 55, "errors": 0, "source_hash": "51a84dc21c8ab23df3d03eb87b8560958127d34f9418602d2c0f7d7a4a6ab849", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
14,713
c
// Generated by Haxe 4.1.5 #ifndef INCLUDED_smTools_SMFile #define INCLUDED_smTools_SMFile #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS1(smTools,SMFile) HX_DECLARE_CLASS1(smTools,SMHeader) HX_DECLARE_CLASS1(smTools,SMMeasure) namespace smTools{ class HXCPP_CLASS_ATTRIBUTES SMFile_obj : public ::hx::O...
37.45
53
(translation_unit) "// Generated by Haxe 4.1.5\n#ifndef INCLUDED_smTools_SMFile\n#define INCLUDED_smTools_SMFile\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS1(smTools,SMFile)\nHX_DECLARE_CLASS1(smTools,SMHeader)\nHX_DECLARE_CLASS1(smTools,SMMeasure)\n\nnamespace smTools{\n\n\nclass HXCPP_CLASS_ATT...
707
55
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 37.45, "nodes": 367, "errors": 0, "source_hash": "a195f7c3f3ceb996dfa9fe43902bedd5a6eae52f82c7843abfde335552bc8b47", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,714
c
#define FUNC sinl #include <s_atanl.c>
18.5
2
(translation_unit) "#define FUNC sinl\n#include <s_atanl.c>\n" (preproc_def) "#define FUNC sinl\n" (#define) "#define" (identifier) "FUNC" (preproc_arg) "sinl" (preproc_include) "#include <s_atanl.c>\n" (#include) "#include" (system_lib_string) "<s_atanl.c>"
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 18.5, "nodes": 7, "errors": 0, "source_hash": "5cbcb7aeda41f933b1331b4f87809f6d0a761a3b4c9656dbd485ae35955f5787", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define FUNC s...
14,715
c
#ifndef BIO2_BIO2 #define BIO2_BIO2 #include <stdbool.h> #include <stddef.h> #include <stdint.h> enum bio2_bi2a_cmd { // Same as AC_IO_CMD_CLEAR but called differently // with a parameter required to initialize the IO correctly BIO2_BI2A_CMD_INIT = 0x0100, BIO2_BI2A_CMD_WATCHDOG = 0x0120, BIO2_BI2...
26.77
13
(translation_unit) "#ifndef BIO2_BIO2\n#define BIO2_BIO2\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\nenum bio2_bi2a_cmd {\n // Same as AC_IO_CMD_CLEAR but called differently\n // with a parameter required to initialize the IO correctly\n BIO2_BI2A_CMD_INIT = 0x0100,\n BIO2_BI2A_CMD_...
42
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.77, "nodes": 32, "errors": 0, "source_hash": "0ae6249b8acb36feab5252989c36acee62f771fd0313308fbad263b423d7afe9", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,716
c
#pragma once #include <vector> #include <map> #include <UrchinCommon.h> #include <libs/earcut/earcut.h> #include <path/navmesh/model/output/NavTriangle.h> namespace mapbox::util { template<> struct nth<0, urchin::Point2<float>> { static auto get(const urchin::Point2<float> &t); }; template<> st...
37.19
26
(translation_unit) "#pragma once\n\n#include <vector>\n#include <map>\n#include <UrchinCommon.h>\n\n#include <libs/earcut/earcut.h>\n#include <path/navmesh/model/output/NavTriangle.h>\n\nnamespace mapbox::util {\n\n template<> struct nth<0, urchin::Point2<float>> {\n static auto get(const urchin::Point2<float...
297
17
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 37.19, "nodes": 190, "errors": 0, "source_hash": "6ab2108bda5663310c78e3bc9e265c5c896ffca93825ede98138ffdba480e51c", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,717
c
/* * Copyright (c) 2016 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_ #define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_ #include <device.h> #include <hal/nrf_clock.h> /* TODO: move all these to clock_control.h...
34.23
69
(translation_unit) "/*\n * Copyright (c) 2016 Nordic Semiconductor ASA\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_\n#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_\n\n#include <device.h>\n#include <hal/nrf_clock.h>\n\n/* TODO: m...
167
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 34.23, "nodes": 146, "errors": 0, "source_hash": "654c94a4dbcfeb03c597c22c78caec77e5ce1d35d87faa4e37895a80c7ea6acc", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,718
c
/* pipe.c This file is part of a program that implements a Software-Defined Radio. Copyright (C) 2014 <NAME>, NR0V This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
30.99
235
(translation_unit) "/* pipe.c\n\nThis file is part of a program that implements a Software-Defined Radio.\n\nCopyright (C) 2014 <NAME>, NR0V\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; eithe...
2,458
8
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 30.99, "nodes": 1398, "errors": 0, "source_hash": "0390c206d9b58d65c4d1918b1c5a43d8d8c278a42beb440af6b0c8703215d5ca", "categorized_nodes": 1118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,719
c
// // TimelineViewController.h // Instagram-FBU // // Created by aadhya on 7/8/19. // Copyright © 2019 codepath. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface TimelineViewController : UIViewController @end NS_ASSUME_NONNULL_END
21.42
12
(translation_unit) "//\n// TimelineViewController.h\n// Instagram-FBU\n//\n// Created by aadhya on 7/8/19.\n// Copyright © 2019 codepath. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TimelineViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comm...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.42, "nodes": 14, "errors": 0, "source_hash": "c526a8fdcfb0b74f062a7bd461c896edb0c6fd8e120116835079232c338a6df2", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
14,720
c
#ifndef QMSGUPDATEDEVICEINFOLONGID_H #define QMSGUPDATEDEVICEINFOLONGID_H #include "qmsgupdatedeviceinfo.h" namespace QRserver { class QMsgUpdateDeviceInfoLongId : public QMsgUpdateDeviceInfo { Q_OBJECT public: QMsgUpdateDeviceInfoLongId(QObject *parent = nullptr); ...
33.42
19
(translation_unit) "#ifndef QMSGUPDATEDEVICEINFOLONGID_H\n#define QMSGUPDATEDEVICEINFOLONGID_H\n\n#include "qmsgupdatedeviceinfo.h"\n\nnamespace QRserver\n{\n class QMsgUpdateDeviceInfoLongId : public QMsgUpdateDeviceInfo\n {\n Q_OBJECT\n\n public:\n QMsgUpdateDeviceInfoLongId(QObject...
123
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.42, "nodes": 69, "errors": 0, "source_hash": "b28e1435811059d18e3fece94aabe8e3e98225dd27a75ae566fdfd70f711cf45", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,721
c
#include <stdio.h> #include<stdlib.h> #include <math.h> #include "mpi.h" void myMPI_Bcast(int *N, int root) { int rank, size; MPI_Comm_rank(MPI_COMM_WORLD,&rank); MPI_Comm_size(MPI_COMM_WORLD,&size); //every rank other than rank 0 recieves if (rank != root){ MPI_Status status; int tag = 1; int sourceRank...
22.96
71
(translation_unit) "#include <stdio.h>\n#include<stdlib.h>\n#include <math.h>\n\n#include "mpi.h"\n\nvoid myMPI_Bcast(int *N, int root) {\n\n int rank, size;\n MPI_Comm_rank(MPI_COMM_WORLD,&rank);\n MPI_Comm_size(MPI_COMM_WORLD,&size);\n\n //every rank other than rank 0 recieves\n if (rank != root){\n MPI_Status statu...
546
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 22.96, "nodes": 331, "errors": 0, "source_hash": "ad677f8f3c8974477f786431e51c936575823075a3aea25ba2b1136b1b13511e", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,722
c
#include <udp_broadcast_receiver.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> bool UDP_Broadcast_Receiver_Init(UDP_Receiver *receiver) { bool status = false; struct sockaddr_in server_addr; int y...
32.29
51
(translation_unit) "#include <udp_broadcast_receiver.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <netinet/in.h>\n\nbool UDP_Broadcast_Receiver_Init(UDP_Receiver *receiver)\n{\n bool status = false;\n struct so...
449
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.29, "nodes": 292, "errors": 0, "source_hash": "37a4f85930064477d1d882eba06aafd3434bf6c02c9bec5871ed81fee43c272f", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,723
c
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published b...
20.43
142
(translation_unit) "/****************************************************************************** \n * \n * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. \n * \n * This program is free software; you can redistribute it and/or modify it \n * under the terms of version 2 of the GNU General Public L...
406
48
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 20.43, "nodes": 310, "errors": 0, "source_hash": "17232e6671d31a2b3f25d7a48ecba7c11b158db70d98d6a182b6cda06f6d2320", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,724
c
// // IGUIQueryTests.h // IGUIQueryTests // // Created by <NAME> on 13年8月13日. // Copyright (c) 2013年 Ignition Soft. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> @interface IGUIQueryTests : SenTestCase @end
21.9
10
(translation_unit) "//\n// IGUIQueryTests.h\n// IGUIQueryTests\n//\n// Created by <NAME> on 13年8月13日.\n// Copyright (c) 2013年 Ignition Soft. All rights reserved.\n//\n\n#import <SenTestingKit/SenTestingKit.h>\n\n@interface IGUIQueryTests : SenTestCase\n\n@end\n" (comment) "//" (comment) "// IGUIQueryTests.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.9, "nodes": 10, "errors": 0, "source_hash": "e54cb372c4c65a8747ae9da697ad36d1abfd6481bbed906af588dcd0388f4d1c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<SenTesting...
14,725
c
#include "pcShared.h" extern const char* pcStatic(void); int main() { pcStatic(); pcShared(); return 0; }
13
8
(translation_unit) "#include "pcShared.h"\nextern const char* pcStatic(void);\nint main()\n{\n pcStatic();\n pcShared();\n return 0;\n}\n" (preproc_include) "#include "pcShared.h"\n" (#include) "#include" (string_literal) ""pcShared.h"" (") """ (string_content) "pcShared.h" (") """ (dec...
51
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.0, "nodes": 27, "errors": 0, "source_hash": "86c088a7d0d3651e57d3018c505b7192bd2460356eb3e6d618fcbeaa89a83860", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
14,726
c
#pragma once namespace mpi4cpp { namespace mpi { class status { public: status() : m_count(-1) { } status(MPI_Status const& s) : m_status(s), m_count(-1) {} /** * Retrieve the source of the message. */ int source() const { return m_status.MPI_SOURCE; } /** * Retrieve the message tag. */ ...
24.84
61
(translation_unit) "#pragma once\n\n\nnamespace mpi4cpp { namespace mpi {\n\nclass status \n{\n public:\n\n status() : m_count(-1) { }\n\n status(MPI_Status const& s) : m_status(s), m_count(-1) {}\n\n /**\n * Retrieve the source of the message.\n */\n int source() const { return m_status.MPI_SOURCE; }\n\n /**...
233
16
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 24.84, "nodes": 110, "errors": 0, "source_hash": "e3eeecf147d0a4992c839a493d1aca4a2b207742569396b40016b91448fd8312", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,727
c
#pragma once #include <vector> #include "renderer/common.h" namespace estun { class Instance; class ValidationLayers { private: VkDebugUtilsMessengerEXT debugMessenger; #ifdef NDEBUG static const bool enableValidationLayers = false; #else static const bool enableValidationLayers = true; #endif std...
35.63
46
(translation_unit) "#pragma once\n\n#include <vector>\n#include "renderer/common.h"\n\nnamespace estun\n{\n\nclass Instance;\n\nclass ValidationLayers\n{\nprivate:\n VkDebugUtilsMessengerEXT debugMessenger;\n\n#ifdef NDEBUG\n static const bool enableValidationLayers = false;\n#else\n static const bool enableVa...
353
10
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.63, "nodes": 217, "errors": 0, "source_hash": "57f21e8d1d37a9cf1b9579901e21a6f47abaf7e1e7bfd747b6f662d8a48579fc", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,728
c
/* ionstart.c: Helper code to start ION from C. */ #include <bp.h> #include <rfx.h> #include <ltp.h> #include "check.h" #include "testutil.h" void _xadmin(const char *xadmin, const char *path_prefix, const char *xrc) { char cmdline[256]; int pid; if (path_prefix == NULL) { path_prefix = get_co...
24.02
40
(translation_unit) "/*\n\n ionstart.c: Helper code to start ION from C.\n\n */\n\n#include <bp.h>\n#include <rfx.h>\n#include <ltp.h>\n#include "check.h"\n#include "testutil.h"\n\nvoid _xadmin(const char *xadmin, const char *path_prefix, const char *xrc)\n{\n char cmdline[256];\n int pid;\n\n if (path_pref...
324
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.02, "nodes": 182, "errors": 0, "source_hash": "aff8ee21afab46f1bac98213cbbe128b41ef2977f42b4367166fdfd7ec6d5417", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,729
c
// // TaskLableCollectionViewCell.h // tomato // // Created by 刘子祺 on 2020/4/8. // Copyright © 2020 刘子祺. All rights reserved. // #import <UIKit/UIKit.h> #import "Tasks.h" NS_ASSUME_NONNULL_BEGIN @protocol TaskViewCellDelegate <NSObject> - (void)collectionViewCell:(UICollectionViewCell *)collectionViewCell click...
37.63
30
(translation_unit) "//\n// TaskLableCollectionViewCell.h\n// tomato\n//\n// Created by 刘子祺 on 2020/4/8.\n// Copyright © 2020 刘子祺. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Tasks.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol TaskViewCellDelegate <NSObject>\n\n- (void)collectionViewCell:(UICollection...
272
38
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 37.63, "nodes": 191, "errors": 0, "source_hash": "23febe6e116d4e58ce9a13216e40bf32282d7b158cd249d2490c6ad972982e2d", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit...
14,730
c
#include <stdio.h> // printf #include <stdlib.h> // strtoll #include <string.h> // strcmp /** * Whether to read literals that specify a radix * * see: https://en.wikipedia.org/wiki/Smalltalk#Literals for more info * * Examples: * 2r01010 // same as binary (radix 2) * 16rABCDEF // same as hexadecimal (radix...
27.56
106
(translation_unit) "#include <stdio.h> // printf\n#include <stdlib.h> // strtoll\n#include <string.h> // strcmp\n\n/**\n * Whether to read literals that specify a radix\n *\n * see: https://en.wikipedia.org/wiki/Smalltalk#Literals for more info\n * \n * Examples:\n * 2r01010 // same as binary (radix 2)\n * 16rABCDE...
810
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 27.56, "nodes": 337, "errors": 0, "source_hash": "71230226e72373b23c881f6c6cf5905a0dfc0c560d920e8cdd4956af72dae85d", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,731
c
#ifndef FPVMEMBER_H #define FPVMEMBER_H #include <QObject> //#include "fpvdatamutual.h" #include "QGC.h" #if defined(Q_OS_WIN32) class LibUsb; #else class UsbExample; #endif class FpvMember : public QObject { Q_OBJECT MMC_GENERATE_QML_PROPERTY(pairStatus, bool, "pairStatus") MMC_GENERATE_QML_PROP...
22.58
31
(translation_unit) "#ifndef FPVMEMBER_H\n#define FPVMEMBER_H\n\n#include <QObject>\n//#include "fpvdatamutual.h"\n#include "QGC.h"\n\n#if defined(Q_OS_WIN32)\n class LibUsb;\n#else\n class UsbExample;\n#endif\n\nclass FpvMember : public QObject\n{\n Q_OBJECT\n MMC_GENERATE_QML_PROPERTY(pairStatus, bool, "pa...
180
14
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.58, "nodes": 117, "errors": 0, "source_hash": "ce13680daf85f4f1463fc4da85524c6da3dc40cc1ab8fe8b37f30c1a05e404f6", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,732
c
/*XHCI for Hi3536*/ #define HIUSB_XHCI_BASE 0x11040000 #define PERI_CRG46 (0x12040000 + 0xb8) #define USB3_VCC_SRST_REQ2 (1 << 13) #define USB3_PHY_SRST_REQ2 (1 << 3) #define USB3_PHY_REF_CKEN (1 << 0) #define GTXTHRCFG 0xC108 #define USB_TXPKTCNT_SEL (1 << 29) #define USB_TXPKTCNT (3 << 24) #define USB_MAX_TXBUTS...
29.33
116
(translation_unit) "/*XHCI for Hi3536*/\n#define HIUSB_XHCI_BASE 0x11040000\n#define PERI_CRG46 (0x12040000 + 0xb8)\n#define USB3_VCC_SRST_REQ2 (1 << 13)\n#define USB3_PHY_SRST_REQ2 (1 << 3)\n#define USB3_PHY_REF_CKEN (1 << 0)\n\n#define GTXTHRCFG 0xC108\n#define USB_TXPKTCNT_SEL (1 << 29)\n#define USB_TXPKTCNT (3 ...
867
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 29.33, "nodes": 564, "errors": 0, "source_hash": "031b58f7c3ac822aa000b394fb9befedc73ba082d0d0c00dc0c9ae0b487c09fd", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
14,733
c
// Copyright 2015 The Crashpad Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
44.55
55
(translation_unit) "// Copyright 2015 The Crashpad Authors. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0...
276
10
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 44.55, "nodes": 157, "errors": 0, "source_hash": "6e5273edbd9061444d453c7c739caab7bf923d63b59ba4e19e511bdd3c4f0b29", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,734
c
// // CJAmuseMenuView.h // CJ-DouYuZhiBo // // Created by <NAME> on 16/11/10. // Copyright © 2016年 ChenJun. All rights reserved. // #import <UIKit/UIKit.h> @interface CJAmuseMenuView : UIView @property (nonatomic, strong) NSMutableArray *anchorGroups; + (CJAmuseMenuView *)amuseMenuView; @end
20.36
14
(translation_unit) "//\n// CJAmuseMenuView.h\n// CJ-DouYuZhiBo\n//\n// Created by <NAME> on 16/11/10.\n// Copyright © 2016年 ChenJun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CJAmuseMenuView : UIView\n\n\n\n@property (nonatomic, strong) NSMutableArray *anchorGroups;\n+ (CJAmuseMenuView *)amu...
50
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 31, "errors": 0, "source_hash": "fd09a89461a11501ec49cde5dd0114017aa37501a152887cf771ab65cbb8e14d", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,735
c
/** * @file h3_i2c.h * */ /* Copyright (C) 2018-2019 by <NAME> mailto:<EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
36
49
(translation_unit) "/**\n * @file h3_i2c.h\n *\n */\n/* Copyright (C) 2018-2019 by <NAME> mailto:<EMAIL>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, includi...
172
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.0, "nodes": 127, "errors": 0, "source_hash": "6fc3de8e06d0bd0f4d1df4b6a7cea628e91716a311d45ecd2fdae2ee8376d0f3", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,736
c
#pragma once namespace alica { struct RoleSwitch { int64_t roleID; }; } /* namespace alica */
11.25
8
(translation_unit) "#pragma once\n\nnamespace alica\n{\nstruct RoleSwitch\n{\n int64_t roleID;\n};\n\n} /* namespace alica */\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace alica\n{\nstruct RoleSwitch\n{\n int64_t roleID;\n};\n\n}...
22
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 11.25, "nodes": 12, "errors": 0, "source_hash": "c9f4f9259d069070701adf806ce2c9da650a8b331ccbf1edc7c592c59e9bdc00", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
14,737
c
// // DrawIconView.h // NodeTree // // Created by <NAME> on 15/12/3. // Copyright © 2015年 wzbwan. All rights reserved. // #import <UIKit/UIKit.h> @interface DrawIconView : UIView @property(nonatomic, strong)NSArray* lines; - (void)getLines:(NSArray*)lines; @end
21.17
12
(translation_unit) "//\n// DrawIconView.h\n// NodeTree\n//\n// Created by <NAME> on 15/12/3.\n// Copyright © 2015年 wzbwan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DrawIconView : UIView\n@property(nonatomic, strong)NSArray* lines;\n- (void)getLines:(NSArray*)lines;\n@end\n" (comment) "//"...
56
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.17, "nodes": 34, "errors": 0, "source_hash": "69ed00d17fd7e6dbf0113264baf444fcd0baff41de7d7a2b5cbcbec4c64eb00f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,738
c
#pragma once #ifndef _MINUS_H #define _MINUS_H #include "operator.h" class Minus: public Operator { public: Minus(std::string op); ~Minus(); public: int operate(int operand1, int operand2); }; #endif
15.62
13
(translation_unit) "#pragma once\n#ifndef _MINUS_H\n#define _MINUS_H\n\n#include "operator.h"\n\nclass Minus: public Operator\n{\npublic:\n Minus(std::string op);\n ~Minus();\n\npublic: \n int operate(int operand1, int operand2);\n};\n\n#endif" (preproc_call) "#pragma once\n" (preproc_directive) "#pra...
73
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.62, "nodes": 43, "errors": 0, "source_hash": "4defa001fbc0a124f59094a1a764c2a04f984c2d5b2ff51ab42e0e1d31e7362b", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,739
c
// // LFMenuItem.h // LFMenuView // // Created by Mac on 2018/7/4. // Copyright © 2018年 Mac. All rights reserved. // #import <UIKit/UIKit.h> @interface LFMenuItem : UIView - (instancetype)initWithIconName:(NSString *)iconName title:(NSString *)title; - (void)setUpViewsWithRect:(CGRect)rect; @end
24.08
12
(translation_unit) "//\n// LFMenuItem.h\n// LFMenuView\n//\n// Created by Mac on 2018/7/4.\n// Copyright © 2018年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LFMenuItem : UIView\n\n- (instancetype)initWithIconName:(NSString *)iconName title:(NSString *)title;\n\n- (void)setUpViewsWithRect:...
66
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.08, "nodes": 38, "errors": 0, "source_hash": "a0b33892edfe6487d06f44b0b7f2dc4785340543862c154a2af37ee1d5157df3", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,740
c
#ifndef CPGF_GSCRIPTBIND_H #define CPGF_GSCRIPTBIND_H #include "cpgf/scriptbind/gscriptbindapi.h" #include "cpgf/scriptbind/gscriptvalue.h" #include "cpgf/scriptbind/gscriptconfig.h" #include "cpgf/gmetaapiutil.h" #include "cpgf/gsharedinterface.h" #include "cpgf/gclassutil.h" #include "cpgf/gdeprecated.h...
32.31
193
(translation_unit) "#ifndef CPGF_GSCRIPTBIND_H \n#define CPGF_GSCRIPTBIND_H \n \n \n#include "cpgf/scriptbind/gscriptbindapi.h" \n#include "cpgf/scriptbind/gscriptvalue.h" \n#include "cpgf/scriptbind/gscriptconfig.h" \n \n#include "cpgf/gmetaapiutil.h" \n#include "cpgf/gsharedinterface.h" \n#include "cpgf/gclassutil.h"...
1,497
73
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 32.31, "nodes": 930, "errors": 0, "source_hash": "7ceb11fe92e6deb9d9afd2b1b6e930a443c6729d0d3674106334f7e79bf37c03", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,741
c
/** * @file parser.h * @author <NAME> * @brief Holds the blueprints for the different functions related to the parser * @date 2021-11-30 * * @copyright Copyright (c) 2021 * */ #ifndef PARSER_H #define PARSER_H void parseSpace(char*, char**); int processInput(char*, char**); #endif
18.53
15
(translation_unit) "/**\n * @file parser.h\n * @author <NAME>\n * @brief Holds the blueprints for the different functions related to the parser\n * @date 2021-11-30\n * \n * @copyright Copyright (c) 2021\n * \n */\n\n#ifndef PARSER_H\n#define PARSER_H\n\n\nvoid parseSpace(char*, char**);\nint processInput(char*, char**...
47
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.53, "nodes": 37, "errors": 0, "source_hash": "f365a4c9cf2e942770c5c492f5be590ee0e1b8f2fb5a7db1a3fac6527cc108a3", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,742
c
// Copyright 2019 The Chromium OS 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 POWER_MANAGER_POWERD_SYSTEM_CROS_EC_IOCTL_H_ #define POWER_MANAGER_POWERD_SYSTEM_CROS_EC_IOCTL_H_ #include <fcntl.h> #include <sys/ioctl.h> #...
34.99
72
(translation_unit) "// Copyright 2019 The Chromium OS 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 POWER_MANAGER_POWERD_SYSTEM_CROS_EC_IOCTL_H_\n#define POWER_MANAGER_POWERD_SYSTEM_CROS_EC_IOCTL_H_\n\n#include <fcntl.h...
569
36
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.99, "nodes": 341, "errors": 0, "source_hash": "529c19d5fafb356f8c5f1a9fe17c6f583d8c37adcd96a2df4a0bdd367ba3d986", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef POWER_...
14,743
c
/*********************************************************************** This component implements Ten's compiler, which consists of the parser and somewhat high level code generation, which is augmented by the lower level code generator implemented in `ten_gen.*`. The compiler does everything in a single pass, and cu...
27.03
29
(translation_unit) "/***********************************************************************\nThis component implements Ten's compiler, which consists of the\nparser and somewhat high level code generation, which is augmented\nby the lower level code generator implemented in `ten_gen.*`. The\ncompiler does everything ...
118
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.03, "nodes": 83, "errors": 0, "source_hash": "8815958a1551a42a929d65a6c294c947cbda97a7a94bb6f12d187aff774a08f9", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,744
c
#ifndef _AGCCP_H_ #define _AGCCP_H_ template <class T> class CProxy_IAGCGameEvents : public IConnectionPointImpl<T, &DIID__IAGCGameEvents, CComDynamicUnkArray> { //Warning this class may be recreated by the wizard. public: }; template <class T> class CProxy_IAGCShipEvents : public IConnectionPointImpl<T, &DIID__IA...
27.32
75
(translation_unit) "#ifndef _AGCCP_H_\n#define _AGCCP_H_\n\ntemplate <class T>\nclass CProxy_IAGCGameEvents : public IConnectionPointImpl<T, &DIID__IAGCGameEvents, CComDynamicUnkArray>\n{\n //Warning this class may be recreated by the wizard.\npublic:\n};\n\n\ntemplate <class T>\nclass CProxy_IAGCShipEvents : public I...
617
26
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.32, "nodes": 385, "errors": 0, "source_hash": "4f636848294fe50032bf9b6b2b92a4d576c4f7c0b8b325de8a0048a5d1b4e1d4", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,745
c
// Copyright 2019 Shift Cryptosecurity AG // // 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 ...
39.88
50
(translation_unit) "// Copyright 2019 Shift Cryptosecurity AG\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...
221
6
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 39.88, "nodes": 157, "errors": 0, "source_hash": "b3e745ca49e10bbc697516dcc4474b579914fd7e14e25a5cdfc1f3eedcfb2ae2", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,746
c
#ifndef __NS_MATH_H__ #define __NS_MATH_H__ #include <nsconfigure.h> #include <math/nsaabbox.h> #include <math/nsaabboxdecls.h> #include <math/nscircle.h> #include <math/nscircledecls.h> #include <math/nsconv.h> #include <math/nsconvdecls.h> #include <math/nscube.h> #include <math/nscubedecls.h> #include...
26.44
41
(translation_unit) "#ifndef __NS_MATH_H__ \n#define __NS_MATH_H__ \n \n#include <nsconfigure.h> \n \n#include <math/nsaabbox.h> \n#include <math/nsaabboxdecls.h> \n#include <math/nscircle.h> \n#include <math/nscircledecls.h> \n#include <math/nsconv.h> \n#include <math/nsconvdecls.h> \n#include <math/nscube.h> \n#includ...
114
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.44, "nodes": 112, "errors": 0, "source_hash": "891e89f332f7c932a36360b324924fb602cecd6f0372ae2c1f91466e4eb769f7", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,747
c
//**************************************** //**************************************** //***** GLOBAL DATA TYPE DEFINITIONS ***** //**************************************** //**************************************** #ifndef GLOBAL_DATA_TYPE_INIT //(Include this section only once for each source file) #define GLOB...
26.47
96
(translation_unit) "//****************************************\n//****************************************\n//***** GLOBAL DATA TYPE DEFINITIONS *****\n//****************************************\n//****************************************\n\n#ifndef GLOBAL_DATA_TYPE_INIT //(Include this section only once for each...
387
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 26.47, "nodes": 276, "errors": 0, "source_hash": "fa487d7fa5e3fb79d5df820e43c9e26eb12334bc6a919410327092b550596cde", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,748
c
// // SDLWindowTypeCapabilities.h // SmartDeviceLink #import "SDLRPCStruct.h" #import "SDLWindowType.h" NS_ASSUME_NONNULL_BEGIN /** Used to inform an app how many window instances per type that can be created. @since SDL 6.0 */ @interface SDLWindowTypeCapabilities : SDLRPCStruct /** Init with required param...
24.66
32
(translation_unit) "//\n// SDLWindowTypeCapabilities.h\n// SmartDeviceLink\n\n#import "SDLRPCStruct.h"\n#import "SDLWindowType.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n Used to inform an app how many window instances per type that can be created.\n \n @since SDL 6.0\n */\n@interface SDLWindowTypeCapabilities : SDLRPCStr...
89
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 24.66, "nodes": 58, "errors": 0, "source_hash": "bf65fd4c2d381248eba39a24483210905126c1fb57e7ecc25b3b8b077e619f44", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
14,749
c
#pragma once struct FBO { unsigned int handle; void Bind(); static void UnBind(); }; struct RBO { unsigned int handle; void Bind(); };
10.67
12
(translation_unit) "#pragma once\n\nstruct FBO\n{\n unsigned int handle;\n void Bind();\n static void UnBind();\n};\n\nstruct RBO\n{\n unsigned int handle;\n void Bind();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (struct_specifier) "struct FBO\n{\n unsigned int ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 10.67, "nodes": 34, "errors": 0, "source_hash": "c77b1d4cfe07b6259efb571b02aac24b39374bec3f6f56c2e56db7fa3b53e73d", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,750
c
/* * Copyright (C) 2014 Valve Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, p...
34.07
149
(translation_unit) "/*\n * Copyright (C) 2014 Valve Corporation\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to u...
1,264
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 34.07, "nodes": 757, "errors": 0, "source_hash": "dc83e098001307784a6cbeaa4f86dd338cd56c3b38a114a3d8531120ca8876de", "categorized_nodes": 585}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,751
c
#include <CPoint4D.h> class CGLTextureGen { private: bool senabled_; bool tenabled_; bool renabled_; bool qenabled_; uint smode_; uint tmode_; uint rmode_; uint qmode_; CPoint4D sobject_plane_; CPoint4D tobject_plane_; CPoint4D robject_plane_; CPoint4D qobject_plane_; CPoint4D seye_plane_...
29
42
(translation_unit) "#include <CPoint4D.h>\n\nclass CGLTextureGen {\n private:\n bool senabled_;\n bool tenabled_;\n bool renabled_;\n bool qenabled_;\n\n uint smode_;\n uint tmode_;\n uint rmode_;\n uint qmode_;\n\n CPoint4D sobject_plane_;\n CPoint4D tobject_plane_;\n CPoint4D robject_plane_;\n CPoint4D qo...
316
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 29.0, "nodes": 195, "errors": 0, "source_hash": "b618d7495378095da7c90410ca9dc87ce29565760b8be8d45f00c80a4c87aced", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,752
c
#ifndef HEADERONLY_H #define HEADERONLY_H /// Make sure HEADERONLY is either nothing or the keyword "inline" #ifdef HEADERONLY #undef HEADERONLY_INLINE #define HEADERONLY_INLINE inline #else #undef HEADERONLY_INLINE #define HEADERONLY_INLINE #endif #endif
23.45
11
(translation_unit) "#ifndef HEADERONLY_H\n#define HEADERONLY_H\n\n/// Make sure HEADERONLY is either nothing or the keyword "inline"\n#ifdef HEADERONLY\n #undef HEADERONLY_INLINE\n #define HEADERONLY_INLINE inline\n#else\n #undef HEADERONLY_INLINE\n #define HEADERONLY_INLINE\n#endif\n\n#endif\n" (preproc_ifd...
28
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.45, "nodes": 26, "errors": 0, "source_hash": "ee19bed6c6f1e265fef5b2d1521b338b07932acc622c93061f3a0080975b8c07", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,753
c
/* ** Debug agent which prints out the metrics it receives on the unix socket ** Compile with: gcc -W -Wall -Wextra -lmonikor dumper.c -o dumper ** Run with: ./dumper /path/to/unix.sock ** Do not forget to update quanta_mon.ini accordingly. */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string...
28.45
87
(translation_unit) "/*\n** Debug agent which prints out the metrics it receives on the unix socket\n** Compile with: gcc -W -Wall -Wextra -lmonikor dumper.c -o dumper\n** Run with: ./dumper /path/to/unix.sock\n** Do not forget to update quanta_mon.ini accordingly.\n*/\n\n#include <stdlib.h>\n#include <stdio.h>\n#includ...
704
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.45, "nodes": 422, "errors": 0, "source_hash": "e28975f4f0ff4dcebb03bc5a542c17e42610b1a9bf708751282c50d6bf062f56", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,754
c
// // NLObject.h // Neverland // // Created by <NAME> on 2019/11/1. // Copyright © 2019年 BinaryParadise. All rights reserved. // #import <Foundation/Foundation.h> #import <MCFoundation/MCFoundation.h> #import <NLUtility/NLNSDate.h> #import <MCJSONKit/MCJSONKit.h> NS_ASSUME_NONNULL_BEGIN /** 基础对象 */ @interface ...
19.55
55
(translation_unit) "//\n// NLObject.h\n// Neverland\n//\n// Created by <NAME> on 2019/11/1.\n// Copyright © 2019年 BinaryParadise. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <MCFoundation/MCFoundation.h>\n#import <NLUtility/NLNSDate.h>\n#import <MCJSONKit/MCJSONKit.h>\n\nNS_ASSUME_NONNULL...
185
12
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 19.55, "nodes": 119, "errors": 0, "source_hash": "1c979262eceba6535f13eda4a0e4d93ea36faf52ef2c29428be5e908612445bb", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
14,755
c
/// /// @file /// @copyright Copyright (c) 2021. All Rights Reserved. /// #ifndef PLANNING_DATATYPES_LANE_H #define PLANNING_DATATYPES_LANE_H #include <cstdint> #include <ostream> #include <string> namespace planning { /// @brief LaneInformation struct LaneInformation { /// @brief LaneId enum class LaneId : s...
28.16
115
(translation_unit) "///\n/// @file\n/// @copyright Copyright (c) 2021. All Rights Reserved.\n///\n#ifndef PLANNING_DATATYPES_LANE_H\n#define PLANNING_DATATYPES_LANE_H\n\n#include <cstdint>\n#include <ostream>\n#include <string>\n\nnamespace planning\n{\n/// @brief LaneInformation\nstruct LaneInformation\n{\n /// @br...
867
74
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 28.16, "nodes": 472, "errors": 0, "source_hash": "84a2c309d539b2c3dffc22cbc07402d09391dd104e5f16c74f530ad40d3c8753", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,756
c
#include <meta/tool/Convert.h> #include <meta/tool/Meta.h> #include <meta/tool/Module.h>
28.67
3
(translation_unit) "#include <meta/tool/Convert.h>\n#include <meta/tool/Meta.h>\n#include <meta/tool/Module.h>\n\n" (preproc_include) "#include <meta/tool/Convert.h>\n" (#include) "#include" (system_lib_string) "<meta/tool/Convert.h>" (preproc_include) "#include <meta/tool/Meta.h>\n" (#include) "#includ...
10
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 28.67, "nodes": 9, "errors": 0, "source_hash": "c09124a12825ff8b3e81377852717b4e0e3386c48481fbdf2d20069eda9abfb0", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
14,757
c
// // Bbox.h // BboxSecondScreen // // Created by <NAME> on 20/05/2014. // Copyright (c) 2014 Bouygues Telecom. All rights reserved. // #import <Foundation/Foundation.h> #import "BSSRemoteManager.h" #import "BSSApplicationsManager.h" #import "BSSBboxRestClient.h" #import "BSSNotificationsManager.h" #import "BSSCo...
23.47
47
(translation_unit) "//\n// Bbox.h\n// BboxSecondScreen\n//\n// Created by <NAME> on 20/05/2014.\n// Copyright (c) 2014 Bouygues Telecom. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "BSSRemoteManager.h"\n#import "BSSApplicationsManager.h"\n#import "BSSBboxRestClient.h"\n#import "BSSNotif...
124
19
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.47, "nodes": 85, "errors": 0, "source_hash": "2c8777dde872ca06f96f55592ec9965ab1da6a806ca3341e26019ce7f15caf41", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,758
c
#include "Vec.h" #include "Vec_algorithm.h" #include <stdio.h> void basic_test() { printf("--- basic_test ---\n"); VectorInt intVec; vec_init(&intVec); printf("Is the initialized vector empty -> %s\n", (vec_empty(&intVec) ? "Yes" : "No")); for (unsigned int i = 0; i < 25; ++i) vec_push_back(&in...
29.76
274
(translation_unit) "#include "Vec.h"\n#include "Vec_algorithm.h"\n#include <stdio.h>\n\nvoid basic_test() {\n printf("--- basic_test ---\n");\n VectorInt intVec;\n\n vec_init(&intVec);\n printf("Is the initialized vector empty -> %s\n",\n (vec_empty(&intVec) ? "Yes" : "No"));\n for (unsigned int i = 0; i <...
3,457
0
{"language": "c", "success": true, "metadata": {"lines": 274, "avg_line_length": 29.76, "nodes": 1820, "errors": 0, "source_hash": "426c0cb729e4c9bb803f7b95cdc595b5cfc21beccd0d000ba6a27b13b6881ef5", "categorized_nodes": 1297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,759
c
// // QuoteVC.h // futures // // Created by Ssiswent on 2020/5/11. // Copyright © 2020 Francis. All rights reserved. // #import <UIKit/UIKit.h> #import "ContentBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface ZZHQuotesVC : ContentBaseViewController @end NS_ASSUME_NONNULL_END
21.15
13
(translation_unit) "//\n// QuoteVC.h\n// futures\n//\n// Created by Ssiswent on 2020/5/11.\n// Copyright © 2020 Francis. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ContentBaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZZHQuotesVC : ContentBaseViewController\n\n@end\n\nNS_ASSUME_NO...
30
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.15, "nodes": 16, "errors": 0, "source_hash": "58072057074973bf5635312e9992c99c2e82798a24c736d5e2cba1041b1bd1c4", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
14,760
c
#define SO_NAME "rstdlib.so" #define API_VER 1 #include <virtual-machine.h> #include <nt_malloc.h> r3x_cpu_t* CPU; typedef struct { FILE** FilePointers; unsigned int TotalPointers; } r_FileList; r_FileList* FileList; void Start(r3x_cpu_t* _CPU) { CPU = _CPU; nt_malloc_init(false); FileList = nt_malloc(sizeof(r...
31.18
142
(translation_unit) "#define SO_NAME "rstdlib.so"\n#define API_VER 1\n#include <virtual-machine.h>\n#include <nt_malloc.h>\n\nr3x_cpu_t* CPU;\n\ntypedef struct {\n FILE** FilePointers;\n unsigned int TotalPointers;\n} r_FileList;\n\nr_FileList* FileList;\n\nvoid Start(r3x_cpu_t* _CPU) {\n CPU = _CPU;\n nt_malloc_init(fa...
1,832
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 31.18, "nodes": 1136, "errors": 0, "source_hash": "39701c4fc0fee9cb00146c95e7d752ccd1f59b43b9f449059ab9a6de9c9fb99e", "categorized_nodes": 723}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
14,761
c
// Copyright (c) 2020-present, HexHacking Team. All rights reserved. // Copyright (c) 2019, iQIYI, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without rest...
35.79
219
(translation_unit) "// Copyright (c) 2020-present, HexHacking Team. All rights reserved.\n// Copyright (c) 2019, iQIYI, Inc. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in ...
1,792
0
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 35.79, "nodes": 1118, "errors": 0, "source_hash": "a5c34f6d9516c113275b2307151d207d419ee2c3838bbcab041d1d6932380575", "categorized_nodes": 761}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,762
c
// // Framework for a raytracer // File: object.h // // Created for the Computer Science course "Introduction Computer Graphics" // taught at the University of Groningen by <NAME>. // // Authors: // <NAME> // <NAME> // // This framework is inspired by and uses code of the raytracer framework of // Bert Fr...
28.53
34
(translation_unit) "//\n// Framework for a raytracer\n// File: object.h\n//\n// Created for the Computer Science course "Introduction Computer Graphics"\n// taught at the University of Groningen by <NAME>.\n//\n// Authors:\n// <NAME>\n// <NAME>\n//\n// This framework is inspired by and uses code of the rayt...
187
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 28.53, "nodes": 109, "errors": 0, "source_hash": "7c9393b82862d74c6e211f3a4919196764b3368ca583f34cc2c41fae7760e5ce", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,763
c
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
31.83
193
(translation_unit) "/*\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in th...
1,637
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 31.83, "nodes": 940, "errors": 0, "source_hash": "6093e7670cf4010d53f7a09329d0e2ec0d467766cb88fdd18635c502a5fff796", "categorized_nodes": 681}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,764
c
/******************************************************************************************************** * @file aes_ccm.h * * @brief This is the header file for BLE SDK * * @author BLE GROUP * @date 2020.06 * * @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") * * Li...
31.41
153
(translation_unit) "/********************************************************************************************************\n * @file aes_ccm.h\n *\n * @brief This is the header file for BLE SDK\n *\n * @author BLE GROUP\n * @date 2020.06\n *\n * @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ...
489
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 31.41, "nodes": 325, "errors": 0, "source_hash": "66bfaa2a229287cbcf6e6c48d55f0947605aa3e307eac238c7f9aff0f3fc7c3c", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,765
c
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include "define.h" #include <string.h> #include <dirent.h> //#include <unistd.h> //#include <windows.h> #include <time.h>
16.64
11
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <malloc.h> \n#include "define.h" \n#include <string.h> \n#include <dirent.h> \n \n//#include <unistd.h> \n//#include <windows.h> \n \n#include <time.h>" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "...
27
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.64, "nodes": 21, "errors": 0, "source_hash": "b376a11d96202856c6bca94c7fd81025da84651798b0d37a67a3b9b2a1984f69", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,766
c
#include <bsp.h> #include "test.h" TEST( hpmove_payload_null, abort("bsp_hpmove: pointer arugments may not be NULL") ) { void * tag; bsp_begin(bsp_nprocs()); bsp_send((bsp_pid() + 1) % bsp_nprocs(), NULL, NULL, 0); bsp_sync(); bsp_hpmove( &tag, NULL ); bsp_end(); }
23.67
12
(translation_unit) "#include <bsp.h>\n#include "test.h"\n\nTEST( hpmove_payload_null,\n abort("bsp_hpmove: pointer arugments may not be NULL") )\n{\n void * tag;\n bsp_begin(bsp_nprocs());\n\n bsp_send((bsp_pid() + 1) % bsp_nprocs(), NULL, NULL, 0);\n\n bsp_sync();\n\n bsp_hpmove( &tag, NULL );\n\n ...
109
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.67, "nodes": 58, "errors": 0, "source_hash": "110889c5bb3ff2260ba9c11f364bd6d12d2a06bbb50082a1d8cca778704eb089", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,767
c
/*====================================================================== Device driver for the PCMCIA control functionality of StrongARM SA-1100 microprocessors. The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in com...
33.13
222
(translation_unit) "/*======================================================================\n\n Device driver for the PCMCIA control functionality of StrongARM\n SA-1100 microprocessors.\n\n The contents of this file are subject to the Mozilla Public\n License Version 1.1 (the "License"); you may not use t...
1,608
2
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 33.13, "nodes": 998, "errors": 0, "source_hash": "044174d1fcb81bcbd9facd3fbb5d4311d56fb29e7d0a8c93f12519b53d7c32a5", "categorized_nodes": 778}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,768
c
#ifndef __UTIL_RDTSC__ #define __UTIL_RDTSC__ #include <stdlib.h> #include <stdint.h> #include <stdio.h> typedef struct { uint32_t l; uint32_t h; } rdtsc_timeval_t; typedef struct{ rdtsc_timeval_t t1; rdtsc_timeval_t t2; } mytimer_t; uint64_t inline getCycles (rdtsc_timeval_t t){ return ( ((uint64_t)t.h<<32) |...
25.92
155
(translation_unit) "#ifndef __UTIL_RDTSC__\n#define __UTIL_RDTSC__\n\n#include <stdlib.h>\n#include <stdint.h>\n#include <stdio.h>\n\ntypedef struct {\n uint32_t l;\n uint32_t h;\n} rdtsc_timeval_t;\n\ntypedef struct{\n rdtsc_timeval_t t1;\n rdtsc_timeval_t t2;\n} mytimer_t;\n\nuint64_t inline getCycles (rdtsc_timeval_...
1,272
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 25.92, "nodes": 728, "errors": 0, "source_hash": "f19e26d40619e677cd15220f0d305445aed998eb6941bbadd4b9616c28d07e58", "categorized_nodes": 538}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,769
c
#pragma once #ifndef TYPES_H #define TYPES_H #include <vector> // [[Rcpp::depends(RcppArmadillo)]] typedef std::vector<std::vector<int>> Graph; #endif
20.57
7
(translation_unit) "#pragma once\n#ifndef TYPES_H\n#define TYPES_H\n\n#include <vector>\n// [[Rcpp::depends(RcppArmadillo)]]\n\ntypedef std::vector<std::vector<int>> Graph;\n\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef TYPES_H\n#defi...
32
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.57, "nodes": 25, "errors": 0, "source_hash": "6d0de68c7fe2408048da8cd522925d088f67c0397652a00019312dabce6bf75d", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,770
c
// // BagaBtn.h // test // // Created by LGH on 17/2/9. // Copyright © 2017年 LGH. All rights reserved. // #import <UIKit/UIKit.h> @interface BagaBtn : UIButton @end
15.9
10
(translation_unit) "//\n// BagaBtn.h\n// test\n//\n// Created by LGH on 17/2/9.\n// Copyright © 2017年 LGH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BagaBtn : UIButton\n\n@end\n" (comment) "//" (comment) "// BagaBtn.h" (comment) "// test" (comment) "//" (comment) "// Created by ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.9, "nodes": 12, "errors": 0, "source_hash": "a16cb7877b0f0b485ca846f2586a0e4ea4e835444e3c63d0cc48816c72d75427", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
14,771
c
// Copyright 1999, Be Incorporated. All Rights Reserved. // Copyright 2000-2004, <NAME>. All Rights Reserved. // Copyright 2007, <NAME>. All Rights Reserved. // This file may be used under the terms of the Be Sample Code License. #ifndef MEDIA_ENCODER_WINDOW_H #define MEDIA_ENCODER_WINDOW_H #include <Window.h> class...
29.45
22
(translation_unit) "// Copyright 1999, Be Incorporated. All Rights Reserved.\n// Copyright 2000-2004, <NAME>. All Rights Reserved.\n// Copyright 2007, <NAME>. All Rights Reserved.\n// This file may be used under the terms of the Be Sample Code License.\n#ifndef MEDIA_ENCODER_WINDOW_H\n#define MEDIA_ENCODER_WINDOW_H\n\n...
107
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.45, "nodes": 67, "errors": 0, "source_hash": "3b8892f4986d18f94dcb022f783abc4a16a23e2d506bc1524606916ef8e4a130", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,772
c
/* * Copyright (c) 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, dis...
34.51
188
(translation_unit) "/*\n * Copyright (c) 2016 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, m...
1,128
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 34.51, "nodes": 654, "errors": 0, "source_hash": "c55e283f76856d914350d5a35cfaebfaa04d941a8c1ead18068cf5bc2c1047d5", "categorized_nodes": 434}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,773
c
//如何计算一个复杂式子的结果 #include <stdio.h> #include <math.h> int main() { double y; y = sqrt((1 - cos(0.5)) / 2); printf("%g",y); return 0; }
15
10
(translation_unit) "//如何计算一个复杂式子的结果 \n \n#include <stdio.h> \n#include <math.h> \nint main() { \n double y; \n y = sqrt((1 - cos(0.5)) / 2); \n printf("%g",y); \n return 0; \n}" (comment) "//如何计算一个复杂式子的结果 \n \n#include <stdio.h> \n#in" (preproc_include) "de <math.h> \nint mai" (#include) "de <math" ...
64
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.0, "nodes": 35, "errors": 0, "source_hash": "073f294d86ec8f19d709ad077634ed417107c6aee192e0adb552d08095a516c6", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de <mat...
14,774
c
// Copyright 2020 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
31.83
36
(translation_unit) "// Copyright 2020 Open Source Robotics Foundation, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\...
165
2
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.83, "nodes": 83, "errors": 0, "source_hash": "4f626c3e648889a2e8eb72a5e5fe8d98acb6320d1e19ee51b70bd784b30bf319", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
14,775
c
#pragma once #include <string> #ifdef __linux__ #include "curl.h" #include "microhttpd.h" #elif _WIN32 extern "C" { #include "include\curl\curl.h" #include "include\mhttpd\microhttpd.h" } #endif namespace arrowhead { class HttpHandler { private: struct MHD_Daemon *pmhd = NULL; public: int sendRequest(std::stri...
25.54
26
(translation_unit) "#pragma once\n\n#include <string>\n#ifdef __linux__\n\n#include "curl.h"\n#include "microhttpd.h"\n\n#elif _WIN32\n\nextern "C" {\n#include "include\curl\curl.h"\n#include "include\mhttpd\microhttpd.h"\n}\n#endif\n\nnamespace arrowhead {\n\nclass HttpHandler\n{\nprivate:\n struct MHD_Daemon *pmhd = ...
230
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.54, "nodes": 152, "errors": 0, "source_hash": "a553500401fc1e06576c336021803b94366e8b2b7a8c5af54d246f0fcecc2dec", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,776
c
//<NAME> BD-11 #include <iostream> class Vector{ private: int size; int * vector = nullptr; public: Vector(int * p_matrix, int vect_size):vector(p_matrix), size(vect_size){}; int operator[](int pos) const{ if ((pos < size) && (pos >= 0)) return vector[pos]; else throw std::out_of_range(""...
22.71
104
(translation_unit) "//<NAME> BD-11\n\n#include <iostream>\n\nclass Vector{\n private:\n int size;\n int * vector = nullptr;\n public:\n Vector(int * p_matrix, int vect_size):vector(p_matrix), size(vect_size){};\n \n int operator[](int pos) const{\n if ((pos < size) && (pos >= 0))\n return vector[pos];\n el...
1,048
27
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 22.71, "nodes": 596, "errors": 0, "source_hash": "1bca053b795aa30e65fcd93f7127aaa67b5b858237948982d5faa2427aa5163b", "categorized_nodes": 403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,777
c
/********************* */ /*! \file theory_sets.h ** \verbatim ** Original author: <NAME> ** Major contributors: none ** Minor contributors (to current version): none ** This file is part of the CVC4 project. ** Copyright (c) 2009-2014 New York University an...
30.53
55
(translation_unit) "/********************* */\n/*! \file theory_sets.h\n ** \verbatim\n ** Original author: <NAME>\n ** Major contributors: none\n ** Minor contributors (to current version): none\n ** This file is part of the CVC4 project.\n ** Copyright (c) 2009-2...
262
9
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.53, "nodes": 151, "errors": 0, "source_hash": "68a6a59a50d65f6d70a16649a4f637fab1aa4079de7d1c4a5793469ceaa56178", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,778
c
#ifndef KWP_h #define KWP_h #include <inttypes.h> #include <Arduino.h> #include "NewSoftwareSerial.h" #define ADR_Engine 0x01 // Engine #define ADR_Gears 0x02 // Auto Trans #define ADR_ABS_Brakes 0x03 #define ADR_Airbag 0x15 #define ADR_Dashboard 0x17 // Instruments #define ADR_Immobilizer 0x25 #define ADR_Central_l...
23.59
69
(translation_unit) "#ifndef KWP_h\n#define KWP_h\n\n#include <inttypes.h>\n#include <Arduino.h>\n#include "NewSoftwareSerial.h"\n\n#define ADR_Engine 0x01 // Engine\n#define ADR_Gears 0x02 // Auto Trans\n#define ADR_ABS_Brakes 0x03\n#define ADR_Airbag 0x15\n#define ADR_Dashboard 0x17 // Instruments\n#define ADR_Immobi...
453
3
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 23.59, "nodes": 334, "errors": 0, "source_hash": "4f886a132e1220e8cfb16955665d2761dce903540680e528c8ed0b8a8c0be672", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,779
c
// // AMAudioDeviceClockSourceCellView.h // AudioMate // // Created by <NAME> on 3/4/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "AMCellView.h" @interface AMClockSourcePopUpButtonCellView : AMCellView @property (assign) IBOutlet NSPopUpButton *supportedClockSourcesPopUpButton; @end
27.09
11
(translation_unit) "//\n// AMAudioDeviceClockSourceCellView.h\n// AudioMate\n//\n// Created by <NAME> on 3/4/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import "AMCellView.h"\n\n@interface AMClockSourcePopUpButtonCellView : AMCellView\n\n@property (assign) IBOutlet NSPopUpButton *supportedClockS...
36
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.09, "nodes": 23, "errors": 0, "source_hash": "1920cb39798ebc8e2fd60e412ba6e0752fe33477850c11494227bcd75caa906c", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
14,780
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strlcpy.c :+: :+: :+: ...
35.89
35
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_strlcpy.c ...
199
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.89, "nodes": 119, "errors": 0, "source_hash": "e65a2f0ad6e772eaed6ccc24a8df3eb4f839c5f6bdf010d5e5449bff1dae5b82", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,781
c
void die(int value, const char* msg=NULL); void die_nonzero(int value, const char* msg=NULL);
46
2
(translation_unit) "void die(int value, const char* msg=NULL);\nvoid die_nonzero(int value, const char* msg=NULL);\n" (declaration) "void die(int value, const char* msg=NULL);" (primitive_type) "void" (init_declarator) "die(int value, const char* msg=NULL" (function_declarator) "die(int value, const cha...
51
2
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 46.0, "nodes": 34, "errors": 0, "source_hash": "f40ae84e707280f6155b09fbe9c2e757a94a0873a591c292aac0521483e114b1", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void die(int...
14,782
c
#ifndef __UTILS_H__ #define __UTILS_H__ #include <Arduino.h> bool validHex(const char * hexstring); void serialPrintHex(const uint8_t * buffer, const size_t size); int hexstringToBin(const char * hexstring, uint8_t * bin, size_t max_size); void binToHexstring(const uint8_t *bin, char * hexstring, size_t size); #endi...
38.88
8
(translation_unit) "#ifndef __UTILS_H__\n#define __UTILS_H__\n\n#include <Arduino.h>\n\nbool validHex(const char * hexstring);\nvoid serialPrintHex(const uint8_t * buffer, const size_t size);\nint hexstringToBin(const char * hexstring, uint8_t * bin, size_t max_size);\nvoid binToHexstring(const uint8_t *bin, char * hex...
97
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 38.88, "nodes": 69, "errors": 0, "source_hash": "814f205fa4ac6bd87b7f9036b6e04ff55ad500dd513588ce978d553da64ba788", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
14,783
c
/* * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 * <NAME> <<EMAIL>>. * * This file is part of JamVM. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2, * or ...
37.55
161
(translation_unit) "/*\n * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009\n * <NAME> <<EMAIL>>.\n *\n * This file is part of JamVM.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundati...
1,497
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 37.55, "nodes": 771, "errors": 0, "source_hash": "d870bf02e64b4479dd7ac6eb9bf5cbd5ad122d7dd6b170e47c8436c7f5cb8481", "categorized_nodes": 558}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,784
c
/* note #undef's at end of file */ #define NRANSI #include "nrutil.h" #define TOL 2.0e-4 #include <stdio.h> #include <stddef.h> #include <stdlib.h> #define NR_END 1 #define FREE_ARG char* int ncom; float *pcom,*xicom,(*nrfunc)(float []); void linmin(float p[], float xi[], int n, float *fret, float (*func)(float [])) ...
24.07
61
(translation_unit) "/* note #undef's at end of file */\n#define NRANSI\n#include "nrutil.h"\n#define TOL 2.0e-4\n#include <stdio.h>\n#include <stddef.h>\n#include <stdlib.h>\n#define NR_END 1\n#define FREE_ARG char*\n\nint ncom;\nfloat *pcom,*xicom,(*nrfunc)(float []);\n\nvoid linmin(float p[], float xi[], int n, float...
656
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 24.07, "nodes": 434, "errors": 0, "source_hash": "3d08bc0bc02e3085cf03cc641068c53c3f3ae8f4484dc11ca6d90e21a4dcfeca", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
14,785
c
// ImageDocument Class header #ifndef _IMAGE_DOCUMENT_ #define _IMAGE_DOCUMENT_ #include <string> #include <vector> #include "imgui.h" #include "SDL_Surface.h" #ifndef GLuint typedef unsigned int GLuint; /* 4-byte unsigned */ typedef float GLfloat; /* single precision float */ #endif enum PosterizeTargets { ePos...
24.44
95
(translation_unit) "// ImageDocument Class header\n#ifndef _IMAGE_DOCUMENT_\n#define _IMAGE_DOCUMENT_\n\n#include <string>\n#include <vector>\n\n#include "imgui.h"\n#include "SDL_Surface.h"\n\n#ifndef GLuint\ntypedef unsigned int GLuint; /* 4-byte unsigned */\ntypedef float GLfloat; /* single precision float */\n#end...
579
11
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 24.44, "nodes": 386, "errors": 0, "source_hash": "d98f98c0349e5a993f2f2554311f3a2829d9778a4e4b01e3071af44bcec19386", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,786
c
/*- * Copyright (c) 2010, 2011, 2012, 2013, Columbia University * All rights reserved. * * This software was developed by <NAME> <<EMAIL>> * at Columbia University, New York, NY, USA, in June 2010. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
36.63
163
(translation_unit) "/*-\n * Copyright (c) 2010, 2011, 2012, 2013, Columbia University\n * All rights reserved.\n *\n * This software was developed by <NAME> <<EMAIL>>\n * at Columbia University, New York, NY, USA, in June 2010.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification,...
732
2
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 36.63, "nodes": 505, "errors": 0, "source_hash": "46da18e8bb196f9eeefe1b7b2a07c5ca60a41d8242cf3e937b4a841af8c8b5a6", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,787
c
@import UIKit; #ifndef Color #define Color UIColor #endif @interface Color (Cabal) + (Color *)enact; + (Color *)revise; + (Color *)reject; + (Color *)lol; + (Color *)skip; @end
15.09
11
(translation_unit) "@import UIKit;\n\n#ifndef Color\n#define Color UIColor\n#endif\n\n@interface Color (Cabal)\n\n+ (Color *)enact;\n+ (Color *)revise;\n+ (Color *)reject;\n+ (Color *)lol;\n+ (Color *)skip;\n\n@end\n" (ERROR) "@" (ERROR) "@" (declaration) "import UIKit;" (type_identifier) "import" (iden...
89
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.09, "nodes": 61, "errors": 0, "source_hash": "18df9e0de8c56acf5165d753c17d997ac2324078ccbd14572157247530e8385a", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
14,788
c
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "fixed_grammar.asn" * `asn1c -gen-PER` */ #ifndef _IdleModeMobilityControlInfo_v9e0_H_ #define _IdleModeMobilityControlInfo_v9e0_H_ #include <asn_application.h> /* Including external dependencies ...
29.45
40
(translation_unit) "/*\n * Generated by asn1c-0.9.24 (http://lionet.info/asn1c)\n * From ASN.1 module "EUTRA-RRC-Definitions"\n * found in "fixed_grammar.asn"\n * `asn1c -gen-PER`\n */\n\n#ifndef _IdleModeMobilityControlInfo_v9e0_H_\n#define _IdleModeMobilityControlInfo_v9e0_H_\n\n\n#include <asn_application.h>\n\n/*...
105
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 29.45, "nodes": 71, "errors": 0, "source_hash": "2c877d28c21149d087b6ea2979246edc206b595fe73d5f585b38773309594825", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
14,789
c
#include "stdlib.h" #include "stdio.h" #include "/home/lillian/work/install_fpdebug/valgrind-3.7.0/fpdebug/fpdebug.h" #include <gsl/gsl_statistics.h> int main(int argc, const char * argv[]) { unsigned long int hexdouble; int a; a = atoi(argv[1]); int argv_cnt = 2; double b[5]; for(int i = 0; i < a; i++) { sscanf(argv[a...
25.94
32
(translation_unit) "#include "stdlib.h"\n#include "stdio.h"\n#include "/home/lillian/work/install_fpdebug/valgrind-3.7.0/fpdebug/fpdebug.h"\n#include <gsl/gsl_statistics.h>\nint main(int argc, const char * argv[]) {\nunsigned long int hexdouble;\nint a;\na = atoi(argv[1]);\nint argv_cnt = 2;\ndouble b[5];\nfor(int i = ...
391
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.94, "nodes": 234, "errors": 0, "source_hash": "2153b2ad6d14c16341c4bbe6f4b3d4f39a0a6aa2390797521d2d316f821d755a", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,790
c
// // SwpGuidancePage.h // swp_song // // Created by swp_song on 16/5/26. // Copyright © 2016年 swp_song. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SwpGuidancePage : UIViewController /** * @author swp_song * * @brief swpGuidancePageInfo ( 读取 SwpGuidancePage 信息资源文件 )...
28.77
124
(translation_unit) "//\n// SwpGuidancePage.h\n// swp_song\n//\n// Created by swp_song on 16/5/26.\n// Copyright © 2016年 swp_song. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@interface SwpGuidancePage : UIViewController\n\n\n/**\n * @author swp_song\n *\n * @brief swpGuidanceP...
482
47
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 28.77, "nodes": 316, "errors": 0, "source_hash": "5433659b0d0c7e977ddf33a1df7b6858225552366896dad642e136b7be040a39", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
14,791
c
// // NSDate+NTJAdditions.h // ReactiveMVVMExperiment // // Created by <NAME> on 12/07/2014. // Copyright (c) 2014 nojo inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (NTJAdditions) + (NSDate *)ntj_dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day; @end
27.45
11
(translation_unit) "//\n// NSDate+NTJAdditions.h\n// ReactiveMVVMExperiment\n//\n// Created by <NAME> on 12/07/2014.\n// Copyright (c) 2014 nojo inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (NTJAdditions)\n\n+ (NSDate *)ntj_dateWithYear:(NSInteger)year month:(NSInteger)mon...
65
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.45, "nodes": 35, "errors": 0, "source_hash": "04f0f1a517fcd0c1f1464de3a8aafc1edb0729c6d83172d433f460732b3d2b1a", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,792
c
// Expr 将会根据znbase 内的表达式进行适配 typedef struct Expr { NodeTag type; } Expr; typedef struct ExprContext { void *ecxt_per_tuple_memory; } ExprContext; typedef struct ExprState { NodeTag tag; uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */ /* * Storage for result value of a scalar expression, or...
34.16
75
(translation_unit) "// Expr 将会根据znbase 内的表达式进行适配\n\ntypedef struct Expr\n{\n NodeTag type;\n} Expr;\n\ntypedef struct ExprContext {\n void *ecxt_per_tuple_memory;\n\n} ExprContext;\n\ntypedef struct ExprState\n{\n NodeTag tag;\n\n uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */\n\n /*\n * Storage for ...
251
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 34.16, "nodes": 165, "errors": 0, "source_hash": "e8fedc929e3d09cb98dac747aa85e5b99533a577746ecde64aa999fa02bc2e7a", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "eTag...
14,793
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_INTERVENTION_REPORT_BODY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_INTERVENTION_REPORT_BODY_H_ #incl...
45.42
24
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_INTERVENTION_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_INTERVENT...
179
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 45.42, "nodes": 90, "errors": 0, "source_hash": "7c410371176268f417a6b1daf1f520d69223813cb6c65776529e1e9df6bb8b14", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,794
c
// // CMViewProtocol.h // CleanMac // // Created by Aka on 2020/1/18. // Copyright © 2020 Aka. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, CMViewActionType) { CMViewActionTypeNone, CMViewActionTypeSelect, }; @protocol CMViewProtocol <NSOb...
22.56
18
(translation_unit) "//\n// CMViewProtocol.h\n// CleanMac\n//\n// Created by Aka on 2020/1/18.\n// Copyright © 2020 Aka. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSUInteger, CMViewActionType) {\n CMViewActionTypeNone,\n CMViewActionTypeSelect,\...
72
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.56, "nodes": 45, "errors": 0, "source_hash": "79f234e8cacc06fcdb29eb2b6aba2907cbb78bf0d60e24b5e44f244a032494a7", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,795
c
#include<stdio.h> #include<unistd.h> int main(){ int I,r,j,k,l,p1,p2,fd[2]; char buf[50],s[50]; pipe(fd); while((p1=fork()) == -1); if(p1 == 0){ lockf(fd[1],1,0); sprintf(buf,"Child process p1 is sending message!\n"); printf("Child process p1!\n"); write(fd[1],buf,50)...
27.81
47
(translation_unit) "#include<stdio.h>\n#include<unistd.h>\nint main(){\n int I,r,j,k,l,p1,p2,fd[2];\n char buf[50],s[50];\n pipe(fd);\n while((p1=fork()) == -1);\n if(p1 == 0){\n lockf(fd[1],1,0);\n sprintf(buf,"Child process p1 is sending message!\n");\n printf("Child process p1!\n"...
531
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.81, "nodes": 271, "errors": 0, "source_hash": "bcc2045db97fcfe1e051628084e809bae10bf139ae909ac61c2a7e525af6529c", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,796
c
#pragma once #include <httq/HttpRequest.h> #include <httq/DataStream.h> #include <QObject> #include <QBuffer> class BodyReader : public QObject { Q_OBJECT public: BodyReader(httq::HttpRequest &request) : QObject() , mBuf(new QBuffer(&mBa)) { mBuf->open(QIODevice::WriteOnly); mDs = request.cr...
20.71
49
(translation_unit) "#pragma once\n\n#include <httq/HttpRequest.h>\n#include <httq/DataStream.h>\n\n#include <QObject>\n#include <QBuffer>\n\n\nclass BodyReader : public QObject\n{\n Q_OBJECT\n\npublic:\n BodyReader(httq::HttpRequest &request)\n : QObject()\n , mBuf(new QBuffer(&mBa))\n {\n mBuf->open(QIODev...
276
11
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.71, "nodes": 148, "errors": 0, "source_hash": "fd2389ea15771b277921fa6a38a2175fa522dcf2509a7ab761463d6946a715f4", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,797
c
// // CMPrintHierarchy.h // worker // // Created by <NAME> on 22/05/11. // Copyright 2011 opcoders.com. All rights reserved. // #import <Foundation/Foundation.h> #import "CMTraversalObject.h" @interface CMPrintHierarchy : NSObject <CMTraversalObjectVisitor> { NSMutableString* m_result; NSString* m_indent; } @p...
23.94
17
(translation_unit) "//\n// CMPrintHierarchy.h\n// worker\n//\n// Created by <NAME> on 22/05/11.\n// Copyright 2011 opcoders.com. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "CMTraversalObject.h"\n\n\n@interface CMPrintHierarchy : NSObject <CMTraversalObjectVisitor> {\n NSMutableString* m_...
82
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.94, "nodes": 53, "errors": 0, "source_hash": "1d99ab4dcb65c05dd880973c1dfa750b578170dd36c0e27952e26f3397ae48d8", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,798
c
#ifdef AMS_ENCRYPT_PACKAGE -----BEGIN ENCRYPTED FILE v0.6----- <KEY> -----END ENCRYPTED FILE----- #else #error "Secure builder required to compile this file" #endif
22.57
7
(translation_unit) "#ifdef AMS_ENCRYPT_PACKAGE\n-----BEGIN ENCRYPTED FILE v0.6-----\n<KEY>\n-----END ENCRYPTED FILE-----\n#else\n#error "Secure builder required to compile this file"\n#endif\n" (preproc_ifdef) "#ifdef AMS_ENCRYPT_PACKAGE\n-----BEGIN ENCRYPTED FILE v0.6-----\n<KEY>\n-----END ENCRYPTED FILE-----\n#else...
53
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.57, "nodes": 47, "errors": 0, "source_hash": "89dfe88a95595c40cab0116a2c1cd9f66af1fee9f1f808cf882790f175e35f78", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef AM...
14,799