language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
// Copyright (c) 2012-2018 The Elastos Open Source Project // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __ELASTOS_SDK_MASTERPRIVKEY_H__ #define __ELASTOS_SDK_MASTERPRIVKEY_H__ #include "Key.h" #include "CMemBlock.h" ...
29.24
25
(translation_unit) "// Copyright (c) 2012-2018 The Elastos Open Source Project\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef __ELASTOS_SDK_MASTERPRIVKEY_H__\n#define __ELASTOS_SDK_MASTERPRIVKEY_H__\n\n#include "Key...
132
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.24, "nodes": 63, "errors": 0, "source_hash": "654b432de0ec5b9d2ef5b87655d1b6845bcc6b0be92fd0b958ad23bb065124e4", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,800
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSData, NSString; @interface FIRAEventFilter : NSObject { int _audienceID; // 8 = 0x8 int _filterID; // 12 = 0xc NSString *_eventName; // 16 = 0x...
39.43
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSData, NSString;\n\n@interface FIRAEventFilter : NSObject\n{\n int _audienceID; // 8 = 0x8\n int _filterID; // 12 = 0xc\n ...
184
18
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 39.43, "nodes": 106, "errors": 0, "source_hash": "41c109c08fb6f1b941cab2905b4786aa1e1109150c7de934f5357da1853bfd64", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,801
c
/* * $XConsortium: saverproto.h,v 1.5 94/04/17 20:59:33 keith Exp $ * Copyright (c) 1992 X Consortium 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 limi...
33.53
154
(translation_unit) "/*\n * $XConsortium: saverproto.h,v 1.5 94/04/17 20:59:33 keith Exp $\n *\nCopyright (c) 1992 X Consortium\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restrict...
635
45
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 33.53, "nodes": 503, "errors": 0, "source_hash": "e70974592c6d48c8a76af99a525e95c2950c9bced014e935d2639f5f83e7bc45", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,802
c
// // Created by Zheng on 26/07/2017. // Copyright (c) 2017 Zheng. All rights reserved. // #import <UIKit/UIKit.h> #import "XUIAdapter.h" @class XUITheme, XUILogger, XUICellFactory; // ---- // !!! Do not use this class directly !!! // ---- @interface XUIViewController : UIViewController #pragma mark - Shortcuts @p...
38.31
29
(translation_unit) "//\n// Created by Zheng on 26/07/2017.\n// Copyright (c) 2017 Zheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "XUIAdapter.h"\n\n@class XUITheme, XUILogger, XUICellFactory;\n\n\n// ----\n// !!! Do not use this class directly !!!\n// ----\n@interface XUIViewController : UIViewContr...
257
27
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 38.31, "nodes": 163, "errors": 0, "source_hash": "21cf3331536e52b975faae35a43f984932071e67c57b551e616fd666158ac037", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,803
c
#ifndef IAAppEntryPoint_Core_h #define IAAppEntryPoint_Core_h #include "IAAppEntryPoint.h" IAInterfaceOrientationMask IAAppEntryPoint_getInterfaceOrientationMask(); void IAAppEntryPoint_onAppStart(IAAppAttributes * attributesOut); #endif
38.67
6
(translation_unit) "#ifndef IAAppEntryPoint_Core_h\n#define IAAppEntryPoint_Core_h\n\n#include "IAAppEntryPoint.h"\n\nIAInterfaceOrientationMask IAAppEntryPoint_getInterfaceOrientationMask();\nvoid IAAppEntryPoint_onAppStart(IAAppAttributes * attributesOut);\n\n#endif\n" (preproc_ifdef) "#ifndef IAAppEntryPoint_Core_...
35
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 38.67, "nodes": 25, "errors": 0, "source_hash": "f6cfd04a9098b1fec5d7d633787f344e76f4fbc0c457694c1c66a66dc4cce228", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
11,804
c
// // CERoundProgressLayer.h // SFRoundProgressCounter // // Initially created by <NAME> on 13/06/12. // Copyright (c) 2012 Céroce. All rights reserved. // // Adapted by <NAME> on 22/01/14. // #import <QuartzCore/QuartzCore.h> @interface SFRoundProgressLayer : CALayer @property (nonatomic, assign) float progres...
29.47
17
(translation_unit) "//\n// CERoundProgressLayer.h\n// SFRoundProgressCounter\n//\n// Initially created by <NAME> on 13/06/12.\n// Copyright (c) 2012 Céroce. All rights reserved.\n//\n// Adapted by <NAME> on 22/01/14.\n//\n\n#import <QuartzCore/QuartzCore.h>\n\n@interface SFRoundProgressLayer : CALayer\n\n@property...
104
22
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.47, "nodes": 72, "errors": 0, "source_hash": "db34c609fb12784df0d9fa468082fa406858974b176b040bb90efc74c6a8644c", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Q...
11,805
c
#ifndef JOBS_CONTEXT_H #define JOBS_CONTEXT_H #include "api_types.h" #include "jobs.h" typedef struct context { work_stealing_queue **worker_job_queues; void *job_pool_buffer; void *queue_entry_buffer; atomic_int next_worker_id; int num_worker_threads; int max_jobs_per_thread; } context; extern context *...
24.96
24
(translation_unit) "#ifndef JOBS_CONTEXT_H\n#define JOBS_CONTEXT_H\n\n#include "api_types.h"\n#include "jobs.h"\n\ntypedef struct context {\n work_stealing_queue **worker_job_queues;\n void *job_pool_buffer;\n void *queue_entry_buffer;\n atomic_int next_worker_id;\n int num_worker_threads;\n int max_jobs_per_thre...
204
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.96, "nodes": 144, "errors": 0, "source_hash": "fb3e7205f9d0e539a130b6331b2a86c28e60bfac7ac12de27d1c36314a235c4b", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,806
c
#ifndef FCAM_DEMOSAIC_ARM_H #define FCAM_DEMOSAIC_ARM_H //#ifdef FCAM_ARCH_ARM #include "HalideBuffer.h" // Arm-specific optimized post-processing routines namespace FCam { void demosaic_ARM(Halide::Buffer<uint16_t> input, Halide::Buffer<uint8_t> out, float colorTemp, float contrast, bool denoise, int blackLevel, in...
35.3
10
(translation_unit) "#ifndef FCAM_DEMOSAIC_ARM_H\n#define FCAM_DEMOSAIC_ARM_H\n//#ifdef FCAM_ARCH_ARM\n\n#include "HalideBuffer.h"\n\n// Arm-specific optimized post-processing routines\n\nnamespace FCam {\nvoid demosaic_ARM(Halide::Buffer<uint16_t> input, Halide::Buffer<uint8_t> out, float colorTemp, float contrast, boo...
76
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 35.3, "nodes": 52, "errors": 0, "source_hash": "0dc789a8c9f1d6e8a979379c9caf74c75233ea6d96ff7c272f3ae5e6589d8040", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
11,807
c
#include "ngx_http_rate_limit_reply.h" ngx_int_t ngx_http_rate_limit_process_reply(ngx_http_rate_limit_ctx_t *ctx, ssize_t bytes) { ngx_buf_t *b; ngx_http_upstream_t *u; u_char ch, *p; u = ctx->request->upstream; b = &u->buffer; enum { sw_start = 0, sw_...
25.04
204
(translation_unit) "#include "ngx_http_rate_limit_reply.h"\n\nngx_int_t\nngx_http_rate_limit_process_reply(ngx_http_rate_limit_ctx_t *ctx, ssize_t bytes)\n{\n ngx_buf_t *b;\n ngx_http_upstream_t *u;\n u_char ch, *p;\n\n u = ctx->request->upstream;\n b = &u->buffer;\n\n enum {\n...
1,090
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 25.04, "nodes": 710, "errors": 0, "source_hash": "7594efe5a3ef3ea44a0bc3831e506b4e7cef4924baeda1b5200d15f907be1a4a", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,808
c
#pragma once #include <iostream> #include <windows.h> #include <codecvt> #include "KrUI/Tools/KrTools.h" using namespace KrUI; #define CURL_STATICLIB #include "curl/curl.h" #pragma comment(lib,"curl/libcurl.lib") #include "TinyXML2/tinyxml2.h" void GetEntry(void* pParam);
23.82
11
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <windows.h>\n#include <codecvt>\n#include "KrUI/Tools/KrTools.h"\nusing namespace KrUI;\n#define CURL_STATICLIB\n#include "curl/curl.h"\n#pragma comment(lib,"curl/libcurl.lib")\n#include "TinyXML2/tinyxml2.h"\n\nvoid GetEntry(void* pParam);\n\n" (prepr...
56
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.82, "nodes": 42, "errors": 0, "source_hash": "7877af25c2fa3d8837067fba05e22793e3c5782dac450b8d710276d498045eba", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,809
c
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UI_H_ #define CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_...
47
15
(translation_unit) "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UI_H_\n#define CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MON...
71
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 47.0, "nodes": 36, "errors": 0, "source_hash": "d597b63a38c3f121b8a6b1dd7fd6745568a60c89260f1fce01168909eed1d256", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
11,810
c
// Program : CPE - p299 Train Swapping // Author : timwilliam // Compiled : 12/18/2020 #include<stdio.h> #include<stdlib.h> #include<string.h> void swap(int *a, int *b){ int temp; temp = *a; *a = *b; *b = temp; } int main(void){ int N, L, train_order[50], i, j, k, len, swap_count, pos; char buffer[100]; //TO...
21.05
62
(translation_unit) "// Program : CPE - p299 Train Swapping\n// Author : timwilliam\n// Compiled : 12/18/2020\n\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nvoid swap(int *a, int *b){\n int temp;\n temp = *a;\n *a = *b;\n *b = temp;\n}\n\nint main(void){\n int N, L, train_order[50], i, j, k, len, swap_c...
462
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 21.05, "nodes": 270, "errors": 0, "source_hash": "dae319e7a1276cc4f1101a1514218f3289dde228acf025914736196618416516", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,811
c
#ifndef ITE_RTL8304MB_H #define ITE_RTL8304MB_H #include "ite/itp.h" #ifdef __cplusplus extern "C" { #endif #define rtl8304mb_read_mode phy_read_mode #define rtl8304mb_linkIntrHandler phy_linkIntrHandler #define rtl8304mb_get_link_status phy_get_link_status void PhyInit(void); int rtl8304mb_link_port3(void); i...
24.32
22
(translation_unit) "fndef ITE_RTL8304MB_H\n#define ITE_RTL8304MB_H\n\n#include "ite/itp.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n#define rtl8304mb_read_mode phy_read_mode\n#define rtl8304mb_linkIntrHandler phy_linkIntrHandler\n#define rtl8304mb_get_link_status phy_get_link_status\n\n\nvoid PhyInit(void);\n...
125
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.32, "nodes": 94, "errors": 0, "source_hash": "c7b63d00793cd00972ff64205a3927aed2906acc8e29fd0c69d1d089c3766435", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef IT...
11,812
c
#pragma once #include "actuators/LiquidCrystalScreen.h" class BinaryScreenCounter { private: LiquidCrystalScreen* screen; public: BinaryScreenCounter() { } void addAll() { } void clearAll() { } void addLeft() { } void clearLeft() { } void addR...
8.89
38
(translation_unit) "#pragma once \n \n#include "actuators/LiquidCrystalScreen.h" \n \nclass BinaryScreenCounter \n{ \n private: \n LiquidCrystalScreen* screen; \n public: \n BinaryScreenCounter() \n { \n \n } \n void addAll() \n { \n \n } \n void clearAll() \n { \n \n } \n void addLeft() \n { \n \n } ...
100
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 8.89, "nodes": 48, "errors": 0, "source_hash": "ecdb21b366944552e1a4f0a9102b2e2808543fc897e212078e6608079a86fffa", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,813
c
#ifndef RADIOACEK_REMOTE_COLLECTION #define RADIOACEK_REMOTE_COLLECTION #include <radioacek/remote_player.h> #include <vector> #include <boost/regex.h> namespace radioacek { class RemotePlayerCollection { private: std::vector<std::shared_ptr<RemotePlayer> > rplayers; const std::string start_regex...
32.52
54
(translation_unit) "#ifndef RADIOACEK_REMOTE_COLLECTION\n#define RADIOACEK_REMOTE_COLLECTION\n\n#include <radioacek/remote_player.h>\n#include <vector>\n#include <boost/regex.h>\n\nnamespace radioacek {\n\nclass RemotePlayerCollection {\n private:\n std::vector<std::shared_ptr<RemotePlayer> > rplayers;\n ...
387
26
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 32.52, "nodes": 230, "errors": 0, "source_hash": "075146c5fd7bd58ad09cb9542540a023a967f6cd28508aca0651fe2278b062f4", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,814
c
#ifndef _ASM_M32R_BYTEORDER_H #define _ASM_M32R_BYTEORDER_H /* $Id$ */ #include <asm/types.h> #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) # define __BYTEORDER_HAS_U64__ # define __SWAB_64_THRU_32__ #endif #if defined(__LITTLE_ENDIAN__) # include <linux/byteorder/little_endian.h> #else # include <linux/...
26.29
14
(translation_unit) "#ifndef _ASM_M32R_BYTEORDER_H\n#define _ASM_M32R_BYTEORDER_H\n\n/* $Id$ */\n\n#include <asm/types.h>\n\n#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)\n# define __BYTEORDER_HAS_U64__\n# define __SWAB_64_THRU_32__\n#endif\n\n#if defined(__LITTLE_ENDIAN__)\n# include <linux/byteorder/little_e...
54
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.29, "nodes": 45, "errors": 0, "source_hash": "6ea305504cf8480cd49a26dd5ffdfe004da325833c97351dac692715126b2686", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,815
c
#include "memory.h" static char GlobalMemory[MEMORY_LIMIT] = {0}; static umm GlobalMemoryUsed = 0; static char * PushSize(umm Size) { /* NOTE(chuck): I just learned that pointers to misaligned memory addresses can cause failures or even crashes. For example, this was causing QueryDosDeviceW() to fa...
29.68
41
(translation_unit) "#include "memory.h"\n\nstatic char GlobalMemory[MEMORY_LIMIT] = {0};\nstatic umm GlobalMemoryUsed = 0;\n\nstatic char *\nPushSize(umm Size)\n{\n /* NOTE(chuck): I just learned that pointers to misaligned memory addresses can\n cause failures or even crashes. For example, this was causing Q...
311
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.68, "nodes": 212, "errors": 0, "source_hash": "31e573c437844c95ff737ccf3cf1432c810cb517bf4ddcf9231e9ad9954d7c5c", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,816
c
// // BFProductFilterTypeParsingOperation.h // OpenShop // // Created by <NAME> // Copyright (c) 2015 Business Factory. All rights reserved. // #import "BFParsingOperation.h" NS_ASSUME_NONNULL_BEGIN /** * `BFProductFilterTypeParsingOperation` is the product filter type items parsing operation * encapsulating t...
26.59
17
(translation_unit) "//\n// BFProductFilterTypeParsingOperation.h\n// OpenShop\n//\n// Created by <NAME>\n// Copyright (c) 2015 Business Factory. All rights reserved.\n//\n\n#import "BFParsingOperation.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * `BFProductFilterTypeParsingOperation` is the product filter type items par...
28
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.59, "nodes": 15, "errors": 0, "source_hash": "93bc1dffb6145638c651584811f20d37a42498fca8f4df66ba3ed65d1f16f753", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
11,817
c
// // RegisterTableViewCell.h // kreditbro // // Created by 戴培琼 on 2019/3/24. // Copyright © 2019 lai. All rights reserved. // #import <UIKit/UIKit.h> @class CustomTextField; NS_ASSUME_NONNULL_BEGIN @interface RegisterTableViewCell : UITableViewCell // 手机号框 @property (nonatomic, strong) CustomTextField *phoneWin...
27
17
(translation_unit) "//\n// RegisterTableViewCell.h\n// kreditbro\n//\n// Created by 戴培琼 on 2019/3/24.\n// Copyright © 2019 lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class CustomTextField;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RegisterTableViewCell : UITableViewCell\n// 手机号框\n@property (nonatomic...
100
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.0, "nodes": 67, "errors": 0, "source_hash": "5c0c3f4946da638c610b9c5990ba27428edf65bc61b5dc2e424fb68a57a6430d", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
11,818
c
#include "../include/LinkedStack.h" #include <stdlib.h> LinkedStack *LinkedStack_NewStack(void) { return LinkedList_NewList(); } bool LinkedStack_IsEmpty(LinkedStack *pStack) { return pStack->length == 0; } int LinkedStack_Length(LinkedStack *pStack) { return pStack->length; } int LinkedStack_Push(Linke...
32
46
(translation_unit) "#include "../include/LinkedStack.h"\n#include <stdlib.h>\n\nLinkedStack *LinkedStack_NewStack(void) {\n return LinkedList_NewList();\n}\n\nbool LinkedStack_IsEmpty(LinkedStack *pStack) {\n return pStack->length == 0;\n}\n\nint LinkedStack_Length(LinkedStack *pStack) {\n return pStack->lengt...
448
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 32.0, "nodes": 287, "errors": 0, "source_hash": "fafe80aa4209f98e674fe775484737dcd2d45b41f743fd2b921e37e3b3e63375", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,819
c
// // UIButton+BackgroundColor.h // YHCategory // // Created by FengYinghao on 2021/9/15. // Copyright (c) 2021 FyhSky. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (BackgroundColor) /** 给按钮设置背景颜色 @param backgroundColor Color @param state 按钮的状态 */ - (void)setBackgroundColor:(UIColor *...
20.76
17
(translation_unit) "//\n// UIButton+BackgroundColor.h\n// YHCategory\n//\n// Created by FengYinghao on 2021/9/15.\n// Copyright (c) 2021 FyhSky. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (BackgroundColor)\n\n\n/**\n 给按钮设置背景颜色\n\n @param backgroundColor Color\n @param state 按钮的状态\n */...
48
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.76, "nodes": 28, "errors": 0, "source_hash": "04b74c571ff1c0c78204c4469be006fe7fbb92260b615be1c4e655f47475be95", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,820
c
#pragma once // cinder #include "cinder/app/App.h" // blocks #include "ciCMS/cfg/ctree/Builder.h" #include "ciCMS/cfg/components/App.h" namespace cms { namespace cfg { namespace components { class CinderApp : public ci::app::App { public: // MainApp(); void setup() override; void cleanup() ove...
29.28
25
(translation_unit) "#pragma once\n\n// cinder\n#include "cinder/app/App.h"\n// blocks\n#include "ciCMS/cfg/ctree/Builder.h"\n#include "ciCMS/cfg/components/App.h"\n\nnamespace cms { namespace cfg { namespace components {\n class CinderApp : public ci::app::App {\n public:\n // MainApp();\n void setup() ov...
222
14
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.28, "nodes": 119, "errors": 0, "source_hash": "af02b6263ef939cbd827adefcce1654956627ec167b0c6d3b1e03f26c3b914de", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,821
c
// // Created by <NAME> on 08/10/2018. // #ifndef RCDSTACK_THREADSAFESTACK_H #define RCDSTACK_THREADSAFESTACK_H #include "Stack.h" #include <mutex> class ThreadSafeStack: public Stack { std::mutex mutex; int* stack; volatile int position = 0; public: explicit ThreadSafeStack(int stackSize); void ...
22.38
21
(translation_unit) "//\n// Created by <NAME> on 08/10/2018.\n//\n\n#ifndef RCDSTACK_THREADSAFESTACK_H\n#define RCDSTACK_THREADSAFESTACK_H\n\n#include "Stack.h"\n#include <mutex>\n\nclass ThreadSafeStack: public Stack {\n std::mutex mutex;\n int* stack;\n volatile int position = 0;\npublic:\n explicit Thread...
123
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.38, "nodes": 79, "errors": 0, "source_hash": "64cc5ea98bf27f63546cc4f064d3f018a8468857e1659d49b0b1d7f2ea9a3790", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,822
c
#ifndef PHYCORE_BODY_H #define PHYCORE_BODY_H #include <vector> #include <list> #include <memory> #include <phycore\math\math.h> #include <phycore/PhycoreMaterial.h> #include <phycore/PhycoreShape.h> #include <phycore/PhycoreCollisionInfo.h> namespace phycore { class PcBody { public: PcBody(); PcBody(co...
23.19
31
(translation_unit) "#ifndef PHYCORE_BODY_H\n#define PHYCORE_BODY_H\n\n#include <vector>\n#include <list>\n#include <memory>\n#include <phycore\math\math.h>\n\n#include <phycore/PhycoreMaterial.h>\n#include <phycore/PhycoreShape.h>\n#include <phycore/PhycoreCollisionInfo.h>\n\nnamespace phycore\n{\n class PcBody\n ...
201
10
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.19, "nodes": 120, "errors": 0, "source_hash": "cdefc2659fc79b0c62bad944a92b50c6b8d5f33fab4de7a146d5d35bf4bdcda4", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,823
c
#ifndef WATER_H #define WATER_H #include <vector> #include <set> #include "tileset.h" #include "collision.h" #include "mathutils.h" class Water { public: Water(); std::vector<struct PolyCollision> CollidesWith(const struct Triangle &triangle) const; bool Contains(const struct Triangle &t...
27.33
52
(translation_unit) "#ifndef WATER_H\n#define WATER_H\n\n#include <vector>\n#include <set>\n\n#include "tileset.h"\n#include "collision.h"\n#include "mathutils.h"\n\nclass Water\n{\n public:\n Water();\n\n std::vector<struct PolyCollision> CollidesWith(const struct Triangle &triangle) const;\n bo...
385
29
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.33, "nodes": 224, "errors": 0, "source_hash": "1353546ca03c2d7c00387d33af279094b5fa3fc1994aa69fb80666a2b5ab054e", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,824
c
/* See LICENSE file for copyright and license details. */ #ifndef TYPE #include "common.h" USAGE("[-e] [theta0-stream]") static int equal = 0; #define FILE "blind-sinc-wave.c" #include "define-functions.h" int main(int argc, char *argv[]) { struct stream stream, theta0; int have_theta0; void (*process)(struct st...
29.08
100
(translation_unit) "/* See LICENSE file for copyright and license details. */\n#ifndef TYPE\n#include "common.h"\n\nUSAGE("[-e] [theta0-stream]")\n\nstatic int equal = 0;\n\n#define FILE "blind-sinc-wave.c"\n#include "define-functions.h"\n\nint\nmain(int argc, char *argv[])\n{\n struct stream stream, theta0;\n int have...
1,451
2
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 29.08, "nodes": 924, "errors": 0, "source_hash": "a5c79cc89a3ce40ee066470df6079a1fa28e7192292f34b72c3cfced0f1f95e1", "categorized_nodes": 671}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,825
c
/* * fstrim.c -- discard the part (or whole) of mounted filesystem. * * Copyright (C) 2010 Red Hat, Inc. All rights reserved. * Written by <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
29.39
132
(translation_unit) "/*\n * fstrim.c -- discard the part (or whole) of mounted filesystem.\n *\n * Copyright (C) 2010 Red Hat, Inc. All rights reserved.\n * Written by <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of t...
1,003
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 29.39, "nodes": 563, "errors": 0, "source_hash": "68f41989789fde986c8c6c32a469e46072c00af4610c03baabfcc05c738c7b84", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,826
c
// // Created by <NAME> on 10/11/18. // #ifndef GESTURES_KEYPOINTMODELPREDICTOR_H #define GESTURES_KEYPOINTMODELPREDICTOR_H #include <openpose/utilities/headers.hpp> #include <boost/serialization/vector.hpp> #include "keras_model.h" class KeypointModelPredictor { private: const std::vector<int> keypointFilter_;...
38.88
32
(translation_unit) "//\n// Created by <NAME> on 10/11/18.\n//\n\n#ifndef GESTURES_KEYPOINTMODELPREDICTOR_H\n#define GESTURES_KEYPOINTMODELPREDICTOR_H\n\n#include <openpose/utilities/headers.hpp>\n#include <boost/serialization/vector.hpp>\n#include "keras_model.h"\n\nclass KeypointModelPredictor {\n\nprivate:\n const...
171
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.88, "nodes": 96, "errors": 0, "source_hash": "25781a23aa6e6ee697b22cf03305b77244be6515e791f04be564f84b79095141", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,827
c
// // GoogleSignIn.h // Google Sign-In iOS SDK // // Copyright 2015 Google Inc. // // Use of this SDK is subject to the Google APIs Terms of Service: // https://developers.google.com/terms/ // #import "GIDAuthentication.h" #import "GIDGoogleUser.h" #import "GIDProfileData.h" #import "GIDSignIn.h" #import "GIDSign...
23.47
15
(translation_unit) "//\n// GoogleSignIn.h\n// Google Sign-In iOS SDK\n//\n// Copyright 2015 Google Inc.\n//\n// Use of this SDK is subject to the Google APIs Terms of Service:\n// https://developers.google.com/terms/\n//\n\n#import "GIDAuthentication.h"\n#import "GIDGoogleUser.h"\n#import "GIDProfileData.h"\n#impo...
28
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.47, "nodes": 18, "errors": 0, "source_hash": "e337150f5c175315b1ec74e486aa1a3b1de0ebd71665cd3eb142c595a721eafb", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
11,828
c
/* * Copyright (C) 2017 Free Electrons * Copyright (C) 2017 NextThing Co * * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
32.64
44
(translation_unit) "/*\n * Copyright (C) 2017 Free Electrons\n * Copyright (C) 2017 NextThing Co\n *\n * Author: <NAME> <<EMAIL>>\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; either...
244
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.64, "nodes": 160, "errors": 0, "source_hash": "c03aaf261eab0221aac4dfde64728646d184bee7cf163ec7258d0990da551f2a", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,829
c
/* K I L L . C * BRL-CAD * * Copyright (c) 2007-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as pu...
26.93
55
(translation_unit) "/* K I L L . C\n * BRL-CAD\n *\n * Copyright (c) 2007-2014 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public L...
159
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.93, "nodes": 102, "errors": 0, "source_hash": "af9c38df593e76161c0c1ffbbec56a398be6b89853540d11ded6b2993d601d89", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,830
c
/* SPDX-FileCopyrightText: (c) 2021 <NAME> <<EMAIL>> * SPDX-License-Identifier: MIT */ #ifndef GUARD_DWT_TYPES_H #define GUARD_DWT_TYPES_H #include <dwt/config.h> #include <dwt/macros.h> #include <dwt/os.h> BEGIN_C_DECLS CFG_CHECK typedef void *dwt_t; typedef u64 var; typedef var (*dwt_ffi_function_t)(dwt_t dwt...
23.13
15
(translation_unit) "/* SPDX-FileCopyrightText: (c) 2021 <NAME> <<EMAIL>>\n * SPDX-License-Identifier: MIT\n */\n\n#ifndef GUARD_DWT_TYPES_H\n#define GUARD_DWT_TYPES_H\n\n#include <dwt/config.h>\n#include <dwt/macros.h>\n#include <dwt/os.h>\n\nBEGIN_C_DECLS\nCFG_CHECK\n\ntypedef void *dwt_t;\n\ntypedef u64 var;\n\ntyped...
63
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.13, "nodes": 47, "errors": 0, "source_hash": "532c13606db5f5fb94f315f5156696270953d562fb76238bc9a9ed7f017a5f59", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,831
c
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "CsSettings_Manager_Data.generated.h" #pragma once // FCsSettings_Manager_Data #pragma region USTRUCT(BlueprintType) struct CSCORE_API FCsSettings_Manager_Data { GENERATED_USTRUCT_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadOnly, ...
27.11
37
(translation_unit) "// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.\n#include "CsSettings_Manager_Data.generated.h"\n#pragma once\n\n// FCsSettings_Manager_Data\n#pragma region\n\nUSTRUCT(BlueprintType)\nstruct CSCORE_API FCsSettings_Manager_Data\n{\n GENERATED_USTRUCT_BODY()\n\npublic:\n\n UPROPERTY...
234
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 27.11, "nodes": 128, "errors": 0, "source_hash": "0861c405ff2a30c381cc933d2a19bdf7b5641411b4012ee995a5394f9c07919e", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,832
c
/* This file is part of PyMesh. Copyright (c) 2015 by <NAME> */ #pragma once #include <string> #include <vector> #include <Wires/WireNetwork/WireNetwork.h> #include <Wires/Parameters/ParameterManager.h> #include "WireProfile.h" namespace PyMesh { class PhantomMeshGenerator { public: PhantomMeshGenerator(...
39.26
73
(translation_unit) "/* This file is part of PyMesh. Copyright (c) 2015 by <NAME> */\n#pragma once\n\n#include <string>\n#include <vector>\n#include <Wires/WireNetwork/WireNetwork.h>\n#include <Wires/Parameters/ParameterManager.h>\n#include "WireProfile.h"\n\nnamespace PyMesh {\n\nclass PhantomMeshGenerator {\n publi...
568
25
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 39.26, "nodes": 327, "errors": 0, "source_hash": "72ac22ad2d19d6c7f2690c9c91b660340cae36c611e7d5978071d1c5b5191538", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,833
c
#ifndef DWM_MOD_SCREEN #define DWM_MOD_SCREEN #include <lauxlib.h> #include <lua.h> #include <lualib.h> int dwmmod_opendisplay(lua_State *L); #endif
20.29
7
(translation_unit) "#ifndef DWM_MOD_SCREEN\n#define DWM_MOD_SCREEN\n\n#include <lauxlib.h>\n#include <lua.h>\n#include <lualib.h>\n\nint dwmmod_opendisplay(lua_State *L);\n\n#endif\n" (preproc_ifdef) "#ifndef DWM_MOD_SCREEN\n#define DWM_MOD_SCREEN\n\n#include <lauxlib.h>\n#include <lua.h>\n#include <lualib.h>\n\nint ...
30
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.29, "nodes": 26, "errors": 0, "source_hash": "65a5f65cc6ac8b4ab319f43b33e731818d6dea36f7ac6d5f66f797fa94a67b93", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
11,834
c
/** @file rookie.c @brief Rookie IO board example featuring IoT device. @author <NAME>, <NAME> @version 1.0 @date 6.4.2020 IOBOARD_CTRL_CON define selects how this IO device connects to control computer. One of IOBOARD_CTRL_CONNECT_SOCKET, IOBOARD_CTRL_CONNECT_TLS or IOBOARD_CTRL_CONNECT_SERIA...
39.56
261
(translation_unit) "/**\n\n @file rookie.c\n @brief Rookie IO board example featuring IoT device.\n @author <NAME>, <NAME>\n @version 1.0\n @date 6.4.2020\n\n IOBOARD_CTRL_CON define selects how this IO device connects to control computer. One of\n IOBOARD_CTRL_CONNECT_SOCKET, IOBOARD_CTRL_CONNECT_TLS ...
1,353
1
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 39.56, "nodes": 788, "errors": 0, "source_hash": "5a002abd88f8cef6b28af9f97714aeb15eec22b4c3b9280dade49fe03bc73916", "categorized_nodes": 629}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
11,835
c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include <paraconf.h> /* This file contains an example on how to use Paraconf */ int main(int argc, char *argv[]) { /// Creates a tree that contains all the parsed data of the parameter file if (arg...
33.19
67
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n#include <math.h>\n#include <paraconf.h>\n\n\n/* This file contains an example on how to use Paraconf \n */\n\n\nint main(int argc, char *argv[])\n{\n /// Creates a tree that contains all the parsed ...
598
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 33.19, "nodes": 310, "errors": 0, "source_hash": "4b03bc9c3fd3fd8e9b3243609019da9a7b32fb9484a272aae7a01343c70a5909", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,836
c
#ifndef ENGINE_GLOBAL_H #define ENGINE_GLOBAL_H #include <QtCore/qglobal.h> #if defined(ENGINE_LIBRARY) # define ENGINESHARED_EXPORT Q_DECL_EXPORT #else # define ENGINESHARED_EXPORT Q_DECL_IMPORT #endif #endif // ENGINE_GLOBAL_H
24.67
9
(translation_unit) "#ifndef ENGINE_GLOBAL_H\n#define ENGINE_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if defined(ENGINE_LIBRARY)\n# define ENGINESHARED_EXPORT Q_DECL_EXPORT\n#else\n# define ENGINESHARED_EXPORT Q_DECL_IMPORT\n#endif\n\n#endif // ENGINE_GLOBAL_H\n" (preproc_ifdef) "#ifndef ENGINE_GLOBAL_H\n#define ...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.67, "nodes": 27, "errors": 0, "source_hash": "7909fbac072d0568761ad79758d9078cfc8e2714649cf6f9dd3595a90c1f1d53", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
11,837
c
#ifndef LUPS_AST_H #define LUPS_AST_H #include "token.h" #include <memory> #include <string> #include <unordered_map> #include <vector> enum class AstType { Program, Identifier, LetStatement, ReturnStatement, ExpressionStatement, HashLiteral, ArrayLiteral, CallExpression, StringLiteral, IndexExpression, Pr...
28.71
200
(ERROR) "#ifndef LUPS_AST_H\n#define LUPS_AST_H\n\n#include "token.h"\n#include <memory>\n#include <string>\n#include <unordered_map>\n#include <vector>\n\nenum class AstType {\n Program,\n Identifier,\n LetStatement,\n ReturnStatement,\n ExpressionStatement,\n HashLiteral,\n ArrayLiteral,\n CallExpression,\n StringLit...
1,905
150
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 28.71, "nodes": 1001, "errors": 0, "source_hash": "620e3ede87c77e478a9270bbcea87a2d0cc82eadd45d41fa42df9e7b88b37c8b", "categorized_nodes": 697}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LUPS_AST_H\n#de...
11,838
c
/////////////////////////////////////////////////////////////////////// // // *** INTERACTIVE DATA VISUALIZATION (IDV) PROPRIETARY INFORMATION *** // // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Interactive Data Visualization and may // not be copied or disclo...
26.9
99
(translation_unit) "/////////////////////////////////////////////////////////////////////// \n//\n// *** INTERACTIVE DATA VISUALIZATION (IDV) PROPRIETARY INFORMATION ***\n//\n// This software is supplied under the terms of a license agreement or\n// nondisclosure agreement with Interactive Data Visualization and may\n...
458
20
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 26.9, "nodes": 241, "errors": 0, "source_hash": "ed77d13c8976957f428c3c330b93fd43d94bd8c04ee65860df40162b90218c7a", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "S...
11,839
c
// Copyright (C) 2014, <NAME>. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include "anki/math/Vec2.h" #include "anki/math/Vec3.h" #include "anki/math/Vec4.h" #include "anki/math/Quat.h" #include "anki/math/Axisang.h" #include "anki/math/Euler.h" #include "anki/math...
28.94
16
(translation_unit) "// Copyright (C) 2014, <NAME>.\n// All rights reserved.\n// Code licensed under the BSD License.\n// http://www.anki3d.org/LICENSE\n\n#include "anki/math/Vec2.h"\n#include "anki/math/Vec3.h"\n#include "anki/math/Vec4.h"\n#include "anki/math/Quat.h"\n#include "anki/math/Axisang.h"\n#include "anki/mat...
77
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.94, "nodes": 36, "errors": 0, "source_hash": "3ccb59f15412bce14544d9bcff295598f58bf1c7ea3e98508ed1b99016ff5b37", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,840
c
// // Created by <NAME> 2015/10/23 // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #pragma once #ifndef hifi_Controllers_ActionEndpoint_h #define hifi_Controllers_ActionEndpoint...
32.97
29
(translation_unit) "//\n// Created by <NAME> 2015/10/23\n// Copyright 2015 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n#pragma once\n#ifndef hifi_Controllers_ActionEndpoint_h\n#define h...
207
17
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.97, "nodes": 109, "errors": 0, "source_hash": "7d24a204402f5aff9fe7ca0802019e8d9358f8efff1d48b7eacaf7a1627fdd21", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,841
c
// // Created by bkg2k on 03/11/2020. // #pragma once #include <utils/storage/Array.h> class ProcessTree { public: static void TerminateAll(int millisesonds) { Array<int> processes = GetTree(-1); TerminateTree(processes, millisesonds); } static Array<int> GetTree(int pid); static v...
27.61
18
(translation_unit) "//\n// Created by bkg2k on 03/11/2020.\n//\n#pragma once\n\n#include <utils/storage/Array.h>\n\nclass ProcessTree\n{\n public:\n static void TerminateAll(int millisesonds)\n {\n Array<int> processes = GetTree(-1);\n TerminateTree(processes, millisesonds);\n }\n\n static Array<...
144
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.61, "nodes": 89, "errors": 0, "source_hash": "830ca126ad2e276eefbc6b7bc12a517aa48971b296d4f5ec84f1e2efc01e1130", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,842
c
#ifndef READ_APP_LOG_H_INCLUDED #define READ_APP_LOG_H_INCLUDED #include <fstream> #include <string> using std::string; #include "constant.h" class ReadAppLog { public: ReadAppLog(const char* path) { // std::ofstream(path) string tmp = path; tmp += Constant::Paths::LOG_PATH; file_.open...
21.07
29
(translation_unit) "#ifndef READ_APP_LOG_H_INCLUDED\n#define READ_APP_LOG_H_INCLUDED\n\n#include <fstream>\n#include <string>\n\nusing std::string;\n\n#include "constant.h"\n\nclass ReadAppLog {\n public:\n ReadAppLog(const char* path) {\n // std::ofstream(path)\n string tmp = path;\n tmp += Constant...
196
12
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.07, "nodes": 111, "errors": 0, "source_hash": "88dd61cb5093a5bd39eb2162221518db79554d4a21657ee21fafb7008471d98a", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,843
c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(void) { int a = 0, b = 0; #pragma omp parallel { int me = omp_get_thread_num(); if (me==0) a=1; if (me==1) b=1; #pragma omp flush (a,b) } printf("%d,%d\n",a,b); return 0; } /************************...
21.5
16
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <omp.h>\nint main(void) {\n\n int a = 0, b = 0;\n #pragma omp parallel\n {\n int me = omp_get_thread_num();\n if (me==0) a=1;\n if (me==1) b=1;\n #pragma omp flush (a,b)\n }\n printf("%d,%d\n",a,b);\n ret...
105
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.5, "nodes": 69, "errors": 0, "source_hash": "910239b040b9e6317dbd9dd041ad9dfc28afd786cea3360bd1aa045b2ed674ea", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,844
c
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
24.48
204
(translation_unit) "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2....
979
23
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 24.48, "nodes": 620, "errors": 0, "source_hash": "a04484a8c93f33fe5c3e41207842c36dc920cc76ec9613a78fd804d41384320c", "categorized_nodes": 486}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,845
c
#pragma once #include <memory> #include <string> #include <string_view> #include <type_traits> #include <unordered_map> #include <vector> namespace Pargon { enum class BlueprintType { Invalid, Null, Boolean, Integer, FloatingPoint, String, List, Map }; class Blueprint { public: using Invalid ...
23.94
164
(translation_unit) "#pragma once\n\n#include <memory>\n#include <string>\n#include <string_view>\n#include <type_traits>\n#include <unordered_map>\n#include <vector>\n\nnamespace Pargon\n{\n enum class BlueprintType\n {\n Invalid,\n Null,\n Boolean,\n Integer,\n FloatingPoint,\n String,\n List,\n Map\n };\n\n c...
1,447
103
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 23.94, "nodes": 863, "errors": 0, "source_hash": "1586f0f2bf63e01d5ceafc8f98bcc208674c94353b69e075de4d9fcb26bc73b9", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,846
c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * Broadcom System Log Error Sink */ #include <sal/core/libc.h> #include <sal/appl/io.h> #include <appl/diag/bs...
25.49
78
(translation_unit) "/*\n * \n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n *\n * Broadcom System Log Error Sink\n */\n\n#include <sal/core/libc.h>\n#include <sal/app...
471
3
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 25.49, "nodes": 274, "errors": 0, "source_hash": "e20272290d529caa15e39e7d3c4872bf85a561070c649c2a490070aaa363600d", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,847
c
// // UAModalTitledDisplayPanelView.h // UAModalPanel // // Created by <NAME> on 1/8/12. // Copyright (c) 2012 Urban Apps. All rights reserved. // #import <Foundation/Foundation.h> #import "UAModalPanel.h" #import "UANoisyGradientBackground.h" @interface UATitledModalPanel : UAModalPanel { CGFloat titleBa...
31.52
23
(translation_unit) "//\n// UAModalTitledDisplayPanelView.h\n// UAModalPanel\n//\n// Created by <NAME> on 1/8/12.\n// Copyright (c) 2012 Urban Apps. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "UAModalPanel.h"\n#import "UANoisyGradientBackground.h" \n\n@interface UATitledModalPanel : UAMod...
116
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.52, "nodes": 73, "errors": 0, "source_hash": "bbcd6ad700998beedf1abf757e68acf7bce1bd29689da438ab1e275cd8062c8e", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,848
c
/* Copyright (C) 2015 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: NSOperation subclass for parsing the RSS feed. */ @interface ParseOperation : NSOperation // A block to call when an error is encountered during parsing. @property (nonatomic, copy) void (^er...
37.53
17
(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 NSOperation subclass for parsing the RSS feed.\n */\n\n@interface ParseOperation : NSOperation\n\n// A block to call when an error is encountered during parsing.\n@prope...
79
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.53, "nodes": 51, "errors": 0, "source_hash": "719ffe8795628226bec93651eb11d8836cd383aa2ace1507754e13b7c2d679bd", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "nterface ParseOp...
11,849
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================================= ApplePlatformAtomics.h: Apple platform Atomics functions ==============================================================================================*/ #pragm...
39.24
34
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n/*=============================================================================================\n ApplePlatformAtomics.h: Apple platform Atomics functions\n================================================================================...
174
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 39.24, "nodes": 103, "errors": 0, "source_hash": "0d9857ab8d4405826b0a0442b99c2946b7f2a7109d38f157ec7ad2cbe482a30f", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,850
c
/** * * gameball.h * * Author: <NAME> <<EMAIL>> * * License: please visit the LICENSE file for details. * **/ #ifndef GAMEBALL_H #define GAMEBALL_H #include <QImage> #include <QPainter> #include <QGraphicsItem> #include "gametypes.h" class GameController; class GameBall : public QGraphicsItem { public: ...
21.79
34
(translation_unit) "/**\n * \n * gameball.h\n *\n * Author: <NAME> <<EMAIL>>\n *\n * License: please visit the LICENSE file for details.\n *\n **/\n\n\n#ifndef GAMEBALL_H\n#define GAMEBALL_H\n\n#include <QImage>\n#include <QPainter>\n#include <QGraphicsItem>\n\n#include "gametypes.h"\n\nclass GameController;\n\nclass ...
165
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.79, "nodes": 108, "errors": 0, "source_hash": "988e7fb674e1e3b43fc5b3b0b1763a85dab60749f7b73721e36652de0c98c289", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,851
c
#pragma once namespace hoopd { class Descriptable { public: virtual const void description() const = 0; }; }
14.12
8
(translation_unit) "#pragma once \n \nnamespace hoopd { \nclass Descriptable { \npublic: \n virtual const void description() const = 0; \n}; \n} \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (function_definition) "namespace hoopd { \nclass Descriptable { \npubli...
37
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 14.12, "nodes": 19, "errors": 0, "source_hash": "e35cce7a23a68b0466baaa86be4c4da0ce8b137c5e6cc5398570257b9084b0c2", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,852
c
#pragma once #include <Coordination/NuKeeperStorage.h> #include <libnuraft/nuraft.hxx> // Y_IGNORE #include <common/logger_useful.h> #include <Coordination/ThreadSafeQueue.h> #include <Coordination/CoordinationSettings.h> namespace DB { using ResponsesQueue = ThreadSafeQueue<NuKeeperStorage::ResponseForSession>; cl...
39.29
69
(translation_unit) "#pragma once\n\n#include <Coordination/NuKeeperStorage.h>\n#include <libnuraft/nuraft.hxx> // Y_IGNORE\n#include <common/logger_useful.h>\n#include <Coordination/ThreadSafeQueue.h>\n#include <Coordination/CoordinationSettings.h>\n\nnamespace DB\n{\n\nusing ResponsesQueue = ThreadSafeQueue<NuKeeperSt...
650
47
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 39.29, "nodes": 389, "errors": 0, "source_hash": "dd165ff3b93cc0f4d6fb3605567faced91f79bd47db2ac4c7ff7fdbe51fddf31", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,853
c
/** * A splay tree implementation of a binary tree. */ #ifndef SPLAYTREECOUNTABLE_H #define SPLAYTREECOUNTABLE_H #include "../binaryTreeCountable.h" #include "splayTree.h" // A specialized SplayTree that tracks the size of elements in the tree. // This uses another integer, but makes an O(1) size() function templat...
36.75
28
(translation_unit) "/**\n * A splay tree implementation of a binary tree.\n */\n#ifndef SPLAYTREECOUNTABLE_H\n#define SPLAYTREECOUNTABLE_H\n\n#include "../binaryTreeCountable.h"\n#include "splayTree.h"\n\n// A specialized SplayTree that tracks the size of elements in the tree.\n// This uses another integer, but makes a...
240
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 36.75, "nodes": 142, "errors": 0, "source_hash": "34522253e9dce73cf0bfffd773afda7fecaef62e452430dd050338842cad97e3", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,854
c
// Part of this code is taken from: https://www.codeproject.com/Articles/813185/Calculating-the-Number-PI-Through-Infinite-Sequenc // Approximation of the number PI // Language: C // Author: <NAME> (<EMAIL>) #include <stdlib.h> #include "util.h" #include "../common/common.h" #define WITH_POSIT // #define WITH_SQRT #ifd...
22.27
131
(translation_unit) "// Part of this code is taken from: https://www.codeproject.com/Articles/813185/Calculating-the-Number-PI-Through-Infinite-Sequenc\n// Approximation of the number PI\n// Language: C\n// Author: <NAME> (<EMAIL>)\n#include <stdlib.h>\n#include "util.h"\n#include "../common/common.h"\n#define WITH_POSI...
989
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 22.27, "nodes": 682, "errors": 0, "source_hash": "1a5979e79759ff7210a46b5762dfee65772b6c257216601eb9a0ce699e82bbbd", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,855
c
/////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version Apr 10 2012) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #ifndef __IDIALOGS_H__ #define _...
34.18
157
(translation_unit) "/////////////////////////////////////////////////////////////////////////\n// C++ code generated with wxFormBuilder (version Apr 10 2012)\n// http://www.wxformbuilder.org/\n//\n// PLEASE DO "NOT" EDIT THIS FILE!\n///////////////////////////////////////////////////////////////////////////\n\n#ifndef ...
1,298
24
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 34.18, "nodes": 826, "errors": 0, "source_hash": "c05b07aab450ebad74c925c11694c3f0c465de940907a4dc8a4cdd70e728936e", "categorized_nodes": 623}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
11,856
c
/**************************************************************************** ****************************************************************************/ #ifndef __UI_NOTIFY_H__ #define __UI_NOTIFY_H__ /* coordinate */ #define NOTIFY_CONT_X ((SCREEN_WIDTH - NOTIFY_CONT_W) / 2)//440 #define NOTIFY_CONT_Y 10...
31.15
26
(translation_unit) "/****************************************************************************\n\n ****************************************************************************/\n#ifndef __UI_NOTIFY_H__\n#define __UI_NOTIFY_H__\n\n/* coordinate */\n#define NOTIFY_CONT_X ((SCREEN_WIDTH - NOTIFY_CONT_W) / 2)//440\n...
125
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.15, "nodes": 96, "errors": 0, "source_hash": "452bd55e07643cf3004f953ccb49df5f69a403b0608245949501ed51bbcbc835", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,857
c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); #include <pthread.h> #define assert(e) { if(!(e)) { ERROR: __VERIFIER_error();(void)0; } } int turn; // integer variable to hold the ID of the thread whose turn is it int x; // variable to test mutual exclusion int flag1 = 0, flag2 = 0; // boolean flags ...
23.7
43
(translation_unit) "extern void __VERIFIER_error() __attribute__ ((__noreturn__));\n\n#include <pthread.h>\n\n#define assert(e) { if(!(e)) { ERROR: __VERIFIER_error();(void)0; } }\n\nint turn; // integer variable to hold the ID of the thread whose turn is it\nint x; // variable to test mutual exclusion\nint flag1 = 0, ...
260
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.7, "nodes": 156, "errors": 0, "source_hash": "ea74d03b62b956f4fe046c5986256f57e2272673f564f6073f914f90258c89e7", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern vo...
11,858
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #if !defined( SAVEGAME_VERSION_H ) #define SAVEGAME_VERSION_H #ifdef _WIN32 #pragma once #endif #define SAVEGAME_VERSION 0...
27.54
13
(translation_unit) "========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: \n//\n// $NoKeywords: $\n//=============================================================================//\n#if !defined( SAVEGAME_VERSION_H )\n#define SAVEGAME_VERSION_H\n#ifdef _WIN32\n#pragma once\n#endif\...
33
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.54, "nodes": 23, "errors": 0, "source_hash": "0c5dccb2a36979412709b811c1ea3eaafa426753099c1063aa3a47282c344fb5", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "f !defined(...
11,859
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "MMPackageDownloadMgrExt.h" #import "MMObject.h" @protocol WCBGRecommendMgrDelegate; @interface WCBGRecommendMgr : MMObject <MMPackageDownloadMgrExt> { id<W...
27.78
23
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "MMPackageDownloadMgrExt.h"\n#import "MMObject.h"\n\n@protocol WCBGRecommendMgrDelegate;\n\n@interface WCBGRecommendMgr : MMObject <...
167
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.78, "nodes": 106, "errors": 0, "source_hash": "c56b6795306803119ec3e45d032e0eed661de692e88499bcccc019d45be3e80a", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,860
c
/* * transform.h * * Created on: Jan 23, 2014 * Author: jonas */ #ifndef TRANSFORM_H_ #define TRANSFORM_H_ #include "project.h" struct Transform{ static int mmToEncoder(float mm){ return int(MOTOR_ENC_PER_REV*MOTOR_GEAR_RATIO*mm + 0.5f); } static float encoderToMM(int encoder){ return float(encoder...
20.48
25
(translation_unit) "/*\n * transform.h\n *\n * Created on: Jan 23, 2014\n * Author: jonas\n */\n\n#ifndef TRANSFORM_H_\n#define TRANSFORM_H_\n\n#include "project.h"\n\nstruct Transform{\n static int mmToEncoder(float mm){\n return int(MOTOR_ENC_PER_REV*MOTOR_GEAR_RATIO*mm + 0.5f);\n }\n static float encoderToMM(...
152
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.48, "nodes": 95, "errors": 0, "source_hash": "593a9b3d1a953c18494d3954b1eb7a1aafc88fd5e9f9feef5711eab5b6483aa9", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,861
c
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file texturePlacement.h * @...
30.69
127
(translation_unit) "/**\n * PANDA 3D SOFTWARE\n * Copyright (c) Carnegie Mellon University. All rights reserved.\n *\n * All use of this software is subject to the terms of the revised BSD\n * license. You should have received a copy of this license along\n * with this source code in a file named "LICENSE."\n *\n * @...
874
36
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 30.69, "nodes": 515, "errors": 0, "source_hash": "fc74ab9ba72c61c62fa8c06dac9b92190f80755e02f48f865e428655c58db760", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,862
c
#ifndef WATCHY_H #define WATCHY_H #include <Arduino.h> #include <WiFiManager.h> #include <HTTPClient.h> #include <NTPClient.h> #include <WiFiUdp.h> #include <Arduino_JSON.h> #include <GxEPD2_BW.h> #include <Wire.h> #include <Fonts/FreeMonoBold9pt7b.h> #include "DSEG7_Classic_Bold_53.h" #include "WatchyRTC.h" #include ...
32.64
74
(translation_unit) "#ifndef WATCHY_H\n#define WATCHY_H\n\n#include <Arduino.h>\n#include <WiFiManager.h>\n#include <HTTPClient.h>\n#include <NTPClient.h>\n#include <WiFiUdp.h>\n#include <Arduino_JSON.h>\n#include <GxEPD2_BW.h>\n#include <Wire.h>\n#include <Fonts/FreeMonoBold9pt7b.h>\n#include "DSEG7_Classic_Bold_53.h"\...
589
16
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 32.64, "nodes": 389, "errors": 0, "source_hash": "ca90910d52b6676038055e1e7c9697aa00d1064171997150f9ce9ec2985ed4c4", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,863
c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <move.h> #include <server/move.h> #include <server/tile.h> #include <server/server.h> #include <utils/graph.h> #define SERVER_NB_TILE 81 #define SERVER_NB_DIMENSION 3 /** * @file */ void test_get_orig(void) { struct move m; m.orig = 2; ...
17.81
47
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n\n#include <move.h>\n#include <server/move.h>\n#include <server/tile.h>\n#include <server/server.h>\n#include <utils/graph.h>\n\n#define SERVER_NB_TILE 81\n#define SERVER_NB_DIMENSION 3\n\n/**\n * @file\n */\n\nvoid test_get_orig(void)\n{...
299
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 17.81, "nodes": 194, "errors": 0, "source_hash": "5b04f8165ebd64f16f44b0c541a7d56bc6ec5d9b3eb22ef793298a8f61923061", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,864
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ if (argc != 3){ printf("USAGE: rectangle_calc height width\n"); return 1; } float height = atof(argv[1]); float width = atof(argv[2]); float perimeter = 2 * (height + width); float area = height * width...
27.44
16
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n\nint main(int argc, char * argv[]){\n if (argc != 3){\n printf("USAGE: rectangle_calc height width\n");\n return 1;\n }\n\n float height = atof(argv[1]);\n float width = atof(argv[2]);\n\n float perimeter = 2 * (height + width)...
147
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.44, "nodes": 91, "errors": 0, "source_hash": "e23069aef63003bcc1a9487c3fbaf793427796a70f711ed2d0fecb8b660130c6", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,865
c
#pragma once #include "CoreMinimal.h" #include "EInputKeys.h" #include "GameFramework/Actor.h" #include "TreasureWeight.h" #include "TreasureContainer.generated.h" class USceneComponent; class UOncePerPlayerUsableComponent; class UItemAquisitionSource; class UTreasureRewarder; class APlayerCharacter; UCLASS(Blueprint...
32.78
83
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "EInputKeys.h"\n#include "GameFramework/Actor.h"\n#include "TreasureWeight.h"\n#include "TreasureContainer.generated.h"\n\nclass USceneComponent;\nclass UOncePerPlayerUsableComponent;\nclass UItemAquisitionSource;\nclass UTreasureRewarder;\nclass APla...
588
12
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.78, "nodes": 367, "errors": 0, "source_hash": "912fc9429845decaa6cf7b24a34145a0fd8ace07fe95a4ff7f170de27603312b", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,866
c
#pragma once #include <math.h> /* copysign */ namespace MyComplexNumber{ //Complex Class definition class MyComplex { public: double re; double im; MyComplex(double real = 0, double imaginary = 0) { re = real; im = imaginary; } //overload addition, subtraction, multiplication...
28.47
151
(translation_unit) "#pragma once\n#include <math.h> /* copysign */\n\n\nnamespace MyComplexNumber{\n //Complex Class definition\n class MyComplex\n {\n public:\n double re;\n double im;\n \n MyComplex(double real = 0, double imaginary = 0)\n {\n re = real;\n im = imaginary;\n }\n //overload ...
2,327
20
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 28.47, "nodes": 1453, "errors": 0, "source_hash": "7d6465f10373191eb44c961b074ee71efb79421a10b0c62175195c1887d4f19f", "categorized_nodes": 1205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
11,867
c
#pragma once #include "../../../Common/CETypes.h" namespace ConceptEngine::Core::Platform::Generic::Input { enum CEKey : uint8 { Key_Unknown = 0, // Numbers Key_0 = 7, Key_1 = 8, Key_2 = 9, Key_3 = 10, Key_4 = 11, Key_5 = 12, Key_6 = 13, Key_7 = 14, Key_8 = 15, Key_9 = 16, // Letters K...
23.94
302
(translation_unit) "#pragma once\n\n#include "../../../Common/CETypes.h"\n\nnamespace ConceptEngine::Core::Platform::Generic::Input {\n\n enum CEKey : uint8 {\n Key_Unknown = 0,\n\n // Numbers\n Key_0 = 7,\n Key_1 = 8,\n Key_2 = 9,\n Key_3 = 10,\n Key_4 = 11,\n Key_5 = 12,\n Key_6 = 13,\n Key_7 = 14,\n Key_8...
2,382
6
{"language": "c", "success": true, "metadata": {"lines": 302, "avg_line_length": 23.94, "nodes": 1397, "errors": 0, "source_hash": "c7540366d4b7b1ff37c5fe142c375456126fadd65559498ded8c6d71fc0c0ec9", "categorized_nodes": 1235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
11,868
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSCoding.h" #import "NSObject.h" @class NSString; @protocol TWTRVersionedCacheable <NSObject, NSCoding> + (NSString *)versionedCacheKeyWithID:(NSString *)arg1 perspective:(NSSt...
29.45
11
(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 "NSCoding.h"\n#import "NSObject.h"\n\n@class NSString;\n\n@protocol TWTRVersionedCacheable <NSObject, NSCoding>\n+ (NSString *)versionedCacheKeyWithID:(N...
62
9
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.45, "nodes": 39, "errors": 0, "source_hash": "49931ad56f21e100bc24774b2da0ecb1a70ef03621266947ed8342be488d0fcf", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
11,869
c
#ifndef NCORE_UTILS_SINGLETON_H_ #define NCORE_UTILS_SINGLETON_H_ #include <ncore/ncore.h> namespace ncore { template<typename T> class Singleton { public: static T & Get() { static T t; return t; } }; } #endif
11.09
22
(translation_unit) "fndef NCORE_UTILS_SINGLETON_H_ \n#define NCORE_UTILS_SINGLETON_H_ \n \n#include <ncore/ncore.h> \n \nnamespace ncore \n{ \n \ntemplate<typename T> \nclass Singleton \n{ \npublic: \n static T & Get() \n { \n static T t; \n return t; \n } \n}; \n \n} \n \n#endif" (preproc_ifde...
58
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 11.09, "nodes": 38, "errors": 0, "source_hash": "ec43c4252d92fcc7581c409c19f3bdc91c1d42bc2e43a1d2583dfee9c0f79b32", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef NC...
11,870
c
/** * @file main.c * * @brief Main function */ #include <stdio.h> #include "mcu.h" #include "serial.h" /***************************************** * Private Constant Definitions *****************************************/ #define LED_TOGGLE_DELAY_MS 500 char send_data[256]; /**********************************...
21.67
30
(translation_unit) "/**\n * @file main.c\n *\n * @brief Main function\n */\n\n#include <stdio.h>\n\n#include "mcu.h"\n#include "serial.h"\n\n/*****************************************\n * Private Constant Definitions\n *****************************************/\n\n#define LED_TOGGLE_DELAY_MS 500\n\nchar send_data[256];...
156
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 21.67, "nodes": 82, "errors": 0, "source_hash": "be116d920d39295058456d02ce7c6fbecbc066aad86830ffc80cbe85bd9510eb", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,871
c
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2016 RDK Management * * 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 ...
25.26
92
(translation_unit) "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2016 RDK Management\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the ...
73
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 25.26, "nodes": 42, "errors": 0, "source_hash": "7449ccc2f305ffc7441332073153c55d66a2cd15a2e76363339bc90b1270e83b", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,872
c
#import <React/RCTRootView.h> #import <React/RCTRootViewDelegate.h> #import "RNNEventEmitter.h" #define ComponentTypeScreen @"Component" #define ComponentTypeTitle @"TopBarTitle" #define ComponentTypeButton @"TopBarButton" #define ComponentTypeBackground @"TopBarBackground" typedef void (^RNNReactViewReadyCompletionB...
51.29
17
(translation_unit) "#import <React/RCTRootView.h>\n#import <React/RCTRootViewDelegate.h>\n#import "RNNEventEmitter.h"\n\n#define ComponentTypeScreen @"Component"\n#define ComponentTypeTitle @"TopBarTitle"\n#define ComponentTypeButton @"TopBarButton"\n#define ComponentTypeBackground @"TopBarBackground"\n\ntypedef void (...
182
15
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 51.29, "nodes": 125, "errors": 0, "source_hash": "cb87d7f1f2c5dace84ac8326eff01e4c1cc95fdc7a134cdef77c685c494239de", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,873
c
// // DDBasketManager.h // Appboy-iOS-SDK // // Created by <NAME> on 21/08/2020. // #import <Foundation/Foundation.h> #import "DDBasketM.h" NS_ASSUME_NONNULL_BEGIN typedef void(^ _Nullable BasketModificationCallback)(DDMerchantDeliveryMenuItemM * _Nullable item, NSString * _Nullable info, BOOL isCompleted); @int...
38.31
29
(translation_unit) "//\n// DDBasketManager.h\n// Appboy-iOS-SDK\n//\n// Created by <NAME> on 21/08/2020.\n//\n\n#import <Foundation/Foundation.h>\n#import "DDBasketM.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void(^ _Nullable BasketModificationCallback)(DDMerchantDeliveryMenuItemM * _Nullable item, NSString * _Nullabl...
310
24
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 38.31, "nodes": 196, "errors": 0, "source_hash": "2abf46731721c2de3a01206ba41a339b412bde2914840965145e716a917f3e61", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
11,874
c
#ifndef LineShiftFilter_H #define LineShiftFilter_H #include "AbstractNumberFilter.h" class QString; namespace Isis { class AbstractFilterSelector; class ControlCubeGraphNode; class ControlMeasure; class ControlPoint; /** * @brief Allows filtering by a control measure's line shift * * This clas...
32.52
42
(translation_unit) "#ifndef LineShiftFilter_H\n#define LineShiftFilter_H\n\n#include "AbstractNumberFilter.h"\n\n\nclass QString;\n\n\nnamespace Isis {\n class AbstractFilterSelector;\n class ControlCubeGraphNode;\n class ControlMeasure;\n class ControlPoint;\n\n /**\n * @brief Allows filtering by a control meas...
190
12
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.52, "nodes": 105, "errors": 0, "source_hash": "fbd93266dda7e18a0796b9b0f70cd50e2a141d0eab954d9aa19c9b6a2c93a7ab", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,875
c
#include "UpnpPowerControl.h" #include <WinSock2.h> #include <WS2tcpip.h> #include <IPHlpApi.h> #include <xmllite.h> #include <strsafe.h> HRESULT GetAdaptersInformation( BSTR *bstrOutput ) { HRESULT hr = NOERROR; ULONG BufferSize = 0; PIP_ADAPTER_ADDRESSES pAddresses = NULL; PIP_ADAPTER_ADDRESS...
31.87
145
(translation_unit) "#include "UpnpPowerControl.h"\n#include <WinSock2.h>\n#include <WS2tcpip.h>\n#include <IPHlpApi.h>\n#include <xmllite.h>\n#include <strsafe.h>\n\nHRESULT\nGetAdaptersInformation(\n BSTR *bstrOutput\n )\n{\n HRESULT hr = NOERROR;\n ULONG BufferSize = 0;\n PIP_ADAPTER_ADDRESSES pAddress...
1,050
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 31.87, "nodes": 612, "errors": 0, "source_hash": "dd0b3152af22058cd1362379dad58fe84ced0f01e4c0dc0d6241606f8bc893bf", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,876
c
/**************************************************************************************** * The Sentential Decision Diagram Package * sdd version 2.0, January 8, 2018 * http://reasoning.cs.ucla.edu/sdd ****************************************************************************************/ #include "sddapi.h" #in...
38.17
47
(translation_unit) "/****************************************************************************************\n * The Sentential Decision Diagram Package\n * sdd version 2.0, January 8, 2018\n * http://reasoning.cs.ucla.edu/sdd\n ****************************************************************************************/\...
394
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 38.17, "nodes": 233, "errors": 0, "source_hash": "68cfb5193b14a91149e029d5ed7bf54d50deca0fd273dff80902008bb4c4b05d", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,877
c
/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Licen...
38.83
80
(translation_unit) "/*-----------------------------------------------------------------------------\n\n Copyright 2017 Hopsan Group\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, eit...
535
31
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 38.83, "nodes": 322, "errors": 0, "source_hash": "31c3dd45280140fe345aed7ea097922a419386bf6cd100f79b0515f1ec88731f", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MESSAG...
11,878
c
#ifndef UPCLASSREQUEST_H #define UPCLASSREQUEST_H #include <QNetworkReply> #include <QTimer> #define ERROR_CODE_MD5 -555 #define ERROR_CODE_JSON -333 #define ERROR_CODE_SSL -1000 #define ERROR_CODE_TIMEOUT -10000 class NERequest : public QObject { Q_OBJECT public: enum UPClassHttpError { HTTP_J...
26
55
(translation_unit) "#ifndef UPCLASSREQUEST_H\n#define UPCLASSREQUEST_H\n\n#include <QNetworkReply>\n#include <QTimer>\n\n#define ERROR_CODE_MD5 -555\n#define ERROR_CODE_JSON -333\n#define ERROR_CODE_SSL -1000\n#define ERROR_CODE_TIMEOUT -10000\n\nclass NERequest : public QObject\n{\n Q_OBJECT\npublic:\n\n enum U...
352
17
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.0, "nodes": 224, "errors": 0, "source_hash": "9454d4d5b5e4ff28b090696721e0e140fbb02f7c96934e4e7cf577c303e9063f", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,879
c
#ifndef WebCore_FWD_UnicodeIcu_h #define WebCore_FWD_UnicodeIcu_h #include <JavaScriptCore/UnicodeIcu.h> #endif
27
4
(translation_unit) "#ifndef WebCore_FWD_UnicodeIcu_h\n#define WebCore_FWD_UnicodeIcu_h\n#include <JavaScriptCore/UnicodeIcu.h>\n#endif\n" (preproc_ifdef) "#ifndef WebCore_FWD_UnicodeIcu_h\n#define WebCore_FWD_UnicodeIcu_h\n#include <JavaScriptCore/UnicodeIcu.h>\n#endif" (#ifndef) "#ifndef" (identifier) "WebCo...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.0, "nodes": 10, "errors": 0, "source_hash": "3d41f10037b1681d80a7f95cbd16259ac7beb661d7d9fed358645d282b41dcb2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Web...
11,880
c
#pragma once #include "optim/OptimInterfaces.h" #include <ros/ros.h> #include <yaml-cpp/yaml.h> namespace argus { class L2ConstrainedSearchStepper : public SearchStepper { public: typedef std::shared_ptr<L2ConstrainedSearchStepper> Ptr; L2ConstrainedSearchStepper(); void Initialize( const ros::NodeHandle& ph )...
26
26
(translation_unit) "#pragma once\n\n#include "optim/OptimInterfaces.h"\n#include <ros/ros.h>\n#include <yaml-cpp/yaml.h>\n\nnamespace argus\n{\n\nclass L2ConstrainedSearchStepper\n: public SearchStepper\n{\npublic:\n\n typedef std::shared_ptr<L2ConstrainedSearchStepper> Ptr;\n\n L2ConstrainedSearchStepper();\n\n void I...
182
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.0, "nodes": 110, "errors": 0, "source_hash": "9d45245f205092eed0adbb26647cb8cb642a9c0090eefcfb4528d58244c0132f", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,881
c
/****************************************************************************** Copyright (C), 2016, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : isp_block.h Version : Initial Draft Author : Hisilicon multimedia software...
43.32
82
(translation_unit) "/******************************************************************************\n\n Copyright (C), 2016, Hisilicon Tech. Co., Ltd.\n\n ******************************************************************************\n File Name : isp_block.h\n Version : Initial Draft\n Author : Hi...
327
2
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 43.32, "nodes": 230, "errors": 0, "source_hash": "a2dd54aa20ae49ba50b90febea90db6b60767aad39e12d768d281aac6815182e", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __ISP_...
11,882
c
#ifndef GRAPHVISUALIZER_H #define GRAPHVISUALIZER_H #include <QList> #include <QGraphicsView> #include <QGraphicsEllipseItem> #include "siteinfo.h" #define NODE_RADIUS 24 #define VSPACE 75 #define HSPACE 80 #define LABEL_SPACE 23 class GraphVisualizer { public: GraphVisualizer(QGraphicsView *view); void add...
24.54
26
(translation_unit) "#ifndef GRAPHVISUALIZER_H\n#define GRAPHVISUALIZER_H\n\n#include <QList>\n#include <QGraphicsView>\n#include <QGraphicsEllipseItem>\n\n#include "siteinfo.h"\n\n#define NODE_RADIUS 24\n#define VSPACE 75\n#define HSPACE 80\n#define LABEL_SPACE 23\n\nclass GraphVisualizer\n{\npublic:\n GraphVisualiz...
156
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.54, "nodes": 120, "errors": 0, "source_hash": "170a1c87324fdca7af55c036fc9495dd9b6bde9a744b9675c8eed8f4db423e46", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,883
c
// // YFFloatWindow.h // BatteryCam // // Created by yf on 2017/12/22. // Copyright © 2017年 oceanwing. All rights reserved. // #import <UIKit/UIKit.h> @interface YFFloatWindow : UIWindow @property (nonatomic,assign)BOOL show; @property (nonatomic,assign)UIInterfaceOrientation orientation; -(id)initWith:(BOOL)hor;...
23.92
13
(translation_unit) "//\n// YFFloatWindow.h\n// BatteryCam\n//\n// Created by yf on 2017/12/22.\n// Copyright © 2017年 oceanwing. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YFFloatWindow : UIWindow\n@property (nonatomic,assign)BOOL show;\n@property (nonatomic,assign)UIInterfaceOrientation orien...
68
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.92, "nodes": 43, "errors": 0, "source_hash": "1be9962f3da81ea412423c11e19da3fcda6c23ebddb51f20f88f7760bb0862ca", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
11,884
c
//////////////////////////////////////////////////////////////////////////// // Module : cover_point.h // Created : 24.03.2004 // Modified : 29.06.2004 // Author : <NAME> // Description : Cover point class //////////////////////////////////////////////////////////////////////////// #pragma once class CCoverPoin...
31.58
19
(translation_unit) "////////////////////////////////////////////////////////////////////////////\n// Module : cover_point.h\n// Created : 24.03.2004\n// Modified : 29.06.2004\n// Author : <NAME>\n// Description : Cover point class\n////////////////////////////////////////////////////////////////////////////\n\n#p...
98
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.58, "nodes": 48, "errors": 0, "source_hash": "040390fc882a102137260f8ab7d7a377383f33501d861e40c56016bcff8c26a3", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,885
c
#pragma once #include "PathAlgorithm.h" #include "Node.h" #include <vector> class DijkstraNode : public Node { static const float infinity; public: DijkstraNode() : distance(infinity), closed(false), type(0) {} ~DijkstraNode() {} void setClosed(bool value) { closed = value; } void setDistance(flo...
16.34
73
(translation_unit) "#pragma once\n\n#include "PathAlgorithm.h"\n#include "Node.h"\n#include <vector>\n\nclass DijkstraNode : public Node\n{\n static const float infinity;\n\npublic:\n DijkstraNode() :\n distance(infinity),\n closed(false),\n type(0)\n {}\n\n ~DijkstraNode()\n {}\n\n void setClosed(bool value)\n {\n ...
448
14
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 16.34, "nodes": 257, "errors": 0, "source_hash": "ff0eec40cd871e2587cb4a19d87ed02cef648050212a4f81c71cc9d6d4eb6b1a", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,886
c
#ifndef PROJECT_HEADER_component1078_202_H #define PROJECT_HEADER_component1078_202_H int component1078_202(); #endif // PROJECT_HEADER_component1078_202_H
30.4
5
(translation_unit) "#ifndef PROJECT_HEADER_component1078_202_H\n#define PROJECT_HEADER_component1078_202_H\n\n\n\nint component1078_202();\n\n#endif // PROJECT_HEADER_component1078_202_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component1078_202_H\n#define PROJECT_HEADER_component1078_202_H\n\n\n\nint component1078_2...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.4, "nodes": 12, "errors": 0, "source_hash": "3bcd2d948d9400133e3d266ca1de1ee50b32f6c932bdc4cb1901a7ee54ff42fb", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
11,887
c
/** * @file detect.h * @brief Kernel version detection * @author plutoo * @copyright libnx Authors */ #pragma once #include "../types.h" /// Returns true if the kernel version is equal to or above 2.0.0. bool kernelAbove200(void); /// Returns true if the kernel version is equal to or above 3.0.0. bool kernelAbove...
30.75
16
(translation_unit) "/**\n * @file detect.h\n * @brief Kernel version detection\n * @author plutoo\n * @copyright libnx Authors\n */\n#pragma once\n#include "../types.h"\n\n/// Returns true if the kernel version is equal to or above 2.0.0.\nbool kernelAbove200(void);\n/// Returns true if the kernel version is equal to o...
55
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.75, "nodes": 34, "errors": 0, "source_hash": "e297be5b131ba41f8582ec9fd86ba83084381a35d5f93e4b625979989fff5400", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,888
c
// Copyright (c) 2000 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Id...
25.67
46
(translation_unit) "// Copyright (c) 2000\n// Utrecht University (The Netherlands),\n// ETH Zurich (Switzerland),\n// INRIA Sophia-Antipolis (France),\n// Max-Planck-Institute Saarbruecken (Germany),\n// and Tel-Aviv University (Israel). All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org)\n//\n// $UR...
218
8
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.67, "nodes": 116, "errors": 0, "source_hash": "653a5a0c074b5bbd0056a634b11722e23de052c061235bb795bf01c82c35b5e5", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,889
c
/** * @copyright 2020 YelloSoft */ #include <limits.h> #if defined(__APPLE__) #include <sys/syslimits.h> #elif defined(_MSC_VER) #include <windows.h> #define PATH_MAX MAX_PATH #endif #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "fewer/fewer.h" static void show_commands(...
28.65
175
(translation_unit) "/**\n * @copyright 2020 YelloSoft\n */\n\n#include <limits.h>\n#if defined(__APPLE__)\n#include <sys/syslimits.h>\n#elif defined(_MSC_VER)\n#include <windows.h>\n#define PATH_MAX MAX_PATH\n#endif\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "fewer...
1,567
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 28.65, "nodes": 888, "errors": 0, "source_hash": "6128d88289023dbc320152f1fb797e16dc8ad8f85888212aa435bbf15b153b4e", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,890
c
#ifndef SKIDIBIDIBOP_EDITOR_TOOL #define SKIDIBIDIBOP_EDITOR_TOOL #include "sdlw.h" #include "window_inputs.h" #include "constants.h" #include <string> #include <vector> namespace Editor { namespace Tool { // Base tool, which is something that does some editing to the data class Base { public: ...
24.37
54
(translation_unit) "#ifndef SKIDIBIDIBOP_EDITOR_TOOL\n#define SKIDIBIDIBOP_EDITOR_TOOL\n\n#include "sdlw.h"\n#include "window_inputs.h"\n#include "constants.h"\n#include <string>\n#include <vector>\n\nnamespace Editor\n{\n namespace Tool\n {\n // Base tool, which is something that does some editing to the data\n ...
419
30
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.37, "nodes": 251, "errors": 0, "source_hash": "3f598775dcd7d02d22186cea8c387657133af6413e88e0539f970fb0f843d7e1", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,891
c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE404_Improper_Resource_Shutdown__open_w32CloseHandle_67b.c Label Definition File: CWE404_Improper_Resource_Shutdown__open.label.xml Template File: source-sinks-67b.tmpl.c */ /* * @description * CWE: 404 Improper Resource Shutdown or Release * BadSource: Open a...
27.25
61
(translation_unit) "/* TEMPLATE GENERATED TESTCASE FILE \nFilename: CWE404_Improper_Resource_Shutdown__open_w32CloseHandle_67b.c \nLabel Definition File: CWE404_Improper_Resource_Shutdown__open.label.xml \nTemplate File: source-sinks-67b.tmpl.c \n*/ \n/* \n * @description \n * CWE: 404 Improper Resource Shutdown or Rel...
152
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.25, "nodes": 100, "errors": 0, "source_hash": "7903617e64b86aa6f964d953630400e0eae65d993834acc5349e106b6b8194a4", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,892
c
#ifndef OSGPATHFITTER_H #define OSGPATHFITTER_H #include "PathFitter.h" #include <osg/ref_ptr> #include <osg/Array> /*! \class OsgPathFitter * \brief OpenSceneGraph-based class to perform path fitting. * * The container is of type osg::Vec3Array which can be directly used for drawing procedure by * attaching it ...
39
31
(translation_unit) "#ifndef OSGPATHFITTER_H\n#define OSGPATHFITTER_H\n\n#include "PathFitter.h"\n\n#include <osg/ref_ptr>\n#include <osg/Array>\n\n/*! \class OsgPathFitter\n * \brief OpenSceneGraph-based class to perform path fitting.\n *\n * The container is of type osg::Vec3Array which can be directly used for drawin...
141
13
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 39.0, "nodes": 85, "errors": 0, "source_hash": "9e9bebcdb655c7d6edb7739d0116a47104c6cab9c6f7ec36dbc005c0a8aaff82", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef O...
11,893
c
// // UIViewController+TBSNavigationController.h // theBeastApp // // Created by 付朋华 on 2018/12/7. // Copyright © 2018 com.thebeastshop. All rights reserved. // #import <UIKit/UIKit.h> #import "TBSNavigationBar.h" #import "TBSNavigationItem.h" NS_ASSUME_NONNULL_BEGIN @interface UIViewController (navigationContro...
26.79
29
(translation_unit) "//\n// UIViewController+TBSNavigationController.h\n// theBeastApp\n//\n// Created by 付朋华 on 2018/12/7.\n// Copyright © 2018 com.thebeastshop. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "TBSNavigationBar.h"\n#import "TBSNavigationItem.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ...
135
25
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.79, "nodes": 93, "errors": 0, "source_hash": "3d01929c0dca58c8d30b53f50a472e3920e10443b3e2ff652f97f47b094d6249", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
11,894
c
/*! * The voltage class calculate voltage for each resistance */ #include <sstream> #include <assert.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <fstream> #include <vector> #include <iostream> constexpr auto NC = 1.0e+10; //using std::vector; inline void voltage2( int r, ...
36.47
214
(translation_unit) "/*!\n * The voltage class calculate voltage for each resistance\n */\n\n#include <sstream>\n#include <assert.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <fstream>\n#include <vector>\n#include <iostream>\n\nconstexpr auto NC = 1.0e+10;\n\n//using std::vector;\n\ninline ...
2,675
22
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 36.47, "nodes": 1662, "errors": 0, "source_hash": "935a3427b11c9f2e42a1f451306061efe8329f23c30fef592e8004fa82ba4992", "categorized_nodes": 1260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
11,895
c
/* * Mesa 3-D graphics library * Version: 6.3 * * Copyright (C) 2005 <NAME> All Rights Reserved. * * 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 w...
31.09
235
(translation_unit) "/*\n * Mesa 3-D graphics library\n * Version: 6.3\n *\n * Copyright (C) 2005 <NAME> All Rights Reserved.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software with...
1,698
0
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 31.09, "nodes": 1058, "errors": 0, "source_hash": "8f73d618fbb94fd6d5701c8480c982b9511d51fabf4053e778ae02f01181e820", "categorized_nodes": 822}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
11,896
c
#include "../include/directory_handling.h" #include <string.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <dirent.h> char *GetCurrentWorkingDirectory(int *errorNumber) { char *buffer = (char *) calloc(FILENAME_MAX, sizeof(char)); buffer = getcwd(buffer, FILENAME_MAX)...
27.86
44
(translation_unit) "#include "../include/directory_handling.h"\n#include <string.h>\n#include <stdio.h>\n#include <errno.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <dirent.h>\n\nchar *GetCurrentWorkingDirectory(int *errorNumber) {\n char *buffer = (char *) calloc(FILENAME_MAX, sizeof(char));\n buffer ...
430
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.86, "nodes": 277, "errors": 0, "source_hash": "813a35a1e824272f3e2f88bc027fce7cef08862f3d4522df5c730864d0548ac4", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,897
c
// // QYJQBaseViewController.h // QuanYuJingQu // // Created by LiDinggui on 2017/1/12. // Copyright © 2017年 DAQSoft. All rights reserved. // #import <UIKit/UIKit.h> @interface LDGBaseViewController : UIViewController @end
21.7
10
(translation_unit) "//\n// QYJQBaseViewController.h\n// QuanYuJingQu\n//\n// Created by LiDinggui on 2017/1/12.\n// Copyright © 2017年 DAQSoft. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LDGBaseViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// QYJQBaseViewControlle...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.7, "nodes": 10, "errors": 0, "source_hash": "64aa6cceb27a709d0647d76a0962220c7af4973b4b77d241b08da16d47eed102", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
11,898
c
#include<stdio.h> #include<stdlib.h> typedef struct treenode{ int data; struct treenode *left; struct treenode* right; }Treenode; // structure of BST typedef struct node{ Treenode* data; struct node *next; }sNode; // structure for stack //stk points to the top of the stack. sNode * stk = NU...
21.03
126
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n\n\ntypedef struct treenode{\n int data;\n struct treenode *left;\n struct treenode* right;\n}Treenode; // structure of BST\n\n\ntypedef struct node{\n Treenode* data;\n struct node *next;\n}sNode; // structure for stack \n\n\n//stk points to t...
885
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 21.03, "nodes": 519, "errors": 0, "source_hash": "ffca2ffacd278c7277690bfb94f5b0aeee12e9fbbd8c26e79a673fc028cffba3", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,899