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
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "read_ppm.h" int main(int argc, char** argv) { if(argc != 2){ printf("Usage\n"); exit(0); } int w = 0; int h = 0; char* inputFile = argv[1]; struct ppm_pixel** output = read_ppm(inputFile, &w , &h); printf("Reading %s with widt...
24.69
52
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "read_ppm.h"\n\nint main(int argc, char** argv) {\n if(argc != 2){\n printf("Usage\n");\n exit(0);\n }\n int w = 0;\n int h = 0;\n char* inputFile = argv[1];\n struct ppm_pixel** output = read_ppm(inputFile, &w , &h...
546
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.69, "nodes": 348, "errors": 0, "source_hash": "8d6ef2c0a76405a2426acc831989e25e1bd5c6318658ea2cfcc397e220cac66c", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,700
c
#ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_exceptions.h> #include "kernel/main.h" /** * ISession 接口. * * @author <NAME> <<EMAIL>> * * @since 2017.04.11 * * @version 1.0 */ ZEPHIR_INIT_CLASS(Leevel_Session...
16.93
239
(translation_unit) "#ifdef HAVE_CONFIG_H\n#include "../../ext_config.h"\n#endif\n\n#include <php.h>\n#include "../../php_ext.h"\n#include "../../ext.h"\n\n#include <Zend/zend_exceptions.h>\n\n#include "kernel/main.h"\n\n\n/**\n * ISession 接口.\n *\n * @author <NAME> <<EMAIL>>\n *\n * @since 2017.04.11\n *\n * @version 1...
465
2
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 16.93, "nodes": 217, "errors": 0, "source_hash": "bb7b8cd51f940ee77b4177e03bb94824a1d077fb016560ac4a67e49b39f20db0", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
8,701
c
#include "poly.h" void poly_Sq_tobytes(unsigned char *r, const poly *a) { int i; for (i = 0; i < NTRU_PACK_DEG / 2; i++) { r[3 * i + 0] = (unsigned char) ( a->coeffs[2 * i + 0] & 0xff); r[3 * i + 1] = (unsigned char) ((a->coeffs[2 * i + 0] >> 8) | ((a->coeffs[2 * i + 1] & 0x0f) << 4)); ...
37.57
30
(translation_unit) "#include "poly.h"\n\n\nvoid poly_Sq_tobytes(unsigned char *r, const poly *a) {\n int i;\n\n for (i = 0; i < NTRU_PACK_DEG / 2; i++) {\n r[3 * i + 0] = (unsigned char) ( a->coeffs[2 * i + 0] & 0xff);\n r[3 * i + 1] = (unsigned char) ((a->coeffs[2 * i + 0] >> 8) | ((a->coeffs[2 * ...
571
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 37.57, "nodes": 387, "errors": 0, "source_hash": "7446d73a6e14b30e8f1d3493eca34d115d67197e7c48c502b05a537af1416787", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,702
c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "sort.h" void printArray(int *, int); void createArray(int *, int); int main(void) { int i; int a[21]; createArray(a, 21); printf("The Original Array:\n"); printArray(a, 21); printf("The Answer Quick Sor...
21.9
51
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n#include <string.h>\n#include "sort.h"\n\nvoid printArray(int *, int);\nvoid createArray(int *, int);\n\nint main(void)\n{\n int i;\n int a[21];\n \n createArray(a, 21);\n printf("The Original Array:\n");\n printArray(a, 2...
455
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 21.9, "nodes": 251, "errors": 0, "source_hash": "15d149b94e4ca50e9a59866bc7097003021887cdab91e29774c7a16dbd25acca", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,703
c
/* * Automatically Generated from Mathematica. * Thu 23 May 2019 13:09:30 GMT-04:00 */ #ifndef JP_ANKLE_JOINT_LEFT_H #define JP_ANKLE_JOINT_LEFT_H #include <Eigen/Dense> Eigen::Matrix<double,3,20> Jp_ankle_joint_left(const Eigen::Matrix<double,20,1> &var1); #endif
22.5
12
(translation_unit) "/* \n * Automatically Generated from Mathematica. \n * Thu 23 May 2019 13:09:30 GMT-04:00 \n */ \n \n#ifndef JP_ANKLE_JOINT_LEFT_H \n#define JP_ANKLE_JOINT_LEFT_H \n#include <Eigen/Dense> \n \nEigen::Matrix<double,3,20> Jp_ankle_joint_left(const Eigen::Matrix<double,20,1> &var1); \n \n#endif \n \n ...
54
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.5, "nodes": 37, "errors": 0, "source_hash": "f037797b2f99fe1a138e834f3ba43dfd1e538848167263cbfe32a4c95fa44123", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef J...
8,704
c
#ifndef crypto_hash_sha256_H #define crypto_hash_sha256_H #define crypto_hash_sha256_tinyssh_BYTES 32 extern int crypto_hash_sha256_tinyssh(unsigned char *,const unsigned char *,unsigned long long); #define crypto_hash_sha256 crypto_hash_sha256_tinyssh #define crypto_hash_sha256_BYTES crypto_hash_sha256_tinyssh_BYTES...
45.33
9
(translation_unit) "#ifndef crypto_hash_sha256_H\n#define crypto_hash_sha256_H\n\n#define crypto_hash_sha256_tinyssh_BYTES 32\nextern int crypto_hash_sha256_tinyssh(unsigned char *,const unsigned char *,unsigned long long);\n\n#define crypto_hash_sha256 crypto_hash_sha256_tinyssh\n#define crypto_hash_sha256_BYTES crypt...
59
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 45.33, "nodes": 51, "errors": 0, "source_hash": "1139ff0a2aa9f4776bb09dbef47d86c10281fe6be2ecf7f3c9e62eaa75d28933", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef c...
8,705
c
#ifndef DRMAA2_LIST_H #define DRMAA2_LIST_H #include "drmaa2.h" typedef struct drmaa2_list_item_s { const void *data; struct drmaa2_list_item_s *next; } drmaa2_list_item_s; typedef drmaa2_list_item_s *drmaa2_list_item; typedef struct drmaa2_list_s { drmaa2_list_entryfree free_entry; drmaa2_listtype type; long...
26.62
21
(translation_unit) "#ifndef DRMAA2_LIST_H\n#define DRMAA2_LIST_H\n\n#include "drmaa2.h"\n\n\n\ntypedef struct drmaa2_list_item_s {\n const void *data;\n struct drmaa2_list_item_s *next;\n} drmaa2_list_item_s;\ntypedef drmaa2_list_item_s *drmaa2_list_item;\n\ntypedef struct drmaa2_list_s {\n drmaa2_list_entryfree free_e...
111
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.62, "nodes": 79, "errors": 0, "source_hash": "258e82d7c58a481e75518736c94458d7f17833d81098b93732b9bcf47b29b97d", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,706
c
// // KTNavScrollTool.h // KTNavViewDemo // // Created by 刘嵩野 on 2018/6/22. // Copyright © 2018年 kirito_song. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface KTNavScrollTool : NSObject /** 初始化 @param titleArr 按钮数组 @param line 需要移动的横线 @return 实例对象 */ - (instance...
19.16
25
(translation_unit) "//\n// KTNavScrollTool.h\n// KTNavViewDemo\n//\n// Created by 刘嵩野 on 2018/6/22.\n// Copyright © 2018年 kirito_song. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface KTNavScrollTool : NSObject\n\n\n/**\n 初始化\n\n @param titleArr 按钮数组\n @param line...
81
10
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.16, "nodes": 51, "errors": 0, "source_hash": "5ad39fb208c6bb4a9ca2ff112f7f0144eaef9abee412433e39488544e5684307", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
8,707
c
// // BRButton.h // BRButtonDemo // // Created by Yang on 16/3/1. // Copyright © 2016年 BokkkRottt. All rights reserved. // #import <Cocoa/Cocoa.h> IB_DESIGNABLE @interface BRButton : NSControl @property (nonatomic, retain) IBInspectable NSColor * backgroundColor; @property (nonatomic, copy) IBInspectable NSStrin...
31.5
16
(translation_unit) "//\n// BRButton.h\n// BRButtonDemo\n//\n// Created by Yang on 16/3/1.\n// Copyright © 2016年 BokkkRottt. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\nIB_DESIGNABLE\n@interface BRButton : NSControl\n\n@property (nonatomic, retain) IBInspectable NSColor * backgroundColor;\n@property (nona...
110
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.5, "nodes": 77, "errors": 0, "source_hash": "0558b05836e269a19a16c2811675b27924eb8bf629b11cbbacc846f794b083a2", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Coco...
8,708
c
/*++ Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved SPDX-License-Identifier: BSD-2-Clause-Patent --*/ /** @file **/ #ifndef _PLATFORM_GOP_POLICY_PROTOCOL_H_ #define _PLATFORM_GOP_POLICY_PROTOCOL_H_ #define EFI_PLATFORM_GOP_POLICY_PROTOCOL_GUID \ { 0xec2e931b, 0x3281, 0x48a5, 0x81, 0x7, 0...
25.55
49
(translation_unit) "/*++\n\nCopyright (c) 1999 - 2014, Intel Corporation. All rights reserved\n\n SPDX-License-Identifier: BSD-2-Clause-Patent\n\n\n--*/\n\n/** @file\n**/\n\n#ifndef _PLATFORM_GOP_POLICY_PROTOCOL_H_\n#define _PLATFORM_GOP_POLICY_PROTOCOL_H_\n\n#define EFI_PLATFORM_GOP_POLICY_PROTOCOL_GUID \\n { 0xec...
155
4
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 25.55, "nodes": 119, "errors": 0, "source_hash": "7848a14ceefdbbf1cdb7dc85b027600c74e7c3c89a68a33a161ee082f053f113", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,709
c
/* * SPDX-License-Identifier: ISC * SPDX-URL: https://spdx.org/licenses/ISC.html * * Copyright (C) 2005-2010 Atheme Project (http://atheme.org/) * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notic...
20.75
144
(translation_unit) "/*\n * SPDX-License-Identifier: ISC\n * SPDX-URL: https://spdx.org/licenses/ISC.html\n *\n * Copyright (C) 2005-2010 Atheme Project (http://atheme.org/)\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that t...
612
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 20.75, "nodes": 382, "errors": 0, "source_hash": "7d85ffb4e9e1e215177681ad5c7eca0aa42321851588b8c775aa801385db1959", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,710
c
#include <iostream> using namespace std; class Account { public: Account(int); void credit(int); // 存款 void debit(int); // 取款 int getBalance(); // 返回当前余额 private: int balance; };
14.69
13
(translation_unit) "nclude <iostream> \nusing namespace std; \n \nclass Account \n{ \npublic: \n Account(int); \n void credit(int); // 存款 \n void debit(int); // 取款 \n int getBalance(); // 返回当前余额 \nprivate: \n int balance; \n};" (preproc_include) "nclude <iostream> \nus" (#include) "nclude <" (system_lib...
67
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 14.69, "nodes": 41, "errors": 0, "source_hash": "2f57df26602f70832770aeadf5a8c062f459daf785307895f03b777f9f8bafdd", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude...
8,711
c
#pragma once //#include "NodeV8.h" // //#include "OCC.h" // //using namespace std; // // //template <class T> //class Transformer { // //public: // Transformer(TopoDS_Shape shape, // Handle<Object> origin, // Handle<Object> parameters) // { // transformed_shape_ = apply<T>(sha...
26.54
145
(translation_unit) "#pragma once\n//#include "NodeV8.h"\n//\n//#include "OCC.h"\n//\n//using namespace std;\n//\n//\n//template <class T>\n//class Transformer {\n//\n//public:\n// Transformer(TopoDS_Shape shape,\n// Handle<Object> origin,\n// Handle<Object> parameters)\n// {\n// ...
148
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 26.54, "nodes": 3, "errors": 0, "source_hash": "0461afc64d82a530090cde07b5693bb06065f1d9ea54b9e6d42dc096672f5232", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,712
c
// ============================================================== // Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2021.1 (64-bit) // Copyright 1986-2021 Xilinx, Inc. All Rights Reserved. // ============================================================== #ifndef __linux__ #include "xstatus.h" #include "xpara...
30.77
31
(translation_unit) "// ==============================================================\n// Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2021.1 (64-bit)\n// Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.\n// ==============================================================\n#ifndef __linux__\n\n#include "...
211
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.77, "nodes": 129, "errors": 0, "source_hash": "d9a2acc76a19a73a3aec9aa7dc4dbe4be91cc49227a65df2d89bb2e802650e3e", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,713
c
// // UdacityStudentLocationService.h // UdacityStudentLocationService // // Created by <NAME> on 5/14/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for UdacityStudentLocationService. FOUNDATION_EXPORT double UdacityStudentLocationServiceVersionNumber; ...
46.62
13
(translation_unit) "//\n// UdacityStudentLocationService.h\n// UdacityStudentLocationService\n//\n// Created by <NAME> on 5/14/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for UdacityStudentLocationService.\nFOUNDATION_EXPORT double UdacityStuden...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 46.62, "nodes": 15, "errors": 0, "source_hash": "2e1edb9f78da586fa141f4564af79e58982069673cb4c85a7dc6b94a77500d2c", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
8,714
c
#include <stdio.h> int main() { printf("%*.*f",10,2,12.0); return 0; }
10.78
9
(translation_unit) "#include <stdio.h> \nint main() \n { \n \n printf("%*.*f",10,2,12.0); \n \n return 0; \n \n } \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() \n { \n \n printf("%*.*f",10,2...
35
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 10.78, "nodes": 17, "errors": 0, "source_hash": "827bd957db3307c55d45d640e2f7214a64da0f4e3b85ef71ba710a5031a8d156", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
8,715
c
#ifndef EXTENDEDHISTOGRAM_H #define EXTENDEDHISTOGRAM_H #include "qcustomplot.h" #include <QList> #include <QInputDialog> typedef std::pair<float,float> IntervalSelection; class ExtendedHistogram : public QCustomPlot { Q_OBJECT public: enum State {IDLE,SELECTION,DRAG,SCALE}; public: ExtendedHistogram(QWi...
36.4
45
(translation_unit) "#ifndef EXTENDEDHISTOGRAM_H\n#define EXTENDEDHISTOGRAM_H\n\n#include "qcustomplot.h"\n#include <QList>\n#include <QInputDialog>\n\ntypedef std::pair<float,float> IntervalSelection;\n\nclass ExtendedHistogram : public QCustomPlot\n{\n Q_OBJECT\npublic:\n enum State {IDLE,SELECTION,DRAG,SCALE};\...
397
18
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.4, "nodes": 258, "errors": 0, "source_hash": "bc354ba6c95dc38ec323c8a6ce020feec2505aab996cbc3ea24a7f5b5e478c3c", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,716
c
/** * NRF NFManagement Service * NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * * The version of the OpenAPI document: 1.1.0.alpha-1 * * * NOTE: This class is auto generated by OpenAPI Generator * (https://openapi-generator.tec...
25.99
299
(translation_unit) "/**\n * NRF NFManagement Service\n * NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,\n * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.\n *\n * The version of the OpenAPI document: 1.1.0.alpha-1\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator\n * (...
1,836
98
{"language": "c", "success": true, "metadata": {"lines": 299, "avg_line_length": 25.99, "nodes": 1097, "errors": 0, "source_hash": "33ea64633b1c673a7a2397a7e5e7f447c3f9ed1fd8663473fad5516a51c4fe0d", "categorized_nodes": 717}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifnd...
8,717
c
#include <math.h> long lroundl(TASELDOUBLE x) { return roundl(x); }
12.8
5
(translation_unit) "#include <math.h>\n\nlong lroundl(TASELDOUBLE x)\n{\n return roundl(x);\n}\n" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (function_definition) "long lroundl(TASELDOUBLE x)\n{\n return roundl(x);\n}" (sized_type_specifier) "long" ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 12.8, "nodes": 17, "errors": 0, "source_hash": "2f07944a092d7c78f37e4bcef60a7435df1c83629f385b050bb3a977e8898157", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
8,718
c
// Copyright (c) 2015 Antalk, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
36.89
150
(translation_unit) "// Copyright (c) 2015 Antalk, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required b...
831
18
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 36.89, "nodes": 494, "errors": 0, "source_hash": "944cf3af3afc15e04efd066e81fcdc6ed937b7d727f3286b84323700674e8bce", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,719
c
/* * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "FANSACTwoWayDataLinkCommunications" * found in "fans-cpdlc.asn1" * `asn1c -fcompound-names -fincludes-quoted -gen-PER` */ #ifndef _FANSFrequency_H_ #define _FANSFrequency_H_ #include "asn_application.h" /* Including external depen...
26.83
47
(translation_unit) "/*\n * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)\n * From ASN.1 module "FANSACTwoWayDataLinkCommunications"\n * found in "fans-cpdlc.asn1"\n * `asn1c -fcompound-names -fincludes-quoted -gen-PER`\n */\n\n#ifndef _FANSFrequency_H_\n#define _FANSFrequency_H_\n\n\n#include "asn_application....
150
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.83, "nodes": 92, "errors": 0, "source_hash": "0f2347d84847bc0cf59ddb9b5d5d9ee4c94b413b414e6bf9eea17cee485b0022", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
8,720
c
// // SUAppHash.h // filehashofapp // // Created by <NAME> on 4/1/16. // Copyright © 2016 seense. All rights reserved. // #import <Cocoa/Cocoa.h> #import "FileHash.h" @interface SUAppHash : NSObject +(NSString*) hashAtPath:(NSString*) applicationPath; @end
17.79
14
(translation_unit) "//\n// SUAppHash.h\n// filehashofapp\n//\n// Created by <NAME> on 4/1/16.\n// Copyright © 2016 seense. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "FileHash.h"\n\n@interface SUAppHash : NSObject\n\n\n+(NSString*) hashAtPath:(NSString*) applicationPath;\n\n\n@end\n" (comment) "...
45
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.79, "nodes": 21, "errors": 0, "source_hash": "8fa139ed425f98993a04b5bb16c23bdda76c7e60a6024ed296abc1a9fb2d466f", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
8,721
c
/******************************************************************************************** Yumefuda (c) 199? Alba driver by <NAME> Code disassembling: 0: start with a jump at 6b 6b: initialize some stuff(SP $0000). initialize ports $00,$01 for unknown purposes,I suspect these aren't AY8910 regs... 4d9: ...
32.51
348
(translation_unit) "/******************************************************************************************** \n \nYumefuda (c) 199? Alba \n \ndriver by <NAME> \n \nCode disassembling: \n0: start with a jump at 6b \n6b: initialize some stuff(SP $0000). \ninitialize ports $00,$01 for unknown purposes,I suspect these...
2,670
59
{"language": "c", "success": true, "metadata": {"lines": 348, "avg_line_length": 32.51, "nodes": 1518, "errors": 0, "source_hash": "f036d696d6420fddbe96bcfd0011794f1c07d95a6f40a4e5c981245d2e3d1e50", "categorized_nodes": 1204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
8,722
c
/*------------------------------------------------------------------------- * * enc_cipher.c * This code handles encryption and decryption using OpenSSL * * Portions Copyright (c) 2019, PostgreSQL Global Development Group * Portions Copyright (c) 2020, Alibaba Group Holding Limited * * * IDENTIFICATION * ...
27.81
149
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * enc_cipher.c\n * This code handles encryption and decryption using OpenSSL\n *\n * Portions Copyright (c) 2019, PostgreSQL Global Development Group\n * Portions Copyright (c) 2020, Alibaba Group Holding Limited\n *...
887
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 27.81, "nodes": 508, "errors": 0, "source_hash": "0d67be97570ed09e52875f7f4a5fb7bf6a5fe142c6699388a839da434e937bb7", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,723
c
#pragma once #include <glm\vec2.hpp> #include <glm\vec3.hpp> bool isWithin(glm::vec3 value, glm::vec3 lower, glm::vec3 upper); float minPart(const glm::vec3& value); float maxPart(const glm::vec3& value); glm::vec3 minDim(const glm::vec3& value); glm::vec3 minDir(const glm::vec3& value);
35.12
8
(translation_unit) "#pragma once\n\n#include <glm\vec2.hpp>\n#include <glm\vec3.hpp>\n\nbool isWithin(glm::vec3 value, glm::vec3 lower, glm::vec3 upper);\nfloat minPart(const glm::vec3& value);\nfloat maxPart(const glm::vec3& value);\nglm::vec3 minDim(const glm::vec3& value);\nglm::vec3 minDir(const glm::vec3& value);"...
119
9
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 35.12, "nodes": 67, "errors": 0, "source_hash": "dd2d23f66186e707ed8785ec8e9633693f60974ba5293974fa37659471ffb090", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,724
c
#pragma once #include "UiCommon.h" #include "IoCommon.h" namespace Nav { class UiWindow; //class Byo2FontCreation //{ //public: // WString m_Name; // R32 m_Size; // U32 m_Flag; //}; //NavDefineDataByMember_( Byo2FontCreation, Name, Size, Flag ); class Byo2Font : public WrapObject<By...
41.21
42
(translation_unit) "ragma once\n\n#include "UiCommon.h"\n#include "IoCommon.h"\n\nnamespace Nav\n{\n\n class UiWindow;\n\n //class Byo2FontCreation\n //{\n //public:\n // WString m_Name;\n // R32 m_Size;\n // U32 m_Flag;\n //};\n\n //NavDefineDataByMember_( Byo2FontCreation, Name, Size, Flag );\n\n ...
514
29
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 41.21, "nodes": 290, "errors": 0, "source_hash": "90b3b8ce04a16c145ebdc4c86451033e31596aa6176e1f3d653d23eca63304e6", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
8,725
c
#include "hashmap.h" #include <string.h> uint32_t djb2_hash(const void *str) { int c; const char *s = str; uint32_t hash = 5381; while ((c = *s++)) hash = ((hash << 5) + hash) + c; return hash; } struct hashmap *hashmap_create(uint32_t(*hash_fct)(const void*), void(*free_fct)(void*), size_t size) { ...
22.76
66
(translation_unit) "#include "hashmap.h"\n#include <string.h>\n\nuint32_t djb2_hash(const void *str)\n{\n int c;\n const char *s = str;\n uint32_t hash = 5381;\n\n while ((c = *s++))\n hash = ((hash << 5) + hash) + c;\n return hash;\n}\n\nstruct hashmap *hashmap_create(uint32_t(*hash_fct)(const void*),\n void...
736
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 22.76, "nodes": 503, "errors": 0, "source_hash": "2864fbdb02a00d4e95fa6532dd5ee17c3cfeb3c1748dfca108f0d79dc07d843c", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,726
c
#ifndef YUN_WEAPON_H #define YUN_WEAPON_H #include "mon_attack.h" struct Object; enum WeaponClass { WEAPON_CLASS_SWORD, WEAPON_CLASS_MACE, WEAPON_CLASS_AXE, WEAPON_CLASS_BOW, WEAPON_CLASS_GUN, WEAPON_CLASS_DAGGER, WEAPON_CLASS_STAFF, WEAPON_CLASS_POLEARM, WEAPON_CLASS_FIST, WE...
21.24
41
(translation_unit) "#ifndef YUN_WEAPON_H\n#define YUN_WEAPON_H\n\n#include "mon_attack.h"\n\nstruct Object;\n\nenum WeaponClass\n{\n WEAPON_CLASS_SWORD,\n WEAPON_CLASS_MACE,\n WEAPON_CLASS_AXE,\n WEAPON_CLASS_BOW,\n WEAPON_CLASS_GUN,\n WEAPON_CLASS_DAGGER,\n WEAPON_CLASS_STAFF,\n WEAPON_CLASS_PO...
214
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 21.24, "nodes": 153, "errors": 0, "source_hash": "38c2922b800c5b041280095ac23fb3447b45e80e35d3ddd4416ae6e5ca9d60f1", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,727
c
// // LQViewController.h // LQCommonKit // // Created by Luxingwang on 02/26/2019. // Copyright (c) 2019 Luxingwang. All rights reserved. // @import UIKit; @interface LQViewController : UIViewController @end
20.2
10
(translation_unit) "//\n// LQViewController.h\n// LQCommonKit\n//\n// Created by Luxingwang on 02/26/2019.\n// Copyright (c) 2019 Luxingwang. All rights reserved.\n//\n\n@import UIKit;\n\n@interface LQViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LQViewController.h" (comment) "// ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 10, "errors": 0, "source_hash": "8cf06f66480887f66de85d998c4df3e2264e6e3724faf1b95e6b1f1c27ed21de", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
8,728
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <time.h> #include <sys/time.h> #include "MCP3008.h" int main() { //MISO MOSI SCLK CS if(!MCP3008_Startup(9,8,7,6)) { printf("MCP3008 SPI initialization not successful.\n"); return -1; } /* Read channels a few times */ i...
22.28
29
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <unistd.h>\n#include <time.h>\n#include <sys/time.h>\n#include "MCP3008.h"\n\nint main() {\n\n //MISO MOSI SCLK CS\n if(!MCP3008_Startup(9,8,7,6)) {\n printf("MCP3008 SPI initialization not successful.\n");\n return -1;\n }\n\...
219
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.28, "nodes": 128, "errors": 0, "source_hash": "57bda391be2c14cc71ab2186a0adfdaed41f11f2057ca571b1bdc76091bf884d", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,729
c
// // LWPacketAssetPairRates.h // LykkeWallet // // Created by <NAME> on 04.01.16. // Copyright © 2016 Lykkex. All rights reserved. // #import "LWAuthorizePacket.h" @interface LWPacketAssetPairRates : LWAuthorizePacket { } // out @property (copy, nonatomic) NSArray *assetPairRates; @property BOOL i...
18.94
17
(translation_unit) "//\n// LWPacketAssetPairRates.h\n// LykkeWallet\n//\n// Created by <NAME> on 04.01.16.\n// Copyright © 2016 Lykkex. All rights reserved.\n//\n\n#import "LWAuthorizePacket.h"\n\n\n@interface LWPacketAssetPairRates : LWAuthorizePacket {\n \n}\n// out\n@property (copy, nonatomic) NSArray *assetP...
54
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.94, "nodes": 31, "errors": 0, "source_hash": "663c9c614941ba8283c69dbe03b0c7c7db73548101fe8c556a52ceb1437132d3", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
8,730
c
/* ---------------------------------- ~Moosey Chess Engine~ piece.h ---------------------------------- */ #ifndef PIECE_H #define PIECE_h #include <string> class Piece { public: //PIECE.CPP Piece(); ~Piece(); //Accessors int getFromMoveList(int i) const; char getAbbr() const { return abbr; }; ...
29.69
51
(translation_unit) "/*\n----------------------------------\n ~Moosey Chess Engine~\n piece.h\n----------------------------------\n*/\n\n#ifndef PIECE_H\n#define PIECE_h\n\n#include <string>\n\nclass Piece {\n public:\n //PIECE.CPP\n Piece();\n ~Piece();\n //Accessors\n int getFromMoveList(int i) const;\n ch...
579
14
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.69, "nodes": 289, "errors": 0, "source_hash": "b13970cafa9d301abc51005b9ad450ee618f2bab0b6560bc8dbaa8265a981d1b", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,731
c
// // DWModalAnimator.h // AlterDemo // // Created by Damon on 16/8/4. // Copyright © 2016年 damonwong. All rights reserved. // #import "DWModalAnimatorProtocol.h" @interface DWModalAnimator : NSObject <DWModalAnimatorProtocol> //+() +(id)animatorWithStyle:(DWModelStyle)style; @end
18.27
15
(translation_unit) "//\n// DWModalAnimator.h\n// AlterDemo\n//\n// Created by Damon on 16/8/4.\n// Copyright © 2016年 damonwong. All rights reserved.\n//\n\n#import "DWModalAnimatorProtocol.h"\n\n\n\n\n@interface DWModalAnimator : NSObject <DWModalAnimatorProtocol>\n\n//+()\n\n+(id)animatorWithStyle:(DWModelStyle)st...
43
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.27, "nodes": 24, "errors": 0, "source_hash": "d309a33792dc28255e004d08ab2156e27cc19569878944aa4b63b074959576dd", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"DW...
8,732
c
// ============================================================================ // // = LIBRARY // ulib - c++ library // // = FILENAME // context.h - xml Digital SIGnature with libxml2 // // = AUTHOR // <NAME> // // ============================================================================ #ifndef ULIB_DSIG...
36.19
177
(translation_unit) "// ============================================================================\n//\n// = LIBRARY\n// ulib - c++ library\n//\n// = FILENAME\n// context.h - xml Digital SIGnature with libxml2\n//\n// = AUTHOR\n// <NAME>\n//\n// ================================================================...
957
26
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 36.19, "nodes": 553, "errors": 0, "source_hash": "0588be583e77c3ed629550e3e9eff611a4b74395859bbc86942c4773448000fb", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ULIB_...
8,733
c
// SolarisGeneratedEnum Entity_Client_local_controller_slot.local_controller_slot enum class local_controller_slot : uint8 { Disabled, Controller0, Controller1, Controller2, Controller3, Controller4, Controller5, Controller6, Controller7, };
19.92
12
(translation_unit) "// SolarisGeneratedEnum Entity_Client_local_controller_slot.local_controller_slot\nenum class local_controller_slot : uint8 {\n Disabled,\n Controller0,\n Controller1,\n Controller2,\n Controller3,\n Controller4,\n Controller5,\n Controller6,\n Controller7,\n};\n\n" (comment) "// SolarisGeneratedE...
43
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.92, "nodes": 24, "errors": 0, "source_hash": "b665b14992f7b48a8480ad6d69b4e2dfbf3c58a98d1db2ec5c97d293bdb6bbc8", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "en...
8,734
c
// // Created by dawid on 10/29/15. // #pragma once #include <vector> #include <string> const std::vector<std::string> processTags( const char* text , long minimumTagLength = 2 , const std::vector<long>& skipPosition = {1000000, 10}); const std::vector<std::string> processTagsStripHtml(const char* nativeStrin...
30.55
11
(translation_unit) "//\n// Created by dawid on 10/29/15.\n//\n\n#pragma once\n\n#include <vector>\n#include <string>\n\nconst std::vector<std::string> processTags(\n const char* text\n , long minimumTagLength = 2\n , const std::vector<long>& skipPosition = {1000000, 10});\n\nconst std::vector<std::string> processTag...
107
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.55, "nodes": 67, "errors": 0, "source_hash": "ef53ae0a1ae6f100679cb770e3b13701f7d6fc032351fbca27b9f67bec07182a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,735
c
// // LoginUserTreatBooking.h // // Created by 豆蒙萌 on 15/10/14 // Copyright (c) 2015 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> @interface LoginUserTreatBooking : NSObject <NSCoding, NSCopying> @property (nonatomic, strong) NSString *userid; @property (nonatomic, strong) NSStr...
38.1
21
(translation_unit) "//\n// LoginUserTreatBooking.h\n//\n// Created by 豆蒙萌 on 15/10/14\n// Copyright (c) 2015 __MyCompanyName__. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n\n@interface LoginUserTreatBooking : NSObject <NSCoding, NSCopying>\n\n@property (nonatomic, strong) NSString *userid;\n@...
224
27
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 38.1, "nodes": 148, "errors": 0, "source_hash": "dd54a5aaffb5931f86b534277ddce0066723f0b534e5b5bb9214833897e90950", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda...
8,736
c
#include <string.h> #include <time.h> #include <stdlib.h> #include <stdio.h> static int compare(char *s1, char *s2) { for (int i = 0; i < 100; i += 1) { if (s1[i] != s2[i]) { return 0; } } return 1; } int main(int argc, char *argv[]) { const char charset[] = "HelloW0rld,DoU...
22.2
41
(translation_unit) "#include <string.h>\n#include <time.h>\n#include <stdlib.h>\n#include <stdio.h>\n\nstatic int compare(char *s1, char *s2)\n{\n for (int i = 0; i < 100; i += 1) {\n if (s1[i] != s2[i]) {\n return 0;\n }\n }\n return 1;\n}\n\nint main(int argc, char *argv[])\n{\n c...
384
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 22.2, "nodes": 223, "errors": 0, "source_hash": "d98902e5d05302f3b74ab89cd752cd59aa6024ee2bab3ab1556d150f37be44ad", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,737
c
#pragma once #include <QSGSimpleTextureNode> #include <QtQuick/QSGTextureProvider> #include <bgfx/bgfx.h> class QSGBgfxNode : public QSGTextureProvider, public QSGSimpleTextureNode { Q_OBJECT public: QSGBgfxNode(const uint16_t viewId, QQuickItem *item); ~QSGBgfxNode(); QSGTexture *texture() const ov...
28.71
24
(translation_unit) "#pragma once\n#include <QSGSimpleTextureNode>\n#include <QtQuick/QSGTextureProvider>\n\n#include <bgfx/bgfx.h>\n\nclass QSGBgfxNode : public QSGTextureProvider, public QSGSimpleTextureNode\n{\n Q_OBJECT\n\npublic:\n QSGBgfxNode(const uint16_t viewId, QQuickItem *item);\n ~QSGBgfxNode();\n\n...
185
15
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.71, "nodes": 104, "errors": 0, "source_hash": "a1208693fd89232ab415d9f0f21feb43d9f84f5c4973523d48bbad9adae8c326", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,738
c
#pragma once #include <cstdint> namespace nc::net { enum class PacketType : uint32_t; using NetworkHandle = uint32_t; const NetworkHandle NullNetworkHandle = 0u; constexpr auto PacketTypeSize = sizeof(PacketType); constexpr auto PacketHeaderSize = PacketTypeSize + sizeof(NetworkHandle); cons...
27.17
18
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nnamespace nc::net\n{\n enum class PacketType : uint32_t;\n\n using NetworkHandle = uint32_t;\n const NetworkHandle NullNetworkHandle = 0u;\n\n constexpr auto PacketTypeSize = sizeof(PacketType);\n constexpr auto PacketHeaderSize = PacketTypeSize +...
125
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.17, "nodes": 91, "errors": 0, "source_hash": "3df65b503b804c290a873e6771d70a8e2ee8376a9455845a4776f146e51d6dcf", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,739
c
// // ADHNavigationBarConfig.h // ADHNavigationBar // // Created by ade on 2021/2/2. // #import <UIKit/UIKit.h> #import "ADHNavigationBarUtil.h" #import "UIViewController+ADHNavigationBar.h" #define kADHNStatusBarHeight [ADHNavigationBarUtil adhnavigationbar_statusBarHight] #define kADHNNavigationBarHeight 44 #def...
34.07
69
(translation_unit) "//\n// ADHNavigationBarConfig.h\n// ADHNavigationBar\n//\n// Created by ade on 2021/2/2.\n//\n\n#import <UIKit/UIKit.h>\n#import "ADHNavigationBarUtil.h"\n#import "UIViewController+ADHNavigationBar.h"\n\n#define kADHNStatusBarHeight [ADHNavigationBarUtil adhnavigationbar_statusBarHight]\n#define ...
419
76
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 34.07, "nodes": 297, "errors": 0, "source_hash": "b3c02e62b838f4ab78914f73453551b725047e86c0bb8bee69a9c610f0d42392", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
8,740
c
/** * @file sc16is740.h * */ /* Copyright (C) 2020-2022 by <NAME> mailto:<EMAIL> * * 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...
29.03
108
(translation_unit) "/**\n * @file sc16is740.h\n *\n */\n/* Copyright (C) 2020-2022 by <NAME> mailto:<EMAIL>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, incl...
648
17
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 29.03, "nodes": 362, "errors": 0, "source_hash": "f6914eed3d2ec0bd26a1388f4f0a94f5afb9b3ea8cf40b4091e69998088af0ae", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,741
c
// Taylor Series Horner’s Rule #include <stdio.h> double e(int x, int n) { static double s; // This will work as a global variable; if (n == 0) return s; s = 1 + x * s / n; return e(x, n - 1); } int main() { printf("%lf\n", e(1, 10)); return 0; }
16.75
16
(translation_unit) "// Taylor Series Horner’s Rule\n\n#include <stdio.h>\n\ndouble e(int x, int n)\n{\n static double s; // This will work as a global variable;\n\n if (n == 0)\n return s;\n \n s = 1 + x * s / n;\n return e(x, n - 1);\n}\n\nint main()\n{\n printf("%lf\n", e(1, 10));\n return...
106
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.75, "nodes": 63, "errors": 0, "source_hash": "ca450a33a6b61904dae4e810aff9b6800330558b08b96d829cef2c82d7a2588a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude...
8,742
c
// // Inch.h // Pods // // Created by materik on 15/02/16. // // #import "Unit.h" #import "LengthProtocol.h" @interface Inch : Unit <Length> @end
12.55
11
(translation_unit) "//\n// Inch.h\n// Pods\n//\n// Created by materik on 15/02/16.\n//\n//\n\n#import "Unit.h"\n\n#import "LengthProtocol.h"\n\n@interface Inch : Unit <Length>\n\n@end\n" (comment) "//" (comment) "// Inch.h" (comment) "// Pods" (comment) "//" (comment) "// Created by materik on 15/02/16....
28
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 12.55, "nodes": 17, "errors": 0, "source_hash": "b3f51e853f062a66467ecc8bff29bb74469181adf5e3ba02ee7bc4d09f2da5d7", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
8,743
c
/** Copyright 2018-2019, <NAME> (<EMAIL>) **/ #include <stdio.h> #include "12.1/array_io.h" #include "12.2/array_analysis.h" #define ARRAY_SIZE 100 int main() { printf("Welcome to 12.2! Please enter desired array size (up to %d):\n", ARRAY_SIZE); int a[ARRAY_SIZE]; size_t n; if (scanf("%lu", (long u...
31.56
27
(translation_unit) "/** Copyright 2018-2019, <NAME> (<EMAIL>) **/\n\n#include <stdio.h>\n#include "12.1/array_io.h"\n#include "12.2/array_analysis.h"\n\n#define ARRAY_SIZE 100\n\nint main()\n{\n printf("Welcome to 12.2! Please enter desired array size (up to %d):\n", ARRAY_SIZE);\n int a[ARRAY_SIZE];\n size_t ...
272
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.56, "nodes": 135, "errors": 0, "source_hash": "497d567e28b5238e5937541dac64b8ea41116bef6cef9045c8539f80d6321ced", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,744
c
/* DHCPv4 client startup. */ /* * Copyright (c) 2018 Linaro Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include <logging/log.h> LOG_MODULE_DECLARE(net_google_iot_mqtt, LOG_LEVEL_DBG); #include <zephyr.h> #include <net/net_if.h> #include <net/net_core.h> #include <net/net_context.h> #include <net/net_mgmt.h...
23.9
50
(translation_unit) "/* DHCPv4 client startup. */\n\n/*\n * Copyright (c) 2018 Linaro Ltd\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <logging/log.h>\n\nLOG_MODULE_DECLARE(net_google_iot_mqtt, LOG_LEVEL_DBG);\n\n#include <zephyr.h>\n\n#include <net/net_if.h>\n#include <net/net_core.h>\n#include <net/net...
270
1
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 23.9, "nodes": 158, "errors": 0, "source_hash": "a9e25c2bf8a9873de75d26e41560616e838a4260c2a1e6556e62e81dc610bcea", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,745
c
//{{BLOCK(gameBGLevel3) //====================================================================== // // gameBGLevel3, 256x256@4, // + palette 256 entries, not compressed // + 85 tiles (t|f|p reduced) not compressed // + regular map (in SBBs), not compressed, 32x32 // Total size: 512 + 2720 + 2048 = 5280 //...
28.68
31
(translation_unit) "//{{BLOCK(gameBGLevel3) \n \n//====================================================================== \n// \n// gameBGLevel3, 256x256@4, \n// + palette 256 entries, not compressed \n// + 85 tiles (t|f|p reduced) not compressed \n// + regular map (in SBBs), not compressed, 32x32 \n// Total size: 51...
78
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.68, "nodes": 46, "errors": 0, "source_hash": "f1e360df92fc7fed560ff4b2df6846d67a0cd2fce01a937a295b3372ede72dbc", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,746
c
/* * Generated by Drv CodeGen for MT6573_YuSu. Copyright MediaTek Inc. (C) 2006. * Fri Jun 11 18:28:57 2010 * Do Not Modify the File. */ #ifndef _CUST_KPD_H_ #define _CUST_KPD_H_ #include <linux/input.h> //#include <cust_eint.h> #define KPD_YES 1 #define KPD_NO 0 /* available keys (Linux keycodes) */ #define KEY...
29.71
96
(translation_unit) "/*\n * Generated by Drv CodeGen for MT6573_YuSu. Copyright MediaTek Inc. (C) 2006.\n * Fri Jun 11 18:28:57 2010\n * Do Not Modify the File.\n */\n\n#ifndef _CUST_KPD_H_\n#define _CUST_KPD_H_\n#include <linux/input.h>\n//#include <cust_eint.h>\n#define KPD_YES 1\n#define KPD_NO 0\n/* available keys...
125
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 29.71, "nodes": 90, "errors": 0, "source_hash": "d73969b2556455721dd149343d5c39cc22590b725206f4459889cb49001ea2d6", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,747
c
#include <Fl_C.h> #include <Fl_WindowC.h> #include <Fl_BoxC.h> #include <Fl_ButtonC.h> #include <fl_show_colormapC.h> #include <Fl_Color_ChooserC.h> #include <Fl_ImageC.h> #include <Fl_DrawC.h> #include <Fl_GroupC.h> #include <Fl_AskC.h> #include <xC.h> #include <stdlib.h> #include <stdio.h> #include <fl_utf8C.h> #if ...
31.17
126
(translation_unit) "#include <Fl_C.h>\n#include <Fl_WindowC.h>\n#include <Fl_BoxC.h>\n#include <Fl_ButtonC.h>\n#include <fl_show_colormapC.h>\n#include <Fl_Color_ChooserC.h>\n#include <Fl_ImageC.h>\n#include <Fl_DrawC.h>\n#include <Fl_GroupC.h>\n#include <Fl_AskC.h>\n#include <xC.h>\n\n#include <stdlib.h>\n#include <st...
1,461
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 31.17, "nodes": 895, "errors": 0, "source_hash": "05a7344f80edc7a9edd329ec8cb00381a2bd4c8aaaa975b6d1063ae6c9ce8329", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,748
c
#include <stdlib.h> // Would like to only use node.val as key but nowhere in the // description does it say if it is unique. struct hash_entry { struct Node *n; /* Only care about keys */ UT_hash_handle hh; /* Makes this structure hashable */ }; int has_value(struct hash_entry *seen, struct Node *node) { str...
31.28
72
(translation_unit) "#include <stdlib.h>\n\n// Would like to only use node.val as key but nowhere in the\n// description does it say if it is unique.\nstruct hash_entry {\n struct Node *n; /* Only care about keys */\n UT_hash_handle hh; /* Makes this structure hashable */\n};\n\nint has_value(struct hash_entry *see...
650
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.28, "nodes": 415, "errors": 0, "source_hash": "91aee6d4aa911e04a729abb97f177af330de689a7a8f1dd91107339756af4732", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,749
c
// // Created by <NAME> on 1/28/15. // Copyright (c) 2015 RajSathi. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> // Used as bridge to allow for easily using performSelector withObject (__bridge doesn't seem happy) @interface SqlLite3Statement : NSObject { sqlite3_stmt* statement_;...
29.14
14
(translation_unit) "//\n// Created by <NAME> on 1/28/15.\n// Copyright (c) 2015 RajSathi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <sqlite3.h>\n\n// Used as bridge to allow for easily using performSelector withObject (__bridge doesn't seem happy)\n@interface SqlLite3Statement : NSObject\n{...
66
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.14, "nodes": 42, "errors": 0, "source_hash": "35a1aa6f54aa469e6cd1a0c833ac6f81e56125407976823e048dd830600ef097", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,750
c
// // StuWebImageDownloaderOperation.h // ThirdLibStudy // // Created by dujia on 16/8/14. // Copyright © 2016年 dujia. All rights reserved. // #import <Foundation/Foundation.h> #import "StuWebImageDownloader.h" #import "StuWebImageOperation.h" @interface StuWebImageDownloaderOperation : NSOperation <StuWebImageO...
32.71
21
(ERROR) "//\n// StuWebImageDownloaderOperation.h\n// ThirdLibStudy\n//\n// Created by dujia on 16/8/14.\n// Copyright © 2016年 dujia. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "StuWebImageDownloader.h"\n#import "StuWebImageOperation.h"\n\n\n@interface StuWebImageDownloaderOperation : NSO...
83
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.71, "nodes": 53, "errors": 0, "source_hash": "ad7bd436177777a1a2749ba396174f9ea0eaf73c561ec568b35afc5998a40d8a", "categorized_nodes": 34}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// StuWebImageDownload...
8,751
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AppleMediaServices.framework/AppleMediaServices */ @interface AMSDialogTextField : NSObject { long long _keyboardType; NSString * _placeholder; bool _secure; long long _tag; NSString * _text; id _textField; NSSt...
29.57
35
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AppleMediaServices.framework/AppleMediaServices\n */\n\n@interface AMSDialogTextField : NSObject {\n long long _keyboardType;\n NSString * _placeholder;\n bool _secure;\n long long _tag;\n NSString * _text;...
394
31
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.57, "nodes": 251, "errors": 0, "source_hash": "a47e67aa29524e7db84830a4a050e18b3dd3050604ed400cd70eb7b010996cb9", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
8,752
c
/** * Copyright (C) 2021-present Codein Inc. * * This program is free software: you can redistribute it and/or modify it under the terms of * BSD-3-Clause License which can be found at the root directory of this repository. */ #include <any> #include <memory> #include <vector> #include "iterator.h" #pragma once...
34.31
13
(translation_unit) "/**\n * Copyright (C) 2021-present Codein Inc.\n *\n * This program is free software: you can redistribute it and/or modify it under the terms of\n * BSD-3-Clause License which can be found at the root directory of this repository.\n */\n\n#include <any>\n#include <memory>\n#include <vector>\n\n#inc...
66
2
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.31, "nodes": 41, "errors": 0, "source_hash": "c70024983aa3261755df3118858d03cb35568e7f099717a7c59e774e9ca3330e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,753
c
#ifndef _MK_HAVE_SETJMP #define _MK_HAVE_SETJMP "yes" #endif
19.33
3
(translation_unit) "#ifndef _MK_HAVE_SETJMP\n#define _MK_HAVE_SETJMP "yes"\n#endif\n" (preproc_ifdef) "#ifndef _MK_HAVE_SETJMP\n#define _MK_HAVE_SETJMP "yes"\n#endif" (#ifndef) "#ifndef" (identifier) "_MK_HAVE_SETJMP" (preproc_def) "#define _MK_HAVE_SETJMP "yes"\n" (#define) "#define" (identif...
9
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 19.33, "nodes": 8, "errors": 0, "source_hash": "c4efe817194409372cf3f1ac302a1403cb0c6898b46a1ae830ea0e652d2a3643", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _MK...
8,754
c
////////////////////////////////////////////////////////////////////// //! MIT License //! Copyright (c) 2022 sadisutikku //! Part of https://github.com/sadisutikku/engine_libs.git ////////////////////////////////////////////////////////////////////// #pragma once /////////////////////////////////////////////////////...
34.8
20
(translation_unit) "//////////////////////////////////////////////////////////////////////\n//! MIT License\n//! Copyright (c) 2022 sadisutikku\n//! Part of https://github.com/sadisutikku/engine_libs.git\n//////////////////////////////////////////////////////////////////////\n\n#pragma once\n\n/////////////////////////...
77
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 34.8, "nodes": 40, "errors": 0, "source_hash": "7851830b2b21de5c35d4f5623c14015dbce038e6b2888c2d7f393fbb8ae1f764", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,755
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_MGSegmented_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_MGSegmented_Examp...
23.14
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_MGSegmented_ExampleVersionNumber;\nFOUNDATION_EXPORT const un...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.14, "nodes": 42, "errors": 0, "source_hash": "0956b3d85b22479c2d5bde4682629bcbb2ef65f4c0bb3c053b93d5eb21d4db0d", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
8,756
c
@import Foundation; //! Project version number for EllipticCurve. FOUNDATION_EXPORT double EllipticCurveVersionNumber; //! Project version string for EllipticCurve. FOUNDATION_EXPORT const unsigned char EllipticCurveVersionString[]; // In this header, you should import all the public headers of your framework using ...
61
6
(translation_unit) "@import Foundation;\n\n//! Project version number for EllipticCurve.\nFOUNDATION_EXPORT double EllipticCurveVersionNumber;\n\n//! Project version string for EllipticCurve.\nFOUNDATION_EXPORT const unsigned char EllipticCurveVersionString[];\n\n// In this header, you should import all the public head...
29
3
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 61.0, "nodes": 16, "errors": 0, "source_hash": "903855725a46c577a07a96b4da06ae6fd6c09c0783aec848b7731a6b07f41805", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
8,757
c
// // Created by alexandr on 29.12.20. // #ifndef INC_3_LINK_H #define INC_3_LINK_H #pragma once #include <string> using namespace std; class Link { public: string hostName; string path; Link(string hostName, string path); }; Link* convertToImageLink(string url, int* socketAddressNumber, string* imag...
20.62
16
(translation_unit) "//\n// Created by alexandr on 29.12.20.\n//\n\n#ifndef INC_3_LINK_H\n#define INC_3_LINK_H\n\n#pragma once\n\n#include <string>\n\nusing namespace std;\nclass Link {\npublic:\n string hostName;\n string path;\n\n Link(string hostName, string path);\n\n};\n\nLink* convertToImageLink(string ur...
82
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.62, "nodes": 56, "errors": 0, "source_hash": "00f210494502daa25b9216710894c0f712bf0f9dffa9a26fa7ea5173d6a1284e", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,758
c
#ifndef VIEW_CONTROL_H_ #define VIEW_CONTROL_H_ #include "widget/widget.h" namespace View { class control : public widget { public: control(float width, float height, cursor c = cursor::hand, bool redraw_when_hoverred = true); control( float width, float height, size_...
32.54
24
(translation_unit) "#ifndef VIEW_CONTROL_H_\n#define VIEW_CONTROL_H_\n\n#include "widget/widget.h"\n\nnamespace View {\n\n class control : public widget {\n\n public:\n control(float width, float height, cursor c = cursor::hand, bool redraw_when_hoverred = true);\n control(\n float width,...
184
17
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.54, "nodes": 118, "errors": 0, "source_hash": "4606daae8cd784abd24fb8404d283cf375e80235087dab47f5b2618cec4b136a", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,759
c
#pragma once #include "baseTile.h" enum class DoorType { R_V_CLOSED = 100, R_V_OPEN, R_H_CLOSED, R_H_OPEN, B_V_CLOSED, B_V_OPEN, B_H_CLOSED, B_H_OPEN }; enum class DoorColor { RED, BLUE }; enum class DoorOrientation { HOREZONTAL, VERTICAL }; class Door : public baseTile { public: int color; int orientation; Sprit...
24.44
16
(translation_unit) "#pragma once\n#include "baseTile.h"\n\nenum class DoorType { R_V_CLOSED = 100, R_V_OPEN, R_H_CLOSED, R_H_OPEN, B_V_CLOSED, B_V_OPEN, B_H_CLOSED, B_H_OPEN };\n\nenum class DoorColor { RED, BLUE };\nenum class DoorOrientation { HOREZONTAL, VERTICAL };\n\nclass Door : public baseTile\n{\npublic:\n int ...
142
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.44, "nodes": 83, "errors": 0, "source_hash": "8539446d6b00517a9a2f6b4afbdf2a1892249b60d92d47483fc955b2d73de377", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,760
c
#pragma once #include <string> #include <thread> #include <vector> namespace ppr::preprocessing { struct options { std::string osm_file_; std::vector<std::string> dem_files_; std::string graph_file_; double elevation_sampling_interval_{30}; // meters double crossing_detours_limit_{600}; // meters bo...
31.42
19
(ERROR) "#pragma once\n\n#include <string>\n#include <thread>\n#include <vector>\n\nnamespace ppr::preprocessing {\n\nstruct options {\n std::string osm_file_;\n std::vector<std::string> dem_files_;\n\n std::string graph_file_;\n\n double elevation_sampling_interval_{30}; // meters\n double crossing_detours_limit...
170
18
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.42, "nodes": 94, "errors": 0, "source_hash": "ea30eaffdf19d7933082b3456fd8ab40df9301716141345c4aa23b4f95bbe673", "categorized_nodes": 61}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include <s...
8,761
c
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. *******************************************...
31.92
111
(translation_unit) "/* USER CODE BEGIN Header */ \n/** \n ****************************************************************************** \n * @file : main.h \n * @brief : Header for main.c file. \n * This file contains the common defines of the application. \n *****************...
228
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 31.92, "nodes": 190, "errors": 0, "source_hash": "511571dbce246237c945bef164439cb7139024ddb3bbcf14cca4176c2842952c", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,762
c
#pragma once #include "UObject/UObject.h" class NNavigationPoint { public: static void RegisterFunctions(); static void describeSpec(UObject* Self, int iSpec, UObject*& Start, UObject*& End, int& ReachFlags, int& Distance); };
27.62
8
(translation_unit) "#pragma once\n\n#include "UObject/UObject.h"\n\nclass NNavigationPoint\n{\npublic:\n static void RegisterFunctions();\n\n static void describeSpec(UObject* Self, int iSpec, UObject*& Start, UObject*& End, int& ReachFlags, int& Distance);\n};\n" (preproc_call) "#pragma once\n" (preproc_directiv...
78
4
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.62, "nodes": 43, "errors": 0, "source_hash": "73a95583ba6fc4cd30fdf7adddb49f0a3abf586c32d1e1219a1cc406c42c1bd4", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,763
c
#pragma once #include "Globals.h" #include "Entity.h" #include "Player.h" #include "Room.h" #include "Exit.h" #include "NPC.h" #include "Monster.h" #define ACTION_INVENTORY "inventory" #define ACTION_LOOK "look" #define ACTION_SEE "see" #define ACTION_GO "go" #define ACTION_WALK "walk" #define ACTION_TAKE "take" ...
24.02
51
(translation_unit) "#pragma once\n#include "Globals.h"\n#include "Entity.h"\n#include "Player.h"\n#include "Room.h"\n#include "Exit.h"\n#include "NPC.h"\n#include "Monster.h"\n\n#define ACTION_INVENTORY "inventory"\n\n#define ACTION_LOOK "look" \n#define ACTION_SEE "see" \n\n#define ACTION_GO "go"\n#define ACTION_WALK ...
301
8
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.02, "nodes": 221, "errors": 0, "source_hash": "f53930d4fc4a41b27cbe84daa0aa3e4927b2648335f12d9badafe986a83a674c", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,764
c
/** * @file value_expression.h * @brief * * @copyright Copyright (c) 2018 All Rights Reserved. * */ #ifndef EXPRESSIONS_VALUE_EXPRESSION_H_ #define EXPRESSIONS_VALUE_EXPRESSION_H_ #include <core/child.h> #include <expressions/expression.h> namespace cassio { /** * @class ValueExpression * @brief * * ... ...
20.6
30
(translation_unit) "/**\n * @file value_expression.h\n * @brief\n *\n * @copyright Copyright (c) 2018 All Rights Reserved.\n *\n */\n\n#ifndef EXPRESSIONS_VALUE_EXPRESSION_H_\n#define EXPRESSIONS_VALUE_EXPRESSION_H_\n\n#include <core/child.h>\n#include <expressions/expression.h>\n\nnamespace cassio {\n\n/**\n * @class ...
118
6
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.6, "nodes": 72, "errors": 0, "source_hash": "cd8644c015764c58749557d55e374e420c1a5409dc0ff6dd57d9f960f7ee3f6d", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
8,765
c
/** * @file hasPendingDataSTDIN.h * @author radj307 * @brief Contains the hasPendingDataSTDIN() function, a cross-platform function *\n that checks if STDIN has pending data, allowing piped input on Linux and Windows. */ #pragma once #include <sysarch.h> #ifdef OS_WIN // Windows: use #include <cstdio> #include ...
32.08
38
(translation_unit) "/**\n * @file hasPendingDataSTDIN.h\n * @author radj307\n * @brief Contains the hasPendingDataSTDIN() function, a cross-platform function\n *\n that checks if STDIN has pending data, allowing piped input on Linux and Windows.\n */\n#pragma once\n#include <sysarch.h>\n\n#ifdef OS_WIN // Windows: use...
199
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 32.08, "nodes": 127, "errors": 0, "source_hash": "e9d3ad4355101eb92dd5ccb97522bb0f5f6fbed3c37cc8a3635b9172fa6247d6", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,766
c
#ifndef __PROTOS__LINUX_H__ #define __PROTOS__LINUX_H__ #include <fs/file.h> void linux_load(char *cmdline, int boot_drive); #endif
25.4
5
(translation_unit) "#ifndef __PROTOS__LINUX_H__\n#define __PROTOS__LINUX_H__\n\n#include <fs/file.h>\n\nvoid linux_load(char *cmdline, int boot_drive);\n\n#endif\n" (preproc_ifdef) "#ifndef __PROTOS__LINUX_H__\n#define __PROTOS__LINUX_H__\n\n#include <fs/file.h>\n\nvoid linux_load(char *cmdline, int boot_drive);\n\n#...
28
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 25.4, "nodes": 23, "errors": 0, "source_hash": "6ae853bec2eabc68f2df4657268818bf49e75045595320d363767fd01bffd077", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
8,767
c
#ifndef __PUNC_ENC_H_INCLUDED__ #define __PUNC_ENC_H_INCLUDED__ #include <openssl/ec.h> #include "bls12_381/bls12_381.h" #include "hsm.h" #include "params.h" void PuncEnc_BuildTree(Params *params, uint8_t *cts, uint8_t msk[KEY_LEN], uint8_t hmacKey[KEY_LEN], EC_POINT **mpk); int PuncEnc_GetIndexesForTag(Params *para...
40.89
9
(translation_unit) "#ifndef __PUNC_ENC_H_INCLUDED__\n#define __PUNC_ENC_H_INCLUDED__\n\n#include <openssl/ec.h>\n#include "bls12_381/bls12_381.h"\n#include "hsm.h"\n#include "params.h"\n\nvoid PuncEnc_BuildTree(Params *params, uint8_t *cts, uint8_t msk[KEY_LEN], uint8_t hmacKey[KEY_LEN], EC_POINT **mpk);\nint PuncEnc_...
97
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 40.89, "nodes": 69, "errors": 0, "source_hash": "6da6113eece0b77791f9a42854b4374457d73ca8907f51721ff7c9a42dd9beb0", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,768
c
#include "jdprofile.h" FIRMWARE_IDENTIFIER(0x37ef3c4a, "JM TVOC/Temp/Hum SGPC3+SHT30 84 v4.0"); static uint32_t hum_sample; void app_process() { if (jd_should_sample(&hum_sample, 500000)) { humidity_sht30.process(); const env_reading_t *hum = humidity_sht30.get_reading(); const env_readin...
33.79
19
(translation_unit) "#include "jdprofile.h"\n\nFIRMWARE_IDENTIFIER(0x37ef3c4a, "JM TVOC/Temp/Hum SGPC3+SHT30 84 v4.0");\n\nstatic uint32_t hum_sample;\n\nvoid app_process() {\n if (jd_should_sample(&hum_sample, 500000)) {\n humidity_sht30.process();\n const env_reading_t *hum = humidity_sht30.get_readin...
188
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.79, "nodes": 100, "errors": 0, "source_hash": "863ca0da47d65758f80ee003bd73156f7e888100df8fe1632d76d1a260db9163", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,769
c
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
37.1
225
(translation_unit) "/* ******************************************************************************\n *\n *\n * This program and the accompanying materials are made available under the\n * terms of the Apache License, Version 2.0 which is available at\n * https://www.apache.org/licenses/LICENSE-2.0.\n *\n * See the ...
2,297
101
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 37.1, "nodes": 1513, "errors": 0, "source_hash": "c54c14429050d811750c07e2d616a2575023df805a26f0473934f8dff9491a17", "categorized_nodes": 1053}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
8,770
c
// // PhotoImageView.h // CorePhotoBroswerVC // // Created by 池鹏程 on 16/9/19. // Copyright © 2016年 池鹏程. All rights reserved. // #import <UIKit/UIKit.h> @interface PhotoImageView : UIImageView /** 设置图片后的回调 */ @property (nonatomic,copy) void (^ImageSetBlock)(UIImage *image); @property (nonatomic,assign) CGRect c...
22.29
14
(translation_unit) "//\n// PhotoImageView.h\n// CorePhotoBroswerVC\n//\n// Created by 池鹏程 on 16/9/19.\n// Copyright © 2016年 池鹏程. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PhotoImageView : UIImageView\n\n/** 设置图片后的回调 */\n@property (nonatomic,copy) void (^ImageSetBlock)(UIImage *image);\n\n\n@...
65
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.29, "nodes": 40, "errors": 0, "source_hash": "8cea1ec80fbd1026689d4dbfbadce1d6515bc67eb073ee2fc0781d22939dec96", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
8,771
c
#ifndef WebCore_FWD_DateInstance_h #define WebCore_FWD_DateInstance_h #include <JavaScriptCore/DateInstance.h> #endif
28.5
4
(translation_unit) "#ifndef WebCore_FWD_DateInstance_h\n#define WebCore_FWD_DateInstance_h\n#include <JavaScriptCore/DateInstance.h>\n#endif\n" (preproc_ifdef) "#ifndef WebCore_FWD_DateInstance_h\n#define WebCore_FWD_DateInstance_h\n#include <JavaScriptCore/DateInstance.h>\n#endif" (#ifndef) "#ifndef" (identi...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 28.5, "nodes": 10, "errors": 0, "source_hash": "c9728dc21e4f4b69350b32ee1529c4436326d5f5e0e4c6856f06aa1d500eb5a3", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Web...
8,772
c
#include <unistd.h> #include <errno.h> #include <exasock/extensions.h> __attribute__((visibility("default"))) int exasock_loaded(void) { return 0; } __attribute__((visibility("default"))) uint32_t exasock_version_code(void) { return 0; } __attribute__((visibility("default"))) const char * exasock_version_te...
19.74
58
(translation_unit) "#include <unistd.h>\n#include <errno.h>\n\n#include <exasock/extensions.h>\n\n__attribute__((visibility("default")))\nint\nexasock_loaded(void)\n{\n return 0;\n}\n\n__attribute__((visibility("default")))\nuint32_t\nexasock_version_code(void)\n{\n return 0;\n}\n\n__attribute__((visibility("defa...
380
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 19.74, "nodes": 221, "errors": 0, "source_hash": "839640cf39c17c3ef561b5609c22e520948009f273109ae6448d540abaad2e94", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,773
c
#include "allass.h" void fill_gai(int n11, int n12, int n13, int n21, int n22, int n23, int n31, int n32, int n33, double kb1, double kb2, char locus1[20], char locus2[20], double freq1, double freq2) { double n; n=n11+n12+n13+n21+n22+n23+n31+n32+n33; if(g_aiPtr==NULL) { aistartPtr=(aisPtr)malloc(sizeof(ais));...
28.6
50
(translation_unit) "#include "allass.h"\nvoid fill_gai(int n11, int n12, int n13, int n21, int n22, int n23, int n31, int n32, int n33, double kb1, double kb2, char locus1[20], char locus2[20], double freq1, double freq2)\n{\ndouble n;\nn=n11+n12+n13+n21+n22+n23+n31+n32+n33;\n\nif(g_aiPtr==NULL)\n {\n aistartPtr=...
583
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.6, "nodes": 371, "errors": 0, "source_hash": "5b330c9a3ce40458ec03e3af548598fb761cd82b35d19abdc4ea1ae216e7e3a4", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,774
c
#include "hidedent.h" #include "../hooker/getdents.h" void hide_dent(char *content) { if (*(content + strlen(content) - 1) == '\n') { *(content + strlen(content) - 1) = 0x00; } add_hidden_dent(content); } void show_hidden_dent(char *content) { if (*(content + strlen(content) - 1) == '\n') { ...
22.94
17
(translation_unit) "#include "hidedent.h"\n#include "../hooker/getdents.h"\n\n\nvoid hide_dent(char *content)\n{\n if (*(content + strlen(content) - 1) == '\n') {\n *(content + strlen(content) - 1) = 0x00;\n }\n add_hidden_dent(content);\n}\n\nvoid show_hidden_dent(char *content)\n{\n if (*(content +...
165
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.94, "nodes": 108, "errors": 0, "source_hash": "b5ba70cabc72433ae5f2d6d03ceeee05fbc62b96946da9ca316ad863f10de6dc", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,775
c
/* Copyright (c) 2019-2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
37.51
102
(translation_unit) "/*\nCopyright (c) 2019-2021 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge...
780
14
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 37.51, "nodes": 481, "errors": 0, "source_hash": "f8fe3992ad774ad5022084dfa07fa3f09d10d1ecf23eaabcd505d8a22cdf4931", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,776
c
#ifndef PICALARM_BUTTON_H_ #define PICALARM_BUTTON_H_ #include <stdbool.h> #include <stdint.h> typedef struct { const uint8_t button_mask: 8; const bool reset_ticks_between_holds: 1; uint8_t ticks_pushed: 7; } button; bool button_alarm_pressed; inline void button_tick(); static bool button_is_pressed(b...
26.46
13
(translation_unit) "#ifndef PICALARM_BUTTON_H_\n#define PICALARM_BUTTON_H_\n\n#include <stdbool.h>\n#include <stdint.h>\n\ntypedef struct {\n const uint8_t button_mask: 8;\n const bool reset_ticks_between_holds: 1;\n uint8_t ticks_pushed: 7;\n} button;\n\nbool button_alarm_pressed;\n\ninline void button_tick()...
78
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.46, "nodes": 53, "errors": 0, "source_hash": "1d5007afd7b9f38576168001253b936d3f8bf1ef69c49cf9beecc7bf11e64c96", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,777
c
#ifndef __BDT_UDP_TUNNEL_H__ #define __BDT_UDP_TUNNEL_H__ #include "../BdtCore.h" typedef struct Bdt_UdpTunnel Bdt_UdpTunnel; int32_t Bdt_UdpTunnelAddRef(Bdt_UdpTunnel* tunnel); int32_t Bdt_UdpTunnelRelease(Bdt_UdpTunnel* tunnel); #endif //__BDT_UDP_TUNNEL_H__
36.43
7
(translation_unit) "fndef __BDT_UDP_TUNNEL_H__\n#define __BDT_UDP_TUNNEL_H__\n#include "../BdtCore.h"\n\ntypedef struct Bdt_UdpTunnel Bdt_UdpTunnel;\n\nint32_t Bdt_UdpTunnelAddRef(Bdt_UdpTunnel* tunnel);\nint32_t Bdt_UdpTunnelRelease(Bdt_UdpTunnel* tunnel);\n\n#endif //__BDT_UDP_TUNNEL_H__\n" (preproc_ifdef) "fndef _...
48
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 36.43, "nodes": 36, "errors": 0, "source_hash": "21a1b795813207858869355bcfaf2e2b1c02d4255bc36f15eeffeced1a90f422", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef __B...
8,778
c
#pragma once #include <cstdint> struct IAudioClient; struct IAudioRenderClient; struct stb_vorbis; namespace Tempest { namespace Definition { struct AudioDatabase; } class AudioManager { public: AudioManager(); ~AudioManager(); void Update(); void LoadDatabase(const char* databaseName); pr...
16.53
34
(translation_unit) "#pragma once \n#include <cstdint> \n \nstruct IAudioClient; \nstruct IAudioRenderClient; \nstruct stb_vorbis; \n \nnamespace Tempest \n{ \nnamespace Definition { \n struct AudioDatabase; \n} \n \nclass AudioManager \n{ \npublic: \n AudioManager(); \n ~AudioManager(); \n \n void Update(); \n void Loa...
131
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 16.53, "nodes": 82, "errors": 0, "source_hash": "a2cebabb7ca50557f02e8724eae97a79cca597cd464edd90246ea1b1c42358bf", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,779
c
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GMM.framework/GMM */ #import <GMM/GMM-Structs.h> #import <GMM/XXUnknownSuperclass.h> @interface GMMBillingPointManager : XXUnknownSuperclass { void *_tracker; // 4 = 0x4 } + (id)sharedManager; // 0x40b49 - (void)u...
36.25
16
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2b.\n *\n * Source: /System/Library/PrivateFrameworks/GMM.framework/GMM\n */\n\n#import <GMM/GMM-Structs.h>\n#import <GMM/XXUnknownSuperclass.h>\n\n\n@interface GMMBillingPointManager : XXUnknownSuperclass {\n void *_tracker; // 4 = 0x4\n}\n+ (id)sh...
151
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.25, "nodes": 86, "errors": 0, "source_hash": "8ac32759c293f9acf0f7392c629f13bc808aa50f5a010126a187850846485c8f", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,780
c
// CrumbBarDemoDlg.h : header file // #pragma once #include "BlockCrumbBar.h" #include "afxwin.h" // CCrumbBarDemoDlg dialog class CCrumbBarDemoDlg : public CDialog { // Construction public: CCrumbBarDemoDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_CRUMBBARDEMO_DIALOG }; p...
33.04
73
(translation_unit) "// CrumbBarDemoDlg.h : header file\n//\n\n#pragma once\n#include "BlockCrumbBar.h"\n#include "afxwin.h"\n\n\n\n// CCrumbBarDemoDlg dialog\nclass CCrumbBarDemoDlg : public CDialog\n{\n// Construction\npublic:\n CCrumbBarDemoDlg(CWnd* pParent = NULL); // standard constructor\n\n// Dialog Data\n enum {...
566
33
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 33.04, "nodes": 395, "errors": 0, "source_hash": "e36bbee6f3876a27ebfd53d70c266e74033d131d20ea175bf2dd71140d2e9b43", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,781
c
#pragma once #include <memory> #include <xxhash.h> namespace zeek { /// \brief A deleter functor for XXH64 states struct XXH64StateDeleter final { using pointer = XXH64_state_t *; void operator()(XXH64_state_t *state) const; }; /// \brief A unique_ptr wrapper for XXH64 states using UniqueXXH64State = std::...
30.27
15
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include <xxhash.h>\n\nnamespace zeek {\n/// \brief A deleter functor for XXH64 states\nstruct XXH64StateDeleter final {\n using pointer = XXH64_state_t *;\n\n void operator()(XXH64_state_t *state) const;\n};\n\n/// \brief A unique_ptr wrapper for XXH64 states\...
87
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.27, "nodes": 57, "errors": 0, "source_hash": "c1fbedd78d2f5b41716b1ae5bba28f83a62c576ce9abc9d0140b05e2573951b7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,782
c
#pragma once #include <memory> #include <cstring> #include <boost/interprocess/mapped_region.hpp> #include <boost/interprocess/ipc/message_queue.hpp> #include <boost/interprocess/shared_memory_object.hpp> #include <boost/smart_ptr/make_unique.hpp> #include "page_manager/page_manager.h" class PackegeQueue { using...
34.91
34
(translation_unit) "#pragma once\n\n#include <memory>\n#include <cstring>\n#include <boost/interprocess/mapped_region.hpp>\n#include <boost/interprocess/ipc/message_queue.hpp>\n#include <boost/interprocess/shared_memory_object.hpp>\n#include <boost/smart_ptr/make_unique.hpp>\n\n#include "page_manager/page_manager.h"\n\...
261
11
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.91, "nodes": 179, "errors": 0, "source_hash": "e6afebf706b74058edf485bf66743126b1a785bad1267684229cd241e8a2195c", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,783
c
#pragma once #include "GameModes/RocketGameMode.h" class Empty final : public RocketGameMode { public: Empty() : RocketGameMode(typeid(*this)) {} void RenderOptions() override; bool IsActive() override; void Activate(bool active) override; std::string GetGameModeName() override; private: ...
23.73
15
(translation_unit) "#pragma once\n#include "GameModes/RocketGameMode.h"\n\n\nclass Empty final : public RocketGameMode\n{\npublic:\n Empty() : RocketGameMode(typeid(*this)) {}\n \n void RenderOptions() override;\n bool IsActive() override;\n void Activate(bool active) override;\n std::string GetGameMo...
113
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.73, "nodes": 68, "errors": 0, "source_hash": "f676cbfc541f811add8c60c50c4137cf998d41ab8d4d9ab712775f7252a63859", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,784
c
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000-2003 Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistri...
30.9
310
(translation_unit) "///////////////////////////////////////////////////////////////////////////\n//\n// Copyright (c) 2000-2003 Intel Corporation \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 ...
1,080
21
{"language": "c", "success": true, "metadata": {"lines": 310, "avg_line_length": 30.9, "nodes": 647, "errors": 0, "source_hash": "cbfcb38520896bafc51b0618bf0beb9fb4947a68808c565e979700e1faaf6bf1", "categorized_nodes": 484}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,785
c
// // Bridging-Header.h // Stickers // // Created by <NAME> on 7/20/20. // Copyright © 2020 <NAME>. All rights reserved. // #ifndef Bridging_Header_h #define Bridging_Header_h #import <Cocoa/Cocoa.h> #import <MASShortcut/Shortcut.h> #endif /* Bridging_Header_h */
21.33
12
(translation_unit) "//\n// Bridging-Header.h\n// Stickers\n//\n// Created by <NAME> on 7/20/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#ifndef Bridging_Header_h\n#define Bridging_Header_h\n\n#import <Cocoa/Cocoa.h>\n#import <MASShortcut/Shortcut.h>\n\n#endif /* Bridging_Header_h */\n" (comment) ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.33, "nodes": 11, "errors": 0, "source_hash": "de1477135716e49cb8bb63c372ca83930b7c65102617aeef4474ce792fb1c8c5", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef Br...
8,786
c
#define NAME "ooura-4gf" #define FORTRAN #include "doit.c"
18.67
3
(translation_unit) "#define NAME "ooura-4gf"\n#define FORTRAN\n#include "doit.c"\n" (preproc_def) "#define NAME "ooura-4gf"\n" (#define) "#define" (identifier) "NAME" (preproc_arg) ""ooura-4gf"" (preproc_def) "#define FORTRAN\n" (#define) "#define" (identifier) "FORTRAN" (preproc_include) "#in...
14
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 18.67, "nodes": 10, "errors": 0, "source_hash": "85f52a01a82c151a0e1d84c0a6987a301b23747cc38044d36040726471776602", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NAME...
8,787
c
#include <stdio.h> #include "cilk-internal.h" #include "debug.h" #include "sched_stats.h" #if SCHED_STATS static const char *enum_to_str(enum timing_type t) { switch (t) { case INTERVAL_WORK: return "working"; case INTERVAL_SCHED: return "scheduling"; case INTERVAL_IDLE: return...
30.51
121
(translation_unit) "#include <stdio.h>\n\n#include "cilk-internal.h"\n#include "debug.h"\n#include "sched_stats.h"\n\n#if SCHED_STATS\nstatic const char *enum_to_str(enum timing_type t) {\n switch (t) {\n case INTERVAL_WORK:\n return "working";\n case INTERVAL_SCHED:\n return "scheduling";\n c...
1,231
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 30.51, "nodes": 695, "errors": 0, "source_hash": "fd6a269fdaf013ed3e89963e337990267fe731cd9dcd7ecb62dfd02baf5947e4", "categorized_nodes": 503}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,788
c
#define COPASI_BUILD $Revision: 1.2 $
37
1
(translation_unit) "#define COPASI_BUILD $Revision: 1.2 $\n" (preproc_def) "#define COPASI_BUILD $Revision: 1.2 $\n" (#define) "#define" (identifier) "COPASI_BUILD" (preproc_arg) "$Revision: 1.2 $"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 37.0, "nodes": 4, "errors": 0, "source_hash": "d5b395857ddde3645079455bf92670de4287cbecaf1cecc87ff8282de16ffe51", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define COPASI...
8,789
c
// // ZJNetworkViewController.h // ZJKitTool // // Created by 邓志坚 on 2018/7/6. // Copyright © 2018年 kapokcloud. All rights reserved. // #import "ZJKitBaseController.h" @interface ZJNetworkViewController : ZJKitBaseController @end
22.4
10
(translation_unit) "//\n// ZJNetworkViewController.h\n// ZJKitTool\n//\n// Created by 邓志坚 on 2018/7/6.\n// Copyright © 2018年 kapokcloud. All rights reserved.\n//\n\n#import "ZJKitBaseController.h"\n\n@interface ZJNetworkViewController : ZJKitBaseController\n\n@end\n" (comment) "//" (comment) "// ZJNetworkViewC...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 10, "errors": 0, "source_hash": "989299b22f5dbadb58cb3506f977a693fdcd1bca0574bfe02c3b459514ad6724", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ZJKitBaseCo...
8,790
c
/*++ /* NAME /* read_wait 3 /* SUMMARY /* wait until descriptor becomes readable /* SYNOPSIS /* #include <iostuff.h> /* /* int read_wait(fd, timeout) /* int fd; /* int timeout; /* DESCRIPTION /* read_wait() blocks the current process until the specified file /* descriptor becomes readable, or until the deadline is exce...
23.67
92
(translation_unit) "/*++\n/* NAME\n/* read_wait 3\n/* SUMMARY\n/* wait until descriptor becomes readable\n/* SYNOPSIS\n/* #include <iostuff.h>\n/*\n/* int read_wait(fd, timeout)\n/* int fd;\n/* int timeout;\n/* DESCRIPTION\n/* read_wait() blocks the current process until the specified file\n/* descriptor becomes readab...
293
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 23.67, "nodes": 174, "errors": 0, "source_hash": "622e8bb6f43698cba15354697c0751140ed7efcdbb47c38b76da8ef0345b450a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,791
c
#include "edhoc/cose.h" #include "edhoc/edhoc.h" #include "crypto.h" #if defined(HACL) #include <EverCrypt_Curve25519.h> #include <Lib_RandomBuffer_System.h> #include <Hacl_Hash.h> #include <Hacl_HKDF.h> #include <Hacl_Ed25519.h> #include "ccm.h" int crypt_gen_keypair(cose_curve_t crv, cose_key_t *key) { int ret...
34.48
144
(translation_unit) "#include "edhoc/cose.h"\n#include "edhoc/edhoc.h"\n#include "crypto.h"\n\n#if defined(HACL)\n\n#include <EverCrypt_Curve25519.h>\n#include <Lib_RandomBuffer_System.h>\n#include <Hacl_Hash.h>\n#include <Hacl_HKDF.h>\n#include <Hacl_Ed25519.h>\n#include "ccm.h"\n\nint crypt_gen_keypair(cose_curve_t cr...
1,235
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 34.48, "nodes": 769, "errors": 0, "source_hash": "1d0c0f9b65bebc67600c11af418e56377673b89311a8a48e98aabff9bd1f7c5e", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,792
c
#ifndef _SN_PUB_H #define _SN_PUB_H #endif
13.33
3
(translation_unit) "#ifndef _SN_PUB_H\n#define _SN_PUB_H\n\n#endif\n" (preproc_ifdef) "#ifndef _SN_PUB_H\n#define _SN_PUB_H\n\n#endif" (#ifndef) "#ifndef" (identifier) "_SN_PUB_H" (preproc_def) "#define _SN_PUB_H\n" (#define) "#define" (identifier) "_SN_PUB_H" (#endif) "#endif"
8
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 13.33, "nodes": 7, "errors": 0, "source_hash": "1b78b4deec4bf1d938407534d807e123c4a00e2f4a9d2253f9fb373f481a96e4", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _SN...
8,793
c
#pragma once #include "../UJr2.h" #include "../MyLibrary/myDataStructures.h" namespace UJr2_funcs { namespace crossriver { class state { public: #define ITEM_NO 4 state() { data = '\0'; layer = 0; } char data; unsigned layer; void set(int location, bool state); void invert(int location...
23
46
(translation_unit) "#pragma once\n\n#include "../UJr2.h"\n#include "../MyLibrary/myDataStructures.h"\n\n\nnamespace UJr2_funcs {\n namespace crossriver {\n class state {\n public:\n#define ITEM_NO 4\n state() {\n data = '\0';\n layer = 0;\n }\n char data;\n unsigned layer;\n void set(int location, boo...
384
18
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.0, "nodes": 223, "errors": 0, "source_hash": "2b05e420eb54b1a0237773cd335f7645d6c9da1ec571e42b4e724b9720b03ba3", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,794
c
/* * Copyright (C) 2016 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that ...
28.12
48
(translation_unit) "/*\n *\nCopyright (C) 2016 <NAME>\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is ...
179
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 28.12, "nodes": 117, "errors": 0, "source_hash": "4741073d3e19cc6d90a409899947da8e449d32f30d17fea4072cc158f5933c1d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,795
c
#ifndef MAZE_WIN_H #define MAZE_WIN_H #include "data.h" void maze_print_easy(WINDOW*, const GameData); void maze_print_medium(WINDOW*, const GameData); void maze_print_hard(WINDOW*, const GameData); menu_state game_loop_maze(WINDOW *win, GameData *d, menu_state state); menu_state game_win_screen(WINDOW *win, const G...
36.44
9
(translation_unit) "#ifndef MAZE_WIN_H\n#define MAZE_WIN_H\n\n#include "data.h"\n\nvoid maze_print_easy(WINDOW*, const GameData);\nvoid maze_print_medium(WINDOW*, const GameData);\nvoid maze_print_hard(WINDOW*, const GameData);\nmenu_state game_loop_maze(WINDOW *win, GameData *d, menu_state state);\nmenu_state game_win...
109
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.44, "nodes": 76, "errors": 0, "source_hash": "6035987d7ea082929d8dc9ad1fb57845dfff50f404c781e7b53d825ab276a6d7", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
8,796
c
#include <stdio.h> #include <stdlib.h> void convert(int n, int base); int main(int argc, char *argv[]) { int n, base; printf("Convert "); scanf("%d",&n); printf("to base "); scanf("%d",&base); convert(n,base); printf("\n"); return 0; } void convert(int n, int base) { if(n!=0) { convert(n/base, base)...
13.42
24
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nvoid convert(int n, int base);\n\nint main(int argc, char *argv[])\n{\n int n, base;\n\n printf("Convert ");\n scanf("%d",&n);\n printf("to base ");\n scanf("%d",&base);\n \n convert(n,base);\n printf("\n");\n \n return 0;\n}\n\nvoid convert(int n, int base...
185
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 13.42, "nodes": 100, "errors": 0, "source_hash": "810a6adae773c4939f5026f10ab1e9e69a2b76ad8f5e48c55d6eda26b44bf10a", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,797
c
// glaive.c #include <weapon.h> inherit BLADE; void create() { set_name("鬼头刀", ({ "glaive" }) ); set_weight(20000); if( clonep() ) set_default_object(__FILE__); else { set("unit", "柄"); set("value", 1500); set("material", "steel"); set("long", "这是一把沈重的鬼头刀,刀柄上雕著 一个丑陋可怖的鬼头正裂开了嘴大笑。\n"); set("wield_msg",...
19.95
20
(translation_unit) "// glaive.c\n\n#include <weapon.h>\n\ninherit BLADE;\n\nvoid create()\n{\n set_name("鬼头刀", ({ "glaive" }) );\n set_weight(20000);\n if( clonep() )\n set_default_object(__FILE__);\n else {\n set("unit", "柄");\n set("value", 1500);\n set("material", "steel");\n set("long", "这是一把沈重的鬼头刀,刀柄上雕著 一个丑陋可...
184
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.95, "nodes": 72, "errors": 0, "source_hash": "ea01199b24421d73241035e613c58b85e7e3c582aa18a32e373ee65ca428c658", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,798
c
#ifndef LEXER_H #define LEXER_H #include "util.h" #include "StringReader.h" #include "RegEx.h" #include "Symbol.h" #include <string> class Lexer { public: Lexer(); Lexer(std::string inputString); ~Lexer(); void addRegEx(std::string regExString); void setInput(std::string inputString); Symbol next(); v...
18.39
23
(translation_unit) "#ifndef LEXER_H\n#define LEXER_H\n\n#include "util.h"\n#include "StringReader.h"\n#include "RegEx.h"\n#include "Symbol.h"\n\n#include <string>\n\nclass Lexer {\n public:\n Lexer();\n Lexer(std::string inputString);\n ~Lexer();\n void addRegEx(std::string regExString);\n void setInput(std::strin...
164
7
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 18.39, "nodes": 96, "errors": 0, "source_hash": "9441ce6b925c0a93e17af490bc750ed52c00038253fe1b5cff9599ca9139b50e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,799