language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef QM_OPERATOR_H #define QM_OPERATOR_H #include "static_string.h" template<class F,class... Args> struct Op { static constexpr auto name=F::template get_name<Args...>(); static constexpr auto get_name(){return name;} __host__ __device__ Op(F,Args...){} __host__ __device__ Op(){} }; template<class F> st...
29.17
48
(ERROR) "#ifndef QM_OPERATOR_H\n#define QM_OPERATOR_H\n\n#include "static_string.h"\n\ntemplate<class F,class... Args>\nstruct Op\n{\n static constexpr auto name=F::template get_name<Args...>();\n static constexpr auto get_name(){return name;}\n\n __host__ __device__ Op(F,Args...){}\n __host__ __device__ Op(){}\n};...
488
39
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.17, "nodes": 301, "errors": 0, "source_hash": "135c55fb1991d9bd11e0637b206df6a714b8b217607e369dcd15f10166ec46d6", "categorized_nodes": 184}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QM_OPERATOR_H\n#d...
13,100
c
// // ZkNavigationController.h // ZkDemo // // Created by kui on 2020/9/23. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ZkNavigationController : UINavigationController @end NS_ASSUME_NONNULL_END
18.64
11
(translation_unit) "//\n// ZkNavigationController.h\n// ZkDemo\n//\n// Created by kui on 2020/9/23.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZkNavigationController : UINavigationController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// ZkNavigationController.h" ...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.64, "nodes": 15, "errors": 0, "source_hash": "3d07cd3b628623843d1b2361abb20a28f506ba505e590bb15a719a4ea5fbcbb6", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
13,101
c
/** * \file Network.h * \brief Network Plug-in workhorse Class. * */ #include "../../common/Public/PBPlugin.h" #pragma once #include <winsock2.h> #include <ws2tcpip.h> #include <Wininet.h> static TCHAR* tcNetworkEventNames[] = { L"connectionInformation", NULL }; enum NetworkState {NETWORK_INITIALISING, ...
30.63
89
(translation_unit) "/**\n * \file Network.h\n * \brief Network Plug-in workhorse Class. \n * \n */\n\n#include "../../common/Public/PBPlugin.h"\n#pragma once\n#include <winsock2.h>\n#include <ws2tcpip.h>\n#include <Wininet.h>\n\nstatic TCHAR* tcNetworkEventNames[] = \n{\n L"connectionInformation",\n NULL\n};\n\nenu...
280
2
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 30.63, "nodes": 175, "errors": 0, "source_hash": "4f101b72d5db4fa79b8d93b789cd4ac9c5cc48584b7e5a1b4e2ad189eb0a8773", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,102
c
#pragma once #include <core/mapi/extraPropTags.h> namespace ui { namespace mapiui { void initCallbacks(); LPSPropTagArray GetExcludedTags(_In_opt_ LPSPropTagArray lpTagArray, _In_opt_ LPMAPIPROP lpProp, bool bIsAB); void ExportMessages(_In_ LPMAPIFOLDER lpFolder, HWND hWnd); _Check_return_ HRESULT WriteAtt...
37.73
37
(translation_unit) "#pragma once\n#include <core/mapi/extraPropTags.h>\n\nnamespace ui\n{\n namespace mapiui\n {\n void initCallbacks();\n\n LPSPropTagArray GetExcludedTags(_In_opt_ LPSPropTagArray lpTagArray, _In_opt_ LPMAPIPROP lpProp, bool bIsAB);\n\n void ExportMessages(_In_ LPMAPIFOLDER lpFolder, HWND hWnd);\n ...
328
31
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.73, "nodes": 242, "errors": 0, "source_hash": "2d56e0281b71b0dca03c175a4016964e9042332e48652e2e337239a93d8c396b", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,103
c
/* * This file is part of the coreboot project. * * Copyright (C) 2017 Intel Corp. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distri...
33.25
83
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2017 Intel Corp.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; version 2 of the License.\n...
453
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 33.25, "nodes": 291, "errors": 0, "source_hash": "77c0250d5b3162740141aebc35549e7e8dfb7530268644d0ad26534f42244f6a", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,104
c
#pragma once #include <stdexcept> #include <string> namespace isce3 { //! The isce3::except namespace namespace except { struct SrcInfo { const char* file; const int line; const char* func; }; // macro-expanded pseudo-constructors #define ISCE_SRCINFO() { __FILE__, __LINE__, ...
33.65
31
(translation_unit) "#pragma once\n\n#include <stdexcept>\n#include <string>\n\nnamespace isce3 {\n //! The isce3::except namespace\n namespace except {\n\n struct SrcInfo {\n const char* file;\n const int line;\n const char* func;\n };\n\n// macro-expanded pseudo-constructors\n#define I...
249
20
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.65, "nodes": 168, "errors": 0, "source_hash": "4cfa5bcff50004b7d94d53a996810c1bd995a66d144140a5dea7f9c58101cdc6", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,105
c
/* Copyright 2021 <NAME> SPDX-License-Identifier: Apache-2.0 */ #include <avr/io.h> //Access bits like variables struct _io_reg { uint8_t b0 : 1; uint8_t b1 : 1; uint8_t b2 : 1; uint8_t b3 : 1; uint8_t b4 : 1; uint8_t b5 : 1; uint8_t b6 : 1; uint8_t b7 : 1; }; #define REGISTER_BIT(p...
23.48
25
(translation_unit) "/*\n\nCopyright 2021 <NAME>\nSPDX-License-Identifier: Apache-2.0\n\n*/\n\n#include <avr/io.h>\n\n//Access bits like variables\nstruct _io_reg\n{\n uint8_t b0 : 1;\n uint8_t b1 : 1;\n uint8_t b2 : 1;\n uint8_t b3 : 1;\n uint8_t b4 : 1;\n uint8_t b5 : 1;\n uint8_t b6 : 1;\n uin...
104
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.48, "nodes": 77, "errors": 0, "source_hash": "f2ad5135881292f5477f90e58697a41226748cb606f7e6ac3b63ecb71320ad6f", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,106
c
/* SPDX-License-Identifier: MIT */ /* * Copyright(c) 2021 Sanpe <<EMAIL>> */ #ifndef __GX6605S_CIR_H__ #define __GX6605S_CIR_H__ #include <gx6605s.h> enum gx6605s_cir_regsiters { GX6605S_CIR_CNTL = 0x00, GX6605S_CIR_INT = 0x04, GX6605S_CIR_FIFO = 0x08, GX6605S_CIR_CLK = 0x0c, }; /***...
36.04
23
(translation_unit) "/* SPDX-License-Identifier: MIT */\n/*\n * Copyright(c) 2021 Sanpe <<EMAIL>>\n */\n\n#ifndef __GX6605S_CIR_H__\n#define __GX6605S_CIR_H__\n\n#include <gx6605s.h>\n\nenum gx6605s_cir_regsiters {\n GX6605S_CIR_CNTL = 0x00,\n GX6605S_CIR_INT = 0x04,\n GX6605S_CIR_FIFO = 0x08,\n GX...
71
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.04, "nodes": 58, "errors": 0, "source_hash": "43f26361f261e6f62b55a3746a004c3d4c98e83141e5199af6e184cb3cd431ce", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,107
c
#include "flags.h" #include "stddef.h" #include "stdint.h" namespace vcrtl::_msvc { enum class win32_exception_flag: uint32_t { non_continuable = 0x01, unwinding = 0x02, exit_unwind = 0x04, stack_invalid = 0x08, nested_call = 0x10, target_unwind = 0x20, collided_unwind = 0x40, }; struct win32_exception_record...
25.02
45
(translation_unit) "#include "flags.h"\n#include "stddef.h"\n#include "stdint.h"\n\nnamespace vcrtl::_msvc {\n\nenum class win32_exception_flag: uint32_t\n{\n non_continuable = 0x01,\n unwinding = 0x02,\n exit_unwind = 0x04,\n stack_invalid = 0x08,\n nested_call = 0x10,\n target_unwind = 0x20,\n collided_unwind = 0x40,...
256
9
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.02, "nodes": 185, "errors": 0, "source_hash": "ee4f8f7e3ada952ae0ee64f4dca643740ab5651170b751e8c3eac97e7417c1e4", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,108
c
/* ==================================================================== * Copyright (c) 1989-2000 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
28.54
153
(translation_unit) "/* ====================================================================\n * Copyright (c) 1989-2000 Carnegie Mellon University. All rights \n * reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions...
747
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 28.54, "nodes": 504, "errors": 0, "source_hash": "6345290a84d0eb45bab39e3fbfeb48d64b9c216d2079592a10f0a1e8b628851c", "categorized_nodes": 374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,109
c
#include <arduino.h> class OseppTBMotor { public: OseppTBMotor(uint8_t dir_pin, uint8_t pwm_pin); void forward(uint8_t speed); void backward(uint8_t speed); void SetSpeed(int speed); private: uint8_t _dir_pin, _pwm_pin; };
21.45
11
(translation_unit) "#include <arduino.h>\nclass OseppTBMotor\n{\n public:\n OseppTBMotor(uint8_t dir_pin, uint8_t pwm_pin);\n void forward(uint8_t speed);\n void backward(uint8_t speed);\n void SetSpeed(int speed);\n private:\n uint8_t _dir_pin, _pwm_pin;\n};\n" (preproc_include) "#include <arduino.h...
71
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.45, "nodes": 44, "errors": 0, "source_hash": "405d5e40dc427b9cac9297060dfc4489d28e9974b5941ea2c0e16678c3c2cd8a", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,110
c
#include <stdio.h> #include <time.h> #include "db.c" #include "db.h" #define FILE_NAME "FILE_TEST" int main() { // Write sample people with their name and ages to file. char people[4][100] = {"Ivan", "Sergey", "Nikolas", "Daniel"}; db_open_write(FILE_NAME); add_person(0, people[0], 18); add_person...
31.9
50
(translation_unit) "#include <stdio.h>\n#include <time.h>\n#include "db.c"\n#include "db.h"\n\n#define FILE_NAME "FILE_TEST"\n\nint main() {\n // Write sample people with their name and ages to file.\n char people[4][100] = {"Ivan", "Sergey", "Nikolas", "Daniel"};\n db_open_write(FILE_NAME);\n add_person(0,...
503
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.9, "nodes": 252, "errors": 0, "source_hash": "0f1ee55610b55530fa108ed4cc68b2fff68cd450105aca591f6639da7837fc6d", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,111
c
#ifndef RTC_H #define RTC_H void RTC_Init(void); void RTC_GetTime(unsigned char *h, unsigned char *m, unsigned char *s); void RTC_SetTime(unsigned char Buffer[]); #endif /* RTC_H */
29.33
6
(translation_unit) "#ifndef RTC_H\n#define RTC_H\n\nvoid RTC_Init(void);\n\nvoid RTC_GetTime(unsigned char *h, unsigned char *m, unsigned char *s);\n\nvoid RTC_SetTime(unsigned char Buffer[]);\n\n#endif /* RTC_H */\n" (preproc_ifdef) "#ifndef RTC_H\n#define RTC_H\n\nvoid RTC_Init(void);\n\nvoid RTC_GetTime(unsigned c...
66
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.33, "nodes": 51, "errors": 0, "source_hash": "d4b6b13abd3db87f19867fb2566a6d93c69cc4208a2d5758d5e8fb04e1c484a2", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
13,112
c
/********** Copyright (c) 2018, Xilinx, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
39.67
49
(translation_unit) "/**********\nCopyright (c) 2018, Xilinx, Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice,\nthis li...
162
11
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 39.67, "nodes": 93, "errors": 0, "source_hash": "6205ca1fbf6165bf9e8f895372ab2d4954c24c4399c48da37ce5cc5e6e99e6de", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,113
c
#import <Foundation/Foundation.h> #import "DCEvent+DC.h" #import "DCMainEvent+DC.h" #import "DCBof.h" typedef enum { EDCEventStrategyPrograms = 0, EDCEventStrategyBofs = 1, EDCEventStrategySocialEvents, EDCEeventStrategyFavorites, EDCEventStrategySharedSchedule } EDCEventStrategy; @interface DCEventStrate...
32.5
26
(translation_unit) "#import <Foundation/Foundation.h>\n#import "DCEvent+DC.h"\n#import "DCMainEvent+DC.h"\n#import "DCBof.h"\n\ntypedef enum {\n EDCEventStrategyPrograms = 0,\n EDCEventStrategyBofs = 1,\n EDCEventStrategySocialEvents,\n EDCEeventStrategyFavorites,\n EDCEventStrategySharedSchedule\n} EDCEventStrate...
211
32
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.5, "nodes": 148, "errors": 0, "source_hash": "903b2d30eb52e46bbec9c77d17550cb68e446bf854609d599766a856e38c590d", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,114
c
/* Header files pwd.h - https://www.mkssoftware.com/docs/man5/struct_passwd.5.asp grp.h - http://pubs.opengroup.org/onlinepubs/7908799/xsh/grp.h.html stdio.h - For output */ #include <stdio.h> #include <pwd.h> #include <grp.h> /* Helper function */ int help() { /* Print supported options */ printf("Usage: ...
36.17
89
(translation_unit) "/* Header files\n pwd.h - https://www.mkssoftware.com/docs/man5/struct_passwd.5.asp\n grp.h - http://pubs.opengroup.org/onlinepubs/7908799/xsh/grp.h.html\n stdio.h - For output */\n#include <stdio.h>\n#include <pwd.h>\n#include <grp.h>\n\n/* Helper function */\nint help() {\n\n /* Print suppor...
921
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 36.17, "nodes": 473, "errors": 0, "source_hash": "57e787e90bf7657db0496bf7c01ccb90a71dac3b5cd43ca9a548f9d7a63bfffe", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,115
c
long double foo(long double value) { long double const copy = value; return copy; } int main(int argc, char *argv[]) { long double const zero = 0.0L; long double const zero_copy = foo(zero); long double const positive = 3.14159265358979323846264338328L; long double const positive_copy = foo(positive); ...
30.86
14
(translation_unit) "long double foo(long double value)\n{\n long double const copy = value;\n return copy;\n}\n\nint main(int argc, char *argv[]) {\n long double const zero = 0.0L;\n long double const zero_copy = foo(zero);\n\n long double const positive = 3.14159265358979323846264338328L;\n long double const pos...
140
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.86, "nodes": 95, "errors": 0, "source_hash": "fd802ec693b84a8bddbe167c2aec5532c0b1c6432387e3a7ccc1bc3b9462d678", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "lo...
13,116
c
// // DYTableViewCell.h // DevelopmentDemoTest // // Created by i-HygeiaiMac on 15/5/22. // Copyright (c) 2015年 亚辉. All rights reserved. // #import <UIKit/UIKit.h> @interface DYTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *iconTextLabel; @end
24.36
11
(translation_unit) "//\n// DYTableViewCell.h\n// DevelopmentDemoTest\n//\n// Created by i-HygeiaiMac on 15/5/22.\n// Copyright (c) 2015年 亚辉. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DYTableViewCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *iconTextLabel;\n@end\n" ...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.36, "nodes": 25, "errors": 0, "source_hash": "84df938e3f7a3d6a5d4aa42704115bed360887f09560d1b14a2dd310e6fc7db2", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
13,117
c
// // Creation.h // Sporepedia // // Created by <NAME> on 2/27/09. // Copyright 2009 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface Creation : NSObject { NSMutableString *ident; NSMutableString *creationName; UIImage *thumb; UIImage *image; NSMutableString *author; NSDate *created; doub...
32.04
52
(translation_unit) "//\n// Creation.h\n// Sporepedia\n//\n// Created by <NAME> on 2/27/09.\n// Copyright 2009 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface Creation : NSObject {\n NSMutableString *ident;\n NSMutableString *creationName;\n UIImage *thumb;\n UIImage *image;\n NSMutableStri...
505
56
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.04, "nodes": 356, "errors": 0, "source_hash": "e35b573ddcf07a926d7b1805fbc2bfce53b220457d40aa1884efdac862e3b771", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
13,118
c
/* * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab * Copyright (C) 2008-2008 - INRIA - <NAME> * * This file must be used under the terms of the CeCILL. * This source file is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms ...
28.65
26
(translation_unit) "/*\n * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab\n * Copyright (C) 2008-2008 - INRIA - <NAME>\n *\n * This file must be used under the terms of the CeCILL.\n * This source file is licensed as described in the file COPYING, which\n * you should have received as part of this...
115
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.65, "nodes": 70, "errors": 0, "source_hash": "93c3433837bffe1fcd51da08b62e2093f0fd7b99fe54c0bb3c635b277c942e33", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,119
c
int test(int, int);
19
1
(translation_unit) "int test(int, int);\n" (declaration) "int test(int, int);" (primitive_type) "int" (function_declarator) "test(int, int)" (identifier) "test" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 19.0, "nodes": 9, "errors": 0, "source_hash": "7668eaf70942e7623e486727dbec7e97afcf9d2c716f8db0b7ccaff6207a3d4b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int test(int, ...
13,120
c
#ifndef PROCESSOR_H #define PROCESSOR_H class Processor { public: float Utilization(); // TODO: See src/processor.cpp // TODO: Declare any necessary private members private: float prev_usertime ; float prev_nicetime ; float prev_systemtime ; float prev_idletime ; float pre...
24.91
22
(translation_unit) "#ifndef PROCESSOR_H\n#define PROCESSOR_H\n\nclass Processor {\n public:\n float Utilization(); // TODO: See src/processor.cpp\n\n // TODO: Declare any necessary private members\n private:\n float prev_usertime ;\n float prev_nicetime ;\n float prev_systemtime ;\n float pr...
84
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.91, "nodes": 55, "errors": 0, "source_hash": "6dc94a40cb58b5f64d7a5548975ead66664fabfbdb3ec6699b861602eaf4b61e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,121
c
/* $NetBSD: supcmisc.c,v 1.8 1997/07/08 04:37:11 mikel Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission noti...
25.33
313
(translation_unit) "/* $NetBSD: supcmisc.c,v 1.8 1997/07/08 04:37:11 mikel Exp $ */\n\n/*\n * Copyright (c) 1992 Carnegie Mellon University\n * All Rights Reserved.\n * \n * Permission to use, copy, modify and distribute this software and its\n * documentation is hereby granted, provided that both the copyright\n * not...
2,385
6
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 25.33, "nodes": 1423, "errors": 0, "source_hash": "83a2c4b30b1df94a7003514c3cb448e83f2c934dd566e8d4fea324709f301087", "categorized_nodes": 965}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,122
c
// // XYHomeContainerView.h // PandaTVHomeDemo // // Created by mofeini on 16/12/8. // Copyright © 2016年 com.test.demo. All rights reserved. // #import <UIKit/UIKit.h> @class XYHomeContainerView; @protocol XYHomeContainerViewDelegate <UICollectionViewDelegate> @optional /** * @explain 滚动containerView时对应的索引, 从0开...
26.73
37
(translation_unit) "//\n// XYHomeContainerView.h\n// PandaTVHomeDemo\n//\n// Created by mofeini on 16/12/8.\n// Copyright © 2016年 com.test.demo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class XYHomeContainerView;\n@protocol XYHomeContainerViewDelegate <UICollectionViewDelegate>\n\n@optional\n/**\n * ...
164
26
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.73, "nodes": 109, "errors": 0, "source_hash": "3a6bdbbd0c3e5aa1d1579697a4542880f1f066c3dd99380125d2d855632758bc", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
13,123
c
#pragma once #ifndef RemoveDC_h__20160814 #define RemoveDC_h__20160814 #include "Implement/ProcessorImpl.h" namespace Yap { class DcRemover : public ProcessorImpl { IMPLEMENT_SHARED(DcRemover) public: DcRemover(); DcRemover(const DcRemover& rhs); protected: ~DcRemover(); virtual bool Input(const wc...
19.11
19
(translation_unit) "#pragma once\n\n#ifndef RemoveDC_h__20160814\n#define RemoveDC_h__20160814\n\n#include "Implement/ProcessorImpl.h"\n\nnamespace Yap\n{\n class DcRemover :\n public ProcessorImpl\n {\n IMPLEMENT_SHARED(DcRemover)\n public:\n DcRemover();\n DcRemover(const DcRemover& rhs);\n\n protected:\n ~DcRem...
101
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.11, "nodes": 59, "errors": 0, "source_hash": "e53c2d70cbe4c158d804ad1fbd69853241f78b4400fdf204ce3dc23bc5dfcc32", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,124
c
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * Chipset module for Chrome EC. * * This is intended to be a platform/chipset-neutral interface, implemented by * all main chipsets (x86...
31.97
99
(translation_unit) "/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n/*\n * Chipset module for Chrome EC.\n *\n * This is intended to be a platform/chipset-neutral interface, implemented ...
307
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 31.97, "nodes": 187, "errors": 0, "source_hash": "e05f8412415932e4b9d75892cb92de5f7b405f4ed76bfbc9f46f4d1c64073f4a", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,125
c
/* * v1alpha1_flow_schema_status.h * * FlowSchemaStatus represents the current state of a FlowSchema. */ #ifndef _v1alpha1_flow_schema_status_H_ #define _v1alpha1_flow_schema_status_H_ #include <string.h> #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include ".....
40.92
25
(translation_unit) "/*\n * v1alpha1_flow_schema_status.h\n *\n * FlowSchemaStatus represents the current state of a FlowSchema.\n */\n\n#ifndef _v1alpha1_flow_schema_status_H_\n#define _v1alpha1_flow_schema_status_H_\n\n#include <string.h>\n#include "../external/cJSON.h"\n#include "../include/list.h"\n#include "../incl...
125
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.92, "nodes": 88, "errors": 0, "source_hash": "859d4fcfded494c965911265ab0b4f24b357f6ef18086e044ba5aea0d62b4f7d", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,126
c
/* * Arm SCP/MCP Software * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MORELLO_FIP_H #define MORELLO_FIP_H #include <mod_fip.h> enum mod_morello_fip_toc_entry_type { MOD_MORELLO_FIP_TOC_ENTRY_MCP_BL2 = MOD_FIP_TOC_ENTRY_COUNT, ...
25.69
13
(translation_unit) "/*\n * Arm SCP/MCP Software\n * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef MORELLO_FIP_H\n#define MORELLO_FIP_H\n\n#include <mod_fip.h>\n\nenum mod_morello_fip_toc_entry_type {\n MOD_MORELLO_FIP_TOC_ENTRY_MC...
25
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.69, "nodes": 18, "errors": 0, "source_hash": "3b30559d3c42bed2472c6bb5c432605f4ab9c741d2ab318a4b342eaaa5988499", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,127
c
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #include <stdint.h> #include <libdragon.h> static resolution_t res = RESOLUTION_320x240; static bitdepth_t bit = DEPTH_32_BPP; int filesize( FILE *pFile ) { fseek( pFile, 0, SEEK_END ); int lSize = ftell( pFile ); rewind( pFile...
38.55
128
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <malloc.h>\n#include <string.h>\n#include <stdint.h>\n#include <libdragon.h>\n\nstatic resolution_t res = RESOLUTION_320x240;\nstatic bitdepth_t bit = DEPTH_32_BPP;\n\nint filesize( FILE *pFile )\n{\n fseek( pFile, 0, SEEK_END );\n int lSize = ...
1,327
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 38.55, "nodes": 722, "errors": 0, "source_hash": "21624cb00bbb0bf494299b78fc7edb3e1d755d210385c4094f01d91ea0df0aae", "categorized_nodes": 548}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,128
c
// SPDX-FileCopyrightText: 2021 deroad <<EMAIL>> // SPDX-License-Identifier: LGPL-3.0-only #ifndef RZ_XOR_H #define RZ_XOR_H #include <rz_types.h> #define RZ_HASH_XOR8_DIGEST_SIZE 1 #define RZ_HASH_XOR_BLOCK_LENGTH 0 typedef ut8 RzXor8; bool rz_xor8_init(RzXor8 *ctx); bool rz_xor8_update(RzXor8 *ctx, const ut8 *da...
34.59
17
(translation_unit) "// SPDX-FileCopyrightText: 2021 deroad <<EMAIL>>\n// SPDX-License-Identifier: LGPL-3.0-only\n\n#ifndef RZ_XOR_H\n#define RZ_XOR_H\n\n#include <rz_types.h>\n\n#define RZ_HASH_XOR8_DIGEST_SIZE 1\n#define RZ_HASH_XOR_BLOCK_LENGTH 0\n\ntypedef ut8 RzXor8;\n\nbool rz_xor8_init(RzXor8 *ctx);\nbool rz_xor8...
150
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.59, "nodes": 116, "errors": 0, "source_hash": "f0714ed0697b599af68877c97239ed6e00651d3df88ecce22a9b203bc3599fe9", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,129
c
/* Variables By: randerson112358 */ #include <stdio.h> int main(){ int a; float b; char c; double d; /*printf("This is a int %d \n", a); printf("This is a float %.1f \n", b); printf("This is a char %c \n", c); printf("This is a double %.2lf \n", d);*/ printf("Enter value for char variable \n");...
15.58
36
(translation_unit) "/*\n Variables\n By: randerson112358\n*/\n\n#include <stdio.h>\n\nint main(){\n \n int a;\n float b;\n char c;\n double d;\n \n \n /*printf("This is a int %d \n", a);\n printf("This is a float %.1f \n", b);\n printf("This is a char %c \n", c);\n printf("This is a double %.2lf \n", d);*/\n \n pri...
164
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 15.58, "nodes": 75, "errors": 0, "source_hash": "0eab4b43f630c39c1d333d40f07d87d33ec01b49efcdc31e92777d276a916832", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,130
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:51:25 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion * classdump-dyld is licensed under GPLv3, Copyrig...
43.5
22
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:51:25 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion\n* classdump-dyld is lice...
145
13
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 43.5, "nodes": 82, "errors": 0, "source_hash": "83eef84f8902a7cdfea32aed0b8dbea82aa8dcf5449365ac1dc51b6a1122be2e", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Na...
13,131
c
/****************************************************************************** * @section DESCRIPTION * * This routine handles the startup tasks for the image driver. *****************************************************************************/ #include <vic_driver_image.h> /************************************...
37.52
25
(translation_unit) "/******************************************************************************\n * @section DESCRIPTION\n *\n * This routine handles the startup tasks for the image driver.\n *****************************************************************************/\n\n#include <vic_driver_image.h>\n\n/********...
98
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 37.52, "nodes": 55, "errors": 0, "source_hash": "000ea711cb28fd3403e5fb06b6a86e82e2fce940c6679a2af3f2b355675d0373", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,132
c
#pragma once #include "../Core/Span.hpp" #include "../Types.hpp" #include "Object.h" namespace OpenLoco { #pragma pack(push, 1) struct TownNamesObject { struct Unk { uint8_t count; uint8_t fill; uint16_t offset; }; static constexpr auto kObje...
25.46
26
(translation_unit) "#pragma once\n\n#include "../Core/Span.hpp"\n#include "../Types.hpp"\n#include "Object.h"\n\nnamespace OpenLoco\n{\n#pragma pack(push, 1)\n struct TownNamesObject\n {\n struct Unk\n {\n uint8_t count;\n uint8_t fill;\n uint16_t offset;\n };...
170
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.46, "nodes": 103, "errors": 0, "source_hash": "946bfe6fa858ceed76db91f02b5f63afd84c43da77741c406326690de368d62a", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,133
c
#ifndef __CNodeActivity_H__ #define __CNodeActivity_H__ #include "CNodeListener.h" #define JSActCarClassHead EE(JSPkgName,JSActName) #define JSActNameStr FF(JSActName) #include JSActCarClassHead #include <elastos/droid/app/Activity.h> #include <elastos/droid/os/Handler.h> using Elastos::Droid::App::Activity; using...
26.04
73
(translation_unit) "#ifndef __CNodeActivity_H__\n#define __CNodeActivity_H__\n\n#include "CNodeListener.h"\n\n#define JSActCarClassHead EE(JSPkgName,JSActName)\n#define JSActNameStr FF(JSActName)\n\n#include JSActCarClassHead\n\n#include <elastos/droid/app/Activity.h>\n#include <elastos/droid/os/Handler.h>\n\nusing Ela...
454
14
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 26.04, "nodes": 266, "errors": 0, "source_hash": "c14d3cd566299424aebc68d2b8182394271bf867a171e76b8a67ab33cf6feeb2", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,134
c
/************************************************************************* * * Copyright (c) 2016-2019, Klaralvdalens Datakonsult AB (KDAB) * All rights reserved. * * See the LICENSE.txt file shipped along with this file for the license. * *************************************************************************...
35.32
19
(translation_unit) "/*************************************************************************\n *\n * Copyright (c) 2016-2019, Klaralvdalens Datakonsult AB (KDAB)\n * All rights reserved.\n *\n * See the LICENSE.txt file shipped along with this file for the license.\n *\n **********************************************...
77
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.32, "nodes": 47, "errors": 0, "source_hash": "f2a9ad739ce43d0878a799c54dcec0669a0a1e1deb6f06f6848939cad95a06e6", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,135
c
// Copyright (c) 2014 The renderer authors. All rights reserved. // Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef RENDERER_SEO_DISPLAY_HANDLER_H_ #define RENDERER_SEO_DISPLAY_HANDLER_H_ #include <string> #include <vector> #include "include/cef_display_ha...
35.6
20
(translation_unit) "// Copyright (c) 2014 The renderer authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that\n// can be found in the LICENSE file.\n\n#ifndef RENDERER_SEO_DISPLAY_HANDLER_H_\n#define RENDERER_SEO_DISPLAY_HANDLER_H_\n\n#include <string>\n#include <vector>\n\n#i...
93
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.6, "nodes": 54, "errors": 0, "source_hash": "17951cd00bc840efbc5673468918999093bde5d006d8fe2ceb9bf2d76da7ddc4", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
13,136
c
#ifndef DEDITAREG_H #define DEDITAREG_H #include "ui_deditareg.h" class dEditAReg : public Q3MainWindow, public Ui::dEditAReg { Q_OBJECT public: dEditAReg(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::WType_TopLevel); ~dEditAReg(); aListViewItem *item; aAliasEditor *al; p...
22.95
22
(translation_unit) "#ifndef DEDITAREG_H\n#define DEDITAREG_H\n\n#include "ui_deditareg.h"\n\n\nclass dEditAReg : public Q3MainWindow, public Ui::dEditAReg\n{\n Q_OBJECT\n\npublic:\n dEditAReg(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::WType_TopLevel);\n ~dEditAReg();\n\n aListViewIt...
158
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.95, "nodes": 100, "errors": 0, "source_hash": "bc6fecad926e61b572e30b18bea0878091447b76315c8c7f121817748d3dd04d", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,137
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "DYPShaderSourceDocument.h" @class IDEEditorDocument, NSString, NSURL; @interface GPUShaderSourceDocument : NSObject <DYPShaderSourceDocument> { IDEEdi...
35.12
25
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "DYPShaderSourceDocument.h"\n\n@class IDEEditorDocument, NSString, NSURL;\n\n@interface GPUShaderSourceDocument : NSObject <DYPSh...
231
27
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.12, "nodes": 148, "errors": 0, "source_hash": "328948385ec607d5d02228e6bf65e442c5dbcfe61d99869957a9a92116dce5f3", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,138
c
/* * GECO — Grid Engine Cgroup Orchestrator * geco-cgroup-release.c * * Standalone program that removes abandoned cgroup subgroups * * Copyright © 2015 * Dr. <NAME>, University of Delaware * * $Id$ */ #include "GECOCGroup.h" #include "GECOLog.h" #include <getopt.h> const struct option geco_cli_optio...
27.13
127
(translation_unit) "/*\n * GECO — Grid Engine Cgroup Orchestrator\n * geco-cgroup-release.c\n * \n * Standalone program that removes abandoned cgroup subgroups\n *\n * Copyright © 2015\n * Dr. <NAME>, University of Delaware\n *\n * $Id$\n */\n\n#include "GECOCGroup.h"\n#include "GECOLog.h"\n#include <getopt.h>\n...
758
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 27.13, "nodes": 379, "errors": 0, "source_hash": "d9603f14ac81b351f287fac9232731562c4327b79304926e89c48a53f702b99a", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "clu...
13,139
c
/* MIT License Copyright (c) 2015 <NAME> <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 rights to use, copy,...
36.45
84
(translation_unit) "/*\n MIT License\n\n Copyright (c) 2015 <NAME> <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, including without limitation t...
544
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 36.45, "nodes": 319, "errors": 0, "source_hash": "bef9be848c0c267dd6de68a052c1fa5f7e7cf797d36608363086f2c8aaf86739", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,140
c
#ifndef VEC6_HARDWARECONTROLLER_H #define VEC6_HARDWARECONTROLLER_H #include <ros/ros.h> // Message data-types #include <geometry_msgs/PointStamped.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/JointState.h> #include "uwv_control/floatMultiArray.h" #include "vec6_config.h" #include "vec6_controller.h" #inclu...
28.7
74
(translation_unit) "#ifndef VEC6_HARDWARECONTROLLER_H\n#define VEC6_HARDWARECONTROLLER_H\n\n#include <ros/ros.h>\n\n// Message data-types\n#include <geometry_msgs/PointStamped.h>\n#include <sensor_msgs/Imu.h>\n#include <sensor_msgs/JointState.h>\n#include "uwv_control/floatMultiArray.h"\n\n#include "vec6_config.h"\n#in...
209
10
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 28.7, "nodes": 128, "errors": 0, "source_hash": "842c7e782aa55ec9a0d081a33a9e9bb4662a109225d2234e60dc41383fce030a", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,141
c
// // glitch.h // SplitFilterDemo // // Created by 胡阳 on 2020/4/24. // Copyright © 2020 胡阳. All rights reserved. // 统一设置 float 类型为高精度 precision highp float; // 输入的纹理 uniform sampler2D inputTexture; // 传递过来的纹理坐标 varying vec2 v_textureCoordinate; // 传递进来的时间 uniform float time; // 定义一个常量 PI const float PI = 3.14159...
29.33
57
(translation_unit) "//\n// glitch.h\n// SplitFilterDemo\n//\n// Created by 胡阳 on 2020/4/24.\n// Copyright © 2020 胡阳. All rights reserved.\n\n// 统一设置 float 类型为高精度\nprecision highp float;\n// 输入的纹理\nuniform sampler2D inputTexture;\n// 传递过来的纹理坐标\nvarying vec2 v_textureCoordinate;\n\n// 传递进来的时间\nuniform float time;\n\n...
371
4
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 29.33, "nodes": 247, "errors": 0, "source_hash": "ee9576e19ac3929cb6b5d514eafa8a0722daf7d389bc1c03e68c25cff70168d0", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "\u7eb9\u...
13,142
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
35.88
272
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apach...
572
17
{"language": "c", "success": true, "metadata": {"lines": 272, "avg_line_length": 35.88, "nodes": 346, "errors": 0, "source_hash": "20532ccefad59d52200181722d739caa534c3d5b4693c03b65bf3dbbbcc0a109", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,143
c
#pragma once #include "MutationScheme.h" #include "InstructionNodes\InstructionList.h" #include <stdint.h> class SubstitutionScheme : public MutationScheme { public: SubstitutionScheme() {} void applyScheme( std::vector<uint8_t> &inData, uint32_t virtualAddress, uint32_t newVirtualAddress ) overri...
26.81
26
(translation_unit) "#pragma once\n#include "MutationScheme.h"\n#include "InstructionNodes\InstructionList.h"\n#include <stdint.h>\n\n\nclass SubstitutionScheme : public MutationScheme\n{\npublic:\n\n SubstitutionScheme() {}\n \n void applyScheme(\n std::vector<uint8_t> &inData, \n uint32_t virtualAddress, \n uint...
164
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.81, "nodes": 94, "errors": 0, "source_hash": "69b3d4a8fe25bc8337f88e0f9469f5f6c0113135435765842010280aebda783c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,144
c
#include <stdio.h> #include <stdlib.h> #define SHRINK(n) ((n * 10) / 13) #define SWAP(a,b) do {double t; t = b; b = a; a = t;} while(0) void combsort11(double* a, size_t n) { int h; int f; int i; /* * sort by ascending order */ h = n; do { if (h > 1) { h = SHRINK(h); }...
16.52
31
(translation_unit) "nclude <stdio.h>\n#include <stdlib.h>\n\n#define SHRINK(n) ((n * 10) / 13)\n#define SWAP(a,b) do {double t; t = b; b = a; a = t;} while(0)\n\n\nvoid\ncombsort11(double* a, size_t n)\n{\n int h;\n int f;\n int i;\n\n /*\n * sort by ascending order\n */\n\n h = n;\n\n do {\n i...
223
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 16.52, "nodes": 123, "errors": 0, "source_hash": "f870ed49eb62640fecb3c088618169a765cd1c25c180c9cfc2dc8a074ed66be2", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclud...
13,145
c
// // MBSerbiaIdBackRecognizerResult.h // MicroBlinkDev // // Created by <NAME> on 22/05/2018. // #import "MBLegacyMRTDRecognizerResult.h" #import "MBFullDocumentImageResult.h" NS_ASSUME_NONNULL_BEGIN /** * Class representing values obtained when scanning back side of Serbian ID */ MB_CLASS_AVAILABLE_IOS(8.0) ...
25.39
18
(translation_unit) "//\n// MBSerbiaIdBackRecognizerResult.h\n// MicroBlinkDev\n//\n// Created by <NAME> on 22/05/2018.\n//\n\n#import "MBLegacyMRTDRecognizerResult.h"\n\n#import "MBFullDocumentImageResult.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * Class representing values obtained when scanning back side of Serbian I...
40
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.39, "nodes": 27, "errors": 0, "source_hash": "1b48bb13d203a3da613d65418be8446e7947502d970cface870c6101a11f42cb", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
13,146
c
#include <xccl_progress_queue.h> #include <xccl_team_lib.h> #include <xccl_schedule.h> #include <xccl_lock_free_tasks_queue.h> #include <xccl_tasks_queue.h> xccl_status_t xccl_ctx_progress_queue_init(xccl_progress_queue_t **q, unsigned thread_mode) { xccl_progress_queue_t *pq = (xccl_progress_queue_t*) malloc(siz...
31.31
42
(translation_unit) "#include <xccl_progress_queue.h>\n#include <xccl_team_lib.h>\n#include <xccl_schedule.h>\n#include <xccl_lock_free_tasks_queue.h>\n#include <xccl_tasks_queue.h>\n\n\nxccl_status_t xccl_ctx_progress_queue_init(xccl_progress_queue_t **q, unsigned thread_mode) {\n xccl_progress_queue_t *pq = (xccl_p...
306
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.31, "nodes": 198, "errors": 0, "source_hash": "7376a0d0b2aaa16b6e55cc609fed9f2369c418f77d1d04138bf05dc46df39f54", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,147
c
// clang-format off #include <php.h> #include "compatibility.h" #include "env_config.h" // clang-format on #include <SAPI.h> #include <Zend/zend_types.h> #include <php.h> #include <stdint.h> #include "coms.h" #define EQUALS(stra, stra_len, literal_strb) \ (stra_len == (sizeof(literal_strb) - 1) && memcmp(stra, ...
32.6
143
(translation_unit) "// clang-format off\n#include <php.h>\n#include "compatibility.h"\n\n#include "env_config.h"\n// clang-format on\n\n#include <SAPI.h>\n#include <Zend/zend_types.h>\n#include <php.h>\n#include <stdint.h>\n\n#include "coms.h"\n\n#define EQUALS(stra, stra_len, literal_strb) \\n (stra_len == (sizeof(...
1,110
19
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 32.6, "nodes": 675, "errors": 0, "source_hash": "2364fce964a6af981d34eb4ad133e186cebe704715427846a891f3f684ecc69f", "categorized_nodes": 419}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,148
c
#if HAVE_CONFIG_H # include <config.h> #endif #include "errno.h" #if HAVE_SIGNAL_H # include <signal.h> #endif #if HAVE_STRING_H # include <string.h> #endif #if HAVE_UNISTD_H # include <unistd.h> #endif #include "init.h" int do_tstp = 0; static struct sigaction oact; void sigtstp(int unused) { do_tstp = 1; } ...
19.31
54
(translation_unit) "#if HAVE_CONFIG_H\n# include <config.h>\n#endif\n#include "errno.h"\n#if HAVE_SIGNAL_H\n# include <signal.h>\n#endif\n#if HAVE_STRING_H\n# include <string.h>\n#endif\n#if HAVE_UNISTD_H\n# include <unistd.h>\n#endif\n\n#include "init.h"\n\nint do_tstp = 0;\n\nstatic struct sigaction oact;\n\nvoid...
335
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 19.31, "nodes": 199, "errors": 0, "source_hash": "47e20f4087393c67be41da13338729b23c7ddadaaa16cd1337a48b10111b7c1f", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if HAVE_...
13,149
c
#pragma once #include <glad\glad.h> #include "ph\Common.h" #include "ph\Types.h" #include "ph\utils\Log.h" namespace ph { namespace renderer { enum BufferType { COLOR_BUFFER = BIT(0), DEPTH_BUFFER = BIT(1), STENCIL_BUFFER = BIT(2) }; enum class BlendFunction { ZERO, ONE, SOURCE_ALPHA, DESTINATI...
24.31
62
(translation_unit) "#pragma once\n\n#include <glad\glad.h>\n#include "ph\Common.h"\n#include "ph\Types.h"\n#include "ph\utils\Log.h"\n\nnamespace ph { namespace renderer {\n\n enum BufferType {\n COLOR_BUFFER = BIT(0),\n DEPTH_BUFFER = BIT(1),\n STENCIL_BUFFER = BIT(2)\n };\n\n enum class BlendFunction {\n ZERO...
450
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 24.31, "nodes": 258, "errors": 0, "source_hash": "8961040606a051522c191b0af0757d52b4770fb78113ae7e1ea33864dc993b4e", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,150
c
#pragma once #include "common/graph/graph_ei.h" #include "common/graph/graph_ei/distance/floyd_warshall.h" #include "common/graph/graph_ei/edge_cost_proxy.h" #include <vector> namespace graph { template <class TGraph, class TEdgeCostFunction, class TEdgeCost> inline std::vector<std::vector<TEdgeCost>> DistanceAllPai...
40.53
19
(translation_unit) "#pragma once\n\n#include "common/graph/graph_ei.h"\n#include "common/graph/graph_ei/distance/floyd_warshall.h"\n#include "common/graph/graph_ei/edge_cost_proxy.h"\n\n#include <vector>\n\nnamespace graph {\ntemplate <class TGraph, class TEdgeCostFunction, class TEdgeCost>\ninline std::vector<std::vec...
205
16
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 40.53, "nodes": 122, "errors": 0, "source_hash": "d491b22bbf2e88fad8702183d82656b1a6fd007ee57f1ae420586bc788551025", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,151
c
#include <stdio.h> void move(int n, int m, int *flag, int *x, int *y) { *y += *flag; if ( *y <= 0 ) { *x += 1; *y = 1; *flag = 1; } else if ( *y > m ) { *x += 1; *y = m; *flag = -1; } return; } int main() { int i; int x, y; in...
16.77
44
(translation_unit) "#include <stdio.h>\n\nvoid move(int n, int m, int *flag, int *x, int *y)\n{\n *y += *flag;\n if ( *y <= 0 )\n {\n *x += 1;\n *y = 1;\n *flag = 1;\n }\n else if ( *y > m )\n {\n *x += 1;\n *y = m;\n *flag = -1;\n }\n return;\n}\n\nint ...
409
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 16.77, "nodes": 242, "errors": 0, "source_hash": "de34b0c8df203bc03d5735e13f981fdcfd0a47f0f9310d4a17ac4c26e5cfc42f", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,152
c
/** * @file VMusic.h * @author <NAME> <<EMAIL>> * * @section LICENSE * * MIT License * * Copyright (c) 2020 <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, i...
35.39
153
(translation_unit) "/**\n* @file VMusic.h\n* @author <NAME> <<EMAIL>>\n*\n* @section LICENSE\n*\n* MIT License\n*\n* Copyright (c) 2020 <NAME>\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...
525
13
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 35.39, "nodes": 327, "errors": 0, "source_hash": "66f9ee4348209b38796ca440264066b58d395bc124677742ada9213fdc92c4ef", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,153
c
#pragma once /* * SPDX-License-Identifier: BSD-2-Clause * * Copyright 2021, Tarantool AUTHORS, please see AUTHORS file. */ #include <limits.h> #include <stdint.h> #include <sys/types.h> #if defined(__cplusplus) extern "C" { #endif /* defined(__cplusplus) */ struct tnt_tm; /** * We count dates since so called "...
31.12
130
(translation_unit) "#pragma once\n/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright 2021, Tarantool AUTHORS, please see AUTHORS file.\n */\n\n#include <limits.h>\n#include <stdint.h>\n#include <sys/types.h>\n\n#if defined(__cplusplus)\nextern "C" {\n#endif /* defined(__cplusplus) */\n\nstruct tnt_tm;\n\n/*...
314
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 31.12, "nodes": 225, "errors": 0, "source_hash": "4acd3035770d872942c51a5cc1046746d1e3cde62d95cd83b9543b8b22de2e2c", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,154
c
/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
30.97
157
(translation_unit) "/*-----------------------------------------------------------------------------------------------\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and assoc...
1,496
85
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 30.97, "nodes": 919, "errors": 0, "source_hash": "6c9822aca65254070c6820c5b4048c2f5c9262c4b75e42e13f77ef4177ceb4f4", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,155
c
// // Created by tobias on 22.10.15. // #ifndef SCAM_MEMBER_H #define SCAM_MEMBER_H #include <Stmts/ConstValue.h> #include "AbstractNode.h" #include "enums.h" #include "DataType.h" namespace SCAM{ /** \brief Represnts a variable within the module structure * * - Variable(std::string name,DataType * t...
40.79
52
(translation_unit) "//\n// Created by tobias on 22.10.15.\n//\n\n#ifndef SCAM_MEMBER_H\n#define SCAM_MEMBER_H\n\n#include <Stmts/ConstValue.h>\n#include "AbstractNode.h"\n#include "enums.h"\n#include "DataType.h"\n\nnamespace SCAM{\n\n /** \brief Represnts a variable within the module structure\n *\n * - Va...
315
20
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 40.79, "nodes": 188, "errors": 0, "source_hash": "194e018b13519f5da938fa1d251c556f8930a6d2fccd8f3f0fd0d37c12a9ea3c", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,156
c
// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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 ...
25.47
107
(translation_unit) "//\n//\n// MIT License\n//\n// Copyright (c) 2017 Stellacore Corporation.\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// "Software"), to deal in the Software without restriction, including\n// with...
319
19
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 25.47, "nodes": 153, "errors": 0, "source_hash": "46faf4faf89685ae59b61ce2d40265d371a4936e96bf32af8f63bf9826cf8f80", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,157
c
#ifndef __PURIFY_H__ #define __PURIFY_H__ #include "src-loc.h" void purify_init(void); #define purify_alloc(_n) purify_alloc_raw(_n, SRC_LOC_MK()) #define purify_free(_ptr) purify_free_raw(_ptr, SRC_LOC_MK()) void *purify_alloc_raw(unsigned n, src_loc_t loc); void purify_free_raw(void *p, src_loc_t loc); int purif...
28.81
16
(translation_unit) "#ifndef __PURIFY_H__\n#define __PURIFY_H__\n\n#include "src-loc.h"\n\n\nvoid purify_init(void);\n#define purify_alloc(_n) purify_alloc_raw(_n, SRC_LOC_MK())\n#define purify_free(_ptr) purify_free_raw(_ptr, SRC_LOC_MK())\n\nvoid *purify_alloc_raw(unsigned n, src_loc_t loc);\nvoid purify_free_raw(void...
117
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.81, "nodes": 80, "errors": 0, "source_hash": "82750e572923c69bb39c91605348cdf80b43b886725aefbbc9bf8478a6ed7890", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,158
c
/** * \file IdecQUsrAAccess.h * Dbs and XML wrapper for table TblIdecQUsrAAccess (declarations) * \author <NAME> * \date created: 30 Dec 2017 * \date modified: 30 Dec 2017 */ #ifndef IDECQUSRAACCESS_H #define IDECQUSRAACCESS_H #include <sbecore/LiteDbs.h> #include <sbecore/Xmlio.h> using namespace Xmlio...
40.68
105
(translation_unit) "/**\n * \file IdecQUsrAAccess.h\n * Dbs and XML wrapper for table TblIdecQUsrAAccess (declarations)\n * \author <NAME>\n * \date created: 30 Dec 2017\n * \date modified: 30 Dec 2017\n */\n\n#ifndef IDECQUSRAACCESS_H\n#define IDECQUSRAACCESS_H\n\n#include <sbecore/LiteDbs.h>\n\n#include <sbecor...
1,124
68
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 40.68, "nodes": 737, "errors": 0, "source_hash": "63a340f017faf97d0e64a5c5468030abc8ff574db5f73a2da8e462d12e8e86e9", "categorized_nodes": 465}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef IDECQ...
13,159
c
#pragma once // basic platform defines #ifdef __linux__ #define PLATFORM_LINUX #endif #ifdef WIN32 #define PLATFORM_WINDOWS #include <windows.h> // disable warnings about exception specifications, // which are not implemented in Visual C++ #pragma warning(disable:4290) #endif #ifdef __APPLE__ #define PLATFOR...
21.58
24
(translation_unit) "#pragma once\n\n// basic platform defines\n#ifdef __linux__\n #define PLATFORM_LINUX\n#endif\n\n#ifdef WIN32\n #define PLATFORM_WINDOWS\n #include <windows.h>\n\n // disable warnings about exception specifications,\n // which are not implemented in Visual C++\n #pragma warning(disable:4290)\n#endif\...
73
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.58, "nodes": 62, "errors": 0, "source_hash": "4bce8326c330c0f275b8aa92dbe38d984780ed34b1dc804646b2393530d66e2c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,160
c
#pragma once //------------------------------------------------------------------------------ /** @class Linux::LinuxThread Linux implementation of Threading::Thread. Uses the pthread API. (C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file */ #include "core/refcounted.h" ...
27.94
184
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n/**\n @class Linux::LinuxThread\n\n Linux implementation of Threading::Thread. Uses the pthread API.\n\n (C) 2010 Radon Labs GmbH\n (C) 2013-2018 Individual contributors, see AUTHORS file\n*/\...
830
42
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 27.94, "nodes": 447, "errors": 0, "source_hash": "e0b27b7d426611dd5db1846a568fc21021e59c9036c3c2a73c215f7e72dd61ed", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,161
c
/* * Copyright 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
32
120
(translation_unit) "/*\n * Copyright 2017 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by app...
704
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 32.0, "nodes": 524, "errors": 0, "source_hash": "5832a262aa019daf55cd4bd32bf90ae1d6506606188e9e24181d037d93b6994a", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,162
c
#ifndef INTERRUPT_H #define INTERRUPT_H #include <basics/types.h> #include <IO.h> #include <input.h> IWRAM_CODE void interrupt(void); #endif
19.14
7
(translation_unit) "#ifndef INTERRUPT_H\n#define INTERRUPT_H\n\n#include <basics/types.h>\n#include <IO.h>\n#include <input.h>\n\nIWRAM_CODE void interrupt(void);\n\n#endif" (preproc_ifdef) "#ifndef INTERRUPT_H\n#define INTERRUPT_H\n\n#include <basics/types.h>\n#include <IO.h>\n#include <input.h>\n\nIWRAM_CODE void i...
29
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.14, "nodes": 25, "errors": 0, "source_hash": "664b5c91c789daa793daf59d50a95e97d3726d7f8d0c903df34664071b4f9939", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
13,163
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/MultipeerConnectivity.framework/MultipeerConnectivity */ @interface MCNearbyServiceUtils : NSObject + (id)formattedServiceType:(id)arg1; + (bool)isServiceTypeValid:(id)arg1; @end
34.43
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/MultipeerConnectivity.framework/MultipeerConnectivity\n */\n\n@interface MCNearbyServiceUtils : NSObject\n\n+ (id)formattedServiceType:(id)arg1;\n+ (bool)isServiceTypeValid:(id)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeB...
43
6
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.43, "nodes": 25, "errors": 0, "source_hash": "b0dae6857219bb2e1663f36d0cb46608b244cefc8f0099bf18bde07f4f06b42f", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface MCNear...
13,164
c
#ifndef BT_OPENCL_SUPPORT_HPP #define BT_OPENCL_SUPPORT_HPP // OpenCL support #include <CL/cl.hpp> namespace BTAcceleratedSoftBody { class OpenCLSupportHelper { private: cl::Context m_context; std::vector<cl::Device> m_devices; cl::CommandQueue m_queue; public: OpenCLSupportHelper() { ...
18.32
84
(translation_unit) "#ifndef BT_OPENCL_SUPPORT_HPP \n#define BT_OPENCL_SUPPORT_HPP \n \n// OpenCL support \n#include <CL/cl.hpp> \n \nnamespace BTAcceleratedSoftBody \n{ \n class OpenCLSupportHelper \n { \n private: \n cl::Context m_context; \n std::vector<cl::Device> m_devices; \n cl::CommandQueue m_queue; \n public...
439
13
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 18.32, "nodes": 235, "errors": 0, "source_hash": "e7f7db0977831e28f9248d8ee23c4f4be45b16b44142867f93859f163d034ccb", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,165
c
#include "../../../../../src/gui/text/qtexttable_p.h"
53
1
(translation_unit) "#include "../../../../../src/gui/text/qtexttable_p.h"\n" (preproc_include) "#include "../../../../../src/gui/text/qtexttable_p.h"\n" (#include) "#include" (string_literal) ""../../../../../src/gui/text/qtexttable_p.h"" (") """ (string_content) "../../../../../src/gui/text/qtext...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 53.0, "nodes": 3, "errors": 0, "source_hash": "fe4057c1ba80d7a1b0c8c54e5336dee5bed4946fbdeb7c569e9294c97eaa6cf9", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
13,166
c
/* * arch/ubicom32/include/asm/bug.h * Generic bug.h for Ubicom32 architecture. * * (C) Copyright 2009, Ubicom, Inc. * * This file is part of the Ubicom32 Linux Kernel Port. * * The Ubicom32 Linux Kernel Port is free software: you can redistribute * it and/or modify it under the terms of the GNU General Publ...
34.34
77
(translation_unit) "/*\n * arch/ubicom32/include/asm/bug.h\n * Generic bug.h for Ubicom32 architecture.\n *\n * (C) Copyright 2009, Ubicom, Inc.\n *\n * This file is part of the Ubicom32 Linux Kernel Port.\n *\n * The Ubicom32 Linux Kernel Port is free software: you can redistribute\n * it and/or modify it under the ...
66
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.34, "nodes": 50, "errors": 0, "source_hash": "7e7f36b655c02bb47ddb69de13f76d2e75b38a31cb2882d388c8956bed530fd3", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,167
c
#pragma once #include "CoreMinimal.h" #include "ExplosionBaseComponent.h" #include "ExplosionComponent.generated.h" UCLASS() class UExplosionComponent : public UExplosionBaseComponent { GENERATED_BODY() public: UExplosionComponent(); };
23.5
10
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "ExplosionBaseComponent.h"\n#include "ExplosionComponent.generated.h"\n\nUCLASS()\nclass UExplosionComponent : public UExplosionBaseComponent {\n GENERATED_BODY()\npublic:\n UExplosionComponent();\n};\n\n" (preproc_call) "#pragma once\n" (...
54
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.5, "nodes": 27, "errors": 0, "source_hash": "9bed9fd5072f331f8e26c2f362310c1497886b55f3bb15d88bffde766990ee62", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,168
c
// 对于树中的每个节点X,它的左子树中的所有关键字的值小于X,而右子树的关键字的值大于X struct TreeNode; typedef struct TreeNode *Position; typedef Position SearchTree; SearchTree makeEmpty(SearchTree T); Position Find(SearchTree T, ElementType X); Position FindMax(SearchTree T); Position FindMin(SearchTree T); SearchTree Insert(SearchTree T, ElementType X)...
35.45
11
(translation_unit) "// 对于树中的每个节点X,它的左子树中的所有关键字的值小于X,而右子树的关键字的值大于X\n\nstruct TreeNode;\ntypedef struct TreeNode *Position;\ntypedef Position SearchTree;\n\nSearchTree makeEmpty(SearchTree T);\nPosition Find(SearchTree T, ElementType X);\nPosition FindMax(SearchTree T);\nPosition FindMin(SearchTree T);\nSearchTree Insert...
109
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.45, "nodes": 79, "errors": 0, "source_hash": "84d22ccdca0206989decc7522cae7720875a8f4cfd7fb8eaa52ba7c25a82495d", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "e;\n\...
13,169
c
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Common functions between firmware and kernel verified boot. */ #ifndef VBOOT_REFERENCE_VBOOT_COMMON_H_ #define VBOOT_REFERENCE_VBOOT_COMMON_...
34.47
139
(translation_unit) "/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Common functions between firmware and kernel verified boot.\n */\n\n#ifndef VBOOT_REFERENCE_VBOOT_COMMON_H_\n#define V...
572
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 34.47, "nodes": 377, "errors": 0, "source_hash": "3ae3008b7da763299acab9df830b04478e358e51eba135901169bf72e462c210", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,170
c
#ifndef _SUBGRAPH_HANDLER_H #define _SUBGRAPH_HANDLER_H #include <trident/ml/subgraphs.h> #include <trident/kb/kb.h> class SubgraphHandler { private: std::shared_ptr<Embeddings<double>> E; std::shared_ptr<Embeddings<double>> R; std::shared_ptr<Subgraphs<double>> subgraphs; void lo...
37.98
102
(translation_unit) "#ifndef _SUBGRAPH_HANDLER_H\n#define _SUBGRAPH_HANDLER_H\n\n#include <trident/ml/subgraphs.h>\n#include <trident/kb/kb.h>\n\nclass SubgraphHandler {\n private:\n std::shared_ptr<Embeddings<double>> E;\n std::shared_ptr<Embeddings<double>> R;\n std::shared_ptr<Subgraphs<double...
827
48
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 37.98, "nodes": 592, "errors": 0, "source_hash": "63a4f68be2a54e8e6d51ece8eb87742e303432fdb72a7e06a1c1b950c0990642", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,171
c
#ifndef __view_accelerator_handler_h__ #define __view_accelerator_handler_h__ #pragma once #include <set> #include "base/message_loop.h" namespace view { //////////////////////////////////////////////////////////////////////////////// // AcceleratorHandler class // // An object that pre-screens a...
39.38
32
(translation_unit) "#ifndef __view_accelerator_handler_h__\n#define __view_accelerator_handler_h__\n\n#pragma once\n\n#include <set>\n\n#include "base/message_loop.h"\n\nnamespace view\n{\n\n ////////////////////////////////////////////////////////////////////////////////\n // AcceleratorHandler class\n //\n ...
109
4
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 39.38, "nodes": 52, "errors": 0, "source_hash": "834d4d390c9039627d628bf8bb6a4fb67e46e4f99430fb1ebc0e94bdb60248c3", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,172
c
#pragma once //I2C lite library for Arduboy //Macros #define SLAVE_ADDRESS_WRITE(a) ((a << 1) | 0) #define SLAVE_ADDRESS_READ(a) ((a << 1) | 1) #define I2C_SPEED 400000L // 400Kbps bitrate //I2C pins #define I2C_PORT PORTD #define I2C_DDR DDRD #define I2C_PIN PIND #define I2C_SCL PORTD0 #defi...
26.29
72
(translation_unit) "#pragma once \n \n//I2C lite library for Arduboy \n \n//Macros \n#define SLAVE_ADDRESS_WRITE(a) ((a << 1) | 0) \n#define SLAVE_ADDRESS_READ(a) ((a << 1) | 1) \n \n#define I2C_SPEED 400000L // 400Kbps bitrate \n \n//I2C pins \n#define I2C_PORT PORTD \n#define I2C_DDR DDRD \n#define I2C_PIN PIND...
460
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 26.29, "nodes": 277, "errors": 0, "source_hash": "6242e39582dd8327bcaeea7395b0ad48f17c462a12c70f7cd815cc7b7339b795", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,173
c
// // MLStream.h // Monal // // Created by <NAME> on 11.04.21. // Copyright © 2020 Monal.im. All rights reserved. // #import <Foundation/Foundation.h> #import "MLConstants.h" NS_ASSUME_NONNULL_BEGIN @interface MLStream : NSStream <NSStreamDelegate> @property(readonly) NSStreamStatus streamStatus; @property(null...
35.18
22
(translation_unit) "//\n// MLStream.h\n// Monal\n//\n// Created by <NAME> on 11.04.21.\n// Copyright © 2020 Monal.im. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MLConstants.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MLStream : NSStream <NSStreamDelegate>\n\n@property(readonly) NSStream...
181
25
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 35.18, "nodes": 122, "errors": 0, "source_hash": "469c073c001c1b2b4bd4c40d071e019cbbbfb7486302944dcb59a082ba4d656d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
13,174
c
/* Given a sorted and rotated array. The array is rotated between 1 and n times[ n = array size] find the minimum element of the input array. array may contain duplicate elements. */ #include <stdio.h> // this function will give us the minimum element int get_minimum_element(int ar[], int N) { int fi...
21.32
66
(translation_unit) "/* \nGiven a sorted and rotated array. \nThe array is rotated between 1 and n times[ n = array size] \nfind the minimum element of the input array. \narray may contain duplicate elements. \n*/ \n \n#include <stdio.h> \n \n// this function will give us the minimum element \nint get_minimum_element(i...
282
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 21.32, "nodes": 155, "errors": 0, "source_hash": "43291032a8d3decab60c9db7773a6517ea96198f9a68d2be3f0c1b3a6aa6f7f2", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,175
c
// // DataBaseManager.h // test // // Created by mac1 on 2018/3/1. // Copyright © 2018年 mac1. All rights reserved. // #import <Foundation/Foundation.h> #import <FMDB.h> #import <FMDatabaseQueue.h> #import <FMDatabaseQueue.h> #import "Person.h" #import "Car.h" @interface DataBaseManager : NSObject /** * 返回单利对象 ...
17
56
(translation_unit) "//\n// DataBaseManager.h\n// test\n//\n// Created by mac1 on 2018/3/1.\n// Copyright © 2018年 mac1. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <FMDB.h>\n#import <FMDatabaseQueue.h>\n#import <FMDatabaseQueue.h>\n#import "Person.h"\n#import "Car.h"\n\n@interface DataBase...
269
27
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 17.0, "nodes": 170, "errors": 0, "source_hash": "b484956898c9ca8fbdf6c3eab290e34bf57bcedf9cc134e909cf4a886b71e6b0", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
13,176
c
#ifndef DIRECTBUFFER_H_ #define DIRECTBUFFER_H_ #include "JEnv.h" namespace tns { class DirectBuffer { public: DirectBuffer(uint32_t capacity = 65536); ~DirectBuffer(); operator jobject() const; int* GetData() const; int Length() const; int Size() const; void Reset(); bool Write(int val...
16.59
29
(translation_unit) "#ifndef DIRECTBUFFER_H_\n#define DIRECTBUFFER_H_\n\n#include "JEnv.h"\n\nnamespace tns\n{\n class DirectBuffer\n {\n public:\n DirectBuffer(uint32_t capacity = 65536);\n ~DirectBuffer();\n\n operator jobject() const;\n\n int* GetData() const;\n int Length() const;\n int Size() const;\n\...
160
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 16.59, "nodes": 96, "errors": 0, "source_hash": "a094461a3c878ec38b681c9622d2ad859afe816d64292b6c2d13305a91eadcc2", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,177
c
#pragma once #include "Graphics.h" #include <DirectXMath.h> #include <memory> class Bindable; class Drawable { template<class T> friend class DrawableBase; public: Drawable() = default; Drawable(const Drawable&) = delete; virtual DirectX::XMMATRIX GetTransformXM() const noexcept = 0; void Draw(Graphics& gfx) co...
30.83
23
(translation_unit) "#pragma once\n#include "Graphics.h"\n#include <DirectXMath.h>\n#include <memory>\n\nclass Bindable;\n\nclass Drawable\n{\n template<class T>\n friend class DrawableBase;\npublic:\n Drawable() = default;\n Drawable(const Drawable&) = delete;\n virtual DirectX::XMMATRIX GetTransformXM() const noexcept...
245
14
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.83, "nodes": 159, "errors": 0, "source_hash": "b14f00f872207d3a7d5016e6d5a82caea768c0c9f74307014edb689a0d7e92a1", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,178
c
#pragma once namespace Engine { namespace Render { enum ShaderType { NoShader, VertexShader, PixelShader }; struct DirectX11VertexShader { DirectX11VertexShader() = default; DirectX11VertexShader(Resources::ResourceBase *resource); DirectX11VertexShader(con...
33.59
22
(translation_unit) "#pragma once\n\nnamespace Engine {\nnamespace Render {\n\n enum ShaderType {\n NoShader,\n VertexShader,\n PixelShader\n };\n\n struct DirectX11VertexShader {\n DirectX11VertexShader() = default;\n DirectX11VertexShader(Resources::ResourceBase *resource);\...
175
14
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.59, "nodes": 115, "errors": 0, "source_hash": "a460406e92544613afc42304c9e98769c2efb7ff31d3b9904e80213f20473065", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,179
c
#ifndef JUEGO_H #define JUEGO_H #include "Jugador.h" #include "Arma.h" #include "Cazador.h" #include "Mago.h" #include "Titan.h" #include "Chancla.h" #include "Espada.h" #include "Baston.h" #include "Minijuego.h" #include "Adivina.h" #include "Busca.h" #include "TicTac.h" #include "Ahorcado.h" #include "Batalla.h" #in...
17.25
44
(translation_unit) "#ifndef JUEGO_H\n#define JUEGO_H\n\n#include "Jugador.h"\n#include "Arma.h"\n#include "Cazador.h"\n#include "Mago.h"\n#include "Titan.h"\n#include "Chancla.h"\n#include "Espada.h"\n#include "Baston.h"\n#include "Minijuego.h"\n#include "Adivina.h"\n#include "Busca.h"\n#include "TicTac.h"\n#include "A...
251
6
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 17.25, "nodes": 152, "errors": 0, "source_hash": "ebdd2eecf8765d60c7170d1c6a8d67ec560be0c28691f29c88afa228005c78c1", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,180
c
#pragma once #include "../ASTExpressionNode.h" #include "../expression/ASTIdentifier.h" #include "../expression/ASTActualParameters.h" class ASTFunctionCall : public ASTExpressionNode { public: ASTIdentifier *astIdentifier; ASTActualParameters *astActualParameters; ASTFunctionCall(ASTIdentifier *astIdent...
35.5
12
(translation_unit) "#pragma once\n\n#include "../ASTExpressionNode.h"\n#include "../expression/ASTIdentifier.h"\n#include "../expression/ASTActualParameters.h"\n\nclass ASTFunctionCall : public ASTExpressionNode {\npublic:\n ASTIdentifier *astIdentifier;\n ASTActualParameters *astActualParameters;\n\n ASTFunct...
89
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.5, "nodes": 54, "errors": 0, "source_hash": "b781586eb173721d78be197bfd66255d9edeaa5b9937203471f03784cbf0eb1a", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,181
c
#ifndef POINCARE_EXCEPTION_CHECKPOINT_H #define POINCARE_EXCEPTION_CHECKPOINT_H #include <poincare/checkpoint.h> #include <poincare/circuit_breaker_checkpoint.h> #include <setjmp.h> /* Usage: See comment in checkpoint.h * * To raise an error : ExceptionCheckpoint::Raise(); * */ #define ExceptionRun(checkpoint) (...
31.65
34
(translation_unit) "#ifndef POINCARE_EXCEPTION_CHECKPOINT_H\n#define POINCARE_EXCEPTION_CHECKPOINT_H\n\n#include <poincare/checkpoint.h>\n#include <poincare/circuit_breaker_checkpoint.h>\n#include <setjmp.h>\n\n/* Usage: See comment in checkpoint.h\n *\n * To raise an error : ExceptionCheckpoint::Raise();\n *\n */\n\n#...
195
3
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.65, "nodes": 117, "errors": 0, "source_hash": "0d11f06509457d575e9b72e8eb6b0a73c2a3e25bcaa5b093a09a4d473845f642", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,182
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_IOBITMAP_H #define _ASM_X86_IOBITMAP_H #include <linux/refcount.h> #include <asm/processor.h> struct io_bitmap { u64 sequence; refcount_t refcnt; /* The maximum number of bytes to copy so all zero bits are covered */ unsigned int max; unsigned long bitmap[...
30.65
43
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_IOBITMAP_H\n#define _ASM_X86_IOBITMAP_H\n\n#include <linux/refcount.h>\n#include <asm/processor.h>\n\nstruct io_bitmap {\n u64 sequence;\n refcount_t refcnt;\n /* The maximum number of bytes to copy so all zero bits are covered */\n unsigned ...
205
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 30.65, "nodes": 146, "errors": 0, "source_hash": "93baf4d5bb0c35e763d8c3e4769e72bc49e01cd78195880fe8468dbc0806b58b", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,183
c
#ifndef EBC_TOKENIZER_H #define EBC_TOKENIZER_H #include "ast/Token.h" #include "Except.h" #include <vector> #include <stdexcept> #include <fstream> #include <unordered_map> enum class Trait { INCLUDE, OUT_BUILD, OUT_EXEC }; class Tokenizer { public: Tokenizer(const std::string& str); Tokenizer(std::ifstream& file...
31.57
44
(ERROR) "#ifndef EBC_TOKENIZER_H\n#define EBC_TOKENIZER_H\n\n#include "ast/Token.h"\n#include "Except.h"\n#include <vector>\n#include <stdexcept>\n#include <fstream>\n#include <unordered_map>\n\nenum class Trait { INCLUDE, OUT_BUILD, OUT_EXEC };\n\nclass Tokenizer {\npublic:\n Tokenizer(const std::string& str);\n Token...
568
39
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.57, "nodes": 283, "errors": 0, "source_hash": "00d00daddecf39d676c75fa9cf7eacc7c5b863b9f4fa875a8fde0c39df8ca3e3", "categorized_nodes": 184}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef EBC_TOKENIZER_H\n...
13,184
c
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that reco...
35.35
63
(translation_unit) "/*\n This is free and unencumbered software released into the public domain.\n\n Anyone is free to copy, modify, publish, use, compile, sell, or distribute\n this software, either in source code form or as a compiled binary, for any\n purpose, commercial or non-commercial, and by any means.\n\n ...
352
27
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.35, "nodes": 217, "errors": 0, "source_hash": "7e7760181bd1b0242431a037e99b34462b79f8176805760cb044329c1996502f", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,185
c
#pragma once #include <Windows.h> typedef DWORD(*AddFunc)(DWORD, DWORD); typedef DWORD(*DivFunc)(DWORD, DWORD); typedef DWORD(*SubFunc)(DWORD, DWORD); typedef DWORD(*ProFunc)(DWORD, DWORD);
30.67
6
(translation_unit) "#pragma once\n#include <Windows.h>\n\ntypedef DWORD(*AddFunc)(DWORD, DWORD);\ntypedef DWORD(*DivFunc)(DWORD, DWORD);\ntypedef DWORD(*SubFunc)(DWORD, DWORD);\ntypedef DWORD(*ProFunc)(DWORD, DWORD);\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (pr...
83
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.67, "nodes": 58, "errors": 0, "source_hash": "78881af2e1b3053bf78696291546a7d5696ee64acb4c8e831729e6eb084e3b0e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,186
c
// Copyright (c) 2016 Tin Project. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <cstdlib> #include <vector> #include <deque> #include "base/basictypes.h" #include "base/memory/singleton.h" #include "base/s...
20.15
74
(translation_unit) "// Copyright (c) 2016 Tin Project. All rights reserved. \n// Use of this source code is governed by a BSD-style license that can be \n// found in the LICENSE file. \n \n#pragma once \n#include <cstdlib> \n#include <vector> \n#include <deque> \n \n#include "base/basictypes.h" \n#include "base/memory/...
418
14
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 20.15, "nodes": 239, "errors": 0, "source_hash": "8f307a31ef13fb000c7ffb1bc93fad14efab9d7c31aa2ddaffd41fc565a8c54c", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,187
c
inherit M_COMMAND; string *usage(void) { string *lines; lines = ({ "Usage: skills [-h] [full]" }); if (query_wizard(this_player())) { lines += ({ "Usage: skills [set SKILL VALUE]" }); } lines += ({ "" }); lines += ({ "List the skills you know, and how well you know it." }); lines += ({ "Wiz...
30.17
107
(translation_unit) "inherit M_COMMAND;\n\nstring *usage(void) {\n string *lines;\n\n lines = ({ "Usage: skills [-h] [full]" });\n if (query_wizard(this_player())) {\n lines += ({ "Usage: skills [set SKILL VALUE]" });\n }\n lines += ({ "" });\n lines += ({ "List the skills you know, and how well you kno...
1,132
5
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 30.17, "nodes": 519, "errors": 0, "source_hash": "6496babe1ed148bf8a22f403eee0a2c3c2a6ec9dc5cd8845738c6b9ab4135210", "categorized_nodes": 381}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit...
13,188
c
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #pragma once #include "../../vstguibase.h" #if WINDOWS struct IUnknown; #include "../../cbitmap.h" #include "../...
34.19
142
(translation_unit) "// This file is part of VSTGUI. It is subject to the license terms \n// in the LICENSE file found in the top-level directory of this\n// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE\n\n#pragma once\n\n#include "../../vstguibase.h"\n\n#if WINDOWS\n\nstruct IUnknown;\n\n#include...
1,318
30
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 34.19, "nodes": 848, "errors": 0, "source_hash": "2f526d65ff01921a8ef1ce095fc6a91499cf108a4916c9375b75ef9c89ff7b4e", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,189
c
class Inanimate { const std::string name; const int max_durability; int durability; }; class Weapon: public Inanimate { const int damage; const int speed; }; class Shovel: public Weapon { }; class Sword: public Weapon { }; class Bow: public Weapon { }; class Armor: public Inanimate { co...
14.75
51
(translation_unit) "class Inanimate\n{\n const std::string name;\n const int max_durability;\n int durability;\n};\n\nclass Weapon: public Inanimate\n{\n const int damage;\n const int speed;\n};\n\nclass Shovel: public Weapon {\n\n};\n\nclass Sword: public Weapon {\n\n};\n\nclass Bow: public Weapon {\n\n...
267
16
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 14.75, "nodes": 112, "errors": 0, "source_hash": "91a0f77ed6256f1e6b600f5e9b91e26ac366c5fc4fd9a5a1df4e66a212fb4188", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
13,190
c
#ifndef TDOKU_H #define TDOKU_H #ifndef __cplusplus #include <stddef.h> #include <stdint.h> #endif #ifdef __cplusplus extern "C" #else extern #endif size_t TdokuSolverDpllTriadSimd(const char *input, size_t limit, uint32_t flags, char *solution, size_t *num_guesses); /** * Solves a S...
35.24
29
(translation_unit) "#ifndef TDOKU_H\n#define TDOKU_H\n\n#ifndef __cplusplus\n#include <stddef.h>\n#include <stdint.h>\n#endif\n\n#ifdef __cplusplus\nextern "C"\n#else\nextern\n#endif\nsize_t TdokuSolverDpllTriadSimd(const char *input, size_t limit, uint32_t flags,\n char *solution, size_t...
133
2
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.24, "nodes": 97, "errors": 0, "source_hash": "c294c48b53985721a8aa16aa54afeb7ab006e8880093e1dddc1fe6cb860e5d8f", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,191
c
/* $NetBSD: slhci_isa.c,v 1.4 2002/10/02 03:10:50 thorpej Exp $ */ /* * Copyright (c) 2001 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must r...
35.32
108
(translation_unit) "/* $NetBSD: slhci_isa.c,v 1.4 2002/10/02 03:10:50 thorpej Exp $ */\n\n/*\n * Copyright (c) 2001 <NAME>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistrib...
669
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 35.32, "nodes": 438, "errors": 0, "source_hash": "d3089dd7ca3c8086f58a0f4be2158a0431edd46811f7a448f2a34e28f7648e6f", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,192
c
/* * * reader.h * Memory Reader * */ #pragma once #include <stddef.h> #define CL_READER_EOS -1 typedef struct { char* beg; char* cur; char* end; size_t col; size_t line; } cl_reader_t; cl_reader_t* cl_reader_new(char* src); char cl_reader_readbyte(cl_reader_t* rdr); void cl_reader_s...
13.52
27
(translation_unit) "/* \n* \n* reader.h \n* Memory Reader \n* \n*/ \n \n \n#pragma once \n \n#include <stddef.h> \n#define CL_READER_EOS -1 \n \n \ntypedef struct { \n char* beg; \n char* cur; \n char* end; \n size_t col; \n size_t line; \n} cl_reader_t; \n \n \ncl_reader_t* cl_reader_new(char* src); \nchar cl_reader_r...
105
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 13.52, "nodes": 80, "errors": 0, "source_hash": "68ff1f776099ae93779f656e2a7c2af8cad516a58c4086ce82e320fbe2730249", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,193
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:49:37 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/Frameworks/TVMLKit.framework/TVMLKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ @in...
34.94
17
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:49:37 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/Frameworks/TVMLKit.framework/TVMLKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013...
92
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.94, "nodes": 51, "errors": 0, "source_hash": "a6233ecbcb3048336e2e0c167c77c84eca03b660002999eb3a4e5fa5faec9d7d", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
13,194
c
#include <spell.h> inherit SPELL; void create() { ::create(); set_author("nienne"); set_spell_name("beshadowed blast"); set_spell_level(([ "warlock" : 3 ])); set_syntax("<blasttype beshadowed>"); set_description("An eldritch blast with this essence applied will cloud the target/s' " "vision, te...
32.19
16
(translation_unit) "#include <spell.h>\ninherit SPELL;\n\nvoid create() {\n ::create();\n set_author("nienne");\n set_spell_name("beshadowed blast");\n set_spell_level(([ "warlock" : 3 ]));\n set_syntax("<blasttype beshadowed>");\n set_description("An eldritch blast with this essence applied will clou...
137
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.19, "nodes": 58, "errors": 0, "source_hash": "54d989fa8846ac8408fd8e6e8a40824de53a6a63726364540f7098f5c6fc7837", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,195
c
/* Copyright (C) 2015 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: Functions for loading source files for shaders. */ #include "sourceUtil.h" #include <stdio.h> #include <stdlib.h> #include <string.h> demoSource* srcLoadSource(const char* filepathname) { d...
22.9
60
(translation_unit) "/*\n Copyright (C) 2015 Apple Inc. All Rights Reserved.\n See LICENSE.txt for this sample’s licensing information\n \n Abstract:\n Functions for loading source files for shaders.\n */\n\n#include "sourceUtil.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ndemoSource* srcLoadSou...
341
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 22.9, "nodes": 210, "errors": 0, "source_hash": "76fc152db97168a5c032690c28dab26d99a32c42bbcb2b798a35e7673c47e0fe", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclud...
13,196
c
/**************************************************************************** * net/udp/udp_send.c * * Copyright (C) 2007-2009, 2011, 2015 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Adapted for NuttX from logic in uIP which also has a BSD-like license: * * Original author <NAME> <<EMAIL>>...
37.04
213
(translation_unit) "/****************************************************************************\n * net/udp/udp_send.c\n *\n * Copyright (C) 2007-2009, 2011, 2015 <NAME>. All rights reserved.\n * Author: <NAME> <<EMAIL>>\n *\n * Adapted for NuttX from logic in uIP which also has a BSD-like license:\n *\n * Orig...
1,054
13
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 37.04, "nodes": 696, "errors": 0, "source_hash": "7ea57ccf29640132afc956395d5f2e9ef61c412a0b777f9ec1d3f184b1a3af2f", "categorized_nodes": 559}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,197
c
#include "../libs.h" Data parseWatsonFromStream(FILE *fp); Data parseWatsonFromString(const char *str, size_t len);
37.67
3
(translation_unit) "#include "../libs.h"\n\nData parseWatsonFromStream(FILE *fp);\n\nData parseWatsonFromString(const char *str, size_t len);\n" (preproc_include) "#include "../libs.h"\n" (#include) "#include" (string_literal) ""../libs.h"" (") """ (string_content) "../libs.h" (") """ (dec...
39
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 37.67, "nodes": 26, "errors": 0, "source_hash": "169f6f881b17db09ed99807b957b8e30962321c0babf716be0b080aae1a75606", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,198
c
#ifndef INCLUDE_COMMON_H_ #define INCLUDE_COMMON_H_ #include <sys/time.h> #ifndef GBOLT_SERIAL #include <omp.h> #endif #include <map> #include <unordered_map> #include <unordered_set> #include <string> #include <set> #include <vector> #define FILE_MAX_LINE 1024 #define DEFAULT_PATH_LEN 16 #define CPU_TIMER_START(el...
29.91
46
(translation_unit) "#ifndef INCLUDE_COMMON_H_\n#define INCLUDE_COMMON_H_\n\n#include <sys/time.h>\n#ifndef GBOLT_SERIAL\n#include <omp.h>\n#endif\n#include <map>\n#include <unordered_map>\n#include <unordered_set>\n#include <string>\n#include <set>\n#include <vector>\n\n#define FILE_MAX_LINE 1024\n\n#define DEFAULT_PAT...
146
6
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 29.91, "nodes": 106, "errors": 0, "source_hash": "5ef927321e8ca916ac42a8be6464900fa517cebc709bc46a01f5652cacb2fdcd", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,199