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
#pragma once #include <Foundation/Math/Vec3.h> #include <Core/World/Declarations.h> #include <Foundation/Types/RefCounted.h> struct EZ_CORE_DLL ezCoordinateSystem { EZ_DECLARE_POD_TYPE(); ezVec3 m_vForwardDir; ezVec3 m_vRightDir; ezVec3 m_vUpDir; }; class EZ_CORE_DLL ezCoordinateSystemProvider : public ezR...
26.79
24
(translation_unit) "#pragma once\n\n#include <Foundation/Math/Vec3.h>\n\n#include <Core/World/Declarations.h>\n#include <Foundation/Types/RefCounted.h>\n\nstruct EZ_CORE_DLL ezCoordinateSystem\n{\n EZ_DECLARE_POD_TYPE();\n\n ezVec3 m_vForwardDir;\n ezVec3 m_vRightDir;\n ezVec3 m_vUpDir;\n};\n\nclass EZ_CORE_DLL ezC...
135
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.79, "nodes": 79, "errors": 0, "source_hash": "52cfec8017e26ff40da7b44b64a3bba21b52923de0a1c1250ca10b50c9d22164", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,900
c
/* * serial.h * vision * * Created by 6. 270 on 1/17/10. * Copyright 2010 Massachusetts Institute of Technology. All rights reserved. * */ NSFileHandle *open_serial(NSString *path); void sync_serial(NSFileHandle *fh); void send_packet(NSFileHandle *fh, void *packet, uint8_t length);
23.67
12
(translation_unit) "/*\n * serial.h\n * vision\n *\n * Created by 6. 270 on 1/17/10.\n * Copyright 2010 Massachusetts Institute of Technology. All rights reserved.\n *\n */\n\n\nNSFileHandle *open_serial(NSString *path);\nvoid sync_serial(NSFileHandle *fh);\nvoid send_packet(NSFileHandle *fh, void *packet, uint8_t ...
53
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.67, "nodes": 40, "errors": 0, "source_hash": "89aa96a54a21793f72d9b97efb780e1af6272b20e019d68359d05c7efebbd075", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "NSFileHand...
10,901
c
/* * Copyright (c) 2020-2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <utils/circbuf.h> #include "test.h" struct test_struct { int a; char b; }; CIRCBUF_DEF(struct test_struct, test_cb, 10); int test_boundary() { int i, it...
19.2
148
(translation_unit) "/*\n * Copyright (c) 2020-2021 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\n#include <utils/circbuf.h>\n\n#include "test.h"\n\nstruct test_struct\n{\n int a;\n char b;\n};\n\nCIRCBUF_DEF(struct test_struct, test_cb...
1,040
1
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 19.2, "nodes": 594, "errors": 0, "source_hash": "38f4eda2e9bb85fca75dc7df01039e165a8d54d645b6609d34b3870e910f09ae", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,902
c
/* * File: lora_packet.h * Author: <NAME> * Email: <EMAIL> * Created on March 21, 2018, 9:12 AM */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include "aes/aes.h" #ifndef LORA_PACKET_H #define LORA_PACKET_H #ifdef __cplusplus extern...
24.24
63
(translation_unit) "/* \n * File: lora_packet.h\n * Author: <NAME>\n * Email: <EMAIL>\n * Created on March 21, 2018, 9:12 AM\n */\n\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#include "aes/aes.h"\n\n#ifndef LORA_PACKET_H\n#define LORA_P...
422
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 24.24, "nodes": 327, "errors": 0, "source_hash": "26c0e1bb44e47ce3d556e9390b2652863a053c344cca0194038bc35613216392", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,903
c
// // AWFTropicalCyclone.h // AerisWeatherKit // // Created by <NAME> on 8/9/18. // Copyright © 2018 AerisWeather, LLC. All rights reserved. // #import <AerisWeatherKit/AWFWeatherObject.h> #import <AerisWeatherKit/AWFGeoPolygon.h> NS_ASSUME_NONNULL_BEGIN typedef NSString *AWFTropicalBasin NS_TYPED_EXTENSIBLE_ENU...
38.37
269
(translation_unit) "//\n// AWFTropicalCyclone.h\n// AerisWeatherKit\n//\n// Created by <NAME> on 8/9/18.\n// Copyright © 2018 AerisWeather, LLC. All rights reserved.\n//\n\n#import <AerisWeatherKit/AWFWeatherObject.h>\n#import <AerisWeatherKit/AWFGeoPolygon.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NSString *AWFTrop...
1,209
245
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 38.37, "nodes": 886, "errors": 0, "source_hash": "156e3fac6f165ec089cb247f17f01894a098bb174180143010702f7fe83b46f7", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import...
10,904
c
#ifndef _WMRDE_TEST_ODE_H_ #define _WMRDE_TEST_ODE_H_ #include <iostream> #include <iomanip> #include <time.h> #include <vector> //#include <memory> //for unique_ptr, C++11 only #include <Eigen/Dense> #include <wmrde/demo/models.h> #include <wmrde/demo/terrains.h> #include <wmrde/dynamics.h> #include <wmrde/ode/si...
24.44
18
(translation_unit) "#ifndef _WMRDE_TEST_ODE_H_\n#define _WMRDE_TEST_ODE_H_\n\n#include <iostream>\n#include <iomanip>\n#include <time.h>\n#include <vector>\n//#include <memory> //for unique_ptr, C++11 only\n\n#include <Eigen/Dense>\n\n#include <wmrde/demo/models.h>\n#include <wmrde/demo/terrains.h>\n#include <wmrde/dyn...
64
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.44, "nodes": 52, "errors": 0, "source_hash": "1ccb4843ba01fec9f2ce0c9d5af0c40127fd18036f9b2bdaaa1762b313bd7f55", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,905
c
// // UserResponse.h // Douyin // // Created by Abakus on 2021/3/28. // Copyright © 2021年 Abakus. All rights reserved. // #import "BaseResponse.h" #import "User.h" @interface UserResponse:BaseResponse @property (nonatomic, strong) User *data; @end
20.25
12
(translation_unit) "//\n// UserResponse.h\n// Douyin\n//\n// Created by Abakus on 2021/3/28.\n// Copyright © 2021年 Abakus. All rights reserved.\n//\n\n#import "BaseResponse.h"\n#import "User.h"\n\n@interface UserResponse:BaseResponse\n\n@property (nonatomic, strong) User *data;\n\n@end\n" (comment) "//" (com...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.25, "nodes": 26, "errors": 0, "source_hash": "35cfef726bcbdbcd39c5219c4dd22482d2dfe7bb4da3ceed397b4a7ed7eefdda", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
10,906
c
#import "MOBProjection.h" @interface MOBProjectionEPSG4148 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG4148 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG4148 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "4e030d1afa344d161f7236af5b21ba8a09e53c8e10d4974c0779de833041eaeb", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
10,907
c
#pragma once namespace midier { enum class Mode : char { Ionian, Dorian, Phrygian, Lydian, Mixolydian, Aeolian, Locrian, // last element to indicate the # of actual elements Count, }; namespace mode { using Name = char[11]; // "mixolydian" + '\0' void name(Mode mode, /* out */ ...
15.67
21
(translation_unit) "#pragma once\n\nnamespace midier\n{\n\nenum class Mode : char\n{\n Ionian,\n Dorian,\n Phrygian,\n Lydian,\n Mixolydian,\n Aeolian,\n Locrian,\n\n // last element to indicate the # of actual elements\n Count,\n};\n\nnamespace mode\n{\n\nusing Name = char[11]; // "mixolydia...
87
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.67, "nodes": 50, "errors": 0, "source_hash": "07c1d1741434d4456712103c68e5441b0626db3a6e7158e1c439c684213360d7", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,908
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #if !defined(Q_MOC_RUN) #include <AzToolsFramework/AssetBrowser/AssetBrowserBus.h> #...
38.62
58
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#if !defined(Q_MOC_RUN)\n#include <AzToolsFramework/As...
285
17
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.62, "nodes": 163, "errors": 0, "source_hash": "339ea25678e19667201533bb44e6781ec182740d1c9bedfc0997e1791a6bc007", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,909
c
#include <ctype.h> #include "tertium_cpu.h" int isgraph(int c) { return (uchar)c - '!' < 94; }
12.71
7
(translation_unit) "#include <ctype.h>\n\n#include "tertium_cpu.h"\n\nint\nisgraph(int c)\n{\n return (uchar)c - '!' < 94;\n}\n" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include "tertium_cpu.h"\n" (#include) "#include" (string...
41
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 12.71, "nodes": 28, "errors": 0, "source_hash": "525231a691f689880b21e96faa92fd61fcbdffa312187c8df158448004cd9a42", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,910
c
#pragma once #include "Person.h" #include <afx.h> class Collect{ public: static int GetPersonInfo(Person* person,HWND hwnd); static int GetQueryInfo(Person* person, HWND hwnd); static void ShowPerson(Person* person, HWND hwnd); private: static int CheckName(Person* person); static int Check...
29.25
16
(translation_unit) "#pragma once \n#include "Person.h" \n#include <afx.h> \n \nclass Collect{ \npublic: \n static int GetPersonInfo(Person* person,HWND hwnd); \n static int GetQueryInfo(Person* person, HWND hwnd); \n static void ShowPerson(Person* person, HWND hwnd); \nprivate: \n static int CheckName(Person* ...
159
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.25, "nodes": 102, "errors": 0, "source_hash": "1444c54cba4422f8b0d903ee2c6cce8c279f385579d4c8417524d175b04ebc93", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,911
c
// // TGAccessoryManager.h // // Copyright 2012 NeuroSky, Inc.. All rights reserved. // // The TGAccessoryManager class handles ThinkGear-enabled accessories connected to a device, // sending accessory connect/disconnect and data receipt notifications to a designated delegate. // #import "TGAccessoryDelegate.h" #...
33.09
58
(translation_unit) "//\n// TGAccessoryManager.h\n//\n// Copyright 2012 NeuroSky, Inc.. All rights reserved.\n//\n// The TGAccessoryManager class handles ThinkGear-enabled accessories connected to a device,\n// sending accessory connect/disconnect and data receipt notifications to a designated delegate.\n//\n\n#impo...
414
32
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.09, "nodes": 281, "errors": 0, "source_hash": "a957add0990e2b1bcf21298603eb8f9d7d4f6e2005e36547a1a33533c04e30f0", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
10,912
c
#include <stdio.h> #include <stdlib.h> static int[] orig_array_input { 2, 4, 3, 6, 1 }; int hashbit_sort(int a[]) { byte mask = 0x00; //will store 8 bits //since the values in the //array never repeat ...
29.48
54
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nstatic int[] orig_array_input { 2, 4, 3, 6, 1 };\n\nint hashbit_sort(int a[])\n{\n byte mask = 0x00; //will store 8 bits\n //since the values in the \n ...
443
6
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 29.48, "nodes": 259, "errors": 0, "source_hash": "43e61cf951cb323b70c184f114c5b8f8b2e6d56900a513d62f2c49c34e364b1b", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,913
c
/* * main.c */ #include "string.h" #include "handy.h" #include "LCD.h" #include "EEPROM.h" uint32_t F_SysClk = 80000000; void Lock_initialize(); void correct_message(); void incorrect_message(); void choose_new_password(); char* enter_password(); uint16_t eepromPasswordAddress = 1; int main(void) { clo...
27.12
139
(translation_unit) "/*\n * main.c\n */\n\n\n#include "string.h"\n\n\n#include "handy.h"\n#include "LCD.h"\n#include "EEPROM.h"\n\n\n\nuint32_t F_SysClk = 80000000;\n\n\nvoid Lock_initialize();\nvoid correct_message();\nvoid incorrect_message();\nvoid choose_new_password();\nchar* enter_password();\n\n\nuint16_t eepromP...
1,109
16
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 27.12, "nodes": 617, "errors": 0, "source_hash": "64822bd443990ca2536b469d489496171939b751b5080b0706be5a103e27cc27", "categorized_nodes": 416}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,914
c
#pragma once #include <apemode/vk/GraphicsDevice.Vulkan.h> #include <apemode/vk/NativeHandles.Vulkan.h> namespace apemodevk { struct ImageComposite { VkImage pImg = VK_NULL_HANDLE; VmaAllocator pAllocator = VK_NULL_HANDLE; VmaAllocation pAllocation = VK_NULL_HANDLE; ...
35.19
88
(translation_unit) "#pragma once\n\n#include <apemode/vk/GraphicsDevice.Vulkan.h>\n#include <apemode/vk/NativeHandles.Vulkan.h>\n\nnamespace apemodevk {\n\nstruct ImageComposite {\n VkImage pImg = VK_NULL_HANDLE;\n VmaAllocator pAllocator = VK_NULL_HANDLE;\n VmaAllocation pAllo...
694
28
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.19, "nodes": 420, "errors": 0, "source_hash": "30e9b4d0d75572e3ed3ae26022c2f6d147ba01a40f24c961dfbbacc769b58de2", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,915
c
/****************************************************************************/ /// @file GUIOSGView.h /// @author <NAME> /// @date 19.01.2012 /// @version $Id$ /// // An OSG-based 3D view on the simulation /****************************************************************************/ // SUMO, Simulation of Urban...
36.14
233
(translation_unit) "/****************************************************************************/\n/// @file GUIOSGView.h\n/// @author <NAME>\n/// @date 19.01.2012\n/// @version $Id$\n///\n// An OSG-based 3D view on the simulation\n/****************************************************************************/\n...
1,396
43
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 36.14, "nodes": 836, "errors": 0, "source_hash": "374eec5de1c6a1a43c1bd395cfa842fc505fdc7dfea3c821fa412f1930b5c6cd", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,916
c
// // CKJEsayCell.h // MobileHospital_Renji // // Created by chenkaijie on 2019/5/26. // Copyright © 2019 Lyc. All rights reserved. // #import "CKJStackCell.h" NS_ASSUME_NONNULL_BEGIN @class CKJBaseBtnsCellModel, CKJBtnItemData, CKJBaseBtnsCell; typedef void(^CKJBaseBtnsCellRowBlock)(CKJBaseBtnsCellModel *m); t...
43.84
61
(translation_unit) "//\n// CKJEsayCell.h\n// MobileHospital_Renji\n//\n// Created by chenkaijie on 2019/5/26.\n// Copyright © 2019 Lyc. All rights reserved.\n//\n\n#import "CKJStackCell.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class CKJBaseBtnsCellModel, CKJBtnItemData, CKJBaseBtnsCell;\n\ntypedef void(^CKJBaseBtnsCellRow...
431
48
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 43.84, "nodes": 299, "errors": 0, "source_hash": "21bbfa4b3fc5b38616ca8dd27e28ca4548191f3f9e4f1bd6d7f6ddb629e7312d", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
10,917
c
/* Copyright (c) 2007 <NAME> */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a */ /* copy of this software and associated documentation files (the "Software"), */ /* ...
40.08
145
(translation_unit) "/* Copyright (c) 2007 <NAME> */\n/* */\n/* Permission is hereby granted, free of charge, to any person obtaining a */\n/* copy of this software and associated documentation files (...
1,622
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 40.08, "nodes": 1081, "errors": 0, "source_hash": "910f59acd34143d22be815d643a9ba2396d271969173c95d4bf1e426f06edda4", "categorized_nodes": 781}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,918
c
#ifndef QUADRATIC_KOCH_CURVE_H #define QUADRATIC_KOCH_CURVE_H #include "Demo2D.h" #include <DemoUtils/DrawSkeleton.h> class QuadraticKochCurve : public Demo2D { private: TreeNode *QuadraticKochCurveSkeleton; public: virtual void Draw() override { glColor3f(0.0,0.0,0.0); DrawSkeleton DrawSkel; DrawSkel.Dra...
22.63
19
(translation_unit) "#ifndef QUADRATIC_KOCH_CURVE_H\n#define QUADRATIC_KOCH_CURVE_H\n\n#include "Demo2D.h"\n\n#include <DemoUtils/DrawSkeleton.h>\n\nclass QuadraticKochCurve : public Demo2D\n{\nprivate:\n TreeNode *QuadraticKochCurveSkeleton;\n\npublic:\n\n virtual void Draw() override\n {\n glColor3f(0.0,0.0,0.0);\n ...
100
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.63, "nodes": 58, "errors": 0, "source_hash": "6d0d6f4d5d2343e937e0a15dfedd577751fc4a697d654b6143ac9d952106d564", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,919
c
// // NSDate+RBExtension.h // RBTool // // Created by william on 16/10/13. // Copyright © 2016年 Roobo. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (RBExtension) //获取年月日如:19871127. - (NSString *)getFormatYearMonthDay; //该日期是该年的第几周 - (int )getWeekOfYear; //返回day天后的日期(若day为负数,则为|day...
18.51
148
(translation_unit) "//\n// NSDate+RBExtension.h\n// RBTool\n//\n// Created by william on 16/10/13.\n// Copyright © 2016年 Roobo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (RBExtension)\n//获取年月日如:19871127.\n- (NSString *)getFormatYearMonthDay;\n//该日期是该年的第几周\n\n- (int )getWeekO...
615
29
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 18.51, "nodes": 366, "errors": 0, "source_hash": "9f59f8f145906ab67219eea5e55e735642b037a81ef203e893b6e2f552f60a22", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
10,920
c
/* Generated by RuntimeBrowser. */ @protocol UIWebFormControl @required - (void)controlBeginEditing; - (void)controlEndEditing; - (UIView *)controlView; @end
18.88
8
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol UIWebFormControl\n\n@required\n\n- (void)controlBeginEditing;\n- (void)controlEndEditing;\n- (UIView *)controlView;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol UIWebFormControl\n\n@required" (ERROR) "@" ...
45
5
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.88, "nodes": 28, "errors": 0, "source_hash": "a7295272a79a81e34de1fb85326bc0929ac672bf8ff92ccbc4d673fdfa4c9b1d", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol UIWebFo...
10,921
c
#pragma once #include "CoreMinimal.h" #include "GameFramework/PlayerController.h" #include "MouseController.generated.h" UCLASS() /** * @brief Makes mouse visible in-game * */ class PGTPROJECT_API AMouseController : public APlayerController { GENERATED_BODY() /** * @brief Construct a new AMouseController obje...
16.68
22
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "GameFramework/PlayerController.h"\n#include "MouseController.generated.h"\n\nUCLASS()\n/**\n * @brief Makes mouse visible in-game\n * \n */\nclass PGTPROJECT_API AMouseController : public APlayerController\n{\n GENERATED_BODY()\n\n /**\n * @brief Co...
66
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 16.68, "nodes": 31, "errors": 0, "source_hash": "8eac175386e1144bab3a7c8aebf68a4f6f4094ac2727109661471c14e593f482", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,922
c
#pragma once #include "eztcp.h" // 以阻塞模式发送缓冲区数据,只有当全部发送完毕(返回NULL)或出错(返回SOCKET_ERROR)时才返回 int mass_send(SOCKET s, const char* buf, SIZET len) noexcept; // 以阻塞模式接收缓冲区数据,只有当全部接收完毕(返回NULL)或出错(返回SOCKET_ERROR)时才返回 int mass_recv(SOCKET s, char* buf, SIZET len) noexcept; // 发送包头,成功返回sizeof(HEADER_TYPE),失败返回SOCKET_ERROR inli...
36.79
19
(translation_unit) "#pragma once\n#include "eztcp.h"\n\n// 以阻塞模式发送缓冲区数据,只有当全部发送完毕(返回NULL)或出错(返回SOCKET_ERROR)时才返回\nint mass_send(SOCKET s, const char* buf, SIZET len) noexcept;\n\n// 以阻塞模式接收缓冲区数据,只有当全部接收完毕(返回NULL)或出错(返回SOCKET_ERROR)时才返回\nint mass_recv(SOCKET s, char* buf, SIZET len) noexcept;\n\n// 发送包头,成功返回sizeof(HEADE...
192
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.79, "nodes": 123, "errors": 0, "source_hash": "0872c276aa38ac937e7efff5890704deeda48e411d1271cbb5dc41bff37dfb54", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,923
c
// // Created by <NAME> on 03/05/2017. // #pragma once #include "Animation.h" namespace vd { // Only rotation animation is supported. class Rotation : public Animation { public: float startTime; float speed; float startAngle; Rotation(float startAngle, float delay, float speed); }; typedef std...
20.75
16
(translation_unit) "//\n// Created by <NAME> on 03/05/2017.\n//\n\n#pragma once\n\n#include "Animation.h"\n\nnamespace vd {\n\n// Only rotation animation is supported.\nclass Rotation : public Animation {\npublic:\n\n float startTime;\n\n float speed;\n\n float startAngle;\n\n Rotation(float startAngle, flo...
77
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.75, "nodes": 44, "errors": 0, "source_hash": "1941bc2856fb87aab87c04402a665a8d8b1bcf4abd5fe584eef79c9aaa867052", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,924
c
// // MIDV2PaymentListViewController.h // MidtransKit // // Created by Vanbungkring on 10/19/17. // Copyright © 2017 Midtrans. All rights reserved. // #import "MidtransUIPaymentController.h" @interface MIDV2PaymentListViewController : MidtransUIPaymentController @end
26.2
10
(translation_unit) "//\n// MIDV2PaymentListViewController.h\n// MidtransKit\n//\n// Created by Vanbungkring on 10/19/17.\n// Copyright © 2017 Midtrans. All rights reserved.\n//\n\n#import "MidtransUIPaymentController.h"\n\n@interface MIDV2PaymentListViewController : MidtransUIPaymentController\n\n@end\n" (comment...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.2, "nodes": 9, "errors": 0, "source_hash": "8f8e465cc4156d96c7c5dcb2237b3a324df5991e83a1ff8f453c230e83cc2220", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"Mid...
10,925
c
/* * Copyright (c) 2011-2016 University of Texas at Austin. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * This file is part of PerfExpert. * * PerfExpert is free software: you can redistribute it and/or modify it under * the terms of the The University of Texas at Austin Resea...
23.67
46
(translation_unit) "/*\n * Copyright (c) 2011-2016 University of Texas at Austin. All rights reserved.\n *\n * $COPYRIGHT$\n *\n * Additional copyrights may follow\n *\n * This file is part of PerfExpert.\n *\n * PerfExpert is free software: you can redistribute it and/or modify it under\n * the terms of the The Unive...
94
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.67, "nodes": 70, "errors": 0, "source_hash": "43c396f893c4b0ecda4766878c70221d6c0d52b41720120e4b1d2f6b8bc91870", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,926
c
// // PDSingleMessageViewModel.h // PopdeemSDK // // Created by <NAME> on 15/02/2016. // Copyright © 2016 Popdeem. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "PDMessage.h" #import "PDUISingleMessageViewController.h" @interface PDUISingleMessageViewModel : NSObject @...
40.85
27
(translation_unit) "//\n// PDSingleMessageViewModel.h\n// PopdeemSDK\n//\n// Created by <NAME> on 15/02/2016.\n// Copyright © 2016 Popdeem. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "PDMessage.h"\n#import "PDUISingleMessageViewController.h"\n\n@interface PDUISin...
276
56
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 40.85, "nodes": 204, "errors": 0, "source_hash": "9a8030b513fad43fead328c02e45741c1fd4505be68b2dffcfa1e93801283233", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
10,927
c
// // LoginPresenter.h // ProjectManager // // Created by <NAME> on 05.06.2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface LoginPresenter : NSObject + (NSArray *)selectNameAndPasswordFromEmployee; + (NSArray *)selectNameAndPasswordFromEmployee:(NSString *)u...
29.33
12
(translation_unit) "//\n// LoginPresenter.h\n// ProjectManager\n//\n// Created by <NAME> on 05.06.2015.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface LoginPresenter : NSObject\n\n+ (NSArray *)selectNameAndPasswordFromEmployee;\n+ (NSArray *)selectNameAndP...
62
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.33, "nodes": 38, "errors": 0, "source_hash": "2136c7f4ad4538448677b3f92c3ea45cecc686757c190b8772b80ced8aab4c88", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,928
c
#include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/wait.h> #include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define UNCONN_DGRAM_PATH "/tmp/unconn_dgram.sock" static void test_send_unconn_dgram(void) { struct sockaddr_un un; int s, n; s...
23.37
67
(translation_unit) "#include <sys/types.h>\n#include <sys/socket.h>\n#include <sys/un.h>\n#include <sys/wait.h>\n\n#include <err.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#define UNCONN_DGRAM_PATH "/tmp/unconn_dgram.sock"\n\nstatic void\ntest_send_unconn_dgram(void)\n{\n s...
677
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 23.37, "nodes": 368, "errors": 0, "source_hash": "8abc508f31aade479be6ec84beb3271f55d1a03ceb25fb704338b514d52e6f8a", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,929
c
#pragma once #include <iostream> #include <assert.h> template <class T> class DynamicVector { private: T* array; unsigned int size; unsigned int capacity; static const unsigned int DEFAUL_CAPACITY = 10; void resize(double factor = 2); public: // constructors and destructor DynamicVector(); DynamicVector(unsi...
21.53
133
(ERROR) "#pragma once\n#include <iostream>\n#include <assert.h>\n\ntemplate <class T>\nclass DynamicVector {\nprivate:\n T* array;\n unsigned int size;\n unsigned int capacity;\n static const unsigned int DEFAUL_CAPACITY = 10;\n\n void resize(double factor = 2);\n\npublic:\n // constructors and destructor\n DynamicVect...
1,131
102
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 21.53, "nodes": 754, "errors": 0, "source_hash": "0e3bdebe9aa20ffad3b96b6f6288e0d52af5152e949fe7bc4b4588185c8b7774", "categorized_nodes": 487}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n#include <...
10,930
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:03:09 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/AVFoundation.framework/AVFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>...
35.74
23
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:03:09 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/Frameworks/AVFoundation.framework/AVFoundation\n* classdump-dyld is licensed under GPLv3, Copyri...
100
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 35.74, "nodes": 68, "errors": 0, "source_hash": "9e9fe2abcde11668ece237163ffe9227e796c6a5413d94819e2d1967f68e577a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "p", "parent": nu...
10,931
c
#include <math.h> #include <stdio.h> #include <stdlib.h> static const int val1 = -5; const int val2 = 10; static int val3 = -20; int val4 = -15; extern int errno; static int add_abs(const int v1, const int v2) { return abs(v1) + abs(v2); } int main() { int val5 = 20; printf("%d / %d / %d / %d\n", add_abs(val1,...
22.41
17
(translation_unit) "#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nstatic const int val1 = -5;\nconst int val2 = 10;\nstatic int val3 = -20;\nint val4 = -15;\nextern int errno;\n\nstatic int add_abs(const int v1, const int v2) {\n return abs(v1) + abs(v2);\n}\n\nint main() {\n int val5 = 20;\n printf(...
154
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.41, "nodes": 94, "errors": 0, "source_hash": "46004c3ccabc28b9b0fa78e1df10c74a6015c4cd9469b792d0714a146aa61560", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,932
c
/**ARGS: symbols -L -o -DFOO=0 -UBAR */ /**SYSCODE: = 0 */ #ifdef FOO #if FOO == 1 #endif #if FOO == 2 #endif #else #if FOO == 1 #endif #if FOO == 2 #endif #endif #ifndef BAR #if BAR == 1 #endif #if BAR == 2 #endif #else #if BAR == 1 #endif #if BAR == 2 #endif #endif
10.17
24
(translation_unit) "/**ARGS: symbols -L -o -DFOO=0 -UBAR */\n/**SYSCODE: = 0 */\n#ifdef FOO\n#if FOO == 1\n#endif\n#if FOO == 2\n#endif\n#else\n#if FOO == 1\n#endif\n#if FOO == 2\n#endif\n#endif\n#ifndef BAR\n#if BAR == 1\n#endif\n#if BAR == 2\n#endif\n#else\n#if BAR == 1\n#endif\n#if BAR == 2\n#endif\n#endif\n" (com...
79
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 10.17, "nodes": 76, "errors": 0, "source_hash": "79403abdfd34d0986a39ffcf59b596593727275607b4c55200d977d04b94e30a", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef F...
10,933
c
//************************************************************************ // Copyright 2021 Massachusetts Institute of Technology // SPDX License Identifier: BSD-2-Clause // // File Name: cep_aes.cc/h // Program: Common Evaluation Platform (CEP) // Description: aes test for CEP // Notes: //***...
23.67
43
(translation_unit) "//************************************************************************\n// Copyright 2021 Massachusetts Institute of Technology\n// SPDX License Identifier: BSD-2-Clause\n//\n// File Name: cep_aes.cc/h\n// Program: Common Evaluation Platform (CEP)\n// Description: aes test for CEP...
178
3
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.67, "nodes": 98, "errors": 0, "source_hash": "a2dc0708ba8e4b3c4a578af8919bde35363339cf45c46fbf332d159391dbfef2", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,934
c
/* * PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * Copyright (c) 2005 <NAME> */ #include "guInternal.h" int sceGuFinish(void) { switch (gu_curr_context)...
18.86
72
(translation_unit) "/*\n * PSP Software Development Kit - http://www.pspdev.org\n * -----------------------------------------------------------------------\n * Licensed under the BSD license, see LICENSE in PSPSDK root for details.\n *\n * Copyright (c) 2005 <NAME>\n */\n\n#include "guInternal.h"\n\nint sceGuFinish(voi...
392
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 18.86, "nodes": 218, "errors": 0, "source_hash": "9d13caea5977c51f0129e29d751830e31e198f4569d38d1a1f90861ea46b9ac4", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,935
c
/// Code from ReEngine library /// all rights belongs to Risist (<NAME>) (<EMAIL>) #pragma once #include <Re\Common\Control\ControlMultiKey.h> namespace Control { /// WIP class Axis { public: virtual float32 getValue() const = 0; }; /// axis created from values of two keys /// takes only values: 1, 0, -...
19.64
53
(translation_unit) "/// Code from ReEngine library\n/// all rights belongs to Risist (<NAME>) (<EMAIL>)\n#pragma once\n#include <Re\Common\Control\ControlMultiKey.h>\n\nnamespace Control\n{\n /// WIP\n \n \n class Axis\n {\n public:\n virtual float32 getValue() const = 0;\n\n };\n\n /// axis created from values of two...
173
5
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 19.64, "nodes": 103, "errors": 0, "source_hash": "c50342df2d0a08909bc2b5e34e8787454b802cad91eb2b326830955e90ade1be", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,936
c
#include <hthread.h> #include <config.h> #include <gpio/gpio.h> #include <stdio.h> #define BUTTON_RIGHT 0x01 #define BUTTON_LEFT 0x02 #define BUTTON_DOWN 0x04 #define BUTTON_UP 0x08 #define BUTTON_CENTER 0x10 void gpio_test( gpio_t *leds, gpio_t *btns, gpio_t *dips ) { Huint ind; Huint ...
31.57
72
(translation_unit) "#include <hthread.h>\n#include <config.h>\n#include <gpio/gpio.h>\n#include <stdio.h>\n\n#define BUTTON_RIGHT 0x01\n#define BUTTON_LEFT 0x02\n#define BUTTON_DOWN 0x04\n#define BUTTON_UP 0x08\n#define BUTTON_CENTER 0x10\n\nvoid gpio_test( gpio_t *leds, gpio_t *btns, gpio_t *dips )\...
706
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.57, "nodes": 448, "errors": 0, "source_hash": "ce540850b3526be233171e74e1a67cbb9ac7715e1311ffdcd1460b212b32d258", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,937
c
/* ** EPITECH PROJECT, 2018 ** circular buffer ** File description: ** destroy */ #include "circular_buffer.h" void cbuffer_destroy(circular_buffer_t *buffer) { free(buffer->buffer); free(buffer); }
15.75
12
(translation_unit) "/*\n** EPITECH PROJECT, 2018\n** circular buffer\n** File description:\n** destroy\n*/\n\n#include "circular_buffer.h"\n\nvoid cbuffer_destroy(circular_buffer_t *buffer)\n{\n free(buffer->buffer);\n free(buffer);\n}\n" (comment) "/*\n** EPITECH PROJECT, 2018\n** circular buffer\n** File descriptio...
42
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.75, "nodes": 23, "errors": 0, "source_hash": "1c43e44ebc2d687499a9fcf69692fcb082afff7c0180b7d68c91d24c73af42d4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,938
c
// // ICVideoModel.h // ICome // // Created by zhangrongwu on 16/6/28. // Copyright © 2016年 iCom. All rights reserved. // #import <Foundation/Foundation.h> @interface ICVideoModel : NSObject @property (nonatomic, strong)NSString *imageKey; @property (nonatomic, assign) int width; // pic width @property (nonatomi...
33.35
17
(translation_unit) "//\n// ICVideoModel.h\n// ICome\n//\n// Created by zhangrongwu on 16/6/28.\n// Copyright © 2016年 iCom. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ICVideoModel : NSObject\n\n@property (nonatomic, strong)NSString *imageKey;\n@property (nonatomic, assign) int width;...
142
28
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.35, "nodes": 98, "errors": 0, "source_hash": "3254d8bcad3f0f098a269af3422b599dc1f4ac6f63c40d2af6018ec7964fe758", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,939
c
#ifndef __MPU6050_H #define __MPU6050_H #include "mpuiic.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 //ALIENTEK战舰STM32开发板V3 //MPU6050 驱动代码 //正点原子@ALIENTEK //技术论坛:www.openedv.com //创建日期:2015/1/17 //版本:V1.0 //版权所有,盗版必究。 //Copyright(C) 广州市星翼电子科技有限公司 2...
45.39
101
(translation_unit) "#ifndef __MPU6050_H\n#define __MPU6050_H\n#include "mpuiic.h"\n//////////////////////////////////////////////////////////////////////////////////\n//本程序只供学习使用,未经作者许可,不得用于其它任何用途\n//ALIENTEK战舰STM32开发板V3\n//MPU6050 驱动代码\n//正点原子@ALIENTEK\n//技术论坛:www.openedv.com\n//创建日期:2015/1/17\n//版本:V1.0\n//版权所有,盗版必究。...
495
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 45.39, "nodes": 416, "errors": 0, "source_hash": "0187483168055f34055df6af79fb7a08ba8ccba89ccd7f892e1fff7f628fdd87", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,940
c
/*! * Copyright (c) 2017-present, SeetaTech, Co.,Ltd. * * Licensed under the BSD 2-Clause License. * You should have received a copy of the BSD 2-Clause License * along with the software. If not, See, * * <https://opensource.org/licenses/BSD-2-Clause> * * --------------------------------------------------...
33.15
54
(translation_unit) "/*!\n * Copyright (c) 2017-present, SeetaTech, Co.,Ltd.\n *\n * Licensed under the BSD 2-Clause License.\n * You should have received a copy of the BSD 2-Clause License\n * along with the software. If not, See,\n *\n * <https://opensource.org/licenses/BSD-2-Clause>\n *\n * ---------------------...
416
17
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.15, "nodes": 243, "errors": 0, "source_hash": "77373b7db9589513adeeba0debeba18367f6a516b2c2f664462147394d4ce941", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,941
c
// // NSMutableArray+GYH.h // YHCategory // // Created by 郭月辉 on 2017/4/20. // Copyright © 2017年 Theshy. All rights reserved. // #import <Foundation/Foundation.h> @interface NSMutableArray (GYH) /** * @brief 添加一个对象到数组,无须检查对象是否为nil * * @param object 要添加到数组中的对象 */ - (void)addSafeObject:(id)object; @end
18.75
16
(translation_unit) "//\n// NSMutableArray+GYH.h\n// YHCategory\n//\n// Created by 郭月辉 on 2017/4/20.\n// Copyright © 2017年 Theshy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSMutableArray (GYH)\n\n/**\n * @brief 添加一个对象到数组,无须检查对象是否为nil\n *\n * @param object 要添加到数组中的对象\n */\n- (...
42
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.75, "nodes": 22, "errors": 0, "source_hash": "afd14a8ecb8ba70fb2e9becca1442a51575063ededa92e240a880941e43a8d53", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
10,942
c
#include <std.h> #include "/d/deku/inherits/forest.h" inherit FIRE_TUNI; void create() { ::create(); set_long(TO->query_long()+"%^RED%^ The tunnel dead ends "+ "here and your only option to trek back eastward.%^RESET%^"); set_exits(([ "east" : FTUN_ROOMS"firetunneln21", ] )); } void reset...
21.03
32
(translation_unit) "#include <std.h>\n#include "/d/deku/inherits/forest.h"\ninherit FIRE_TUNI;\n\nvoid create() {\n ::create();\n set_long(TO->query_long()+"%^RED%^ The tunnel dead ends "+\n "here and your only option to trek back eastward.%^RESET%^");\n set_exits(([\n "east" : FTUN_ROOMS"firetunnel...
252
4
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.03, "nodes": 124, "errors": 0, "source_hash": "153f1f554279b602a0cb9109f1e53fa442c9ac38668126e177f8fab11d24c730", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,943
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2018 Linaro Limited, All rights reserved. * Author: <NAME> <<EMAIL>> */ #ifndef _CORESIGHT_CORESIGHT_CTI_H #define _CORESIGHT_CORESIGHT_CTI_H #include <asm/local.h> #include <linux/spinlock.h> #include "coresight-priv.h" /* * Device registers * 0x000 - 0...
33.32
216
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright (c) 2018 Linaro Limited, All rights reserved.\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef _CORESIGHT_CORESIGHT_CTI_H\n#define _CORESIGHT_CORESIGHT_CTI_H\n\n#include <asm/local.h>\n#include <linux/spinlock.h>\n#include "coresight-priv.h"\n\n/*...
852
1
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 33.32, "nodes": 642, "errors": 0, "source_hash": "8d66e8af18b00701ae36a6e79367f512f77b133d6ea865da4865f794684598bf", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,944
c
/************************************************************************* > File Name: Container.cpp > Author: ziqiang > Mail: <EMAIL> > Created Time: 2018年05月14日 星期一 10时54分53秒 ************************************************************************/ #include <iostream> #include <list> #include "Vector.h" #ifn...
23.87
47
(translation_unit) "/*************************************************************************\n > File Name: Container.cpp\n > Author: ziqiang\n > Mail: <EMAIL> \n > Created Time: 2018年05月14日 星期一 10时54分53秒\n ************************************************************************/\n\n#include <iostream>\n#include <lis...
369
20
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.87, "nodes": 202, "errors": 0, "source_hash": "fda27c369ec2bcccbffa3eacd3fa308c00c884504dd37ba622e9844f2d7ad455", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": ">\n#...
10,945
c
#include <stdio.h> #include <string.h> #define MAX 21 int main() { char poker_hand[MAX]; char *c = fgets(poker_hand, MAX, stdin); int v[5], p[3], q=0, flush=1; char suit; for(int i = 0; i < 5; ++i, c+=2) { switch (*c) { case 'J': v[i] = 11; break; case 'Q': v[i] = 12; break; case 'K': v[i] ...
27.95
38
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#define MAX 21\n\nint main() {\n char poker_hand[MAX];\n char *c = fgets(poker_hand, MAX, stdin);\n int v[5], p[3], q=0, flush=1;\n char suit;\n \n for(int i = 0; i < 5; ++i, c+=2) {\n switch (*c) {\n case 'J': v[i] = 11; break;\n case 'Q': v[i]...
675
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 27.95, "nodes": 453, "errors": 0, "source_hash": "bc185dd01b13495daf08aafd607083cfc4ad0ede584a41972e87c3edc329cc47", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,946
c
/* The number of primes up to 75000 is 7393 and took it 1s to solve it in parallel and 2s sequential */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include <omp.h> static const unsigned int verify_subdomain(const unsigned int start, const unsigned int chunck) { unsigned int i = ...
38.79
71
(translation_unit) "/*\n The number of primes up to 75000 is 7393 and took it 1s to solve it in parallel and 2s sequential\n*/\n#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n#include <math.h>\n#include <omp.h>\n\nstatic const unsigned int verify_subdomain(const unsigned int start, const unsigned int ch...
648
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 38.79, "nodes": 434, "errors": 0, "source_hash": "8ffbae37b39b5a5168b3e1af14bb08d0a2a1ff39e902351d65ee70b57224f8ab", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,947
c
#ifndef K_STREAMS_DICTOUTPUTSTREAM_H #define K_STREAMS_DICTOUTPUTSTREAM_H #include "../OutputStream.h" #include "DictComp.h" #include "DictHelper.h" #include <string> namespace K { /** * output-stream using a very simple dictionary compression * like LZW */ class DictOutputStream : public OutputStream { p...
23.52
60
(translation_unit) "#ifndef K_STREAMS_DICTOUTPUTSTREAM_H\n#define K_STREAMS_DICTOUTPUTSTREAM_H\n\n#include "../OutputStream.h"\n#include "DictComp.h"\n#include "DictHelper.h"\n\n#include <string>\n\nnamespace K {\n\n /**\n * output-stream using a very simple dictionary compression\n * like LZW\n */\n class DictOutpu...
375
8
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 23.52, "nodes": 204, "errors": 0, "source_hash": "b91ead4034a406310d28e03768b8848579b7aaeb74adf164f39921a912cc4747", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,948
c
#include "libtest.h" #include <stdio.h> const char * get_returnstring(const char *inputstring) { static char one_shot[1024]; one_shot[1023] = '\0'; snprintf(one_shot, 1023, "Hello %s", inputstring); return one_shot; }
22.4
10
(translation_unit) "#include "libtest.h"\n#include <stdio.h>\n\nconst char *\nget_returnstring(const char *inputstring)\n{\n static char one_shot[1024];\n one_shot[1023] = '\0';\n snprintf(one_shot, 1023, "Hello %s", inputstring);\n return one_shot;\n}\n" (preproc_include) "#include "libtest.h"\n" (#i...
75
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 41, "errors": 0, "source_hash": "ebc5307373c38108a0e4a57d482bd2e92d54b24d4d3894ce7a1353404cfed72f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,949
c
/* * Copyright (c) 2018 Cisco and/or its affiliates. * 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 applicabl...
29.33
51
(translation_unit) "/*\n * Copyright (c) 2018 Cisco and/or its affiliates.\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 * ...
136
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.33, "nodes": 100, "errors": 0, "source_hash": "a34f2bb6cc5b5a3792d221f9b1002496906ecae953621aec309c23b77ff6fbf9", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,950
c
#pragma once #include <cstring> namespace mg_ray { namespace foundation{ class Input { public: Input() = default; static constexpr int SIZE_OF_KEYS = 256; ~Input() = default; void Initialize() { memset(m_keys, 0, sizeof(bool) * SIZE_OF_KEYS); }; inline void KeyDown(unsigned int input) { m_keys[input] = tr...
28.67
24
(translation_unit) "#pragma once\n#include <cstring>\n\nnamespace mg_ray {\nnamespace foundation{\nclass Input {\n\npublic:\n Input() = default;\n static constexpr int SIZE_OF_KEYS = 256;\n ~Input() = default;\n\n void Initialize() { memset(m_keys, 0, sizeof(bool) * SIZE_OF_KEYS); };\n\n inline void KeyDown(unsign...
252
4
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.67, "nodes": 151, "errors": 0, "source_hash": "103c59e6c163d0148306560e0fa99b0c247f0070b313c3ac2881064d5f4d63ee", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,951
c
#ifndef HEAP_H #define HEAP_H #include <vector> class Heap { private: int heapsize; std::vector<int> heap; int parent(int); int left(int); int right(int); int leafSearch(int); void siftDown(int); public: Heap(std::vector<int>); void maxHeapify(int); void buildMaxHeap(); ...
15.62
24
(translation_unit) "#ifndef HEAP_H\n#define HEAP_H\n\n#include <vector>\n\nclass Heap\n{\nprivate:\n int heapsize;\n std::vector<int> heap;\n \n int parent(int);\n int left(int);\n int right(int);\n int leafSearch(int);\n void siftDown(int);\npublic:\n Heap(std::vector<int>);\n\n void maxH...
152
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 15.62, "nodes": 99, "errors": 0, "source_hash": "d7284e7ccca668b985eaecaffa162ff9ad918ebfab96a16abbfac20b4d0ac33f", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,952
c
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ #ifndef BASETYPE_INCLUDED #define BASETYPE_INCLUDED /* BASE TYPE DECLARATIONS The routines in this module are concerned with the constr...
36.09
88
(translation_unit) "/*\n * Copyright 2002-2011, The TenDRA Project.\n * Copyright 1997, United Kingdom Secretary of State for Defence.\n *\n * See doc/copyright/ for the full copyright terms.\n */\n\n\n#ifndef BASETYPE_INCLUDED\n#define BASETYPE_INCLUDED\n\n\n/*\n BASE TYPE DECLARATIONS\n\n The routines in this m...
557
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 36.09, "nodes": 439, "errors": 0, "source_hash": "ceab0081b415d06185446bab4d4d24fce2b504edb1e3356af270730e710042eb", "categorized_nodes": 276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,953
c
#include <stdint.h> #include <stdio.h> #include <string.h> #include "dscpi.h" size_t scpi_impl_write(scpi_t *context, const char *data, size_t len) { (void) context; hexdump("scpi reply", (uint8_t *) data, len); tmc_glue_send_data((uint8_t *) data, len); return len; } int scpi_impl_error(scpi_t * context, int_fas...
24.67
36
(translation_unit) "#include <stdint.h>\n#include <stdio.h>\n#include <string.h>\n#include "dscpi.h"\n\nsize_t scpi_impl_write(scpi_t *context, const char *data, size_t len)\n{\n (void) context;\n hexdump("scpi reply", (uint8_t *) data, len);\n tmc_glue_send_data((uint8_t *) data, len);\n return len;\n}\n\nint scpi_imp...
264
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.67, "nodes": 159, "errors": 0, "source_hash": "faddad64891e873860f0999d5aa16787c3ee3aedf9c173fdf9db651bb69e5c8e", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,954
c
//with a global variable int i; int j; int main(void) { }
8.67
6
(translation_unit) "//with a global variable\n\nint i;\nint j;\nint main(void)\n{\n}\n\n" (comment) "//with a global variable" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int j;" (primitive_type) "int" (identifier) "j" (;) ";" (function_definitio...
22
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 8.67, "nodes": 13, "errors": 0, "source_hash": "8cac95f464062b8be6be8a7de35a51499e6f1775e814f4f0bd50f8ff0a06969e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int i;", "par...
10,955
c
// // Created by <NAME> on 27/12/2021. // #ifndef ZREGEXSTANDALONE_CPP_H #define ZREGEXSTANDALONE_CPP_H #include <fstream> #include <string> #include "codegen.h" #include "fa/fa.h" #include "opts.h" #include "spdlog/fmt/fmt.h" namespace ZRegex { class CppCodeGen { public: CppCodeGen(std::unique_ptr<FiniteAu...
36
33
(translation_unit) "//\n// Created by <NAME> on 27/12/2021.\n//\n\n#ifndef ZREGEXSTANDALONE_CPP_H\n#define ZREGEXSTANDALONE_CPP_H\n\n#include <fstream>\n#include <string>\n\n#include "codegen.h"\n#include "fa/fa.h"\n#include "opts.h"\n#include "spdlog/fmt/fmt.h"\n\nnamespace ZRegex {\n class CppCodeGen {\n public:\n ...
334
17
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.0, "nodes": 198, "errors": 0, "source_hash": "e44f5487bcfdc8571370e1917e0fec75fdb04aac246119fd2414188bf37eb31c", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,956
c
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:17:24 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/ProVideo....
30.3
30
(translation_unit) "/*\n * This header is generated by classdump-dyld 1.5\n * on Tuesday, November 10, 2020 at 10:17:24 PM Mountain Standard Time\n * Operating System: Version 14.2 (Build 18K57)\n * Image Source: /System/Library/Pri...
233
11
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.3, "nodes": 120, "errors": 0, "source_hash": "fc2aeb14e17efd34d0dfea4fbbbb6a88b763ce8f53ccd9125569f20bd9c3f7ab", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <P...
10,957
c
#ifndef PIPELINE_H #define PIPELINE_H #include "Math3d.h" #include "Camera.h" struct Orientation { Vector3f m_scale; Vector3f m_rotation; Vector3f m_pos; Orientation() { m_scale = Vector3f(1.0f, 1.0f, 1.0f); m_rotation = Vector3f(0.0f, 0.0f, 0.0f); m_pos = Vector3f(0.0f, 0.0f, 0.0f); } }; class Pipeli...
19.59
109
(translation_unit) "#ifndef PIPELINE_H\n#define PIPELINE_H\n\n#include "Math3d.h"\n#include "Camera.h"\n\nstruct Orientation\n{\n Vector3f m_scale;\n Vector3f m_rotation;\n Vector3f m_pos;\n\n Orientation()\n {\n m_scale = Vector3f(1.0f, 1.0f, 1.0f);\n m_rotation = Vector3f(0.0f, 0.0f, 0.0f);\n m_pos = Vector3f(0.0f...
767
25
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 19.59, "nodes": 438, "errors": 0, "source_hash": "ebe59de4014736cea01c7869e8bdf84dc47afc94d3f97163b1c72171cfa25128", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,958
c
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
33.31
65
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE...
377
22
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.31, "nodes": 225, "errors": 0, "source_hash": "7465dd3a3c8b39b63a21079189cfca20ca4bcece24b2d72a0dac3422e620942f", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,959
c
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the ...
22.78
85
(translation_unit) "/******************************************************************************\n *\n * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of version 2 of the GNU General Public Licens...
273
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 22.78, "nodes": 215, "errors": 0, "source_hash": "b5f2fe720aa54d7d12df756e92ee0101112d513d35317f8451a655ca9390bea6", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,960
c
/* * Filename: osapi_testcase_common.c * * Purpose: This file contains unit test cases for items in the "osfileapi-common" file * * Notes: * */ /* * Includes */ #include "os-vxworks-coveragetest.h" #include <overrides/stdlib.h> #include <overrides/taskLib.h> #include <overrides/shellLib.h> #include "ut-os...
23.84
75
(translation_unit) "/*\n * Filename: osapi_testcase_common.c\n *\n * Purpose: This file contains unit test cases for items in the "osfileapi-common" file\n *\n * Notes:\n *\n */\n\n\n/*\n * Includes\n */\n\n#include "os-vxworks-coveragetest.h"\n\n#include <overrides/stdlib.h>\n#include <overrides/taskLib.h>\n#include <...
223
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 23.84, "nodes": 122, "errors": 0, "source_hash": "1701be89e5a8d0788e37a6dea44d1d5da036457c71b22996e73ff0632b374223", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,961
c
/** * Copyright (c) 2014-2015, RongCloud. * All rights reserved. * * All the contents are the copyright of RongCloud Network Technology Co.Ltd. * Unless otherwise credited. http://rongcloud.cn * */ // RCUtilities.h // Created by Heq.Shinoda on 14-5-15. #ifndef __RCUtilities #define __RCUtilities #import <UI...
21.05
186
(translation_unit) "/**\n * Copyright (c) 2014-2015, RongCloud.\n * All rights reserved.\n *\n * All the contents are the copyright of RongCloud Network Technology Co.Ltd.\n * Unless otherwise credited. http://rongcloud.cn\n *\n */\n\n// RCUtilities.h\n// Created by Heq.Shinoda on 14-5-15.\n\n#ifndef __RCUtilities\n#...
578
32
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 21.05, "nodes": 348, "errors": 0, "source_hash": "49f970f18204d172f26cb9fd3388561c29cb7ba51bd37cc9206ce73125e09729", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,962
c
#include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/errno.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> /* linux help manual open a terminal then type the following command man select compile command gc...
24.78
129
(translation_unit) "#include <arpa/inet.h>\n#include <netinet/in.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/errno.h>\n#include <sys/select.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n/*\nlinux help manual\nopen a terminal then type the following comma...
867
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 24.78, "nodes": 506, "errors": 0, "source_hash": "12bf8cb6df8ca42b55ff95b6b5a6799fddd8b883434fee0f6baf5e0706e3bf66", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,963
c
// // PayMethodVM.h // YouChengTire // // Created by WangZhipeng on 16/3/26. // Copyright © 2016年 WangZhipeng. All rights reserved. // #import "BaseVM.h" @interface PayMethodVM : BaseVM /** * 0 : 在线支付 * 1 : 货到付款 */ @property (strong, nonatomic) NSNumber *payMethodTypeNumber; @end
18.33
15
(translation_unit) "//\n// PayMethodVM.h\n// YouChengTire\n//\n// Created by WangZhipeng on 16/3/26.\n// Copyright © 2016年 WangZhipeng. All rights reserved.\n//\n\n#import "BaseVM.h"\n\n@interface PayMethodVM : BaseVM\n\n/**\n * 0 : 在线支付\n * 1 : 货到付款\n */\n@property (strong, nonatomic) NSNumber *payMethodTypeNumb...
37
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.33, "nodes": 23, "errors": 0, "source_hash": "b7ac00330ad950b9b43616035b1aae869656e02654d282f61bcc7783a19b47fd", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
10,964
c
#pragma once #include <Windows.h> #include "stdafx.h" class CR_Callback; using namespace System; #include "CR_Callback.h" #include "ConnectionStatus.h" #include "DetectorStatus.h" #include "DetectorTemperature.h" #include "SystemInfo.h" #include "ModeInfo.h" #include "RegisterationInfo.h" #include "RefStatusInfo....
23.09
146
(translation_unit) "ragma once\n\n#include <Windows.h>\n\n#include "stdafx.h"\n\nclass CR_Callback;\n\nusing namespace System;\n\n#include "CR_Callback.h"\n#include "ConnectionStatus.h"\n#include "DetectorStatus.h"\n#include "DetectorTemperature.h"\n#include "SystemInfo.h"\n#include "ModeInfo.h"\n#include "Registeratio...
917
33
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 23.09, "nodes": 589, "errors": 0, "source_hash": "d915f39e6ec1354b07d743369dcbf7a7f41afc38605d32546eca28070fd41a41", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
10,965
c
// // YBPlayerLogManager.h // YiBanClient // // Created by Sun on 2019/12/25. // Copyright © 2019 <NAME>. All rights reserved. // #define YBPlayerLog(format,...) [YBPlayerLogManager logWithFunction:__FUNCTION__ lineNumber:__LINE__ formatString:[NSString stringWithFormat:format, ##__VA_ARGS__]] #import <Foundati...
31.96
23
(translation_unit) "//\n// YBPlayerLogManager.h\n// YiBanClient\n//\n// Created by Sun on 2019/12/25.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n\n#define YBPlayerLog(format,...) [YBPlayerLogManager logWithFunction:__FUNCTION__ lineNumber:__LINE__ formatString:[NSString stringWithFormat:format, ##__V...
129
7
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.96, "nodes": 72, "errors": 0, "source_hash": "d74d67a04299ec801279126341f406a0159b45769b2ae108b49513c63a6bc250", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "d...
10,966
c
static const char* skycube_ps_dx = R"( TextureCube g_skyTexture; SamplerState g_skySampler; float3 g_cameraPosition; float4x4 g_cameraProjInvMat; struct PS_Input { float4 SV_Position : SV_POSITION; float4 Position : POSITION0; float2 UV : UV0; }; float4 main( const PS_Input Input ) : SV_Target { floa...
29
21
(translation_unit) "atic const char* skycube_ps_dx = R"(\n\nTextureCube g_skyTexture;\nSamplerState g_skySampler;\n\nfloat3 g_cameraPosition;\nfloat4x4 g_cameraProjInvMat;\n\nstruct PS_Input\n{\n float4 SV_Position : SV_POSITION;\n float4 Position : POSITION0;\n float2 UV : UV0;\n};\n\nfloat4 main( const PS_I...
167
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.0, "nodes": 112, "errors": 0, "source_hash": "31ada85b6b83a2f66289db2cf1daf9b3a50c5090346ffc9541fb1d07d46ce4a7", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "atic const...
10,967
c
// // LJCoreDataManager.h // LJCoreData // // Created by LiJie on 16/6/21. // Copyright © 2016年 LiJie. All rights reserved. // #import <Foundation/Foundation.h> #import "Area+CoreDataProperties.h" @interface LJCoreDataManager : NSObject +(instancetype)shareCoreDataManager; -(void)saveModelWithName:(NSString*)na...
20.86
21
(translation_unit) "//\n// LJCoreDataManager.h\n// LJCoreData\n//\n// Created by LiJie on 16/6/21.\n// Copyright © 2016年 LiJie. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Area+CoreDataProperties.h"\n\n@interface LJCoreDataManager : NSObject\n\n+(instancetype)shareCoreDataManager;\n\n-(v...
108
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 20.86, "nodes": 71, "errors": 0, "source_hash": "a810c8825a4eb67c38cd830133b52e798946a6e72fe130118e22dd2cc8944e52", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,968
c
/*requires <stdio.h> */ #define SERIALIZE_REGISTER(NAME) serialize_register(NAME##_serialize, NAME##_deserialize, #NAME) typedef void (*SerializeFunc)(FILE *f); void serialize_register(SerializeFunc serialize, SerializeFunc deserialize, const char *name);
41.67
6
(translation_unit) "/*requires\n<stdio.h>\n*/\n#define SERIALIZE_REGISTER(NAME) serialize_register(NAME##_serialize, NAME##_deserialize, #NAME)\n\ntypedef void (*SerializeFunc)(FILE *f);\n\nvoid serialize_register(SerializeFunc serialize, SerializeFunc deserialize, const char *name);\n" (comment) "/*requires\n<stdio....
52
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 41.67, "nodes": 36, "errors": 0, "source_hash": "463d02b2138a42f2f375c61f6680ee60ccddc8505ad638ec3208eb753e1e1d55", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#d...
10,969
c
#ifndef __MODULE_H__ #define __MODULE_H__ #include "Globals.h" class Module { private : bool enabled; public: Module(bool start_enabled = true) : enabled(start_enabled) {} virtual ~Module() {} virtual bool Init() { return true; } virtual bool Start() { return true; } virtual UPDATE_STATUS PreUp...
15.53
38
(translation_unit) "#ifndef __MODULE_H__\n#define __MODULE_H__\n\n#include "Globals.h"\n\nclass Module\n{\nprivate :\n bool enabled;\n\npublic:\n Module(bool start_enabled = true) : enabled(start_enabled)\n {}\n\n virtual ~Module()\n {}\n\n virtual bool Init() \n {\n return true; \n }\n\n virtual bool Start()\n {\n r...
186
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 15.53, "nodes": 107, "errors": 0, "source_hash": "e58568a618dfb662815d9f29322833dd596093f170e24296fd8fbdb7ddbaeb54", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,970
c
// // BARImageQueue.h // BARImage // // Created by yuxin on 2017/10/22. // Copyright © 2017年 baidu. All rights reserved. // #import <Foundation/Foundation.h> @class BARImageContext; void runWithoutDeadlockingOnMainQueue(void (^block)(void)); void runSynOnVideoProcessingQueue(void (^block)(void)); void runAsynOnV...
41.55
20
(translation_unit) "//\n// BARImageQueue.h\n// BARImage\n//\n// Created by yuxin on 2017/10/22.\n// Copyright © 2017年 baidu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class BARImageContext;\n\nvoid runWithoutDeadlockingOnMainQueue(void (^block)(void));\nvoid runSynOnVideoProcessingQueue(void...
286
25
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 41.55, "nodes": 188, "errors": 0, "source_hash": "946aaa06d4baabdf8fa9d26836a3b253bb94d8314249a00786af4c50bf1f50fa", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
10,971
c
/** \file * \brief Ihandle <-> Name table manager. * * See Copyright Notice in "iup.h" */ #include <stdlib.h> #include <memory.h> #include "iup.h" #include "iup_str.h" #include "iup_table.h" #include "iup_names.h" #include "iup_object.h" #include "iup_class.h" #include "iup_assert.h" #include "iup_attrib.h" #inc...
24.91
220
(translation_unit) "/** \file\n * \brief Ihandle <-> Name table manager.\n *\n * See Copyright Notice in "iup.h"\n */\n\n#include <stdlib.h>\n#include <memory.h>\n\n#include "iup.h"\n\n#include "iup_str.h"\n#include "iup_table.h"\n#include "iup_names.h"\n#include "iup_object.h"\n#include "iup_class.h"\n#include "iup_as...
1,467
0
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 24.91, "nodes": 879, "errors": 0, "source_hash": "b6a9e16f5e6df859bd410bdf52d3acd7f3297de592bde5a8b2fc58c9c2b80667", "categorized_nodes": 582}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,972
c
#ifndef LADDER_EXAMPLE_HTTP_CODEC_H #define LADDER_EXAMPLE_HTTP_CODEC_H #include <map> #include <string> #include <Base.h> namespace ladder { namespace http { struct HttpContext { int method_; std::string uri_; std::string version_; std::string start_line_; std::map<int, std::string> headers_; std::stri...
25.28
61
(translation_unit) "#ifndef LADDER_EXAMPLE_HTTP_CODEC_H\n#define LADDER_EXAMPLE_HTTP_CODEC_H\n\n#include <map>\n#include <string>\n\n#include <Base.h>\n\nnamespace ladder {\nnamespace http {\n\nstruct HttpContext {\n int method_;\n std::string uri_;\n std::string version_;\n std::string start_line_;\n std::map<int...
470
29
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.28, "nodes": 281, "errors": 0, "source_hash": "2a611c628c5d9eccb7a7d17e04aee15b568d9a252d5f9fdfe30b6e910dca8dd4", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,973
c
/* * spislave.h * * Created on: 14.11.2018 * Author: <NAME> */ #ifndef SPISLAVE_H_ #define SPISLAVE_H_ // Target definition in main.h file generated by CubeMX #include "main.h" // GCC integer types #include <stdint.h> #include <set> // Board support package namespace namespace bsp { // Class that gives ...
30.38
58
(translation_unit) "/*\n * spislave.h\n *\n * Created on: 14.11.2018\n * Author: <NAME>\n */\n\n#ifndef SPISLAVE_H_\n#define SPISLAVE_H_\n\n// Target definition in main.h file generated by CubeMX\n#include "main.h"\n\n// GCC integer types\n#include <stdint.h>\n#include <set>\n\n// Board support package namespace\...
240
6
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 30.38, "nodes": 151, "errors": 0, "source_hash": "cd48d44d895e1bc5c893332579211cedf25e2270e1e80e020ebff1e365a63af3", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,974
c
// // RBIngredient+CoreDataProperties.h // RecipeBook // // Created by <NAME> on 1/8/16. // Copyright © 2016 <NAME>. All rights reserved. // // Choose "Create NSManagedObject Subclass…" from the Core Data editor menu // to delete and recreate this implementation file for your updated model. // #import "RBIngredi...
37.35
23
(translation_unit) "//\n// RBIngredient+CoreDataProperties.h\n// RecipeBook\n//\n// Created by <NAME> on 1/8/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n// Choose "Create NSManagedObject Subclass…" from the Core Data editor menu\n// to delete and recreate this implementation file for your updated m...
172
30
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.35, "nodes": 121, "errors": 0, "source_hash": "1bb435ea1f48e75ceec2cfff9fae204a13d6d55f0acc0cdcd1345fad979a7e18", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"R...
10,975
c
version https://git-lfs.github.com/spec/v1 oid sha256:750ed900d814cbea826307da9ff9e2e6a623a866841264911b0b641b8c6399dc size 8419
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:750ed900d814cbea826307da9ff9e2e6a623a866841264911b0b641b8c6399dc\nsize 8419\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 10, "errors": 0, "source_hash": "adb97709afb555278f36e716c6f82a24924e06fa94af07608549406aea26dbad", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https...
10,976
c
// // VCNewAccountPasswordConfirm.h // oplayer // // Created by SYALON on 13-10-23. // // #import <UIKit/UIKit.h> #import "VCBase.h" @interface VCNewAccountPasswordConfirm : VCBase<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, UIScrollViewDelegate> - (id)initWithPassword:(<PASSWORD> ...
30.07
15
(translation_unit) "//\n// VCNewAccountPasswordConfirm.h\n// oplayer\n//\n// Created by SYALON on 13-10-23.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import "VCBase.h"\n\n@interface VCNewAccountPasswordConfirm : VCBase<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, UIScrollViewDelegate>\n\n- (id)initWit...
69
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.07, "nodes": 42, "errors": 0, "source_hash": "29135cbc60a1e87a7f3af6030897144a6ce6b2672013edeca5d5cb4ebbf40c5d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,977
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "BehaviorTree/Services/BTService_BlackboardBase.h" #include "BTService_DefaultFocus.generated.h" struct FBTFocusMemory { AActor* FocusActorSet; FVector FocusLocationSet; bool bActorSet; void Reset() { FocusActorSet = nullptr; ...
38.79
38
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n#include "BehaviorTree/Services/BTService_BlackboardBase.h"\n#include "BTService_DefaultFocus.generated.h"\n\nstruct FBTFocusMemory\n{\n AActor* FocusActorSet;\n FVector FocusLocationSet;\n bool bActorSet;\n\n void Reset()...
285
21
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 38.79, "nodes": 171, "errors": 0, "source_hash": "9722b0b3db99232a8be581350976573f32df356cbb67ad95774454a4be415a6d", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,978
c
/* Author: <NAME> a.k.a. Gauss <NAME> Contacts: [<EMAIL>, <EMAIL>] See for more information LICENSE.md. */ #pragma once #include <ECS/include/OnUpdateInstantReactiveSystem.h> #include <ECS/include/InitSystem.h> #include "TitleComponent.h" #include "HandlerPool.h" namespace nsGraphicWrapper { cl...
30.58
36
(translation_unit) "/* \nAuthor: <NAME> a.k.a. Gauss \n<NAME> \nContacts: [<EMAIL>, <EMAIL>] \nSee for more information LICENSE.md. \n*/ \n \n#pragma once \n \n#include <ECS/include/OnUpdateInstantReactiveSystem.h> \n#include <ECS/include/InitSystem.h> \n \n#include "TitleComponent.h" \n#include "HandlerPool.h" \n \nna...
231
13
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.58, "nodes": 137, "errors": 0, "source_hash": "d7a9ab215d4550ac31f6b9a86205d20c4d9aa744587c7f2fca2519afd0ecaa56", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,979
c
/* * Copyright (C) 1998 <NAME> <sasha at aftercode.net> * Copyright (c) 1996 by <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 version 2 of the License, or * (at your opt...
23.34
316
(translation_unit) "/*\n * Copyright (C) 1998 <NAME> <sasha at aftercode.net>\n * Copyright (c) 1996 by <NAME>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the L...
2,178
0
{"language": "c", "success": true, "metadata": {"lines": 316, "avg_line_length": 23.34, "nodes": 1280, "errors": 0, "source_hash": "c8c394fc97a33e3afd95928bf4d26911a7a059d63ab3f431dec11543620fb754", "categorized_nodes": 933}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,980
c
#ifndef __USER_MODE_H__ #define __USER_MODE_H__ #define MODE_TASK_QUEUE_SIZE 1 #define MODE_TASK_PRIO 1 #include "ets_sys.h" #include "osapi.h" #include "user_interface.h" void ICACHE_FLASH_ATTR MODE_Init(); void ICACHE_FLASH_ATTR MODE_Input(uint8_t data); static void ICACHE_FLASH_ATTR MODE_Task(os_event_t *events)...
30.36
11
(translation_unit) "#ifndef __USER_MODE_H__\n#define __USER_MODE_H__\n\n#define MODE_TASK_QUEUE_SIZE 1\n#define MODE_TASK_PRIO 1\n\n#include "ets_sys.h"\n#include "osapi.h"\n#include "user_interface.h"\n\nvoid ICACHE_FLASH_ATTR MODE_Init();\nvoid ICACHE_FLASH_ATTR MODE_Input(uint8_t data);\nstatic void ICACHE_FLASH_AT...
76
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.36, "nodes": 50, "errors": 0, "source_hash": "63e31058fdada9e6683dcbe1063a426ed905141c5b0047f618719b951c7bc174", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,981
c
#ifndef SRC_YANGRTP_YANGRTPFUAPAYLOAD2_H_ #define SRC_YANGRTP_YANGRTPFUAPAYLOAD2_H_ #include <yangrtp/YangRtp.h> struct YangFua2Packet{ // The FUA header. bool start; bool end; YangAvcNaluType nri; YangAvcNaluType nalu_type; }; int32_t yang_parseFua2(YangBuffer* buf,YangFua2Packet* pkt); // FU-A, f...
25.41
34
(translation_unit) "#ifndef SRC_YANGRTP_YANGRTPFUAPAYLOAD2_H_\n#define SRC_YANGRTP_YANGRTPFUAPAYLOAD2_H_\n#include <yangrtp/YangRtp.h>\nstruct YangFua2Packet{\n // The FUA header.\n bool start;\n bool end;\n\n YangAvcNaluType nri;\n YangAvcNaluType nalu_type;\n};\nint32_t yang_parseFua2(YangBuffer* buf,Y...
166
2
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.41, "nodes": 105, "errors": 0, "source_hash": "bda66cda3d5b5c30e71d2cd37a823edd3ca95ef45063925682e4acfe5892bc49", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,982
c
#ifdef NGX_WIN32 #include <windows.h> long __stdcall callback(PEXCEPTION_POINTERS excp) { ngx_log_error(NGX_LOG_ERR, ngx_cycle->log, NGX_EACCES, "Nginx Crash!!" ); return EXCEPTION_EXECUTE_HANDLER; } #endif
27
8
(translation_unit) "#ifdef NGX_WIN32\n #include <windows.h>\n long __stdcall callback(PEXCEPTION_POINTERS excp)\n {\n ngx_log_error(NGX_LOG_ERR, ngx_cycle->log, NGX_EACCES, "Nginx Crash!!" );\n\n return EXCEPTION_EXECUTE_HANDLER;\n }\n #endif\n\n\n" (preproc_ifdef) "#ifdef NGX_WIN32\n #include <windows.h>...
48
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.0, "nodes": 29, "errors": 0, "source_hash": "f884e984e54c5e1112902660d9f94f52b165ec3bcbc492363ae8bf89508eca80", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef NGX...
10,983
c
#ifndef __RESOURCE_RELAY_H__ #define __RESOURCE_RELAY_H__ #if defined (__cplusplus) extern "C" { #endif extern int resource_write_relay(int pin_num, int write_value); #if defined (__cplusplus) } #endif #endif /* __RESOURCE_RELAY_H__ */
22.6
10
(translation_unit) "#ifndef __RESOURCE_RELAY_H__\n#define __RESOURCE_RELAY_H__\n\n#if defined (__cplusplus)\nextern "C" {\n#endif\n\nextern int resource_write_relay(int pin_num, int write_value);\n\n#if defined (__cplusplus)\n}\n#endif\n\n#endif /* __RESOURCE_RELAY_H__ */\n" (preproc_ifdef) "#ifndef __RESOURCE_RELAY_...
55
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.6, "nodes": 39, "errors": 0, "source_hash": "f22bfc263d40d693f68e085e14c84abf2b0b90b850f98d36edcc1e53315b4e1f", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,984
c
/* * Copyright (C) 2014 Freie Universität Berlin, <NAME> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu_atmega_common * @ingroup drivers_periph_uart * @{ * ...
24.48
169
(translation_unit) "/*\n * Copyright (C) 2014 Freie Universität Berlin, <NAME>\n *\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n */\n\n/**\n * @ingroup cpu_atmega_common\n * @ingroup ...
854
5
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 24.48, "nodes": 511, "errors": 0, "source_hash": "802c2a266fc258586390e750d8c5ccc31e7da053476bece27ea4a3b1984253b4", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
10,985
c
#ifndef COMMON_H_ #define COMMON_H_ #include <assert.h> #include <inttypes.h> #include <vector> // #define DEBUGB 1 #ifdef DEBUGB #define DBG(...) __VA_ARGS__ #else #define DBG(...) #endif using data_array = std::vector<uint32_t>; using all_data = std::vector<data_array>; using data_ptrs = std::vector<const data_a...
23.22
72
(translation_unit) "#ifndef COMMON_H_\n#define COMMON_H_\n\n#include <assert.h>\n#include <inttypes.h>\n\n#include <vector>\n\n// #define DEBUGB 1\n\n#ifdef DEBUGB\n#define DBG(...) __VA_ARGS__\n#else\n#define DBG(...)\n#endif\n\nusing data_array = std::vector<uint32_t>;\nusing all_data = std::vector<data_array>;\nusin...
631
32
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.22, "nodes": 404, "errors": 0, "source_hash": "add44f950acbefe221119684b50a20cee62a16b46e7da1eae2416aba3fa607ad", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,986
c
/* * nvic.h * * Created on: 2 maj 2016 * Author: Szymon */ #ifndef NVIC_H_ #define NVIC_H_ #include "stm32f0xx.h" /** * @brief NVIC configuration * @retval None */ void NVIC_Config(void); #endif /* NVIC_H_ */
13.87
15
(translation_unit) "/*\n * nvic.h\n *\n * Created on: 2 maj 2016\n * Author: Szymon\n */\n\n#ifndef NVIC_H_\n#define NVIC_H_\n\n#include "stm32f0xx.h"\n\n/**\n * @brief NVIC configuration\n * @retval None\n */\nvoid NVIC_Config(void);\n\n#endif /* NVIC_H_ */\n" (comment) "/*\n * nvic.h\n *\n * Created on: 2 ma...
27
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 13.87, "nodes": 17, "errors": 0, "source_hash": "652e78f3733da8f269592800be8cf8e76a0902320ca916520dbda3060863651d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,987
c
/* Copyright (c) 2009-2017 Dovecot authors, see the included COPYING file */ #include "test-lib.h" #include "array.h" static void test_p_strarray_dup(void) { const char *input[][3] = { { NULL }, { "a", NULL }, { "foobar", NULL }, { "a", "foo", NULL } }; const char **ret; unsigned int i, j; test_begin("p...
31.17
247
(translation_unit) "/* Copyright (c) 2009-2017 Dovecot authors, see the included COPYING file */\n\n#include "test-lib.h"\n#include "array.h"\n\nstatic void test_p_strarray_dup(void)\n{\n const char *input[][3] = {\n { NULL },\n { "a", NULL },\n { "foobar", NULL },\n { "a", "foo", NULL }\n };\n const char **ret;\n ...
3,674
1
{"language": "c", "success": true, "metadata": {"lines": 247, "avg_line_length": 31.17, "nodes": 1889, "errors": 0, "source_hash": "13bf0199db8b70125ef89ad2b9660e5caa5c09d3a49866fb9caeec88f96a73dd", "categorized_nodes": 1205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
10,988
c
// callouts.c inherit F_CLEAN_UP; int main(object me, string arg) { mixed *info; int i; string output; if (!SECURITY_D->valid_grant(me, "(arch)")) return 0; output = sprintf("%-45s %-20s %5s %s\n", "物件", "函数", "延迟时间", "参数"); if (arg && arg != "") info = filter_array(call_out_...
23.14
29
(translation_unit) "// callouts.c\n\ninherit F_CLEAN_UP;\n\nint main(object me, string arg)\n{\n mixed *info;\n int i;\n string output;\n\n if (!SECURITY_D->valid_grant(me, "(arch)"))\n return 0;\n\n output = sprintf("%-45s %-20s %5s %s\n", "物件", "函数", "延迟时间", "参数");\n if (arg && arg != "")\n ...
277
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.14, "nodes": 151, "errors": 0, "source_hash": "ac8b336ff8d1f5119eb328cc16ed917dbcad365a04b7ba30672ca6ca4966b541", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit ...
10,989
c
// Copyright 2019 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
28.28
120
(translation_unit) "// Copyright 2019 Google LLC. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// ...
776
48
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 28.28, "nodes": 474, "errors": 0, "source_hash": "030ab1199f2642a9442a3b1790ca13c0b6865bef4f2930a68dae082f165afd47", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,990
c
// // Created by alro on 28‏/11‏/2020. // #ifndef MYPROJECT_MULTIMEDIAREPO_H #define MYPROJECT_MULTIMEDIAREPO_H #include <string> #include <sstream> #include <DataBase/Contracts/DataBase.h> #include <Entity/Contract/Multimedia.h> using namespace std; class MultimediaRepo: public IRepository<Multimedia> { private: ...
29.7
27
(translation_unit) "//\n// Created by alro on 28‏/11‏/2020.\n//\n\n#ifndef MYPROJECT_MULTIMEDIAREPO_H\n#define MYPROJECT_MULTIMEDIAREPO_H\n#include <string>\n#include <sstream>\n#include <DataBase/Contracts/DataBase.h>\n#include <Entity/Contract/Multimedia.h>\n\nusing namespace std;\n\n\nclass MultimediaRepo: public IR...
185
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.7, "nodes": 140, "errors": 0, "source_hash": "4b6af10fb2ce09e3dc5c1794b0e950fc7e901ad7171bd0577839b686ea657369", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "def MYPR...
10,991
c
#include <time.h> #include <unistd.h> #include <stdarg.h> #include <stdio.h> #include <pthread.h> #include "log.h" extern pthread_mutex_t MUTEX_LOG; void log(FILE *f, char *format, ...) { pthread_mutex_lock(&MUTEX_LOG); time_t t; va_list args; va_start(args, format); time(&t); char *time = c...
21.1
21
(translation_unit) "#include <time.h>\n#include <unistd.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <pthread.h>\n\n#include "log.h"\n\nextern pthread_mutex_t MUTEX_LOG;\n\nvoid log(FILE *f, char *format, ...)\n{\n pthread_mutex_lock(&MUTEX_LOG);\n time_t t;\n va_list args;\n va_start(args, format)...
161
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.1, "nodes": 98, "errors": 0, "source_hash": "c59b4e9e2913c25b55ac56b413615878a64290b5492a394816dff595a43e0cc0", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,992
c
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file streamReader.h * @auth...
34.4
73
(translation_unit) "/**\n * PANDA 3D SOFTWARE\n * Copyright (c) Carnegie Mellon University. All rights reserved.\n *\n * All use of this software is subject to the terms of the revised BSD\n * license. You should have received a copy of this license along\n * with this source code in a file named "LICENSE."\n *\n * @...
633
27
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 34.4, "nodes": 414, "errors": 0, "source_hash": "231a6b6fa243c9b3fe78641059d6a53e4e507e1e79f9843d61b28e038129fa9d", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,993
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIView.h" @class NSString, QQAvatarView; @interface GroupMemHeadUnitView : UIView { NSString *_uin; QQAvatarView *_headView; } - (void)dealloc; - (id)initWithFrame:(st...
22.38
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIView.h"\n\n@class NSString, QQAvatarView;\n\n@interface GroupMemHeadUnitView : UIView\n{\n NSString *_uin;\n QQAvatarView *_headView;\n}\n\n- (v...
90
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.38, "nodes": 54, "errors": 0, "source_hash": "cad727c419f41fb44f5f53a48cf8a24d461241060052ec65219cc423d757877b", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,994
c
// // UIBarButtonItem+Extension.h // Marisfrolg // // Created by Wiley on 2017/6/6. // Copyright © 2017年 Wiley. All rights reserved. // #import <UIKit/UIKit.h> @interface UIBarButtonItem (Extension) +(UIBarButtonItem *)initWithImage:(NSString *)imageName andSelectImageName:(NSString *)selectImageName target:(id)...
30.73
11
(translation_unit) "//\n// UIBarButtonItem+Extension.h\n// Marisfrolg\n//\n// Created by Wiley on 2017/6/6.\n// Copyright © 2017年 Wiley. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIBarButtonItem (Extension)\n\n+(UIBarButtonItem *)initWithImage:(NSString *)imageName andSelectImageName:(NSStri...
62
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.73, "nodes": 37, "errors": 0, "source_hash": "f46c23adc6ee177cfac614c209022654d501ce3ee8c7f06ba46cbddab1d5b6a1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
10,995
c
/* Copyright 2021 <NAME> and the splitflap contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
36.34
29
(translation_unit) "/*\n Copyright 2021 <NAME> and the splitflap contributors\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n ...
132
3
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.34, "nodes": 78, "errors": 0, "source_hash": "bcedf600ea2e22e58476dd66f44330e3ecc39bbb89c1392a38893d094bd870b2", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,996
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSSpeechSynthesizer.h" @interface NSSpeechSynthesizer (NSSpeechSynthesizerPrivateExtensions) - (struct SpeechChannelRecord *)_speechChannel; @end
30.89
9
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSSpeechSynthesizer.h"\n\n@interface NSSpeechSynthesizer (NSSpeechSynthesizerPrivateExtensions)\n- (struct SpeechChannelRecord *)_speechChannel;\n@end\n...
37
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 30.89, "nodes": 22, "errors": 0, "source_hash": "040182076580bef01f644e7fc8ab261e0470d86428a984adb9cb12593f49b89b", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
10,997
c
#pragma once #include <std/graph.h> namespace core { struct partite_base { partite_base() { part = -1; } ~partite_base() { } int part; }; template <int p, class value_type> struct partite_node : partite_base { partite_node() { part = p; } ~partite_node() { } value_type value; }; template <i...
16.94
96
(translation_unit) "#pragma once\n\n#include <std/graph.h>\n\nnamespace core\n{\n\nstruct partite_base\n{\n partite_base()\n {\n part = -1;\n }\n \n ~partite_base()\n {\n }\n\n int part;\n};\n\ntemplate <int p, class value_type>\nstruct partite_node : partite_base\n{\n partite_node()\n {\n part = p;\n }\n \n ~partite...
718
15
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 16.94, "nodes": 437, "errors": 0, "source_hash": "77cb79bc03021a950837b8d2c6419d2c930a6dd31c8841320a7ee8d1f9bd366a", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,998
c
#include <stdio.h> extern char * longestPalindrome(char *);
29
2
(translation_unit) "#include <stdio.h>\n\nextern char * longestPalindrome(char *);\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "extern char * longestPalindrome(char *);" (storage_class_specifier) "extern" (extern) "extern" (pr...
20
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 29.0, "nodes": 16, "errors": 0, "source_hash": "42f651ca5ab660f8fa653c1a0175323bbf1c1dc739ddf3bea4801a4674a3248c", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
10,999