language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef MYLABEL_H #define MYLABEL_H #include <QLabel> #include <QtDesigner> class QDESIGNER_WIDGET_EXPORT MyLabel : public QLabel { Q_OBJECT Q_PROPERTY(bool multiLine READ multiLine WRITE setMultiLine ) Q_PROPERTY(QFont::Capitalization fontCase READ fontCase WRITE setFontCase ) public: MyLabel(QWidge...
32.6
20
(translation_unit) "#ifndef MYLABEL_H\n#define MYLABEL_H\n\n#include <QLabel>\n#include <QtDesigner>\n\nclass QDESIGNER_WIDGET_EXPORT MyLabel : public QLabel\n{\n Q_OBJECT\n Q_PROPERTY(bool multiLine READ multiLine WRITE setMultiLine )\n Q_PROPERTY(QFont::Capitalization fontCase READ fontCase WRITE setFontCase...
169
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.6, "nodes": 105, "errors": 0, "source_hash": "89f4bdc23a359e195ece978afc3fdfe9c311dee1064c523fd2efc9e22230ff35", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,700
c
#pragma once #include "Base/Main/Common.h" #include "Graphics/ImGui_Window.h" namespace S2DE::GameObjects { class GameObject; } namespace S2DE::Editor { class S2DE_API EditorObjectInspector : public Render::ImGui_Window { public: EditorObjectInspector(); ~EditorObjectInspector(); virtual void Render...
24
23
(translation_unit) "#pragma once\n#include "Base/Main/Common.h"\n#include "Graphics/ImGui_Window.h"\n\nnamespace S2DE::GameObjects\n{\n class GameObject;\n}\n\nnamespace S2DE::Editor\n{\n class S2DE_API EditorObjectInspector : public Render::ImGui_Window\n {\n public:\n EditorObjectInspector();\n ~EditorObjectInspect...
146
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 24.0, "nodes": 80, "errors": 0, "source_hash": "08cfe63fb79eed878d96e12b1db9409f64f03593da382eed0afd06fd6c0407cc", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,701
c
#ifndef __NV50_CONTEXT_H__ #define __NV50_CONTEXT_H__ #include "pipe/p_context.h" #include "pipe/p_defines.h" #include "pipe/p_state.h" #include "util/u_memory.h" #include "util/u_math.h" #include "util/u_inlines.h" #include "util/u_dynarray.h" #include "draw/draw_vertex.h" #include "nv50_debug.h" #include "nv50_wi...
36.16
186
(translation_unit) "#ifndef __NV50_CONTEXT_H__\n#define __NV50_CONTEXT_H__\n\n#include "pipe/p_context.h"\n#include "pipe/p_defines.h"\n#include "pipe/p_state.h"\n\n#include "util/u_memory.h"\n#include "util/u_math.h"\n#include "util/u_inlines.h"\n#include "util/u_dynarray.h"\n\n#include "draw/draw_vertex.h"\n\n#includ...
1,395
1
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 36.16, "nodes": 1048, "errors": 0, "source_hash": "6ff82894b9e754a1333fcaf53535be46d568a3268f34790b5d5982c7372a1532", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
6,702
c
#pragma once #include <wut.h> /** * \defgroup coreinit_debug Debug * \ingroup coreinit * @{ */ #ifdef __cplusplus extern "C" { #endif typedef void (*DisassemblyPrintFn)(const char *fmt, ...); typedef uint32_t (*DisassemblyFindSymbolFn)(uint32_t addr, char *symbolNameBuf, uint32_t symbolNameBufSize); typedef enu...
19.67
72
(translation_unit) "#pragma once\n#include <wut.h>\n\n/**\n * \defgroup coreinit_debug Debug\n * \ingroup coreinit\n * @{\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef void (*DisassemblyPrintFn)(const char *fmt, ...);\ntypedef uint32_t (*DisassemblyFindSymbolFn)(uint32_t addr, char *symbolNameBuf, uint32_...
353
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 19.67, "nodes": 233, "errors": 0, "source_hash": "8f7d49b25be5a8b4b401fab0efe4396368732df7734db86252bd2dd8d2c61829", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,703
c
// // NYIntentContext.h // AK // // Created by Akries.NY on 2018/9/14. // Copyright © 2018年 Akries.Ni. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef void(^NYIntentContextHandler)(NSDictionary * _Nullable param, void (^ _Nullable completion)(_Nullable id data)); /** 协...
19.78
154
(ERROR) "//\n// NYIntentContext.h\n// AK\n//\n// Created by Akries.NY on 2018/9/14.\n// Copyright © 2018年 Akries.Ni. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void(^NYIntentContextHandler)(NSDictionary * _Nullable param, void (^ _Nullable completion)(_Nulla...
495
39
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 19.78, "nodes": 284, "errors": 0, "source_hash": "06d9f8837ca97fdd194d1ad8b73b5f905d578d464ffdbe739165d771f304345d", "categorized_nodes": 173}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// NYIntentContext....
6,704
c
#include <stdio.h> int main (){ printf("\n Hello World!\n"); return 0; n
14
5
(translation_unit) "#include <stdio.h>\nint main (){\n printf("\n Hello World!\n");\n return 0;\nn\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (ERROR) "int main (){\n printf("\n Hello World!\n");\n return 0;\nn" (primitive_type) "int" (function_d...
30
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.0, "nodes": 17, "errors": 0, "source_hash": "47c192be861977a578372b9d2fb42988f19d0ec43cd92d5262f59b24256e515d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
6,705
c
// // Timer.h // SplitShow // // Created by <NAME> on 25/12/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #define kSplitShowTimerPulse @"kSplitShowTimerPulse" typedef enum : NSInteger { SplitShowTimerModeForward, SplitShowTimerModeBackward, } SplitShowTimerMo...
26.4
20
(translation_unit) "//\n// Timer.h\n// SplitShow\n//\n// Created by <NAME> on 25/12/2016.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#define kSplitShowTimerPulse @"kSplitShowTimerPulse"\n\ntypedef enum : NSInteger {\n SplitShowTimerModeForward,\n SplitShowTim...
116
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.4, "nodes": 72, "errors": 0, "source_hash": "0c65ef749587f088b2e06d666180b3f8c760eee3b4f14967e9f2d5bc27ca5b8b", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
6,706
c
// Copyright 2021 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
33.41
37
(translation_unit) "// Copyright 2021 <NAME>\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicab...
219
11
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.41, "nodes": 118, "errors": 0, "source_hash": "214661fa2b9927552925efe85b8584bbbb6808124dc87f35eb8e602165832731", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,707
c
// UndoDialog.h : Declaration of the CUndoDialog #ifndef __UNDODIALOG_H_ #define __UNDODIALOG_H_ #include "resource.h" // main symbols #include <atlhost.h> #include "undolog.h" #ifndef ListView_SetCheckState #define ListView_SetCheckState(hwndLV, i, fCheck) \ ListView_SetItemState(hwndLV, i...
29.05
243
(translation_unit) "// UndoDialog.h : Declaration of the CUndoDialog \n \n#ifndef __UNDODIALOG_H_ \n#define __UNDODIALOG_H_ \n \n#include "resource.h" // main symbols \n#include <atlhost.h> \n#include "undolog.h" \n \n#ifndef ListView_SetCheckState \n #define ListView_SetCheckState(hwndLV, i, fCheck) \ \n ...
1,550
16
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 29.05, "nodes": 916, "errors": 0, "source_hash": "e7c719c9392c7ad04a177666b8b8e40c40eaa0dea63415f9959a174d1361e98d", "categorized_nodes": 715}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,708
c
#pragma once /* * This file is part of the Wasp hypervisor developed at Illinois Institute of * Technology (HExSA Lab) and Northwestern University with funding from the * United States National Science Foundation. * * Copyright (c) 2022, <NAME> * * Author: <NAME> <<EMAIL>> * * This is free software. You are ...
28.19
83
(translation_unit) "#pragma once\n/*\n * This file is part of the Wasp hypervisor developed at Illinois Institute of\n * Technology (HExSA Lab) and Northwestern University with funding from the\n * United States National Science Foundation.\n *\n * Copyright (c) 2022, <NAME>\n *\n * Author: <NAME> <<EMAIL>>\n *\n * Th...
524
26
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 28.19, "nodes": 329, "errors": 0, "source_hash": "474fc7bb33230f32f412cac756d874cb93a62e14d6e9df16a0adac8a43cf93e6", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,709
c
// // Shell.h // ShellCore // // Created by <NAME> on 20.03.21. // #ifdef __cplusplus extern "C" { #endif int shell(const char *cmd); #ifdef __cplusplus } #endif
11.69
13
(translation_unit) "//\n// Shell.h\n// ShellCore\n//\n// Created by <NAME> on 20.03.21.\n//\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nint shell(const char *cmd);\n\n#ifdef __cplusplus\n}\n#endif\n" (comment) "//" (comment) "// Shell.h" (comment) "// ShellCore" (comment) "//" (comment) "// Created b...
41
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 11.69, "nodes": 23, "errors": 0, "source_hash": "c2caeba7ebb4f06b2bdeba99c1bfc838dd8fb5dc49aff8465668f32b9b44780d", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
6,710
c
// // FileUtils.h // JiangHomeStyle // // Created by 工业设计中意(湖南) on 13-9-6. // Copyright (c) 2013年 cidesign. All rights reserved. // #import <Foundation/Foundation.h> @interface FileUtils : NSObject //创建离线文件目录顶级,包括文章和缩略图 -(void) createAppFilesDir; //创建指定文章的保存目录,文件夹名以severId命名 -(void) createArticleDir:(NSString*)...
25.57
40
(translation_unit) "//\n// FileUtils.h\n// JiangHomeStyle\n//\n// Created by 工业设计中意(湖南) on 13-9-6.\n// Copyright (c) 2013年 cidesign. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface FileUtils : NSObject\n\n//创建离线文件目录顶级,包括文章和缩略图\n-(void) createAppFilesDir;\n\n//创建指定文章的保存目录,文件夹名以severId命名\n...
241
33
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 25.57, "nodes": 152, "errors": 0, "source_hash": "f12886a1162ceb82c08fb56e19d03a064166cd83865f229d230ffa7747627896", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation...
6,711
c
// // ollpinterface.h // OLLP // // Created by 高文智 on 2020/7/21. // Copyright © 2020 高文智. All rights reserved. // #ifndef ollpinterface_h #define ollpinterface_h #include "Config.h" #ifndef __OLLP_H__ #define __OLLP_H__ #ifdef _WIN32 #define OLLP_CALL __stdcall #else #define OLLP_CALL #endif #ifdef __cplusplu...
29.46
46
(translation_unit) "//\n// ollpinterface.h\n// OLLP\n//\n// Created by 高文智 on 2020/7/21.\n// Copyright © 2020 高文智. All rights reserved.\n//\n\n#ifndef ollpinterface_h\n#define ollpinterface_h\n\n#include "Config.h"\n\n\n#ifndef __OLLP_H__\n#define __OLLP_H__\n\n#ifdef _WIN32\n#define OLLP_CALL __stdcall\n#else\n#de...
286
8
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 29.46, "nodes": 223, "errors": 0, "source_hash": "228903fe2685374034f653174b1e3422ad742d8d5e443420532071dd38150b90", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "nterfa...
6,712
c
#pragma once #include "halley/utils/utils.h" #include "halley/file/byte_serializer.h" namespace Halley { enum class NetworkSessionControlMessageType : int8_t { SetPeerId, SetSessionState, SetPeerState }; struct ControlMsgHeader { NetworkSessionControlMessageType type; }; struct ControlMsgSetPeerId { ...
21.29
31
(translation_unit) "#pragma once\n#include "halley/utils/utils.h"\n#include "halley/file/byte_serializer.h"\n\nnamespace Halley {\n enum class NetworkSessionControlMessageType : int8_t {\n SetPeerId,\n SetSessionState,\n SetPeerState\n };\n\n struct ControlMsgHeader\n {\n NetworkSessionControlMessageType type;\n };...
176
11
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 21.29, "nodes": 98, "errors": 0, "source_hash": "5c06c9d92202a7fed330b0bb027e1c912499618446e49a9f6ddeca24ff8a113d", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,713
c
// // RBLOutlineView.h // Rebel // // Created by <NAME> on 26/05/2014. // Copyright (c) 2014 GitHub. All rights reserved. // #import <Cocoa/Cocoa.h> /// A standard outline view with one fix. /// /// As opposed to trying to scroll rects into the middle of the view each time, /// we move them just enough as to make...
34.21
19
(translation_unit) "//\n// RBLOutlineView.h\n// Rebel\n//\n// Created by <NAME> on 26/05/2014.\n// Copyright (c) 2014 GitHub. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n/// A standard outline view with one fix.\n///\n/// As opposed to trying to scroll rects into the middle of the view each time,\n/// we...
28
3
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.21, "nodes": 9, "errors": 0, "source_hash": "ff95ad4adf6373eeece884c725279d06c4e20d1d96839ef2f72cc3782e25f348", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Co...
6,714
c
#ifndef LOCATIONCONDITION_H #define LOCATIONCONDITION_H #include "locationengine.h" #include <condition.h> #include <QTimer> /** * LocationCondition */ class LocationCondition : public Condition { private: Q_OBJECT Q_PROPERTY(double latitude READ latitude WRITE setLatitude NOTIFY latitudeChanged) ...
30.69
55
(translation_unit) "#ifndef LOCATIONCONDITION_H\n#define LOCATIONCONDITION_H\n\n#include "locationengine.h"\n#include <condition.h>\n#include <QTimer>\n\n/**\n * LocationCondition\n */\nclass LocationCondition\n : public Condition\n{\nprivate:\n Q_OBJECT\n\n Q_PROPERTY(double latitude READ latitude WRITE set...
417
19
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.69, "nodes": 272, "errors": 0, "source_hash": "2eb4f030801c946dab65133fc4a41bdd44efa652492279279269008ea7bc90ca", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,715
c
#ifndef AL_PLATFORM_H #define AL_PLATFORM_H #ifdef _MSC_VER #define AL_WIN #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN #define NOMINMAX #include <Windows.h> #define AL_EXPORT __declspec(dllexport) #ifdef AL_IMPLEMENTATION #define AL_ALICE_EXPORT __declspec(dllexport) #...
27.1
42
(translation_unit) "#ifndef AL_PLATFORM_H\n#define AL_PLATFORM_H\n\n#ifdef _MSC_VER\n #define AL_WIN\n #define WIN32_LEAN_AND_MEAN\n #define VC_EXTRALEAN\n #define NOMINMAX\n #include <Windows.h>\n #define AL_EXPORT __declspec(dllexport)\n \n #ifdef AL_IMPLEMENTATION\n #define AL_ALICE_EX...
284
8
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 27.1, "nodes": 200, "errors": 0, "source_hash": "65a2c456927198ab8c9b553354e20b2da3f21ab0247d9b6166250655319b926f", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,716
c
// Copyright @ MyScript. All rights reserved. #import <UIKit/UIKit.h> #import <iink/IINKIRenderTarget.h> @class IINKEditor, ImageLoader; @interface DisplayViewController : UIViewController <IINKIRenderTarget> @property (weak, nonatomic) IINKRenderer *renderer; //- (IINKRenderer *)renderer UNAVAILABLE_ATTRIBUTE; @p...
39.91
11
(translation_unit) "// Copyright @ MyScript. All rights reserved.\n\n#import <UIKit/UIKit.h>\n#import <iink/IINKIRenderTarget.h>\n\n@class IINKEditor, ImageLoader;\n\n@interface DisplayViewController : UIViewController <IINKIRenderTarget>\n\n@property (weak, nonatomic) IINKRenderer *renderer;\n//- (IINKRenderer *)rende...
77
12
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 39.91, "nodes": 54, "errors": 0, "source_hash": "460edd4f567ad51d0db897e5a5e58c521a8025a6b55c2274d8b258bdd0b8bd4e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,717
c
#ifndef myMatrix_H #define myMatrix_H #include <inttypes.h> //include int data types like uint8_t #include <avr/pgmspace.h> // connections #define MATRIX_PORT PORTC #define MATRIX_MODE_PORT DDRC #define MATRIX_READ_PORT PINC #define Col_1 PC0 #define Col_2 PC1 #define Col_3 ...
37.73
22
(translation_unit) "#ifndef myMatrix_H\n#define myMatrix_H\n\n#include <inttypes.h> //include int data types like uint8_t\n#include <avr/pgmspace.h>\n\n// connections\n#define MATRIX_PORT PORTC\n#define MATRIX_MODE_PORT DDRC\n#define MATRIX_READ_PORT PINC\n#define Col_1 PC0\n#define Col_2 ...
131
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.73, "nodes": 99, "errors": 0, "source_hash": "38b0d7a5eed335652ba50a821b55d6a9038f135025277b7f41a84532309433a2", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,718
c
#pragma once #include "Bucket.h" #include <vector> #include <memory> #include <iostream> #include <inspurcloud/oss/OssResult.h> namespace InspurCloud { namespace OSS { class INSPURCLOUD_OSS_EXPORT ListBucketsResult: public OssResult { public: ListBucketsResult(); ListBucketsResult(const std...
31.15
33
(translation_unit) "#pragma once\n#include "Bucket.h"\n#include <vector>\n#include <memory>\n#include <iostream>\n#include <inspurcloud/oss/OssResult.h>\n\nnamespace InspurCloud\n{\nnamespace OSS\n{\n class INSPURCLOUD_OSS_EXPORT ListBucketsResult: public OssResult\n {\n public:\n ListBucketsResult();\n...
304
20
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.15, "nodes": 152, "errors": 0, "source_hash": "c7606d2f48e67180ace45f829d0f97025476d37012396da279375fcba958c68a", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,719
c
#include <unistd.h> #include <time.h> #include "list_graph.h" int random_init_graph(pgraph pg); void print_graph(pgraph pg); void print(value_type val); int main(int argc, char *argv[]) { size_type n; pgraph pg; srand((unsigned)time(NULL)); if (argc != 2) error_dump("parameter error"); n = atoi(argv[1])...
24.84
58
(translation_unit) "#include <unistd.h>\n#include <time.h>\n#include "list_graph.h"\n\nint random_init_graph(pgraph pg);\nvoid print_graph(pgraph pg);\nvoid print(value_type val);\n\nint\nmain(int argc, char *argv[]) {\n size_type n;\n pgraph pg;\n srand((unsigned)time(NULL));\n\n if (argc != 2)\n error_dump("pa...
639
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.84, "nodes": 383, "errors": 0, "source_hash": "2ec1b6bee1d3893a3a900e3b9efda71b4d082b3b25b0a2e2e0f8bede29579126", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,720
c
#ifndef __RESPONSE_H__ #define __RESPONSE_H__ #include <sstream> #include <type.h> #include <request.h> #include <speaker.h> #include <logger.h> extern const std::string DEFAULT_HTTP_VERSION; extern const int DEFAULT_STATUS_CODE; extern const std::string DEFAULT_DESCRIPTION; extern const std::string HTTP_END_LINE; ...
25.69
35
(translation_unit) "#ifndef __RESPONSE_H__\n#define __RESPONSE_H__\n\n#include <sstream>\n#include <type.h>\n#include <request.h>\n#include <speaker.h>\n#include <logger.h>\n\n\nextern const std::string DEFAULT_HTTP_VERSION;\nextern const int DEFAULT_STATUS_CODE;\nextern const std::string DEFAULT_DESCRIPTION;\nextern c...
222
8
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.69, "nodes": 148, "errors": 0, "source_hash": "c9eca37645a04ccf90b47e7e214ce8532131b3e49b0bca86337424552e468957", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,721
c
// Author: <NAME> Real normalPdf(const Real& x, const Real& a, const Real& b){ boost::math::normal_distribution<> d; Real t1=0.5*(b-a), t2=0.5*(b+a); return t1*pdf(d,t1*x+t2); } void testIntegration3(){ Real a=-1.96, b=1.96; boost::function <double (double)> myPdf; myPdf=boost::bind(normalPd...
27.45
20
(translation_unit) "// Author: <NAME> \n \nReal normalPdf(const Real& x, const Real& a, const Real& b){ \n boost::math::normal_distribution<> d; \n Real t1=0.5*(b-a), t2=0.5*(b+a); \n return t1*pdf(d,t1*x+t2); \n} \n \nvoid testIntegration3(){ \n Real a=-1.96, b=1.96; \n boost::function <double (double)> myPdf; \n...
252
11
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.45, "nodes": 156, "errors": 0, "source_hash": "de4215ab3c71f8ccb7a986cb661bfa98c44d9e82b51138d16dc3b524f868f1b1", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
6,722
c
// // NSObject+XLGExtension.h // SharenGo // Notes:将所有的NSNull类型转化成@"" // // Created by Jason_hzb on 2018/5/14. // Copyright © 2018年 小灵狗出行. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (XLGExtension) #pragma mark - 将所有的NSNull类型转化成@"" + (id)changeType:(id)obj; @end
22.23
13
(translation_unit) "//\n// NSObject+XLGExtension.h\n// SharenGo\n// Notes:将所有的NSNull类型转化成@""\n//\n// Created by Jason_hzb on 2018/5/14.\n// Copyright © 2018年 小灵狗出行. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSObject (XLGExtension)\n\n#pragma mark - 将所有的NSNull类型转化成@""\n+ (id)change...
45
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.23, "nodes": 24, "errors": 0, "source_hash": "474df64d0e2b16d8a99f4d3935616f072ca4181803981412068b15e24b710ec5", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\n\n@inte...
6,723
c
//===========================================================================// // Purpose : Declaration and inline definitions for a TC_NameLength class. // // Inline methods include: // - SetName (required for TCT_SortedNameDynamicVector_c class) // - GetName (required for TCT_SortedName...
36.1
98
(translation_unit) "//===========================================================================//\n// Purpose : Declaration and inline definitions for a TC_NameLength class.\n//\n// Inline methods include:\n// - SetName (required for TCT_SortedNameDynamicVector_c class)\n// - GetName (re...
619
26
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 36.1, "nodes": 353, "errors": 0, "source_hash": "c1fed6abb95ee1cc0b83c07f88fb3428297f8dd9dfb523e096193bfe8bd04c85", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,724
c
/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)getservbyname.c 5.3 (Berkeley) 5/19/86"; #endif LIBC_SCCS...
25
32
(translation_unit) "/*\n * Copyright (c) 1983 Regents of the University of California.\n * All rights reserved. The Berkeley software License Agreement\n * specifies the terms and conditions for redistribution.\n */\n\n#if defined(LIBC_SCCS) && !defined(lint)\nstatic char sccsid[] = "@(#)getservbyname.c 5.3 (Berkeley)...
244
1
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.0, "nodes": 163, "errors": 0, "source_hash": "fce4596c46962cacc1c3292ee8d7f8e1ff26de994d132317e0e8399dfaaa7f19", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if define...
6,725
c
/* * ======================= advection ==================== * Integrate forward (advection only) by one time step. * ATMS 502 / CSE 566, Spring 2016 * * Arguments: * * q1 real array values at current step * q2 real array values at next step * c real true speed of wave * dx real grid spacing * dt real time...
29
41
(translation_unit) "/*\n * ======================= advection ====================\n * Integrate forward (advection only) by one time step.\n * ATMS 502 / CSE 566, Spring 2016\n *\n * Arguments:\n *\n * q1 real array values at current step\n * q2 real array values at next step\n * c real true speed of wave\n * dx real ...
399
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.0, "nodes": 266, "errors": 0, "source_hash": "be2a9abc1fe91ba7d109ef68f67f494f384139c1314a85bd70f6820d234c1211", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "v...
6,726
c
// // SYMetadataMakerFuji.h // SYPictureMetadataExample // // Created by <NAME> on 12/16/12. // Copyright (c) 2012 Syan. All rights reserved. // #import "SYMetadataBase.h" @interface SYMetadataMakerFuji : SYMetadataBase @end
21.9
10
(translation_unit) "//\n// SYMetadataMakerFuji.h\n// SYPictureMetadataExample\n//\n// Created by <NAME> on 12/16/12.\n// Copyright (c) 2012 Syan. All rights reserved.\n//\n\n#import "SYMetadataBase.h"\n\n@interface SYMetadataMakerFuji : SYMetadataBase\n\n@end\n" (comment) "//" (comment) "// SYMetadataMakerFuji...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.9, "nodes": 9, "errors": 0, "source_hash": "b412f2f86da2c5911795b28a9e28adc1aeef7fa3a5a188f9e93f3562a83d531a", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"SY...
6,727
c
#pragma once #include <stdio.h> #include <stdint.h> // ---- TYPES ---- // typedef struct { uint32_t width; uint32_t height; } Size2i; #pragma pack(push, 1) typedef struct { //Main part uint8_t sig[2]; uint32_t file_size; uint16_t empty1; uint16_t empty2; uint32_t ptr_to_data; //Inf...
15.42
78
(translation_unit) "#pragma once \n#include <stdio.h> \n#include <stdint.h> \n \n// ---- TYPES ---- // \n \ntypedef struct { \n \n uint32_t width; \n uint32_t height; \n \n} Size2i; \n \n#pragma pack(push, 1) \ntypedef struct { \n \n //Main part \n uint8_t sig[2]; \n uint32_t file_size; \n uint16_t empty1; \n uint16_t...
290
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 15.42, "nodes": 206, "errors": 0, "source_hash": "32363db6c62938b02216df25c5a00d71a7090603ca6b4155a2a4dedfc596c0aa", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,728
c
/* * This file generated automatically from ge.xml by c_client.py. * Edit at your peril. */ /** * @defgroup XCB_GenericEvent_API XCB GenericEvent API * @brief GenericEvent XCB Protocol Implementation. * @{ **/ #ifndef __GE_H #define __GE_H #include "xcb.h" #ifdef __cplusplus extern "C" { #endif #define XCB_...
28.36
101
(translation_unit) "/*\n * This file generated automatically from ge.xml by c_client.py.\n * Edit at your peril.\n */\n\n/**\n * @defgroup XCB_GenericEvent_API XCB GenericEvent API\n * @brief GenericEvent XCB Protocol Implementation.\n * @{\n **/\n\n#ifndef __GE_H\n#define __GE_H\n\n#include "xcb.h"\n\n#ifdef __cpluspl...
219
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 28.36, "nodes": 155, "errors": 0, "source_hash": "43415614975435d3ce9385534d12c33c384a8bd3c8de775a8a8c9eb6fb7a428f", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,729
c
#ifndef __FIX_STD_HEADER_H #define __FIX_STD_HEADER_H #include <time.h> #include <stdint.h> #include <string.h> #include <stdarg.h> #include <hal_common.h> typedef int32_t __int32_t; typedef uint32_t __uint32_t; typedef int16_t __int16_t; typedef uint16_t __uint16_t; typedef int8_t __int8_t; typedef uint8_t __uint...
20.02
66
(translation_unit) "#ifndef __FIX_STD_HEADER_H\n#define __FIX_STD_HEADER_H\n\n#include <time.h>\n#include <stdint.h>\n#include <string.h>\n#include <stdarg.h>\n\n#include <hal_common.h>\n\ntypedef int32_t __int32_t;\ntypedef uint32_t __uint32_t;\ntypedef int16_t __int16_t;\ntypedef uint16_t __uint16_t;\ntypedef int8_t ...
233
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 20.02, "nodes": 205, "errors": 0, "source_hash": "1c59cc6a05a7e7ed5a56576b060c8da7eaa200d83377c858655ebf6e7bb84912", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,730
c
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_ #define CORE_FXCODEC_JBIG2_DOC...
33.5
26
(translation_unit) "// Copyright 2016 PDFium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n//\n// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_\n#de...
141
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.5, "nodes": 88, "errors": 0, "source_hash": "f8d86186570c22396618adcafd10c6f93b00d9fc5bebc68555a22f467ef41f56", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
6,731
c
#pragma once #include <filesystem> #include <iostream> #include <string> #include <stdint.h> using namespace std;
18
6
(translation_unit) "#pragma once\n\n#include <filesystem>\n#include <iostream>\n#include <string>\n#include <stdint.h>\n\nusing namespace std;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <filesystem>\n" (#include) "#include" (syst...
22
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.0, "nodes": 20, "errors": 0, "source_hash": "24589d182be65897c4b53f2e8fd291dd9c7b832995aa727d73cd4a0daf26393b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
6,732
c
#pragma once #include "utilities.h" #include <algorithm> #include <istream> #include <iterator> #include <ostream> #include <string> #include <tuple> #include <vector> namespace OTUS { // Auxilary functions used for input/output IPv4 addresses. std::vector<std::string> split(const std::string& str, char d); IP4 str...
24.21
14
(translation_unit) "#pragma once\n\n#include "utilities.h"\n\n#include <algorithm>\n#include <istream>\n#include <iterator>\n#include <ostream>\n#include <string>\n#include <tuple>\n#include <vector>\n\nnamespace OTUS {\n\n// Auxilary functions used for input/output IPv4 addresses.\nstd::vector<std::string> split(const...
90
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.21, "nodes": 61, "errors": 0, "source_hash": "ed34c002b356ae252001eba3c4fad1126b151e47bd608fd844ddd2b41099d84d", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,733
c
#if defined __STDC_VERSION__ #include <stdio.h> #include <limits.h> #include <wctype.h> #include "_wctype.h" #include "test.h" wint_t test_wint; wctrans_t test_wctrans; wctype_t test_wctype; #define UPPER L"ABCDEFGHIJKLMNOPQRSTUVWXYZ" #define LOWER L"abcdefghijklmnopqrstuvwxyz" #define DIGIT L"0123456789" #define HEX...
29.49
90
(translation_unit) "#if defined __STDC_VERSION__\n#include <stdio.h>\n#include <limits.h>\n#include <wctype.h>\n#include "_wctype.h"\n#include "test.h"\n\nwint_t test_wint;\nwctrans_t test_wctrans;\nwctype_t test_wctype;\n\n#define UPPER L"ABCDEFGHIJKLMNOPQRSTUVWXYZ"\n#define LOWER L"abcdefghijklmnopqrstuvwxyz"\n#defin...
771
2
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 29.49, "nodes": 445, "errors": 0, "source_hash": "2a20a38b3913a868de09570f743d07522138311c2ae54fce646902c2633ff147", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
6,734
c
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Freescale Semiconductor, Inc. * Copyright (C) 2018 <NAME> */ #include <asm/arch/clock.h> #include <asm/arch/iomux.h> #include <asm/arch/imx-regs.h> #include <asm/arch/crm_regs.h> #include <asm/arch/mx6-pins.h> #include <asm/arch/sys_proto.h> #include <asm/...
23.76
78
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Copyright (C) 2016 Freescale Semiconductor, Inc.\n * Copyright (C) 2018 <NAME>\n*/\n\n#include <asm/arch/clock.h>\n#include <asm/arch/iomux.h>\n#include <asm/arch/imx-regs.h>\n#include <asm/arch/crm_regs.h>\n#include <asm/arch/mx6-pins.h>\n#include <asm/a...
387
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 23.76, "nodes": 235, "errors": 0, "source_hash": "9de92c7fe2170e08386c2c20de8986a50c239fce4d297a6020b543fb41856adc", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,735
c
#pragma once #include "tensor_pair_dataset.h" #include "loss.h" #include "model.h" #include <torch/torch.h> #include <memory> #include <functional> #include <vector> #include <string> #include <algorithm> namespace experiments { // OptimizerListener class OptimizerBatchListener { public: OptimizerBatchListene...
34.1
179
(translation_unit) "#pragma once\n\n#include "tensor_pair_dataset.h"\n#include "loss.h"\n#include "model.h"\n\n#include <torch/torch.h>\n\n#include <memory>\n#include <functional>\n#include <vector>\n#include <string>\n#include <algorithm>\n\nnamespace experiments {\n\n// OptimizerListener\n\nclass OptimizerBatchListen...
1,746
100
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 34.1, "nodes": 1049, "errors": 0, "source_hash": "d5e07cff990b8a2c97202b6bed793ea22cb8637de402a13235da39bca0e3a4a2", "categorized_nodes": 704}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,736
c
//-*-C++-*- /*************************************************************************** * * Copyright (C) 2002 by <NAME> * Licensed under the Academic Free License version 2.1 * ***************************************************************************/ // dspsr/Signal/General/dsp/ExcisionStatsPlotter.h #i...
33.98
54
(translation_unit) "//-*-C++-*-\n/***************************************************************************\n *\n * Copyright (C) 2002 by <NAME>\n * Licensed under the Academic Free License version 2.1\n *\n ***************************************************************************/\n\n// dspsr/Signal/General/ds...
244
8
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.98, "nodes": 134, "errors": 0, "source_hash": "5177a4fc06ea37ce9a12ac2af720341a3a2108c696847aa9d68f48fc0ae3e71a", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,737
c
/** Copyright 2020-2021 Alibaba Group Holding Limited. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
35.11
63
(translation_unit) "/** Copyright 2020-2021 Alibaba Group Holding Limited.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by...
488
37
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.11, "nodes": 284, "errors": 0, "source_hash": "864cf1e5b52741951062a690c7b015b162f544ca5ed3f6fe7ff120598a79e515", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,738
c
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #include <math.h> long lrint (double x) { long retval = 0L; #if defined(_AMD64_) || defined(__x86_64...
32.72
25
(translation_unit) "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the mingw-w64 runtime package.\n * No warranty is given; refer to the file DISCLAIMER.PD within this package.\n */\n#include <math.h>\n\nlong lrint (double x) \n{\n long retval = 0L;\n#if define...
232
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.72, "nodes": 126, "errors": 0, "source_hash": "e261ee5d034b05e1a9a029ca54c430e2848fcaebc65cec980845052107f815da", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,739
c
#ifndef FRUSTUM_CLIPPING_CLIPPER_H_ #define FRUSTUM_CLIPPING_CLIPPER_H_ #include <Eigen/Eigen> #include "Frustum.h" #include "Facet.h" #include "Drawer.h" class Clipper { public: Clipper(); void clipFrustumFrustum(std::shared_ptr<Frustum> _frustum1, std::shared_ptr<Frustum> _frustum2, ...
44.52
23
(translation_unit) "#ifndef FRUSTUM_CLIPPING_CLIPPER_H_\n#define FRUSTUM_CLIPPING_CLIPPER_H_\n\n#include <Eigen/Eigen>\n#include "Frustum.h"\n#include "Facet.h"\n#include "Drawer.h"\n\nclass Clipper\n{\npublic:\n Clipper();\n\n void clipFrustumFrustum(std::shared_ptr<Frustum> _frustum1, std::shared_ptr<Frustum> _frus...
286
17
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 44.52, "nodes": 184, "errors": 0, "source_hash": "c389804bcd9ca8f8c43762312d5494851d209c53b20c7b1c942858ffdf5b83f2", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,740
c
/** /* Copyright (c) 2003by <NAME> /* /* This document is bound by the QT Public License /* (http://www.trolltech.com/licenses/qpl.html). /* See License.txt for more information. /* /* /* /* ALL RIGHTS RESERVED. /* /* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS /* OR IMPLIED WA...
32.47
104
(translation_unit) "/**\n/* Copyright (c) 2003by <NAME>\n/*\n/* This document is bound by the QT Public License\n/* (http://www.trolltech.com/licenses/qpl.html).\n/* See License.txt for more information.\n/*\n/*\n/*\n/* ALL RIGHTS RESERVED. \n/* \n/* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND...
569
29
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 32.47, "nodes": 329, "errors": 0, "source_hash": "6da8097f7e47f7133e9ccb05dd2cca17bd531c6d6a982b8000d216636ab6437f", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
6,741
c
#ifndef WORLDFILE_H #define WORLDFILE_H #include <QString> #include <string> #include "Items/gravity_da.h" #include "Items/include_da.h" #include "Items/physics_da.h" #include "Items/modelplugin.h" #include "Items/scene.h" #include "Items/multipleincludes.h" #include "Items/multipleplugins.h" #include "Items/gui_da....
28.18
49
(translation_unit) "#ifndef WORLDFILE_H\n#define WORLDFILE_H\n\n#include <QString>\n\n#include <string>\n\n#include "Items/gravity_da.h"\n#include "Items/include_da.h"\n#include "Items/physics_da.h"\n#include "Items/modelplugin.h"\n#include "Items/scene.h"\n#include "Items/multipleincludes.h"\n#include "Items/multiplep...
396
20
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 28.18, "nodes": 209, "errors": 0, "source_hash": "61d62a2fe8c128ea7283e8acb6bd3a0efc843fd4e641238c66c52a0ccbeaf98f", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,742
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "ZWSFlowMenu.h" #import "ZWSMenuLabel.h" #import "ZWSPagingView.h" #import "ZWSSectionBar.h" #import "ZWSViewControll...
24.67
18
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "ZWSFlowMenu.h"\n#import "ZWSMenuLabel.h"\n#import "ZWSPagingView.h"\n#import "ZWSSec...
67
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.67, "nodes": 57, "errors": 0, "source_hash": "11a3d65bbb4ced1aed1cff07e3c427175297a2be9670184b2c005897184943a8", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
6,743
c
#ifndef _CC_SQUARE_H #define _CC_SQUARE_H namespace cc { class Square { friend class Rectangle; private: int side; public: Square(int a) : side(a) { } }; } #endif
10.47
17
(translation_unit) "#ifndef _CC_SQUARE_H\n#define _CC_SQUARE_H\nnamespace cc\n{\nclass Square\n{\n friend class Rectangle;\n\n private:\n int side;\n\n public:\n Square(int a)\n : side(a)\n {\n }\n};\n}\n#endif" (preproc_ifdef) "#ifndef _CC_SQUARE_H\n#define _CC_SQUARE_H\nnamespace cc\n{\nclas...
59
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 10.47, "nodes": 32, "errors": 0, "source_hash": "fb1e112d89a6a965aec44679cde3817142483b85fd60607d7f5bcd5e753f841a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,744
c
/* * GStreamer * Copyright (C) 2008 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. ...
37.05
37
(translation_unit) "/* \n * GStreamer\n * Copyright (C) 2008 <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your o...
98
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.05, "nodes": 67, "errors": 0, "source_hash": "6de36953741a282c7dd2aee9f170a2c9e3dccc34a3cb32f771ee4d36875a6c65", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,745
c
#ifndef ANNO_H #define ANNO_H #include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include "htslib/kstring.h" #include "htslib/khash.h" #include "htslib/hts.h" #include "str_util.h" #include "bins.h" /* gtf file parsing */ /* columns */ enum {GTF_...
34.72
253
(translation_unit) "#ifndef ANNO_H\n#define ANNO_H\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include "htslib/kstring.h"\n#include "htslib/khash.h"\n#include "htslib/hts.h"\n#include "str_util.h"\n#include "bins.h"\n\n/* gtf file pa...
1,054
2
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 34.72, "nodes": 738, "errors": 0, "source_hash": "4ebbd25170bedb874ef8fe8fba1e0d4d0e74e67c82211b96b9e4e2279e299436", "categorized_nodes": 448}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,746
c
// Read the documentation to learn more about C++ code generator // versioning. // %X% %Q% %Z% %W% // /local/data/veris2/dorman/cpp/xspec_cxx/model #ifndef MODEL_FUNCTIONS_H #define MODEL_FUNCTIONS_H 1 #endif // Detached code regions: // WARNING: this code will be lost if code is regenerated. #if 0 // req...
25.38
29
(translation_unit) "// Read the documentation to learn more about C++ code generator\n// versioning.\n// %X% %Q% %Z% %W%\n// /local/data/veris2/dorman/cpp/xspec_cxx/model\n\n#ifndef MODEL_FUNCTIONS_H\n#define MODEL_FUNCTIONS_H 1\n\n\n\n#endif\n\n\n// Detached code regions:\n// WARNING: this code will be lost if c...
161
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.38, "nodes": 93, "errors": 0, "source_hash": "9598ddd30eadc971538a362ed7797e83e43ac72a39033be10abbe657ec29a274", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,747
c
#include <stdio.h> #include <string.h> int show() { printf("this is a test"); return 0; } int add(int a, int b) { return a+b; } typedef struct { int abc; char x[20]; }abc; typedef void(*test_hdl)(abc *td); int wrap_function(test_hdl thdl, abc *hh) { printf("c api: abc=%d, x=%s\n", hh->abc...
15.23
26
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\n\nint show()\n{\n printf("this is a test");\n return 0;\n}\n\nint add(int a, int b)\n{\n return a+b;\n}\n\ntypedef struct {\n int abc;\n char x[20];\n}abc;\n\n\ntypedef void(*test_hdl)(abc *td);\n\nint wrap_function(test_hdl thdl, abc *hh)\n{...
184
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 15.23, "nodes": 108, "errors": 0, "source_hash": "35e4484641c07465d36d294dbeaf71ce8f6ed26d30e42f034121c610a1c26023", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,748
c
#pragma once #include <vector> #include <string> namespace Utility { std::vector<std::string> split( const std::string& Input, const std::string& Delim ); std::vector<std::wstring> split( const std::wstring& Input, const std::wstring& Delim ); std::wstring MakeWStr( const std::string& str ); } // namespace Utilit...
34.44
9
(translation_unit) "#pragma once\n\n#include <vector>\n#include <string>\n\nnamespace Utility\n{\n std::vector<std::string> split( const std::string& Input, const std::string& Delim );\n std::vector<std::wstring> split( const std::wstring& Input, const std::wstring& Delim );\n std::wstring MakeWStr( const std::string& ...
118
8
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 34.44, "nodes": 67, "errors": 0, "source_hash": "3958ae395ab239b2dbfdc8d049b498d471d94ba855eae70fde19cd72ccb13e15", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,749
c
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
31.11
65
(translation_unit) "/*=========================================================================\n *\n * Copyright Insight Software Consortium\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 ...
186
10
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.11, "nodes": 100, "errors": 0, "source_hash": "57ff8f835d92263b212abfb3a249e76bd62a4f0f474a452fdbf246cdac0d1feb", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,750
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * tegra210_sfc.h - Definitions for Tegra210 SFC driver * * Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. * */ #ifndef __TEGRA210_SFC_H__ #define __TEGRA210_SFC_H__ /* * SFC_RX registers are with respect to XBAR. * The data comes from XBAR to SFC. *...
30.15
66
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * tegra210_sfc.h - Definitions for Tegra210 SFC driver\n *\n * Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.\n *\n */\n\n#ifndef __TEGRA210_SFC_H__\n#define __TEGRA210_SFC_H__\n\n/*\n * SFC_RX registers are with respect to XBAR.\n * Th...
203
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 30.15, "nodes": 175, "errors": 0, "source_hash": "f896ba3ac12bcf058f8ecab6ad5603823b1c07b16c1e1dfacbd469e0434a8dbc", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,751
c
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2016 RDK Management * * 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 ...
38.43
42
(translation_unit) "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2016 RDK Management\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the ...
139
7
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 38.43, "nodes": 92, "errors": 0, "source_hash": "47afc7313b93ee2da222f396a262dcae4d16d70fc633b50b8d0f08cbc4fd714a", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,752
c
/* Test spelling differences in UCNs are properly diagnosed for macro redefinitions. */ /* { dg-do preprocess } */ /* { dg-options "-std=c99 -pedantic-errors" } */ /* Different spelling of UCN in expansion. */ #define m1 \u00c1 /* { dg-message "previous definition" } */ #define m1 \u00C1 /* { dg-error "redefined"...
39.7
23
(translation_unit) "/* Test spelling differences in UCNs are properly diagnosed for macro\n redefinitions. */\n/* { dg-do preprocess } */\n/* { dg-options "-std=c99 -pedantic-errors" } */\n\n/* Different spelling of UCN in expansion. */\n#define m1 \u00c1 /* { dg-message "previous definition" } */\n#define m1 \u00C...
96
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 39.7, "nodes": 66, "errors": 0, "source_hash": "e0c9da2e2fcda5741d3a9c311393c0d600e0c62bcf072b4ed988e502995b65cb", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define m1 ...
6,753
c
/* Copyright (c) 2019 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. */ #pragma once #include "api/plugin-api.hpp" #include "cv/numeric...
31.53
135
(translation_unit) "/* Copyright (c) 2019 <NAME>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n */\n\n#pragma once\n\n#include "api/plugin-...
862
50
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 31.53, "nodes": 546, "errors": 0, "source_hash": "740ef8193552fb98b2c8600e2a3d078eaaf785a7eb95396222af14ee55900754", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,754
c
#pragma once /* ASensor - Sensor library. Can be used standalone or in conjunction with AWind library Copyright (C) 2015-2018 <NAME>. All right reserved You can always find the latest version of the library at https://github.com/AndreiDegtiarev/ASensor This library is free software; you can redistribute it and/or mod...
29.35
101
(translation_unit) "#pragma once\n/*\nASensor - Sensor library. Can be used standalone or in conjunction with AWind library\nCopyright (C) 2015-2018 <NAME>. All right reserved\n\nYou can always find the latest version of the library at\nhttps://github.com/AndreiDegtiarev/ASensor\n\nThis library is free software; you ca...
934
13
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 29.35, "nodes": 523, "errors": 0, "source_hash": "c402b871a8acfd208a3158ccb0abc8def44a6781355ba997300f5340f55cc6af", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,755
c
#ifndef ZSWCGLOBALFEATUREANALYZER_H #define ZSWCGLOBALFEATUREANALYZER_H #include "zswctree.h" class ZSwcGlobalFeatureAnalyzer { public: ZSwcGlobalFeatureAnalyzer(); enum EFeatureSet{ NGF1, //Number of leaves, number of branch points, //box volume, maximum segment length, maximum path length ...
30.77
22
(translation_unit) "#ifndef ZSWCGLOBALFEATUREANALYZER_H\n#define ZSWCGLOBALFEATUREANALYZER_H\n\n#include "zswctree.h"\n\nclass ZSwcGlobalFeatureAnalyzer\n{\npublic:\n ZSwcGlobalFeatureAnalyzer();\n\n enum EFeatureSet{\n NGF1, //Number of leaves, number of branch points,\n //box volume, maximum segment len...
101
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.77, "nodes": 53, "errors": 0, "source_hash": "b3d0b69203a4b67c96b339d96b87727906c410fc0b2ea4e40d62db9efec87bbb", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,756
c
// coin.c #include <ansi.h> inherit MONEY; void create() { set_name(HIY"铜钱"NOR, ({"coin", "coins", "coin_money" })); if( clonep() ) set_default_object(__FILE__); else { set("money_id", "coin"); set("long", "这是流通中单位最小的货币,约要一百文铜板才值得一两白银。\n"); set("unit", "些"); set("base_value", 1); set("base_unit", "文"); ...
19.28
18
(translation_unit) "// coin.c\n#include <ansi.h>\ninherit MONEY;\n\nvoid create()\n{\n set_name(HIY"铜钱"NOR, ({"coin", "coins", "coin_money" }));\n if( clonep() )\n set_default_object(__FILE__);\n else {\n set("money_id", "coin");\n set("long", "这是流通中单位最小的货币,约要一百文铜板才值得一两白银。\n");\n set("unit", "些");\n set("base_valu...
180
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.28, "nodes": 68, "errors": 0, "source_hash": "3f1e088bcc60dc1ec8b5dd275c31be449d7e8087dd346f605049ace791545455", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,757
c
/*- * Copyright (c) 2015, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
42
83
(translation_unit) "/*-\n * Copyright (c) 2015, <NAME>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROV...
683
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 42.0, "nodes": 396, "errors": 0, "source_hash": "343ce742d2090abe25aa2fb86b110af49c600481faf253f41f089f3957cdd023", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
6,758
c
/* * arch/arm/mach-kirkwood/board-iomega_ix2_200.c * * Iomega StorCenter ix2-200 * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linu...
28.9
30
(translation_unit) "/*\n * arch/arm/mach-kirkwood/board-iomega_ix2_200.c\n *\n * Iomega StorCenter ix2-200\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is licensed "as is" without any\n * warranty of any kind, whether express or implied.\n */\n\n#include <...
114
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.9, "nodes": 73, "errors": 0, "source_hash": "936348df47a23d5135268d8a0a52f98674a648b1b7e6a31cf025c0a52a3d8dbb", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,759
c
#pragma once #include <TypeInformation/TypeMetaInfo.h> class BaseType { public: ADD_TYPE_META_INFO() BaseType() {} virtual ~BaseType() {} }; class TestType1 : public BaseType { public: ADD_TYPE_META_INFO() TestType1() {} virtual ~TestType1() {} }; class TestType2 :public TestType1 { p...
19.58
43
(translation_unit) "#pragma once\n#include <TypeInformation/TypeMetaInfo.h>\n\nclass BaseType\n{\npublic:\n ADD_TYPE_META_INFO()\n BaseType() {}\n virtual ~BaseType() {}\n};\n\nclass TestType1 : public BaseType\n{\npublic:\n ADD_TYPE_META_INFO()\n TestType1() {}\n virtual ~TestType1() {}\n};\n...
275
9
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 19.58, "nodes": 119, "errors": 0, "source_hash": "5bdc2a50e5d2e2dc99334703f447eb56d09518e700fcd8d567ae14defafde029", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,760
c
#pragma once #include "functional/defs.h" namespace marian { namespace functional { template <typename T, size_t N> struct Array { typedef T value_type; T data_[N]; __HDI__ const T* data() const { return data_; } __HDI__ T* data() { return data_; } __HDI__ constexpr static size_t size() { return N; } ...
28.62
24
(translation_unit) "#pragma once\n\n#include "functional/defs.h"\n\nnamespace marian {\n\nnamespace functional {\n\ntemplate <typename T, size_t N>\nstruct Array {\n typedef T value_type;\n\n T data_[N];\n\n __HDI__ const T* data() const { return data_; }\n\n __HDI__ T* data() { return data_; }\n\n __HDI__ constex...
300
13
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.62, "nodes": 175, "errors": 0, "source_hash": "e3fc2b2b5acb93010eae6e0ab842318605bfa3b5e7470545cb10a8cbb8e05a76", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,761
c
/* * Copyright (C) 1989-2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of cond...
31.91
258
(translation_unit) "/*\n * Copyright (C) 1989-2015, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * 1. Redistributions of source code must retain the above copyright not...
1,980
0
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 31.91, "nodes": 1177, "errors": 0, "source_hash": "b223348e9ba5887d2e9a996599a7c7a0acc7c973f246fbfb73b4a787677dcf1b", "categorized_nodes": 913}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,762
c
// // WWPopupManager+Monitor.h // WanWu // // Created by foyoodo on 2021/11/3. // #import "WWPopupManager.h" NS_ASSUME_NONNULL_BEGIN @interface WWPopupManager (Monitor) - (void)monitorDismissalOfTarget:(id<WWPopupManageable> _Nullable)target; @end NS_ASSUME_NONNULL_END
21.75
12
(translation_unit) "//\n// WWPopupManager+Monitor.h\n// WanWu\n//\n// Created by foyoodo on 2021/11/3.\n//\n\n#import "WWPopupManager.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WWPopupManager (Monitor)\n\n- (void)monitorDismissalOfTarget:(id<WWPopupManageable> _Nullable)target;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" ...
50
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.75, "nodes": 31, "errors": 0, "source_hash": "27f580acfc7b77cdaeaff7f0254064f5a46128bbd52e902a32c1dd3a85b904cb", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,763
c
// Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: <NAME> (chenshuo at chenshuo dot com) #ifndef MUDUO_BASE_THREADLOCALSINGLETON_H #define MUDUO_BASE_THREADLOCALSINGLETON_H #include <muduo/base/noncopyable.h> #include <assert.h> #include <pthread.h> ...
21.3
66
(translation_unit) "// Use of this source code is governed by a BSD-style license\n// that can be found in the License file.\n//\n// Author: <NAME> (chenshuo at chenshuo dot com)\n\n#ifndef MUDUO_BASE_THREADLOCALSINGLETON_H\n#define MUDUO_BASE_THREADLOCALSINGLETON_H\n\n#include <muduo/base/noncopyable.h>\n\n#include <a...
395
13
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 21.3, "nodes": 232, "errors": 0, "source_hash": "66b4eb96233fd27c9e09da066f8a94563e472a6e85ccddfdce9dbc0e64ce394e", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,764
c
/* * POK header * * The following file is a part of the POK project. Any modification should * be made according to the POK licence. You CANNOT use this file or a part * of a file for your own project. * * For more information on the POK licence, please see our LICENCE FILE * * Pl...
39.73
56
(translation_unit) "/*\n * POK header\n *\n * The following file is a part of the POK project. Any modification should\n * be made according to the POK licence. You CANNOT use this file or a part\n * of a file for your own project.\n *\n * For more information on the POK licence, please se...
285
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 39.73, "nodes": 226, "errors": 0, "source_hash": "002c0eb97920ef3c134cb42086dbb4565dbe780a85db127f96b400d257e64d09", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,765
c
/* * Copyright (C) 2016 Intel Corporation * * SPDX-License-Identifier: MIT */ #include "bench.h" class dot_C : public Bench { public: dot_C() { a_mat = 0; b_mat = 0; r_mat = 0; } ~dot_C() { if (a_mat) mkl_free(a_mat); if (b_mat) mkl_free(b_mat); if (r_mat) mkl_fre...
18.79
38
(translation_unit) "/*\n * Copyright (C) 2016 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n */\n\n#include "bench.h"\n\nclass dot_C : public Bench {\n public:\n dot_C() {\n a_mat = 0;\n b_mat = 0;\n r_mat = 0;\n }\n\n ~dot_C() {\n if (a_mat)\n mkl_free(a_mat);\n if (b_mat)\n mkl_f...
254
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 18.79, "nodes": 149, "errors": 0, "source_hash": "69a94984961870f1cbbeccb51f80a2c8ae1884f712bf3bdb7752af07c5a9daf1", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,766
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "TVHSPhotosTableItem.h" @interface TVHSPhotoFacesTableItem : TVHSPhotosTableItem { } - (id)newViewController; // IMP=0x000000010003b488 - (id)thumbnailImage; // IMP=0x0000000100...
29.57
14
(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 "TVHSPhotosTableItem.h"\n\n@interface TVHSPhotoFacesTableItem : TVHSPhotosTableItem\n{\n}\n\n- (id)newViewController; // IMP=0x000000010003b488\n- (id)th...
75
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.57, "nodes": 39, "errors": 0, "source_hash": "5213ed76c971a9e7fb1ebb94142240da7935dfa3f27429c9757339c2bc774d72", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,767
c
#ifndef SHAPEADDVISITOR #define SHAPEADDVISITOR #include "ShapeVisitor.h" //ShapeAddVisitor class defenition class ShapeAddVisitor : public ShapeVisitor { public: ShapeAddVisitor(Windows::UI::Xaml::Controls::Canvas^ canvas); ~ShapeAddVisitor(); virtual void Visit(Rectangle* shape); virtual void Visit(Ellipse* sha...
24.87
15
(translation_unit) "#ifndef SHAPEADDVISITOR\n#define SHAPEADDVISITOR\n\n#include "ShapeVisitor.h"\n\n//ShapeAddVisitor class defenition\nclass ShapeAddVisitor : public ShapeVisitor\n{\npublic:\n ShapeAddVisitor(Windows::UI::Xaml::Controls::Canvas^ canvas);\n ~ShapeAddVisitor();\n virtual void Visit(Rectangle* shape);\n...
129
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.87, "nodes": 72, "errors": 0, "source_hash": "1857a55eab60e19c61c9f88922e58364d4f28d0e0c015978765f3d7aa9588a67", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,768
c
#pragma once #include <mw/file/FilePath.h> #include <mw/mmr/Index.h> #include <mw/mmr/LeafIndex.h> #include <mw/common/BitSet.h> #include <memory> MMR_NAMESPACE class PruneList { public: using Ptr = std::shared_ptr<PruneList>; using CPtr = std::shared_ptr<const PruneList>; static PruneList::Ptr Open(con...
36.5
26
(translation_unit) "#pragma once\n\n#include <mw/file/FilePath.h>\n#include <mw/mmr/Index.h>\n#include <mw/mmr/LeafIndex.h>\n#include <mw/common/BitSet.h>\n#include <memory>\n\nMMR_NAMESPACE\n\nclass PruneList\n{\npublic:\n using Ptr = std::shared_ptr<PruneList>;\n using CPtr = std::shared_ptr<const PruneList>;\n...
273
18
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.5, "nodes": 158, "errors": 0, "source_hash": "eb9322a7de161e32f334d4de7f604fa66594d38eaa6488039456c51f04fe30b4", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,769
c
#ifndef LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_ #define LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_ #include "AnimationClip.h" namespace gameplay { // Lua bindings for enum conversion functions for AnimationClip::Listener::EventType. AnimationClip::Listener::EventType lua_enumFromString_AnimationClipListenerEventType(const ...
42.7
10
(translation_unit) "#ifndef LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_\n#define LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_\n\n#include "AnimationClip.h"\n\nnamespace gameplay\n{\n\n// Lua bindings for enum conversion functions for AnimationClip::Listener::EventType.\nAnimationClip::Listener::EventType lua_enumFromString_Animatio...
68
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 42.7, "nodes": 40, "errors": 0, "source_hash": "6b823846fb03139a3532c089a2017db8d4e04583e8d154ec4779f1c8b8b98cfa", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
6,770
c
#include <stdio.h> #include <stdlib.h> int is_subset_sum(int arr[], int sum, size_t n) { if (sum == 0) return 1; if (n == 0) return 0; return is_subset_sum(arr, sum - arr[n - 1], n - 1) || is_subset_sum(arr, sum - arr[n - 1], n - 1); } int is_subset_sum_dp(int arr[], int sum, size_t n) { int mem[n + 1...
24.36
36
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint is_subset_sum(int arr[], int sum, size_t n)\n{\n if (sum == 0)\n return 1;\n if (n == 0)\n return 0;\n return is_subset_sum(arr, sum - arr[n - 1], n - 1) || is_subset_sum(arr, sum - arr[n - 1], n - 1);\n}\n\nint is_subset_sum_dp(int arr[], int ...
477
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.36, "nodes": 304, "errors": 0, "source_hash": "10e2e9eb4d841edf813c466ff866a599f067b10c33f4c870da526906598aa9c2", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,771
c
#include "bf/platform/bf_platform.h" #include "bf/platform/bf_platform_event.h" #if BIFROST_PLATFORM_EMSCRIPTEN #include <emscripten.h> #endif #include <stdlib.h> /* realloc */ #include <string.h> /* memcpy */ bfPlatformInitParams g_BifrostPlatform; bfPlatformGfxAPI bfPlatformGetGfxAPI(void) { #if defined(BF_PLAT...
29.5
161
(translation_unit) "#include "bf/platform/bf_platform.h"\n\n#include "bf/platform/bf_platform_event.h"\n\n#if BIFROST_PLATFORM_EMSCRIPTEN\n#include <emscripten.h>\n#endif\n\n#include <stdlib.h> /* realloc */\n#include <string.h> /* memcpy */\n\nbfPlatformInitParams g_BifrostPlatform;\n\nbfPlatformGfxAPI bfPlatformGetG...
814
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 29.5, "nodes": 510, "errors": 0, "source_hash": "bc7bb28fc66f5745baf566766c5fb3cfd93fb73ba51050863369c1c5794c0f6d", "categorized_nodes": 373}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,772
c
/* * teapot.h * * Created on: Jan 27, 2015 * Author: theron */ #ifndef TEAPOT_H_ #define TEAPOT_H_ #endif /* TEAPOT_H_ */
8.86
14
(translation_unit) "/*\n * teapot.h\n *\n * Created on: Jan 27, 2015\n * Author: theron\n */\n\n#ifndef TEAPOT_H_\n#define TEAPOT_H_\n\n\n\n\n\n\n\n\n\n\n#endif /* TEAPOT_H_ */\n" (comment) "/*\n * teapot.h\n *\n * Created on: Jan 27, 2015\n * Author: theron\n */" (preproc_ifdef) "#ifndef TEAPOT_H_\n#de...
10
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 8.86, "nodes": 7, "errors": 0, "source_hash": "1fb84f1b2f80580cd3d65c259979898f8531de5feff04908cde4dad720952ee2", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TEA...
6,773
c
#ifndef WORLD_MAP_PANEL_H #define WORLD_MAP_PANEL_H #include "Panel.h" class Button; enum class ProvinceName; class WorldMapPanel : public Panel { private: std::unique_ptr<Button> backToGameButton, provinceButton; std::unique_ptr<ProvinceName> provinceName; protected: virtual void handleEvents(bool &running) ove...
29.19
21
(translation_unit) "#ifndef WORLD_MAP_PANEL_H\n#define WORLD_MAP_PANEL_H\n\n#include "Panel.h"\n\nclass Button;\n\nenum class ProvinceName;\n\nclass WorldMapPanel : public Panel\n{\nprivate:\n std::unique_ptr<Button> backToGameButton, provinceButton;\n std::unique_ptr<ProvinceName> provinceName;\nprotected:\n virtual v...
190
14
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.19, "nodes": 122, "errors": 0, "source_hash": "7215af86ae80e6973f23a018a6849072240ac10ecb4d2f092b339b457291a6c0", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,774
c
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * 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. */ /** * @{ * * @file */ #include "net/gnrc/ipv6.h" #include "net/gnrc/ndp.h" #include "net/gnrc/...
22.67
21
(translation_unit) "/*\n * Copyright (C) 2015 <NAME> <<EMAIL>>\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 * @{\n *\n * @file\n */\n\n#include "net/gnrc/ipv6.h"\n#include "...
52
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.67, "nodes": 24, "errors": 0, "source_hash": "3b55437aadf62233fec40ef7649012f12206bf787c78172a49d20deea04b364f", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,775
c
#ifndef __LED_H #define __LED_H #include "stm32f10x.h" #define GLED_OFF GPIO_SetBits(GPIOC, GPIO_Pin_13) #define GLED_ON GPIO_ResetBits(GPIOC, GPIO_Pin_13) #define RLED_OFF GPIO_SetBits(GPIOA, GPIO_Pin_2) #define RLED_ON GPIO_ResetBits(GPIOA, GPIO_Pin_2) extern u8 Gled_Num; extern...
30.86
14
(translation_unit) "#ifndef __LED_H\n#define __LED_H\n\n#include "stm32f10x.h"\n\n#define GLED_OFF GPIO_SetBits(GPIOC, GPIO_Pin_13)\n#define GLED_ON GPIO_ResetBits(GPIOC, GPIO_Pin_13)\n#define RLED_OFF GPIO_SetBits(GPIOA, GPIO_Pin_2)\n#define RLED_ON GPIO_ResetBits(GPIOA, GPIO_Pin_2)...
74
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.86, "nodes": 60, "errors": 0, "source_hash": "156352f65b9510fbc7e4b08ddd815803ec4af2519245457dd4c74d01ea42401e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,776
c
#import <SenTestingKit/SenTestingKit.h> @interface NEO4OCTests : SenTestCase @end
26.33
3
(translation_unit) "#import <SenTestingKit/SenTestingKit.h>\n\n@interface NEO4OCTests : SenTestCase\n\n@end\n" (preproc_call) "#import <SenTestingKit/SenTestingKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<SenTestingKit/SenTestingKit.h>" (ERROR) "@interface NEO4OCTests : SenTestCase\n\n@end" (...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 26.33, "nodes": 9, "errors": 0, "source_hash": "ced54f05fb1bdfd205adf0e76202f372dfc10ae954b94c90f1d5c0bfe9acd85c", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Sen...
6,777
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMUIControl.h" @interface MMRefreshTableFooterView : MMUIControl { int m_state; double m_heightLimit; id <MMRefreshTableFooterDelegate> m_delegate; _Bool _m_bTop...
32.39
28
(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 "MMUIControl.h"\n\n@interface MMRefreshTableFooterView : MMUIControl\n{\n int m_state;\n double m_heightLimit;\n id <MMRefreshTableFooterDelegat...
245
21
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.39, "nodes": 150, "errors": 0, "source_hash": "23163ef075e110924b47d0f5a7dc68e30b12d1db352f155882fd74eb2d2e9321", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,778
c
#pragma once #include <cassert> #include <type_traits> #include <Macros/DllMarcos.h> template <typename T> class DOOM_API D_CLASS ISingleton { static_assert(std::is_pointer<T>::value == false, "Don't try making singleton with pointer type"); private: static inline T* mSingleTon{ nullptr }; public: /// <summary> ...
25
44
(translation_unit) "#pragma once\n#include <cassert>\n#include <type_traits>\n\n#include <Macros/DllMarcos.h>\n\ntemplate <typename T>\nclass DOOM_API D_CLASS ISingleton\n{\n static_assert(std::is_pointer<T>::value == false, "Don't try making singleton with pointer type");\n\nprivate:\n static inline T* mSingleTon{ nul...
215
13
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 25.0, "nodes": 131, "errors": 0, "source_hash": "2e48e5e7d0ef05560ff235d8fe8f2584f917c790099bb640d61aa85d06b76f2e", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,779
c
// // XBTiTleMeumController.h // XibaWeibo // // Created by bos on 15-6-15. // Copyright (c) 2015年 axiba. All rights reserved. // #import <UIKit/UIKit.h> @interface XBTiTleMeumController : UITableViewController @end
21
10
(translation_unit) "//\n// XBTiTleMeumController.h\n// XibaWeibo\n//\n// Created by bos on 15-6-15.\n// Copyright (c) 2015年 axiba. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XBTiTleMeumController : UITableViewController\n\n@end\n" (comment) "//" (comment) "// XBTiTleMeumController.h" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "cb2885a4bb3a2e575ccc80034b89118024d77a9dae7f6a528008ce6a53e13caf", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
6,780
c
#ifndef CONSTRAINTS_H #define CONSTRAINTS_H #include "common.h" #define GLM_ENFORCE_SWIZZLE //#include "glm/glm.hpp" #include "glm/vector_relational.hpp" #include "glm/vec2.hpp" #include "glm/vec3.hpp" #ifndef MKL_BLAS #define MKL_BLAS MKL_DOMAIN_BLAS #endif #define EIGEN_USE_MKL_ALL #include <eigen3/Eigen/Dense> ...
26.62
26
(translation_unit) "#ifndef CONSTRAINTS_H\n#define CONSTRAINTS_H\n\n#include "common.h"\n\n#define GLM_ENFORCE_SWIZZLE\n//#include "glm/glm.hpp"\n#include "glm/vector_relational.hpp"\n#include "glm/vec2.hpp"\n#include "glm/vec3.hpp"\n\n#ifndef MKL_BLAS\n#define MKL_BLAS MKL_DOMAIN_BLAS\n#endif\n\n#define EIGEN_USE_MKL_...
174
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.62, "nodes": 122, "errors": 0, "source_hash": "a0b7d3ff3c9d57b81b6a6fe61f2bae393c827a2a58d55c771ba6ae20d1c839a1", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,781
c
// // UINavigationController+pushedDevice.h // Kamu // // Created by YGTech on 2018/6/26. // Copyright © 2018年 com.Kamu.cme. All rights reserved. // #import <UIKit/UIKit.h> @interface UINavigationController (operating) @property (nonatomic, strong) Device *operatingDevice; @property (nonatomic, strong) Cam *opera...
34.4
15
(translation_unit) "//\n// UINavigationController+pushedDevice.h\n// Kamu\n//\n// Created by YGTech on 2018/6/26.\n// Copyright © 2018年 com.Kamu.cme. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UINavigationController (operating)\n@property (nonatomic, strong) Device *operatingDevice;\n@propert...
132
21
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.4, "nodes": 88, "errors": 0, "source_hash": "0ad80acc4cea2f1fe272f53ed8fe919ea965c19a41d1d95f13917091c77fdead", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
6,782
c
// KizuEngine Copyright (c) 2019 <NAME>. This software is released under the MIT License. #pragma once #include "CoreMinimal.h" #include "Engine/Engine.h" #include "GameFramework/Actor.h" #include "Core/Combat/KizuCombat.h" #include "Net/UnrealNetwork.h" #include "Engine/DataTable.h" #include "KAction.generated.h" U...
37.58
197
(translation_unit) "// KizuEngine Copyright (c) 2019 <NAME>. This software is released under the MIT License.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Engine/Engine.h"\n#include "GameFramework/Actor.h"\n#include "Core/Combat/KizuCombat.h"\n#include "Net/UnrealNetwork.h"\n#include "Engine/DataTable.h"\n#in...
1,578
76
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 37.58, "nodes": 922, "errors": 0, "source_hash": "69d5456dd3a54414b73fa5c13dcc92019792c2ac9b3571f02b75f17755131fcb", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,783
c
/* * Copyright (C) 2006 PA Semi, Inc * * Authors: <NAME>, PA Semi * <NAME>, PA Semi * * Maintained by: <NAME> <<EMAIL>> * * Based on arch/powerpc/platforms/maple/pci.c * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2...
26.87
252
(translation_unit) "/*\n * Copyright (C) 2006 PA Semi, Inc\n *\n * Authors: <NAME>, PA Semi\n * <NAME>, PA Semi\n *\n * Maintained by: <NAME> <<EMAIL>>\n *\n * Based on arch/powerpc/platforms/maple/pci.c\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU G...
1,757
10
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 26.87, "nodes": 1111, "errors": 0, "source_hash": "1370e4cefb952e825b931e14542e4f6a24479538736f9d9f65638a7014a77656", "categorized_nodes": 791}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,784
c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "integration.h" // This function assumes data linearly spaced in a inline double func(double x, double *a, double *b, int elements, double a_min, double a_max) { int index; index = (int)((x-a_min)/(a_max-a_min)*(elements-1)); if (index>=el...
26.88
56
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include "integration.h"\n\n// This function assumes data linearly spaced in a\ninline double func(double x, double *a, double *b, int elements,\n double a_min, double a_max)\n{\n int index;\n \n index = (int)((x-a_min)/(a_max-a_min)...
577
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 26.88, "nodes": 397, "errors": 0, "source_hash": "5aaca20968189dc3a6b177d4ebec8f4240d4a622803aa55d94d5b4878344bef2", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,785
c
// // Created by lifan on 2021/5/23. // #include "apue.h" #include "setjmp.h" #include <sys/wait.h> static void sig_alarm(int); static jmp_buf env_alrm; int main(void) { int n; char line[MAXLINE]; if (signal(SIGALRM, sig_alarm) == SIG_ERR) err_sys("cannot catch sigalarm"); if (setjmp(env_al...
22.71
28
(translation_unit) "//\n// Created by lifan on 2021/5/23.\n//\n\n#include "apue.h"\n#include "setjmp.h"\n#include <sys/wait.h>\n\nstatic void sig_alarm(int);\nstatic jmp_buf env_alrm;\n\nint main(void)\n{\n int n;\n char line[MAXLINE];\n\n if (signal(SIGALRM, sig_alarm) == SIG_ERR)\n err_sys("cannot cat...
238
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.71, "nodes": 126, "errors": 0, "source_hash": "9ff671489679f100a859d2e5eef7c87f10fda98b3b5fd7db5eba6965de9d3e73", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,786
c
#ifndef __DALI_INTERNAL_ADAPTOR_ABORT_HANDLER_H__ #define __DALI_INTERNAL_ADAPTOR_ABORT_HANDLER_H__ /* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
28.59
87
(translation_unit) "#ifndef __DALI_INTERNAL_ADAPTOR_ABORT_HANDLER_H__\n#define __DALI_INTERNAL_ADAPTOR_ABORT_HANDLER_H__\n\n/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd.\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....
203
3
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.59, "nodes": 115, "errors": 0, "source_hash": "81c068d534f1c33300416b360b5b21bc8bcba9936e44ee97fa240ad258ea03f9", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,787
c
//----------------------------------------------------------------- // this file is a part of: DKCS LoadSystem v. 0.1a // c0d3d by: Dr.Pixel // 2006 (C) DKCS Security Team // // contacts: e-mail: <EMAIL> // icq: 7600278 // web: http://dkcs.void.ru // forum: http://dkcs.net.ru //--------------------------------...
31.71
105
(translation_unit) "//-----------------------------------------------------------------\n// this file is a part of: DKCS LoadSystem v. 0.1a\n// c0d3d by: Dr.Pixel\n// 2006 (C) DKCS Security Team\n//\n// contacts: e-mail: <EMAIL>\n// icq: 7600278\n// web: http://dkcs.void.ru\n// forum: http://dkcs.net.ru\n//---...
1,024
1
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 31.71, "nodes": 586, "errors": 0, "source_hash": "adc5af4b65a27ea78cbf2b4b874fb8c1c19aaf49658346fe1d5188845ab0ae87", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,788
c
// // AnimationViewController2.h // LLUIScrollViewAnimations // // Created by 李龙 on 16/6/12. // Copyright © 2016年 lauren. All rights reserved. // #import "AnimationViewController1.h" @interface AnimationViewController2 : AnimationViewController1 @end
24.5
10
(translation_unit) "//\n// AnimationViewController2.h\n// LLUIScrollViewAnimations\n//\n// Created by 李龙 on 16/6/12.\n// Copyright © 2016年 lauren. All rights reserved.\n//\n\n#import "AnimationViewController1.h"\n\n@interface AnimationViewController2 : AnimationViewController1\n\n@end\n" (comment) "//" (comment...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.5, "nodes": 10, "errors": 0, "source_hash": "bb503a3d07c822fb39d05ec539a10a50149428a144ad824bec540089d6024f1d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"Animatio...
6,789
c
#ifndef BHS_SLEWING_CONTROLLER_H #define BHS_SLEWING_CONTROLLER_H #include <Arduino.h> #include "Stepper.h" enum ESlewSpeed{ SLEW_SPEED_UNKNOWN, SLEW_SPEED_MAX, SLEW_SPEED_05, SLEW_SPEED_01, SLEW_SPEED_005 }; typedef void (*positionChangedAction)(int32_t); static int32_t MAX_RA_AS = 1295999; sta...
29.38
112
(translation_unit) "#ifndef BHS_SLEWING_CONTROLLER_H\n#define BHS_SLEWING_CONTROLLER_H\n\n#include <Arduino.h>\n#include "Stepper.h"\n\nenum ESlewSpeed{\n SLEW_SPEED_UNKNOWN,\n SLEW_SPEED_MAX,\n SLEW_SPEED_05,\n SLEW_SPEED_01,\n SLEW_SPEED_005\n};\n\ntypedef void (*positionChangedAction)(int32_t);\n\nsta...
781
20
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 29.38, "nodes": 486, "errors": 0, "source_hash": "06da38a1f4e18e8942dc38a4f6833ec195e3741d7665a68214d74ad72b516313", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,790
c
#include <string.h> /** * Checks if a string is palindrome using iteration * * @param char *string * @return int */ int isPalindromeIteration(char *string) { int length = strlen(string); for (int i = 0, j = length - 1;i <= length / 2 && j >= length / 2;i++, j--) { if (string[i] != string[j]) { ...
20.76
17
(translation_unit) "#include <string.h>\n\n/**\n * Checks if a string is palindrome using iteration\n *\n * @param char *string\n * @return int\n */\nint isPalindromeIteration(char *string)\n{\n int length = strlen(string);\n\n for (int i = 0, j = length - 1;i <= length / 2 && j >= length / 2;i++, j--) {\n ...
107
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.76, "nodes": 73, "errors": 0, "source_hash": "74c8fc39ac340d7e32237553b22d5c3d37a8a3560b3389719c452e6e945d82a5", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,791
c
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 120000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 120100 #import "Xcode_10_0_XCTest_CDStructures.h" #import "Xcode_10_0_SharedHeader.h" #import <Foundation/Foundation.h> @class XCUITestContextScope; // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C)...
34.65
20
(translation_unit) "#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 120000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 120100\n\n#import "Xcode_10_0_XCTest_CDStructures.h"\n#import "Xcode_10_0_SharedHeader.h"\n#import <Foundation/Foundation.h>\n\n@class XCUITestContextScope;\n\n//\n// Generated by class-dump 3.5 (64 bit).\n//\n// ...
114
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 34.65, "nodes": 78, "errors": 0, "source_hash": "250e6dc0958df8ff776e873548d33c432c85db1dfc5a572f1528db23bca156c4", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if __IPHON...
6,792
c
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_COBALT_BIN_SYSTEM_METRICS_TEMPERATURE_FETCHER_H_ #define SRC_COBALT_BIN_SYSTEM_METRICS_TEMPERATURE_FETCHER_H_ #include <stdint.h> namespace c...
32.91
22
(translation_unit) "// Copyright 2019 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SRC_COBALT_BIN_SYSTEM_METRICS_TEMPERATURE_FETCHER_H_\n#define SRC_COBALT_BIN_SYSTEM_METRICS_TEMPERATURE_FETCHER_H_\n\n#incl...
83
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.91, "nodes": 49, "errors": 0, "source_hash": "308b429a64e937d7aec2351d0c85d1483e0bf84f0a314994670d947335f2690c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,793
c
/* * Copyright 2009-2013, 2016 Freescale Semiconductor, Inc. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions an...
30.12
315
(translation_unit) "/*\n * Copyright 2009-2013, 2016 Freescale Semiconductor, Inc.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, thi...
1,840
53
{"language": "c", "success": true, "metadata": {"lines": 315, "avg_line_length": 30.12, "nodes": 1194, "errors": 0, "source_hash": "c52af82b3aef17cc696325443fb41c5e91568ce633c0ed086f1ccc35f86a1fb0", "categorized_nodes": 857}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
6,794
c
/** * \file bump_allocator.h * * \brief Bump allocator implementation. * * This header provides bump_allocator_options_init(), which initializes an * allocator_options_t structure so that it can be used as a bump allocator * backed by a user-defined buffer. * * \copyright 2018 Velo Payments, Inc. All rights r...
34.34
71
(translation_unit) "/**\n * \file bump_allocator.h\n *\n * \brief Bump allocator implementation.\n *\n * This header provides bump_allocator_options_init(), which initializes an\n * allocator_options_t structure so that it can be used as a bump allocator\n * backed by a user-defined buffer.\n *\n * \copyright 2018 Velo...
87
1
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.34, "nodes": 61, "errors": 0, "source_hash": "0d8470fff10df53c6d80963b76beb27c10c6b6c75679b99b1b0ec5e9215b0db8", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,795
c
#include <malloc.h> #include <stdio.h> #include <stdlib.h> void doABarrelRoll(int* arrayOfValues, int begin, int end) { int step = (end - begin + 1) / 2; for (int i = 0; i < step; ++i) { arrayOfValues[begin + i] += arrayOfValues[end - i]; arrayOfValues[end - i] = arrayOfValues[begin + i] - arra...
29.29
31
(translation_unit) "#include <malloc.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid doABarrelRoll(int* arrayOfValues, int begin, int end)\n{\n int step = (end - begin + 1) / 2;\n for (int i = 0; i < step; ++i) {\n arrayOfValues[begin + i] += arrayOfValues[end - i];\n arrayOfValues[end - i] = ar...
404
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.29, "nodes": 244, "errors": 0, "source_hash": "3f7b35b27b042b11672a871722a88310e104a27503f9467dcc55fdda5201040d", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,796
c
#pragma bank 255 // Scene: Title Screen #include "gbs_types.h" #include "data/background_3.h" #include "data/spritesheet_0.h" #include "data/scene_3_collisions.h" #include "data/scene_3_colors.h" #include "data/palette_2.h" #include "data/palette_4.h" #include "data/script_s3_init.h" const void __at(255) __bank_scen...
27.57
28
(translation_unit) "#pragma bank 255\n\n// Scene: Title Screen\n\n#include "gbs_types.h"\n#include "data/background_3.h"\n#include "data/spritesheet_0.h"\n#include "data/scene_3_collisions.h"\n#include "data/scene_3_colors.h"\n#include "data/palette_2.h"\n#include "data/palette_4.h"\n#include "data/script_s3_init.h"\n\...
213
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.57, "nodes": 134, "errors": 0, "source_hash": "4034f39ace66ece057790f9a0ab956a146a1f1366fd6e30834cd101004e357f5", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,797
c
#ifndef __TILEK_RTL_KERNEL_H__ #define __TILEK_RTL_KERNEL_H__ #include "KLT/RTL/loop.h" #include "KLT/RTL/data.h" struct klt_loop_context_t; #if defined(TILEK_THREADS) typedef void (*kernel_func_ptr)(int, void **, void **, void **, void **, struct klt_loop_context_t *); #else typedef void (*kernel_func_ptr)(void **...
29.67
43
(translation_unit) "#ifndef __TILEK_RTL_KERNEL_H__\n#define __TILEK_RTL_KERNEL_H__\n\n#include "KLT/RTL/loop.h"\n#include "KLT/RTL/data.h"\n\nstruct klt_loop_context_t;\n\n#if defined(TILEK_THREADS)\ntypedef void (*kernel_func_ptr)(int, void **, void **, void **, void **, struct klt_loop_context_t *);\n#else\ntypedef v...
364
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 29.67, "nodes": 281, "errors": 0, "source_hash": "a349bf6fd20c52a9aea5431ac08ef925e5e5c7ea6abb9d20062ede0fe23122bf", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,798
c
// // ADAppDelegate.h // iOSNotificationStyleAlert // // Created by <NAME> on 05/10/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ADAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
25
11
(translation_unit) "//\n// ADAppDelegate.h\n// iOSNotificationStyleAlert\n//\n// Created by <NAME> on 05/10/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ADAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.0, "nodes": 25, "errors": 0, "source_hash": "af1b33f32a68b8186b7661dd5ebad05ae415295738a6d59a6077ff6fd54e54e4", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
6,799