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
// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
36.99
95
(translation_unit) "// ======================================================================== //\n// Copyright 2009-2019 Intel Corporation //\n// //\n// Licensed under the Apache License, Version 2.0 (the "Lice...
614
42
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 36.99, "nodes": 388, "errors": 0, "source_hash": "0601f02b066644f5ae7fb147e8fa5ea82bbad20511bec23b860061fe3d4d3c7a", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,900
c
// // EFTwoSlidersAutoLayoutViewController.h // EFCircularSlider // // Created by <NAME> on 12/5/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface EFTwoSlidersAutoLayoutViewController : UIViewController @end
24.5
10
(translation_unit) "//\n// EFTwoSlidersAutoLayoutViewController.h\n// EFCircularSlider\n//\n// Created by <NAME> on 12/5/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EFTwoSlidersAutoLayoutViewController : UIViewController\n\n@end\n" (comment) "//" (comment...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.5, "nodes": 9, "errors": 0, "source_hash": "d82e550af7c08b7515e0037d28e44440a83277fada5e837c9d1a6e5e88e1c831", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
80,901
c
/* * Phoenix-RTOS * * i.MX RT Flash Configurator * * Copyright 2019 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include <stdlib.h> #include <errno.h> #include "flash_config.h" #define WINDBOND_W25Q32JV_IQ 0x4016 #define ISSI_DEV_IS25WP064A 0x7017 #define MICRO...
23.19
94
(translation_unit) "/*\n * Phoenix-RTOS\n *\n * i.MX RT Flash Configurator\n *\n * Copyright 2019 Phoenix Systems\n * Author: <NAME>\n *\n * This file is part of Phoenix-RTOS.\n *\n * %LICENSE%\n */\n\n#include <stdlib.h>\n#include <errno.h>\n\n#include "flash_config.h"\n\n#define WINDBOND_W25Q32JV_IQ 0x4016\n#define I...
575
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 23.19, "nodes": 375, "errors": 0, "source_hash": "52eef0b677da269ab895cf904a3eff8169a92f2b024092ecbc746c6d13663b42", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,902
c
#include "utils.h" char * itoa_mp(int i) // función para convertir de int a array de char { char * res = malloc(8 * sizeof(int)); sprintf(res, "%d", i); return res; }
23.29
7
(translation_unit) "#include "utils.h"\n\nchar * itoa_mp(int i) // función para convertir de int a array de char\n{\n char * res = malloc(8 * sizeof(int));\n sprintf(res, "%d", i);\n return res;\n}\n" (preproc_include) "#include "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ ...
64
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.29, "nodes": 37, "errors": 0, "source_hash": "6737983cb481e327b1d7cd9eb26a97a6433f586751cd9f9c4a076217d624f1ec", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,903
c
// // STRImgur.h // ShareToReddit // // Created by <NAME> on 01/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface STRImgur : NSObject + (void)uploadImage:(UIImage*)img progress:(void(^)(float))progress completion:(void(^)(NSURL*,NSError*))completion; @en...
27.91
11
(translation_unit) "//\n// STRImgur.h\n// ShareToReddit\n//\n// Created by <NAME> on 01/10/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface STRImgur : NSObject\n\n+ (void)uploadImage:(UIImage*)img progress:(void(^)(float))progress completion:(void(^)(N...
83
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.91, "nodes": 48, "errors": 0, "source_hash": "c56ba10b01a787f5e4c005f5eb24d9233fed22e47f839b734924b10c5c5a4dcb", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,904
c
/*! \file bcmlrd_table_count_get.c * * Get the number of valid tables for the given unit. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <sal/sal_t...
26.69
42
(translation_unit) "/*! \file bcmlrd_table_count_get.c\n *\n * Get the number of valid tables for the given unit.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserve...
188
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.69, "nodes": 114, "errors": 0, "source_hash": "f1ec98dd3946f8b89062b6aa07fccbf5958e93d1640f1d8ba44e94a40d6d6f31", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,905
c
#include "1_1.h" void stackpush(char* stack , char element , int* top) { if(*top==STACKSIZE-1) { printf("Stack is full"); return; } else{ *top+=1; *(stack+*top)=element; } } char stackpeek(char* stack , int* top) { return *(stack+*top); } void stackpop(char* stack ...
15.36
22
(translation_unit) "#include "1_1.h"\n\nvoid stackpush(char* stack , char element , int* top)\n{\n if(*top==STACKSIZE-1)\n {\n printf("Stack is full");\n return;\n }\n else{\n *top+=1;\n *(stack+*top)=element;\n }\n}\nchar stackpeek(char* stack , int* top)\n{\n return *(stack...
159
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.36, "nodes": 103, "errors": 0, "source_hash": "829f628b55f085e9aea20f2ac2870eb4554cd15d7a207ba1f7dc3573ca893250", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,906
c
/** * Raise your ARM 2015 sample code http://raiseyourarm.com/ * Author: Pay it forward club * http://www.payitforward.edu.vn * version 0.0.1 */ /** * @file qei.h * @brief QEI module controller */ #ifndef QEI_QEI_H_ #define QEI_QEI_H_ #define MOTOR_SELECT_LEFT 1 #define MOTOR_SELECT_RIGHT 0 extern void qei_...
24.09
22
(translation_unit) "/**\n * Raise your ARM 2015 sample code http://raiseyourarm.com/\n * Author: Pay it forward club\n * http://www.payitforward.edu.vn\n * version 0.0.1\n */\n\n/**\n * @file qei.h\n * @brief QEI module controller\n */\n\n#ifndef QEI_QEI_H_\n#define QEI_QEI_H_\n\n#define MOTOR_SELECT_LEFT 1\n#define MO...
89
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.09, "nodes": 66, "errors": 0, "source_hash": "6292809653e6210436a1587fa2ee265dbd1d1025fb3ec7a82e44e2fb1d0915f0", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,907
c
#ifndef gen_PhotosInterface_PhotosppInterface_h #define gen_PhotosInterface_PhotosppInterface_h // #include "HepPDT/ParticleDataTable.hh" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include "HepMC/SimpleV...
32.3
40
(translation_unit) "#ifndef gen_PhotosInterface_PhotosppInterface_h\n#define gen_PhotosInterface_PhotosppInterface_h\n\n// #include "HepPDT/ParticleDataTable.hh"\n\n#include "FWCore/ParameterSet/interface/ParameterSet.h"\n#include "FWCore/Framework/interface/ESHandle.h"\n#include "FWCore/Framework/interface/EventSetup....
279
10
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.3, "nodes": 154, "errors": 0, "source_hash": "d147709cde874973bf98194e68e3a895b4d7231237c6d82513dc2d6c8647167a", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,908
c
#include "main.h" /* * Test if the element α is normal in F_{p^d}/F_p. * * For that purpose, we will check if Q = X^d - 1 and * P are relatively primes. P is a polynomial that * depends only on α. * * P = \sum_{i=0}^{d-1} α^{p^{i-1}}X^i * */ int is_normal(const fq_nmod_t elem, const fq_nmod_ctx_t field) { ...
27.85
53
(translation_unit) "#include "main.h"\n\n/*\n * Test if the element α is normal in F_{p^d}/F_p. \n *\n * For that purpose, we will check if Q = X^d - 1 and\n * P are relatively primes. P is a polynomial that\n * depends only on α.\n *\n * P = \sum_{i=0}^{d-1} α^{p^{i-1}}X^i\n *\n */\n\nint is_normal(const fq_nmod_t el...
307
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.85, "nodes": 153, "errors": 0, "source_hash": "c2c42c98449855489cfa178db81b6f586a47e408f812ab1c4a849210fe8f4dea", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,909
c
#ifndef W2C2_LEB128_TEST_H #define W2C2_LEB128_TEST_H void testReadU32LEB128(void); void testReadI32LEB128(void); #endif /* W2C2_LEB128_TEST_H */
19.86
7
(translation_unit) "#ifndef W2C2_LEB128_TEST_H\n#define W2C2_LEB128_TEST_H\n\nvoid\ntestReadU32LEB128(void);\n\nvoid\ntestReadI32LEB128(void);\n\n#endif /* W2C2_LEB128_TEST_H */\n" (preproc_ifdef) "#ifndef W2C2_LEB128_TEST_H\n#define W2C2_LEB128_TEST_H\n\nvoid\ntestReadU32LEB128(void);\n\nvoid\ntestReadI32LEB128(void...
29
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.86, "nodes": 21, "errors": 0, "source_hash": "1298cf8754cefc92a20b6863cd79214b9623abbebb531c1917c7df36cee187f5", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
80,910
c
// // EETabBarController.h // iOSBlogReader // // Created by everettjf on 16/4/27. // Copyright © 2016年 everettjf. All rights reserved. // #import <UIKit/UIKit.h> @interface EETabBarController : UITabBarController @end
21.3
10
(translation_unit) "//\n// EETabBarController.h\n// iOSBlogReader\n//\n// Created by everettjf on 16/4/27.\n// Copyright © 2016年 everettjf. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EETabBarController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// EETabBarController.h" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.3, "nodes": 10, "errors": 0, "source_hash": "555830ddd74560725ff4225f6b39c8d6bd57154229fb6cb3c918fdad86d59977", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
80,911
c
#pragma once class Heap { private: vector<Node*> heap; public: Heap(); ~Heap(); void Insert(Node* node); void UpdateUpper(); Node* DeleteRoot(); void UpdateLower(); void Swap(int n1, int n2); void Clear() { heap.clear(); } bool Empty() { return heap.empty(); } };
16.12
16
(translation_unit) "#pragma once\n\nclass Heap\n{\nprivate:\n vector<Node*> heap;\n\npublic:\n Heap();\n ~Heap();\n\n void Insert(Node* node);\n void UpdateUpper();\n\n Node* DeleteRoot();\n void UpdateLower();\n\n void Swap(int n1, int n2);\n\n void Clear() { heap.clear(); }\n bool Empty() { return heap.empty(); }\n};...
140
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.12, "nodes": 83, "errors": 0, "source_hash": "e08f767a267c91f9177dd7c0a2f1a1ebc878677097c844f939abc9d21f80fa54", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,912
c
// // SettingSliderCell.h // SettingsSample // // Created by <NAME> on 27.01.17. // Copyright 2017 <NAME>. All rights reserved. // #import "SettingTitleCell.h" @interface SettingSliderCell : SettingTitleCell @property (nonatomic, weak) IBOutlet UILabel *maxLabel; @property (nonatomic, weak) IBOutlet UILabel *min...
28.54
13
(translation_unit) "//\n// SettingSliderCell.h\n// SettingsSample\n//\n// Created by <NAME> on 27.01.17.\n// Copyright 2017 <NAME>. All rights reserved.\n//\n\n#import "SettingTitleCell.h"\n\n@interface SettingSliderCell : SettingTitleCell\n\n@property (nonatomic, weak) IBOutlet UILabel *maxLabel;\n@property (nonat...
78
13
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.54, "nodes": 54, "errors": 0, "source_hash": "0d6c8b5dd2c77f3b64a5405f8fb27eea317f27de2f7f5dd68b46a97d58bd7109", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
80,913
c
/*========================================================================= medInria Copyright (c) INRIA 2013 - 2014. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
32.96
27
(translation_unit) "/*=========================================================================\n\n medInria\n\n Copyright (c) INRIA 2013 - 2014. All rights reserved.\n See LICENSE.txt for details.\n \n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNES...
105
3
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.96, "nodes": 64, "errors": 0, "source_hash": "83dcf9a1a50ea8ae66093ddd5be3ee482d67b19070568c5ac9347649f2e730d0", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,914
c
/* * Copyright (C) 2015-2020 "IoT.bzh" * Author <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...
24.36
181
(translation_unit) "/*\n * Copyright (C) 2015-2020 "IoT.bzh"\n * Author <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/LICEN...
1,069
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 24.36, "nodes": 617, "errors": 0, "source_hash": "10e7ac2e25b70f7438db73ffe3fbf41afd9c0a46d5b4851cbeac944719a8a27c", "categorized_nodes": 443}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
80,915
c
#pragma once #include <catch2/catch_test_macros.hpp> #include "../src/utils.h" #include "../src/ioutils.h"
25.75
4
(translation_unit) "#pragma once\n\n#include <catch2/catch_test_macros.hpp>\n\n#include "../src/utils.h"\n#include "../src/ioutils.h"\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <catch2/catch_test_macros.hpp>\n" (#include) "#include...
19
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.75, "nodes": 12, "errors": 0, "source_hash": "f32b3e300cf9daedd7d02d5ecbbcfe536e6b7e2ede741ff410096d7acbb95a16", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,916
c
#pragma once #include "quantum.h" #define LAYOUT_numbrero_numpad( \ K00, K01, K02, K03, K04, \ K10, K11, K12, K13, \ K20, K21, K22, K23, K14, \ K30, K31, K32, K33, \ K41, K43, K34 \ ) { \ { K00, K01, K02, K03, K04 }, \ { K10, K11, K12, K13, K14 }, \ { K20, K2...
51.44
16
(translation_unit) "#pragma once\n\n#include "quantum.h"\n\n#define LAYOUT_numbrero_numpad( \\n K00, K01, K02, K03, K04, \\n K10, K11, K12, K13, \\n K20, K21, K22, K23, K14, \\n K30, K31, K32, K33, \\n K41, K43, K34 \\n) { \\n { K00, K01, K02, K03, K04 }, \\n { K10, K11, K12, ...
112
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 51.44, "nodes": 61, "errors": 0, "source_hash": "897c89235ef34a2ffa0d67d5b0c2c7d7c4760ee52e153701a33531ef0ab66eae", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,917
c
#pragma once #include <Core/Game.h> #include <tchar.h> namespace Osm { class Profiler : public Component<CGame> { public: Profiler(CGame& engine); void StartFrame(); void EndFrame(); uint StartSection(const std::string& name); void EndSection(uint sectionId); double GetTimePerFrame() const { return _timeP...
19.3
33
(translation_unit) "#pragma once\n#include <Core/Game.h>\n#include <tchar.h>\n\nnamespace Osm\n{\n\nclass Profiler : public Component<CGame>\n{\npublic:\n Profiler(CGame& engine);\n\n void StartFrame();\n\n void EndFrame();\n\n uint StartSection(const std::string& name);\n\n void EndSection(uint sectionId);\n\n double...
196
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 19.3, "nodes": 120, "errors": 0, "source_hash": "f50d10f28955df6125a2fdfebf72680751cc6b487da378fc00fec70af3e09bd3", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,918
c
// // RootViewController.h // BubbleBlitz // // Created by <NAME> on 12/31/10. // Copyright Student: UC Merced 2010. All rights reserved. // #import <UIKit/UIKit.h> @interface RootViewController : UIViewController { } @end
18
12
(translation_unit) "//\n// RootViewController.h\n// BubbleBlitz\n//\n// Created by <NAME> on 12/31/10.\n// Copyright Student: UC Merced 2010. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface RootViewController : UIViewController {\n\n}\n\n@end\n" (comment) "//" (comment) "// RootViewControll...
27
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.0, "nodes": 12, "errors": 0, "source_hash": "330141f272e444b398c2672e1ca19bd392b23b6dec0d3aef834e07674d991325", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
80,919
c
/* "Copyright [2019] <Tych0n>" [legal/copyright] */ #ifndef IMPLICIT_TOPNC_H_ #define IMPLICIT_TOPNC_H_ extern void fargsort_c(float A[], int n_row, int m_row, int m_cols, int ktop, int B[]); #endif // IMPLICIT_TOPNC_H_
43.4
5
(translation_unit) "/* "Copyright [2019] <Tych0n>" [legal/copyright] */\n#ifndef IMPLICIT_TOPNC_H_\n#define IMPLICIT_TOPNC_H_\n\nextern void fargsort_c(float A[], int n_row, int m_row, int m_cols, int ktop, int B[]);\n\n#endif // IMPLICIT_TOPNC_H_\n" (comment) "/* "Copyright [2019] <Tych0n>" [legal/copyright] */" ...
49
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 43.4, "nodes": 34, "errors": 0, "source_hash": "f35607f1ed69eeec0de5317055272152b7665e6f63dde25268eb69a334f5a06d", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IM...
80,920
c
/* * VersionChecksumBytes.c * * Created on: 03/10/2012 * Created by: <NAME> * Copyright (c) 2012 Bitcoin Project Team */ #include "VersionChecksumBytes.h" #include "../BigInt/BigInt.h" #include "../Base58/Base58.h" #include <stdlib.h> #include <stdint.h> #include <assert.h> VersionChecksumBytes * createNewV...
32.43
119
(translation_unit) "/*\n * VersionChecksumBytes.c\n *\n * Created on: 03/10/2012\n * Created by: <NAME>\n * Copyright (c) 2012 Bitcoin Project Team\n */\n\n#include "VersionChecksumBytes.h"\n#include "../BigInt/BigInt.h"\n#include "../Base58/Base58.h"\n#include <stdlib.h>\n#include <stdint.h>\n#include <assert.h>\n\...
1,066
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 32.43, "nodes": 626, "errors": 0, "source_hash": "4af2f943794560ca245e2e3d1f385889f974d902a8e763cb8f856d21a02dd996", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,921
c
/* * Copyright (c) 2007, <NAME>, <NAME>, <NAME>, * <NAME>. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * ...
27.41
167
(translation_unit) "/*\n * Copyright (c) 2007, <NAME>, <NAME>, <NAME>,\n * <NAME>.\n *\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain ...
636
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 27.41, "nodes": 367, "errors": 0, "source_hash": "d8637ecc8af0e18210f468b9c5d94529faccd896222af78816bd94003445711d", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
80,922
c
/* $NetBSD: tlsb.c,v 1.17 1999/02/23 03:20:04 thorpej Exp $ */ /* * Copyright (c) 1997 by <NAME> * NASA AMES Research Center. * All rights reserved. * * Based in part upon a prototype version by <NAME> * Copyright (c) 1996, 1998 by <NAME>. * * Redistribution and use in source and binary forms, with or without ...
31.2
245
(translation_unit) "/* $NetBSD: tlsb.c,v 1.17 1999/02/23 03:20:04 thorpej Exp $ */\n/*\n * Copyright (c) 1997 by <NAME>\n * NASA AMES Research Center.\n * All rights reserved.\n *\n * Based in part upon a prototype version by <NAME>\n * Copyright (c) 1996, 1998 by <NAME>.\n *\n * Redistribution and use in source and bi...
1,310
4
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 31.2, "nodes": 774, "errors": 0, "source_hash": "00b43b595f49d4b5cdc5dcb6b81f561350e97e8933464b43876223412da132f7", "categorized_nodes": 575}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,923
c
#include<stdio.h> int main() { int marks[50],count = 0; printf("Enter marks between 0 -20 \n"); for (int i = 0; i<50; i++) { scanf("%d",&marks[i]); } for(int i = 0;i<=20;i++) { count = 0; for(int j = 0;j<50;j++) { if(marks[j] == i) ...
19.68
22
(translation_unit) "#include<stdio.h> \nint main() \n{ \n int marks[50],count = 0; \n printf("Enter marks between 0 -20 \n"); \n for (int i = 0; i<50; i++) \n { \n scanf("%d",&marks[i]); \n } \n for(int i = 0;i<=20;i++) \n { \n count = 0; \n for(int j = 0;j<50;j++) \n { ...
166
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.68, "nodes": 93, "errors": 0, "source_hash": "2f12251b2d025a89392f88301fcdd16568a59071436011c2fc76dd3a2243d556", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,924
c
#pragma once #include <functional> #include <set> #include <list> // Invokable class Invokable : public CWnd { DECLARE_DYNAMIC(Invokable) public: Invokable(); virtual ~Invokable(); bool Invoke(const std::function<void(bool)> & f); protected: afx_msg LRESULT OnInvoke(WPARAM wParam, LPARAM lParam); DECLARE_MES...
20.5
24
(translation_unit) "#pragma once\n\n#include <functional>\n#include <set>\n#include <list>\n\n// Invokable\n\nclass Invokable : public CWnd\n{\n DECLARE_DYNAMIC(Invokable)\n\npublic:\n Invokable();\n virtual ~Invokable();\n bool Invoke(const std::function<void(bool)> & f);\n\nprotected:\n afx_msg LRESULT OnInvoke(WPARA...
173
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.5, "nodes": 107, "errors": 0, "source_hash": "21c0dc653d4f9058c52707fdd2d4b8f04ee04ea06c2be29a8621335f8a6f28b3", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,925
c
/* * Modified from * http://stackoverflow.com/a/11044337/2206385 */ #include <string> #include <algorithm> // find struct Uri { public: std::string QueryString, Path, Protocol, Host, Port; static Uri Parse(const std::string &uri) { Uri result; typedef std::string::const_iterator it...
33.27
62
(translation_unit) "/*\n * Modified from\n * http://stackoverflow.com/a/11044337/2206385\n */\n#include <string>\n#include <algorithm> // find\n\nstruct Uri {\n public:\n std::string QueryString, Path, Protocol, Host, Port;\n\n static Uri Parse(const std::string &uri) {\n Uri result;\n\n type...
583
61
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.27, "nodes": 333, "errors": 0, "source_hash": "da0f69a3c370e1db2e499ce3e85c252ffb759da0f0ce8ed88a3e346f186f69ae", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,926
c
// // ImageStore.h // iNaturalist // // Created by <NAME> on 2/20/12. // Copyright (c) 2012 iNaturalist. All rights reserved. // #import <Foundation/Foundation.h> #import <AssetsLibrary/AssetsLibrary.h> enum { ImageStoreOriginalSize = 0, ImageStoreSquareSize = 1, ImageStoreSmallSize = 2, ImageStor...
37.05
37
(translation_unit) "//\n// ImageStore.h\n// iNaturalist\n//\n// Created by <NAME> on 2/20/12.\n// Copyright (c) 2012 iNaturalist. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <AssetsLibrary/AssetsLibrary.h>\n\nenum {\n ImageStoreOriginalSize = 0,\n ImageStoreSquareSize = 1,\n Imag...
404
39
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.05, "nodes": 265, "errors": 0, "source_hash": "b2b5d1855b67d0aaa59c1588822a432418b84027cf2e02a745d41f23030d7bf3", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,927
c
#pragma once #include <Config/ConfigProps.h> #include <Config/EnvironmentType.h> #include <Common/Util/BitUtil.h> #include <Common/Util/FileUtil.h> #include <json/json.h> #include <cstdint> #include <string> class WalletConfig { public: WalletConfig(const Json::Value& json, const EEnvironmentType environment, const ...
35.72
58
(translation_unit) "#pragma once\n\n#include <Config/ConfigProps.h>\n#include <Config/EnvironmentType.h>\n#include <Common/Util/BitUtil.h>\n#include <Common/Util/FileUtil.h>\n#include <json/json.h>\n#include <cstdint>\n#include <string>\n\nclass WalletConfig\n{\npublic:\n WalletConfig(const Json::Value& json, const EEn...
581
36
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 35.72, "nodes": 310, "errors": 0, "source_hash": "493b65d3fbbc8efb73410e7f9c58e3b07af1dd7021037d2444d14b791f6da32c", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,928
c
/* // Copyright (c) 2018-2019 Intel 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 l...
29.64
217
(translation_unit) "/*\n// Copyright (c) 2018-2019 Intel Corporation\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// Un...
1,581
0
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 29.64, "nodes": 928, "errors": 0, "source_hash": "de3d90e008128b8ba6c9e90ad0e185dd33cdd6c945c1ab2e84aa1e4cbfc023a3", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
80,929
c
// TetiSoft: To specify which modules you need, // insert the following in your source file and uncomment as needed: /* //#define FT_USE_AUTOHINT // autohinter //#define FT_USE_RASTER // monochrome rasterizer //#define FT_USE_SMOOTH // anti-aliasing rasterizer //#define FT_USE_TT // t...
25.22
97
(translation_unit) "// TetiSoft: To specify which modules you need,\n// insert the following in your source file and uncomment as needed:\n\n/*\n//#define FT_USE_AUTOHINT // autohinter\n//#define FT_USE_RASTER // monochrome rasterizer\n//#define FT_USE_SMOOTH // anti-aliasing rasterizer\n//#define...
262
1
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 25.22, "nodes": 204, "errors": 0, "source_hash": "b3425a2a0e54d7f5770d54f6415a4c2704ac7e50ff859896fd5e6b0b1b5ab057", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
80,930
c
// // THGuideViewController.h // THMobileLibrary // // Created by 天海网络 on 2017/6/7. // Copyright © 2017年 C-bin. All rights reserved. // #import <UIKit/UIKit.h> #import "THRootViewController.h" @interface THGuideViewController : THRootViewController @property (copy, nonatomic) NSString *SchoolIntro; //本馆简介 @prop...
34.12
17
(translation_unit) "//\n// THGuideViewController.h\n// THMobileLibrary\n//\n// Created by 天海网络 on 2017/6/7.\n// Copyright © 2017年 C-bin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "THRootViewController.h"\n\n@interface THGuideViewController : THRootViewController\n@property (copy, nonatomic) NSSt...
137
26
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.12, "nodes": 100, "errors": 0, "source_hash": "819bb4d0262f49051161d8b9c3253478da3689bacbe8c2f7bd59c219ab86e450", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKi...
80,931
c
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. #pragma once #include "GameFramework/GameModeBase.h" #include "BeatRacerGameMode.generated.h" UCLASS(minimalapi) class ABeatRacerGameMode : public AGameModeBase { GENERATED_BODY() public: ABeatRacerGameMode(); };
24.09
11
(translation_unit) "// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.\n#pragma once\n#include "GameFramework/GameModeBase.h"\n#include "BeatRacerGameMode.generated.h"\n\nUCLASS(minimalapi)\nclass ABeatRacerGameMode : public AGameModeBase\n{\n GENERATED_BODY()\n\npublic:\n ABeatRacerGameMode();\n};\n\n\n\n" ...
51
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.09, "nodes": 25, "errors": 0, "source_hash": "9a92e255ce9017266ab41269cbb4d06bb798786db761289a98248c53808bd605", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,932
c
/* radare - Copyright 2011-2019 pancake<nop<EMAIL>> */ /* $OpenBSD: magic.c,v 1.8 2009/10/27 23:59:37 deraadt Exp $ */ #include <r_userconf.h> #include <r_magic.h> R_LIB_VERSION (r_magic); #ifdef _MSC_VER # include <io.h> # include <sys\stat.h> # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) # define S_ISDIR(m) (((m...
24.82
268
(translation_unit) "/* radare - Copyright 2011-2019 pancake<nop<EMAIL>> */\n/* $OpenBSD: magic.c,v 1.8 2009/10/27 23:59:37 deraadt Exp $ */\n\n#include <r_userconf.h>\n#include <r_magic.h>\n\nR_LIB_VERSION (r_magic);\n\n#ifdef _MSC_VER\n# include <io.h>\n# include <sys\stat.h>\n# define S_ISREG(m) (((m) & S_IFMT) == S_...
2,499
25
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 24.82, "nodes": 1531, "errors": 0, "source_hash": "d946fd7fc193c1ba0ac9b5b5ffa2cd19a66edfcbf680d4f568ad4f7773d02fb5", "categorized_nodes": 1050}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
80,933
c
/* * Binary object handling gear. Shit simple. * * <NAME>, <EMAIL> * * 1992 * * $Id: udb_obj.c 1.1 02/01/03 00:59:33-00:00 twouters@ $ */ #include "autoconf.h" #include "config.h" #include "externs.h" #include "udb.h" #include "udb_defs.h" #ifndef STANDALONE extern void FDECL(dump_database_internal, (int)...
25.57
125
(translation_unit) "/*\n * Binary object handling gear. Shit simple.\n * \n * <NAME>, <EMAIL>\n * \n * 1992\n * \n * $Id: udb_obj.c 1.1 02/01/03 00:59:33-00:00 twouters@ $\n */\n\n#include "autoconf.h"\n#include "config.h"\n#include "externs.h"\n#include "udb.h"\n#include "udb_defs.h"\n\n#ifndef STANDALONE\nextern void...
1,036
2
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 25.57, "nodes": 606, "errors": 0, "source_hash": "d1fe54704c86a540bb233d0fed2e9b049583a3a2a7c24a85c7513ad587dd4bff", "categorized_nodes": 413}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,934
c
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1997 - 1999 // // File: security.h // //-------------------------------------------------------------------------- #ifndef __security_h #define __security_...
30.81
64
(translation_unit) "//+------------------------------------------------------------------------- \n// \n// Microsoft Windows \n// \n// Copyright (C) Microsoft Corporation, 1997 - 1999 \n// \n// File: security.h \n// \n//-------------------------------------------------------------------------- \n \n#ifndef __s...
322
7
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 30.81, "nodes": 200, "errors": 0, "source_hash": "f3e49ce442efadd028ea86b8a2fc2de8ad86e16c137d4e4aef5b858232cdfa0d", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,935
c
#ifndef HASHCHECKER_H #define HASHCHECKER_H #include <QList> #include <QRunnable> #include <QThread> #include <functional> #include "Json/Entity.hpp" #ifdef TARGET_UNIX #define TARGETSTR "linux" #elif TARGET_WINDOWS #define TARGETSTR "windows" #elif TARGET_MACOS #define TARGETSTR "macos" #endif class HashChecker ...
25.35
34
(translation_unit) "#ifndef HASHCHECKER_H\n#define HASHCHECKER_H\n\n#include <QList>\n#include <QRunnable>\n#include <QThread>\n#include <functional>\n#include "Json/Entity.hpp"\n\n#ifdef TARGET_UNIX\n #define TARGETSTR "linux"\n#elif TARGET_WINDOWS\n #define TARGETSTR "windows"\n#elif TARGET_MACOS\n #define TARGETSTR ...
235
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.35, "nodes": 159, "errors": 0, "source_hash": "2419e8cdf7f43cab057d03f8657f475fd26b458e505a7f4e2df95faa5641c23b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,936
c
#pragma once #include "base.h" struct Vector { I capacity; I size; I data[1]; }; #define V_IDX(vector, idx) \ ((vector)->data[idx]) struct Vector *vector_get(); struct Vector *vector_get_reserve(I capacity); void vector_release(struct Vector *vector); I vector_size(struct Vector *vector); void vecto...
27.59
17
(translation_unit) "#pragma once\n\n#include "base.h"\n\nstruct Vector {\n I capacity;\n I size;\n I data[1];\n};\n\n#define V_IDX(vector, idx) \\n ((vector)->data[idx])\n\nstruct Vector *vector_get();\nstruct Vector *vector_get_reserve(I capacity);\nvoid vector_release(struct Vector *vector);\nI vector_siz...
172
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.59, "nodes": 130, "errors": 0, "source_hash": "bb4548169c2be282c286fc686cc31ff690d7b48a2bdf6bd209e61176651cf0f8", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,937
c
#pragma once /* Copyright (c) 2021 [<NAME>] - IWindowController.h * * This file contains the interface for a WindowController. * **/ #include <functional> #include <memory> #include "WindowController.h" class WindowModel; class IWindowController { public: /** * Sets up the layout and sets up curses in ...
31.2
86
(translation_unit) "#pragma once\n\n/* Copyright (c) 2021 [<NAME>] - IWindowController.h\n *\n * This file contains the interface for a WindowController.\n *\n **/\n\n#include <functional>\n#include <memory>\n\n#include "WindowController.h"\n\nclass WindowModel;\nclass IWindowController\n{\npublic:\n /**\n * Set...
301
15
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 31.2, "nodes": 199, "errors": 0, "source_hash": "662b23a310a450789d79b10d783db252469359035ee175eea106a62ff593f9cb", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,938
c
#include <pthread.h> #include <errno.h> #include <sys/syscalls.h> int pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) { // XXX: do something with the attributes uint64_t e = 0; sc_do_locking_create_mutex(mutex, &e); return e; } int pthread_mutex_destroy (pthread_mutex_t ...
24.75
64
(translation_unit) "#include <pthread.h>\n#include <errno.h>\n\n#include <sys/syscalls.h>\n\nint pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) {\n // XXX: do something with the attributes\n\n uint64_t e = 0;\n sc_do_locking_create_mutex(mutex, &e);\n return e;\n}\n\nint pthrea...
465
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 24.75, "nodes": 291, "errors": 0, "source_hash": "413459d63b6ec3e7d60bc562cd25b3c39a3f7bbb2389466500403b9ac6647d8f", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,939
c
/* * Copyright (c) 2021 Synopsys. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_ARCH_ARC_CORE_MPU_ARC_MPU_V6_INTERNAL_H_ #define ZEPHYR_ARCH_ARC_CORE_MPU_ARC_MPU_V6_INTERNAL_H_ #define AUX_MPU_EN_BANK_MASK BIT(0) #define AUX_MPU_EN_IC BIT(12) #define AUX_MPU_EN_DC BIT(13) #define AUX_MPU_EN_ENABLE ...
36.79
179
(translation_unit) "/*\n * Copyright (c) 2021 Synopsys.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n#ifndef ZEPHYR_ARCH_ARC_CORE_MPU_ARC_MPU_V6_INTERNAL_H_\n#define ZEPHYR_ARCH_ARC_CORE_MPU_ARC_MPU_V6_INTERNAL_H_\n\n#define AUX_MPU_EN_BANK_MASK BIT(0)\n#define AUX_MPU_EN_IC BIT(12)\n#define AUX_MPU_EN_DC BIT(13...
844
0
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 36.79, "nodes": 555, "errors": 0, "source_hash": "a748c62c48a0930fe5884906c2009602ff91eab82a89df5c2f93523f382f1964", "categorized_nodes": 371}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,940
c
#include <wx/wx.h> #include "AboutDialog.h" enum WinLine { H_1, H_2, H_3, V_1, V_2, V_3, D_1, D_2 }; class TicTacToe : public wxFrame { public: TicTacToe(const wxString& title); void OnClick(wxCommandEvent& event); void OnNewGame(wxCommandEvent& event); void OnAbout(wxCommandEv...
20.81
69
(translation_unit) "#include <wx/wx.h>\n#include "AboutDialog.h"\n\nenum WinLine\n{\n H_1,\n H_2,\n H_3,\n V_1,\n V_2,\n V_3,\n D_1,\n D_2\n};\n\nclass TicTacToe : public wxFrame\n{\npublic:\n TicTacToe(const wxString& title);\n void OnClick(wxCommandEvent& event);\n void OnNewGame(wxCommandE...
540
7
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 20.81, "nodes": 361, "errors": 0, "source_hash": "4a263119923730c051fdabed30cbe9bf0b46b32127590e6aa2ee3c9003fc003f", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,941
c
/* * params_test.h * * Created on: May 26, 2013 * Author: petera */ #ifndef PARAMS_TEST_H_ #define PARAMS_TEST_H_ //////////////// TEST PARAMS //////////////// // default test total emulated spi flash size #define PHYS_FLASH_SIZE (16*1024*1024) // default test spiffs file system size #define SPIFFS_...
35.31
54
(translation_unit) "/*\n * params_test.h\n *\n * Created on: May 26, 2013\n * Author: petera\n */\n\n#ifndef PARAMS_TEST_H_\n#define PARAMS_TEST_H_\n\n//////////////// TEST PARAMS ////////////////\n\n// default test total emulated spi flash size\n#define PHYS_FLASH_SIZE (16*1024*1024)\n// default test spiff...
200
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 35.31, "nodes": 143, "errors": 0, "source_hash": "cfe8209f2cf439ec8ba8cd0f6a9d81340b333626839f55beae89fd17f1807eff", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,942
c
#ifndef __SYSUTL_H__ #define __SYSUTL_H__ #include <time.h> #include <stdint.h> #include <stdio.h> #include <string> #include <vector> #include <map> #include "base.h" class sys_utl { public: static int open_tun_mq_devivce(std::string & dev_name,int request_queues,std::vector<fd_handle_t> & que...
33.83
24
(translation_unit) "#ifndef __SYSUTL_H__ \n#define __SYSUTL_H__ \n \n#include <time.h> \n#include <stdint.h> \n#include <stdio.h> \n#include <string> \n#include <vector> \n#include <map> \n \n#include "base.h" \n \nclass sys_utl \n{ \npublic: \n static int open_tun_mq_devivce(std::string & dev_name,int request_qu...
203
7
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.83, "nodes": 126, "errors": 0, "source_hash": "1b8e28ed2ffa1ee2b50c4dddf259195f57ab89cb8dd57b1e3f09cb8d9cc7855b", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,943
c
#import <Foundation/Foundation.h> @class XMPPStream; @class XMPPJID; @class XMPPUser; @class XMPPResource; @class XMPPIQ; @class XMPPMessage; @class XMPPPresence; @class MulticastDelegate; #if !TARGET_OS_IPHONE @class SCNotificationManager; #endif @interface XMPPClient : NSObject { MulticastDelegate *multicastDel...
31.83
118
(ERROR) "#import <Foundation/Foundation.h>\n\n@class XMPPStream;\n@class XMPPJID;\n@class XMPPUser;\n@class XMPPResource;\n@class XMPPIQ;\n@class XMPPMessage;\n@class XMPPPresence;\n@class MulticastDelegate;\n\n#if !TARGET_OS_IPHONE\n @class SCNotificationManager;\n#endif\n\n@interface XMPPClient : NSObject\n{\n Multi...
1,142
53
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 31.83, "nodes": 683, "errors": 0, "source_hash": "b67a190494636f084321a391f4ee54c3e49b48ffcf88ad244d559c51821954c6", "categorized_nodes": 387}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#import <Foundation/Foun...
80,944
c
/* * Configuration control preamble ********************************************* * * PROJECT: C++ Library * * TITLE: Data Tip window (aka. enhanced Tooltips) * FILENAME: tfxdatatip.h * * CREATED: 10 April 1997 * ORIGINATOR: <NAME> * * (c) Copyright 1997 * ...
29.02
160
(translation_unit) "/*\n* Configuration control preamble *********************************************\n*\n* PROJECT: C++ Library\n*\n* TITLE: Data Tip window (aka. enhanced Tooltips)\n* FILENAME: tfxdatatip.h\n*\n* CREATED: 10 April 1997\n* ORIGINATOR: <NAME>\n*\n* ...
518
17
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 29.02, "nodes": 315, "errors": 0, "source_hash": "60d0dc711500a208589c2e73cbdda96f710016e0a16e4202c54091e88e58e6dd", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,945
c
// // AFBlipVideoPlayer.h // Blips // // Created by <NAME> on 2014-07-05. // Copyright (c) 2014 AF-Apps. All rights reserved. // #import "AFBlipVideoViewControllerMediatorStatics.h" #include <AVFoundation/AVFoundation.h> @class AFBlipVideoPlayer; @protocol AFBlipVideoPlayerDelegate <NSObject> @required - (NSURL...
39.22
36
(translation_unit) "//\n// AFBlipVideoPlayer.h\n// Blips\n//\n// Created by <NAME> on 2014-07-05.\n// Copyright (c) 2014 AF-Apps. All rights reserved.\n//\n\n#import "AFBlipVideoViewControllerMediatorStatics.h"\n#include <AVFoundation/AVFoundation.h>\n\n@class AFBlipVideoPlayer;\n\n@protocol AFBlipVideoPlayerDelega...
288
31
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 39.22, "nodes": 174, "errors": 0, "source_hash": "13f01d310f40eb23bc498fdb94e6a483cde0e33efbf7980cf216f3b23898035b", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,946
c
#pragma once #include <cstddef> #include <cstdint> #include <stdexcept> #include "image.h" #include "geometry.h" namespace dpfb { class FontRendererError : public std::runtime_error { public: using runtime_error::runtime_error; }; enum class Hinting { normal, light }; struct FontRendererArgs { ...
24.01
87
(translation_unit) "#pragma once\n\n#include <cstddef>\n#include <cstdint>\n#include <stdexcept>\n\n#include "image.h"\n#include "geometry.h"\n\n\nnamespace dpfb {\n\n\nclass FontRendererError : public std::runtime_error {\npublic:\n using runtime_error::runtime_error;\n};\n\n\nenum class Hinting {\n normal,\n ...
543
23
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 24.01, "nodes": 323, "errors": 0, "source_hash": "30845a6bb571fd06966655886243b55f07e7f77e47ab2155761cd97279d3ba03", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,947
c
/* BEGIN_TEST_DATA f: main ret: int args: int input: 12 output: 9 error: "" filename: "struct/basic_copy" END_TEST_DATA */ struct X { float d = 12.0f; int x = 9; double f = 16.0; }; X x; void change(X obj) { obj.x = 5; } int main(int input) { change(x); return x.x; }
9.27
30
(translation_unit) "/*\nBEGIN_TEST_DATA\n f: main\n ret: int\n args: int\n input: 12\n output: 9\n error: ""\n filename: "struct/basic_copy"\nEND_TEST_DATA\n*/\n\nstruct X\n{\n \n float d = 12.0f;\n int x = 9;\n double f = 16.0;\n};\n\nX x;\n\n\nvoid change(X obj)\n{\n obj.x = 5;\n}\n\nint main(in...
84
3
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 9.27, "nodes": 54, "errors": 0, "source_hash": "b62eed196da65edbc66592f0f8e076b3475ef64c71cd07b8555630fd7385c0b0", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct...
80,948
c
/* $OpenBSD: exec_aout.c,v 1.2 2006/05/20 22:40:46 miod Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
28.71
154
(translation_unit) "/* $OpenBSD: exec_aout.c,v 1.2 2006/05/20 22:40:46 miod Exp $ */\n\n/*-\n * Copyright (c) 1982, 1986, 1990, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided ...
886
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 28.71, "nodes": 535, "errors": 0, "source_hash": "fac7d7d8b6098afd55e0beaec4db2ce66c913671125d6e78ba5bf28e5ab8c72b", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,949
c
// SPDX-License-Identifier: BSD-2-Clause // This code is part of the sfizz library and is licensed under a BSD 2-clause // license. You should have receive a LICENSE.md file along with the code. // If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz #pragma once #include "SfizzVstController.h" ...
39.24
66
(translation_unit) "// SPDX-License-Identifier: BSD-2-Clause\n\n// This code is part of the sfizz library and is licensed under a BSD 2-clause\n// license. You should have receive a LICENSE.md file along with the code.\n// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz\n\n#pragma once\n#incl...
610
30
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 39.24, "nodes": 388, "errors": 0, "source_hash": "44c331b17b05bd382bcdfdb5aaa0ac49632dc82a5d4976c1480da2dc5cec2548", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,950
c
/* * File Tree Walking EntropySource * (C) 1999-2008 <NAME> * * Distributed under the terms of the Botan license */ #ifndef BOTAN_ENTROPY_SRC_FTW_H__ #define BOTAN_ENTROPY_SRC_FTW_H__ #include <botan/entropy_src.h> namespace Botan { /** * File Tree Walking Entropy Source */ class FTW_EntropySource : public EntropyS...
22.62
26
(translation_unit) "/*\n* File Tree Walking EntropySource\n* (C) 1999-2008 <NAME>\n*\n* Distributed under the terms of the Botan license\n*/\n\n#ifndef BOTAN_ENTROPY_SRC_FTW_H__\n#define BOTAN_ENTROPY_SRC_FTW_H__\n\n#include <botan/entropy_src.h>\n\nnamespace Botan {\n\n/**\n* File Tree Walking Entropy Source\n*/\nclas...
117
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.62, "nodes": 59, "errors": 0, "source_hash": "d9a585cfca3931cfc5e26149cf28eeb5dca648de74408eba88ae28667b8961b3", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,951
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <string> #include <iostream> enum class DeviceStatus { // The device is in an inactive or passively listening (keyword-only) mode Idle, // The device is currently working to become ready to accept i...
28.81
43
(translation_unit) "// Copyright (c) Microsoft Corporation. \n// Licensed under the MIT License. \n \n#pragma once \n#include <string> \n#include <iostream> \n \nenum class DeviceStatus \n{ \n // The device is in an inactive or passively listening (keyword-only) mode \n Idle, \n // The device is currently work...
173
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.81, "nodes": 75, "errors": 0, "source_hash": "fcd86a10c249647d90b77732231f10c81316e63082f31dda051f3018a367756c", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,952
c
#pragma once #include <FMOD/fmod.hpp> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include "../EventHandler/eventHandler.h" #include "../AssetManager.h" #include "../Common/Types/Vector2D.h" #include "../CharactereCreator.h" class ProjectileCreator; class Globalbilboulga { public: st...
31.62
76
(translation_unit) "#pragma once \n \n#include <FMOD/fmod.hpp> \n#include <SDL2/SDL.h> \n#include <SDL2/SDL_ttf.h> \n \n#include "../EventHandler/eventHandler.h" \n#include "../AssetManager.h" \n#include "../Common/Types/Vector2D.h" \n#include "../CharactereCreator.h" \n \nclass ProjectileCreator; \n \nclass Globalbilb...
543
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 31.62, "nodes": 368, "errors": 0, "source_hash": "30aeb0805a489a6efee37ba8a36a5b5eb981bf50db7154e7f06cdc9207c4826b", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,953
c
#ifndef __SCHEDULE_TASK_H #define __SCHEDULE_TASK_H #include "queue/queue.h" #include <stdbool.h> #include <stdint.h> #define MAX_TASK_NUM 64 typedef struct __KernelContext { uint64_t x19; uint64_t x20; uint64_t x21; uint64_t x22; uint64_t x23; uint64_t x24; uint64_t x25; uint64_t x2...
24.48
61
(translation_unit) "#ifndef __SCHEDULE_TASK_H\n#define __SCHEDULE_TASK_H\n\n#include "queue/queue.h"\n\n#include <stdbool.h>\n#include <stdint.h>\n\n#define MAX_TASK_NUM 64\n\ntypedef struct __KernelContext {\n uint64_t x19;\n uint64_t x20;\n uint64_t x21;\n uint64_t x22;\n uint64_t x23;\n uint64_t x2...
410
4
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 24.48, "nodes": 276, "errors": 0, "source_hash": "ada533e215d2fa6ecdc42536cff8c30d4020529f16cbf7a507ba407ef8ff7838", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,954
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QWidget> #include <memory> #include "hexgrid/gridsearchevent.h" #include "utils/channel.h" class QTimer; class GraphicsWidget; class GridPainter; class HexGrid; class GridSearcher; namespace Ui { class MainWindow; } class MainWindow : public QWidget { Q_OBJEC...
24.63
43
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QWidget>\n\n#include <memory>\n\n#include "hexgrid/gridsearchevent.h"\n#include "utils/channel.h"\n\nclass QTimer;\n\nclass GraphicsWidget;\nclass GridPainter;\nclass HexGrid;\nclass GridSearcher;\n\nnamespace Ui {\n class MainWindow;\n}\n\ncla...
318
7
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.63, "nodes": 216, "errors": 0, "source_hash": "308cf30e61a66456b715f83d128140f4ca849024506e811dbdfcbb7d07058978", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,955
c
// // NSObject+NetworkDescription.h // ZZB // // Created by HuiYang on 15/3/19. // Copyright (c) 2015年 ZhangZheBang. All rights reserved. // #import <Foundation/Foundation.h> typedef BOOL (^ZZBCompleteBlock)(void); @interface NSObject (NetworkDescription) -(BOOL)descriptionForServer; -(BOOL)isSucessForServer; ...
28.87
15
(translation_unit) "//\n// NSObject+NetworkDescription.h\n// ZZB\n//\n// Created by HuiYang on 15/3/19.\n// Copyright (c) 2015年 ZhangZheBang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef BOOL (^ZZBCompleteBlock)(void);\n\n@interface NSObject (NetworkDescription)\n\n-(BOOL)descriptionForS...
96
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.87, "nodes": 57, "errors": 0, "source_hash": "03a3ce16bf9b59c9bdaacb1c039da58c1f1a6e04e9137d2e4cd36b7896653ef6", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
80,956
c
/* * The Yices SMT Solver. Copyright 2014 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ /* * EXPERIMENTAL: TABLE OF BOOLEAN EQUALITIES */ #include <assert.h> #include "scratch/booleq_table.h" #in...
21.98
163
(translation_unit) "/*\n * The Yices SMT Solver. Copyright 2014 SRI International.\n *\n * This program may only be used subject to the noncommercial end user\n * license agreement which is downloadable along with this program.\n */\n\n/*\n * EXPERIMENTAL: TABLE OF BOOLEAN EQUALITIES\n */\n\n#include <assert.h>\n\n#inc...
1,091
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 21.98, "nodes": 672, "errors": 0, "source_hash": "1e329eb5ca3e6c1d92dada2f2707b34ccb644c5a3bb9dea8678184a38b982367", "categorized_nodes": 502}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,957
c
/******************************************************************** Written by <NAME> Please see the file HEART_LICENSE.txt in the source's root directory. *********************************************************************/ #pragma once #include "base/hTypes.h" #include "base/hColour.h" #include <GLES2/gl...
19.41
136
(ERROR) "/********************************************************************\n Written by <NAME>\n Please see the file HEART_LICENSE.txt in the source's root directory.\n*********************************************************************/\n#pragma once\n\n#include "base/hTypes.h"\n#include "base/hColour.h"\n#...
572
9
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 19.41, "nodes": 366, "errors": 0, "source_hash": "fec9ef71120eb887bc5e5e731eec7f5a002ad290b3087178452f2172edcb8029", "categorized_nodes": 330}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/***********************...
80,958
c
// // DateRangePicker.h // DateRangePicker // // Created by <NAME> on 07.11.15. // Copyright © 2015 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for DateRangePicker. FOUNDATION_EXPORT double DateRangePickerVersionNumber; //! Project version string for DateRangePicker. FOUNDA...
39.15
13
(translation_unit) "//\n// DateRangePicker.h\n// DateRangePicker\n//\n// Created by <NAME> on 07.11.15.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n//! Project version number for DateRangePicker.\nFOUNDATION_EXPORT double DateRangePickerVersionNumber;\n\n//! Project version s...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.15, "nodes": 15, "errors": 0, "source_hash": "65cf77d4d5a9c3ffd964e243aaf8174e389b5f0631772389b0bfc0239f784ca6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
80,959
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _SRS_ResourceSet_H_ #define _SRS_ResourceSet_H_ #include "asn_application.h" /* Including external dependencies...
34.24
141
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef _SRS_ResourceSet_H_\n#define _SRS_ResourceSet_H_\n\n\n#include "asn_application.h"\n\n/...
493
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 34.24, "nodes": 313, "errors": 0, "source_hash": "64f1bc613e625006701b12d3a58e77638ce8381c03337b3da483fa5bf28b2c68", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,960
c
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
31.27
60
(translation_unit) "/*\n * Vortex OpenSplice\n *\n * This software and documentation are Copyright 2006 to TO_YEAR ADLINK\n * Technology Limited, its affiliated companies and licensors. All rights\n * reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * ...
231
2
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.27, "nodes": 147, "errors": 0, "source_hash": "3dcc45998182199271d511fa115a842e28f8de066ae5ae6c11872d8e4010df96", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,961
c
/* ANSI colour library codes * {@link https://github.com/shiena/ansicolor/blob/master/README.md} * * Usage: printf(FORE_BLU "This is blue text" RESET); * printf(FORE_RED "This is %s text" RESET, "red"); * */ // Resets All colour attributes to initial terminal state #define RESET "\x1B[0m" // Foreground Col...
31.25
24
(translation_unit) "/* ANSI colour library codes\n* {@link https://github.com/shiena/ansicolor/blob/master/README.md}\n*\n* Usage: printf(FORE_BLU "This is blue text" RESET);\n* printf(FORE_RED "This is %s text" RESET, "red");\n* \n*/\n\n// Resets All colour attributes to initial terminal state\n#define RESET "...
55
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.25, "nodes": 48, "errors": 0, "source_hash": "6c585ae6bb58c32fb43c2e04ff3928c7ff6575d4a32de3fb25d77dc1caf2e21b", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define RE...
80,962
c
// // MetricsKitSession.h // MetricsKit // // Created by <NAME> on 4/15/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface MetricsKitSession : NSObject - (id)initWithAppKey:(NSString *)key host:(NSString *)host; - (void)addEvent:(NSString *)key segmentation:(N...
31.75
12
(translation_unit) "//\n// MetricsKitSession.h\n// MetricsKit\n//\n// Created by <NAME> on 4/15/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface MetricsKitSession : NSObject\n\n- (id)initWithAppKey:(NSString *)key host:(NSString *)host;\n\n- (void)addEve...
95
14
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.75, "nodes": 56, "errors": 0, "source_hash": "ea1bf8cc3e94e41e0e651d698369a7148fdb31f6610e929afeb57da29152fd82", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,963
c
// // UIButton+ZQBackgroundColor.h // ZQPacking_Example // // Created by 张奇 on 2018/4/18. // Copyright © 2018年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (ZQBackgroundColor) - (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state; - (void)setCornerB...
34.17
12
(translation_unit) "//\n// UIButton+ZQBackgroundColor.h\n// ZQPacking_Example\n//\n// Created by 张奇 on 2018/4/18.\n// Copyright © 2018年 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (ZQBackgroundColor)\n\n- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControl...
75
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.17, "nodes": 42, "errors": 0, "source_hash": "14b06ee60ac74a55cf670151f6bab92a8a0be3501068257fabf31f23d559c9da", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
80,964
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "NTKDCollectionStoreObserver-Protocol.h" @class NSNumber, NTKDCollectionStore; @protocol NTKDCollectionStoreSyncObserver <NTKDCollectionStoreOb...
42.2
10
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "NTKDCollectionStoreObserver-Protocol.h"\n\n@class NSNumber, NTKDCollectionStore;\n\n@protocol NTKDCollectionStoreSyncO...
56
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 42.2, "nodes": 33, "errors": 0, "source_hash": "bd8ad694f1b61cbe2de97966396538574d4b00702e03c500274ce18cdc842231", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
80,965
c
/* * focus - main header * copyright (c) 2022 fenze. * all rights reserved. */ #ifndef _FOCUS_H #define _FOCUS_H #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> #include "util.h" /* * config * ------ * tmp - temporary file that * keeps start times. ...
17.36
55
(translation_unit) "/*\n * focus - main header\n * copyright (c) 2022 fenze.\n * all rights reserved.\n */\n\n#ifndef _FOCUS_H\n#define _FOCUS_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <time.h>\n\n#include "util.h"\n\n/*\n * config\n * ------\n * tmp - temporary ...
130
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 17.36, "nodes": 85, "errors": 0, "source_hash": "cb4e5f2e0bf2010746d7086d05d1eff1db944caf15fd6c0db834dd15cbd9a8f6", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,966
c
// // AppDelegate.h // CGRTC // // Created by UFOTO on 2021/5/26. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property(nonatomic, strong)UIWindow *window; @end
19.8
10
(translation_unit) "//\n// AppDelegate.h\n// CGRTC\n//\n// Created by UFOTO on 2021/5/26.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property(nonatomic, strong)UIWindow *window;\n\n@end\n" (comment) "//" (comment) "// AppDelegate.h" (comment) "// CGRTC"...
38
6
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.8, "nodes": 25, "errors": 0, "source_hash": "d4519b9e58862b8b6d7168664c3417909c835463cb60f862dd941e4888443bae", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
80,967
c
// // newShop.h // shouCangShop // // Created by Book on 16/10/14. // Copyright © 2016年 qau. All rights reserved. // #import <UIKit/UIKit.h> @class newShop; @protocol newShopDelegate <NSObject> -(void)newShop:(newShop *)news andWith:(NSArray *) modele; @end @interface newShop : UITableViewController @property ...
26.35
17
(translation_unit) "//\n// newShop.h\n// shouCangShop\n//\n// Created by Book on 16/10/14.\n// Copyright © 2016年 qau. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class newShop;\n\n@protocol newShopDelegate <NSObject>\n\n-(void)newShop:(newShop *)news andWith:(NSArray *) modele;\n\n@end\n\n@interface newSh...
134
19
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.35, "nodes": 93, "errors": 0, "source_hash": "69a23325a59464a14ad7514f389ca7b79f39b3b79e3085c6b31e4ae117f78033", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
80,968
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* heredoc.c :+: :+: :+: ...
27.07
111
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* heredoc.c ...
1,059
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 27.07, "nodes": 640, "errors": 0, "source_hash": "b3394112745c97a82dcea450da143edcbc9a71aedafd5857a5518e59a11f2533", "categorized_nodes": 481}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,969
c
#include "stdlib.h" struct account { int balance; }; typedef struct account account_t; int main() //@ requires true; //@ ensures true; { account_t* my_account = malloc(sizeof(account_t)); if (!my_account) abort(); my_account->balance = 5; free(my_account); return 0; }
19.07
15
(translation_unit) "#include "stdlib.h"\n\nstruct account {\n int balance;\n};\ntypedef struct account account_t;\n\nint main()\n //@ requires true;\n //@ ensures true;\n{\n account_t* my_account = malloc(sizeof(account_t));\n if (!my_account) abort();\n my_account->balance = 5;\n free(my_account);...
92
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.07, "nodes": 53, "errors": 0, "source_hash": "fabd8120fa03ee381b7aae7cdeb180403863f8143fdd7ed56f8690a79ac52e71", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,970
c
// -*- C++ -*- //============================================================================= /** * @file Routing_Slip_Persistence_Manager.h * * $Id: Routing_Slip_Persistence_Manager.h 91628 2010-09-07 11:11:12Z johnnyw $ * * A Routing_Slip_Persistence manager controls the actual allocation of * blocks t...
36.57
220
(translation_unit) "// -*- C++ -*-\n\n//=============================================================================\n/**\n * @file Routing_Slip_Persistence_Manager.h\n *\n * $Id: Routing_Slip_Persistence_Manager.h 91628 2010-09-07 11:11:12Z johnnyw $\n *\n * A Routing_Slip_Persistence manager controls the actua...
939
32
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 36.57, "nodes": 545, "errors": 0, "source_hash": "9bd46b171ca8d56d18a74d48fbe603a3061849ad02aee2bae4f13a55a366f87e", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,971
c
#pragma once namespace gfx { class IComparable { public: virtual ~IComparable() {}; virtual int GetValue() const = 0; virtual int Compare( const IComparable& rhs ) const { return (this->GetValue() - rhs.GetValue()); } }; }
18.47
15
(translation_unit) "#pragma once\n\n\nnamespace gfx\n{\n class IComparable\n {\n public:\n virtual ~IComparable() {};\n\n virtual int GetValue() const = 0;\n\n virtual int Compare( const IComparable& rhs ) const\n {\n return (this->GetValue() - rhs.GetValue());\n }...
95
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.47, "nodes": 50, "errors": 0, "source_hash": "e4f7b722bdc9ccba3e0b628fe71871dc73fd8c04a31550a8058a8fcb8e3591bc", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,972
c
#include "huffman.h" /** * freq_cmp - compare the frequency value stored in each data pointer * * @p1: pointer 1 * @p2: pointer 2 * * Return: the difference between the first and second frequency */ int freq_cmp(void *p1, void *p2) { binary_tree_node_t *n1, *n2; symbol_t *s1, *s2; n1 = (binary_tree_node_t *...
24.2
44
(translation_unit) "#include "huffman.h"\n\n/**\n * freq_cmp - compare the frequency value stored in each data pointer\n *\n * @p1: pointer 1\n * @p2: pointer 2\n *\n * Return: the difference between the first and second frequency\n */\nint freq_cmp(void *p1, void *p2)\n{\n binary_tree_node_t *n1, *n2;\n symbol_t *s1, ...
259
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 24.2, "nodes": 173, "errors": 0, "source_hash": "837d830df137e9abd9c81124dd8a4bfbfaa735f4a8e588406a34e8be1337ed69", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,973
c
// Copyright (c) 2018 <NAME> #ifndef GRAPE_PLOTTABLE_H #define GRAPE_PLOTTABLE_H namespace grape { class Plottable { public: virtual ~Plottable(); }; } // namespace grape #endif // GRAPE_PLOTTABLE_H
15.92
12
(translation_unit) "// Copyright (c) 2018 <NAME>\n\n#ifndef GRAPE_PLOTTABLE_H\n#define GRAPE_PLOTTABLE_H\n\nnamespace grape\n{\nclass Plottable\n{\npublic:\n virtual ~Plottable();\n};\n\n} // namespace grape\n\n#endif // GRAPE_PLOTTABLE_H\n" (comment) "// Copyright (c) 2018 <NAME>" (preproc_ifdef) "#ifndef GRAPE...
38
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.92, "nodes": 20, "errors": 0, "source_hash": "3bc120ba071fe048e016b2f842fd23007dc891edb1eef448790b6856f5ca30c1", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,974
c
/** * @file k_time.h * * @copyright Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #ifndef K_TIME_H #define K_TIME_H /** @addtogroup aos_rhino time * Time management * * @{ */ /** * Systick routine handler. * * @param[in] NULL * * @return NULL */ void krhino_tick_proc(void); /** * Get t...
17
54
(translation_unit) "/**\n * @file k_time.h\n *\n * @copyright Copyright (C) 2015-2019 Alibaba Group Holding Limited\n */\n\n#ifndef K_TIME_H\n#define K_TIME_H\n\n/** @addtogroup aos_rhino time\n * Time management\n *\n * @{\n */\n\n/**\n * Systick routine handler.\n *\n * @param[in] NULL\n *\n * @return NULL\n */\n...
69
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 17.0, "nodes": 44, "errors": 0, "source_hash": "14826551d06ceac6a27d5d49effcee7a5ed45aab6ae1ba4f81b17283dfaba836", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef K...
80,975
c
/* * GiNaCRA - GiNaC Real Algebra package * Copyright (C) 2010-2012 <NAME>, <NAME>, <NAME> * * This file is part of GiNaCRA. * * GiNaCRA is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version ...
24.59
118
(translation_unit) "/*\n * GiNaCRA - GiNaC Real Algebra package\n * Copyright (C) 2010-2012 <NAME>, <NAME>, <NAME>\n *\n * This file is part of GiNaCRA.\n *\n * GiNaCRA is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software...
455
27
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 24.59, "nodes": 239, "errors": 0, "source_hash": "0bf937489adc7555c952c5f30f0b089d1cf5bdfe684a60a036ac8d72f5c19945", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
80,976
c
/* The MIT License (MIT) Copyright (c) 2015 chenqi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
36.75
72
(translation_unit) "/*\nThe MIT License (MIT)\n\nCopyright (c) 2015 chenqi\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 rights\nto use,...
338
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 36.75, "nodes": 240, "errors": 0, "source_hash": "ebbfccaa89be0569e7e0967ad771b0ce4c0b0d4448b65a095f4bf1949306e925", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,977
c
// // XYViewController.h // XYCategoryKit // // Created by <EMAIL> on 08/06/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // @import UIKit; @interface XYViewController : UIViewController @end
19.8
10
(translation_unit) "//\n// XYViewController.h\n// XYCategoryKit\n//\n// Created by <EMAIL> on 08/06/2019.\n// Copyright (c) 2019 <EMAIL>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface XYViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// XYViewController.h" (comment) "// XYC...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.8, "nodes": 10, "errors": 0, "source_hash": "c988c676f8aef4e1e0db41c46d3a8a9ec63c9ec7bcec45a3566e49ee6980e72a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
80,978
c
/* ----------------------------------------------------------------------------- This source file is part of OSTIS (Open Semantic Technology for Intelligent Systems) For the latest info, see http://www.ostis.net Copyright (c) 2010-2014 OSTIS OSTIS is free software: you can redistribute it and/or modify it under the t...
35.69
59
(translation_unit) "/*\n-----------------------------------------------------------------------------\nThis source file is part of OSTIS (Open Semantic Technology for Intelligent Systems)\nFor the latest info, see http://www.ostis.net\n\nCopyright (c) 2010-2014 OSTIS\n\nOSTIS is free software: you can redistribute it a...
200
7
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 35.69, "nodes": 119, "errors": 0, "source_hash": "418d7e5e660a5ac1fc3a7f38d48708e3d51db44557dc9c455e17b9c702de6699", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,979
c
#pragma once #include "parsec.h" class KeyboardMap { public: static KeyboardMap defaultMap() { return KeyboardMap(); }; // Left Stick uint16_t LLeft = KEY_A; uint16_t LRight = KEY_D; uint16_t LUp = KEY_W; uint16_t LDown = KEY_S; // Right Stick uint16_t RLeft = KEY_LEFT; uint16_t RRight = KEY_RIGHT; uin...
16.79
100
(translation_unit) "#pragma once\n\n#include "parsec.h"\n\nclass KeyboardMap\n{\npublic:\n static KeyboardMap defaultMap() {\n return KeyboardMap();\n };\n\n // Left Stick\n uint16_t LLeft = KEY_A;\n uint16_t LRight = KEY_D;\n uint16_t LUp = KEY_W;\n uint16_t LDown = KEY_S;\n\n // Right Stick\n uint16_t RLeft = KEY_LE...
278
1
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 16.79, "nodes": 162, "errors": 0, "source_hash": "f00b0c7f577c4f41f7d40f7e707c14f5ca4d59b0138e2fc2b2b5083965f296e2", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,980
c
//add at any index of array #include<stdio.h> #define MAX 5 int main() { array[MAX] = {1,5,6,7}; int N = 4; int index = 3; int value = 9; printf("The array before assertion\n"); for (int i = 0; i < N; ++i) { printf("array[%d] = %d\n",i,array[i]); } N++; for (int i = N; i >= index ; i--) { ...
17.63
27
(translation_unit) "//add at any index of array \n#include<stdio.h> \n#define MAX 5 \nint main() \n{ \n array[MAX] = {1,5,6,7}; \n int N = 4; \n int index = 3; \n int value = 9; \n printf("The array before assertion\n"); \n for (int i = 0; i < N; ++i) \n { \n printf("array[%d] = %d\n",i,array[i]); \n } \n N++; \n for ...
229
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 17.63, "nodes": 134, "errors": 0, "source_hash": "f5fd695f23d980be9806b4a7dcadef29e4f2ccf8cf44a0afa8d6541955cf466b", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,981
c
/* ============================================================================= * * * * Copyright 2006,2013 Vizrt Austria GmbH * * All Rights Reserved. ...
42.15
72
(translation_unit) "/* ============================================================================= *\n * *\n * Copyright 2006,2013 Vizrt Austria GmbH *\n * All Rights Reserved. ...
207
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 42.15, "nodes": 163, "errors": 0, "source_hash": "50fd1247f57ce1625dfddf8c699eb6fa0e3ab7e595d88e6bd2e31a9251bc642c", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if ! defi...
80,982
c
#pragma once #include "gles3/gl3.h" #include "glm/glm.hpp" class CGfxIndexBuffer; class CGfxVertexBuffer; class CGfxInstanceBuffer; class CGfxVertexArrayObject; class CGfxMesh { friend class CGfxRenderer; friend class CGfxMeshManager; private: CGfxMesh(GLuint name); virtual ~CGfxMesh(void); public: GLuint Ge...
23.47
51
(translation_unit) "#pragma once\n#include "gles3/gl3.h"\n#include "glm/glm.hpp"\n\n\nclass CGfxIndexBuffer;\nclass CGfxVertexBuffer;\nclass CGfxInstanceBuffer;\nclass CGfxVertexArrayObject;\nclass CGfxMesh\n{\n friend class CGfxRenderer;\n friend class CGfxMeshManager;\n\n\nprivate:\n CGfxMesh(GLuint name);\n virtual ...
376
13
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 23.47, "nodes": 230, "errors": 0, "source_hash": "803d6623ae53b07481690c6fe7cee9220fac1a3ef9c739fa2678d861bc52757e", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,983
c
#ifndef H56BA330C_3488_4252_9784_B705C2E4D6F3 #define H56BA330C_3488_4252_9784_B705C2E4D6F3 #include "mcl/role.h" #include <stdint.h> #include <stdbool.h> MCL_STDC_BEGIN DEFINE_ROLE(Energy) { void (*consume)(Energy*, uint8_t); bool (*exhausted)(const Energy*); }; MCL_STDC_END #endif
22.83
12
(translation_unit) "#ifndef H56BA330C_3488_4252_9784_B705C2E4D6F3\n#define H56BA330C_3488_4252_9784_B705C2E4D6F3\n\n#include "mcl/role.h"\n#include <stdint.h>\n#include <stdbool.h>\n\nMCL_STDC_BEGIN\n\nDEFINE_ROLE(Energy) {\n void (*consume)(Energy*, uint8_t);\n bool (*exhausted)(const Energy*);\n};\n\nMCL_STDC_END\n\n...
75
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.83, "nodes": 50, "errors": 0, "source_hash": "3586c46e5a9253b9c5b8b37e2c4d600d001b7b9208aebd80fe522ac71264f103", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,984
c
#pragma once #include <glm/glm.hpp> class Camera { public: Camera(glm::vec2 size, float zoom); // Setter functions. void setPosition(glm::vec2 position); void setSize(glm::vec2 size); void setZoom(float zoom); // Getter functions. glm::vec2 getPosition() const; glm::mat4 getView() const; float getZoom() co...
27.12
33
(ERROR) "#pragma once\n\n#include <glm/glm.hpp>\n\nclass Camera\n{\npublic:\n Camera(glm::vec2 size, float zoom);\n\n // Setter functions.\n void setPosition(glm::vec2 position);\n void setSize(glm::vec2 size);\n void setZoom(float zoom);\n\n // Getter functions.\n glm::vec2 getPosition() const;\n glm::mat4 getView() c...
239
21
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.12, "nodes": 121, "errors": 0, "source_hash": "ea7f5718b9d3beaf5e7ac03f9c8be2f34be7956abb1ba4d87cb8ff59de57be47", "categorized_nodes": 77}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include <...
80,985
c
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | +---------...
41.95
38
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook....
113
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 41.95, "nodes": 84, "errors": 0, "source_hash": "02d37b584b7c619485cdff181136f85b28ab6cfc86a64e51481fe8746139a85c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,986
c
/** # Tempeature-gradient sharpening in a canopy. The evolution of a temperature profile is studied with the minimal(?) ingredients for stable layer formation. This is the [flux version of related axample](canopy.c). Consider a canopy (top at $z = z_c$) with a fixed temperature flux `Flx`. The evolution of the tempe...
34.12
123
(translation_unit) "/**\n# Tempeature-gradient sharpening in a canopy.\n \nThe evolution of a temperature profile is studied with the minimal(?)\ningredients for stable layer formation. This is the [flux version of related axample](canopy.c). Consider a canopy (top at $z = z_c$) with a fixed temperature flux `Flx`. Th...
647
15
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 34.12, "nodes": 350, "errors": 0, "source_hash": "7393fd53098c96ac0dd9859a880cbd874596a9e4a7efa6ab0414332237515c35", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
80,987
c
// // MovieModel.h // Mtime // // Created by <NAME> on 20/7/15. // Copyright (c) 2015年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface MovieModel : NSObject @property (nonatomic,copy) NSString* title; @property (nonatomic,copy) NSString* original_title; @prope...
27.47
19
(translation_unit) "//\n// MovieModel.h\n// Mtime\n//\n// Created by <NAME> on 20/7/15.\n// Copyright (c) 2015年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface MovieModel : NSObject\n\n@property (nonatomic,copy) NSString* title;\n@property (nonatomic,copy...
143
30
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.47, "nodes": 106, "errors": 0, "source_hash": "2226e0f7e3c8b0d1c81fbaaa7865fc314044e415c157f9f85a40c682f90c449d", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <F...
80,988
c
#pragma once #include "oxygine_include.h" #include "math/Color.h" #include <string> namespace oxygine { class Font; class TextStyle { public: enum HorizontalAlign { HALIGN_DEFAULT, HALIGN_LEFT, HALIGN_CENTER, HALIGN_RIGHT }; enum VerticalAlign { VALIGN_DEFAULT, VALIGN_BASELINE, VA...
16.89
44
(translation_unit) "#pragma once\n#include "oxygine_include.h"\n#include "math/Color.h"\n#include <string>\n\nnamespace oxygine\n{\n class Font;\n class TextStyle\n {\n public:\n enum HorizontalAlign\n {\n HALIGN_DEFAULT,\n HALIGN_LEFT, \n HALIGN_CENTER, \n HALIGN_RIGHT\n };\n\n enum VerticalAlign\n {\n ...
204
4
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 16.89, "nodes": 125, "errors": 0, "source_hash": "2f3e465f6f98adeef7cb64f89d68259ddc551e82e9340276805ec7a18e2dd67a", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,989
c
// // WFShareWechatView.h // WFKit // // Created by 王宇 on 2019/10/22. // Copyright © 2019 王宇. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface WFShareWechatView : UIView <UIGestureRecognizerDelegate> /// 商品信息 @property (nonatomic, strong) NSDictionary *dict; /// 初始化 + (WFShareWe...
20.76
17
(translation_unit) "//\n// WFShareWechatView.h\n// WFKit\n//\n// Created by 王宇 on 2019/10/22.\n// Copyright © 2019 王宇. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WFShareWechatView : UIView <UIGestureRecognizerDelegate>\n/// 商品信息\n@property (nonatomic, strong) NSDict...
62
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.76, "nodes": 39, "errors": 0, "source_hash": "1d4658b05a5c7faf7b0904fb413e032d760d1a1222f2410882c30a25caeb6624", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
80,990
c
#import <UIKit/UIKit.h> #import "GHRepository.h" @interface NetworkCell : UITableViewCell { GHRepository *repository; @private IBOutlet UILabel *name; IBOutlet UILabel *userName; IBOutlet UIImageView *iconView; } @property(nonatomic,retain)GHRepository *repository; @end
22.92
12
(translation_unit) "#import <UIKit/UIKit.h>\n#import "GHRepository.h"\n\n\n@interface NetworkCell : UITableViewCell {\n GHRepository *repository;\n @private \n IBOutlet UILabel *name;\n IBOutlet UILabel *userName;\n IBOutlet UIImageView *iconView;\n}\n\n@property(nonatomic,retain)GHRepository *repository;\n\n@...
76
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.92, "nodes": 54, "errors": 0, "source_hash": "a89e121e3988e2c59e5f78bf838647bf711c367d0d1568940b3b406c0ad0facb", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,991
c
// // NSUserDefaults+Extension.h // ECEJ // // Created by jia on 16/4/14. // Copyright © 2016年 ECEJ. All rights reserved. // #import <Foundation/Foundation.h> @interface NSUserDefaults (Extension) + (BOOL)haveDataForKey:(NSString *)key; + (void)setStringObject:(NSString *)string forKey:(NSString *)key; + (NSStr...
33.47
17
(ERROR) "//\n// NSUserDefaults+Extension.h\n// ECEJ\n//\n// Created by jia on 16/4/14.\n// Copyright © 2016年 ECEJ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSUserDefaults (Extension)\n\n+ (BOOL)haveDataForKey:(NSString *)key;\n\n+ (void)setStringObject:(NSString *)string forKey:(N...
138
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.47, "nodes": 73, "errors": 0, "source_hash": "12e6c1d9a7cc06b12a0797e8ebf26d8fc4a983f74ec4d5f9a96a7b4163d7a05c", "categorized_nodes": 42}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// NSUserDefaults+Exte...
80,992
c
/* Generated by RuntimeBrowser. */ @protocol FCChannelProviding <FCTagProviding> @required - (NSString *)defaultSectionID; - (bool)isWhitelisted; - (NSArray *)sectionIDs; - (bool)supportsNotifications; @end
22.11
9
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol FCChannelProviding <FCTagProviding>\n\n@required\n\n- (NSString *)defaultSectionID;\n- (bool)isWhitelisted;\n- (NSArray *)sectionIDs;\n- (bool)supportsNotifications;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol F...
60
5
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.11, "nodes": 39, "errors": 0, "source_hash": "017b6981b0eb1040104556200576d4db8dc38fac0c291b2a2bc1949ff7d510f2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol FCChann...
80,993
c
/* FIXME: dummy stub for now. */ #include <errno.h> #include <unistd.h> char * getlogin (void) { errno = ENOSYS; return NULL; }
13.78
9
(translation_unit) "/* FIXME: dummy stub for now. */\n#include <errno.h>\n#include <unistd.h>\n\nchar *\ngetlogin (void)\n{\n errno = ENOSYS;\n return NULL;\n}\n\n" (comment) "/* FIXME: dummy stub for now. */" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>"...
33
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.78, "nodes": 22, "errors": 0, "source_hash": "064e5282fd043989572eb00e57516fefa723195132bb82486affb0e603b188ac", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,994
c
/* * Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #ifndef CRYPTONITE_PKI_CRYPTO_VERIFY_ADAPTER_H #define CRYPTONITE_PKI_CRYPTO_VERIFY_ADAPTER_H #include <stdbool.h> #include "pkix_structs.h" #include "byte_array.h" #i...
44.92
50
(translation_unit) "/*\n * Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved.\n * Redistribution and modifications are permitted subject to BSD license.\n */\n\n#ifndef CRYPTONITE_PKI_CRYPTO_VERIFY_ADAPTER_H\n#define CRYPTONITE_PKI_CRYPTO_VERIFY_ADAPTER_H\n\n#include <stdbool.h>\n\n#include "pkix_structs....
429
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 44.92, "nodes": 312, "errors": 0, "source_hash": "38e6a7144e8a9f1c3d2f2459e386cbcc99e12e9db9bcfdf4d90cf37ae4e90d8d", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,995
c
#ifndef __NATASHA_STATICCASCADINGREELS3X5_H__ #define __NATASHA_STATICCASCADINGREELS3X5_H__ #include <assert.h> #include <map> #include "../protoc/base.pb.h" #include "reels.h" namespace natasha { class StaticCascadingReels3X5 { public: typedef std::vector< ::natashapb::SymbolBlock3X5*> SymbolBlockData; typedef...
34.84
44
(translation_unit) "#ifndef __NATASHA_STATICCASCADINGREELS3X5_H__\n#define __NATASHA_STATICCASCADINGREELS3X5_H__\n\n#include <assert.h>\n#include <map>\n#include "../protoc/base.pb.h"\n#include "reels.h"\n\nnamespace natasha {\n\nclass StaticCascadingReels3X5 {\n public:\n typedef std::vector< ::natashapb::SymbolBlock...
490
23
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 34.84, "nodes": 278, "errors": 0, "source_hash": "139ca7bc79862113f57b398b21feb28086b06fbceaf4192d77bd099c0ebee939", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,996
c
// // math_lngamma_example.c // // Demonstrates accuracy of lngamma function // #include "liquid.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #define OUTPUT_FILENAME "math_lngamma_example.m" int main() { unsigned int n = 256; // number of steps float zmin = 1e-3f; // minimum value fl...
29.74
47
(translation_unit) "//\n// math_lngamma_example.c\n//\n// Demonstrates accuracy of lngamma function\n//\n\n#include "liquid.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n#define OUTPUT_FILENAME "math_lngamma_example.m"\n\nint main() {\n unsigned int n = 256; // number of steps\n float zmin =...
449
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.74, "nodes": 257, "errors": 0, "source_hash": "d305cf09f66144b6716458382384c851e1ea5bda0971915375589d78e6dabc79", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,997
c
// // PoporFFmpeg.h // PoporFFmpeg // // Created by apple on 2019/2/14. // Copyright © 2019 popor. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef void(^PoporFFmpegFinishBlock)(BOOL finished, NSString * info); // __BlockTypedef @interface PoporFFmpeg : NSObject @propert...
31.79
14
(translation_unit) "//\n// PoporFFmpeg.h\n// PoporFFmpeg\n//\n// Created by apple on 2019/2/14.\n// Copyright © 2019 popor. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\ntypedef void(^PoporFFmpegFinishBlock)(BOOL finished, NSString * info); // __BlockTypedef\n\n@interface...
88
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.79, "nodes": 54, "errors": 0, "source_hash": "c4572d1f14df5a9d7927ed6d01931433fe92bbf96ed76e3cb7510c0d9c1d427b", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
80,998
c
// // KSYGPUPipBlendFilter.h // GPUImage // // Created by pengbin on 16/8/26. // Copyright © 2016年 ksyun. All rights reserved. #import <GPUImage/GPUImage.h> /** 图像混合filter * 将多个图层的内容进行叠加 * 每个图层有index, [0~n] * 叠加顺序为0在最下层, index 越大在更上层 * 可以每个图层分别指定位置和大小 * 可以每个图层分别制定透明度 * 可以动态交换图层 * 可以动态刷新图层内容(...
22.29
89
(translation_unit) "//\n// KSYGPUPipBlendFilter.h\n// GPUImage\n//\n// Created by pengbin on 16/8/26.\n// Copyright © 2016年 ksyun. All rights reserved.\n#import <GPUImage/GPUImage.h>\n/** 图像混合filter\n \n * 将多个图层的内容进行叠加\n * 每个图层有index, [0~n]\n * 叠加顺序为0在最下层, index 越大在更上层\n * 可以每个图层分别指定位置和大小\n * 可以每个图层分别制定透...
227
18
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 22.29, "nodes": 127, "errors": 0, "source_hash": "bde12747866b51d5d2c01686ffb9d8331c596c361d9141b7b4e5f931d54ce31e", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <GP...
80,999