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
/* Generated by RuntimeBrowser. */ @protocol PLTilePlaceholderView <NSObject> @required - (void)fadeOutSoonIfNeededAndRemoveFromSuperview:(bool)arg1; - (void)setImageRect:(struct CGRect { struct CGPoint { double x_1_1_1; double x_1_1_2; } x1; struct CGSize { double x_2_1_1; double x_2_1_2; } x2; })arg1; - (void)set...
40.33
12
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol PLTilePlaceholderView <NSObject>\n\n@required\n\n- (void)fadeOutSoonIfNeededAndRemoveFromSuperview:(bool)arg1;\n- (void)setImageRect:(struct CGRect { struct CGPoint { double x_1_1_1; double x_1_1_2; } x1; struct CGSize { double x_2_1_1; double x_2_1_...
150
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.33, "nodes": 90, "errors": 0, "source_hash": "c980585b91cd6576061baebee2432588f0ce7d4260fcd1dc3a18e904e763d9b1", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol PLTile...
9,300
c
// // JYReaderViewController.h // MyReader // // Created by GujyHy on 2018/3/9. // Copyright © 2018年 Gujy. All rights reserved. // #import <UIKit/UIKit.h> #import "ReaderDocument.h" typedef NS_ENUM(NSUInteger,JYReaderDisplayMode){ JYReaderDisplayModeVertical = 0, JYReaderDisplayModeHorizontal }; @class ...
32.04
25
(translation_unit) "//\n// JYReaderViewController.h\n// MyReader\n//\n// Created by GujyHy on 2018/3/9.\n// Copyright © 2018年 Gujy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ReaderDocument.h"\n\ntypedef NS_ENUM(NSUInteger,JYReaderDisplayMode){\n JYReaderDisplayModeVertical = 0,\n JYReaderD...
159
25
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.04, "nodes": 108, "errors": 0, "source_hash": "d0b49a45a322f68603485b81560fe285e897c5d9a8867b96ace7e6ca2a06a014", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
9,301
c
/* * (C) Copyright 2019 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #ifndef UFO_FILTERS_OBSFUNCTIONS_OBSFUNCTIONBASE_H_ #define UFO_FILTERS_OBSFUNCTIONS_OBSFUNCTIONBASE_H_ #include <map> #include <s...
38.38
104
(translation_unit) "/*\n * (C) Copyright 2019 UCAR\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n */\n\n#ifndef UFO_FILTERS_OBSFUNCTIONS_OBSFUNCTIONBASE_H_\n#define UFO_FILTERS_OBSFUNCTIONS_OBSFUNCTIONBASE_H_...
685
54
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 38.38, "nodes": 389, "errors": 0, "source_hash": "8d5d770db64cb47b989a21f19d69848eb28834ef390051eea3cc60938d943b61", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,302
c
// <NAME> <<EMAIL>> reported that in a program with a // reachable leak, if you do: // // valgrind --leak-check=yes --gen-suppressions=yes --show-reachable=no -q // // it gives the y/n/c suppression prompt for errors that aren't shown. This // test checks that is fixed. // // [The .vgtest file was later changed to ...
31.84
19
(translation_unit) "// <NAME> <<EMAIL>> reported that in a program with a\n// reachable leak, if you do:\n//\n// valgrind --leak-check=yes --gen-suppressions=yes --show-reachable=no -q\n//\n// it gives the y/n/c suppression prompt for errors that aren't shown. This\n// test checks that is fixed.\n//\n// [The .vgtest...
63
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.84, "nodes": 32, "errors": 0, "source_hash": "73f9c7840246bceb896c72f21ff0b199f21791d4b967449c862049d4579710d1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,303
c
#include <stdio.h> #include "ops.h" #include "parser.h" #include "ev_process.h" int send_key_event(struct input_event *template, int key, int state) { struct input_event ev = *template; ev.type = EV_KEY; ev.code = key; ev.value = state; int res = send_event(&ev); if(res > 0){ config.virtual_btn_array[...
30.23
285
(translation_unit) "#include <stdio.h>\n\n#include "ops.h"\n#include "parser.h"\n#include "ev_process.h"\n\nint send_key_event(struct input_event *template, int key, int state)\n{\n struct input_event ev = *template;\n ev.type = EV_KEY;\n ev.code = key;\n ev.value = state;\n int res = send_event(&ev);\n if(res > ...
2,545
0
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 30.23, "nodes": 1535, "errors": 0, "source_hash": "c9a3b25ac77b30c32f5e00bb68c6bb4e50156ce9db944507271e3f0c409ba029", "categorized_nodes": 1231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
9,304
c
#import <Cocoa/Cocoa.h> @class PreferencesController; @class MonitorWindow; @class SimulatorFrameView; @class SimulatorHomeView; @class SimulatorGlassView; @class SimulatorGlassWindow; @class MonitorViewController; @class ProcessControl; @interface MonitorController : NSObject { NSPanel *prefsWindow; Preferen...
32.29
97
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n@class PreferencesController;\n@class MonitorWindow;\n@class SimulatorFrameView;\n@class SimulatorHomeView;\n@class SimulatorGlassView;\n@class SimulatorGlassWindow;\n@class MonitorViewController;\n@class ProcessControl;\n\n@interface MonitorController : NSObject\n{\n N...
1,052
64
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 32.29, "nodes": 653, "errors": 0, "source_hash": "b868fde81cc20fbf4af86de774cd7f8c98db359a4c3f0ca9a48b43c06b9da462", "categorized_nodes": 386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
9,305
c
// // TuSDKMoive.h // TuSDKVideo // // Created by gh.li on 2017/3/31. // Copyright © 2017年 TuSDK. All rights reserved. // #import <Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> #import <AssetsLibrary/ALAsset.h> #import <UIKit/UIKit.h> #import "TuSDKTimeRange.h" @interface TuSDKMoiveFragment : NS...
29.96
28
(translation_unit) "//\n// TuSDKMoive.h\n// TuSDKVideo\n//\n// Created by gh.li on 2017/3/31.\n// Copyright © 2017年 TuSDK. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <AVFoundation/AVFoundation.h>\n#import <AssetsLibrary/ALAsset.h>\n#import <UIKit/UIKit.h>\n\n#import "TuSDKTimeRange.h"\n\...
189
21
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.96, "nodes": 121, "errors": 0, "source_hash": "494a45e3a7005604eb7ade85041d961d66e1ddb763753689a974aa97ebe57c3f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
9,306
c
/* * Copyright (C) 2013 <NAME> <<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 * rights to use, copy, modify, merge, pu...
36.44
45
(translation_unit) "/*\n * Copyright (C) 2013 <NAME> <<EMAIL>>\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 the\n * rights to us...
161
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.44, "nodes": 92, "errors": 0, "source_hash": "73de7de98d2d9e5b69b652956a8b27999790fb45fe8fbeaea718dd8b81366609", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,307
c
#pragma once #include <xmd/nl/data.h> #include <xmd/types/vec3.h> #include <xmd/model/box.h> #include <xmd/types/amino_acid.h> #include <array> #define NAMESPACE(...) xmd,__VA_ARGS__ #define TEMPLATE_PARAMS(...) __VA_ARGS__ #define NAME() es_pair #define FIELDS() int,i1,int,i2,xmd::real,q1_x_q2 GENTYPE() #undef F...
21.12
32
(translation_unit) "#pragma once\n\n\n#include <xmd/nl/data.h>\n#include <xmd/types/vec3.h>\n#include <xmd/model/box.h>\n\n#include <xmd/types/amino_acid.h>\n#include <array>\n\n#define NAMESPACE(...) xmd,__VA_ARGS__\n#define TEMPLATE_PARAMS(...) __VA_ARGS__\n#define NAME() es_pair\n#define FIELDS() int,i1,int,i2,xmd::...
171
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.12, "nodes": 113, "errors": 0, "source_hash": "64b1d7e920d82bd61e907c4fd90e7c1167b52ed1dfc29c79c646843a55fe69fe", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,308
c
/* * \file libpepatch.c * \author A.A. * \brief Deserializes and applies patches on stream data */ #include <stdlib.h> #include <string.h> #include "libpepatch.h" /* Min/Max Macros */ #define MIN(_a, _b) ((_a) < (_b) ? (_a) : (_b)) #define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b)) /* Adds new patch part */ stat...
32.11
162
(translation_unit) "/*\n * \file libpepatch.c\n * \author A.A.\n * \brief Deserializes and applies patches on stream data\n */\n\n#include <stdlib.h>\n#include <string.h>\n#include "libpepatch.h"\n\n/* Min/Max Macros */\n#define MIN(_a, _b) ((_a) < (_b) ? (_a) : (_b))\n#define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))...
1,318
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 32.11, "nodes": 827, "errors": 0, "source_hash": "d5521329ee41a9af05b0161012634026b9cab90063beda6b5acee8b403688be9", "categorized_nodes": 548}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,309
c
/* Title: HearYe Author: <NAME> Description: Dumb service meant for very fast exploitation. */ #include <stdio.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #define CLEAR "\033[2J\033[1;1H" #define WELCOME "Hear Ye, Hear Ye, The Ye Old Town Crier Service\n" int pwnabl...
22.3
106
(translation_unit) "/*\n Title: HearYe\n Author: <NAME>\n Description: Dumb service meant for very fast exploitation.\n*/\n\n#include <stdio.h>\n#include <stdint.h>\n#include <string.h>\n#include <unistd.h>\n#include <sys/types.h>\n\n#define CLEAR "\033[2J\033[1;1H"\n#define WELCOME "Hear Ye, Hear Ye, The Ye Old ...
725
1
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 22.3, "nodes": 395, "errors": 0, "source_hash": "9fe6f1c62aafc9d80e9fe4b0fe91bc6563b94cb1b88ff7110f5497f074eaa827", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,310
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __DRM_FB_CMA_HELPER_H__ #define __DRM_FB_CMA_HELPER_H__ struct drm_fbdev_cma; struct drm_gem_cma_object; struct drm_fb_helper_surface_size; struct drm_framebuffer_funcs; struct drm_fb_helper_funcs; struct drm_framebuffer; struct drm_fb_helper; struct drm_device; struct d...
38.94
32
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef __DRM_FB_CMA_HELPER_H__\n#define __DRM_FB_CMA_HELPER_H__\n\nstruct drm_fbdev_cma;\nstruct drm_gem_cma_object;\n\nstruct drm_fb_helper_surface_size;\nstruct drm_framebuffer_funcs;\nstruct drm_fb_helper_funcs;\nstruct drm_framebuffer;\nstruct drm_fb_help...
267
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.94, "nodes": 214, "errors": 0, "source_hash": "ae1ce413417518efa2c726a70a2264f3cea2c1aac9ede4b2d743a1f4b4d044d9", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,311
c
/* fleaTLS cryptographic library Copyright (C) 2015-2019 cryptosource GmbH Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
24.67
86
(translation_unit) "/* fleaTLS cryptographic library\nCopyright (C) 2015-2019 cryptosource GmbH\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\...
110
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.67, "nodes": 75, "errors": 0, "source_hash": "b9701def3e6df40045af1ba52b50b4c71e9f6f1b40ebf88d3aba9f42ea18a80f", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,312
c
/* * rdivide.h * * Code generation for function 'rdivide' * * C source code generated on: Sat Jan 10 16:52:51 2015 * */ #ifndef __RDIVIDE_H__ #define __RDIVIDE_H__ /* Include files */ #include <float.h> #include <math.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "rtwtypes.h" #include...
21.73
22
(translation_unit) "/*\n * rdivide.h\n *\n * Code generation for function 'rdivide'\n *\n * C source code generated on: Sat Jan 10 16:52:51 2015\n *\n */\n\n#ifndef __RDIVIDE_H__\n#define __RDIVIDE_H__\n/* Include files */\n#include <float.h>\n#include <math.h>\n#include <stddef.h>\n#include <stdlib.h>\n#include <strin...
76
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 21.73, "nodes": 50, "errors": 0, "source_hash": "d852196ff99afe0b9929f0284a3704263049e1e190cd0b7d3d36e4ab4a59baef", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,313
c
/*++ Copyright (c) Microsoft Corporation. All Rights Reserved Module Name: StorageClassLoadKey.h Abstract: Storage card load key declaration Environment: User mode --*/ #pragma once #define DEFAULT_KEY_SPACE 10 #define KEYSIZE 0x06 class LoadKey { public: LoadKey(); virtual ~LoadKey(...
26.18
49
(translation_unit) "/*++\n\nCopyright (c) Microsoft Corporation. All Rights Reserved\n\nModule Name:\n\n StorageClassLoadKey.h\n\nAbstract:\n\n Storage card load key declaration\n \nEnvironment:\n\n User mode\n\n--*/\n\n#pragma once\n\n#define DEFAULT_KEY_SPACE 10\n#define KEYSIZE 0x06\n\nclass LoadKey\n{\...
236
11
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.18, "nodes": 169, "errors": 0, "source_hash": "3fd643c75d41eadef00ef4bbc09b69eac9b7381476ed50a10aad045c5e0cd54b", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,314
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class GKRemoteSignInViewController, NSError; @protocol GKRemoteSignInViewControllerDelegate - (void)onboardingFlowPersonalizationDidFinish; - (void)onboardingFlowDidSignOut; - (void)sig...
40.83
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n@class GKRemoteSignInViewController, NSError;\n\n@protocol GKRemoteSignInViewControllerDelegate\n- (void)onboardingFlowPersonalizationDidFinish;\n- (void)onboard...
88
13
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.83, "nodes": 52, "errors": 0, "source_hash": "ae4fbc4459cf4fe3af491a2a2f116d4119125192e3e4e56cfab3bec1086895eb", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@class GKRemoteS...
9,315
c
#pragma once #include "Core/CoreTypes.h" #include "Core/CoreHelpers.h" namespace Kioto { #define DECLARE_EVENT(type) \ public:\ uint64 GetEventType() const override \ { \ return type::GetEventTypeS(); \ } \ static uint64 GetEventTypeS() \ { \ static type a; \ static uint64 res = PtrToUint(&a); \ retur...
32.45
22
(translation_unit) "#pragma once\n\n#include "Core/CoreTypes.h"\n#include "Core/CoreHelpers.h"\n\nnamespace Kioto\n{\n#define DECLARE_EVENT(type) \\npublic:\\nuint64 GetEventType() const override \\n{ \\n return type::GetEventTypeS(); \\n} \\nstatic uint64 GetEventTypeS() \\n{ \\n static type a; \\n static uin...
107
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.45, "nodes": 73, "errors": 0, "source_hash": "29cfa523de16a9ee6f55a80ea116405f55f22e2af270516d6c156d310b6ae1ed", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,316
c
// // DICommentsListModel.h // DemoInstagram // // Created by <NAME> on 12/24/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> @class DICommentModel; @interface DICommentsListModel : MTLModel<MTLJSONSerializing> @property (nonatomic, strong) NSNumber *count; @property (nonatomic, s...
27
13
(translation_unit) "//\n// DICommentsListModel.h\n// DemoInstagram\n//\n// Created by <NAME> on 12/24/15.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <Mantle/Mantle.h>\n@class DICommentModel;\n@interface DICommentsListModel : MTLModel<MTLJSONSerializing>\n@property (nonatomic, strong) NSNumber ...
67
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.0, "nodes": 48, "errors": 0, "source_hash": "37b2cbbed6486c7c86e714fcbaae0d79cb06e22f0860d8b8b5920113dc8b5789", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Ma...
9,317
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <Flexo/FFEffectNode.h> __attribute__((visibility("hidden"))) @interface FFAudioEffectNode : FFEffectNode { } - (void)_setupSources; @end
22.42
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <Flexo/FFEffectNode.h>\n\n__attribute__((visibility("hidden")))\n@interface FFAudioEffectNode : FFEffectNode\n{\n}\n\n- (void)_setupSources;\n\n@end\...
51
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.42, "nodes": 25, "errors": 0, "source_hash": "cd4a230956da128836542621f0408b0a9d6c8474af8d0e4a655baaf85f8ddae7", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,318
c
// // NSProxyViewController.h // iOS-Learning-Demo // // Created by yuan on 2019/5/30. // Copyright © 2019 yuan. All rights reserved. // #import "YSBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface NSProxyViewController : YSBaseViewController @end NS_ASSUME_NONNULL_END
22.42
12
(translation_unit) "//\n// NSProxyViewController.h\n// iOS-Learning-Demo\n//\n// Created by yuan on 2019/5/30.\n// Copyright © 2019 yuan. All rights reserved.\n//\n\n#import "YSBaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSProxyViewController : YSBaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_EN...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.42, "nodes": 14, "errors": 0, "source_hash": "ed0a6d1a5328fb815c41e1a518184f39a9373564c28e6b2e13ca7695874a436b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"Y...
9,319
c
// // QIMCommonTableViewCellManager.h // qunarChatIphone // // Created by 李露 on 2017/12/21. // #import "QIMCommonUIFramework.h" #define QCBlankLineCellHeight 20.0f #define QCMineProfileCellHeight 79.0f #define QCMineOtherCellHeight 44.0f #define QCMineSectionHeaderHeight 20.0f #define QCMineMinSe...
37.26
23
(translation_unit) "//\n// QIMCommonTableViewCellManager.h\n// qunarChatIphone\n//\n// Created by 李露 on 2017/12/21.\n//\n\n#import "QIMCommonUIFramework.h"\n\n#define QCBlankLineCellHeight 20.0f\n#define QCMineProfileCellHeight 79.0f\n#define QCMineOtherCellHeight 44.0f\n#define QCMineSectionHeaderHe...
166
23
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.26, "nodes": 124, "errors": 0, "source_hash": "6d64b779ac80fc10cf2e0cf40c1d4db1e15284d70540c6d76e4a22aec0c69609", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort \"QI...
9,320
c
#import <Foundation/Foundation.h> @protocol PCKMonad <NSObject> @end
22
3
(translation_unit) "#import <Foundation/Foundation.h>\n\n@protocol PCKMonad <NSObject>\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "@protocol PCKMonad <NSObject>\n@end" (ERROR) "@" (type_identifier) "pr...
13
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 22.0, "nodes": 11, "errors": 0, "source_hash": "73d0a4d58449bb2afc317c20dd10b028d850f0647be9b25de6b2823c4e5f2d57", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fou...
9,321
c
#ifndef __common__ #define __common__ #include <string> #include <sstream> #include <fstream> #include <stdlib.h> #include <vector> #include <unordered_map> typedef unsigned short ushort; typedef unsigned int uint; typedef unsigned long long ulong; template<typename T> std::string tostring(T val) { std::strings...
27.89
37
(translation_unit) "#ifndef __common__\n#define __common__\n\n#include <string>\n#include <sstream>\n#include <fstream>\n#include <stdlib.h>\n#include <vector>\n#include <unordered_map>\n\ntypedef unsigned short ushort;\ntypedef unsigned int uint;\ntypedef unsigned long long ulong;\n\n\ntemplate<typename T>\nstd::st...
397
23
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 27.89, "nodes": 241, "errors": 0, "source_hash": "51909b09bd43d95cedc337769b6a615217f16f3297c54b69ba815f25fd0a5967", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,322
c
#pragma once #include "ofMain.h" class Particle { public: void setup(ofVec3f pos, ofVec3f dir = ofVec3f(1, 0, 0), ofVec3f size = ofVec3f(40, 4, 4)); void update(); void draw(); ofVec3f basePos; ofVec3f pos; ofVec3f dir; ofVec3f size; float scale; float scaleMultiplier; ...
18.38
24
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n\nclass Particle {\npublic:\n void setup(ofVec3f pos, ofVec3f dir = ofVec3f(1, 0, 0), ofVec3f size = ofVec3f(40, 4, 4));\n void update();\n void draw();\n \n ofVec3f basePos;\n ofVec3f pos;\n ofVec3f dir;\n ofVec3f size;\n float scale;\...
130
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 18.38, "nodes": 85, "errors": 0, "source_hash": "e9bcbae6e558d7fb8d0fb8ed3bdf2af9473ea7dbe441d4686314c911da0f1272", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,323
c
// // SPDisplayObject_Internal.h // Sparrow // // Created by <NAME> on 03.05.09. // Copyright 2011-2015 Gamua. All rights reserved. // // This program is free software; you can redistribute it and/or modify // it under the terms of the Simplified BSD License. // #import "SPDisplayObject.h" NS_ASSUME_NONNULL_BEG...
27.06
17
(translation_unit) "//\n// SPDisplayObject_Internal.h\n// Sparrow\n//\n// Created by <NAME> on 03.05.09.\n// Copyright 2011-2015 Gamua. All rights reserved.\n//\n// This program is free software; you can redistribute it and/or modify\n// it under the terms of the Simplified BSD License.\n//\n\n#import "SPDisplayO...
68
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.06, "nodes": 38, "errors": 0, "source_hash": "5747e7aebbc2aec967f70c8b622acfc55c6ccfd1f49e6c52fff1cbc4e3b06bde", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,324
c
// // Created by agondek on 12/6/15. // #ifndef GUT_MANYCORE_ARCHITECTURES_MCTS_NIMGAMESTATE_H #define GUT_MANYCORE_ARCHITECTURES_MCTS_NIMGAMESTATE_H #include <iostream> #include <bits/stl_vector.h> class NimGameState { public: int lastActivePlayer; int chips; NimGameState(int lastActive...
27.57
21
(translation_unit) "//\n// Created by agondek on 12/6/15.\n//\n\n#ifndef GUT_MANYCORE_ARCHITECTURES_MCTS_NIMGAMESTATE_H\n#define GUT_MANYCORE_ARCHITECTURES_MCTS_NIMGAMESTATE_H\n\n#include <iostream>\n#include <bits/stl_vector.h>\n\nclass NimGameState\n{\n public:\n int lastActivePlayer;\n int chips;\n\...
117
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.57, "nodes": 75, "errors": 0, "source_hash": "6ebe8a424241d4f23452ac2beb5100d33c5238d855d61e278ae100d1ad4f1d3c", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,325
c
/* * This file is part of the Simutrans-Extended project under the Artistic License. * (see LICENSE.txt) */ #ifndef SIMWARE_H #define SIMWARE_H #include "halthandle_t.h" #include "dataobj/koord.h" #include "descriptor/goods_desc.h" class goods_manager_t; class karte_t; class player_t; /** Class to handle goods ...
32.32
133
(translation_unit) "/*\n * This file is part of the Simutrans-Extended project under the Artistic License.\n * (see LICENSE.txt)\n */\n\n#ifndef SIMWARE_H\n#define SIMWARE_H\n\n\n#include "halthandle_t.h"\n#include "dataobj/koord.h"\n#include "descriptor/goods_desc.h"\n\nclass goods_manager_t;\nclass karte_t;\nclass pl...
1,001
28
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 32.32, "nodes": 599, "errors": 0, "source_hash": "fc20c2441e95a8a65d6a6da510105dc7974709b43cb582793d241b6285cbd06c", "categorized_nodes": 423}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,326
c
#ifndef _ROBOT_STATE_CORE_H #define _ROBOT_STATE_CORE_H #include "msf_localization_core/state_core.h" #include <iostream> #include <Eigen/Dense> #include <Eigen/Sparse> enum class RobotStateCoreTypes { undefined=0, free_model=1, imu_driven, absolute_pose_driven }; class RobotStateCore : publ...
27.63
59
(translation_unit) "#ifndef _ROBOT_STATE_CORE_H\n#define _ROBOT_STATE_CORE_H\n\n\n#include "msf_localization_core/state_core.h"\n\n#include <iostream>\n\n#include <Eigen/Dense>\n#include <Eigen/Sparse>\n\n\n\nenum class RobotStateCoreTypes\n{\n undefined=0,\n free_model=1,\n imu_driven,\n absolute_pose_driv...
372
30
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.63, "nodes": 211, "errors": 0, "source_hash": "057637d8d1c4f0d1bf3302bb644e1fb2d8e0aa23f5912df63308fe3e4b32de48", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _ROBOT...
9,327
c
int main( string param ) { return "/bin/remove"->main(param); }
21.33
3
(translation_unit) "int main( string param ) {\n return "/bin/remove"->main(param);\n}" (function_definition) "int main( string param ) {\n return "/bin/remove"->main(param);\n}" (primitive_type) "int" (function_declarator) "main( string param )" (identifier) "main" (parameter_list) "( string ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.33, "nodes": 15, "errors": 0, "source_hash": "057bd2f96bfc463a88d272efa95cf2bb0b35bb7c79275b9d209b21f81f07d5d3", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
9,328
c
#ifndef GRENADE_H #define GRENADE_H #include "Box2D.h" #include "Weapon.h" #include "types.h" #include "Configuration.h" #include "ExplosionManager.h" #define GRENADE_RADIUS 0.25f #define GRENADE_DENSITY 1 class Grenade : public Weapon { protected: int detonationTime; b2World & world; b2Body* body; ...
25.73
30
(translation_unit) "#ifndef GRENADE_H\n#define GRENADE_H\n\n#include "Box2D.h"\n#include "Weapon.h"\n#include "types.h"\n#include "Configuration.h"\n#include "ExplosionManager.h"\n\n#define GRENADE_RADIUS 0.25f\n#define GRENADE_DENSITY 1\n\nclass Grenade : public Weapon {\nprotected: \n int detonationTime;\n b...
225
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.73, "nodes": 144, "errors": 0, "source_hash": "42b6eb1e878244627243ab6cdcf00d134d88c99adf511c863c44226883180de0", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,329
c
// Copyright (c) 2021 Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "OpenXRCommon.h" #include "SceneUnderstandingBase.h" namespace MicrosoftOpenXR { class FSpatialMappingPlugin : public FSceneUnderstandingBase { public: FSpatialMappingPlugin(); IOpenXRCustomCaptureSupport* G...
34.94
17
(translation_unit) "// Copyright (c) 2021 Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "OpenXRCommon.h"\n#include "SceneUnderstandingBase.h"\n\nnamespace MicrosoftOpenXR\n{\n class FSpatialMappingPlugin : public FSceneUnderstandingBase\n {\n public:\n FSpatialMappingPlugin();\...
97
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.94, "nodes": 53, "errors": 0, "source_hash": "bc931f0c594bf7e136d1f974066856c80f8ceba720ecd93a04a0d945d0c8e469", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,330
c
/****************************************************************** * * Round for C * * Copyright (C) <NAME> 2015 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #include <round/util/map.h> /*********************************...
26.05
230
(translation_unit) "/******************************************************************\n *\n * Round for C\n *\n * Copyright (C) <NAME> 2015\n *\n * This is licensed under BSD-style license, see file COPYING.\n *\n ******************************************************************/\n\n#include <round/util/map.h>\n\n/*...
1,530
0
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 26.05, "nodes": 928, "errors": 0, "source_hash": "80172dcad19ab85446902d70b30cab3a1f5ecdbb2439d7a96c5dda37d2dc57c5", "categorized_nodes": 652}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,331
c
/* * disk/sega_system_24.c * * Custom IBM-based format used on disks for the Sega System 24. * * Sectors 1-5: 2kB, Sector 6: 1kB, Sector 7: 256 bytes. * * Written in 2012 by <NAME> */ #include <libdisk/util.h> #include "../private.h" #define sec_no(sec) (((sec) < 5) ? 4 : ((sec) < 6) ? 3 : 1) #define sec_o...
33.04
132
(translation_unit) "/*\n * disk/sega_system_24.c\n * \n * Custom IBM-based format used on disks for the Sega System 24.\n * \n * Sectors 1-5: 2kB, Sector 6: 1kB, Sector 7: 256 bytes.\n * \n * Written in 2012 by <NAME>\n */\n\n#include <libdisk/util.h>\n#include "../private.h"\n\n#define sec_no(sec) (((sec) < 5) ? 4 : (...
1,355
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 33.04, "nodes": 874, "errors": 0, "source_hash": "4ef47ff7168391f21797a7fd0b52485db913ecff57c25ad96ff01852526537ce", "categorized_nodes": 658}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,332
c
// // NSObject+XLCategory.h // XLComProject // // Created by GDXL2012 on 2019/11/24. // Copyright © 2019 GDXL2012. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSObject (XLCategory) /** 方法交换换 @param cls 需要替换方法的类 @param original 需要被替换的方法 @param newSel 新方法 @par...
28.62
21
(translation_unit) "//\n// NSObject+XLCategory.h\n// XLComProject\n//\n// Created by GDXL2012 on 2019/11/24.\n// Copyright © 2019 GDXL2012. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSObject (XLCategory)\n/**\n 方法交换换\n @param cls 需要替换方法的类\n @param origin...
99
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.62, "nodes": 56, "errors": 0, "source_hash": "0a8a7d44379c319012a0ff1872a7e23ddc3cca54e44c56c048bb2eb2101d8a4e", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,333
c
#include "../HttpseXData.h" #ifndef HTTPSE_STATUS_CODE_H #define HTTPSE_STATUS_CODE_H HttpseCode httpse_check_status_code(const HttpseTData *tdata); #endif /* HTTPSE_STATUS_CODE_H */
29.5
6
(translation_unit) "#include "../HttpseXData.h"\n\n#ifndef HTTPSE_STATUS_CODE_H\n#define HTTPSE_STATUS_CODE_H\n\nHttpseCode\nhttpse_check_status_code(const HttpseTData *tdata);\n\n#endif /* HTTPSE_STATUS_CODE_H */\n" (preproc_include) "#include "../HttpseXData.h"\n" (#include) "#include" (string_literal) "".....
30
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.5, "nodes": 20, "errors": 0, "source_hash": "8877e0b0cf12871f4100cfa88834f460c2b3df71941f407a29055457d0e7a89e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
9,334
c
// // PublicGMSPositionViewModel.h // GoogleMaps // // Created by Mac on 2018/7/18. // Copyright © 2018年 Shenzhen LvPai Culture Communication Co., Ltd. All rights reserved. // // google 定位的逻辑 #import <Foundation/Foundation.h> #import <GoogleMaps/GoogleMaps.h> #import "PublicGMSAddressDataModel.h" @protocol Publi...
27.94
33
(translation_unit) "//\n// PublicGMSPositionViewModel.h\n// GoogleMaps\n//\n// Created by Mac on 2018/7/18.\n// Copyright © 2018年 Shenzhen LvPai Culture Communication Co., Ltd. All rights reserved.\n//\n// google 定位的逻辑\n\n#import <Foundation/Foundation.h>\n#import <GoogleMaps/GoogleMaps.h>\n#import "PublicGMSAddre...
173
18
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.94, "nodes": 112, "errors": 0, "source_hash": "f853cf49cecaf73a15535eec70f358b746693c9ecf81e8f4238852e7b7bf68f7", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "dation/F...
9,335
c
#pragma once #include "envoy/http/header_map.h" namespace Envoy { namespace Http { /** * Path helper extracted from chromium project. */ class PathUtil { public: // Returns if the normalization succeeds. // If it is successful, the param will be updated with the normalized path. static bool canonicalPath(Hea...
24.67
15
(translation_unit) "#pragma once\n\n#include "envoy/http/header_map.h"\n\nnamespace Envoy {\nnamespace Http {\n\n/**\n * Path helper extracted from chromium project.\n */\nclass PathUtil {\npublic:\n // Returns if the normalization succeeds.\n // If it is successful, the param will be updated with the normalized path...
53
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.67, "nodes": 23, "errors": 0, "source_hash": "8792ff8645363b00b479a811f30a91ac2d8bdc57aae8b7f21b6436ecf8ec2363", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,336
c
#ifndef _CFQ_H #define _CFQ_H #include "blk-cgroup.h" #ifdef CONFIG_CFQ_GROUP_IOSCHED static inline void cfq_blkiocg_update_io_add_stats(struct blkio_group *blkg, struct blkio_group *curr_blkg, bool direction, bool sync) { blkiocg_update_io_add_stats(blkg, curr_blkg, direction, sync); } static inline void cfq_blkio...
38.56
95
(translation_unit) "#ifndef _CFQ_H\n#define _CFQ_H\n#include "blk-cgroup.h"\n\n#ifdef CONFIG_CFQ_GROUP_IOSCHED\nstatic inline void cfq_blkiocg_update_io_add_stats(struct blkio_group *blkg,\n struct blkio_group *curr_blkg, bool direction, bool sync)\n{\n blkiocg_update_io_add_stats(blkg, curr_blkg, direction, sync);\n}\...
911
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 38.56, "nodes": 608, "errors": 0, "source_hash": "1e2ed052a234cbad92963f053b53d631fb690530e9095f7f469e883b76403b27", "categorized_nodes": 409}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,337
c
#include "wifi_transmit.h" const int WIFI_CONNECTED_BIT = BIT0; const int MQTT_CONNECTED_BIT = BIT1; static const char *TAG = "MQTT_SAMPLE"; //Initialisation of wifi void wifiInit(){ // create the event group to handle wifi events wifi_event_group = xEventGroupCreate(); tcpip_adapter_init(); ESP_ERROR_CHECK(esp_e...
32.98
84
(translation_unit) "#include "wifi_transmit.h"\n\nconst int WIFI_CONNECTED_BIT = BIT0;\nconst int MQTT_CONNECTED_BIT = BIT1;\nstatic const char *TAG = "MQTT_SAMPLE";\n\n//Initialisation of wifi\nvoid wifiInit(){\n // create the event group to handle wifi events\n wifi_event_group = xEventGroupCreate();\n tcpip_adapter_...
607
2
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 32.98, "nodes": 332, "errors": 0, "source_hash": "b2a4e35667133975f6320b47ebfc9a73da466fdc1b94b109ca8faf34f7d02fa8", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,338
c
/** * openapi-ipify * OpenAPI client for ipify, a simple public IP address API * * OpenAPI spec version: 0.9.0 * Contact: <EMAIL> * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ #ifndef OAI_OAI...
21.97
31
(translation_unit) "/**\n * openapi-ipify\n * OpenAPI client for ipify, a simple public IP address API\n *\n * OpenAPI spec version: 0.9.0\n * Contact: <EMAIL>\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class m...
81
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 21.97, "nodes": 50, "errors": 0, "source_hash": "21296f3dd6da9af17b1101af7b89a00d4eef4a3e039d9913a1a5c5c39d3f1c36", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,339
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 COMPONENTS_DOWNLOAD_PUBLIC_DOWNLOAD_TASK_TYPES_H_ #define COMPONENTS_DOWNLOAD_PUBLIC_DOWNLOAD_TASK_TYPES_H_ namespace download { // A Java count...
43.25
16
(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 COMPONENTS_DOWNLOAD_PUBLIC_DOWNLOAD_TASK_TYPES_H_\n#define COMPONENTS_DOWNLOAD_PUBLIC_DOWNLOAD_TASK_TYPES_H_\n\nnamespace ...
44
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 43.25, "nodes": 24, "errors": 0, "source_hash": "4fd195990e91e5e856c27361bbb825615ccf4589d227b47cfd35373732e66e7e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef COMPONEN...
9,340
c
int uniquePaths(int m, int n) { unsigned **mat = malloc(m * sizeof(*mat)); for (int i = 0; i < m; i++) mat[i] = calloc(n, sizeof(**mat)); mat[0][0] = 1; for (int r = 0; r < m; r++) { for (int c = 0; c < n; c++) { if (r > 0) mat[r][c] = mat[r - 1][c]; if (c > 0) mat[r][c] += ...
22.84
19
(translation_unit) "int uniquePaths(int m, int n) {\n unsigned **mat = malloc(m * sizeof(*mat));\n for (int i = 0; i < m; i++)\n mat[i] = calloc(n, sizeof(**mat));\n mat[0][0] = 1;\n\n for (int r = 0; r < m; r++) {\n for (int c = 0; c < n; c++) {\n if (r > 0)\n mat[r][c] = mat[r - 1][c];\n if...
281
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.84, "nodes": 183, "errors": 0, "source_hash": "6774854dfafd153fd0cb0dfa475dab427b6a6f5aec9ff4fdf360eb816da36259", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
9,341
c
// // UserFavouritesCell.h // Umka // // Created by <NAME> on 11/24/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "HCSStarRatingView.h" @class MasterModel; @interface UserFavouritesCell : TemplateCell @property (nonatomic, weak) IBOutlet UIView *cellView; @end
22.62
13
(translation_unit) "//\n// UserFavouritesCell.h\n// Umka\n//\n// Created by <NAME> on 11/24/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "HCSStarRatingView.h"\n@class MasterModel;\n@interface UserFavouritesCell : TemplateCell\n@property (nonatomic, weak) IBOutlet UIV...
47
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.62, "nodes": 31, "errors": 0, "source_hash": "862ae5ebd1a82a48f430856d4feaaf4b66adbca7532dc2a75d0c2a5663e4c3ef", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
9,342
c
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
26.29
160
(translation_unit) "/*\n\n Copyright (C) 2000, 2001 Silicon Graphics, Inc. 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.1 of the GNU Lesser General Public License \n as published by the Free Software Foundation.\n\n This program is...
987
8
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 26.29, "nodes": 640, "errors": 0, "source_hash": "6a936ff3624294bd5c1457945eea5e372589bed8d83b802a4b61aad1410fdfcb", "categorized_nodes": 444}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,343
c
#ifndef IMAGEFC_HOGENCODER_H #define IMAGEFC_HOGENCODER_H #include <vector> #include <tuple> #include <deque> #include <functional> #include <cmath> #include <immintrin.h> namespace HOG { void encode(const std::vector<std::vector<float>> &src, std::vector<float> &dst); void mapConv3KernelSSE(con...
24.79
19
(translation_unit) "#ifndef IMAGEFC_HOGENCODER_H \n#define IMAGEFC_HOGENCODER_H \n \n#include <vector> \n#include <tuple> \n#include <deque> \n#include <functional> \n#include <cmath> \n#include <immintrin.h> \n \nnamespace HOG { \n void encode(const std::vector<std::vector<float>> &src, std::vector<float> &dst); \n...
132
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.79, "nodes": 90, "errors": 0, "source_hash": "ff5329e735735d082430713e64c46575bd312544ca11a838f398d9e67a91f621", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,344
c
// // QLSharedStructs.h // XBolo Quick Look Plug-in // // Created by <NAME> on 4/12/16. // Copyright © 2016 <NAME>. All rights reserved. // #ifndef QLSharedStructs_h #define QLSharedStructs_h #include <unistd.h> #include <CoreFoundation/CFBase.h> #include <CoreGraphics/CGColor.h> #include <CoreGraphics/CGContext....
36.47
99
(translation_unit) "//\n// QLSharedStructs.h\n// XBolo Quick Look Plug-in\n//\n// Created by <NAME> on 4/12/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#ifndef QLSharedStructs_h\n#define QLSharedStructs_h\n\n#include <unistd.h>\n#include <CoreFoundation/CFBase.h>\n#include <CoreGraphics/CGColor.h>\...
561
4
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 36.47, "nodes": 350, "errors": 0, "source_hash": "c3fbc97b35a754e6802dcbacac8095330e439a6f99bee1abde9a5dedfa1e05a3", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
9,345
c
class Obj{ public: int x; Obj(int); void inc(int); };
10.67
6
(translation_unit) "class Obj{\n public:\n int x;\n Obj(int);\n void inc(int);\n};" (function_definition) "class Obj{\n public:\n int x;\n Obj(int);\n void inc(int);\n}" (type_identifier) "class" (identifier) "Obj" (compound_statement) "{\n public:\n int x;\n Obj(int);\n ...
34
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 10.67, "nodes": 17, "errors": 0, "source_hash": "b7c321ea7d40c39612c3da8bf2ed2afc49d5e0a840156fe6908a66eb1fdfe1fd", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cla...
9,346
c
// // CSInteractViewController.h // CSPP // // Created by <NAME> on 2018/3/20. // Copyright © 2018年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface CSInteractViewController : CSViewController @end #define kSegue_roadShow @"roadShow" #define kSegue_faceTime @"faceTime" #define kSegue_faq @"fa...
26.7
20
(translation_unit) "//\n// CSInteractViewController.h\n// CSPP\n//\n// Created by <NAME> on 2018/3/20.\n// Copyright © 2018年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CSInteractViewController : CSViewController\n\n@end\n\n#define kSegue_roadShow @"roadShow"\n#define kSegue_faceTime @...
59
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.7, "nodes": 50, "errors": 0, "source_hash": "b9fb7e71179ffd3caf38dd1335a1cdaca523c73ba4893299944a3b7344ddd9dd", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
9,347
c
// // BQSuperMarketViewController.h // BeeQuick // // Created by Mac on 16/12/22. // Copyright © 2016年 Mac. All rights reserved. // #import <UIKit/UIKit.h> #import "BQBaseViewController.h" @interface BQSuperMarketViewController : BQBaseViewController @end
22.64
11
(translation_unit) "//\n// BQSuperMarketViewController.h\n// BeeQuick\n//\n// Created by Mac on 16/12/22.\n// Copyright © 2016年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BQBaseViewController.h"\n\n@interface BQSuperMarketViewController : BQBaseViewController\n\n@end\n" (comment) "//" (c...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.64, "nodes": 13, "errors": 0, "source_hash": "b07f6c2cd7c9534b31e31ad7951a1b4753c0665038e1eb29ad23c881f3e9e61b", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
9,348
c
#pragma once #include <memory> namespace App { namespace Misc { class DebuggerDetectionDisabler; } class InjectOnCreateProcessApp { const Utils::Win32::LoadedModule m_module; const std::shared_ptr<Misc::DebuggerDetectionDisabler> m_detectionDisabler; class Implementation; friend class Implementation; ...
23.63
19
(translation_unit) "#pragma once\n\n#include <memory>\n\nnamespace App {\n namespace Misc {\n class DebuggerDetectionDisabler;\n }\n\n class InjectOnCreateProcessApp {\n const Utils::Win32::LoadedModule m_module;\n const std::shared_ptr<Misc::DebuggerDetectionDisabler> m_detectionDisabler;\n\n class Implementation;...
114
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.63, "nodes": 62, "errors": 0, "source_hash": "e4f17eafe2add5dbef55bd06e4d0edbf01bf26674a038336994f3fa2dcba29a9", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,349
c
#include <stdio.h> #include <stdlib.h> #include <gps.h> //#define PORTNAME "/dev/ttyAMA1" int main(void) { //printf("%s\n",PORTNAME); gps_init(); // initialize the device loc_t gps,record; // a location structure while(1) { gps_location(&gps); // determine the location data if (gps....
31.38
21
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <gps.h>\n//#define PORTNAME "/dev/ttyAMA1"\nint main(void) {\n\n //printf("%s\n",PORTNAME);\n gps_init(); // initialize the device\n loc_t gps,record; // a location structure\n while(1)\n {\n gps_location(&gps); // determine the...
138
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.38, "nodes": 75, "errors": 0, "source_hash": "376f2ace77f9679b6394ac0ce4e6e175a34b4963ca5d0f57740e3eb56d96c214", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,350
c
#ifndef Hist_cxx #define Hist_cxx #include <iostream> #include "TAxis.h" namespace AnalysisHelpers { template<typename RootNdHist_t> class Hist { public: Hist() : fAxes{}, fRawHist{nullptr}{} void AddAxis(std::string name, std::string title, const std::vector<double>& binEdges) { fAxes.push_back({name, tit...
30.65
69
(translation_unit) "#ifndef Hist_cxx\n#define Hist_cxx\n\n#include <iostream>\n#include "TAxis.h"\n\nnamespace AnalysisHelpers\n{\n\ntemplate<typename RootNdHist_t>\nclass Hist\n{\npublic:\n Hist() : fAxes{}, fRawHist{nullptr}{}\n void AddAxis(std::string name, std::string title, const std::vector<double>& binEdges)\...
863
24
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 30.65, "nodes": 508, "errors": 0, "source_hash": "3badc26301d389d3ebe3a3c61630700a245c9bf792a583c8e93149f0e1560d32", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,351
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> #import <T1Twitter/NSCoding-Protocol.h> @class NSDate, NSString; @interface TFNDirectMessageActivityLogEntry : N...
39.44
27
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n#import <T1Twitter/NSCoding-Protocol.h>\n\n@class NSDate, NSString;\n\n@interface TFND...
262
24
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.44, "nodes": 165, "errors": 0, "source_hash": "9d0b1271f247c2d16c5416cdef009d64d1684166343c74f8cab2a730fd6ffcd1", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,352
c
#include "gpio.h" void gpio_set(GPIO_TypeDef * port, uint_fast8_t pin) { port->BSRR = pin; } void gpio_clear(GPIO_TypeDef * port, uint_fast8_t pin) { port->BRR = pin; } uint_fast8_t gpio_read(GPIO_TypeDef * port, uint_fast8_t pin) { return(port->IDR & pin); } void gpio_write(GPIO_TypeD...
17.12
26
(translation_unit) "#include "gpio.h" \n \nvoid gpio_set(GPIO_TypeDef * port, uint_fast8_t pin) \n{ \n port->BSRR = pin; \n} \n \nvoid gpio_clear(GPIO_TypeDef * port, uint_fast8_t pin) \n{ \n port->BRR = pin; \n} \n \nuint_fast8_t gpio_read(GPIO_TypeDef * port, uint_fast8_t pin) \n{ \n return(port->IDR & pin)...
152
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.12, "nodes": 95, "errors": 0, "source_hash": "ae4a84a6dee0b5abdb935d55ed4027c80e461a4e34964c93b31ad426bf4b7b37", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,353
c
// // NSData+DBHash.h // DBCategoryKit_Example // // Created by DB on 2018/12/29. // Copyright © 2018年 DB. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSData (DBHash) /** * @brief md5 NSData */ @property (readonly) NSData *db_md5Data; /** * @brief sha1Dat...
16.72
60
(translation_unit) "//\n// NSData+DBHash.h\n// DBCategoryKit_Example\n//\n// Created by DB on 2018/12/29.\n// Copyright © 2018年 DB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSData (DBHash)\n\n/**\n * @brief md5 NSData\n */\n@property (readonly) NSData ...
162
25
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 16.72, "nodes": 106, "errors": 0, "source_hash": "199f7c8a765b8c59ef3562f9368c9495534f2a42a8dadfc3458433aae71d71bb", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
9,354
c
#ifndef TABLEVIEW_FROZEN_H #define TABLEVIEW_FROZEN_H #include "qt_subclasses_global.h" #include <QTableView> extern "C" QTableView* new_tableview_frozen(QWidget* parent = nullptr); extern "C" void toggle_freezer(QTableView* tableView = nullptr, int column = 0); class QTableViewFrozen : public QTableView { Q_OB...
37.93
28
(translation_unit) "#ifndef TABLEVIEW_FROZEN_H\n#define TABLEVIEW_FROZEN_H\n\n#include "qt_subclasses_global.h"\n#include <QTableView>\n\nextern "C" QTableView* new_tableview_frozen(QWidget* parent = nullptr);\nextern "C" void toggle_freezer(QTableView* tableView = nullptr, int column = 0);\n\nclass QTableViewFrozen : ...
184
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.93, "nodes": 117, "errors": 0, "source_hash": "22feef456e8a56ac683e4f9cf86732085a6ea69828851601d8df8daac86fdc9b", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,355
c
#include <stdio.h> #include <stdlib.h> int main() { int iDigit; char c; unsigned short digit = (1u)<<15; unsigned short dec = 0u; printf("16ビットの2進数を入力して下さい:"); for (iDigit=15; iDigit>=0; iDigit--) { if ( (c = getchar()) == '1' ) dec += digit; else if ( c != '0' ...
21.95
22
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int iDigit;\n char c;\n unsigned short digit = (1u)<<15; \n unsigned short dec = 0u;\n\n printf("16ビットの2進数を入力して下さい:");\n for (iDigit=15; iDigit>=0; iDigit--) {\n\n if ( (c = getchar()) == '1' )\n dec += ...
174
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 21.95, "nodes": 100, "errors": 0, "source_hash": "8de1f8735e9835524b32d25430781a56ae3ec8bff34c4a3c27b8032a024f8f55", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,356
c
/*****************Activity 6.1**************************/ // program for sequential search #include<stdio.h> #include<conio.h> #define MAX 20 void main() { int a[MAX]; int i,ele,size,count; count=0; clrscr(); printf("\n enter the size of an array: "); scanf("%d",&size); printf("\n Enter %d elements in array: ",s...
16.07
43
(translation_unit) "/*****************Activity 6.1**************************/\n// program for sequential search\n#include<stdio.h>\n#include<conio.h>\n#define MAX 20\nvoid main()\n{\n int a[MAX];\n int i,ele,size,count;\n count=0;\n clrscr();\n printf("\n enter the size of an array: ");\n scanf("%d",&size);\n printf("\...
303
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 16.07, "nodes": 154, "errors": 0, "source_hash": "b6075d0b16206897c5733803066cd5485dfb86f1df50814e42043596d027f2ec", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,357
c
/*============================================================================= TexGen: Geometric textile modeller. Copyright (C) 2006 <NAME> 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 ve...
21.05
153
(translation_unit) "/*=============================================================================\nTexGen: Geometric textile modeller.\nCopyright (C) 2006 <NAME>\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 Soft...
409
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 21.05, "nodes": 270, "errors": 0, "source_hash": "30c99b7631335e7d2f6efe5bd5f459cf9caf1fd13eacd348a23f8e0065eee7c7", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,358
c
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2013-2016 the Civetweb developers * Copyright (c) 2004-2013 <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...
38.68
63
(translation_unit) "/* \n * Copyright (c) 2016 <NAME>\n * Copyright (c) 2013-2016 the Civetweb developers\n * Copyright (c) 2004-2013 <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 deal\n * in the S...
395
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 38.68, "nodes": 254, "errors": 0, "source_hash": "3c9cc83407cb4371f693c1d26cfca58984589d5daee5b1fdf3ae021337b8fdef", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,359
c
//------------------------------------------------------------------------------------------------- // <copyright file="IBootstrapperBAFunction.h" company="Outercurve Foundation"> // Copyright (c) 2004, Outercurve Foundation. // This software is released under Microsoft Reciprocal License (MS-RL). // The license ...
41.83
23
(translation_unit) "//-------------------------------------------------------------------------------------------------\n// <copyright file="IBootstrapperBAFunction.h" company="Outercurve Foundation">\n// Copyright (c) 2004, Outercurve Foundation.\n// This software is released under Microsoft Reciprocal License (MS...
135
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.83, "nodes": 84, "errors": 0, "source_hash": "3228d2a8dbef314ab2d0fb38501e1808d880148a4fc34c382abdea1a8ac4fa7e", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,360
c
#pragma once #include "Application.h" #include "RigidBody/RigidBody.h" #include "RigidBody/Force/ForceRegistry.h" #include "RigidBody/Force/Aero.h" #include "RigidBody/Force/AeroControl.h" class FlightApplication : public Application { public: FlightApplication(); virtual ~FlightApplication(); /** Retur...
28.73
33
(translation_unit) "#pragma once\n\n#include "Application.h"\n#include "RigidBody/RigidBody.h"\n#include "RigidBody/Force/ForceRegistry.h"\n#include "RigidBody/Force/Aero.h"\n#include "RigidBody/Force/AeroControl.h"\n\nclass FlightApplication : public Application\n{\npublic:\n FlightApplication();\n\n virtual ~Fl...
209
15
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.73, "nodes": 121, "errors": 0, "source_hash": "ce9708c337daddce75d99f4864a8038f99ea7b5a9040fb3d9b9f6de8dddb7f1c", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,361
c
// // pgm.c // MAS_DZ2 // // Created by <NAME> on 06/01/2018. // Copyright © 2018 <NAME>. All rights reserved. // #include "pgm.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #define PGM_READ_BUFFER_LEN 256 #define MAX_RGB_VALUE 65536 void printErrorAndCloseStream(const char *message, FILE *fp) { ...
24.98
165
(translation_unit) "//\n// pgm.c\n// MAS_DZ2\n//\n// Created by <NAME> on 06/01/2018.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#include "pgm.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n\n#define PGM_READ_BUFFER_LEN 256\n#define MAX_RGB_VALUE 65536\n\nvoid printErrorAndCloseStrea...
1,154
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 24.98, "nodes": 662, "errors": 0, "source_hash": "6e056c4d40d89d6863e1b474ff9a45d7316c662a4539b167ee053782066c5475", "categorized_nodes": 455}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
9,362
c
#pragma once /* Heap Stack - a convenient way to allocation millions of small structures quickly and make them go away just as fast. The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
24.47
216
(ERROR) "#pragma once \n/* \n \nHeap Stack - a convenient way to allocation millions of small structures \n quickly and make them go away just as fast. \n \nThe MIT License (MIT) \n \nCopyright (c) 2015 <NAME> \n \nPermission is hereby granted, free of charge, to any person obtaining a copy \nof this softwa...
995
35
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 24.47, "nodes": 578, "errors": 0, "source_hash": "fba3c8e16d16bdc0ff3106751e773b22ae92e69c2d493e94ef6db15ff6bbca20", "categorized_nodes": 375}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\r\n/*\r\n\r...
9,363
c
#include "sched.h" #include "uart.h" #include "printf.h" #include "mm.h" #include "irq.h" static struct task_struct init_task = INIT_TASK; struct task_struct *current = &(init_task); struct task_struct *task[NR_TASKS] = {&(init_task)}; unsigned long nr_tasks = 1; void context_switch(struct task_struct *next) { if...
27.35
100
(translation_unit) "#include "sched.h"\n#include "uart.h"\n#include "printf.h"\n#include "mm.h"\n#include "irq.h"\n\nstatic struct task_struct init_task = INIT_TASK;\nstruct task_struct *current = &(init_task);\nstruct task_struct *task[NR_TASKS] = {&(init_task)};\nunsigned long nr_tasks = 1;\n\nvoid context_switch(str...
922
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 27.35, "nodes": 564, "errors": 0, "source_hash": "803824ca3ee2374e65a2bfbb492ff19fa9ec1e85b8ef3940a8a1baff8dcae1c4", "categorized_nodes": 409}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,364
c
#pragma once #include "ZobCameraController.h" #include "ZobObjects/Camera.h" class ZobCameraControllerFPS : public ZobCameraController { public: ZobCameraControllerFPS(Camera* c); ZobCameraControllerFPS(Camera * c, zobId guid); ~ZobCameraControllerFPS(); void Update(float dt) override; void ...
26.6
25
(translation_unit) "#pragma once\n#include "ZobCameraController.h"\n#include "ZobObjects/Camera.h"\nclass ZobCameraControllerFPS : public ZobCameraController\n{\npublic:\n ZobCameraControllerFPS(Camera* c);\n ZobCameraControllerFPS(Camera * c, zobId guid);\n ~ZobCameraControllerFPS();\n\n void Update...
173
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.6, "nodes": 112, "errors": 0, "source_hash": "2bef5fd592142aad940f170a362c61269b84c5014d93cc427fcb3f401b4b5aaf", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,365
c
#pragma once #include <memory> #include <string> #include <Buffer.h> #include <ColumnWiseMatrix.h> #include <Types.h> namespace cl { template<MemorySpace memorySpace = MemorySpace::Device, MathDomain mathDomain = MathDomain::Float> class ColumnWiseMatrixCollection { public: explicit ColumnWiseMatrixCollection(...
39.86
35
(translation_unit) "#pragma once\n\n#include <memory>\n#include <string>\n\n#include <Buffer.h>\n#include <ColumnWiseMatrix.h>\n#include <Types.h>\n\nnamespace cl\n{\n template<MemorySpace memorySpace = MemorySpace::Device, MathDomain mathDomain = MathDomain::Float>\n class ColumnWiseMatrixCollection\n {\n public:\n e...
504
26
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 39.86, "nodes": 314, "errors": 0, "source_hash": "28bd4ac52331099a710e661b5efc3e88a02adbb57878ac95f43d901659eec639", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,366
c
//-------------------------------------------------------------------------------------- // File: UIStyleManager.h // // Authored by: ATG // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MER...
27.69
112
(translation_unit) "//-------------------------------------------------------------------------------------- \n// File: UIStyleManager.h \n// \n// Authored by: ATG \n// \n// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \n// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \n// TH...
657
40
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 27.69, "nodes": 379, "errors": 0, "source_hash": "0a2acb14936301377c6d00190f43b9f5721599dd6261020f53492b410963b89e", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,367
c
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
37.11
149
(ERROR) "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b...
992
58
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 37.11, "nodes": 583, "errors": 0, "source_hash": "383b6f5452cbf8fea8dfbb2af78a92148b383e26b47550cfd0e295647b653af6", "categorized_nodes": 407}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Copyright (c) 202...
9,368
c
/** * @file Exception.h * @ingroup SQLiteCpp * @brief Encapsulation of the error message from SQLite3 on a std::runtime_error. * * Copyright (c) 2012-2013 <NAME> (<EMAIL>) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #pr...
23.91
34
(translation_unit) "/**\n * @file Exception.h\n * @ingroup SQLiteCpp\n * @brief Encapsulation of the error message from SQLite3 on a std::runtime_error.\n *\n * Copyright (c) 2012-2013 <NAME> (<EMAIL>)\n *\n * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt\n * or copy at http://opensour...
65
3
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.91, "nodes": 30, "errors": 0, "source_hash": "494e4b7a8ad93def77eea150d1bc064a280d01b98d5f75a199240faf92794941", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,369
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <utf.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <pwd.h> #include <errno.h> #include "util.h" enum { aFlag = 1, dFlag = 2, lFlag = 4, tFlag = 8, RFlag = 16, pFlag = 32,...
21.65
205
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n#include <utf.h>\n#include <dirent.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <pwd.h>\n#include <errno.h>\n#include "util.h"\n\nenum {\n aFlag = 1,\n dFlag = 2,\n lFlag = 4,\n ...
2,276
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 21.65, "nodes": 1423, "errors": 0, "source_hash": "cd8281d14fae41843624d847fd7484e769036729872e1e2c060bcdacadf1274d", "categorized_nodes": 954}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,370
c
#include "framework/logger.h" // #include "material_override.h" void const * gfx_material_override_find(struct Gfx_Material_Override const * override, uint32_t id, uint32_t size) { for (uint32_t i = 0, offset = override->offset; i < override->count; i++) { struct Gfx_Material_Override_Entry const * entry = (void *...
35.61
18
(translation_unit) "#include "framework/logger.h"\n\n//\n#include "material_override.h"\n\nvoid const * gfx_material_override_find(struct Gfx_Material_Override const * override, uint32_t id, uint32_t size) {\n for (uint32_t i = 0, offset = override->offset; i < override->count; i++) {\n struct Gfx_Material_Override_En...
225
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 35.61, "nodes": 136, "errors": 0, "source_hash": "2410888f50e26ae6e151a2fe51b5652ab41d01ee6996ba7e1b4ff74c5190360f", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,371
c
// // Created by 86759 on 2021/5/17. // #ifndef INETUTILS_UTILS_H #define INETUTILS_UTILS_H #include <stdint.h> struct timeval get_timeval(); uint64_t get_timestamp_us(); uint64_t get_timestamp_ms(); uint64_t get_timestamp_s(); #endif //INETUTILS_UTILS_H
22.18
11
(translation_unit) "//\n// Created by 86759 on 2021/5/17.\n//\n\n#ifndef INETUTILS_UTILS_H\n#define INETUTILS_UTILS_H\n\n#include <stdint.h>\n\nstruct timeval get_timeval();\nuint64_t get_timestamp_us();\nuint64_t get_timestamp_ms();\nuint64_t get_timestamp_s();\n\n#endif //INETUTILS_UTILS_H\n" (comment) "//" (comm...
49
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.18, "nodes": 32, "errors": 0, "source_hash": "45cc1edd0011328df5277f9eab8b6f9e60ee47934c85d294ae7cede28560bfe8", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,372
c
#pragma once #include "inttypes.h" #include <deque> class GpuStackAllocator { public: const uint64_t GpuStackBoarder = 0xFFFFFFFFFFFFFFFFULL; const uint64_t GpuAlignSize = 256; virtual ~GpuStackAllocator(); void resize(uint64_t size); inline static GpuStackAllocator& getInstance() { stat...
32.91
66
(translation_unit) "#pragma once\n#include "inttypes.h"\n#include <deque>\n\nclass GpuStackAllocator {\npublic:\n const uint64_t GpuStackBoarder = 0xFFFFFFFFFFFFFFFFULL;\n const uint64_t GpuAlignSize = 256;\n\n virtual ~GpuStackAllocator();\n\n void resize(uint64_t size);\n\n inline static GpuStackAlloca...
574
9
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 32.91, "nodes": 366, "errors": 0, "source_hash": "ed3db8ff17a804c23a37ac6a2960051bece8245248685f4c1c17efe5e13813f2", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,373
c
#if !defined(AFX_UNITAPPEARANCEPAGE_H__C724C026_915E_11D3_A0C4_BA0897ADE231__INCLUDED_) #define AFX_UNITAPPEARANCEPAGE_H__C724C026_915E_11D3_A0C4_BA0897ADE231__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // UnitAppearancePage.h : header file // #include "..\DataObjects\EUnitType.h" /////////...
31.55
56
(translation_unit) "#if !defined(AFX_UNITAPPEARANCEPAGE_H__C724C026_915E_11D3_A0C4_BA0897ADE231__INCLUDED_)\n#define AFX_UNITAPPEARANCEPAGE_H__C724C026_915E_11D3_A0C4_BA0897ADE231__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n// UnitAppearancePage.h : header file\n//\n\n#include "..\DataOb...
273
9
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 31.55, "nodes": 171, "errors": 0, "source_hash": "eb16968985a192747830b9c524d6a1d0faf7e47713b82aea00f20e22b3fba016", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
9,374
c
#ifndef _RESOURCE_H_ #define _RESOURCE_H_ #include <const/plantconst.h> inherit "/inherit/resource"; #endif
20.6
5
(translation_unit) "#ifndef _RESOURCE_H_\n#define _RESOURCE_H_\n\n#include <const/plantconst.h>\ninherit "/inherit/resource";\n\n#endif" (preproc_ifdef) "#ifndef _RESOURCE_H_\n#define _RESOURCE_H_\n\n#include <const/plantconst.h>\ninherit "/inherit/resource";\n\n#endif" (#ifndef) "#ifndef" (identifier) "_RESO...
19
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.6, "nodes": 13, "errors": 0, "source_hash": "07020baac25c98bbd5ee1f78a87096a71804139607a7ebea4488262717d15061", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _R...
9,375
c
#import <Foundation/Foundation.h> #import <Security/SecRandom.h> #import <Cordova/CDV.h> #ifndef __CORDOVA_4_0_0 #import <Cordova/NSData+Base64.h> #endif #import "RNEncryptor.h" #import "RNDecryptor.h" @interface FileRNCryptor : CDVPlugin { } - (void)encrypt:(CDVInvokedUrlCommand*)command; - (void)decrypt:(CDVInvoke...
32.83
18
(translation_unit) "#import <Foundation/Foundation.h>\n#import <Security/SecRandom.h>\n#import <Cordova/CDV.h>\n#ifndef __CORDOVA_4_0_0\n#import <Cordova/NSData+Base64.h>\n#endif\n#import "RNEncryptor.h"\n#import "RNDecryptor.h"\n\n\n@interface FileRNCryptor : CDVPlugin {\n}\n\n- (void)encrypt:(CDVInvokedUrlCommand*)co...
174
24
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.83, "nodes": 115, "errors": 0, "source_hash": "58b9e05ef31f42a2feb713bc389a770e6e87e0411ce5003a725f1b19c704eb19", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,376
c
#pragma once #include "..\Framework\Singleton.h" #include <chrono> template<typename TPeriod = std::chrono::high_resolution_clock::period> class timer { public: using clock = std::chrono::high_resolution_clock; using clock_duration = std::chrono::duration<clock::rep, TPeriod>; public: timer() : m_start_point(clock...
26.07
75
(translation_unit) "#pragma once\n#include "..\Framework\Singleton.h"\n#include <chrono>\n\ntemplate<typename TPeriod = std::chrono::high_resolution_clock::period>\nclass timer\n{\npublic:\n using clock = std::chrono::high_resolution_clock;\n using clock_duration = std::chrono::duration<clock::rep, TPeriod>;\n\npublic:...
723
41
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 26.07, "nodes": 440, "errors": 0, "source_hash": "1369b85896be0502a1b80a06f9303e2b6823b72ef6b9dbd15e0d48a21d69bc32", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,377
c
/** @file This file describes the contents of the ACPI Watchdog Description Table (WDDT). Some additional ACPI values are defined in Acpi1_0.h and Acpi2_0.h. @copyright Copyright 1999 - 2019 Intel Corporation. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _WDDT_H #define _WDD...
31.96
53
(translation_unit) "/** @file \n This file describes the contents of the ACPI Watchdog Description \n Table (WDDT). Some additional ACPI values are defined in Acpi1_0.h and \n Acpi2_0.h. \n \n @copyright \n Copyright 1999 - 2019 Intel Corporation. <BR> \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n**/ \n ...
107
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.96, "nodes": 93, "errors": 0, "source_hash": "e404ac9f0bd97d341e157f0ddd5ab35a01c1fb8ce7e35aefaad406aae8c6423d", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,378
c
// Copyright (C) Microsoft Corporation. All rights reserved. #pragma once #include <ntddk.h> #include <wdf.h> #include <initguid.h> #include <netadaptercx.h> #include "device.h" EXTERN_C_START // // WDFDRIVER Events // DRIVER_INITIALIZE DriverEntry; EVT_WDF_OBJECT_CONTEXT_CLEANUP UsbNcmHostEvtDriv...
24.42
24
(translation_unit) "// Copyright (C) Microsoft Corporation. All rights reserved. \n \n#pragma once \n \n#include <ntddk.h> \n#include <wdf.h> \n#include <initguid.h> \n#include <netadaptercx.h> \n#include "device.h" \n \nEXTERN_C_START \n \n// \n// WDFDRIVER Events \n// \n \nDRIVER_INITIALIZE DriverEntry; \nEVT_WDF_OBJ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.42, "nodes": 38, "errors": 0, "source_hash": "f0e28cf3c2d5f65b1fe2b4eb3496bd85ed080af8d6b3c0ee739aefb6421e40a8", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,379
c
/////////////////////////////////////////////////////////////////////////////// // Name: wx/msw/private/cotaskmemptr.h // Purpose: RAII class for pointers to be freed with ::CoTaskMemFree(). // Author: PB // Created: 2020-06-09 // Copyright: (c) 2020 wxWidgets team // Licence: wxWindows licenc...
26.65
71
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// Name: wx/msw/private/cotaskmemptr.h\n// Purpose: RAII class for pointers to be freed with ::CoTaskMemFree().\n// Author: PB\n// Created: 2020-06-09\n// Copyright: (c) 2020 wxWidgets team\n// Lic...
306
17
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 26.65, "nodes": 169, "errors": 0, "source_hash": "c6aa6239a7e2f6438f690ca1cd20c7e239d613e348a1513333d28ea3fc83a4e3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,380
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: /System/Library/PrivateFrameworks/BackRow.framework/BackRow */ // @protocol BRTabControlDelegate <NSObject> - (void)tabControl:(id)control didSelectTabItem:(id)item; - (void)t...
32.31
13
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: /System/Library/PrivateFrameworks/BackRow.framework/BackRow\n */\n\n//\n\n\n@protocol BRTabControlDelegate <NSObject>\n- (void)tabControl:(id)control didSe...
81
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.31, "nodes": 47, "errors": 0, "source_hash": "94b39f8031ba7845db0d55ca2df996e21ea01816cf4b2229656115e0c4674dfa", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol BRTabC...
9,381
c
#pragma once class CESDBServer : public CMessageSpace { class CClient { //#define CLIENT_USED 0x1 public: /* client : thread's ID*/ u32 ClientID; /* data */ u16 PID; CClient * pNext; public: CClient(void){}; ~CClient(void){}; }; //#define MAX_CLIENT 10 public: CE...
18.15
48
(translation_unit) "#pragma once \n \n \n \n \nclass CESDBServer : public CMessageSpace \n{ \n class CClient \n { \n //#define CLIENT_USED 0x1 \n public: \n /* client : thread's ID*/ \n u32 ClientID; \n \n /* data */ \n u16 PID; \n CClient * pNext; \n \n public: \n CClient(void){}; \n ~CClient(void){}; \n };...
250
2
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 18.15, "nodes": 156, "errors": 0, "source_hash": "13cc29b5fb82b1044d57d89eaffba3f529c4d1cb01cb937ad93f6ca3e32b9023", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,382
c
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <errno.h> #include "debug.h" #include "box86context.h" #include "dynarec.h" #include "emu/x86emu_private.h" #include "tools/bridge_private.h" #include "x86run.h" #include "x86emu.h" #include "box86stack.h" #include "callback.h" #include "emu/x86run_p...
30.95
165
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <pthread.h>\n#include <errno.h>\n\n#include "debug.h"\n#include "box86context.h"\n#include "dynarec.h"\n#include "emu/x86emu_private.h"\n#include "tools/bridge_private.h"\n#include "x86run.h"\n#include "x86emu.h"\n#include "box86stack.h"\n#include "c...
1,247
6
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 30.95, "nodes": 759, "errors": 0, "source_hash": "513b624dc501e4ef72e452046bff679e86e8df18de4ca260a991cd5f5e9f0c41", "categorized_nodes": 558}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,383
c
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ #ifndef __LIB_IPV4__ #define __LIB_IPV4__ #include <linux/ip.h> #include "dbg.h" static __always_inline int ipv4_load_daddr(struct __ctx_buff *ctx, int off, __u32 *dst) { return ctx_load_bytes(ctx, off + offsetof(struct ...
32.5
40
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/* Copyright (C) 2016-2020 Authors of Cilium */\n\n#ifndef __LIB_IPV4__\n#define __LIB_IPV4__\n\n#include <linux/ip.h>\n\n#include "dbg.h"\n\nstatic __always_inline int ipv4_load_daddr(struct __ctx_buff *ctx, int off,\n __u32 *dst)\n{\n return ctx_load_...
288
4
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.5, "nodes": 183, "errors": 0, "source_hash": "32041de27489e1f2c709d2548574e239d446e261a9c54859158a3d3b6c825234", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,384
c
#ifndef GSTATEMACHINE_H #define GSTATEMACHINE_H #include <memory> #include <map> namespace gincu { class GState; class GStateMachine { public: GStateMachine(); ~GStateMachine(); void gotoState(const int stateId); void registerState(GState * state); int getCurrentStateId() const; GSta...
14.21
33
(translation_unit) "#ifndef GSTATEMACHINE_H \n#define GSTATEMACHINE_H \n \n#include <memory> \n#include <map> \n \nnamespace gincu { \n \nclass GState; \n \nclass GStateMachine \n{ \npublic: \n GStateMachine(); \n ~GStateMachine(); \n \n void gotoState(const int stateId); \n \n void registerState(GState * state); \n \n...
138
5
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 14.21, "nodes": 83, "errors": 0, "source_hash": "122206e4421d42f776125bca042a61ba3e6faedf98368645232a2a754644e945", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,385
c
/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #ifndef ADIOS_BUFFER_H #define ADIOS_BUFFER_H #include "public/adios_types.h" void ...
41.65
20
(translation_unit) "/* \n * ADIOS is freely available under the terms of the BSD license described\n * in the COPYING file in the top level directory of this source distribution.\n *\n * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.\n */\n\n#ifndef ADIOS_BUFFER_H\n#define ADIOS_BUFFER_H\n\n#include...
126
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 41.65, "nodes": 91, "errors": 0, "source_hash": "db42dfe2c8c61b08157cee4761338a0ac63bc40d84e4d45fbe7435f63fa132fb", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,386
c
/* * * * * * * * * * * * * * * * * * * * * Event.h * 29.04.2020 * * * * * * * * * * * * * * * * * * * * * Part of 'Slim Engine' * https://github.com/laurensnol/slim * * * * * * * * * * * * * * * * *...
34.21
66
(translation_unit) "/* * * * * * * * * * * * * * * * * * * *\n * Event.h\n * 29.04.2020\n * * * * * * * * * * * * * * * * * * * *\n * Part of 'Slim Engine'\n * https://github.com/laurensnol/slim\n * * * * * * * * * * ...
163
9
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 34.21, "nodes": 96, "errors": 0, "source_hash": "6274e4811e68d796f9b266ec01bd4005bdf380bfe4e78a1fb016d1b1edf0e668", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SLIM_EVE...
9,387
c
// NES 2A03 APU sound chip emulator with simpler interface // Nes_Snd_Emu 0.1.7. Copyright (C) 2003-2005 <NAME>. GNU LGPL license. #ifndef SIMPLE_APU_H #define SIMPLE_APU_H #include "nes_apu/Nes_Apu.h" #include "nes_apu/Nes_Vrc6.h" #include "nes_apu/Nes_Vrc7.h" #include "nes_apu/Nes_Fds.h" #include "nes_apu/Nes_Mmc...
31.48
104
(translation_unit) "// NES 2A03 APU sound chip emulator with simpler interface\n\n// Nes_Snd_Emu 0.1.7. Copyright (C) 2003-2005 <NAME>. GNU LGPL license.\n\n#ifndef SIMPLE_APU_H\n#define SIMPLE_APU_H\n\n#include "nes_apu/Nes_Apu.h"\n#include "nes_apu/Nes_Vrc6.h"\n#include "nes_apu/Nes_Vrc7.h"\n#include "nes_apu/Nes_Fds...
654
7
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 31.48, "nodes": 420, "errors": 0, "source_hash": "d713b417191deb9e7f2f91c3072442d58ba722e79fa7d5bc1972f7e2427b4e60", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,388
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "Utils\buffer.h" #include "MageSettings.h" // for CameraIdentity #include "ORBDescriptor.h" #include "Memory\allocators.h" #include "arcana\utils\serialization\serializable.h" #include <opencv2\core\core.hpp> ...
37.27
171
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "Utils\buffer.h"\n#include "MageSettings.h" // for CameraIdentity\n#include "ORBDescriptor.h"\n\n#include "Memory\allocators.h"\n#include "arcana\utils\serialization\serializable.h"\n\n#...
1,457
80
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 37.27, "nodes": 820, "errors": 0, "source_hash": "9dd8dd1fcbb3d8dc1a7017835bbc2c922ee3819092a291e5034e41a9440c38ad", "categorized_nodes": 542}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,389
c
// ReactNativeVolumeController // // Created by <NAME> on 03/18/19 // Copyright © 2019. All rights reserved. // #import <React/RCTBridgeModule.h> #import <React/RCTEventEmitter.h> @interface RNVolumeControl : RCTEventEmitter <RCTBridgeModule> @end
26.89
9
(translation_unit) "// ReactNativeVolumeController\n//\n// Created by <NAME> on 03/18/19\n// Copyright © 2019. All rights reserved.\n//\n\n#import <React/RCTBridgeModule.h>\n#import <React/RCTEventEmitter.h>\n\n@interface RNVolumeControl : RCTEventEmitter <RCTBridgeModule>\n@end\n" (comment) "// ReactNativeVolume...
23
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.89, "nodes": 14, "errors": 0, "source_hash": "7ee14641b5b5f8aa5d1b25b37a382cce20b27f997050f41392181437ad646024", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Rea...
9,390
c
/* vim: set expandtab ts=4 sw=4: */ /* * You may redistribute this program and/or modify it under the terms of * the GNU General Public License as published by the Free Software Foundation, * either version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it...
35.1
51
(translation_unit) "/* vim: set expandtab ts=4 sw=4: */\n/*\n * You may redistribute this program and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation,\n * either version 3 of the License, or (at your option) any later version.\n *\n * This program is distr...
207
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 35.1, "nodes": 132, "errors": 0, "source_hash": "b9da642f211866b8408f72952edd8639346f992f04ca103b200dc8a429e3e1fb", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,391
c
#ifndef LIBANGLE_RENDERER_D3D_HLSLCOMPILER_H_ #define LIBANGLE_RENDERER_D3D_HLSLCOMPILER_H_ #include "libANGLE/Error.h" #include "common/angleutils.h" #include "common/platform.h" #include <vector> #include <string> namespace gl { class InfoLog; } namespace rx { struct CompileConfig { UINT flags; std::str...
30.15
41
(translation_unit) "#ifndef LIBANGLE_RENDERER_D3D_HLSLCOMPILER_H_\n#define LIBANGLE_RENDERER_D3D_HLSLCOMPILER_H_\n\n#include "libANGLE/Error.h"\n\n#include "common/angleutils.h"\n#include "common/platform.h"\n\n#include <vector>\n#include <string>\n\nnamespace gl\n{\nclass InfoLog;\n}\n\nnamespace rx\n{\n\nstruct Compi...
290
13
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.15, "nodes": 166, "errors": 0, "source_hash": "7e6da2531880a956240ad5e03b4b8754cb2bcfa5d231b85ee09b158ae837f78b", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,392
c
#if defined(cPROTO) #ifndef EDDL_UPSAMPLING3D_ONNX_H #define EDDL_UPSAMPLING3D_ONNX_H #include "eddl/serialization/onnx/onnx.pb.h" #include "eddl/layers/core/layer_core.h" /* * ONNX IMPORT */ // Handled with the LScale layer import function /* * ONNX EXPORT */ // OPSET: 13 void build_resize_node_from_upsampling...
25.19
16
(translation_unit) "#if defined(cPROTO)\n#ifndef EDDL_UPSAMPLING3D_ONNX_H\n#define EDDL_UPSAMPLING3D_ONNX_H\n#include "eddl/serialization/onnx/onnx.pb.h"\n#include "eddl/layers/core/layer_core.h"\n\n/*\n * ONNX IMPORT\n */\n\n// Handled with the LScale layer import function\n\n/*\n * ONNX EXPORT\n */\n\n// OPSET: 13\nv...
58
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.19, "nodes": 37, "errors": 0, "source_hash": "e96796929b0b7580b4f3861e63d8abf59f316048578919524a2069615825e1c7", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined...
9,393
c
/* Declarations for getopt. Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softw...
34.74
61
(translation_unit) "/* Declarations for getopt.\n Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as p...
270
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 34.74, "nodes": 204, "errors": 0, "source_hash": "182de1222541d39c4076f3984a79158efa32e8144d32e1e3e1c063f7ee18dfd8", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,394
c
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2012 UniPro <<EMAIL>> * http://ugene.unipro.ru * * 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...
33.84
49
(translation_unit) "/**\n * UGENE - Integrated Bioinformatics Tools.\n * Copyright (C) 2008-2012 UniPro <<EMAIL>>\n * http://ugene.unipro.ru\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 Foundat...
90
3
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.84, "nodes": 44, "errors": 0, "source_hash": "5c4a13b1e120029aeef8c91e945b6c7a4c6198161866bc2da33d5c1621f775e9", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,395
c
//Copyright (c) 2012 The Board of Trustees of The University of Alabama //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // //1. Redistributions of source code must retain the above copyright //...
35.04
117
(ERROR) "//Copyright (c) 2012 The Board of Trustees of The University of Alabama\n//All rights reserved.\n//\n//Redistribution and use in source and binary forms, with or without\n//modification, are permitted provided that the following conditions\n//are met:\n//\n//1. Redistributions of source code must retain the ab...
427
19
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 35.04, "nodes": 250, "errors": 0, "source_hash": "469d10a49ff809502df39bc924ca40887e4c9a15dbc7605f72f0010e1d7059b9", "categorized_nodes": 152}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//Copyright (c) 2012 The...
9,396
c
/* * Copyright (c) 2020, Infosys Ltd. * * SPDX-License-Identifier: Apache-2.0 */ /****************************************************************************** * * This is an auto generated file. * Please do not edit this file. * All edits to be made through template source file * <TOP-DIR/scripts/GtpV2Stack...
32.07
28
(translation_unit) "/*\n * Copyright (c) 2020, Infosys Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n /******************************************************************************\n *\n * This is an auto generated file.\n * Please do not edit this file.\n * All edits to be made through template source file\n...
114
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.07, "nodes": 61, "errors": 0, "source_hash": "dc6c4a13011e275e1787f9938be0eeca6076f7b5d5fedef42d14c7be11456ac1", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,397
c
#include <sys/types.h> #include <xv6/param.h> #include <sys/syscall.h> #include "defs.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "gaia.h" // User code makes a system call with syscall // System call number in r1. // Arguments on the stack, from the user call to the C // library system call f...
26.97
135
(translation_unit) "#include <sys/types.h>\n#include <xv6/param.h>\n#include <sys/syscall.h>\n#include "defs.h"\n#include "memlayout.h"\n#include "mmu.h"\n#include "proc.h"\n#include "gaia.h"\n\n// User code makes a system call with syscall\n// System call number in r1.\n// Arguments on the stack, from the user call to...
1,162
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 26.97, "nodes": 755, "errors": 0, "source_hash": "c583c57a545e5d921f1fba7a756a2540bdcc322236c49cb3e238f410119534eb", "categorized_nodes": 525}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,398
c
#ifndef __MMixerChannel #define __MMixerChannel #include <framework/MTypes.h> #include <framework/listener/IFinalizeListener.h> #include "../interfaces/IProcessor.h" #include "../util/IEnvelopeFollower.h" /** * * MMixerChannel (C)2001-2003 <NAME> * * Abstract base class of a mixerchannel. * with a...
20.58
119
(translation_unit) "#ifndef __MMixerChannel \n#define __MMixerChannel \n \n#include <framework/MTypes.h> \n#include <framework/listener/IFinalizeListener.h> \n \n#include "../interfaces/IProcessor.h" \n#include "../util/IEnvelopeFollower.h" \n \n/** \n * \n * MMixerChannel (C)2001-2003 <NAME> \n * \n * Abstract base cl...
337
17
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 20.58, "nodes": 247, "errors": 0, "source_hash": "b07735a4685b435be4594a45a20e19f4d05bd3771b0db35462875567520786f0", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,399