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
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_CloudLiveUITestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_CloudLiveUITestsVersionString[];
39.5
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_CloudLiveUITestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_CloudLiveUITestsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaratio...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.5, "nodes": 15, "errors": 0, "source_hash": "1e0e4bee5996cc8cd92a8799c72dd8b3a34c54ddc98263e9d4ad83283332e7a8", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
7,900
c
// // NYNZiJiModel.h // NetFarmCommune // // Created by manager on 2018/2/13. // Copyright © 2018年 NongYiNong. All rights reserved. // #import <Foundation/Foundation.h> @interface NYNZiJiModel : NSObject @property(nonatomic,copy)NSString * ID; @property(nonatomic,copy)NSString * name; @property(nonatomic,copy)NS...
27.67
15
(translation_unit) "//\n// NYNZiJiModel.h\n// NetFarmCommune\n//\n// Created by manager on 2018/2/13.\n// Copyright © 2018年 NongYiNong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NYNZiJiModel : NSObject\n@property(nonatomic,copy)NSString * ID;\n@property(nonatomic,copy)NSString * na...
108
22
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.67, "nodes": 79, "errors": 0, "source_hash": "b46ac6f2634161dfdc14135c0ab0863d60625e890c596aa34aaa352fc3e359fb", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
7,901
c
#include <stdio.h> #include<math.h> int main() { const double ANSWER = 3.1415926; double response; printf("What is the value of pi?\n"); scanf("%lf", &response); while (fabs(response - ANSWER) > 0.000001) { printf("PLease try again!\n"); scanf("%lf", &response); } print...
21.8
15
(translation_unit) "#include <stdio.h>\n#include<math.h>\nint main()\n{\n const double ANSWER = 3.1415926;\n double response;\n\n printf("What is the value of pi?\n");\n scanf("%lf", &response);\n while (fabs(response - ANSWER) > 0.000001)\n {\n printf("PLease try again!\n");\n scanf("%l...
116
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.8, "nodes": 59, "errors": 0, "source_hash": "c8cb76a6000f6b14a64d33f55ab1abe7d888c0935974aba6fee402e643b32bd8", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,902
c
#ifndef SECP_GROUP_ELEMENT_H__ #define SECP_GROUP_ELEMENT_H__ #include "Scalar.h" #include <cstddef> #include <ostream> #include <string> #include <vector> #include <stddef.h> namespace secp_primitives { class GroupElement final { public: static constexpr std::size_t serialize_size = 34; public: GroupElem...
31.08
91
(translation_unit) "#ifndef SECP_GROUP_ELEMENT_H__\n#define SECP_GROUP_ELEMENT_H__\n\n#include "Scalar.h"\n\n#include <cstddef>\n#include <ostream>\n#include <string>\n#include <vector>\n\n#include <stddef.h>\n\n\nnamespace secp_primitives {\n\nclass GroupElement final {\npublic:\n static constexpr std::size_t seria...
837
42
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 31.08, "nodes": 497, "errors": 0, "source_hash": "9f5adddded53efef4a976c63aff2b50e7beeb0b2e948f57377d9fb465f20be65", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,903
c
// File name: ExtremeC_examples_chapter8_4_duck.h // Description: Public interface of the duck class #ifndef EXTREME_C_EXAMPLES_CHAPTER_8_4_DUCK_H #define EXTREME_C_EXAMPLES_CHAPTER_8_4_DUCK_H // Forward declaration struct duck_t; // Memory allocator struct duck_t* duck_new(); // Constructor void duck_ctor(struct d...
30.5
14
(translation_unit) "// File name: ExtremeC_examples_chapter8_4_duck.h\n// Description: Public interface of the duck class\n\n#ifndef EXTREME_C_EXAMPLES_CHAPTER_8_4_DUCK_H\n#define EXTREME_C_EXAMPLES_CHAPTER_8_4_DUCK_H\n\n// Forward declaration\nstruct duck_t;\n\n// Memory allocator\nstruct duck_t* duck_new();\n\n// Con...
59
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.5, "nodes": 41, "errors": 0, "source_hash": "9eeb23e37cb858285cd01f9488d83226dd5a53c762eddc36d35b12f6a520b584", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
7,904
c
#ifndef ElectronEPcombinator_H #define ElectronEPcombinator_H #include "EgammaAnalysis/ElectronTools/interface/SimpleElectron.h" #include <stdio.h> #include <math.h> class ElectronEPcombinator { public: ElectronEPcombinator(){} void combine(SimpleElectron & electron); void setCombinationMode(int mode){mode_ ...
24.12
24
(translation_unit) "#ifndef ElectronEPcombinator_H\n#define ElectronEPcombinator_H\n\n#include "EgammaAnalysis/ElectronTools/interface/SimpleElectron.h"\n#include <stdio.h>\n#include <math.h>\n\nclass ElectronEPcombinator\n{\n public:\n ElectronEPcombinator(){} \n void combine(SimpleElectron & electron); \n void set...
120
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.12, "nodes": 75, "errors": 0, "source_hash": "e47405df1f62e4ea6a7c8f8940a124cbfe3418c15e152fd28e40db6836e1dc9a", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,905
c
// // ofxDynamixelServosModels.h // example // // Created by <NAME> on 7/26/18. // // #pragma once #include "ofxDynamixelXL320.h" #include "ofxDynamixelAX12+.h" #include "ofxDynamixelXL430.h"
16.73
11
(translation_unit) "//\n// ofxDynamixelServosModels.h\n// example\n//\n// Created by <NAME> on 7/26/18.\n//\n//\n\n#pragma once\n\n#include "ofxDynamixelXL320.h"\n#include "ofxDynamixelAX12+.h"\n#include "ofxDynamixelXL430.h"\n" (comment) "//" (comment) "// ofxDynamixelServosModels.h" (comment) "// example" ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.73, "nodes": 12, "errors": 0, "source_hash": "151c00e6b94bcd07a4a4a38c9ce34856d234ae18d25604903c96e8635db2e561", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,906
c
#ifndef PINKYPI_RAY_H #define PINKYPI_RAY_H #include <cmath> #include "pptypes.h" namespace PinkyPi { struct Ray { Vector3 origin; Vector3 direction; Ray() : origin(0.0, 0.0, 0.0), direction(0.0, 0.0, -1.0) {}; Ray(const Vector...
22.59
34
(translation_unit) "#ifndef PINKYPI_RAY_H\n#define PINKYPI_RAY_H\n\n#include <cmath>\n#include "pptypes.h"\n\nnamespace PinkyPi {\n \n struct Ray {\n Vector3 origin;\n Vector3 direction;\n \n Ray() :\n origin(0.0, 0.0, 0.0),\n direction(0.0, 0.0, -1.0)\n {}...
209
10
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 22.59, "nodes": 123, "errors": 0, "source_hash": "ce03e3958e3c545a6b06eea85e34ccfb1a08a3209bdea20367c788626716ae88", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,907
c
// Copyright 2021 <NAME> (<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 agreed to ...
40.2
80
(translation_unit) "// Copyright 2021 <NAME> (<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 required by ...
789
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 40.2, "nodes": 443, "errors": 0, "source_hash": "d7be460e2564fcd6f89cd3a2c5aecb3ddc99e04c39fd6398af5ff80d884ba32c", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,908
c
// // LMTabBarController.h // LMQPLottery // // Created by 林宏敏 on 2017/11/5. // Copyright © 2017年 林宏敏. All rights reserved. // #import <UIKit/UIKit.h> @interface LMTabBarController : UITabBarController @end
20.1
10
(translation_unit) "//\n// LMTabBarController.h\n// LMQPLottery\n//\n// Created by 林宏敏 on 2017/11/5.\n// Copyright © 2017年 林宏敏. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LMTabBarController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// LMTabBarController.h" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 10, "errors": 0, "source_hash": "57377598efac8ed2fa3c8f146f7c25ac0497aa37f1976c38030148e4a9cd5bc8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n\...
7,909
c
#pragma once #include <memory> #include <functional> #include "file_mode.h" #include "file_system.h" namespace solar { typedef std::unique_ptr<file_stream, std::function<void(file_stream*)>> file_stream_ptr; inline file_stream_ptr make_file_stream_ptr(file_system& file_system, const std::string& path, file_mode f...
40.33
12
(translation_unit) "#pragma once\n\n#include <memory>\n#include <functional>\n#include "file_mode.h"\n#include "file_system.h"\n\nnamespace solar {\n\n typedef std::unique_ptr<file_stream, std::function<void(file_stream*)>> file_stream_ptr;\n\n inline file_stream_ptr make_file_stream_ptr(file_system& file_system, const...
142
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.33, "nodes": 84, "errors": 0, "source_hash": "e48540335c2e31c0d7381bf55e67b65d370c55dea04443924ba0be089e732e54", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,910
c
#ifndef HUFFMAN_H # define HUFFMAN_H #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> typedef unsigned int uint32_t; enum e_kind { e_leaf, e_nonleaf }; typedef struct s_node {...
33.75
69
(translation_unit) "#ifndef HUFFMAN_H\n# define HUFFMAN_H\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n\ntypedef unsigned int uint32_t;\n\nenum e_kind\n{\n e_leaf,\n e...
816
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.75, "nodes": 647, "errors": 0, "source_hash": "afc1b4f8a29476edb086f6bc611e6649d534331f3133e08bb0ef9fa352bc5320", "categorized_nodes": 371}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,911
c
#include<avr/io.h> #define F_CPU 16000000UL #include<util/delay.h> int ledshift() { DDRD = 0xFF; for(int i = 0; i < 8; i++) { PORTD = 0x01<<i; _delay_ms(500); } for(int j = 0; j < 9; j++) { PORTD = 0x40>>j; _delay_ms(500); } } int segD[10] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x27,0x7F,0x6F}; int s...
15.34
50
(translation_unit) "#include<avr/io.h>\n#define F_CPU 16000000UL\n#include<util/delay.h>\n\nint ledshift()\n{\n DDRD = 0xFF;\n \n for(int i = 0; i < 8; i++)\n {\n PORTD = 0x01<<i;\n _delay_ms(500);\n }\n for(int j = 0; j < 9; j++)\n {\n PORTD = 0x40>>j;\n _delay_ms(500);\n }\n\n}\n\nint segD[10] = {0x3F,0x06,0x5B,0...
396
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 15.34, "nodes": 240, "errors": 0, "source_hash": "bb76e6dd4dcf8b83a64a4307e1f8f6d43bbbd01d58aec739b0704bc03aa0d8a5", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,912
c
/*- * Copyright (c) 2002-2003 Networks Associates Technology, Inc. * All rights reserved. * * This software was developed for the FreeBSD Project by ThinkSec AS and * Network Associates Laboratories, the Security Research Division of * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 * ("CB...
30.04
126
(translation_unit) "/*-\n * Copyright (c) 2002-2003 Networks Associates Technology, Inc.\n * All rights reserved.\n *\n * This software was developed for the FreeBSD Project by ThinkSec AS and\n * Network Associates Laboratories, the Security Research Division of\n * Network Associates, Inc. under DARPA/SPAWAR contrac...
362
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 30.04, "nodes": 275, "errors": 0, "source_hash": "3907f76bfa7f5b24394b0fc5dd4c0bf12f43b6c3e9987ca0f4b17a1b1ad0a0b3", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,913
c
#include "Library_includes.h" #include "Animal_class.h" #if !defined(__MAMMAL_CLASS__) #define __MAMMAL_CLASS__ class Mammal_class : public Animal_class { private: float height; public: Mammal_class(float h = -1, int a = -1, std::string c = "No color...") : height{h}, Animal_class{a, c} {} void set_...
32.96
24
(translation_unit) "#include "Library_includes.h"\n#include "Animal_class.h"\n\n#if !defined(__MAMMAL_CLASS__)\n#define __MAMMAL_CLASS__\n\nclass Mammal_class : public Animal_class {\n private:\n float height;\n\n public:\n Mammal_class(float h = -1, int a = -1, std::string c = "No color...") : height{h}, Anima...
241
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.96, "nodes": 134, "errors": 0, "source_hash": "a41adccd4963a674a088fc21cc1dd5ead06e56c58a8f5fbcdd979ba7fd5f2337", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,914
c
/* * * * * * * * * * * * * * * * * YHGenomics Inc. * Author : <NAME> * Date : 2015-11-22 * Description: * * * * * * * * * * * * * * * */ #ifndef REST_API_SESSION_H_ #define REST_API_SESSION_H_ #include "MRT.h" #include "ClusterSession.h" class Message; class RestAPISession : public ClusterSession { p...
28.32
31
(translation_unit) "/* * * * * * * * * * * * * * * *\n* YHGenomics Inc.\n* Author : <NAME>\n* Date : 2015-11-22\n* Description:\n* * * * * * * * * * * * * * * */\n\n#ifndef REST_API_SESSION_H_\n#define REST_API_SESSION_H_\n\n#include "MRT.h"\n#include "ClusterSession.h"\n\nclass Message;\n\nclass RestAPISessi...
186
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.32, "nodes": 118, "errors": 0, "source_hash": "acd95cfaf6c192566f17f71c77c6100bf8df1013eb4a7c0e8101dd22b679f563", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,915
c
#include <stdlib.h> #include <stdio.h> #include "avl.h" contadorAvl=0; ArvoreAvl* criar() { ArvoreAvl *arvore = malloc(sizeof(ArvoreAvl)); arvore->raiz = NULL; return arvore; } int vazia(ArvoreAvl* arvore) { return arvore->raiz == NULL; } AvlNode* adicionarNo(AvlNode* no, int valor) { if (val...
27.15
242
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include "avl.h"\n\ncontadorAvl=0;\n\nArvoreAvl* criar() {\n ArvoreAvl *arvore = malloc(sizeof(ArvoreAvl));\n arvore->raiz = NULL;\n \n return arvore;\n}\n\nint vazia(ArvoreAvl* arvore) {\n return arvore->raiz == NULL;\n}\n\nAvlNode* adicionarNo(...
1,996
0
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 27.15, "nodes": 1225, "errors": 0, "source_hash": "844632ff126f2b4219ff2dc542ff1c01e79aed4403a290c9e7577136e316e04e", "categorized_nodes": 830}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,916
c
#pragma once #include "Epch.h" #include "Core.h" namespace Ember { class EMBER_API Input { public: inline static bool IsKeyPressed( int keycode ) { return s_Instance->IsKeyPressedImpl( keycode ); } inline static bool IsMouseButtonPressed( int button ) { return s_Instance->IsMouseButtonPressedImp...
23.18
38
(translation_unit) "#pragma once\n\n#include "Epch.h"\n\n#include "Core.h"\n\nnamespace Ember\n{\n\n class EMBER_API Input\n {\n public:\n inline static bool IsKeyPressed( int keycode )\n {\n return s_Instance->IsKeyPressedImpl( keycode );\n }\n\n inline static bool IsMouseButtonPressed( int button )\n {\n ret...
272
13
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 23.18, "nodes": 165, "errors": 0, "source_hash": "f83482d8eb766d7398ae11c5a5cb7f4d0ac2ee5093f08655cd1140b9d02c3c32", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,917
c
#pragma once #include "main.h" //? class Answers { /* //keep or remove or change later public: Answers(); Answers(bool,char); void setAll(bool,char=' '); bool getTF(); char getChoice(); private: bool TF_; char choice_; */ };
13.75
16
(translation_unit) "#pragma once\n#include "main.h" //?\n\nclass Answers \n{\n /* //keep or remove or change later\npublic:\n Answers();\n Answers(bool,char);\n void setAll(bool,char=' ');\n bool getTF();\n char getChoice();\nprivate:\n bool TF_;\n char choice_;\n */\n};" (preproc_call) "#pragma once\n" (preproc...
20
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 13.75, "nodes": 8, "errors": 0, "source_hash": "7994d37d93d1ab503c2d6319e8aaeb5fa9c3ff569e2bddfb27f65adbfdb6475b", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,918
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <wil/result.h> #include <initializer_list> #include <map> #include <string> #include <string_view> #include <tuple> #include <type_traits> #include <utility> #include <variant> namespace AppInstaller { ...
32.46
155
(translation_unit) "// Copyright (c) Microsoft Corporation. \n// Licensed under the MIT License. \n#pragma once \n#include <wil/result.h> \n \n#include <initializer_list> \n#include <map> \n#include <string> \n#include <string_view> \n#include <tuple> \n#include <type_traits> \n#include <utility> \n#include <variant> \...
1,257
88
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 32.46, "nodes": 795, "errors": 0, "source_hash": "1098335b7f7a8e238a8242b1d51658d74d99808a64b6df2bae2cb8c759ce953f", "categorized_nodes": 545}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,919
c
// // QBulletScreenView.h // QExtension // // Created by JHQ0228 on 2017/1/21. // Copyright © 2017年 QianQian-Studio. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN #pragma mark - QBulletScreenViewDelegate /// 弹幕内容点击处理协议 @protocol QBulletScreenViewDelegate <NSObject> - (void)didClickCo...
33.28
68
(ERROR) "//\n// QBulletScreenView.h\n// QExtension\n//\n// Created by JHQ0228 on 2017/1/21.\n// Copyright © 2017年 QianQian-Studio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n#pragma mark - QBulletScreenViewDelegate\n\n/// 弹幕内容点击处理协议\n@protocol QBulletScreenViewDelegate <NSOb...
301
38
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 33.28, "nodes": 200, "errors": 0, "source_hash": "05dd3e4d7d0561764175b1df98171d97b38ac0880b85fa2da367c4f94b205340", "categorized_nodes": 122}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// QBulletScreenView...
7,920
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_FAKE_PICTURE_PILE_H_ #define CC_TEST_FAKE_PICTURE_PILE_H_ #include "cc/resources/picture_pile.h" namespace base { class WaitableEvent; }...
38.34
53
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CC_TEST_FAKE_PICTURE_PILE_H_\n#define CC_TEST_FAKE_PICTURE_PILE_H_\n\n#include "cc/resources/picture_pile.h"\n\nnamespace ...
463
21
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 38.34, "nodes": 253, "errors": 0, "source_hash": "3644ca4fff004ba215ac966e2f604d593e9b54c3a9ed18e60910d2ca21821149", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,921
c
// // Notification.h // alaxiaoyou // // Created by Andy on 2016/12/29. // Copyright © 2016年 Andy. All rights reserved. // #import <Foundation/Foundation.h> @interface Notification : NSNotification + (void)postNotification:(NSString *)name; + (void)postNotification:(NSString *)name object:(NSObject *)obj; + (voi...
41.65
17
(translation_unit) "//\n// Notification.h\n// alaxiaoyou\n//\n// Created by Andy on 2016/12/29.\n// Copyright © 2016年 Andy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Notification : NSNotification\n\n+ (void)postNotification:(NSString *)name;\n+ (void)postNotification:(NSString *)na...
219
31
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 41.65, "nodes": 139, "errors": 0, "source_hash": "3703c91f8f81575778ca76866e9652be0b598893408c1b84c5575512890150c7", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
7,922
c
// // UIAdapter.h // TodayHeadlines // // Created by <NAME> on 2020/9/30. // Copyright © 2020 <NAME> Big Data Institute Co. Ltd. All rights reserved. // /** 适配工具类 */ #ifndef UIAdapter_h #define UIAdapter_h /** 全屏宽高的宏 */ #define SCREEN_W ([[UIScreen mainScreen ] bounds].size.width) #define SCREEN_H ...
26.42
50
(translation_unit) "//\n// UIAdapter.h\n// TodayHeadlines\n//\n// Created by <NAME> on 2020/9/30.\n// Copyright © 2020 <NAME> Big Data Institute Co. Ltd. All rights reserved.\n//\n\n/**\n 适配工具类\n */\n#ifndef UIAdapter_h\n#define UIAdapter_h\n\n/** 全屏宽高的宏 */\n#define SCREEN_W ([[UIScreen mainScreen ] bounds]....
239
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 26.42, "nodes": 147, "errors": 0, "source_hash": "6dee733b5a7fdfbac2b446fa2cdf6eed298f5358306beadeb370d2b15b901700", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "dapter_...
7,923
c
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_TESTS_TEST_CORE_H_ #define PPAPI_TESTS_TEST_CORE_H_ #include <string> #include "ppapi/tests/test_case.h" class TestCore : public Test...
33.11
18
(translation_unit) "// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef PPAPI_TESTS_TEST_CORE_H_\n#define PPAPI_TESTS_TEST_CORE_H_\n\n#include <string>\n\n#include "ppapi/tests/test_case.h"\...
119
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.11, "nodes": 66, "errors": 0, "source_hash": "7dc0683afa4cc442df5fe6b4c6498f79c673a787c9a27054aad3bfdc66f81dbc", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,924
c
/* * Copyright (c) 2021 The Foundation for Research on Information Technologies in Society (IT'IS). * * This file is part of iSEG * (see https://github.com/ITISFoundation/osparc-iseg). * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include <cmath>...
23.28
75
(translation_unit) "/*\n * Copyright (c) 2021 The Foundation for Research on Information Technologies in Society (IT'IS).\n * \n * This file is part of iSEG\n * (see https://github.com/ITISFoundation/osparc-iseg).\n * \n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n#...
977
34
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 23.28, "nodes": 584, "errors": 0, "source_hash": "1bf5d0c9f82036ee42bc6e7e3506a8c156f5a89d5d546bd6bc8b5d06f130581c", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,925
c
/* * Copyright (c) 2001-2019 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list o...
33.56
141
(translation_unit) "/*\n * Copyright (c) 2001-2019 <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyrigh...
1,020
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 33.56, "nodes": 558, "errors": 0, "source_hash": "1a24396be2b3fd40d6295fbe86b732f33c10ffabf1e8100d87db98c554532a96", "categorized_nodes": 389}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,926
c
/******************************************** Trabalho ED1 2018/1: Sistema colaborativo <NAME> e <NAME> editor.c: implementações para editores ********************************************/ #include "editor.h" #include <stdio.h> #include <stdlib.h> #include <string.h> struct tipoEditor{ char *nom...
22.79
81
(translation_unit) "/******************************************** \nTrabalho ED1 2018/1: Sistema colaborativo \n \n<NAME> e <NAME> \n \neditor.c: implementações para editores \n********************************************/ \n \n#include "editor.h" \n#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n \nst...
420
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 22.79, "nodes": 248, "errors": 0, "source_hash": "3f0879c4fc348414eb9a8590104377aea99c2df0e1c6aedeb301d3ee823c05cb", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
7,927
c
#ifndef ZSocket_H_INCLUDED #define ZSocket_H_INCLUDED #ifndef NO_ZLIB_SUPPORT #include "SimpleSockets.h" class ZSocketPrivate; //! Socket Layer for transparent compression with zlib using a "slave" socket class ZSocket : public ISocket{ friend class ZSocketPrivate; private: ZSocketPrivate* p; public: //!...
32.43
28
(translation_unit) "#ifndef ZSocket_H_INCLUDED\n#define ZSocket_H_INCLUDED\n\n#ifndef NO_ZLIB_SUPPORT\n\n#include "SimpleSockets.h"\n\nclass ZSocketPrivate;\n\n//! Socket Layer for transparent compression with zlib using a "slave" socket\nclass ZSocket : public ISocket{\n friend class ZSocketPrivate;\n\n private:\n \n ...
165
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.43, "nodes": 109, "errors": 0, "source_hash": "c2ac30435ccd14f5bca9cc3e36aa4459104f7f044af1b8b7f5f2b5af0d6c729e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,928
c
#define NOGDI #define NONLS #define NORESOURCE #define NOSCROLL #define NOSHOWWINDOW #define NOVIRTUALKEYCODES #define NOWH #define NODESKTOP #define NOWINDOWSTATION #define NOSECURITY #define NOMSG #define NOWINOFFSETS #define NONCMESSAGES #define NOKEYSTATES #define NOCLIPBOARD #define NODEFERWINDOWP...
18.72
29
(translation_unit) "#define NOGDI \n#define NONLS \n#define NORESOURCE \n#define NOSCROLL \n#define NOSHOWWINDOW \n#define NOVIRTUALKEYCODES \n#define NOWH \n#define NODESKTOP \n#define NOWINDOWSTATION \n#define NOSECURITY \n#define NOMSG \n#define NOWINOFFSETS \n#define NONCMESSAGES \n#define NOKEYSTATES \n#define NOC...
88
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.72, "nodes": 87, "errors": 0, "source_hash": "cd05be2aeafdfc3b31c822e1f472d9325c0a023ec77450f680ff0edf914b456f", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define\tN...
7,929
c
#include <stdio.h> int main(void) { char num[10]; int count[10] = { 0 }, i, j; scanf("%s", num); for (i = 0; i < 10; i++) count[num[i] - '0']++; for (i = 9; count[i] == 0; i--); j = i; if (count[i] == 1) while (count[--i] == 0); if (i * i + j * j == (num[8] - '0') + 10 *...
25.18
17
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n char num[10];\n int count[10] = { 0 }, i, j;\n scanf("%s", num);\n for (i = 0; i < 10; i++)\n count[num[i] - '0']++;\n for (i = 9; count[i] == 0; i--);\n j = i;\n if (count[i] == 1)\n while (count[--i] == 0);\n if (i * i ...
249
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.18, "nodes": 159, "errors": 0, "source_hash": "caf6133942f2a35cf4b8779c2888eec0fb4108506effae68ef6e040ef2b148b6", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,930
c
#ifndef FP_H #define FP_H #include "NN_model.h" #include "math.h" /* @brief forward propagation buffers For each model's layer, a buffer is defined. Each buffer dimension equals to the layer's size. */ typedef struct { float layer_0_out[LAYER_0_DIM]; float layer_1_out[LAYER_1_DIM]; float layer_2_out[LAYER_2...
22.41
66
(translation_unit) "#ifndef FP_H\n#define FP_H\n\n#include "NN_model.h"\n#include "math.h"\n\n/*\n @brief forward propagation buffers\n \n For each model's layer, a buffer is defined. Each\n buffer dimension equals to the layer's size.\n */\n typedef struct {\n float layer_0_out[LAYER_0_DIM];\n float layer_1_out[LAYER_...
123
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 22.41, "nodes": 82, "errors": 0, "source_hash": "e358b2425ecde4b38da1de797629605822fb922c1f74279a76443348cbff16a4", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,931
c
#ifndef __MODULE_PLUGIN_TVCONTROL_H #define __MODULE_PLUGIN_TVCONTROL_H #ifndef MODULE_NAME #define MODULE_NAME Plugin_TVPlatform #endif #include <core/core.h> #include <plugins/plugins.h> #undef EXTERNAL #define EXTERNAL #endif // __MODULE_PLUGIN_TVCONTROL_H
25
10
(translation_unit) "#ifndef __MODULE_PLUGIN_TVCONTROL_H\n#define __MODULE_PLUGIN_TVCONTROL_H\n\n#ifndef MODULE_NAME\n#define MODULE_NAME Plugin_TVPlatform\n#endif\n\n#include <core/core.h>\n#include <plugins/plugins.h>\n\n#undef EXTERNAL\n#define EXTERNAL\n\n#endif // __MODULE_PLUGIN_TVCONTROL_H\n" (preproc_ifdef) "#...
29
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 25.0, "nodes": 27, "errors": 0, "source_hash": "180b98a60aac31e2d5d10cc74ed2730fc5dfd284633753c8df14d07efb74c553", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,932
c
#include "lib.h" /// \author <NAME> /// \details Fill array of n elements by Fibonaci numbers /// \param[in] array and size CD_DLL void __cdecl fill_array(int *a, const int size) { //if (size < 1) //return ; a[0] = 1; if (size == 1) return ; a[1] = 1; if (size == 2) return ; for (int i = 2; i < size; i...
21.2
55
(translation_unit) "#include "lib.h"\n\n/// \author <NAME>\n/// \details Fill array of n elements by Fibonaci numbers\n/// \param[in] array and size\n\nCD_DLL void __cdecl fill_array(int *a, const int size)\n{\n //if (size < 1)\n //return ;\n a[0] = 1;\n if (size == 1)\n return ;\n\n a[1] = 1;\n if (size == 2)\n re...
379
2
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 21.2, "nodes": 230, "errors": 0, "source_hash": "c0e7850df8e3724f72b03ffa04dbcf9f4acabbe710614eee5a7f43f720dca4d1", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,933
c
/* * Copyright 2012, <NAME>. All rights reserved. * https://github.com/lyjdamzwf/chaos * * Use of this source code is governed by a BSD-style * license that can be found in the License file. */ #ifndef _CHAOS_WORK_SERVICE_H_ #define _CHAOS_WORK_SERVICE_H_ /*! * @file work_service.h * @author ...
33.18
118
(translation_unit) "/*\n * Copyright 2012, <NAME>. All rights reserved.\n * https://github.com/lyjdamzwf/chaos\n *\n * Use of this source code is governed by a BSD-style\n * license that can be found in the License file.\n */\n\n#ifndef _CHAOS_WORK_SERVICE_H_\n#define _CHAOS_WORK_SERVICE_H_\n\n/*!\n * @file ...
615
35
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 33.18, "nodes": 421, "errors": 0, "source_hash": "5807ac4e8d652181b4bc39d6c934a7fd9c6a669960d7954e92038ebd56fa192d", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,934
c
/* * Copyright 2017,2018 cc-wrapper authors * * 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 o...
29.51
49
(translation_unit) "/*\n * Copyright 2017,2018 cc-wrapper authors\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...
129
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.51, "nodes": 86, "errors": 0, "source_hash": "c5d41759502592841abcc5ca4dc9d924fd7b01e458a4243ea942338f48869d8b", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,935
c
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaGUICheckListBox Authors: <NAME> Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even the im...
43.63
104
(translation_unit) "/*=========================================================================\n\n Program: ALBA (Agile Library for Biomedical Applications)\n Module: albaGUICheckListBox\n Authors: <NAME>\n \n Copyright (c) BIC\n All rights reserved. See Copyright.txt or\n\n\n This software is distributed WITHOUT ANY ...
555
9
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 43.63, "nodes": 325, "errors": 0, "source_hash": "18771f9105a7c11303ce7954683eb60efd10809e2de00f2b32898f7760daf2e6", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,936
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Engine/UserDefinedEnum.h" #include "EOffAxisMethod.generated.h" /** * */ UENUM() enum EOffAxisMethod { Fast UMETA(DisplayName = "Fast"), Slow UMETA(DisplayName = "Slow"), Test UMETA...
21.93
15
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Engine/UserDefinedEnum.h"\n#include "EOffAxisMethod.generated.h"\n\n/**\n * \n */\nUENUM()\nenum EOffAxisMethod\n{\n Fast UMETA(DisplayName = "Fast"),\n Slow UMETA(...
80
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.93, "nodes": 40, "errors": 0, "source_hash": "2a49c39df8397494bf3778b1bf30d535493cad1bf11ea6e6d323b8721ec2eeea", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,937
c
#include "STM32F401RE_SPI_DRIVER.h" /* Helper function prototypes */ static void spi_clear_ovr_flag(SPI_Handle_t* pSPIHandle); static void spi_txe_interrupt_handle(SPI_Handle_t *pSPIHandle); static void spi_rxne_interrupt_handle(SPI_Handle_t *pSPIHandle); static void spi_ovr_err_interrupt_handle(SPI_Handle_t *pS...
24.68
354
(translation_unit) "#include "STM32F401RE_SPI_DRIVER.h" \n \n/* Helper function prototypes */ \nstatic void spi_clear_ovr_flag(SPI_Handle_t* pSPIHandle); \nstatic void spi_txe_interrupt_handle(SPI_Handle_t *pSPIHandle); \nstatic void spi_rxne_interrupt_handle(SPI_Handle_t *pSPIHandle); \nstatic void spi_ovr_err_interru...
2,657
1
{"language": "c", "success": true, "metadata": {"lines": 354, "avg_line_length": 24.68, "nodes": 1691, "errors": 0, "source_hash": "7135ad234620a2396cb12655b3d8a6f06828bf68fc0094ebc36babc769b49587", "categorized_nodes": 1228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
7,938
c
#pragma once /* The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
28.99
81
(translation_unit) "#pragma once\n\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2015 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the...
498
13
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 28.99, "nodes": 318, "errors": 0, "source_hash": "824860caacebdd40f9e23ef6fec8243c1cbb1d67dccedbfae63c6b119a7406e4", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,939
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:42:02 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/MessageUI.framework/MessageUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */...
40.24
21
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:42:02 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Frameworks/MessageUI.framework/MessageUI\n* classdump-dyld is licensed under GPLv3, Copyright ...
168
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 40.24, "nodes": 98, "errors": 0, "source_hash": "73e804bc9214c28cd850ca966ebb61537b2d74f69954f32106baf6d86478a8c4", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <M...
7,940
c
#include <stdlib.h> #include <stdio.h> #ifdef REP_TYPE_MATRIX typedef int Element; typedef struct{ Element value; int number; }Vertex; typedef struct{ int numV; Vertex** vertices; int* adjMatrix[]; }Graph; typedef struct{ Vertex** list; int size; }Enumeration; Graph* createGraph(int numV); Enumeration* getAdjace...
20.85
46
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#ifdef REP_TYPE_MATRIX\ntypedef int Element;\ntypedef struct{\n Element value;\n int number;\n}Vertex;\ntypedef struct{\n int numV;\n Vertex** vertices;\n int* adjMatrix[];\n}Graph;\ntypedef struct{\n Vertex** list;\n int size;\n}Enumeration;\nGraph* createGr...
390
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 20.85, "nodes": 297, "errors": 0, "source_hash": "ec1072ce3e2d30d983406ed8f93fc3882f82358ed59c4f58255414dcd981737c", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,941
c
#pragma once #include "../include/lexem.h" #include <string> #include <list> class type_t { protected: static const int SystemBitSize = 32; public: typedef enum { void_type = 0x0000, unsigned_type = 0x0001, signed_type = 0x0002, float_type = 0x0004, compound_type = 0x0008, enumer...
18.85
172
(translation_unit) "#pragma once \n \n#include "../include/lexem.h" \n \n#include <string> \n#include <list> \n \nclass type_t \n{ \nprotected: \n static const int SystemBitSize = 32; \npublic: \n typedef enum \n { \n void_type = 0x0000, \n unsigned_type = 0x0001, \n signed_type = 0x0002, \n float_type = 0x0004,...
945
42
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 18.85, "nodes": 583, "errors": 0, "source_hash": "2b063285f4297e41aefdd4657be329ea57064ae1dcd5eb8bfe6273a821b0ffa8", "categorized_nodes": 422}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,942
c
// Node.h #ifndef NODE_H #define NODE_H #include "Util.h" class Node{ int key; int value; int height; Node *right,*left; private: int findheight(Node* node); void updateheight(Node* node); int diff(Node* node); Node* rotateright(Node *node); Node* rotateleft(Node *node); Node* ...
21.15
33
(translation_unit) "// Node.h \n#ifndef NODE_H \n#define NODE_H \n#include "Util.h" \n \n \nclass Node{ \n \n int key; \n int value; \n int height; \n Node *right,*left; \n \n private: \n int findheight(Node* node); \n void updateheight(Node* node); \n int diff(Node* node); \n Node* rotateright(Node *node); \n N...
315
3
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 21.15, "nodes": 230, "errors": 0, "source_hash": "62f3a6a7a083952c4030f8e4e2f6eeef8b16d80aba23375445c1f07a7917f2ea", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,943
c
#pragma once #include <string> struct MethodInfo; struct Il2CppGenericMethod; struct Il2CppGenericContext; namespace il2cpp { namespace metadata { class GenericMethod { public: // exported public: //internal static const MethodInfo* GetMethod (const Il2CppGenericMethod* gmethod); static const Il2CppGenericCont...
22.24
21
(translation_unit) "#pragma once\n\n#include <string>\n\nstruct MethodInfo;\nstruct Il2CppGenericMethod;\nstruct Il2CppGenericContext;\n\nnamespace il2cpp\n{\nnamespace metadata\n{\n\nclass GenericMethod\n{\npublic:\n // exported\n\npublic:\n //internal\n static const MethodInfo* GetMethod (const Il2CppGenericMethod* g...
112
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.24, "nodes": 61, "errors": 0, "source_hash": "6491ec15f0f7b5772a5ead17e94d7b6ed5960fd0815f724b62af079f812f4461", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,944
c
/* * * Copyright 2015 gRPC authors. * * 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 agree...
31.51
219
(translation_unit) "/*\n *\n * Copyright 2015 gRPC authors.\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 requi...
1,840
117
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 31.51, "nodes": 1052, "errors": 0, "source_hash": "e5eadd4c66e83cb5050a663ef53e3d50b48a65c3dce162b62c74e8a1899b4bbf", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,945
c
// // HXMProblemFeedbackViewController.h // HeXunMaster // // Created by wangmingzhu on 17/4/28. // Copyright © 2017年 wangmingzhu. All rights reserved. //问题反馈 #import <UIKit/UIKit.h> #import "HXMBaseViewController.h" @interface HXMProblemFeedbackViewController : HXMBaseViewController @end
25.73
11
(translation_unit) "//\n// HXMProblemFeedbackViewController.h\n// HeXunMaster\n//\n// Created by wangmingzhu on 17/4/28.\n// Copyright © 2017年 wangmingzhu. All rights reserved.\n//问题反馈\n\n#import <UIKit/UIKit.h>\n#import "HXMBaseViewController.h"\n\n@interface HXMProblemFeedbackViewController : HXMBaseViewControlle...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.73, "nodes": 13, "errors": 0, "source_hash": "18a1bcba83568ef8697c668a5bc5e3f55d0f2f038183b3ac43bfb8ebba6a30dc", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit....
7,946
c
/* Copyright (c) 2018 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL W...
34.27
183
(translation_unit) "/* Copyright (c) 2018 <NAME>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS IS" AND ...
2,045
0
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 34.27, "nodes": 927, "errors": 0, "source_hash": "a4f2d147494469289ba66c6e7039d47cc16e1db3919c8ba5191af90877e25581", "categorized_nodes": 689}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,947
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...
30.93
85
(ERROR) "// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. The ASF licenses this file\n// to you under the Apache License, Version 2.0 (the\n// "Lice...
611
45
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 30.93, "nodes": 363, "errors": 0, "source_hash": "8ec93cddf39c7c3b9ff9de647dee71a2cfbff5a046131b5f7ceedc0eeaf3f338", "categorized_nodes": 240}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Licensed to the Apache...
7,948
c
#pragma once #include "CoreMinimal.h" #include "Engine/DataAsset.h" #include "ShowroomSettings.generated.h" class AShowroomStage; class UEnemyShowroomController; class UCharacterShowroomController; UCLASS(Blueprintable) class UShowroomSettings : public UDataAsset { GENERATED_BODY() public: UPROPERTY(Blueprint...
34.18
22
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "Engine/DataAsset.h"\n#include "ShowroomSettings.generated.h"\n\nclass AShowroomStage;\nclass UEnemyShowroomController;\nclass UCharacterShowroomController;\n\nUCLASS(Blueprintable)\nclass UShowroomSettings : public UDataAsset {\n GENERATED_BODY()\...
163
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.18, "nodes": 99, "errors": 0, "source_hash": "04b89ad6ee8dacbf8e2847098598f93cf38fe2d00d988af53e09107f4c17e980", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,949
c
#include "types.h" #include "stat.h" #include "user.h" void mem_limit(void) { void *m1, *m2; int oneMB = 1 << 20; int pid, ppid, i, nMB = 252; printf(1, "==================================\n"); printf(1, "Virtual Memory test begin. Test by malloc %dMB.\n", nMB); ppid = getpid(); if((pid = fork()) == 0) { m1...
16.45
42
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\nvoid mem_limit(void)\n{\n void *m1, *m2;\n int oneMB = 1 << 20;\n int pid, ppid, i, nMB = 252;\n\n printf(1, "==================================\n");\n printf(1, "Virtual Memory test begin. Test by malloc %dMB.\n", nMB);\n ppid = getpid();\...
327
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 16.45, "nodes": 182, "errors": 0, "source_hash": "45635fd7aeb15cbae5b3fafb40872c1aaacacd4d72ea403f1c228ddd21268157", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,950
c
// Copyright 2019 Shift Cryptosecurity AG // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
30.94
204
(translation_unit) "// Copyright 2019 Shift Cryptosecurity AG\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless re...
1,116
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 30.94, "nodes": 601, "errors": 0, "source_hash": "02cee6b5151ad095c6ef010ea77eaf1ea9c28d4bd8edb58309f535fe5c83e487", "categorized_nodes": 397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,951
c
/* * arch/ubicom32/include/asm/ubi32-pcm.h * Ubicom32 architecture PCM driver platform data definitions. * * (C) Copyright 2009, Ubicom, Inc. * * This file is part of the Ubicom32 Linux Kernel Port. * * The Ubicom32 Linux Kernel Port is free software: you can redistribute * it and/or modify it under the term...
31.1
49
(translation_unit) "/*\n * arch/ubicom32/include/asm/ubi32-pcm.h\n * Ubicom32 architecture PCM driver platform data definitions.\n *\n * (C) Copyright 2009, Ubicom, Inc.\n *\n * This file is part of the Ubicom32 Linux Kernel Port.\n *\n * The Ubicom32 Linux Kernel Port is free software: you can redistribute\n * it an...
81
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.1, "nodes": 53, "errors": 0, "source_hash": "06b553efd2d920ccb6de129a542561e2e76db819c6e4d912400c6bc8699bd1f2", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,952
c
// // TNKCarNaviManager.h // TNKNavigation // // Created by tabsong on 2018/3/26. // Copyright © 2018年 Tencent. All rights reserved. // #import "TNKBaseNaviManager.h" #import "TNKNaviTTS.h" #import "TNKCarRouteSearchTypes.h" #import "TNKCarNavigationData.h" #import "TNKRouteTrafficStatus.h" #import "TNKLocationEnt...
26.89
253
(translation_unit) "//\n// TNKCarNaviManager.h\n// TNKNavigation\n//\n// Created by tabsong on 2018/3/26.\n// Copyright © 2018年 Tencent. All rights reserved.\n//\n\n#import "TNKBaseNaviManager.h"\n#import "TNKNaviTTS.h"\n#import "TNKCarRouteSearchTypes.h"\n#import "TNKCarNavigationData.h"\n#import "TNKRouteTrafficS...
998
85
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 26.89, "nodes": 620, "errors": 0, "source_hash": "b17bf5f252dffa97350a9f5b48e29cf4ec8c60781c0e82c1643f5138a05fe467", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \...
7,953
c
/* * Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT */ #include "ebpf_platform.h" #include <ntstrsafe.h> typedef enum _ebpf_pool_tag { EBPF_POOL_TAG = 'fpbe' } ebpf_pool_tag_t; ebpf_error_code_t ebpf_platform_initiate() { return EBPF_ERROR_SUCCESS; } void ebpf_platform_terminate() {...
31.35
254
(translation_unit) "/*\n * Copyright (c) Microsoft Corporation\n * SPDX-License-Identifier: MIT\n */\n#include "ebpf_platform.h"\n\n#include <ntstrsafe.h>\n\ntypedef enum _ebpf_pool_tag\n{\n EBPF_POOL_TAG = 'fpbe'\n} ebpf_pool_tag_t;\n\nebpf_error_code_t\nebpf_platform_initiate()\n{\n return EBPF_ERROR_SUCCESS;...
1,698
0
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 31.35, "nodes": 1079, "errors": 0, "source_hash": "549244571957ab51f0ce10348d55617ccccdcbcd711c5895d147606db02ac6dc", "categorized_nodes": 711}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,954
c
/* -------------------------------------------------------------------------- * Name: char.h * Purpose: Functions for keys or values which are chars * ----------------------------------------------------------------------- */ #ifndef CHAR_KV_H #define CHAR_KV_H #include "keyval/kv.h" #include "keyval/common.h" ...
33.06
17
(translation_unit) "/* --------------------------------------------------------------------------\n * Name: char.h\n * Purpose: Functions for keys or values which are chars\n * ----------------------------------------------------------------------- */\n\n#ifndef CHAR_KV_H\n#define CHAR_KV_H\n\n#include "keyval/kv.h"...
54
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.06, "nodes": 41, "errors": 0, "source_hash": "f98e32a9702fc056bd9c0a3f70ebad6963b245600b63ca971e01bcb64a5831b8", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,955
c
/*=== top: 2 top: 1 top: 0 test_pop_1 -> top=1, rc=0, ret='undefined' top: 2 top: 1 top: 0 test_pop_b -> top=1, rc=1, ret='RangeError: invalid count' top: 5 top: 3 top: 1 test_pop_2a -> top=1, rc=0, ret='undefined' top: 5 top: 3 top: 1 test_pop_2b -> top=1, rc=1, ret='RangeError: invalid count' top: 7 top: 4 top: 1 tes...
25.14
146
(translation_unit) "/*===\ntop: 2\ntop: 1\ntop: 0\ntest_pop_1 -> top=1, rc=0, ret='undefined'\ntop: 2\ntop: 1\ntop: 0\ntest_pop_b -> top=1, rc=1, ret='RangeError: invalid count'\ntop: 5\ntop: 3\ntop: 1\ntest_pop_2a -> top=1, rc=0, ret='undefined'\ntop: 5\ntop: 3\ntop: 1\ntest_pop_2b -> top=1, rc=1, ret='RangeError: inv...
1,228
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 25.14, "nodes": 660, "errors": 0, "source_hash": "a4e64320e10c235f31e6845703769b2a88cde4b5b5532514e0d9f8c2f3730028", "categorized_nodes": 435}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text":...
7,956
c
/**************************************************************************** ** ** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB). ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt3D module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holdin...
37.09
124
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of the Qt3D module of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:LGPL$\n** Commercial Licen...
545
25
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 37.09, "nodes": 319, "errors": 0, "source_hash": "6bfef2a3fd0e5b08b34c1ac927a7bb306e3289b850c153e36a642e98984c133b", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,957
c
/** * @file * * @date 28.02.09 * @author <NAME> */ #include "screen.h" #include <drivers/terminal.h> #include <assert.h> static void transmit_string(SCREEN *this, const char *str) { while (*str) { terminal_transmit_va(this->terminal, *str++, 0); } } /** * moves screen cursor by specified value * @param by...
27.33
93
(translation_unit) "/**\n * @file\n *\n * @date 28.02.09\n * @author <NAME>\n */\n\n#include "screen.h"\n#include <drivers/terminal.h>\n#include <assert.h>\n\nstatic void transmit_string(SCREEN *this, const char *str) {\n while (*str) {\n terminal_transmit_va(this->terminal, *str++, 0);\n }\n}\n\n/**\n * moves screen ...
842
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 27.33, "nodes": 500, "errors": 0, "source_hash": "dd029cfa221384578bdd46b90d65da0d005014b9a15353da519308e00dd0fb30", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,958
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 29 2017 23:22:24). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // @class CContact, NSString; @protocol IWALocalCacheMgrExt @optional - (void)onUpdateAppPkgComplete:(_Bool)arg1 withContact:(CContact *)arg2 ...
43.55
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 29 2017 23:22:24).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n@class CContact, NSString;\n\n@protocol IWALocalCacheMgrExt\n\n@optional\n- (void)onUpdateAppPkgComplete:(_Bool)arg...
114
11
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 43.55, "nodes": 67, "errors": 0, "source_hash": "5f1b1141986dd6fdf1b6340f7cfd35943011c4d8c2b0430a5ac0c9bd1c3d0a84", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
7,959
c
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trademark rig...
32.32
136
(translation_unit) "/*\n * Legal Notice\n *\n * This document and associated source code (the "Work") is a part of a\n * benchmark specification maintained by the TPC.\n *\n * The TPC reserves all right, title, and interest to the Work as provided\n * under U.S. and international laws, including without limitation all ...
511
21
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 32.32, "nodes": 315, "errors": 0, "source_hash": "a87dddfaba59b00aa4c1a41cd3c8234b57eb3865bd973136fe335ca6f7ebe065", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,960
c
#include <stdio.h> #include <demo3/demo3-lib.h> int main() { hello_world(); return 0; }
12.71
7
(translation_unit) "#include <stdio.h>\n#include <demo3/demo3-lib.h>\n\nint main()\n{\n hello_world();\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <demo3/demo3-lib.h>\n" (#include) "#include" (syst...
28
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 12.71, "nodes": 16, "errors": 0, "source_hash": "919ab0c8e837d657588db6ace8f15371df879dcc00248b362ed44b411994c465", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,961
c
// // DKQuartzCache.h // GCDrawKit // // Created by graham on 4/09/09. // Copyright 2009 Apptree.net. All rights reserved. // #import <Cocoa/Cocoa.h> @interface DKQuartzCache : NSObject { @private CGLayerRef mCGLayer; BOOL mFocusLocked; BOOL mFlipped; NSPoint mOrigin; } + (DKQuartzCache*) cacheForCur...
25.13
39
(translation_unit) "//\n// DKQuartzCache.h\n// GCDrawKit\n//\n// Created by graham on 4/09/09.\n// Copyright 2009 Apptree.net. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface DKQuartzCache : NSObject\n{\n@private\n CGLayerRef mCGLayer;\n BOOL mFocusLocked;\n BOOL mFlipped;\n NSPoint mOrig...
285
24
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 25.13, "nodes": 169, "errors": 0, "source_hash": "59413da1a9a666c42c25fc2f037af70bd288b3443ce44b211fc3d7606a53e55f", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,962
c
/* absread and abswrite services for use with DJGPP GNU C implementation * * <NAME> 94.10.16 * 94.11.18 added bios i/o * 94.11.21 dos i/o for hard disk, bios i/o for floppy * 94.12.19 add retry for bios I/O * 95.01.05 update for generalized abs i/o in flx */ #include <bios.h> #include <dos.h> #include <go...
30.13
265
(translation_unit) "/* absread and abswrite services for use with DJGPP GNU C implementation \n * \n * <NAME> 94.10.16\n * 94.11.18 added bios i/o\n * 94.11.21 dos i/o for hard disk, bios i/o for floppy\n * 94.12.19 add retry for bios I/O\n * 95.01.05 update for generalized abs i/o in flx\n */\n\n#include <bios.h>\...
2,183
0
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 30.13, "nodes": 1341, "errors": 0, "source_hash": "37e592eeaca1956e1055374f986bf42d7c816b82b52ddbba16b66d04835985d1", "categorized_nodes": 990}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,963
c
/* * Copyright (c) 2006-2022, RT-Thread Development Team * Copyright (c) 2022, Xiaohua Semiconductor Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2022-04-28 CDT first version */ #ifndef __DRV_DMA_H__ #define __DRV_DMA_H__ /*************...
26.15
34
(translation_unit) "/*\n * Copyright (c) 2006-2022, RT-Thread Development Team\n * Copyright (c) 2022, Xiaohua Semiconductor Co., Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2022-04-28 CDT first version\n */\n\n#ifndef __DRV_DMA_H__\n#defi...
78
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.15, "nodes": 54, "errors": 0, "source_hash": "ab0e489f687ca221efeaeaed4823a5ffcbd7fa264d5b2ab6ef174f5784db15cc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,964
c
/* * OpenKore C++ Standard Library * Copyright (C) 2006 VCL * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
27.1
69
(translation_unit) "/*\n * OpenKore C++ Standard Library\n * Copyright (C) 2006 VCL\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License,...
136
5
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 27.1, "nodes": 76, "errors": 0, "source_hash": "dd7d9ed7d084d46e9ef51f307830e05af65b61a1ca701a44eacdcc51d8980de5", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,965
c
/*!******************************************************************** AudMonkey: A Digital Audio Editor @file AccessibleLinksFormatter.h @brief Define a helper class to format text with link in a way, accessible to VI users. <NAME> **********************************************************************/ #prag...
37.89
64
(translation_unit) "/*!********************************************************************\n\n AudMonkey: A Digital Audio Editor\n\n @file AccessibleLinksFormatter.h\n @brief Define a helper class to format text with link in a way, accessible to VI users.\n\n <NAME>\n **************************************************...
244
21
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.89, "nodes": 141, "errors": 0, "source_hash": "bcd043ac3b34cbf593892d851033bbd54fe9b35c8dfc65827cc9f5667e037cb6", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,966
c
#include "precision.h" #include "mparith_c.h" #if defined(FLOAT) #define FUNC_LOGB alm_mp_logbf #define FUNC_LOGB_ULP alm_mp_logbf_ULP #elif defined(DOUBLE) #define FUNC_LOGB alm_mp_logb #define FUNC_LOGB_ULP alm_mp_logb_ULP #else #error #endif REAL FUNC_LOGB(REAL x) { REAL y; fp_params params; int base, ...
24.25
51
(translation_unit) "#include "precision.h"\n#include "mparith_c.h"\n\n#if defined(FLOAT)\n#define FUNC_LOGB alm_mp_logbf\n#define FUNC_LOGB_ULP alm_mp_logbf_ULP\n#elif defined(DOUBLE)\n#define FUNC_LOGB alm_mp_logb\n#define FUNC_LOGB_ULP alm_mp_logb_ULP\n#else\n#error\n#endif\n\nREAL FUNC_LOGB(REAL x)\n{\n REAL y;\n...
457
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.25, "nodes": 277, "errors": 0, "source_hash": "45176eaea81f2e22817b29b8dcc2b42985e585f182be67a436737bfe6cb07f51", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,967
c
#include <iostream> #include <fstream> #include <ctime> #include <cstring> #include <sys/stat.h> #include "sha256.h" #include "md5.h" using namespace std; class HashBt { public: string md5hash(string raw_str); void crack_md5hash(string raw_str,string passlist); bool check_file_exists(strin...
23.5
20
(translation_unit) "#include <iostream>\n#include <fstream>\n#include <ctime>\n#include <cstring>\n#include <sys/stat.h>\n#include "sha256.h"\n#include "md5.h"\n\nusing namespace std;\n\nclass HashBt\n{\n public:\n string md5hash(string raw_str);\n void crack_md5hash(string raw_str,string passlist);\n ...
119
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.5, "nodes": 81, "errors": 0, "source_hash": "ec7ca4f384f85b9849ca397ce1334b3bd092b454fc26fb7c6e028b4860ffdab7", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,968
c
#pragma once #define _CRT_SECURE_NO_WARNINGS #include <sqlite3.h> #include <tomcrypt.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <time.h>
19.67
9
(translation_unit) "#pragma once\n\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <sqlite3.h>\n#include <tomcrypt.h>\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <string.h>\n#include <time.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (p...
28
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.67, "nodes": 27, "errors": 0, "source_hash": "c88939e59395ab9cdb639aed4c17e7ebbbb1ca1fe17cce7ec9b6fabb5d84954a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,969
c
#pragma once class CopyAction : public Action { public: CopyAction(ApplicationManager *pApp); virtual void ReadActionParameters(); virtual void Execute(); };
17
9
(translation_unit) "#pragma once\n\n\nclass CopyAction : public Action\n{\npublic:\n CopyAction(ApplicationManager *pApp);\n virtual void ReadActionParameters();\n virtual void Execute();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class Cop...
50
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.0, "nodes": 29, "errors": 0, "source_hash": "96bcf5ec6c7ce9031dcb24ab561a18d5b74c3534d3228949b3b0e76fc1ccf428", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,970
c
/* * Copyright 2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the f...
28.5
242
(translation_unit) "/*\n * Copyright 2017, Intel Corporation\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this ...
1,513
0
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 28.5, "nodes": 921, "errors": 0, "source_hash": "6c6f5de81d1cbcd31bf4bcd96a02b6b84bd34662902af3abe607fde53daea5cc", "categorized_nodes": 649}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,971
c
#if defined(PEGASUS_OS_HPUX) # include "UNIX_NextServiceDeps_HPUX.h" #elif defined(PEGASUS_OS_LINUX) # include "UNIX_NextServiceDeps_LINUX.h" #elif defined(PEGASUS_OS_DARWIN) # include "UNIX_NextServiceDeps_DARWIN.h" #elif defined(PEGASUS_OS_AIX) # include "UNIX_NextServiceDeps_AIX.h" #elif defined(PEGASUS_OS_FREEBSD)...
32.52
21
(translation_unit) "#if defined(PEGASUS_OS_HPUX)\n# include "UNIX_NextServiceDeps_HPUX.h"\n#elif defined(PEGASUS_OS_LINUX)\n# include "UNIX_NextServiceDeps_LINUX.h"\n#elif defined(PEGASUS_OS_DARWIN)\n# include "UNIX_NextServiceDeps_DARWIN.h"\n#elif defined(PEGASUS_OS_AIX)\n# include "UNIX_NextServiceDeps_AIX.h"\n#elif ...
136
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.52, "nodes": 87, "errors": 0, "source_hash": "50be20e74be2523d41f66ca58b23c346554ff4bd90ec20cfb163bbda44d5e042", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined...
7,972
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "KBSHOPDETAILToString.h" @class DTLong, NSString; @interface KBSHOPDETAILDishPractice : KBSHOPDETAILToString { NSString *_pract...
39.95
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "KBSHOPDETAILToString.h"\n\n@class DTLong, NSString;\n\n@interface KBSHOPDETAILDishPractice : KBSHOPDETAILT...
145
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.95, "nodes": 91, "errors": 0, "source_hash": "e71564bc7ec27e41bf429d1e7725fa3ab3a3ec6fe00f977ce215ce3c4e584a97", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,973
c
#ifndef _BOSS_BIGFISH_H_ #define _BOSS_BIGFISH_H_ #include "GegnerClass.h" #include "Gegner_Stuff.h" class GegnerBigFish : public GegnerClass { private: bool Moving; // Bewegt sich der Fisch gerade? float MaulWinkel; float SinOff; int ShotCount; float NewX, NewY; float ...
31.27
30
(translation_unit) "#ifndef _BOSS_BIGFISH_H_\n#define _BOSS_BIGFISH_H_\n\n#include "GegnerClass.h"\n#include "Gegner_Stuff.h"\n\nclass GegnerBigFish : public GegnerClass\n{\nprivate:\n bool Moving; // Bewegt sich der Fisch gerade?\n float MaulWinkel;\n float SinOff;\n int ShotCount;\n ...
176
3
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.27, "nodes": 114, "errors": 0, "source_hash": "5ad99daea6b9a08b744a2c5ff83f3d380855aa2a492ce4f1f0814c6538d79920", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,974
c
// // MapboxVisionAR.h // MapboxVisionAR // // Created by <NAME> on 9/8/18. // Copyright © 2018 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for MapboxVisionAR. FOUNDATION_EXPORT double MapboxVisionARVersionNumber; //! Project version string for MapboxVisionAR. FOUNDATION_EX...
39.5
14
(translation_unit) "//\n// MapboxVisionAR.h\n// MapboxVisionAR\n//\n// Created by <NAME> on 9/8/18.\n// Copyright © 2018 Mapbox. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for MapboxVisionAR.\nFOUNDATION_EXPORT double MapboxVisionARVersionNumber;\n\n//! Project version string ...
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.5, "nodes": 17, "errors": 0, "source_hash": "293b2e90551e288cb14658b5ee338cb2ca3819c10a326aee613be3127cad2b4d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
7,975
c
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class stntuple::TMu2eBField; #endif
26.83
6
(translation_unit) "#ifdef __CINT__\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ class stntuple::TMu2eBField;\n\n#endif\n\n" (preproc_ifdef) "#ifdef __CINT__\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.83, "nodes": 16, "errors": 0, "source_hash": "af4548214e95788d394668a023b5dd41b9a359d03ccf02e23ee6fb935f1f93d0", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __C...
7,976
c
#include "Advanced2D.h" #pragma once namespace Advanced2D { class Vector3 { private: float x, y, z; public: Vector3(); Vector3(const Vector3& v); Vector3(float x, float y, float z); Vector3(int x, int y, int z); void Set(float x1,float y1,float z1); void Set(const Vector3& v); float getX() { retu...
27.65
34
(translation_unit) "#include "Advanced2D.h"\n\n#pragma once\n\nnamespace Advanced2D {\n\n class Vector3 {\n private:\n float x, y, z;\n\n public:\n Vector3();\n Vector3(const Vector3& v);\n Vector3(float x, float y, float z);\n Vector3(int x, int y, int z);\n void Set(float x1,float y1,float z1);\n void Set(cons...
408
16
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.65, "nodes": 231, "errors": 0, "source_hash": "360f8c1c18e4ed8b78f79d5642c5eb89be8ff1f370fa727e4a5d3758404a20e4", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,977
c
#pragma once #include "Plotter/PlotterExports.h" #include <map> #include <memory> #include <string> #include <QApplication> class QwtPlot; class QwtPlotCurve; class QwtPlotGrid; class QPolygonF; namespace ELCT350 { namespace Plotter { #pragma region Types typedef std::tuple<double, double> Point; #pra...
25.58
60
(translation_unit) "#pragma once\n#include "Plotter/PlotterExports.h"\n#include <map>\n#include <memory>\n#include <string>\n#include <QApplication>\n\nclass QwtPlot;\nclass QwtPlotCurve;\nclass QwtPlotGrid;\nclass QPolygonF;\n\nnamespace ELCT350\n{\n namespace Plotter\n {\n #pragma region Types\n typedef std::...
365
18
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 25.58, "nodes": 235, "errors": 0, "source_hash": "360ba2a3c52a3e1a07c46f8e543123183c18e05b891127b1a7ba72f466b7ac80", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,978
c
/*------------------------------------------------------------------------- * * tsmapi.h * API for tablesample methods * * Copyright (c) 2015-2017, PostgreSQL Global Development Group * * src/include/access/tsmapi.h * *------------------------------------------------------------------------- */ #ifndef TSMA...
38.41
66
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * tsmapi.h\n * API for tablesample methods\n *\n * Copyright (c) 2015-2017, PostgreSQL Global Development Group\n *\n * src/include/access/tsmapi.h\n *\n *-------------------------------------------------------------...
263
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 38.41, "nodes": 187, "errors": 0, "source_hash": "2eec65c1a61513a129e3b9dc209c5338a2f6c6a97056b6a98be1250f59311da2", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,979
c
#include "fib.h" #include<stdio.h> int main() { TADfib *f; int qtd; f = NULL; lerQuantidade(&qtd); f = alocaFib(f, qtd); lerCasos(f, qtd); imprimir(f, qtd); f = desalocaFib(f); //fazer a leitura do numero de casos de teste //ler o caso de teste e processar antes de ler o proxi...
22.18
17
(translation_unit) "#include "fib.h"\n#include<stdio.h>\n\nint main()\n{\n TADfib *f;\n int qtd;\n\n f = NULL;\n\n lerQuantidade(&qtd);\n f = alocaFib(f, qtd);\n lerCasos(f, qtd);\n imprimir(f, qtd);\n f = desalocaFib(f);\n //fazer a leitura do numero de casos de teste\n //ler o caso de te...
99
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.18, "nodes": 56, "errors": 0, "source_hash": "86a4c7e5303b1d426c2758068d42d7ee8c520cf4684eaed5e9818f180a8be928", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,980
c
#ifndef COG_STACK_H #define COG_STACK_H #include <stdlib.h> /* STRUCTURES */ struct stack_node { void *value; struct stack_node *next; struct stack_node *prev; }; struct stack { int size; struct stack_node *root; struct stack_node *end; }; /* FUNCTIONS */ struct stack *stack_new(void); void stack_destro...
24.95
22
(translation_unit) "#ifndef COG_STACK_H\n#define COG_STACK_H\n\n#include <stdlib.h>\n\n/* STRUCTURES */\nstruct stack_node {\n void *value;\n struct stack_node *next;\n struct stack_node *prev;\n};\n\nstruct stack {\n int size;\n struct stack_node *root;\n struct stack_node *end;\n};\n\n/* FUNCTIONS */\nstruct st...
200
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.95, "nodes": 153, "errors": 0, "source_hash": "c16c5434ddb529b91f6d43a8d5507a062064b464344114798d955d2bb761d7f5", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,981
c
/* * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "libqtest.h" #include "libqos/rtas.h" static void qrtas_copy_args(QTestState *qts, uint64_t target_args, uint32_t nargs, ...
29.33
98
(translation_unit) "/*\n * This work is licensed under the terms of the GNU GPL, version 2 or later.\n * See the COPYING file in the top-level directory.\n */\n\n#include "qemu/osdep.h"\n#include "libqtest.h"\n#include "libqos/rtas.h"\n\nstatic void qrtas_copy_args(QTestState *qts, uint64_t target_args,\n ...
924
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 29.33, "nodes": 564, "errors": 0, "source_hash": "0fe52852c1477bda8eae4890e742b1ffd8e7a85d02a9d27e40d39b81b8c319b0", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,982
c
// // Created by karl_ on 2020-5-3. // #include <cblas.h> #include <imgproc/color-convert.h> gboolean imgproc_to_grayscale(CoreImage *src, CoreImage **dst) { gsize i; CoreSize *size; gdouble *dst_data_cast, *src_data_cast; gpointer src_data, dst_data; gsize channel, area; CoreCo...
31.74
115
(translation_unit) "// \n// Created by karl_ on 2020-5-3. \n// \n \n#include <cblas.h> \n#include <imgproc/color-convert.h> \n \n \ngboolean imgproc_to_grayscale(CoreImage *src, CoreImage **dst) { \n gsize i; \n CoreSize *size; \n gdouble *dst_data_cast, *src_data_cast; \n gpointer src_data, dst_data; \n ...
994
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 31.74, "nodes": 589, "errors": 0, "source_hash": "5b7fe49b0133ecb1a945fc2147cc3be92283312d8d2a523e8d95270eead6344b", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,983
c
/* Copyright [2017-2019] [IBM Corporation] 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 wri...
32.39
44
(translation_unit) "/*\n Copyright [2017-2019] [IBM Corporation]\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 applicab...
164
6
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.39, "nodes": 103, "errors": 0, "source_hash": "ba4f79df2ae16c3c1e975355b9a998366ffbfb4fe0dcfc9f4c4d5f3deac2676f", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,984
c
#ifndef VALUES_H #define VALUES_H #include "expr.h" #include "result.h" // ****************************************************************** // * * // * value class * // * ...
34.16
25
(translation_unit) "#ifndef VALUES_H\n#define VALUES_H\n\n#include "expr.h"\n#include "result.h"\n\n// ******************************************************************\n// * *\n// * value class *\n// * ...
162
9
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.16, "nodes": 91, "errors": 0, "source_hash": "d3c4d60772c39f429e529dd29aa7815c121640928cc18b1eeaf5f4ebed75c305", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,985
c
// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
38.45
62
(translation_unit) "// Copyright 2011 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// U...
336
21
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 38.45, "nodes": 179, "errors": 0, "source_hash": "f18622dce2baa05b48bdcee63f6ada0290fff3f7e0ecc675b7501fcf82e1a50a", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,986
c
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011 to 2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. * * THIS IS AN AUTOMATICALLY GENERATED FILE - DO NOT EDIT! */ #pragma once // ensure the MCU series is correct #ifndef STM32PLUS_F4 #error This class...
36.15
127
(translation_unit) "/*\n * This file is a part of the open source stm32plus library.\n * Copyright (c) 2011 to 2014 <NAME> <www.andybrown.me.uk>\n * Please see website for licensing terms.\n *\n * THIS IS AN AUTOMATICALLY GENERATED FILE - DO NOT EDIT!\n */\n\n#pragma once\n\n// ensure the MCU series is correct\n#ifndef...
825
69
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 36.15, "nodes": 506, "errors": 0, "source_hash": "9e8abe59e5d7ed74c5883fbd45d5b0d567d7817243cc320efc9be4cc9c4cb875", "categorized_nodes": 346}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,987
c
#pragma once #include <unordered_map> namespace expr { enum TokenType { TokenType_FloatLiteral = 256, TokenType_IntegerLiteral, TokenType_BooleanLiteral, TokenType_Identifier, TokenType_Float, TokenType_Float2, TokenType_Float3, TokenType_Float4,...
26.19
68
(translation_unit) "#pragma once\n#include <unordered_map>\n\nnamespace expr\n{\n enum TokenType\n {\n TokenType_FloatLiteral = 256,\n TokenType_IntegerLiteral,\n TokenType_BooleanLiteral,\n TokenType_Identifier,\n\n TokenType_Float,\n TokenType_Float2,\n TokenType...
350
4
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 26.19, "nodes": 219, "errors": 0, "source_hash": "04fbd07328742a643855e3c8ad2cf6733cd201b32cd3e77d5a6fa4567be8e7ec", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,988
c
/* Deccan Game Engine - C11 2D SDL Game Engine. * Copyright 2020, 2021 <NAME> * * This software is licensed under MIT License. * See LICENSE.md included with this package for more info. */ #pragma once #include <deccanengine/config.h> #include <deccanengine/renderer/render_types.h> //////////////////////////////...
40.33
15
(translation_unit) "/* Deccan Game Engine - C11 2D SDL Game Engine.\n * Copyright 2020, 2021 <NAME>\n *\n * This software is licensed under MIT License.\n * See LICENSE.md included with this package for more info.\n */\n\n#pragma once\n#include <deccanengine/config.h>\n#include <deccanengine/renderer/render_types.h>\n\...
50
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 40.33, "nodes": 36, "errors": 0, "source_hash": "2fdc9449c50741493d5d2faae7a3be3fa059f172ae228b94240978422efc85e9", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,989
c
// // Copyright (c) 1996-2006 by Autodesk, Inc. // // By using this code, you are agreeing to the terms and conditions of // the License Agreement included in the documentation for this code. // // AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS // OF THIS CODE OR ANY DERIVATIVE WORK...
31.29
59
(translation_unit) "// \n// Copyright (c) 1996-2006 by Autodesk, Inc. \n// \n// By using this code, you are agreeing to the terms and conditions of \n// the License Agreement included in the documentation for this code. \n// \n// AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS \n// OF THIS ...
250
14
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.29, "nodes": 136, "errors": 0, "source_hash": "29bc79d16341d41474085299b6d6052d5ffa2a1b4c1f168bf64569a0839a1b1f", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
7,990
c
// // UINavigationBar+WWZ.h // WWZKit // // Created by wwz on 17/3/7. // Copyright © 2017年 tijio. All rights reserved. // #import <UIKit/UIKit.h> @interface UINavigationBar (WWZ) /** * 设置背景颜色 */ - (void)wwz_setBackgroundColor:(UIColor *)color; /** * 设置文本颜色和字体 */ - (void)wwz_setTitleColor:(UIColor *)titleCo...
17.41
22
(translation_unit) "//\n// UINavigationBar+WWZ.h\n// WWZKit\n//\n// Created by wwz on 17/3/7.\n// Copyright © 2017年 tijio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UINavigationBar (WWZ)\n/**\n * 设置背景颜色\n */\n- (void)wwz_setBackgroundColor:(UIColor *)color;\n\n/**\n * 设置文本颜色和字体\n */\n- (vo...
90
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 17.41, "nodes": 54, "errors": 0, "source_hash": "053f92148fb33d0863915c3bca34378ebff151eb5b28f48a57725dcea00dd604", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,991
c
#include <stddef.h> #include <stdlib.h> #include "hash_tables.h" /** * hash_table_create - create a table of hashes * @size: int long unsigned, size of array * Return: pointer newly hash created or null on error */ hash_table_t *hash_table_create(unsigned long int size) { hash_table_t *table = NULL; if (size == ...
20.24
29
(translation_unit) "#include <stddef.h>\n#include <stdlib.h>\n#include "hash_tables.h"\n/**\n * hash_table_create - create a table of hashes\n * @size: int long unsigned, size of array\n * Return: pointer newly hash created or null on error\n */\nhash_table_t *hash_table_create(unsigned long int size)\n{\n hash_table_t...
186
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.24, "nodes": 111, "errors": 0, "source_hash": "e9a3cbe662e6edc64fe58a7e43ecbe295cdc12a594c15a81ec086ceb1656ff6a", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,992
c
/** * File: tty.h * Author: <NAME> <<EMAIL>> * * Description: terminal info */ #ifndef _TTY_H_ # define _TTY_H_ # define TTY_BUF_SIZE 1024 struct tty_queue { unsigned long data; unsigned long len; unsigned long head; char buf[TTY_BUF_SIZE]; }; struct tty { void (*write)(struct tty *tty); struct tty...
18.52
27
(translation_unit) "/**\n * File: tty.h\n * Author: <NAME> <<EMAIL>>\n *\n * Description: terminal info\n */\n\n#ifndef _TTY_H_\n# define _TTY_H_\n\n# define TTY_BUF_SIZE 1024\n\nstruct tty_queue\n{\n unsigned long data;\n unsigned long len;\n unsigned long head;\n char buf[TTY_BUF_SIZE];\n};\n\nstruct tty\n{\n vo...
150
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.52, "nodes": 108, "errors": 0, "source_hash": "45dac08ecf51d9b6c46b8fea8936f1c9acc3bfc088a28d4f371de945777a3c34", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,993
c
#include "src1.h" int function(int i) { return 2 * i; }
27
2
(translation_unit) "#include "src1.h"\n\nint function(int i) { return 2 * i; }\n" (preproc_include) "#include "src1.h"\n" (#include) "#include" (string_literal) ""src1.h"" (") """ (string_content) "src1.h" (") """ (function_definition) "int function(int i) { return 2 * i; }" (primitive...
27
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 27.0, "nodes": 15, "errors": 0, "source_hash": "9ec167aea2e3346a3ca3e3e116d0403a537a521babb0aab706dfe3fb37ca4e58", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,994
c
#pragma once #include <vector> namespace FontStash2 { // Atlas based on Skyline Bin Packer by <NAME> class Atlas { public: struct Node { short x, y, width; Node( int _x, int _y, int _w ) : x( (short)_x ), y( (short)_y ), width( (short)_w ) { } }; // fons__allocAtlas Atlas( int w, ...
20.74
38
(translation_unit) "ragma once\n#include <vector>\n\nnamespace FontStash2\n{\n // Atlas based on Skyline Bin Packer by <NAME>\n class Atlas\n {\n public:\n\n struct Node\n {\n short x, y, width;\n Node( int _x, int _y, int _w ) :\n x( (short)_x ),\n y( (short)_y ),\n width( (short)_w )\n { }\n };\n\n ...
320
10
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 20.74, "nodes": 201, "errors": 0, "source_hash": "47d1ba9553c95ed5645cb8ae6c4977d634b601616a493791463e70f0236716e5", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
7,995
c
#include <stdio.h> int f1(int (*f)(int)); int f2(int i); int main(void) { printf("Answer: %d\n", f1(f2)); return 0; } int f1(int (*f)(int)) { int n = 0; while ((*f)(n)) n++; return n; } int f2(int i) { return i * i + i - 12; }
16.21
14
(translation_unit) "#include <stdio.h>\n\nint f1(int (*f)(int));\nint f2(int i);\n\nint main(void) {\n printf("Answer: %d\n", f1(f2));\n return 0;\n}\n\nint f1(int (*f)(int)) {\n int n = 0;\n\n while ((*f)(n))\n n++;\n return n;\n}\n\nint f2(int i) { return i * i + i - 12; }" (preproc_include) "#include <stdi...
154
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.21, "nodes": 98, "errors": 0, "source_hash": "d237af2f6d3f9f2be0c938598d18b996b49d16c98865e764e485fe7a191063bb", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,996
c
#pragma once // Author : <NAME> (<EMAIL>) #include "eigen_tools.h" #include <list> #include <algorithm> #include <numeric> namespace gmphd { using namespace std; using namespace Eigen; template <size_t D> struct GaussianModel { GaussianModel() { clear(); m_...
38.05
277
(translation_unit) "#pragma once\n// Author : <NAME> (<EMAIL>)\n\n#include "eigen_tools.h"\n#include <list>\n#include <algorithm>\n#include <numeric>\n\nnamespace gmphd\n{\n using namespace std;\n using namespace Eigen;\n\n template <size_t D>\n struct GaussianModel\n {\n GaussianModel()\n ...
1,913
60
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 38.05, "nodes": 1116, "errors": 0, "source_hash": "9000bfc16c2e959fcb5fcd8fbdcb01905210f53911fbee4150be406a305adce5", "categorized_nodes": 807}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
7,997
c
/* * telerikPriv.h * telerik * * Created by <NAME> on 7/21/14. * Copyright (c) 2014 ___ telerik___. All rights reserved. * */ #include <CoreFoundation/CoreFoundation.h> #pragma GCC visibility push(hidden) class Ctelerik { public: CFStringRef UUID(void); }; #pragma GCC visibility pop
18.87
15
(translation_unit) "/*\n * telerikPriv.h\n * telerik\n *\n * Created by <NAME> on 7/21/14.\n * Copyright (c) 2014 ___ telerik___. All rights reserved.\n *\n */\n\n#include <CoreFoundation/CoreFoundation.h>\n\n#pragma GCC visibility push(hidden)\n\nclass Ctelerik {\n public:\n CFStringRef UUID(void);\n};\n\n#pragma...
32
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.87, "nodes": 19, "errors": 0, "source_hash": "d386802864a219a2f899636b6a44201c559059c7211fb6ee714acd353654c72b", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,998
c
/** * Copyright 2013 Yahoo! Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, sof...
32.96
47
(translation_unit) "/**\n * Copyright 2013 Yahoo! Inc.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License. You may\n * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or ...
293
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.96, "nodes": 189, "errors": 0, "source_hash": "e51cb254fdacb2ce7ea3c1897b46c21574f37400d75157ac73ae56360dfb8aa8", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,999