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 CNOID_OPENRTM_PLUGIN_RT_SYSTEM_ITEM_H #define CNOID_OPENRTM_PLUGIN_RT_SYSTEM_ITEM_H #include <cnoid/Item> #include <cnoid/EigenUtil> #include <cnoid/IdPair> #include <cnoid/CorbaUtil> #include <rtm/idl/RTC.hh> #include <rtm/NVUtil.h> #include <QPoint> #include <list> #include <string> #include "RTSystem.h" #in...
37.68
65
(translation_unit) "#ifndef CNOID_OPENRTM_PLUGIN_RT_SYSTEM_ITEM_H\n#define CNOID_OPENRTM_PLUGIN_RT_SYSTEM_ITEM_H\n\n#include <cnoid/Item>\n#include <cnoid/EigenUtil>\n#include <cnoid/IdPair>\n#include <cnoid/CorbaUtil>\n#include <rtm/idl/RTC.hh>\n#include <rtm/NVUtil.h>\n#include <QPoint>\n#include <list>\n#include <st...
671
42
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 37.68, "nodes": 421, "errors": 0, "source_hash": "d2f5bcb3c295bfcfbdf81fa753fa7cf9b71a06779ad035b6f3a04af8253b6c28", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CNOID_...
2,400
c
/* Bin2Var by <NAME> <<EMAIL>> Converts binary images to TI Graph Link format files 1.00 -- 08/22/00 * first release * support for 83P, 8XP 1.10 -- 08/23/00 * made code more modular * added support for 82P, 86P, 86S * fixed __MSDOS__ macro spelling to be correct 1.20 -- 08/24/00 * a...
23.34
246
(translation_unit) "/*\n Bin2Var by <NAME> <<EMAIL>>\n Converts binary images to TI Graph Link format files\n\n 1.00 -- 08/22/00\n * first release\n * support for 83P, 8XP\n\n 1.10 -- 08/23/00\n * made code more modular\n * added support for 82P, 86P, 86S\n * fixed __MSDOS__ macro spelling to be corr...
2,535
0
{"language": "c", "success": true, "metadata": {"lines": 246, "avg_line_length": 23.34, "nodes": 1464, "errors": 0, "source_hash": "3ddd25246573c102edf6522183f8f77243dad124092e921dbe51c18bb3c7684a", "categorized_nodes": 1057}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
2,401
c
// // LLViewController.h // LLBaseKit // // Created by SAndL9 on 09/05/2018. // Copyright (c) 2018 SAndL9. All rights reserved. // @import UIKit; @interface LLViewController : UIViewController @end
19.2
10
(translation_unit) "//\n// LLViewController.h\n// LLBaseKit\n//\n// Created by SAndL9 on 09/05/2018.\n// Copyright (c) 2018 SAndL9. All rights reserved.\n//\n\n@import UIKit;\n\n@interface LLViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LLViewController.h" (comment) "// LLBaseKit...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 10, "errors": 0, "source_hash": "c18684abc672b1bad6327b948bc2ce39df887498d6ae05242318876c8dcf0d9f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
2,402
c
// // NBAlertButton.h // NBAlertController // // Created by NapoleonBai on 16/7/14. // Copyright © 2016年 NapoleonBai. All rights reserved. // #import <UIKit/UIKit.h> @class NBAlertAction; @interface NBAlertButton : UIButton /** * 通过Action创建Button * * @param alertAction 指定的Action * * @return 创建的Button实例 ...
19.42
19
(translation_unit) "//\n// NBAlertButton.h\n// NBAlertController\n//\n// Created by NapoleonBai on 16/7/14.\n// Copyright © 2016年 NapoleonBai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class NBAlertAction;\n\n@interface NBAlertButton : UIButton\n\n/**\n * 通过Action创建Button\n *\n * @param alertAction 指定...
45
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.42, "nodes": 28, "errors": 0, "source_hash": "ef1690d9655c12d91f44fcc9e055ec4f2a0f1b2e6fda56bc01cca0ec59432070", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,403
c
// // Created by Valentin on 3/18/2021. // #include <stdlib.h> #include "core_game.h" #include "noise.h" room_t recreate_room(room_t to_rebuild) { room_t main_r; int noise; define_hash((int)to_rebuild.width, to_rebuild.seed); main_r.width = to_rebuild.width; main_r.height = to_rebuild.height; ...
32.84
63
(translation_unit) "//\n// Created by Valentin on 3/18/2021.\n//\n\n#include <stdlib.h>\n#include "core_game.h"\n#include "noise.h"\n\nroom_t recreate_room(room_t to_rebuild)\n{\n room_t main_r;\n int noise;\n\n define_hash((int)to_rebuild.width, to_rebuild.seed);\n main_r.width = to_rebuild.width;\n mai...
841
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.84, "nodes": 532, "errors": 0, "source_hash": "5b2cdc5989613aed443c371432cad7cb8701762199fb66c7e558e0756b2309d3", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,404
c
#include "acutest.h" #include "simple_uart.h" #define UART_LOOPBACK_1 "/tmp/ttyS0" #define UART_LOOPBACK_2 "/tmp/ttyS1" static pid_t spawn_process(char * const args[]) { pid_t pid; pid = fork(); TEST_ASSERT(pid >= 0); if (pid == 0) { execvp(args[0], args); } /* Give it time to start */ usleep(100000); ret...
26.75
92
(translation_unit) "#include "acutest.h"\n#include "simple_uart.h"\n\n#define UART_LOOPBACK_1 "/tmp/ttyS0"\n#define UART_LOOPBACK_2 "/tmp/ttyS1"\n\nstatic pid_t spawn_process(char * const args[])\n{\n pid_t pid;\n pid = fork();\n\n TEST_ASSERT(pid >= 0);\n\n if (pid == 0) {\n execvp(args[0], args);\n }\n /* Give it ti...
979
7
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 26.75, "nodes": 522, "errors": 0, "source_hash": "2f5cf57d7b70d1d02480e6ce448cbf02701cdc65f37fd9a3b3ea7fb0dee7c901", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,405
c
/* * Copyright (C) 2019 Allwinner Tech * SPDX-License-Identifier: GPL-2.0+ * frank <<EMAIL>> */ #include <arch/watchdog.h> #include <asm/io.h> #include <common.h> static const int wdt_timeout_map[] = { [1] = 0x1, /* 1s */ [2] = 0x2, /* 2s */ [3] = 0x3, /* 3s */ [4] = 0x4, /* 4s */ [5] = 0x5, /* ...
23.23
40
(translation_unit) "/*\n * Copyright (C) 2019 Allwinner Tech\n* SPDX-License-Identifier: GPL-2.0+\n * frank <<EMAIL>>\n */\n\n#include <arch/watchdog.h>\n#include <asm/io.h>\n#include <common.h>\n\nstatic const int wdt_timeout_map[] = {\n [1] = 0x1, /* 1s */\n [2] = 0x2, /* 2s */\n [3] = 0x3, /* 3s */\n [4] =...
315
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.23, "nodes": 197, "errors": 0, "source_hash": "4c82c69338665d3328caa230bb8dd9125bea6cbc7a6be922cca66438bceacf6e", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,406
c
#pragma once #pragma warning(push) #pragma warning(disable: 26812) #include "pch.h" #include "DeviceResources.h" #include "GraphicsMemory.h" #include "ResourceUploadBatch.h" #include "BufferHelpers.h" #include "StepTimer.h" #include "CommonStates.h" #include "EffectPipelineStateDescription.h" #include "VertexType...
46.76
222
(translation_unit) "#pragma once\n\n#pragma warning(push)\n#pragma warning(disable: 26812)\n\n#include "pch.h"\n\n#include "DeviceResources.h"\n#include "GraphicsMemory.h"\n#include "ResourceUploadBatch.h"\n#include "BufferHelpers.h"\n\n#include "StepTimer.h"\n\n#include "CommonStates.h"\n#include "EffectPipelineStateD...
3,198
105
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 46.76, "nodes": 1863, "errors": 0, "source_hash": "686c0a483be0295fdb6a02c66a1d6ead00f2271e511697162816ca61a9234be7", "categorized_nodes": 1366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
2,407
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/InAppMessages.framework/InAppMessages */ @interface IAMValueEvent : IAMEvent { <NSCopying> * value; } @property (nonatomic, copy) <NSCopying> *value; - (void).cxx_destruct; - (id)initWithName:(id)arg1 value:(id)arg2; - (void)setValue:(id...
27.5
12
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/InAppMessages.framework/InAppMessages\n */\n\n@interface IAMValueEvent : IAMEvent {\n <NSCopying> * value;\n}\n\n@property (nonatomic, copy) <NSCopying> *value;\n\n- (void).cxx_destruct;\n- (id)initWithName:(id)arg1 value...
109
12
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.5, "nodes": 67, "errors": 0, "source_hash": "4ac21f364d628f48d72f66f2c64f70b0f2181491b42753f477916cf2ad089ba5", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
2,408
c
// // IntentHandler.h // DITSiriExtension // // Created by ZHUYN on 2018/2/13. // Copyright © 2018年 zyn. All rights reserved. // #import <Intents/Intents.h> @interface IntentHandler : INExtension @end
19.5
10
(translation_unit) "//\n// IntentHandler.h\n// DITSiriExtension\n//\n// Created by ZHUYN on 2018/2/13.\n// Copyright © 2018年 zyn. All rights reserved.\n//\n\n#import <Intents/Intents.h>\n\n@interface IntentHandler : INExtension\n\n@end\n" (comment) "//" (comment) "// IntentHandler.h" (comment) "// DITSiriEx...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 10, "errors": 0, "source_hash": "044f042d0b1d76ed151f82c929d92518c0238d9b320ac3e9341b33ef62c59e6f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Inten...
2,409
c
#ifndef KERNEL_H #define KERNEL_H #include <stdio.h> #include <zlib.h> #include <SisterRay/SisterRay.h> /*TODO refactor this stuff to use the new gzip.h api*/ typedef struct { u16 deflatedSize; // compressed size u16 inflatedSize; // uncompressed size u16 type; FILE* fil...
34.91
23
(translation_unit) "#ifndef KERNEL_H\n#define KERNEL_H\n\n#include <stdio.h>\n#include <zlib.h>\n#include <SisterRay/SisterRay.h>\n\n/*TODO refactor this stuff to use the new gzip.h api*/\n\ntypedef struct {\n u16 deflatedSize; // compressed size\n u16 inflatedSize; // uncompressed size\n u16 ...
167
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.91, "nodes": 130, "errors": 0, "source_hash": "a6ff6e086ed405e94a5b9e0c41b7fe5bfaee8c5a5a697b40601ecd0a37681485", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,410
c
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. #include <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, MSGraphInstallIntentValue){ MSGraphInstallIntentAvailable = 0, MSGraphInstallIntentRequir...
26.54
37
(translation_unit) "// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. \n \n \n \n#include <Foundation/Foundation.h> \n \ntypedef NS_ENUM(NSInteger, MSGraphInstallIntentValue){ \n \n MSGraphInstallIntentAvailable = 0, ...
184
14
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.54, "nodes": 125, "errors": 0, "source_hash": "2bf3eeddfece281edb08bbdece22863ee962d0957b349eafbaf9971b0c47ebc0", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,411
c
#ifndef BOONDOGGLE_AUDIO_CAPTURE_H__ #define BOONDOGGLE_AUDIO_CAPTURE_H__ #pragma once #include <stdint.h> #include "shared_render_constants.h" #include "../external/kissfft/kiss_fftr.h" struct IAudioClient; struct IMMDevice; struct IAudioRenderClient; struct IAudioCaptureClient; enum class AudioUpdateResult { ...
38.13
87
(translation_unit) "#ifndef BOONDOGGLE_AUDIO_CAPTURE_H__\n#define BOONDOGGLE_AUDIO_CAPTURE_H__\n\n#pragma once\n\n#include <stdint.h>\n#include "shared_render_constants.h"\n#include "../external/kissfft/kiss_fftr.h"\n\nstruct IAudioClient;\nstruct IMMDevice;\nstruct IAudioRenderClient;\nstruct IAudioCaptureClient;\n\ne...
484
8
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 38.13, "nodes": 298, "errors": 0, "source_hash": "9687048c0ce79ab07d4de9181d0a1f6bb365bcc99431f41d7e6dcd8d354a8aa4", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BOONDO...
2,412
c
#ifndef PARALLEL_AUTOMATA_GENERATOR_H #define PARALLEL_AUTOMATA_GENERATOR_H #include <iostream> #include <fstream> #include "sage3basic.h" // SPRAY includes #include "Flow.h" // CodeThorn includes // BOOST includes #include "boost/lexical_cast.hpp" #include "boost/unordered_set.hpp" #include "boost/regex.hpp" #in...
28.56
61
(translation_unit) "#ifndef PARALLEL_AUTOMATA_GENERATOR_H\n#define PARALLEL_AUTOMATA_GENERATOR_H\n\n#include <iostream>\n#include <fstream>\n\n#include "sage3basic.h"\n\n// SPRAY includes\n#include "Flow.h"\n\n// CodeThorn includes\n\n// BOOST includes\n#include "boost/lexical_cast.hpp"\n#include "boost/unordered_set.h...
369
22
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 28.56, "nodes": 228, "errors": 0, "source_hash": "23bede5d5c916f31c71d7aaf93ad0b4180a486446a4516cb2dcffdcab21dcfd7", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,413
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NCMachSendRight, NCRemoteViewServiceContainerView; @protocol NCRemoteServiceContainerViewDelegate <NSObject> - (void)remoteViewServiceContainerView:(NCRemote...
41.8
10
(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 "NSObject.h"\n\n@class NCMachSendRight, NCRemoteViewServiceContainerView;\n\n@protocol NCRemoteServiceContainerViewDelegate <NSObject>\n- (void)remoteVie...
69
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 41.8, "nodes": 42, "errors": 0, "source_hash": "fac32f2cb95d26cbf8bcc24834560337e930cbf1dbe5998c6f339e3b2db34585", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
2,414
c
/* Copyright (c) 2003 - 2014 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applic...
32.73
124
(translation_unit) "/* \n \nCopyright (c) 2003 - 2014 <NAME> \n \nThis software is provided 'as-is', without any express or \nimplied warranty. In no event will the authors be held liable \nfor any damages arising from the use of this software. \n \nPermission is granted to anyone to use this software for any \npurpose...
262
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 32.73, "nodes": 164, "errors": 0, "source_hash": "c287250691ce604c2b3d385ba533744290a374a6b4f4ef6acb90a23f6ba7a9fe", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,415
c
#pragma once #include <input/inputids.h> namespace puma::nina { class IController { public: virtual bool buttonState( ControllerButton _controllerKey ) const = 0; virtual bool buttonPressed( ControllerButton _controllerKey ) const = 0; virtual bool buttonReleased( ControllerButton...
41.05
21
(translation_unit) "#pragma once\n\n#include <input/inputids.h>\n\nnamespace puma::nina\n{\n class IController\n {\n public:\n\n virtual bool buttonState( ControllerButton _controllerKey ) const = 0;\n virtual bool buttonPressed( ControllerButton _controllerKey ) const = 0;\n virtual bool ...
206
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 41.05, "nodes": 143, "errors": 0, "source_hash": "c5666c0011bacc7930203862ab5b9fb88df77ae10eb9f02135e5a965c6302b48", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,416
c
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
34.89
46
(translation_unit) "// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE...
348
18
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 34.89, "nodes": 222, "errors": 0, "source_hash": "a51cc4a283f9a4644e708602f12cccbe72e3a52af7c64ee8c0ab95e917457114", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,417
c
/* SimpleThingFramework 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 agr...
32.3
40
(translation_unit) "/*\n SimpleThingFramework\n\n 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 re...
187
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.3, "nodes": 120, "errors": 0, "source_hash": "d76cd9cd0d76e989d2fe9e87c0c09342460cef7aa333746c851ba2fcb3e9aa61", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,418
c
/* * This expermental software is provided AS IS. * Feel free to use/modify/distribute, * If used, please retain this disclaimer and cite * "GPUfs: Integrating a file system with GPUs", * <NAME>,<NAME>,<NAME>,<NAME> * ASPLOS13, March 2013, Houston,USA */ #ifndef NET_CONSTANTS #define NET_CONSTANTS #define IPC_M...
37.65
26
(translation_unit) "/* \n* This expermental software is provided AS IS. \n* Feel free to use/modify/distribute, \n* If used, please retain this disclaimer and cite \n* "GPUfs: Integrating a file system with GPUs", \n* <NAME>,<NAME>,<NAME>,<NAME>\n* ASPLOS13, March 2013, Houston,USA\n*/\n\n\n#ifndef NET_CONSTANTS\n#defi...
68
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 37.65, "nodes": 57, "errors": 0, "source_hash": "8b05d56334635ddcfa13a6ce997644a86a11a3a93728038e4f88829bba1da5a5", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,419
c
/*===----------------------------------------------------------------------===*\ |* *| |* This file is part of the koala-lang project, under the MIT License. *| |* ...
39.4
30
(translation_unit) "/*===----------------------------------------------------------------------===*\\n|* *|\n|* This file is part of the koala-lang project, under the MIT License. *|\n|* ...
196
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 39.4, "nodes": 141, "errors": 0, "source_hash": "c92027d477b6d0317db47ae47501bec2f8fd7ec9431f8f8fdc11d3307d81a334", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
2,420
c
#ifndef SRC_INPUT_ABAQUS_PARSER_SSECTION_H_ #define SRC_INPUT_ABAQUS_PARSER_SSECTION_H_ #include "parser.h" #include <unordered_map> namespace mesio { struct Entry { std::string element; int number; }; struct SSection: public AbaqusParser { static size_t size; static const char* upper; static const char* low...
25.46
26
(translation_unit) "#ifndef SRC_INPUT_ABAQUS_PARSER_SSECTION_H_\n#define SRC_INPUT_ABAQUS_PARSER_SSECTION_H_\n\n#include "parser.h"\n#include <unordered_map>\n\nnamespace mesio {\n\nstruct Entry {\n std::string element;\n int number;\n\n};\n\nstruct SSection: public AbaqusParser {\n static size_t size;\n static const c...
197
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.46, "nodes": 114, "errors": 0, "source_hash": "f8190c29b671b9420b508f6508bbc3b08a6840c6150002da87963139ea0d0ee3", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,421
c
#ifndef SPOTIFYAMP_SPOTIFYAMP_H_ #define SPOTIFYAMP_SPOTIFYAMP_H_ extern "C" { #include "tiny_spotify.h" #include "types.h" }; #include "window.h" #include <string> #include <vector> static inline bool IsInside(int x, int pos, int w) { return (unsigned)(x - pos) < (unsigned)w; } static inline int Clamp(int v, in...
26.99
266
(translation_unit) "#ifndef SPOTIFYAMP_SPOTIFYAMP_H_\n#define SPOTIFYAMP_SPOTIFYAMP_H_\n\nextern "C" {\n#include "tiny_spotify.h"\n#include "types.h"\n};\n\n#include "window.h"\n\n#include <string>\n#include <vector>\n\nstatic inline bool IsInside(int x, int pos, int w) {\n return (unsigned)(x - pos) < (unsigned)w;\n}...
2,406
61
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 26.99, "nodes": 1639, "errors": 0, "source_hash": "7c62c16865c60ea093d37f4bd2c9f519b27e7ad9b173f950d23e2615603e5398", "categorized_nodes": 1072}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
2,422
c
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
34
51
(translation_unit) "/* Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the...
231
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.0, "nodes": 157, "errors": 0, "source_hash": "0829f59a7e4b973995cc0c740d7c5f25a4be8571a2cc6ee2275cda2fac0f98a8", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,423
c
/** * Copyright 2012 HellaSec, LLC * * 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 ag...
39.61
36
(translation_unit) "/**\n * Copyright 2012 HellaSec, LLC\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 req...
169
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 39.61, "nodes": 127, "errors": 0, "source_hash": "47d283f58903a3d86ea8083af9db83bde8bca1445b9bd857602a2c3ff9bae9e9", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,424
c
/* * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SPM_MM_PRIVATE_H #define SPM_MM_PRIVATE_H #include <context.h> /******************************************************************************* * Constants that allow assembler c...
33.2
55
(translation_unit) "/*\n * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef SPM_MM_PRIVATE_H\n#define SPM_MM_PRIVATE_H\n\n#include <context.h>\n\n/*******************************************************************************\n * ...
234
1
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 33.2, "nodes": 191, "errors": 0, "source_hash": "9d5ae7c5eed36ed21e4f09f89cf894d3db7d508e7bf766c20044719b7f76528b", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,425
c
/* * Copyright(C) 1999-2020 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ #include "exodusII.h" /*! \deprecated Use ex_get_i...
40.85
40
(translation_unit) "/*\n * Copyright(C) 1999-2020 National Technology & Engineering Solutions\n * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with\n * NTESS, the U.S. Government retains certain rights in this software.\n *\n * See packages/seacas/LICENSE for details\n */\n\n#include "exodusII.h"\n...
42
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 40.85, "nodes": 23, "errors": 0, "source_hash": "ec93c06372412b90fd44ac69153c1243cbb5366176e6c39df10485aad5fe2dbb", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,426
c
// // PEARBlocksKit.h // BlocksKit-iOS // // Created by hirokiumatani on 2015/11/01. // Copyright © 2015年 hirokiumatani. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^blocksHandler)(id result); @interface PEARBlocksKit : NSObject /** @bref blocksWithClassObject */ + (void)blocksWith...
24.89
19
(translation_unit) "//\n// PEARBlocksKit.h\n// BlocksKit-iOS\n//\n// Created by hirokiumatani on 2015/11/01.\n// Copyright © 2015年 hirokiumatani. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\ntypedef void (^blocksHandler)(id result);\n\n@interface PEARBlocksKit : NSObject\n/**\n @bref blocksWithCla...
80
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.89, "nodes": 46, "errors": 0, "source_hash": "e6799d5a8cb671b0c5a5f76f59dcc19980dd73421885e30e2c7ead07e7a3ee3a", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
2,427
c
#pragma once //============================================================================= // EXTERNAL DECLARATIONS //============================================================================= #include "Core/Game/IGameEngine.h" namespace engine { //===============================================================...
38.79
19
(translation_unit) "#pragma once\n//=============================================================================\n// EXTERNAL DECLARATIONS\n//=============================================================================\n#include "Core/Game/IGameEngine.h"\n\nnamespace engine\n{ \n\n//==================================...
78
3
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 38.79, "nodes": 41, "errors": 0, "source_hash": "88387729a817b6ad0ca77436d4cf91cf07e8ed3ecb286a62ed40bfb706c13979", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,428
c
#include "op-solver.h" static void connect_search(solver_graph *graph, int n, int comp, int *dstack); int graph_get_comps(solver_graph *graph, int *ncomp, int **compscount, graph_vertex ***comps) { int i, k, rval; int *nverts = NULL; int *dstack = NULL; graph_vertex *v; *comps ...
27.7
101
(translation_unit) "#include "op-solver.h"\n\nstatic void\nconnect_search(solver_graph *graph, int n, int comp, int *dstack);\n\nint\ngraph_get_comps(solver_graph *graph, int *ncomp, int **compscount,\n graph_vertex ***comps)\n{\n int i, k, rval;\n int *nverts = NULL;\n int *dstack = NULL;\n ...
1,182
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 27.7, "nodes": 744, "errors": 0, "source_hash": "46691b75c372c5bf21a40adbb771cc36d7619237b2aa70e146f218801bc87905", "categorized_nodes": 553}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,429
c
#include<stdio.h> #include<math.h> #include<malloc.h> #include<stdlib.h> int get_index(char *s1,char *s2) { int i,n,n2,pos; n=strlen(s1); n2=strlen(s2); pos=-1; for(i=n-n2;i>-1;i--) { if(!(strncmp(&s1[i],s2,n2))) { pos=i; break; } } return pos; }
10.58
24
(translation_unit) "#include<stdio.h>\n#include<math.h>\n#include<malloc.h>\n#include<stdlib.h>\n\n\nint get_index(char *s1,char *s2)\n{\n\n int i,n,n2,pos;\n\n\n n=strlen(s1);\n n2=strlen(s2);\n pos=-1;\n\n for(i=n-n2;i>-1;i--) \n {\n if(!(strncmp(&s1[i],s2,n2))) \n {\n pos=i;\n break;\n }\n \n }\n\n\n retu...
137
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 10.58, "nodes": 88, "errors": 0, "source_hash": "69bdc120f203bd814df95a7dea4cd111accb42d0e2ca4c51f630100e734388c0", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,430
c
// // EmptyDataView.h // LJAppStandard // // Created by liang on 16/4/14. // Copyright © 2016年 liang. All rights reserved. // #import <UIKit/UIKit.h> @interface EmptyDataView : UIView @property (weak, nonatomic) IBOutlet UILabel *titleLB; @end
21.55
11
(translation_unit) "//\n// EmptyDataView.h\n// LJAppStandard\n//\n// Created by liang on 16/4/14.\n// Copyright © 2016年 liang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EmptyDataView : UIView\n@property (weak, nonatomic) IBOutlet UILabel *titleLB;\n\n@end\n" (comment) "//" (comment) "// ...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.55, "nodes": 25, "errors": 0, "source_hash": "89630af28003cbd800badd9f5a8eef9f4ea1410993b7fcd7aabfb19382308eec", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,431
c
/* Copyright (C) 2012 <NAME>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY...
30.63
139
(translation_unit) "/* Copyright (C) 2012 <NAME>.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; version 2 of the License.\n\n This program is distributed in the hope that it will be ...
911
17
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 30.63, "nodes": 523, "errors": 0, "source_hash": "e0f1f393c2277aefbd12f176fd176685ab1d6436378be904bda8b4659772ede7", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,432
c
/* * Compile this file together with the UnQLite database engine source code * to generate the executable. For example: * gcc -W -Wall -O6 unqlite_mp3_tag.c unqlite.c -o unqlite_mp3 */ /* * This simple program is a quick introduction on how to embed and start * experimenting with UnQLite without having to do a l...
34.65
285
(translation_unit) "/*\n * Compile this file together with the UnQLite database engine source code\n * to generate the executable. For example: \n * gcc -W -Wall -O6 unqlite_mp3_tag.c unqlite.c -o unqlite_mp3\n*/\n/*\n * This simple program is a quick introduction on how to embed and start\n * experimenting with UnQLi...
1,037
6
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 34.65, "nodes": 499, "errors": 0, "source_hash": "be7fa80f9f1d68bee2a87ffd64bb4c19628d8d7cedcb0b36a13636eb0113acab", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,433
c
/** * fs.c * * copyright 2013 - <NAME> <<EMAIL>> */ #define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <stdio.h> #include <dirent.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include "fs.h" #ifdef _WIN32 extern int fileno...
16.97
229
(translation_unit) "/**\n * fs.c\n *\n * copyright 2013 - <NAME> <<EMAIL>>\n */\n\n#define _POSIX_C_SOURCE 200809L\n#include <stdlib.h>\n#include <stdio.h>\n#include <dirent.h>\n#include <string.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include "fs....
1,628
0
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 16.97, "nodes": 1043, "errors": 0, "source_hash": "a3848c1c403566922a6fa496ca3db483427d55475663124463107e766205bc4c", "categorized_nodes": 665}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
2,434
c
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
26.74
299
(translation_unit) "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS ...
1,840
67
{"language": "c", "success": true, "metadata": {"lines": 299, "avg_line_length": 26.74, "nodes": 993, "errors": 0, "source_hash": "741f4546adb7b0890afb4952796b3bb38021b6ac78de6ed6270f87a69be48433", "categorized_nodes": 650}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,435
c
#pragma once #include <stddef.h> #include <stdint.h> template<typename T, size_t size> class List { private: uint8_t next; T* arr; public: using ItemType = T; using ItemTypeRef = T&; using ConstItemTypeRef = const T&; using IndexType = uint8_t; static constexpr size_t _size = size; st...
19.13
125
(translation_unit) "#pragma once \n \n#include <stddef.h> \n#include <stdint.h> \n \ntemplate<typename T, size_t size> \nclass List \n{ \nprivate: \n uint8_t next; \n T* arr; \npublic: \n using ItemType = T; \n using ItemTypeRef = T&; \n using ConstItemTypeRef = const T&; \n using IndexType = uint8_t; \n static ...
643
12
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 19.13, "nodes": 367, "errors": 0, "source_hash": "c98e4320f974828e97a955015b375939a8c3e8021841f25bfa97aa7b30a2d5b3", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,436
c
/*! \file bcma_testutil_vlan.h * * VLAN operation utility. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef BCMA_TESTUTIL_VLAN_H #define BCMA_TESTUTIL...
30.99
281
(translation_unit) "/*! \file bcma_testutil_vlan.h\n *\n * VLAN operation utility.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#ifndef BCMA_TESTUTI...
670
0
{"language": "c", "success": true, "metadata": {"lines": 281, "avg_line_length": 30.99, "nodes": 453, "errors": 0, "source_hash": "ef878c70269be6d1e5037b2f9e57943f94a827f82f3dd8a86c2453c4a25dffc3", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,437
c
#pragma once #include "includes.h" class SettingsKeySet : public Stage { private: std::string keyname; TextButton* sourcebutton; ALLEGRO_FONT* fontTitle; int fontHeight; public: SettingsKeySet( std::string KeyName, TextButton* Source ); // Stage control virtual void Begin(); virtual void ...
23.14
21
(translation_unit) "#pragma once\n\n#include "includes.h"\n\nclass SettingsKeySet : public Stage\n{\n private:\n std::string keyname;\n TextButton* sourcebutton;\n ALLEGRO_FONT* fontTitle;\n int fontHeight;\n\n public:\n\n SettingsKeySet( std::string KeyName, TextButton* Source );\n\n // Stage control\n vir...
159
13
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.14, "nodes": 104, "errors": 0, "source_hash": "d1a17d8c234b5ae4d0228a5adf1a945b32a3d89cdce360aff17d1f36857ebae1", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,438
c
#ifndef _DECHUNKER_H #define _DECHUNKER_H #include <deque> #include "stream.h" // HTTP chunked encoding のストリームをデコードするアダプタクラス。 class Dechunker : public Stream { public: Dechunker(Stream& aStream) : m_eof(false) , m_stream(aStream) { } ~Dechunker() { } int read(void *buf, ...
20.56
32
(translation_unit) "#ifndef _DECHUNKER_H\n#define _DECHUNKER_H\n\n#include <deque>\n#include "stream.h"\n\n// HTTP chunked encoding のストリームをデコードするアダプタクラス。\nclass Dechunker : public Stream\n{\npublic:\n Dechunker(Stream& aStream)\n : m_eof(false)\n , m_stream(aStream)\n {\n }\n\n ~Dechunker()\n ...
189
6
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.56, "nodes": 108, "errors": 0, "source_hash": "a809e7d2d7b6e17789515377b348f4082267317a22cd6b68f678f5999c703514", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,439
c
#ifndef _RAY_ #define _RAY_ #include "point.h" #include "vector.h" class Ray{ Point Origin; Vector Direction; public: Ray() : Origin(0.0,0.0,0.0), Direction(0.0,0.0,1.0) {}; Point& origin() {return Origin;} Vector& direction() {return Direction;} Point pointAt(float); friend ostream& ope...
15.86
22
(translation_unit) "#ifndef _RAY_ \n#define _RAY_ \n \n#include "point.h" \n#include "vector.h" \n \nclass Ray{ \n Point Origin; \n Vector Direction; \npublic: \n Ray() : Origin(0.0,0.0,0.0), Direction(0.0,0.0,1.0) {}; \n \n Point& origin() {return Origin;} \n Vector& direction() {return Direction;} \n \n Point point...
138
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.86, "nodes": 71, "errors": 0, "source_hash": "e8d292c030f1d9eb86fdb92398e08edb8bfeb8f56566b5a8cd68805ed0b96452", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,440
c
// // MACRO_PIC.h // portal // // Created by Store on 2017/8/30. // Copyright © 2017年 <EMAIL>. All rights reserved. // #ifndef MACRO_PIC_h #define MACRO_PIC_h //定义UIImage对象 #define ImageNamed(_pointer) [UIImage imageNamed:_pointer] #define PIC_NONE_NET_PLACE @"网络不稳定" //网络不稳定 #define SD_HEAD_ALTERNATIVE...
31.12
139
(translation_unit) "//\n// MACRO_PIC.h\n// portal\n//\n// Created by Store on 2017/8/30.\n// Copyright © 2017年 <EMAIL>. All rights reserved.\n//\n\n#ifndef MACRO_PIC_h\n#define MACRO_PIC_h\n\n\n//定义UIImage对象\n#define ImageNamed(_pointer) [UIImage imageNamed:_pointer]\n\n\n#define PIC_NONE_NET_PLACE @"网络不稳定" ...
410
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 31.12, "nodes": 373, "errors": 0, "source_hash": "2284c2d12c52cb07ee5a4706d03b27c79af18b006864bc271ff5a0d96cf09e78", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef M...
2,441
c
#define int_ intptr_t
21
1
(translation_unit) "#define int_ intptr_t\n" (preproc_def) "#define int_ intptr_t\n" (#define) "#define" (identifier) "int_" (preproc_arg) "intptr_t"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 21.0, "nodes": 4, "errors": 0, "source_hash": "e4ac27106af2a4e3c0251a27aefefe019d3d8e83aeacca6380a21a86f05c7c3f", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define int_ i...
2,442
c
/* Generic packet switching test application. - MDIO Ethernet PHY access - SLIP on ttyACM TODO: - SLIP on UART - SPI RPC client - SPI RPC server - SPI async receive */ #include "base.h" #include "gdbstub_api.h" #include <string.h> #include "slipstub.h" #include "cbuf.h" #include "pbuf.h" /* CON...
36.75
211
(translation_unit) "/* Generic packet switching test application.\n - MDIO Ethernet PHY access\n - SLIP on ttyACM\n TODO:\n - SLIP on UART\n - SPI RPC client\n - SPI RPC server\n - SPI async receive\n*/\n\n#include "base.h"\n#include "gdbstub_api.h"\n#include <string.h>\n\n#include "slipstub.h"\n\n#includ...
1,569
2
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 36.75, "nodes": 892, "errors": 0, "source_hash": "2b649011ac68422befbf7759a0e847e8d0c84c4e3bb1d05479cc452de15b64d2", "categorized_nodes": 615}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,443
c
/* * CommandParser.h * Created on: Jun 13, 2016 * Author: nicole */ #ifndef COMMANDPARSER_H_ #define COMMANDPARSER_H_ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/stat.h> // for stat #include <fstream> // std::fstream #include <string> #include <string.h> #include <sys/types.h> // fo...
33.92
128
(translation_unit) "/*\n * CommandParser.h\n * Created on: Jun 13, 2016\n * Author: nicole\n */\n\n#ifndef COMMANDPARSER_H_\n#define COMMANDPARSER_H_\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <sys/stat.h> // for stat\n#include <fstream> // std::fstream\n#include <string>\n#include <str...
604
28
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 33.92, "nodes": 360, "errors": 0, "source_hash": "7298816bd93854d7c1c27505dd13f0bf34162497c205cffe117edad14aedd33a", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,444
c
// // JCHUAdHelper.h // SHOW-iColor // // Created by JC_Hu on 16/1/29. // Copyright © 2016年 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> @class GADInterstitial; extern NSString *const AdRemovedNotificationName; @interface JCHUAdHelper : NSObject @property(nonatomic, strong) GADInterstiti...
19.91
33
(translation_unit) "//\n// JCHUAdHelper.h\n// SHOW-iColor\n//\n// Created by JC_Hu on 16/1/29.\n// Copyright © 2016年 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class GADInterstitial;\n\nextern NSString *const AdRemovedNotificationName;\n\n\n@interface JCHUAdHelper : NSObject\n\n@prop...
161
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 19.91, "nodes": 99, "errors": 0, "source_hash": "6bd1f38062dab1e2f39029c1003d9c72b3f2c711fbdd9786ed40c0e8e81980ea", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
2,445
c
/* * Toradex Colibri PXA270 configuration file * * Copyright (C) 2010 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your op...
28.57
54
(translation_unit) "/*\n * Toradex Colibri PXA270 configuration file\n *\n * Copyright (C) 2010 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of\n *...
78
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.57, "nodes": 72, "errors": 0, "source_hash": "11f5eea07fac1c65a01f60b135ad2603896ce828f05b218acc024e3c619924de", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
2,446
c
#include <cstring/number.h> #include <limits.h> #include <string.h> #define CTEST_MAIN #define CTEST_SEGFAULT #include "ctest.h" CTEST(number, cstring_ll2str) { char sp[CSTRING_LLSTR_SIZE]; char s[CSTRING_LLSTR_SIZE]; size_t n; n = cstring_ll2str(s, 0LL); ASSERT_EQUAL_D(1, n, "0 string length m...
30.28
53
(translation_unit) "#include <cstring/number.h>\n\n#include <limits.h>\n#include <string.h>\n\n#define CTEST_MAIN\n#define CTEST_SEGFAULT\n\n#include "ctest.h"\n\nCTEST(number, cstring_ll2str) {\n char sp[CSTRING_LLSTR_SIZE];\n char s[CSTRING_LLSTR_SIZE];\n size_t n;\n\n n = cstring_ll2str(s, 0LL);\n ASS...
566
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 30.28, "nodes": 283, "errors": 0, "source_hash": "432c00431e64fbd9e6d4f32126a7a2be876ef5bbce44338f03c8539df2afef88", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,447
c
/** * @file Starts.h This attribute is part of the possible options for the trace streamtube. This file has been autogenerated from the official plotly.js source. If you like Plotly, please support them: L<https://plot.ly/> Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> Full refe...
22.68
121
(translation_unit) "/**\n * @file Starts.h\nThis attribute is part of the possible options for the trace streamtube.\n\nThis file has been autogenerated from the official plotly.js source.\n\nIf you like Plotly, please support them: L<https://plot.ly/> \nOpen source announcement: L<https://plot.ly/javascript/open-sourc...
722
24
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 22.68, "nodes": 347, "errors": 0, "source_hash": "1be9bba2179efb204efab5ef30db4e12d10f661a044e6c812d316bfd7833f62b", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,448
c
version https://git-lfs.github.com/spec/v1 oid sha256:f38ec2d5888ea48a523516bce56a34963dcc06cad7d6d2a692709e2bd24b2b75 size 11863
42.33
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:f38ec2d5888ea48a523516bce56a34963dcc06cad7d6d2a692709e2bd24b2b75\nsize 11863\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.33, "nodes": 10, "errors": 0, "source_hash": "bab3172001c12f6cbfff2be96e8e2f42aff87af10964dffff672ce9aa157ede8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version http...
2,449
c
@import CaamDauNet;
19
1
(translation_unit) "@import CaamDauNet;\n\n" (ERROR) "@" (ERROR) "@" (declaration) "import CaamDauNet;" (type_identifier) "import" (identifier) "CaamDauNet" (;) ";"
7
2
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 19.0, "nodes": 4, "errors": 0, "source_hash": "545ceff6811d1be6259d23ae2664bd6b7486d6233899879473f987eff5f6cc2d", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, ...
2,450
c
// // main.c // NO57 // // Created by wanyakun on 2020/11/4. // #include <stdio.h> #include "NO57.h" #include <stdlib.h> int main(int argc, const char * argv[]) { // insert code here... int** intervals = malloc(2*sizeof(int*)); intervals[0] = malloc(2*sizeof(int)); intervals[0][0] = 1; int...
23.47
59
(translation_unit) "//\n// main.c\n// NO57\n//\n// Created by wanyakun on 2020/11/4.\n//\n\n#include <stdio.h>\n#include "NO57.h"\n#include <stdlib.h>\n\nint main(int argc, const char * argv[]) {\n // insert code here...\n \n int** intervals = malloc(2*sizeof(int*));\n intervals[0] = malloc(2*sizeof(int)...
587
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 23.47, "nodes": 355, "errors": 0, "source_hash": "9920f3a6f1f077484b7da782bcb6ee69a8f8c6f2ab3a519e451280e1c57abcd8", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,451
c
#include <Arduino.h> #include "../src/VarSpeedServo.h" #include "TimerOne.h" #define pin_servo_0 3 #define pin_servo_1 4 #define pin_servo_2 5 #define pin_servo_3 6 #define pin_servo_4 9 #define pin_servo_5 10 // pinNumber, maxAngularVel degree/sec, calibMin, calibMax, angleDegMin, angleDegMax, home position const ...
34.93
58
(translation_unit) "#include <Arduino.h>\n#include "../src/VarSpeedServo.h"\n#include "TimerOne.h"\n\n\n#define pin_servo_0 3\n#define pin_servo_1 4\n#define pin_servo_2 5\n#define pin_servo_3 6\n#define pin_servo_4 9\n#define pin_servo_5 10\n\n\n// pinNumber, maxAngularVel degree/sec, calibMin, calibMax, angleDegMin, ...
600
1
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.93, "nodes": 355, "errors": 0, "source_hash": "820754ef41a56730307d5ab4ed9dcd83a4cfb6981f5467049241514cdedc8e07", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,452
c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (c) 2013 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute it a...
32.99
78
(translation_unit) "/*\n * RELIC is an Efficient LIbrary for Cryptography\n * Copyright (c) 2013 RELIC Authors\n *\n * This file is part of RELIC. RELIC is legal property of its developers,\n * whose names are not listed here. Please refer to the COPYRIGHT file\n * for contact information.\n *\n * RELIC is free softwar...
465
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 32.99, "nodes": 288, "errors": 0, "source_hash": "bc06705dd37c2c6a4faeddef8622ff9ed0a1baac719385b2f861dd108fca02cb", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,453
c
// // CrashHandler.h // RunLoopDemo04 // // Created by Harvey on 2016/12/15. // Copyright © 2016年 Haley. All rights reserved. // #import <Foundation/Foundation.h> @interface CrashHandler : NSObject { BOOL ignore; } + (instancetype)sharedInstance; @end
17.57
14
(translation_unit) "//\n// CrashHandler.h\n// RunLoopDemo04\n//\n// Created by Harvey on 2016/12/15.\n// Copyright © 2016年 Haley. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CrashHandler : NSObject\n{\n BOOL ignore;\n}\n\n+ (instancetype)sharedInstance;\n\n@end\n\n\n" (comment) ...
41
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.57, "nodes": 22, "errors": 0, "source_hash": "f8da907aa0a01fc099666ab09f7b8094bbc491cc9a380cac648afbdee7b16b26", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
2,454
c
/**************************************************************************** ** ** Copyright (C) 2006-2009 fullmetalcoder <<EMAIL>> ** ** This file is part of the Edyuk project <http://edyuk.org> ** ** This file may be used under the terms of the GNU General Public License ** version 3 as published by the Free Softwa...
35.32
81
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2006-2009 fullmetalcoder <<EMAIL>>\n**\n** This file is part of the Edyuk project <http://edyuk.org>\n** \n** This file may be used under the terms of the GNU General Public License\n** version 3 as p...
408
17
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.32, "nodes": 271, "errors": 0, "source_hash": "1aa2ce201a373d0eab202883fd1722e850f7541d450bbac0d0fda2b065aa0bd9", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,455
c
#include <unistd.h> #include <stdio.h> size_t ft_strcspn(const char *s, const char *reject) { size_t i; size_t x; i = 0; x = 0; while(s[x]) { while (reject[i]) { if (s[x] == reject[i]) { return (i); } i++; } x++; } return (0); } int main() { char *str1; char *str2; str1 = "dca"; ...
10.97
30
(translation_unit) "#include <unistd.h>\n#include <stdio.h>\n\nsize_t ft_strcspn(const char *s, const char *reject)\n{\n size_t i; \n size_t x;\n\n i = 0;\n x = 0;\n while(s[x])\n {\n while (reject[i])\n {\n if (s[x] == reject[i])\n {\n return (i);\n }\n i++;\n }\n x++;\n }\n return (0);\n}\n\nint main()...
172
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 10.97, "nodes": 95, "errors": 0, "source_hash": "dfc4baa9fd1ec326157f99bf83b6f0c0dc3063aa0462115c1ad2ae82446adf31", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,456
c
#pragma once #include <QtWidgets> class FoobarStyle: public QProxyStyle { public: FoobarStyle(QStyle *baseStyle = 0): QProxyStyle(baseStyle) { } void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const { if (element =...
33.66
56
(translation_unit) "#pragma once\n\n#include <QtWidgets>\n\nclass FoobarStyle: public QProxyStyle\n{\npublic:\n FoobarStyle(QStyle *baseStyle = 0):\n QProxyStyle(baseStyle)\n {\n }\n\n void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) c...
594
13
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 33.66, "nodes": 350, "errors": 0, "source_hash": "86b4a750c9e773ad164d5ded1d05beb70f13a036fd6e8f416ae1e5a855d0795b", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,457
c
/* defines for inline arch setup functions */ #include <asm/apic.h> /** * do_timer_interrupt_hook - hook into timer tick * @regs: standard registers from interrupt * * Description: * This hook is called immediately after the timer interrupt is ack'd. * It's primary purpose is to allow architectures that don't p...
28.16
75
(translation_unit) "/* defines for inline arch setup functions */\n\n#include <asm/apic.h>\n\n/**\n * do_timer_interrupt_hook - hook into timer tick\n * @regs: standard registers from interrupt\n *\n * Description:\n * This hook is called immediately after the timer interrupt is ack'd.\n * It's primary purpose is to al...
178
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 28.16, "nodes": 100, "errors": 0, "source_hash": "07fd6539b8f78c0cf3e1e2bb47ee471a91216504007be034e0045cec598e5961", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,458
c
// // PresentationWindowController.h // ACShell // // Created by <NAME> on 28.06.10. // Copyright 2010 ART+COM AG. All rights reserved. // #import <Cocoa/Cocoa.h> #import "LibraryCategory.h" #import "Presentation.h" #import "PresentationIntroViewDataSource.h" #import "PresentationIntroViewDelegate.h" #import "Pres...
35.16
31
(translation_unit) "//\n// PresentationWindowController.h\n// ACShell\n//\n// Created by <NAME> on 28.06.10.\n// Copyright 2010 ART+COM AG. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "LibraryCategory.h"\n#import "Presentation.h"\n#import "PresentationIntroViewDataSource.h"\n#import "PresentationIn...
197
26
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.16, "nodes": 140, "errors": 0, "source_hash": "76bdd019e321068effe813a089f9bc0428e79bbbdbe31ff4cc03c530b021378f", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,459
c
/* sys/sysproto.h Copyright 2003 Red Hat, Inc. This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ /* sys/sysproto.h header file for Cygwin. */ #ifndef _SYS_SYSPROTO_H #define _SYS_SYSPROTO_H ...
32.91
11
(translation_unit) "/* sys/sysproto.h\n\n Copyright 2003 Red Hat, Inc.\n\nThis file is part of Cygwin.\n\nThis software is a copyrighted work licensed under the terms of the\nCygwin license. Please consult the file "CYGWIN_LICENSE" for\ndetails. */\n\n/* sys/sysproto.h header file for Cygwin. */\n\n#ifndef _SYS_SYS...
14
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 32.91, "nodes": 10, "errors": 0, "source_hash": "a29f2ccb98f0cb506f7b0f13e8f04c2b3b7a3e6eeade99029f2721d25edb14c8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,460
c
/* * Copyright 2017 AVSystem <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
36.16
125
(translation_unit) "/*\n * Copyright 2017 AVSystem <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requ...
298
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 36.16, "nodes": 190, "errors": 0, "source_hash": "8efe5a543bc56bd6796a88d8d77fd8ed8f378a781462687223323e6af56a31d2", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,461
c
#ifndef SHOVELER_OPENGL_H #define SHOVELER_OPENGL_H #include <stdbool.h> // bool #include <glad/glad.h> #include <shoveler/log.h> bool shovelerOpenGLCheckSuccessFull(const char *file, int line); void shovelerOpenGLHandleErrorFull(const char *file, int line, GLenum error); #define shovelerOpenGLCheckSuccess() shove...
45.6
10
(translation_unit) "#ifndef SHOVELER_OPENGL_H\n#define SHOVELER_OPENGL_H\n\n#include <stdbool.h> // bool\n\n#include <glad/glad.h>\n\n#include <shoveler/log.h>\n\nbool shovelerOpenGLCheckSuccessFull(const char *file, int line);\nvoid shovelerOpenGLHandleErrorFull(const char *file, int line, GLenum error);\n\n#define sh...
75
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 45.6, "nodes": 56, "errors": 0, "source_hash": "98dc81b59fd1473d2bc57020dbacd89730a008c2bdebffd2e98c0c90b5ca3a6e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
2,462
c
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
36.64
94
(translation_unit) "/****************************************************************************\nCopyright (c) 2011-2013,WebJet Business Division,CYOU\n \nhttp://www.genesis-3d.com.cn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (...
559
27
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 36.64, "nodes": 283, "errors": 0, "source_hash": "3b4f5306f13a3b1c946d31c01675d485907e3bb9afed5ed5129fe3499930b3ca", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,463
c
/* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **============================================================================== */ #if !defined(_miapi_common_h_) #define...
29.81
26
(translation_unit) "/*\n**==============================================================================\n**\n** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE\n** for license information.\n**\n**==============================================================================\n*/\n\n\n#if !def...
98
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.81, "nodes": 77, "errors": 0, "source_hash": "015479d0119e991679602f552c03589b343d887eeaed1f792217389488e3c81f", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
2,464
c
/*Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contain any char.*/ #include <stdbool.h> bool xo(const char *str) { int xcount = 0; int ocount = 0; for (int i = 0; i < strlen(str); i++) { if (str[i] == '...
21.35
26
(translation_unit) "/*Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contain any char.*/\n\n#include <stdbool.h>\n\nbool xo(const char *str)\n{\n int xcount = 0;\n int ocount = 0;\n\n for (int i = 0; i < strlen(str); i++)\...
164
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.35, "nodes": 104, "errors": 0, "source_hash": "36f4f8e00a08568deb1ecf8ccb5651b952e651cdfbcb66c6b396ce78177cdf85", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,465
c
#ifndef __OSSGISMEAT_H_ #define __OSSGISMEAT_H_ #include "gdal.h" #include "gdal_alg.h" #include "ogr_srs_api.h" #include "cpl_string.h" #include "cpl_conv.h" #include "cpl_multiproc.h" #include "postgres.h" //#include "commonutils.h" //int GetGisMeta( GDALDatasetH hDataset ); //int GetGisMeta(char *meta); int ...
28.67
15
(translation_unit) "#ifndef __OSSGISMEAT_H_\n#define __OSSGISMEAT_H_\n#include "gdal.h"\n#include "gdal_alg.h"\n#include "ogr_srs_api.h"\n#include "cpl_string.h"\n#include "cpl_conv.h"\n#include "cpl_multiproc.h"\n#include "postgres.h"\n//#include "commonutils.h"\n\n//int GetGisMeta( GDALDatasetH hDataset );\n//...
93
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.67, "nodes": 59, "errors": 0, "source_hash": "cd034637e7b78239bb132d972e2575e8d6e766bfdf62e40e472567599d57a764", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,466
c
/* === INTROPROG ABGABE === * Blatt 7, Aufgabe 2 * Tutorium: txx * Gruppe: gxx * Gruppenmitglieder: * - <NAME> * - <NAME> * ======================== */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "introprog_input_merge_sort.h" void merge(int* array, int first, int middle, int last) {...
17.99
95
(translation_unit) "/* === INTROPROG ABGABE ===\n * Blatt 7, Aufgabe 2\n * Tutorium: txx\n * Gruppe: gxx\n * Gruppenmitglieder:\n * - <NAME>\n * - <NAME>\n * ========================\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n#include "introprog_input_merge_sort.h"\n\nvoid merge(int* array,...
733
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 17.99, "nodes": 475, "errors": 0, "source_hash": "55cd809b9da1918edf8eea699f322f1f49b0c47f5d8b4c36f19df66b05089820", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,467
c
#ifndef __HEADER_IMPL_CONST_ARM__ #define __HEADER_IMPL_CONST_ARM__ #include <stdint.h> #include <stddef.h> typedef int32_t fcell_t; #define FW_CUSTOM_ATTRIBUTES #define __fw_noinline__ __attribute__ ((noinline)) #define fw_call void __attribute__ ((noinline)) /* #define fw_call void __attribute__ ((target("thumb")...
31.59
63
(translation_unit) "#ifndef __HEADER_IMPL_CONST_ARM__\n#define __HEADER_IMPL_CONST_ARM__\n\n#include <stdint.h>\n#include <stddef.h>\n\ntypedef int32_t fcell_t;\n\n#define FW_CUSTOM_ATTRIBUTES\n#define __fw_noinline__ __attribute__ ((noinline))\n#define fw_call void __attribute__ ((noinline))\n/* #define fw_call void _...
175
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.59, "nodes": 156, "errors": 0, "source_hash": "c7d969e8a29f9ed5e9c3ef3e550bbe6a15de5e2b97129c17d67ec9e0c4abd9c9", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,468
c
#ifndef REDUCTION_AUX #define REDUCTION_AUX #include <stdio.h> #include <cuda.h> typedef double FLOAT; #define USE_UNIX 1 /* get thread id: 1D block and 2D grid */ #define get_tid() (blockDim.x * (blockIdx.x + blockIdx.y * gridDim.x) + threadIdx.x) /* get block id: 2D grid */ #define get_bid() (blockIdx.x + blockI...
21.31
109
(translation_unit) "#ifndef REDUCTION_AUX\n#define REDUCTION_AUX\n\n#include <stdio.h>\n#include <cuda.h>\n\ntypedef double FLOAT;\n#define USE_UNIX 1\n\n/* get thread id: 1D block and 2D grid */\n#define get_tid() (blockDim.x * (blockIdx.x + blockIdx.y * gridDim.x) + threadIdx.x)\n\n/* get block id: 2D grid */\n#defin...
901
3
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 21.31, "nodes": 589, "errors": 0, "source_hash": "852f08ea4c876370e01376655e6acf3ad272f8bf4020743270e547d53ab23bf5", "categorized_nodes": 417}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,469
c
// // Created by gbuisan on 04/06/19. // #ifndef TEB_LOCAL_PLANNER_EDGE_PROXEMICS_H #define TEB_LOCAL_PLANNER_EDGE_PROXEMICS_H #include <teb_local_planner/g2o_types/base_teb_edges.h> namespace teb_local_planner{ class EdgeProxemics : public BaseTebUnaryEdge<1, const Human*, VertexPose> { public: EdgeProxemics(){ ...
33.12
42
(translation_unit) "//\n// Created by gbuisan on 04/06/19.\n//\n\n#ifndef TEB_LOCAL_PLANNER_EDGE_PROXEMICS_H\n#define TEB_LOCAL_PLANNER_EDGE_PROXEMICS_H\n\n#include <teb_local_planner/g2o_types/base_teb_edges.h>\n\nnamespace teb_local_planner{\n\nclass EdgeProxemics : public BaseTebUnaryEdge<1, const Human*, VertexPose...
321
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 33.12, "nodes": 187, "errors": 0, "source_hash": "d5d40551d0d83c28599eb38edc53506494fe265c7e61c98880f1a2aec0a05d73", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,470
c
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
37.18
51
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n/// DISCLAIMER\n///\n/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany\n/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany\n///\n/// Licensed under the Apache License, Version 2.0 (the "License");\n/// you m...
154
6
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 37.18, "nodes": 72, "errors": 0, "source_hash": "64e22ae41d42838515da16e815b2f122f397b11819e4d389e14d05dc51d7ba91", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,471
c
#ifndef SIMPLEFVM_FVMSOLVER_COEFFSCALCULATORS_COEFFSCALCULATORCREATOR_H #define SIMPLEFVM_FVMSOLVER_COEFFSCALCULATORS_COEFFSCALCULATORCREATOR_H #include <memory> #include "FVMSolver/CoeffsCalculators/Calculators/AbstractCoeffsCalculator.h" #include "FVMSolver/CoeffsCalculators/CoeffsCalculatorBuilder.h" namespace f...
37.05
21
(translation_unit) "#ifndef SIMPLEFVM_FVMSOLVER_COEFFSCALCULATORS_COEFFSCALCULATORCREATOR_H\n#define SIMPLEFVM_FVMSOLVER_COEFFSCALCULATORS_COEFFSCALCULATORCREATOR_H\n\n#include <memory>\n\n#include "FVMSolver/CoeffsCalculators/Calculators/AbstractCoeffsCalculator.h"\n#include "FVMSolver/CoeffsCalculators/CoeffsCalculat...
119
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 37.05, "nodes": 68, "errors": 0, "source_hash": "547185287a9e5cf42f9e9a9b97698f192e0992e79433aa91c3b933beed98f682", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,472
c
// // Person.h // single // // Created by 123456 on 16/3/11. // Copyright © 2016年 123456. All rights reserved. // #import <Foundation/Foundation.h> #import "Singleton.h" @interface Person : NSObject interfaceSingleton(Person); @end
18.67
12
(translation_unit) "//\n// Person.h\n// single\n//\n// Created by 123456 on 16/3/11.\n// Copyright © 2016年 123456. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Singleton.h"\n\n@interface Person : NSObject\ninterfaceSingleton(Person);\n@end\n" (comment) "//" (comment) "// Person.h" ...
35
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.67, "nodes": 21, "errors": 0, "source_hash": "31a5fd76492c1deaa02e6a2542adf5d88de214fc1b76c748162cd8815731a593", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
2,473
c
/* * Copyright (C) 2007,2008,2009 Red Hat, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the ...
31.27
221
(translation_unit) "/*\n * Copyright (C) 2007,2008,2009 Red Hat, Inc.\n *\n * This is part of HarfBuzz, a text shaping library.\n *\n * Permission is hereby granted, without written agreement and without\n * license or royalty fees, to use, copy, modify, and distribute this\n * software and its documentation for any ...
1,113
3
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 31.27, "nodes": 819, "errors": 0, "source_hash": "7c24572e791a5f547999383c3d18473203fdd6af566b8689550b2c39bbd0e19a", "categorized_nodes": 474}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,474
c
#include <stdio.h> #include "splitpacks.h" int main(void) { split(); return 0; }
11.71
7
(translation_unit) "#include <stdio.h>\n#include "splitpacks.h"\n\nint main(void)\n{\n split();\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "splitpacks.h"\n" (#include) "#include" (string_literal) ""...
33
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 11.71, "nodes": 18, "errors": 0, "source_hash": "82a80bdf1fb849a1d4ad20918689c1445f916f506df944d6d11befe054854cd2", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,475
c
/* * Copyright 2020-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 writin...
33.22
81
(translation_unit) "/*\n * Copyright 2020-2021 <NAME>\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 http://www.apache.org/licenses/LICENSE-2.0\n Unless required by applicable ...
241
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 33.22, "nodes": 154, "errors": 0, "source_hash": "3e9d15346cd372b591bbcc5d5b311331730b00048a48cb073d80d3c377b6abd4", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,476
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSMapTable; @interface FFMediaIdentifierAliasMap : NSObject { NSMapTable *_aliasMap; } + (id)newMediaIdentifierAliasMap; - (void)dealloc; - (vo...
25.56
18
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSMapTable;\n\n@interface FFMediaIdentifierAliasMap : NSObject\n{\n NSMapTable *_aliasMap;\n}\n\n+ (id)newMediaIdentif...
137
12
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.56, "nodes": 79, "errors": 0, "source_hash": "dff864aa6c9e48d71d26f74200f86c6d19dbd284cc3a836e54b924ddac1d89af", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,477
c
// // Created by yurir on 5/27/16. // #include "Q4B.h" STUDENT *readAndCreateIndFile(char *fileName, int *size) { /* * reading the @fileName and parsing to STUDENT array * setting @size to the size of the array * the array is sorted by ASC order using merge sort algo * return array of STUDENTS...
27.28
173
(translation_unit) "//\n// Created by yurir on 5/27/16.\n//\n\n#include "Q4B.h"\n\nSTUDENT *readAndCreateIndFile(char *fileName, int *size) {\n /*\n * reading the @fileName and parsing to STUDENT array\n * setting @size to the size of the array\n * the array is sorted by ASC order using merge sort algo\n...
1,654
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 27.28, "nodes": 987, "errors": 0, "source_hash": "b838269d28278298c1d29cebe18b3bebfdedba43de118d757734fbcfca76951b", "categorized_nodes": 658}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,478
c
/* include the psf header. */ #include "psf.h" /* psf_write(): write an intermediate PSF file containing the peptide * topology information used for reading molecules generated by ibp-ng * into other programs. * * arguments: * @fname: output filename to write data into. * @P: pointer to the peptide structure ...
34.26
155
(translation_unit) "/* include the psf header. */\n#include "psf.h"\n\n/* psf_write(): write an intermediate PSF file containing the peptide\n * topology information used for reading molecules generated by ibp-ng\n * into other programs.\n *\n * arguments:\n * @fname: output filename to write data into.\n * @P: point...
1,657
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 34.26, "nodes": 967, "errors": 0, "source_hash": "1a123d0df07b002be8a084a78dd9216816258b064a5e2f78409c44cea04cc83b", "categorized_nodes": 747}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,479
c
// // Created by huanghaifeng on 16-3-3. // Copyright (c) 2016 wonghoifung. All rights reserved. // #ifndef config_header #define config_header #include <string> #include "boost/noncopyable.hpp" class config : private boost::noncopyable { private: config(); ~config(); public: static config& ref(); bool init(co...
27.98
41
(translation_unit) "//\n// Created by huanghaifeng on 16-3-3.\n// Copyright (c) 2016 wonghoifung. All rights reserved.\n//\n#ifndef config_header\n#define config_header\n\n#include <string>\n#include "boost/noncopyable.hpp"\n\nclass config : private boost::noncopyable\n{\nprivate:\n config();\n ~config();\n\npublic:\...
387
26
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 27.98, "nodes": 182, "errors": 0, "source_hash": "051bdb9f63d51e974531a2d8c8298704835c2c49fbfd7816a873d45f4e788ac8", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,480
c
/* * Wirefox Networking API * (C) <NAME>, 2019. * * Licensed under the BSD 3-Clause License, see the LICENSE file in the project * root folder for more information. */ #pragma once #include "WirefoxConfig.h" #include "Enumerations.h" namespace wirefox { /** * \brief Represents a channel on which p...
34.17
30
(translation_unit) "/*\n * Wirefox Networking API\n * (C) <NAME>, 2019.\n *\n * Licensed under the BSD 3-Clause License, see the LICENSE file in the project\n * root folder for more information.\n */\n\n#pragma once\n#include "WirefoxConfig.h"\n#include "Enumerations.h"\n\nnamespace wirefox {\n \n /**\n * \br...
89
3
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.17, "nodes": 44, "errors": 0, "source_hash": "6b5eb40cfaebb3602335d67fc5ea9d6c9a12aa1fa42e8b28cab28160e1fd078e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,481
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> #import <XCTAutomationSupport/XCTCapabilitiesProviding-Protocol.h> @class NSString; @interface XCTAnimationsIdleNotifier : NSObject <XCTCapabilitiesProvid...
33.78
27
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n#import <XCTAutomationSupport/XCTCapabilitiesProviding-Protocol.h>\n\n@class NSString;\n\n@interface XCTAnimationsIdleNotifier :...
229
22
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.78, "nodes": 142, "errors": 0, "source_hash": "e9fbb73880f1352882f66ece950e188f159bae6781e5bbbe3955e87679cdcbb0", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,482
c
#ifndef GRAPHICSUTILS_H #define GRAPHICSUTILS_H #include "globaldefs.h" GK_BEGIN_HEADER struct SDL_Surface *graphics_loadsurface(const char *file_name, int use_alpha); GK_END_HEADER #endif // GRAPHICSUTILS_H
28.71
7
(translation_unit) "#ifndef GRAPHICSUTILS_H\n#define GRAPHICSUTILS_H\n\n#include "globaldefs.h"\n\nGK_BEGIN_HEADER\n\nstruct SDL_Surface *graphics_loadsurface(const char *file_name, int use_alpha);\n\nGK_END_HEADER\n\n#endif // GRAPHICSUTILS_H\n" (preproc_ifdef) "#ifndef GRAPHICSUTILS_H\n#define GRAPHICSUTILS_H\n\n#i...
42
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.71, "nodes": 29, "errors": 0, "source_hash": "5cb56c0479db20fda8db7878eac191f8c6beebe2cbf6cdf1a33e394ccb682d7f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
2,483
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "Application/Window/IWindow.h" #include "Application/Window/win/WinWindow.h" #include "Application/Window/ios/IOSWindow.h" #include "Applicatio...
29.26
23
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n\n#include "Application/Window/IWindow.h"\n#include "Application/Window/win/WinWindow.h"\n#include "Application/Window/ios/IOSWin...
128
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.26, "nodes": 69, "errors": 0, "source_hash": "8ae77464abd8a5be66da7dcc7548166efc1b881aee5ce5571bd18d7ee2432dba", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,484
c
void vec_mult_q31(); void vec_add_q31(); void vec_sub_q31(); void vec_abs_q31(); void vec_negate_q31(); void vec_offset_q31(); void vec_scale_q31(); void vec_dot_q31(); // Pattern IDs static const int INPUT1_Q31_ID=0; static const int INPUT2_Q31_ID=1; // Output IDs static const int OUT_SAMPLES_Q31_ID=0; // Test IDs ...
26.18
22
(translation_unit) "void vec_mult_q31();\nvoid vec_add_q31();\nvoid vec_sub_q31();\nvoid vec_abs_q31();\nvoid vec_negate_q31();\nvoid vec_offset_q31();\nvoid vec_scale_q31();\nvoid vec_dot_q31();\n\n// Pattern IDs\nstatic const int INPUT1_Q31_ID=0;\nstatic const int INPUT2_Q31_ID=1;\n\n// Output IDs\nstatic const int O...
189
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.18, "nodes": 106, "errors": 0, "source_hash": "92bd6c5d690a178809bb731c3adb4978f08c5f524d5f2dd5f089acb01feae444", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void vec_...
2,485
c
#ifndef MIPT_METAPROG_STRATEGY_H #define MIPT_METAPROG_STRATEGY_H #include "Command.h" /** * Interface Strategy. A set of algorithms to execute */ class Strategy { public: Strategy() = default; virtual ~Strategy() = default; /** * Execute command. See description in subclasses * @return <0 ...
24.42
19
(translation_unit) "#ifndef MIPT_METAPROG_STRATEGY_H\n#define MIPT_METAPROG_STRATEGY_H\n\n#include "Command.h"\n\n\n/**\n * Interface Strategy. A set of algorithms to execute\n */\nclass Strategy {\npublic:\n Strategy() = default;\n\n virtual ~Strategy() = default;\n\n /**\n * Execute command. See descript...
73
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.42, "nodes": 46, "errors": 0, "source_hash": "e42c0cd96004b0d5e6b318ac511d9a143a1533065dc0d3d045253319a5258de0", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,486
c
#pragma once #define PARSER_ENABLE_ARITHMETIC #define PARSER_ENABLE_BITVECTOR #define PARSER_ENABLE_UNINTERPRETED
27.5
4
(translation_unit) "#pragma once\n\n#define PARSER_ENABLE_ARITHMETIC\n#define PARSER_ENABLE_BITVECTOR\n#define PARSER_ENABLE_UNINTERPRETED\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define PARSER_ENABLE_ARITHMETIC\n" (#define) "#define" (ide...
13
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.5, "nodes": 12, "errors": 0, "source_hash": "b660a1e9ac3247d501fd7096a2ed0a95ffa2c9afa93726c6e1f00cab5c99e587", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
2,487
c
/* * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. * * 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 co...
35.23
227
(translation_unit) "/*\n * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * * Redistributions of source code must retain the above copyright\n *...
940
41
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 35.23, "nodes": 578, "errors": 0, "source_hash": "1f2a5e97e9fb596b9fc4c7b694f4170a13587cfbdd7cb8a5128f623ad66806f4", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,488
c
#pragma once void itoa(unsigned int input, char* output, unsigned int base); int atoi(const char* input); char* strncpy(char* dest, const char *src, int num); int strncmp(const char *s1, const char *s2, int num); int strlen(const char* s); void bzero(void* memory, int length); void memcpy(const void* src, void* dst, i...
40
8
(translation_unit) "#pragma once\n\nvoid itoa(unsigned int input, char* output, unsigned int base);\nint atoi(const char* input);\nchar* strncpy(char* dest, const char *src, int num);\nint strncmp(const char *s1, const char *s2, int num);\nint strlen(const char* s);\nvoid bzero(void* memory, int length);\nvoid memcpy(c...
155
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 40.0, "nodes": 112, "errors": 0, "source_hash": "fc61e77985546f2f3ec6f93c8ae5926723dd4ae2497531db8e5183451b982879", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,489
c
#pragma once #import "FunSDK/JObject.h" #include "AVDRule.h" #include "CPCRule.h" #include "OSCRule.h" #include "PEARule.h" #define JK_RuleConfig "RuleConfig" class RuleConfig : public JObject { public: AVDRule mAVDRule; CPCRule mCPCRule; OSCRule mOSCRule; PEARule mPEARule; public: RuleConfig(JObject *pP...
21.58
24
(translation_unit) "#pragma once\n#import "FunSDK/JObject.h"\n#include "AVDRule.h"\n#include "CPCRule.h"\n#include "OSCRule.h"\n#include "PEARule.h"\n\n#define JK_RuleConfig "RuleConfig" \nclass RuleConfig : public JObject\n{\npublic:\n AVDRule mAVDRule;\n CPCRule mCPCRule;\n OSCRule mOSCRule;\n PEARule mPEARule;\n...
176
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.58, "nodes": 95, "errors": 0, "source_hash": "33db7d2952644ddc4787d3715df03d65182bebf514ee6131505d8bf932834d02", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,490
c
// // TYSideViewController.h // flutter_iOS_gesture_demo // // Created by TonyReet on 2019/7/6. // Copyright © 2019 TonyReet. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, TYSideState) { TYSideStateNone, TYSideStateBegan, TYSideStateUpdate, TYSideStateEnded, }; typed...
41.97
33
(translation_unit) "//\n// TYSideViewController.h\n// flutter_iOS_gesture_demo\n//\n// Created by TonyReet on 2019/7/6.\n// Copyright © 2019 TonyReet. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSUInteger, TYSideState) {\n TYSideStateNone,\n TYSideStateBegan,\n TYSideStateUpdate...
311
50
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 41.97, "nodes": 205, "errors": 0, "source_hash": "c4dc5e62e3c39ef14817b738fb5055105a5650563ba3fc3b4b2db1d103ebbdea", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
2,491
c
#include "Config.h" const PROGMEM palette_sequence_t heart_sequence = { { 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 }, { 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0...
25.08
66
(translation_unit) "#include "Config.h"\n\nconst PROGMEM palette_sequence_t heart_sequence = {\n{\n 0x00, 0x01, 0x00, 0x01, 0x00, \n 0x01, 0x01, 0x01, 0x01, 0x01, \n 0x01, 0x01, 0x01, 0x01, 0x01, \n 0x00, 0x01, 0x01, 0x01, 0x00, \n 0x00, 0x00, 0x01, 0x00, 0x00\n},\n{\n 0x00, 0x02, 0x00, 0x02, 0x00, \n 0x02, 0x02...
545
2
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 25.08, "nodes": 273, "errors": 0, "source_hash": "4e32dd1c8c0724dcc0476e3d383573dd50669aa28b63585c216a38790794d3dd", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,492
c
// throttling packets #include "common.h" #define NAME "throttle" #define TIME_MIN "0" #define TIME_MAX "1000" #define TIME_DEFAULT 30 // threshold for how many packet to throttle at most #define KEEP_AT_MOST 1000 static volatile short throttleEnabled = 0, throttleInbound = 1, throttleOutbound = ...
28.68
133
(translation_unit) "// throttling packets\n#include "common.h"\n#define NAME "throttle"\n#define TIME_MIN "0"\n#define TIME_MAX "1000"\n#define TIME_DEFAULT 30\n// threshold for how many packet to throttle at most\n#define KEEP_AT_MOST 1000\n\nstatic volatile short throttleEnabled = 0,\n throttleIn...
860
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 28.68, "nodes": 503, "errors": 0, "source_hash": "8b325cd3c8e92e0e33e8ae1dc4bbc332d3f1ec6deadee683d7581d1a40c579d2", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,493
c
// // MFIBoltMisfitControllerEventSwitch.h // MisfitBoltSDK // // Created by <NAME> on 1/7/15. // Copyright (c) 2015 Misfit. All rights reserved. // #import <Foundation/Foundation.h> #import "MFIBoltMisfitControllerEvent.h" #define MFIBoltMisfitControllerEventSwitchMake(event, actionIndex, on) [MFIBoltMisfitContr...
35.42
19
(translation_unit) "//\n// MFIBoltMisfitControllerEventSwitch.h\n// MisfitBoltSDK\n//\n// Created by <NAME> on 1/7/15.\n// Copyright (c) 2015 Misfit. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MFIBoltMisfitControllerEvent.h"\n\n#define MFIBoltMisfitControllerEventSwitchMake(event, actio...
90
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.42, "nodes": 52, "errors": 0, "source_hash": "c54b0763e535cb9b676b3ccd9090a43ab32b3bacb784209e8010c713e26307bb", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,494
c
#import <Foundation/Foundation.h> //! Project version number for BluetoothWrapper. FOUNDATION_EXPORT double BluetoothWrapperVersionNumber; //! Project version string for BluetoothWrapper. FOUNDATION_EXPORT const unsigned char BluetoothWrapperVersionString[];
50.8
5
(translation_unit) "#import <Foundation/Foundation.h>\n\n//! Project version number for BluetoothWrapper.\nFOUNDATION_EXPORT double BluetoothWrapperVersionNumber;\n\n//! Project version string for BluetoothWrapper.\nFOUNDATION_EXPORT const unsigned char BluetoothWrapperVersionString[];\n" (preproc_call) "#import <Fou...
25
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 50.8, "nodes": 15, "errors": 0, "source_hash": "8984bdaeaaaf991b3868b48e333b1b90aeb294b8c074869562350a66603f9963", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
2,495
c
/* * This file is part of the coreboot project. * * Copyright 2016 Google Inc. * Copyright (C) 2018 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the ...
30.95
39
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright 2016 Google Inc.\n * Copyright (C) 2018 Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software F...
163
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.95, "nodes": 105, "errors": 0, "source_hash": "cc0b610a1c95b2d8b16a57e86ca93a6e7bb9b66bf3e73a439679dd3328da29b0", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,496
c
/* Copyright 2017 evan */ #ifndef INCLUDE_MK_EVENT_H_ #define INCLUDE_MK_EVENT_H_ #include <memory> namespace mk { // 声明 class TransportAcceptor; class TransportReader; class TransportWriter; // Io 事件监听器 class IoEventListener { public: IoEventListener(); virtual ~IoEventListener(); virtual void OnAcce...
23.85
54
(translation_unit) "/* Copyright 2017 evan */\n#ifndef INCLUDE_MK_EVENT_H_\n#define INCLUDE_MK_EVENT_H_\n\n#include <memory>\n\nnamespace mk {\n\n// 声明\nclass TransportAcceptor;\nclass TransportReader;\nclass TransportWriter;\n\n// Io 事件监听器\nclass IoEventListener {\n public:\n IoEventListener();\n\n virtual ~IoEv...
312
11
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 23.85, "nodes": 186, "errors": 0, "source_hash": "2fe3685a68f46002c26ae323c670989416cee1d576155a993c862c4950fe2884", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,497
c
#include "Game.h" #include "DeltaTime.h" #include "DrawableScreen.h" #include "Input.h" void InitializeGameState() { game_state = malloc(sizeof(GameState)); if(game_state) { game_state->isRunning = true; } screen_stack = malloc(sizeof(Stack)); } void SetScreen(const DrawableScreen* _screen) {...
15.81
52
(translation_unit) "#include "Game.h" \n#include "DeltaTime.h" \n#include "DrawableScreen.h" \n#include "Input.h" \n \nvoid InitializeGameState() \n{ \n game_state = malloc(sizeof(GameState)); \n if(game_state) \n { \n game_state->isRunning = true; \n } \n \n screen_stack = malloc(sizeof(Stack)); \n} \n \nvoid SetScre...
277
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 15.81, "nodes": 146, "errors": 0, "source_hash": "9673b3f8a9ee9d9f0efeb9e160ba5060748f79b60374dc5887abd5faf0e52b49", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,498
c
/* searchutils.c - helper subroutines for grep's matchers. Copyright 1992, 1998, 2000, 2007, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
34.7
162
(translation_unit) "/* searchutils.c - helper subroutines for grep's matchers.\n Copyright 1992, 1998, 2000, 2007, 2009-2012 Free Software Foundation, Inc.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free S...
1,011
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 34.7, "nodes": 652, "errors": 0, "source_hash": "15c8fc1cceab678f84ca8a6a6d6ebb4cb5bb7e55b9936740e23f006f87dffd34", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,499