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
/* 反射工具类 old code */ #import <Foundation/Foundation.h> @interface AdMoGoClassWrapper : NSObject { Class theClass; } - (id)initWithClass:(Class)c; @property (nonatomic, readonly) Class theClass; @end
19.2
10
(translation_unit) "/*\n 反射工具类 old code\n */\n\n#import <Foundation/Foundation.h>\n\n@interface AdMoGoClassWrapper : NSObject {\n Class theClass;\n}\n\n- (id)initWithClass:(Class)c;\n\n@property (nonatomic, readonly) Class theClass;\n\n@end\n" (comment) "/*\n 反射工具类 old code\n */\n\n#import " (preproc_call) "oundati...
55
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 33, "errors": 0, "source_hash": "bbee73fb501ab135bd33ac0d026f660b0c85fb8d51ea905f3dee598300bebf59", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "oundation/...
2,500
c
/* * ACE/gredit - 2d finite element grid generation * * <NAME> and <NAME> * * Copyright 1990-2003 Oregon Health and Science University * All Rights Reserved. * */ /* * * find.c - routines for finding nodes, elements * */ #ifndef lint static char RCSid[] = "$Id: find.c,v 1.4 2003/08/15...
25.45
133
(translation_unit) "/*\n * ACE/gredit - 2d finite element grid generation\n *\n * <NAME> and <NAME>\n *\n * Copyright 1990-2003 Oregon Health and Science University\n * All Rights Reserved.\n *\n */\n\n/*\n *\n * find.c - routines for finding nodes, elements\n *\n */\n\n#ifndef lint\nstatic char RC...
1,442
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 25.45, "nodes": 917, "errors": 0, "source_hash": "e7d69314c7e9fd8a018450a3317f3e8dfeb204973db0dc5bc44e008ef359dde7", "categorized_nodes": 688}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,501
c
#pragma once #include <dolphin/gx.h> #include <dolphin/mtx.h> //#pragma enumsalwaysint on typedef void (*CameraCallback)(struct CameraEntry* entry); //see camInit typedef enum CameraId { kCamOffscreen = 0, kCamOffscreen2, kCamShadow, kCamBackground, kCam3d, kCam3dEffectA, kCam3dImage, kCam3dEffectB, kCam2d...
22.9
68
(translation_unit) "#pragma once\n\n#include <dolphin/gx.h>\n#include <dolphin/mtx.h>\n\n//#pragma enumsalwaysint on\n\ntypedef void (*CameraCallback)(struct CameraEntry* entry);\n\n//see camInit\ntypedef enum CameraId {\n kCamOffscreen = 0,\n kCamOffscreen2,\n kCamShadow,\n kCamBackground,\n kCam3d,\n kCam3dEffectA,\n...
370
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 22.9, "nodes": 239, "errors": 0, "source_hash": "22b98c7397f92d3cedbcd264b4e34c4bbe97bc7b389553c410f24ce07614e09a", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,502
c
typedef int32_t ssize_t;
24
1
(translation_unit) "typedef int32_t ssize_t;\n" (type_definition) "typedef int32_t ssize_t;" (typedef) "typedef" (primitive_type) "int32_t" (primitive_type) "ssize_t" (;) ";"
6
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 24.0, "nodes": 4, "errors": 0, "source_hash": "6b3a9eee257a3d23277476e35a51a70bf9d202db4e8a6eeba394b267f8ddc377", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef in...
2,503
c
/*++ Copyright (c) 1989 Microsoft Corporation Module Name: process.c Abstract: This module implements debug support for ws2ifsl.sys driver. Author: <NAME> (VadimE) Dec-1996 Revision History: --*/ #include "precomp.h" #if DBG ULONG DbgLevel=DBG_FAILURES; VOID ReadDbgIn...
22.74
66
(translation_unit) "/*++ \n \nCopyright (c) 1989 Microsoft Corporation \n \nModule Name: \n \n process.c \n \nAbstract: \n \n This module implements debug support for ws2ifsl.sys driver. \n \nAuthor: \n \n <NAME> (VadimE) Dec-1996 \n \nRevision History: \n \n--*/ \n \n#include "precomp.h" \n#if DBG \nULONG...
336
1
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 22.74, "nodes": 202, "errors": 0, "source_hash": "380c87df54dc083706d0d26cf3c08aa424f7c5996887b656a5b11d0bae07b959", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,504
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "pyis/bindings/onnx/onnx_base_kernel.h" #include "pyis/ops/example_ort/language_detector.h" namespace pyis { namespace onnx { using pyis::ops::NaiveLanguageDetector; class KernelNaiveLanguageDetect...
37
26
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "pyis/bindings/onnx/onnx_base_kernel.h"\n#include "pyis/ops/example_ort/language_detector.h"\n\nnamespace pyis {\nnamespace onnx {\n\nusing pyis::ops::NaiveLanguageDetector;\n...
195
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 37.0, "nodes": 106, "errors": 0, "source_hash": "c916d21422a9b98b42f27271e4e55ec3a1c523a1d1080c12891eb41ec9c6bfe6", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,505
c
#ifndef _SYSTICK_H_ #define _SYSTICK_H_ void systick_init(); void systick_delay(uint32_t delay_ms); uint32_t systick_now(); void active_delay(uint32_t delay_ms); #endif
20.75
8
(translation_unit) "#ifndef _SYSTICK_H_\n#define _SYSTICK_H_\n \nvoid systick_init();\n\nvoid systick_delay(uint32_t delay_ms);\n\nuint32_t systick_now();\n\nvoid active_delay(uint32_t delay_ms);\n\n#endif\n" (preproc_ifdef) "#ifndef _SYSTICK_H_\n#define _SYSTICK_H_\n \nvoid systick_init();\n\nvoid systick_dela...
46
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.75, "nodes": 33, "errors": 0, "source_hash": "676e714a5f47b965d073520f06a6830157fae840fe11977b88cd0c14c1942447", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,506
c
// Copyright 2020 The TensorStore Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
35.65
54
(translation_unit) "// Copyright 2020 The TensorStore Authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless re...
218
5
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 35.65, "nodes": 128, "errors": 0, "source_hash": "a53ee8e2d37e9446200ccc9ddb5343c776f6908fe18f062f25fa82cea9eec975", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,507
c
/* * Machine dependent access functions for RTC registers. * * 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, or (at your option) any later version. */ #...
37.83
24
(translation_unit) "/*\n * Machine dependent access functions for RTC registers.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at your option...
49
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.83, "nodes": 37, "errors": 0, "source_hash": "0fb4fc2c0a7add074bc3091657bac6b7f9df57e3dccd67c19d3540206fcb3c40", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,508
c
#ifndef BS_MESH_IJK_H #define BS_MESH_IJK_H /*! \file bs_mesh_ijk.h \brief This file declares bs wrapper over mesh_ijk \author <NAME> \date 2008-05-20 */ #include "mesh_ijk.h" #include "rs_smesh_iface.h" #include "bs_flux_connections.h" namespace blue_sky { class BS_API_PLUGIN bs_mesh_ijk : public rs_s...
40.05
164
(translation_unit) "#ifndef BS_MESH_IJK_H\n#define BS_MESH_IJK_H\n/*!\n \file bs_mesh_ijk.h\n \brief This file declares bs wrapper over mesh_ijk\n \author <NAME>\n \date 2008-05-20\n */\n\n#include "mesh_ijk.h"\n#include "rs_smesh_iface.h"\n#include "bs_flux_connections.h"\n\nnamespace blue_sky\n {\n\n \n class BS...
1,302
28
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 40.05, "nodes": 619, "errors": 0, "source_hash": "d862ca3adfe5a4e782c5709f615aac00bf66219bdb1e83b93861114c0a2d4a0a", "categorized_nodes": 504}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,509
c
// // Error.h // Created by <NAME> on 2022-04-17. // // ============================================================================= /// /// \file /// This file contains the declaration of the Error class. Which is used by the /// Lexer, Parser, Semantic Analyzer and Code Generator to report errors. /// // ===========...
35.6
43
(translation_unit) "//\n// Error.h\n// Created by <NAME> on 2022-04-17.\n//\n// =============================================================================\n///\n/// \file\n/// This file contains the declaration of the Error class. Which is used by the\n/// Lexer, Parser, Semantic Analyzer and Code Generator to repor...
244
15
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 35.6, "nodes": 143, "errors": 0, "source_hash": "7311ccfd450e4394ffaff9a4b6b08e1ec94c5f2f378c175422b475fb57a1886c", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,510
c
/* This file is automatically generated. DO NOT EDIT! */ /* Generated from: NetBSD: mknative,v 1.12 2003/03/05 06:17:17 mrg Exp */ /* This file is automatically generated. DO NOT EDIT! */ extern ld_emulation_xfer_type ld_shelf_nbsd_emulation; extern ld_emulation_xfer_type ld_shlelf_nbsd_emulation; #define EMULATI...
48.5
8
(translation_unit) "/* This file is automatically generated. DO NOT EDIT! */\n/* Generated from: NetBSD: mknative,v 1.12 2003/03/05 06:17:17 mrg Exp */\n\n/* This file is automatically generated. DO NOT EDIT! */\nextern ld_emulation_xfer_type ld_shelf_nbsd_emulation;\nextern ld_emulation_xfer_type ld_shlelf_nbsd_em...
20
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 48.5, "nodes": 14, "errors": 0, "source_hash": "84a7f9a6bb82fadbcf3db5b099f0f441a993915b21423842b5d87b17b732edc0", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern ld_emu...
2,511
c
#ifndef FRIENDSSEARCHER_H #define FRIENDSSEARCHER_H #include <QWidget> #include "UtilHelper.h" #include "localmanwidget.h" namespace Ui{ class FriendsSearcher; } namespace Biz { class CallbackReceiver; class ImSelfPerson; } class FriendsSearcher : public LocalManWidget { Q_OBJECT friend class Uti...
29.59
37
(translation_unit) "fndef FRIENDSSEARCHER_H\n#define FRIENDSSEARCHER_H\n\n#include <QWidget>\n#include "UtilHelper.h"\n\n#include "localmanwidget.h"\nnamespace Ui{\n class FriendsSearcher;\n}\n\nnamespace Biz\n{\n class CallbackReceiver;\n class ImSelfPerson;\n}\n\nclass FriendsSearcher : public LocalManWidget\n{\n ...
287
15
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.59, "nodes": 192, "errors": 0, "source_hash": "82d21485ffac5e656b2ad97c74b57a872b1cc2429b0799542eec2505162a0511", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
2,512
c
/* * Copyright(C) 1999-2020 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ /* * Define the Fortran/C interface for the system ...
24.33
21
(translation_unit) "/*\n * Copyright(C) 1999-2020 National Technology & Engineering Solutions\n * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with\n * NTESS, the U.S. Government retains certain rights in this software.\n *\n * See packages/seacas/LICENSE for details\n */\n/*\n * Define the Fortran...
35
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.33, "nodes": 30, "errors": 0, "source_hash": "da06be8022d99ad71ebdb404a68854d90feda6fd7e8d522ff95ac75d109ace9e", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,513
c
/** * Copyright: (c) 2014 <NAME> <<EMAIL>> * This program is free software; you can redistribute it and/or * modify it under the terms of the Do What The Fuck You Want To * Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ /* =========================...
40.33
39
(translation_unit) "/**\n * Copyright: (c) 2014 <NAME> <<EMAIL>>\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the Do What The Fuck You Want To\n * Public License, Version 2, as published by Sam Hocevar. See\n * http://www.wtfpl.net/ for more details.\n */\n\n/*...
137
5
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 40.33, "nodes": 73, "errors": 0, "source_hash": "fdc8899971beae8d0914badf0d475f8405d00d8a7ce496ecec8e78db9e2731c8", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,514
c
#pragma once #include <cstring> #include "Core/BasicDefines.h" #include "Core/BasicTypes.h" #include "MemoryBasicDefines.h" #if defined(__SSE4_2__) || defined(__SSE4_1__) || defined(__SSSE3__) || defined(__SSE3__) || defined(__SSE2__) || defined(_M_X64) #define EOS_MEM_SIMD #include <emmintrin.h> #endif EOS_NAMESP...
28.27
74
(translation_unit) "#pragma once\n\n#include <cstring>\n\n#include "Core/BasicDefines.h"\n#include "Core/BasicTypes.h"\n\n#include "MemoryBasicDefines.h"\n\n#if defined(__SSE4_2__) || defined(__SSE4_1__) || defined(__SSSE3__) || defined(__SSE3__) || defined(__SSE2__) || defined(_M_X64)\n#define EOS_MEM_SIMD\n#include <...
936
4
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 28.27, "nodes": 625, "errors": 0, "source_hash": "f2c6bb0a2e1eff4f6ca3464f9b91d2e8d458d3c1c220d6ae3a3c4b2360b01768", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,515
c
// // ZDScheduleCellConetntView.h // ZDCalendar // // Created by wshaolin on 14-10-8. // Copyright (c) 2014年 wshaolin. All rights reserved. // #import "ZDCustomCellContentView.h" @interface ZDScheduleCellConetntView : ZDCustomCellContentView @end
24.1
10
(translation_unit) "//\n// ZDScheduleCellConetntView.h\n// ZDCalendar\n//\n// Created by wshaolin on 14-10-8.\n// Copyright (c) 2014年 wshaolin. All rights reserved.\n//\n\n#import "ZDCustomCellContentView.h"\n\n@interface ZDScheduleCellConetntView : ZDCustomCellContentView\n\n@end\n" (comment) "//" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.1, "nodes": 10, "errors": 0, "source_hash": "993ec7dde3c5e739d1e2d01f1cd3d5e61d9a8c9f9ce5e5cb2230d13dc9ac203e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"ZDC...
2,516
c
typedef NS_ENUM(NSInteger, MPRouteDiscoveryMode) { MPRouteDiscoveryModeDisabled, MPRouteDiscoveryModePresence, MPRouteDiscoveryModeDetailed, }; @interface MPAVRoutingController : NSObject @property (nonatomic, assign) MPRouteDiscoveryMode discoveryMode; - (instancetype)initWithName:(NSString *)name; @e...
30.9
10
(translation_unit) "typedef NS_ENUM(NSInteger, MPRouteDiscoveryMode) {\n MPRouteDiscoveryModeDisabled,\n MPRouteDiscoveryModePresence,\n MPRouteDiscoveryModeDetailed,\n};\n\n\n@interface MPAVRoutingController : NSObject\n\n@property (nonatomic, assign) MPRouteDiscoveryMode discoveryMode;\n\n- (instancetype)ini...
72
10
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.9, "nodes": 45, "errors": 0, "source_hash": "4bce6b36313bb7b69205471f6642b47b7fa98b22b1768c4b2393928ba7676c47", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
2,517
c
// // SINHomeCategoryViewController.h // PLMMPRJK // // Created by HuXuPeng on 2017/6/20. // Copyright © 2017年 GoMePrjk. All rights reserved. // #import "LMJTableViewController.h" @interface SINHomeCategoryViewController : LMJTableViewController @end
24.5
10
(translation_unit) "//\n// SINHomeCategoryViewController.h\n// PLMMPRJK\n//\n// Created by HuXuPeng on 2017/6/20.\n// Copyright © 2017年 GoMePrjk. All rights reserved.\n//\n\n#import "LMJTableViewController.h"\n\n@interface SINHomeCategoryViewController : LMJTableViewController\n\n@end\n" (comment) "//" (comment...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.5, "nodes": 10, "errors": 0, "source_hash": "5c2708f6b421cf4ae965f03d25571c784381d92b82a9b14f8c1fa1f68990e9f8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"LMJT...
2,518
c
// // ClassHeader.h // QianHong // // Created by apple on 2018/3/19. // Copyright © 2018年 YouQu. All rights reserved. // #ifndef ClassHeader_h #define ClassHeader_h #ifdef __OBJC__ // 判断一下,之后OC文件才会导入下面的头文件 /********************* 分类 *********************/ #import "UIView+Frame.h" #import "UIImage+Image.h" #im...
27.78
73
(translation_unit) "//\n// ClassHeader.h\n// QianHong\n//\n// Created by apple on 2018/3/19.\n// Copyright © 2018年 YouQu. All rights reserved.\n//\n\n#ifndef ClassHeader_h\n#define ClassHeader_h\n\n#ifdef __OBJC__ // 判断一下,之后OC文件才会导入下面的头文件\n\n/********************* 分类 *********************/\n#import "UIView+Fram...
174
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 27.78, "nodes": 153, "errors": 0, "source_hash": "32ed4bf00e72abad2b467334a88c53a21486c8f0e1a03750e821ef01024ec442", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef Cl...
2,519
c
#ifndef PARSE_FORMAT_H #define PARSE_FORMAT_H #ifdef __cplusplus extern "C" { #endif int parse_format_string( const char *user_fmt_string, /* In */ int *sign, /* Out*/ int *width, /* Out*/ int *precision, /...
27.07
15
(translation_unit) "#ifndef PARSE_FORMAT_H\n#define PARSE_FORMAT_H\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nint parse_format_string( const char *user_fmt_string, /* In */\n int *sign, /* Out*/\n int *width, /* Out*/\n ...
71
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.07, "nodes": 50, "errors": 0, "source_hash": "d95f622c2426ef153ae93ae0461aa75faec30887bfa2d6e538e651dc59681936", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,520
c
// // DHMenuPagerViewController.h // DHMenuViewPager // // Created by 胡大函 on 14/9/30. // Copyright (c) 2014年 HuDahan_payMoreGainMore. All rights reserved. // #import <UIKit/UIKit.h> @protocol DHMenuPagerViewDelegate <NSObject> - (void)changedTitle:(NSString *)title; @end @interface DHMenuPagerViewController : ...
32.62
16
(translation_unit) "//\n// DHMenuPagerViewController.h\n// DHMenuViewPager\n//\n// Created by 胡大函 on 14/9/30.\n// Copyright (c) 2014年 HuDahan_payMoreGainMore. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol DHMenuPagerViewDelegate <NSObject>\n\n- (void)changedTitle:(NSString *)title;\n\n@end\n\n@in...
119
20
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.62, "nodes": 80, "errors": 0, "source_hash": "c71f8073698b33ad2dae97836136e588b0616895373697800cc5a44d868cc0cd", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<UIKit/UI...
2,521
c
#pragma once int RecSum(int* arr, int size) { if (!size) return 0; return arr[size-1] + RecSum(arr, size - 1); }
14.62
8
(translation_unit) "#pragma once \n \nint RecSum(int* arr, int size) \n{ \n if (!size) \n return 0; \n return arr[size-1] + RecSum(arr, size - 1); \n}" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (function_definition) "int RecSum(int* arr, int size) \n{ \n if (!size...
59
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 14.62, "nodes": 40, "errors": 0, "source_hash": "b0fe6a683038da9115d76f9ff970886333a487f5d288f3bac4e8982a28ea9721", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,522
c
#pragma once #include <string> #include "qpang/player/Player.h" #include "qpang/player/stats/StatsManager.h" #include "packets/LobbyServerPacket.h" class ResetKillDeath : public LobbyServerPacket { public: ResetKillDeath(const Player::Ptr& player, InventoryCard& card) : LobbyServerPacket(845) { writeInt(0); In...
31.54
28
(translation_unit) "#pragma once\n\n#include <string>\n\n#include "qpang/player/Player.h"\n#include "qpang/player/stats/StatsManager.h"\n#include "packets/LobbyServerPacket.h"\n\nclass ResetKillDeath : public LobbyServerPacket\n{\npublic:\n ResetKillDeath(const Player::Ptr& player, InventoryCard& card) : LobbyServerPac...
320
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.54, "nodes": 167, "errors": 0, "source_hash": "11fe090c467bd5194f7c9d200516c2ebbf5e2596e7109f04465ff46cd4716a62", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,523
c
/* Copyright 2001 <NAME> * Copyright 2003 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * ...
29.41
121
(translation_unit) "/* Copyright 2001 <NAME>\n * Copyright 2003 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option)...
524
5
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 29.41, "nodes": 319, "errors": 0, "source_hash": "9b582f555a7a1db1944e32a1704697de4f0289a55ec8b1fbc9b49ffbb8eb6858", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,524
c
#ifndef SOUND #define SOUND #include <SDL2/SDL_mixer.h> static const int NUMFOOTSTEPS = 6; static Mix_Chunk *footstepsoundeffects[NUMFOOTSTEPS]; void playfootstepsound(); static const int NUMGRUNTS = 4; static Mix_Chunk *gruntsoundeffects[NUMGRUNTS]; void playgruntsound(); static Mix_Chunk *dooropensoundeffect; voi...
28.65
37
(translation_unit) "#ifndef SOUND\n#define SOUND\n\n#include <SDL2/SDL_mixer.h>\n\nstatic const int NUMFOOTSTEPS = 6;\nstatic Mix_Chunk *footstepsoundeffects[NUMFOOTSTEPS];\nvoid playfootstepsound();\n\nstatic const int NUMGRUNTS = 4;\nstatic Mix_Chunk *gruntsoundeffects[NUMGRUNTS];\nvoid playgruntsound();\n\nstatic Mi...
290
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.65, "nodes": 181, "errors": 0, "source_hash": "c0a5fb3ef7f7601c4d85ae2712e6e5f71d0a58f21fb5d47da8dd4bff9ed75cea", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,525
c
#ifndef _CONSTS_H_ #define _CONSTS_H_ #include <vector> #include <string> #include "Typedefs.h" /** Empty string text */ static string dummy = ""; /** dummy string array */ static string_array _dummy = {}; /** dummy bool array */ static bool_array dummy_bool = {}; /** ATTRIBUTE TYPE */ enum ATTRIB...
16.34
29
(translation_unit) "#ifndef _CONSTS_H_ \n#define _CONSTS_H_ \n \n#include <vector> \n#include <string> \n#include "Typedefs.h" \n \n/** Empty string text */ \nstatic string dummy = ""; \n \n/** dummy string array */ \nstatic string_array _dummy = {}; \n \n/** dummy bool array */ \nstatic bool_array dummy_bool = {}; \n ...
104
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 16.34, "nodes": 63, "errors": 0, "source_hash": "630972a6f80587d01ccacc0e48914b0f97659145587176e4bd3236f9f4e878f8", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,526
c
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <u.h> #include <libc.h> #include "go.h" #include "../ld/textflag.h" /* * architecture-independent object file output */ static void dumpglobls(void...
21.29
248
(translation_unit) "// Copyright 2009 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\n#include <u.h>\n#include <libc.h>\n#include "go.h"\n#include "../ld/textflag.h"\n\n/*\n * architecture-independent object file output\n ...
2,169
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 21.29, "nodes": 1259, "errors": 0, "source_hash": "d0c80dfeb077f30f6062213d1a12f96825fc528024dcd79547eacc28549015c8", "categorized_nodes": 960}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,527
c
#pragma once #define GLEW_STATIC #include <GLEW/glew.h> #include <GLFW/glfw3.h> //Tools Engine #include "Types.h" //Global scope of enumerators, structs, and classes #include "Msg.h" //Formatted message sender #include "Inputs.h" //Inputs Class #include "System.h" //Global Variables #include "Match.h" //Ma...
26.6
95
(translation_unit) "#pragma once\n#define GLEW_STATIC \n#include <GLEW/glew.h> \n#include <GLFW/glfw3.h>\n\n//Tools Engine\n#include "Types.h" //Global scope of enumerators, structs, and classes\n#include "Msg.h" //Formatted message sender\n#include "Inputs.h" //Inputs Class\n#include "System.h" //Global Variab...
510
13
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.6, "nodes": 312, "errors": 0, "source_hash": "77238aecfc9fb68e829aaa6472ec7efdedac34f673a6331dfe92967134e81605", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,528
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
24.45
118
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
572
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 24.45, "nodes": 347, "errors": 0, "source_hash": "cbf8b3011f3b38b8656ce7b990de53b0cc27ee813adbb29c0ab959a40ce4f6ce", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,529
c
/* * Date: 2020/01/31 10:33 * Author: <NAME>, <NAME>, <NAME> */ #ifndef __PATH_H__ #define __PATH_H__ #include "coords.h" #include "target.h" #include <vector> #include <math.h> #include <functional> namespace grasp { struct SPath { STargetVector tv; CoordsVector cv; SPath& ...
22.93
28
(translation_unit) "/*\n * Date: 2020/01/31 10:33\n * Author: <NAME>, <NAME>, <NAME>\n */\n\n#ifndef __PATH_H__\n#define __PATH_H__\n\n#include "coords.h"\n#include "target.h"\n\n#include <vector>\n#include <math.h>\n#include <functional>\n\nnamespace grasp {\n\n struct SPath {\n STargetVector tv;\n ...
172
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.93, "nodes": 113, "errors": 0, "source_hash": "6c3a98cd7817f80427c55f7c197ea462dd50266c002528915415bc7c7f4995d3", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,530
c
/*! * \file itkCalculatorT1ImageFilter.h * \author <NAME> * \date 2018/08/13 */ #ifndef itkCalculatorT1ImageFilter_h #define itkCalculatorT1ImageFilter_h #include "tomatolib_export.h" #include "CmakeConfigForTomato.h" #ifdef USE_ITK #include "itkLogger.h" #include "KWUtil.h" #include "OxModel.h" #include "OxFit...
39.87
107
(translation_unit) "/*!\n * \file itkCalculatorT1ImageFilter.h\n * \author <NAME>\n * \date 2018/08/13\n */\n\n#ifndef itkCalculatorT1ImageFilter_h\n#define itkCalculatorT1ImageFilter_h\n\n#include "tomatolib_export.h"\n#include "CmakeConfigForTomato.h"\n\n#ifdef USE_ITK\n\n#include "itkLogger.h"\n#include "KWUtil.h"\n...
703
22
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 39.87, "nodes": 428, "errors": 0, "source_hash": "d680b79cbd6eb0edf63de089b59dd76943eb54f52c5c125c19333d817c7961c9", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,531
c
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-06-27 AHTYDHD the first version */ #ifndef __BOARD_H__ #define __BOARD_H__ #include <rthw.h> #include <rtthread.h> #if defined(RT_USING_USE...
31.86
42
(translation_unit) "/*\n * Copyright (c) 2006-2021, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2020-06-27 AHTYDHD the first version\n */\n\n#ifndef __BOARD_H__\n#define __BOARD_H__\n\n#include <rthw.h>\n#include <rtt...
139
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.86, "nodes": 108, "errors": 0, "source_hash": "d58f6ee387fef80ea14381e51f7b5592ebfa0dbc54abe60ccf5ef483c70986a5", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,532
c
#include<stdio.h> int main() { float a,b,c; scanf("%f %f %f",&a,&b,&c); if(a+b>c && b+c>a && c+a>b) printf("Perimetro = %.1f\n",a+b+c); else printf("Area = %.1f\n",0.5*(a+b)*c); }
25.43
7
(translation_unit) "nclude<stdio.h>\nint main() {\n float a,b,c;\n scanf("%f %f %f",&a,&b,&c);\n if(a+b>c && b+c>a && c+a>b) printf("Perimetro = %.1f\n",a+b+c);\n else printf("Area = %.1f\n",0.5*(a+b)*c);\n}\n" (preproc_include) "nclude<stdio.h>\nin" (#include) "nclude<s" (system_lib_string) "tdio.h>\ni" (f...
123
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.43, "nodes": 67, "errors": 0, "source_hash": "f3e720af97cac0fffb8466ebdebfd87ddaa250ea499deb849642798ab52ad182", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude<...
2,533
c
// // BDFinderTesterImp.h // ObjCExample // // Created by 朱元清 on 2020/8/21. // Copyright © 2020 bytedance. All rights reserved. // #import <UIKit/UIKit.h> #import "BDTesterIntroducerBase.h" NS_ASSUME_NONNULL_BEGIN @interface BDFinderTesterImp : BDTesterIntroducerBase @end NS_ASSUME_NONNULL_END
22
13
(translation_unit) "//\n// BDFinderTesterImp.h\n// ObjCExample\n//\n// Created by 朱元清 on 2020/8/21.\n// Copyright © 2020 bytedance. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BDTesterIntroducerBase.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface BDFinderTesterImp : BDTesterIntroducerBase\n\n@end\n\nN...
30
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.0, "nodes": 19, "errors": 0, "source_hash": "90783a5e4e91200e43e9e9a55e2d18b47843be4a5aaa3655114e87982ff5ee7c", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
2,534
c
// // Created by <NAME> on 14/03/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class OCVFaceObservation; NS_ASSUME_NONNULL_BEGIN; @interface OCVFaceModel : NSObject #pragma mark - Manipulation + (UIImage *)processedImageFromObservation:(OCVFaceObservation *)observation; #prag...
37.38
24
(translation_unit) "//\n// Created by <NAME> on 14/03/18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class OCVFaceObservation;\n\nNS_ASSUME_NONNULL_BEGIN;\n\n@interface OCVFaceModel : NSObject\n\n#pragma mark - Manipulation\n\n+ (UIImage *)processedImageFromObservation:(OCVFa...
221
22
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.38, "nodes": 140, "errors": 0, "source_hash": "d3bad3f0bbdf298c738cdf199f8990f34f9b2ecb7caf7febff9eec0a8135d5e9", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
2,535
c
#ifndef _GAME_ #define _GAME_ #define BLACK 1 #define WHITE (1<<1) #define NEUTRAL ((1<<1)|1) #define EMPTY 0 #define VALBITS 2 // number of bits for value #define DRAW '#' #define BLACK_STONE 'B' #define WHITE_STONE 'W' #define EMPTY_STONE '.' #define GAME_NOT_OVER '.' #include <iostream> #incl...
22.94
82
(translation_unit) "#ifndef _GAME_\n\n#define _GAME_\n#define BLACK 1\n#define WHITE (1<<1)\n#define NEUTRAL ((1<<1)|1)\n#define EMPTY 0\n#define VALBITS 2 // number of bits for value\n#define DRAW '#'\n#define BLACK_STONE 'B'\n#define WHITE_STONE 'W'\n#define EMPTY_STONE '.'\n#define GAME_NOT_OVE...
609
15
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 22.94, "nodes": 416, "errors": 0, "source_hash": "515ae1012a405554afe19a8e46be20becaf99c82576540cd84e6bc99ea66690d", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,536
c
#include <stdio.h> struct test { int a; double b; const char *c; }; void inspect () { printf("sizeof(struct test): %lu\n", sizeof(struct test)); } double test_struct_arg_by_value (struct test by_value) { printf("Input a: %d\n", by_value.a); printf("Input c: %s\n", by_value.c); return by_value.a + (doub...
21.52
21
(translation_unit) "#include <stdio.h>\n\nstruct test {\n int a;\n double b;\n const char *c;\n};\n\nvoid inspect () {\n printf("sizeof(struct test): %lu\n", sizeof(struct test));\n}\n\ndouble test_struct_arg_by_value (struct test by_value) {\n printf("Input a: %d\n", by_value.a);\n printf("Input c: %s\n", by_val...
177
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.52, "nodes": 102, "errors": 0, "source_hash": "9ea892836c06dd9aedd8d7e83c54e25954830c10d04f55f9b7dcb1305621e461", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,537
c
/* See LICENSE file for copyright and license details. */ #include "common.h" USAGE("parameters ...") int main(int argc, char *argv[]) { UNOFLAGS(!argc); printf("%s", *argv++); while (*argv) printf(" %s", *argv++); printf("\n%cuivf", 0); efshut(stdout, "<stdout>"); return 0; }
19.43
14
(translation_unit) "/* See LICENSE file for copyright and license details. */\n#include "common.h"\n\nUSAGE("parameters ...")\n\nint\nmain(int argc, char *argv[])\n{\n UNOFLAGS(!argc);\n\n printf("%s", *argv++);\n while (*argv)\n printf(" %s", *argv++);\n printf("\n%cuivf", 0);\n\n efshut(stdout, "<stdout>");\n return...
124
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.43, "nodes": 63, "errors": 0, "source_hash": "8007b81ef9e4e55ad637ed5e8378fff87c00f2ce101513a9e9d46ae0cd7d590a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,538
c
// // ofxAppStaticTextures.h // BaseApp // // Created by <NAME> on 4/8/16. // // #pragma once #include "ofMain.h" #include <thread> /* This class recurseivelly walks a dir and load any img file it finds in it. Images are loaded as ofxAutoTextures, which means they can be edited on the fly as the program runs....
30.11
118
(translation_unit) "//\n// ofxAppStaticTextures.h\n// BaseApp\n//\n// Created by <NAME> on 4/8/16.\n//\n//\n\n#pragma once\n#include "ofMain.h"\n#include <thread>\n\n/*\n \n This class recurseivelly walks a dir and load any img file it finds in it.\n Images are loaded as ofxAutoTextures, which means they can be edit...
601
19
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 30.11, "nodes": 369, "errors": 0, "source_hash": "19d64a6a7b139beab16503c87aa12906f2720d984317839d149816a011468f3a", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,539
c
// // NSArray+MutableDeepCopy.h // YouJia // // Created by aa on 14-9-16. // // #import <Foundation/Foundation.h> @interface NSArray (MutableDeepCopy) //深拷贝方法,不需要释放 -(NSMutableArray *)mutableDeepCopy; @end
16.42
12
(translation_unit) "//\n// NSArray+MutableDeepCopy.h\n// YouJia\n//\n// Created by aa on 14-9-16.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSArray (MutableDeepCopy)\n\n//深拷贝方法,不需要释放\n-(NSMutableArray *)mutableDeepCopy;\n\n@end\n" (comment) "//" (comment) "// NSArray+MutableDeepCopy.h" (comme...
38
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.42, "nodes": 21, "errors": 0, "source_hash": "c2f6eb469297f6a28a7db1ae9cbbdc3ecf9be9981fe76014e4ab0c49eaeef4a7", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,540
c
#ifndef __DEBUG_H__ #define __DEBUG_H__ #if defined _DEBUG || defined _DEVELOPPER #include <angsys.h> namespace ang { namespace debug { #ifdef WINDOWS_PLATFORM ANG_BEGIN_FLAGS(, console_colors, byte) black = 0, blue = 0X1, green = 0X2, red = 0X4, intencity = 0X8, ANG_END_FLAGS(console_colors); ...
16.77
92
(translation_unit) "#ifndef __DEBUG_H__\n#define __DEBUG_H__\n#if defined _DEBUG || defined _DEVELOPPER\n\n#include <angsys.h>\n\nnamespace ang\n{\n namespace debug\n {\n#ifdef WINDOWS_PLATFORM\n\n\n ANG_BEGIN_FLAGS(, console_colors, byte)\n black = 0,\n blue = 0X1,\n green = 0X2,\n red = 0X4,\n intencity = ...
475
27
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 16.77, "nodes": 278, "errors": 0, "source_hash": "d43e8977eba47c965dc50c3b6d634be1856be871ccce14c3a17d96782015edab", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,541
c
#pragma once #include "../impacto.h" #include "../vm/vm.h" namespace Impacto { namespace Profile { namespace Vm { extern uint32_t StartScript; extern uint32_t StartScriptBuffer; extern Impacto::Vm::InstructionSet GameInstructionSet; extern bool UseReturnIds; extern int ScrWorkChaStructSize; extern int ScrWorkBgStruc...
24.56
16
(translation_unit) "#pragma once\n\n#include "../impacto.h"\n#include "../vm/vm.h"\n\nnamespace Impacto {\nnamespace Profile {\nnamespace Vm {\n\nextern uint32_t StartScript;\nextern uint32_t StartScriptBuffer;\nextern Impacto::Vm::InstructionSet GameInstructionSet;\nextern bool UseReturnIds;\nextern int ScrWorkChaStru...
88
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.56, "nodes": 56, "errors": 0, "source_hash": "cdd58b380ccca8a276f93a7d14b195b254e52cf236091696a276d69fb65aa231", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,542
c
/****************************************************************************** * Copyright 2017 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
35.66
76
(translation_unit) "/******************************************************************************\n * Copyright 2017 The Apollo Authors. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain ...
566
30
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 35.66, "nodes": 331, "errors": 0, "source_hash": "59c6e69acd0c5f34888f133e50778660c86c1e4ff3a1b019e8a0964cd397a1a9", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,543
c
/** * Author: <NAME> * Created: 11.01.2022 * Description: Program reads hdf5 file and saves plot in png format **/ #include <stdio.h> #include <stdlib.h> #include "hdf5.h" #define DATA_FILE "H-H2_LOSC_4_V1-842665984-4096.hdf5" #define DATASET "/strain/Strain" #define N 16777216 #define M ...
33.15
40
(translation_unit) "/**\n * Author: <NAME>\n * Created: 11.01.2022\n * Description: Program reads hdf5 file and saves plot in png format\n **/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "hdf5.h"\n\n#define DATA_FILE "H-H2_LOSC_4_V1-842665984-4096.hdf5"\n#define DATASET "/strain/Strain"\n#define N...
322
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.15, "nodes": 184, "errors": 0, "source_hash": "ae06332d52662ad7b8403e03c4f4efd08468db4b283a33a1ddbacb74532fa3b8", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,544
c
/*************************************************************************** ConnectionManager.h - description ------------------- begin : Sun Mar 13 2011 copyright : (C) 2010 by <NAME> email : <EMAIL> *******...
30.17
24
(translation_unit) "/***************************************************************************\n ConnectionManager.h - description\n -------------------\n begin : Sun Mar 13 2011\n copyright : (C) 2010 by <NAME>\n email ...
44
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.17, "nodes": 19, "errors": 0, "source_hash": "2d71fed2b60cacfc53f8675970244a6c270ed0792347b8e5ac800d9831617590", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,545
c
#pragma once #define VERSION_STRING "v0.0.1"
21.5
2
(translation_unit) "#pragma once\n\n#define VERSION_STRING "v0.0.1"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define VERSION_STRING "v0.0.1"\n" (#define) "#define" (identifier) "VERSION_STRING" (preproc_arg) ""v0.0.1""
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 21.5, "nodes": 7, "errors": 0, "source_hash": "e8d6a1a5d80484a9b3c390c2447814e81b5dead98c21011b9abb0f1ddabbb3fb", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
2,546
c
// // Header.h // SMS_SDKDemo // // Created by LeeJay on 16/3/30. // Copyright © 2016年 LeeJay. All rights reserved. // #ifndef Header_h #define Header_h #define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a] #define Bundle [[NSBundle alloc] initWithPath:[[NSBundle mainBundle] p...
35.76
21
(translation_unit) "//\n// Header.h\n// SMS_SDKDemo\n//\n// Created by LeeJay on 16/3/30.\n// Copyright © 2016年 LeeJay. All rights reserved.\n//\n\n#ifndef Header_h\n#define Header_h\n\n#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]\n#define Bundle [[NSBundle alloc] initW...
61
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.76, "nodes": 43, "errors": 0, "source_hash": "7b02a143b3af435d971004e5435ba66978188159beb7eb862d6812461e33193d", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef Hea...
2,547
c
/* NSProgressIndicator.h Application Kit Copyright (c) 1997-2015, Apple Inc. All rights reserved. */ #import <AppKit/NSView.h> #import <AppKit/NSCell.h> #import <Foundation/NSDate.h> NS_ASSUME_NONNULL_BEGIN struct __NSProgressIndicatorThreadInfo; typedef struct __NSProgressIndicatorTh...
37.22
102
(translation_unit) "/*\n NSProgressIndicator.h\n Application Kit\n Copyright (c) 1997-2015, Apple Inc.\n All rights reserved.\n*/\n\n#import <AppKit/NSView.h>\n#import <AppKit/NSCell.h>\n#import <Foundation/NSDate.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nstruct __NSProgressIndicatorThreadInfo;\ntype...
611
59
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 37.22, "nodes": 425, "errors": 0, "source_hash": "a27c1f2ad739f3b0d7eb3a36da131865a9b2bb177e13fe9d6bd390d689ea9f31", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
2,548
c
/** @file * * @ingroup dspFunctionLib * * @brief #TTTanhFunction Unit for Jamoms DSP * * @details * * @authors <NAME> * * @copyright Copyright © 2007 by <NAME> @n * This code is licensed under the terms of the "New BSD License" @n * http://creativecommons.org/licenses/BSD/ */ #ifndef __TANHFUNCTION_H__ #...
27.42
53
(translation_unit) "/** @file\n *\n * @ingroup dspFunctionLib\n *\n * @brief #TTTanhFunction Unit for Jamoms DSP\n *\n * @details\n *\n * @authors <NAME>\n *\n * @copyright Copyright © 2007 by <NAME> @n\n * This code is licensed under the terms of the "New BSD License" @n\n * http://creativecommons.org/licenses/BSD/\n ...
170
6
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.42, "nodes": 106, "errors": 0, "source_hash": "63c258440032dfb85dbdcb9327d296d1ebe3e40c64ea70c5a7d1fd26a2688ee5", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
2,549
c
#pragma once #include <QString> class Piece { public: // Coordinates of square the piece is in int x; int y; bool is_king = false; protected: void move(int x, int y); void king(); };
18.92
12
(translation_unit) "#pragma once\n\n#include <QString>\n\nclass Piece {\n\n public:\n // Coordinates of square the piece is in\n int x;\n int y;\n bool is_king = false;\n\n protected:\n void move(int x, int y);\n void king();\n\n};" (preproc_call) "#pragma once\n" (...
60
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.92, "nodes": 38, "errors": 0, "source_hash": "b3bf56b97a3a291d6b242cada09dadb657788777574ce581c8c94e35513b823f", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,550
c
#ifndef RANDOM_PLAYER_H_ #define RANDOM_PLAYER_H_ #include "playfield.h" #include "player.h" #include "player_factory.h" #include "alphonse_playfield_traits.h" typedef alphonse::playfield_traits<playfield> PT; class random_player : public player { int player_id; public: random_player(int player_id); virtual ~r...
25.47
17
(translation_unit) "#ifndef RANDOM_PLAYER_H_\n#define RANDOM_PLAYER_H_\n\n#include "playfield.h"\n#include "player.h"\n#include "player_factory.h"\n#include "alphonse_playfield_traits.h"\n\ntypedef alphonse::playfield_traits<playfield> PT;\n\nclass random_player : public player\n{\n\n int player_id;\n\npublic:\n\n rand...
120
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.47, "nodes": 72, "errors": 0, "source_hash": "85354c086188892c9324f54578b740862685e1eb634709673afc224f21446808", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,551
c
// // UIView+XYLayout.h // XYUIFramework // // Created by <NAME> on 2018/07/16. // Copyright © 2018年 WXiangYu. All rights reserved. // #import <UIKit/UIKit.h> #import <Masonry/Masonry.h> @interface UIView (XYLayout) @property (nonatomic, strong, readonly) MASViewAttribute *xy_mas_bottom; @property (nonatomic, s...
28.9
21
(translation_unit) "//\n// UIView+XYLayout.h\n// XYUIFramework\n//\n// Created by <NAME> on 2018/07/16.\n// Copyright © 2018年 WXiangYu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Masonry/Masonry.h>\n \n@interface UIView (XYLayout)\n\n@property (nonatomic, strong, readonly) MASViewAttribute *xy_ma...
149
20
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.9, "nodes": 99, "errors": 0, "source_hash": "8eb357abfcfd4f689551c8e57a9b36a9efc0d1fc0b389976c470bbcc6eee177c", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
2,552
c
/* helper functions for internationalization support */ #include "../fb.h" #include "fb_private_intl.h" #include <dpmi.h> #include <go32.h> int fb_hIntlGetInfo( DOS_COUNTRY_INFO_GENERAL *pInfo ) { int result = FALSE; int arg_seg, arg_sel; __dpmi_regs r; DBG_ASSERT( pInfo!=NULL ); memset( pInfo, 0...
30.5
36
(translation_unit) "/* helper functions for internationalization support */\n\n#include "../fb.h"\n#include "fb_private_intl.h"\n#include <dpmi.h>\n#include <go32.h>\n\nint fb_hIntlGetInfo( DOS_COUNTRY_INFO_GENERAL *pInfo )\n{\n int result = FALSE;\n int arg_seg, arg_sel;\n __dpmi_regs r;\n\n DBG_ASSERT( pI...
339
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.5, "nodes": 203, "errors": 0, "source_hash": "93062ce98b22065272533a60fb2235f8ed2d0bd481ec007404771bdd7335a764", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,553
c
/* ** get_next_line.h for get_next_line in /home/toozs-_c/rendu/get_next_line_tests ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Sun Nov 16 15:17:52 2014 <NAME> ** Last update Sun May 17 12:47:49 2015 <NAME> */ #ifndef _G_N_L_H_ #define _G_N_L_H_ #include <unistd.h> #define BUFF_SIZE 4096 char *get...
24.25
16
(translation_unit) "/*\n** get_next_line.h for get_next_line in /home/toozs-_c/rendu/get_next_line_tests\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Sun Nov 16 15:17:52 2014 <NAME>\n** Last update Sun May 17 12:47:49 2015 <NAME>\n*/\n\n#ifndef _G_N_L_H_\n#define _G_N_L_H_\n\n#include <unistd.h>\n...
51
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.25, "nodes": 39, "errors": 0, "source_hash": "36d7c0f01609e7419b78b37cd262774e81171b61fc507b631d2026ecc78802cc", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,554
c
#ifdef __cplusplus extern "C" { #endif color_t color_u32(uint32_t rgba) { return (color_t) {.value = rgba}; } color_t color_4f(const float r, const float g, const float b, const float a) { EK_ASSERT_R2(r >= 0.0f && r <= 1.0f); EK_ASSERT_R2(g >= 0.0f && g <= 1.0f); EK_ASSERT_R2(b >= 0.0f && b <= 1.0f);...
30.72
243
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif\n\ncolor_t color_u32(uint32_t rgba) {\n return (color_t) {.value = rgba};\n}\n\ncolor_t color_4f(const float r, const float g, const float b, const float a) {\n EK_ASSERT_R2(r >= 0.0f && r <= 1.0f);\n EK_ASSERT_R2(g >= 0.0f && g <= 1.0f);\n EK_ASS...
2,918
0
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 30.72, "nodes": 1842, "errors": 0, "source_hash": "1cdcb6c06f45f6fd570b6fc0927ee41bcb94e735ae9654c91409f1a2efda0663", "categorized_nodes": 1372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
2,555
c
// // SYCalendarMonth.h // Seeyou // // Created by upin on 13-10-22. // Copyright (c) 2013年 linggan. All rights reserved. // #import <UIKit/UIKit.h> #import "LKCalendarDefine.h" @class LKCalendarMonth; @protocol LKCalendarMonthDelegate <NSObject> @optional -(void)calendarMonthDidReload:(LKCalendarMonth*)month; -(...
32.62
32
(translation_unit) "//\n// SYCalendarMonth.h\n// Seeyou\n//\n// Created by upin on 13-10-22.\n// Copyright (c) 2013年 linggan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "LKCalendarDefine.h"\n\n@class LKCalendarMonth;\n@protocol LKCalendarMonthDelegate <NSObject>\n@optional\n-(void)calendarMonthDid...
300
36
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.62, "nodes": 198, "errors": 0, "source_hash": "933757708a5e310fed0286dc5e8fbffb9af4342b5a41f555d8d8cdd8904e4897", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
2,556
c
/* * Author: Manuel * Email: <EMAIL> * Created: 2016-09-08 13:08:08 * @Last Modified by: Manuel * @Last Modified time: 2016-09-08 13:26:14 * * Description: */ #include <stdio.h> #include <syscall.h> int putchar(int character) { return fwrite((char*)&character, 1, 1, stdout); }
18.6
15
(translation_unit) "/*\n * Author: Manuel\n * Email: <EMAIL> \n * Created: 2016-09-08 13:08:08 \n * @Last Modified by: Manuel\n * @Last Modified time: 2016-09-08 13:26:14\n * \n * Description: \n */\n\n#include <stdio.h>\n#include <syscall.h>\n\nint putchar(int character)\n{\n return fwrite((char*)&character, 1, 1, ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.6, "nodes": 28, "errors": 0, "source_hash": "cc68eb683c4701a608220f2946d3e1e67bae64c010afae5ffcb9801bc367e167", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,557
c
/* File Copy using command line arguments */ #include<stdio.h> int main(int argc,char *argv[]) { FILE *fs,*ft; int ch; if(argc!=3) { printf("Invalide numbers of arguments."); return 1; } fs=fopen(argv[1],"r"); if(fs==NULL) { printf("Can't find the source file."); return 1; } ft=fope...
13.84
37
(translation_unit) "/* File Copy using command line arguments */ \n \n#include<stdio.h> \nint main(int argc,char *argv[]) \n{ \n FILE *fs,*ft; \n int ch; \n if(argc!=3) \n { \n printf("Invalide numbers of arguments."); \n return 1; \n } \n fs=fopen(argv[1],"r"); \n if(fs==NULL) \n { \n printf("Can't find the source ...
236
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 13.84, "nodes": 123, "errors": 0, "source_hash": "f02fd88688b86d606c477b3ad2c876e228ecc293c3ff4dd56b183dad2956c41e", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,558
c
// -*- C++ -*- /*- * Copyright (c) 1997 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the a...
34.79
76
(translation_unit) "// -*- C++ -*-\n/*-\n * Copyright (c) 1997 The Regents of the University of California.\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of s...
294
12
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 34.79, "nodes": 164, "errors": 0, "source_hash": "f9c6b0ab0969688bc5185afd6332b3c715fd8ee3b4230f31d61ecaf66fa190c6", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,559
c
#include "handler.h" void client_loop_handler(int client_fd) { printf("[info] a client join fd:%d\n", client_fd); int ret, status = -1; int quit_flag = false; char req_header; while (1) { ret = recv(client_fd, &req_header, sizeof(req_header), MSG_WAITALL); printf("[debug1]接收%d\...
27.3
46
(translation_unit) "#include "handler.h"\n\nvoid client_loop_handler(int client_fd)\n{\n printf("[info] a client join fd:%d\n", client_fd);\n int ret, status = -1;\n int quit_flag = false;\n char req_header;\n\n while (1)\n {\n ret = recv(client_fd, &req_header, sizeof(req_header), MSG_WAITALL)...
318
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 27.3, "nodes": 168, "errors": 0, "source_hash": "353f6daab584a26833866cd23f98795f0f82628ab13c0fe79df24c91fdb28c41", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,560
c
/***************************************************************************** * plugin_exceptions.h * * Common plugin exceptions * * (c) 2003 <NAME>, GFZ Potsdam * * 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 ...
33.84
62
(translation_unit) "/***************************************************************************** \n * plugin_exceptions.h\n *\n * Common plugin exceptions\n *\n * (c) 2003 <NAME>, GFZ Potsdam\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public ...
393
26
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.84, "nodes": 197, "errors": 0, "source_hash": "e0e59045c486142c0e40b8a0c11d2929c8a9ca3b2d39e7d08061bce0f570c330", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,561
c
#pragma once #include "Perceptron.h" class Autocoder { private: Perceptron<Sigmoid> p; size_t chunkSize = 0; size_t outSize = 0; public: Autocoder(int chinkSize, int to); void learn(const std::string& data); std::vector<bool> encode(const std::string& data); std::string decode(const ...
28.78
64
(translation_unit) "#pragma once\n#include "Perceptron.h"\n\n\n\nclass Autocoder {\nprivate:\n\n Perceptron<Sigmoid> p;\n size_t chunkSize = 0;\n size_t outSize = 0;\n\npublic:\n Autocoder(int chinkSize, int to);\n\n void learn(const std::string& data);\n\n std::vector<bool> encode(const std::string& ...
849
28
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 28.78, "nodes": 522, "errors": 0, "source_hash": "a9f25ffab08fcfe6cf67bd066bc3f017d89636719c969963d315a40e0459e6c0", "categorized_nodes": 338}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,562
c
// Copyright (c) 2013 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 TOOLS_GN_CONFIG_H_ #define TOOLS_GN_CONFIG_H_ #include "base/compiler_specific.h" #include "tools/gn/config_values.h" #include "tools/gn/item...
36.32
22
(translation_unit) "// Copyright (c) 2013 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 TOOLS_GN_CONFIG_H_\n#define TOOLS_GN_CONFIG_H_\n\n#include "base/compiler_specific.h"\n#include "tools/gn/config_value...
157
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.32, "nodes": 81, "errors": 0, "source_hash": "5cd6dc7c84fd464ae992baac597cf1cad8cff8abcae2c4629678f2d5debcc536", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,563
c
#pragma once #include "cbaseentity.h" #include "cutlvector.h" #include <cstddef> #include <cstring> #define END_OF_FREE_LIST -1 #define ENTRY_IN_USE -2 struct GlowObjectDefinition_t { static inline size_t WriteStart() { return offsetof(struct GlowObjectDefinition_t, m_flGlowColor); } static inl...
27.46
59
(translation_unit) "#pragma once\n\n#include "cbaseentity.h"\n#include "cutlvector.h"\n\n#include <cstddef>\n#include <cstring>\n\n#define END_OF_FREE_LIST -1\n#define ENTRY_IN_USE -2\n\nstruct GlowObjectDefinition_t\n{\n static inline size_t WriteStart() {\n return offsetof(struct GlowObjectDefinition_t, m_f...
361
4
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.46, "nodes": 224, "errors": 0, "source_hash": "d31913608aeea4e829802e1ce1672217c11dfa1d2727ac8a2958ad8f2e0906c3", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,564
c
#include <stdio.h> #include <stdlib.h> int rob(int num[], int n) { if (n == 0) return 0; int *d = (int *)calloc(n + 2, sizeof(int)); int i; d[0] = d[1] = 0; /* dummy */ for (i = 2; i < n + 2; i++) { /* for each house, there are two choices: robbing and NOT robbing */ if (d[i - 2] + ...
26.19
26
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint rob(int num[], int n) {\n if (n == 0) return 0;\n int *d = (int *)calloc(n + 2, sizeof(int));\n int i;\n d[0] = d[1] = 0; /* dummy */\n for (i = 2; i < n + 2; i++) {\n /* for each house, there are two choices: robbing and NOT robbi...
312
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.19, "nodes": 188, "errors": 0, "source_hash": "9444345d56f5c5de76612a88b70e062f086480a908a8201a08b13dcafb24e8d6", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,565
c
#include<conio.h> #include<stdio.h> #include<conio2.c> #include<stdlib.h> #include<time.h> #include <windows.h> void azul(){ textbackground(BLUE); printxy(32, 2, " "); printxy(32, 3, " "); printxy(32, 4, " "); printxy(32, 5, " "); printxy(32, 6, "...
22.29
180
(translation_unit) "#include<conio.h>\n#include<stdio.h>\n#include<conio2.c>\n#include<stdlib.h>\n#include<time.h>\n#include <windows.h>\n\nvoid azul(){\n textbackground(BLUE);\n printxy(32, 2, " ");\n printxy(32, 3, " ");\n printxy(32, 4, " ");\n printxy(32, 5, " ...
1,771
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 22.29, "nodes": 807, "errors": 0, "source_hash": "c03c0a9d3944c58396a7afd5533fd28254fe60ea454a687ad5095d4c6c21638a", "categorized_nodes": 631}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,566
c
/* * $Id: blkciph.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $ */ #ifndef _CLPE_BLKCIPH_H #define _CLPE_BLKCIPH_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* block-cipher encryption function */ typedef void (*clpe_blkciph_encrypt_func_t)(uint8_t *, uint8_t *, void *); #ifdef __cplusplus } #endif /* _...
24.71
14
(translation_unit) "/*\n * $Id: blkciph.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $\n */\n\n#ifndef _CLPE_BLKCIPH_H\n#define _CLPE_BLKCIPH_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif /* __cplusplus */\n\n/* block-cipher encryption function */\ntypedef void (*clpe_blkciph_encrypt_func_t)(uint8_t *, uint8_t *, void *);\n...
60
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.71, "nodes": 41, "errors": 0, "source_hash": "7ea7df65549655176fe76fd2198e1a2864d8ea425f06da8b0ffc61e0b6ce2fbc", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,567
c
/** @author <NAME> */ #ifndef UCNOID_UTIL_IMPL_REFERENCED_CPP_H #define UCNOID_UTIL_IMPL_REFERENCED_CPP_H #include "Referenced.h" namespace cnoid { inline namespace ucnoid { inline Referenced::~Referenced() { if(weakCounter_){ weakCounter_->setDestructed(); } } } // inline namespace ucnoid } ...
20.12
17
(translation_unit) "/**\n @author <NAME>\n*/\n\n#ifndef UCNOID_UTIL_IMPL_REFERENCED_CPP_H\n#define UCNOID_UTIL_IMPL_REFERENCED_CPP_H\n\n#include "Referenced.h"\n\nnamespace cnoid {\ninline namespace ucnoid {\n\ninline Referenced::~Referenced()\n{\n if(weakCounter_){\n weakCounter_->setDestructed();\n }\n...
66
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.12, "nodes": 35, "errors": 0, "source_hash": "b9b6a951f0534a883cc4be51fda20cae37951179db6fd6520d021de6e805dbd6", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,568
c
/* SPDX-License-Identifier: BSD-2-Clause */ /***********************************************************************; * Copyright (c) 2015 - 2017, Intel Corporation * All rights reserved. ***********************************************************************/ #ifdef HAVE_CONFIG_H #include <config.h> #endif #inclu...
34.32
113
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/***********************************************************************;\n * Copyright (c) 2015 - 2017, Intel Corporation\n * All rights reserved.\n ***********************************************************************/\n\n#ifdef HAVE_CONFIG_H\n#includ...
745
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 34.32, "nodes": 455, "errors": 0, "source_hash": "0b769ff7a635465786d8032a545698b4741daf745718bb96923bc3b030b26959", "categorized_nodes": 374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
2,569
c
#pragma once #include <glad/glad.h> #include <string> #include <assimp/scene.h> #include <vector> #include <configNoisy.hpp> namespace ns { class TextureView; /** * @brief allow to easily create a 2d texture by loading an image file */ class Texture { public: /** * @brief load a texture from an image fil...
23.01
120
(translation_unit) "#pragma once\n#include <glad/glad.h>\n#include <string>\n#include <assimp/scene.h>\n#include <vector>\n#include <configNoisy.hpp>\n\nnamespace ns {\n class TextureView;\n /**\n * @brief allow to easily create a 2d texture by loading an image file\n */\n class Texture\n {\n public:\n /**\n * @br...
417
28
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 23.01, "nodes": 227, "errors": 0, "source_hash": "51395cf84c91f7fa8ebac34daa899a4c5cab8e3a50fc83c2f0356979ba3b833d", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,570
c
#ifndef _PART_DRIVER_H #define _PART_DRIVER_H 1 int part_connect(mass_dev *dev); void part_disconnect(mass_dev *dev); #endif
24
5
(translation_unit) "#ifndef _PART_DRIVER_H\n#define _PART_DRIVER_H 1\n\nint part_connect(mass_dev *dev);\nvoid part_disconnect(mass_dev *dev);\n\n#endif\n" (preproc_ifdef) "#ifndef _PART_DRIVER_H\n#define _PART_DRIVER_H 1\n\nint part_connect(mass_dev *dev);\nvoid part_disconnect(mass_dev *dev);\n\n#endif" (#ifnde...
35
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 24.0, "nodes": 28, "errors": 0, "source_hash": "d59c496fdfb6089768a521c33de140ff9c93a0e4e2ea99441445c2a7e7c5395a", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _P...
2,571
c
#pragma mark - 获取当前设备型号 - #define LYSDeviceString [LYSystemManager ly_deviceString] #pragma mark - 获取当前设备别名 - #define LYSUserPhoneName [[UIDevice currentDevice] name] #pragma mark - 获取当前设备名称 - #define LYSDeviceName [[UIDevice currentDevice] systemName] #pragma mark - 获取当前设备型号 - #define LYSDeviceModel [[UIDevice cur...
48.34
128
(translation_unit) "#pragma mark - 获取当前设备型号 -\n#define LYSDeviceString [LYSystemManager ly_deviceString]\n\n#pragma mark - 获取当前设备别名 -\n#define LYSUserPhoneName [[UIDevice currentDevice] name]\n\n#pragma mark - 获取当前设备名称 -\n#define LYSDeviceName [[UIDevice currentDevice] systemName]\n\n#pragma mark - 获取当前设备型号 -\n#define ...
488
3
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 48.34, "nodes": 406, "errors": 0, "source_hash": "4676b55eaa9b855f66a4f7e4b91a112756a99be489365b60d190ae43e7fcd43c", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,572
c
#pragma once namespace ad { class Notification; /** * @brief This interface is used to implement the notification mechanism. It can be used from receiver * and sender sides. */ class Notify { public: /** * @brief The destructor. */ virtual ~Notify() = default; /** * @brief This function is...
21.29
24
(translation_unit) "#pragma once\nnamespace ad\n{\n class Notification;\n\n /**\n * @brief This interface is used to implement the notification mechanism. It can be used from receiver\n * and sender sides.\n */\n class Notify\n {\n public:\n /**\n * @brief The destructor.\n */\n virtual ~Notify() = default;\n ...
61
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.29, "nodes": 34, "errors": 0, "source_hash": "f551debf8d1610758267f87e1b4efc8e930d2010b1e030c1703bdac1f935b691", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,573
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:42:33 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/Email.framework/Email * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ ...
40.52
21
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:42:33 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/Email.framework/Email\n* classdump-dyld is licensed under GPLv3, Copyright ©...
188
16
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 40.52, "nodes": 108, "errors": 0, "source_hash": "197e1e9745f588c1ea513e17de06e668aec7fdfd29d854ee57c5c7a44ea8a0d6", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": n...
2,574
c
/* Optimization type */ #define NO 1 // Normal Operation (1-pixel implementation) #define HEIGHT 2160 #define WIDTH 3840
23.6
5
(translation_unit) "/* Optimization type */\n\n\n#define NO 1 // Normal Operation (1-pixel implementation)\n\n#define HEIGHT 2160\n#define WIDTH 3840\n" (comment) "/* Optimization type */" (preproc_def) "#define NO 1 // Normal Operation (1-pixel implementation)\n" (#define) "#define" (identifier) "NO" ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.6, "nodes": 12, "errors": 0, "source_hash": "696a112eaccb03f53291d3ba176069a200c682a625b76cb6b141b7ff4a8ef936", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NO 1 ...
2,575
c
#pragma once #include <string> #include <vector> #include "imgui/imgui.h" #include "SDK/WeaponId.h" namespace Helpers { ImWchar* getFontGlyphRanges() noexcept; std::wstring toWideString(const std::string& str) noexcept; std::wstring toUpper(std::wstring str) noexcept; bool decodeVFONT(std::vector<...
37.9
20
(translation_unit) "#pragma once\n\n#include <string>\n#include <vector>\n\n#include "imgui/imgui.h"\n\n#include "SDK/WeaponId.h"\n\nnamespace Helpers\n{\n ImWchar* getFontGlyphRanges() noexcept;\n\n std::wstring toWideString(const std::string& str) noexcept;\n std::wstring toUpper(std::wstring str) noexcept;\...
255
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 37.9, "nodes": 169, "errors": 0, "source_hash": "51392f7d6eded868bbc7d100bc067261a6ab2ae8c6321688c8294b9a75c7058a", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,576
c
#ifndef TRANSACTION_H #define TRANSACTION_H #include "utilities/platform.h" #include "types/types.h" namespace ARK { /************************************************* * ARK::Transaction **************************************************/ class Transaction : public Printable { protected: Hash id_; char block...
34.12
77
(translation_unit) "#ifndef TRANSACTION_H\n#define TRANSACTION_H\n\n#include "utilities/platform.h"\n#include "types/types.h"\n\nnamespace ARK\n{\n/*************************************************\n* ARK::Transaction\n**************************************************/\nclass Transaction :\n public Printable\n{\n pro...
549
28
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.12, "nodes": 267, "errors": 0, "source_hash": "d573c2c3fb249b3b46435c002cc76003d672b59f72f942690d848bc97c1d5928", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,577
c
// AutoLocker.h // // Copyright (c) 2004, <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, cop...
25.04
141
(translation_unit) "// AutoLocker.h\n// \n// Copyright (c) 2004, <NAME> (<EMAIL>)\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 without restriction, including without limitation ...
763
37
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 25.04, "nodes": 455, "errors": 0, "source_hash": "0d8e2216b4a184162ad38d10e549ace95e7573ed036e52330632b9623c364ae8", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,578
c
/* * * Copyright (c) 2004-2010 Atheros Communications Inc. * All rights reserved. * * // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // T...
34.27
117
(translation_unit) "/*\n *\n * Copyright (c) 2004-2010 Atheros Communications Inc.\n * All rights reserved.\n *\n *\n//\n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice ...
265
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 34.27, "nodes": 195, "errors": 0, "source_hash": "4727744260e16740ce4c630e4308894b9fbce4600f9b9706bf61ebae95425343", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,579
c
/* ============================================================ * QupZilla - WebKit based browser * Copyright (C) 2010-2014 <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, ei...
31.55
60
(translation_unit) "/* ============================================================\n* QupZilla - WebKit based browser\n* Copyright (C) 2010-2014 <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 Fr...
272
5
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.55, "nodes": 181, "errors": 0, "source_hash": "9a3c16c9aaafc70aeb89058bc301cf42af8623692c797fae4ea0b6dba7bba819", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,580
c
#include <stdio.h> #include <stdint.h> int32_t is_curious(int32_t, int32_t); void simplify(int64_t*, int64_t*); int main() { int64_t n = 1, m = 1; for (int32_t a = 10; a < 100; ++a) { for (int32_t b = a + 1; b < 100; ++b) { if (is_curious(a, b)) { n *= a; m...
22.04
47
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n\nint32_t is_curious(int32_t, int32_t);\nvoid simplify(int64_t*, int64_t*);\n\nint main() {\n int64_t n = 1, m = 1;\n\n for (int32_t a = 10; a < 100; ++a) {\n for (int32_t b = a + 1; b < 100; ++b) {\n if (is_curious(a, b)) {\n ...
484
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 22.04, "nodes": 327, "errors": 0, "source_hash": "d637581f42e57cf08713731f7e6f4856396e79b378ed1e662b05aaba8e5910ab", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,581
c
// // LFLAccountTool.h // ProtocolServiceManger_Example // // Created by admin on 12/9/2020. // Copyright © 2020 DevdragonLi. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface LFLAccountTool : NSObject + (BOOL)isUserVipStatus; @end NS_ASSUME_NONNULL_END
22.15
13
(translation_unit) "//\n// LFLAccountTool.h\n// ProtocolServiceManger_Example\n//\n// Created by admin on 12/9/2020.\n// Copyright © 2020 DevdragonLi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LFLAccountTool : NSObject\n\n+ (BOOL)isUserVipStatus;\n\n@end\...
37
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.15, "nodes": 21, "errors": 0, "source_hash": "9bb2b482733e10384f160e1a302f73467c6ebb2821bbe29fddca3af2899aa4f0", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
2,582
c
// // ETRFetchedResultsCollectionModel.h // // Created by <NAME> on 15/01/14. // Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved. // #import "ETRCollectionModel.h" @class NSFetchedResultsController; @class NSFetchRequest; @class NSManagedObjectContext; @interface ETRFetchedResultsCollectionMo...
39.8
20
(translation_unit) "//\n// ETRFetchedResultsCollectionModel.h\n//\n// Created by <NAME> on 15/01/14.\n// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.\n//\n\n#import "ETRCollectionModel.h"\n\n@class NSFetchedResultsController;\n@class NSFetchRequest;\n@class NSManagedObjectContext;\n\n@interf...
145
21
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.8, "nodes": 92, "errors": 0, "source_hash": "921fc34e5c23e85f27d35648dac698b370a390607524f0cc3327e281fb48cd3c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
2,583
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/arm/mach-iop32x/include/mach/irqs.h * * Author: <NAME> <<EMAIL>> * Copyright: (C) 2002 <NAME> */ #ifndef __IRQS_H #define __IRQS_H /* * IOP80321 chipset interrupts */ #define IRQ_IOP32X_DMA0_EOT 0 #define IRQ_IOP32X_DMA0_EOC 1 #define IRQ_IOP32X_DMA1_EOT 2 ...
24.07
43
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * arch/arm/mach-iop32x/include/mach/irqs.h\n *\n * Author: <NAME> <<EMAIL>>\n * Copyright: (C) 2002 <NAME>\n */\n\n#ifndef __IRQS_H\n#define __IRQS_H\n\n/*\n * IOP80321 chipset interrupts\n */\n#define IRQ_IOP32X_DMA0_EOT 0\n#define IRQ_IOP32X_DMA0_E...
127
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.07, "nodes": 123, "errors": 0, "source_hash": "e10be5bb98e9e9a9942b55b5cbb66ac2917f401bc404d6d52c87ff35a4c899d8", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,584
c
/* SPDX-License-Identifier: 0BSD */ #ifndef MINIFLAC_OGGHEADER_H #define MINIFLAC_OGGHEADER_H #include <stdint.h> #include "common.h" #include "bitreader.h" typedef struct miniflac_oggheader_s miniflac_oggheader_t; typedef enum MINIFLAC_OGGHEADER_STATE MINIFLAC_OGGHEADER_STATE; enum MINIFLAC_OGGHEADER_STATE { M...
25.26
34
(translation_unit) "/* SPDX-License-Identifier: 0BSD */\n#ifndef MINIFLAC_OGGHEADER_H\n#define MINIFLAC_OGGHEADER_H\n\n#include <stdint.h>\n\n#include "common.h"\n#include "bitreader.h"\n\ntypedef struct miniflac_oggheader_s miniflac_oggheader_t;\ntypedef enum MINIFLAC_OGGHEADER_STATE MINIFLAC_OGGHEADER_STATE;\n\nenum ...
134
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.26, "nodes": 93, "errors": 0, "source_hash": "abda26ba05aa49505501053db93069ba50914263a57ba8693e10ee74b51137ef", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,585
c
#include <stdio.h> #include <stdlib.h> typedef char* string; int main() { int it; int fb; int i; int* type; string resps[] = {"Rolien", "Naej", "Elehcim", "Odranoei"}; scanf("%d", &it); while(it > 0) { scanf("%d", &fb); type = (int*)malloc(sizeof(int)*fb); for(i=0;i<fb;i++) scanf("%d", &type[i]...
16.08
24
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef char* string;\n\nint main()\n{\n int it;\n int fb;\n\n int i;\n\n int* type;\n string resps[] = {"Rolien", "Naej", "Elehcim", "Odranoei"};\n\n scanf("%d", &it);\n\n while(it > 0)\n {\n scanf("%d", &fb);\n\n type = (int*)malloc(sizeof(int)*fb);\n\n...
236
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 16.08, "nodes": 131, "errors": 0, "source_hash": "2c5d412ac7d0eaeedb8405b1839c51bcedf721f6c37d3e17501987a6277c2efe", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,586
c
#ifndef __PVCALLS_FRONT_H__ #define __PVCALLS_FRONT_H__ #include <linux/net.h> int pvcalls_front_socket(struct socket *sock); int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, int addr_len, int flags); int pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int ad...
32.08
25
(translation_unit) "#ifndef __PVCALLS_FRONT_H__\n#define __PVCALLS_FRONT_H__\n\n#include <linux/net.h>\n\nint pvcalls_front_socket(struct socket *sock);\nint pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,\n int addr_len, int flags);\nint pvcalls_front_bind(struct socket *sock,\n struct so...
234
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.08, "nodes": 191, "errors": 0, "source_hash": "bb21d2dab0cd50736a22a92b4ff89bd07420736e5af6d0c69fd939e27efb8e5f", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,587
c
/*!The Treasure Box Library * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
35.67
265
(translation_unit) "/*!The Treasure Box Library\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli...
342
0
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 35.67, "nodes": 224, "errors": 0, "source_hash": "1d6eb3765941ebb1859f65b512427366507dfdfce3f85f4f1b0c1155ba5e1e4e", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,588
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/RemoteManagement.framework/RemoteManagement */ @interface RMDeviceCertificateIdentity : RMDeviceIdentity { struct __SecIdentity { } * _identity; } @property (nonatomic) struct __SecIdentity { }*identity; - (void)deviceIdentityWithComplet...
40.31
13
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/RemoteManagement.framework/RemoteManagement\n */\n\n@interface RMDeviceCertificateIdentity : RMDeviceIdentity {\n struct __SecIdentity { } * _identity;\n}\n\n@property (nonatomic) struct __SecIdentity { }*identity;\n\n- (...
147
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.31, "nodes": 85, "errors": 0, "source_hash": "76976c46066176c09bf1373ad1f4014a96bd2bafd2118be7275eab2b95fd8da2", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
2,589
c
/* * (C) Copyright 2019 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
30.67
266
(translation_unit) "/*\n * (C) Copyright 2019 Intel Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
1,330
0
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 30.67, "nodes": 775, "errors": 0, "source_hash": "c423c99c45f621cca1ae10241777ad2010043f6de8d2f64b55caf8e7908420c6", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,590
c
// // WBTableViewHeightCache.h // WBListKit // // Created by fangyuxi on 2019/2/25. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NSMutableArray<NSMutableArray<NSNumber *> *> WBIndexPathHeightsBySection; @interface WBTableViewHeightCache : NSObject - (BOOL)existsHeightAtIndexPath:(NSIndex...
39.6
20
(translation_unit) "//\n// WBTableViewHeightCache.h\n// WBListKit\n//\n// Created by fangyuxi on 2019/2/25.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NSMutableArray<NSMutableArray<NSNumber *> *> WBIndexPathHeightsBySection;\n\n@interface WBTableViewHeightCache : NSObject\n\n- (BO...
201
21
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.6, "nodes": 126, "errors": 0, "source_hash": "98579f4a33a599465eb80dac803f4747fd4152ccc8f150e2f21e678c81c1d6a8", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,591
c
// license:GPL-2.0+ // copyright-holders:<NAME> /*************************************************************************** Nascom 1/2/3 Disk image format ***************************************************************************/ #pragma once #ifndef __NASCOM_DSK_H__ #define __NASCOM_DSK_H__ #include "...
29.41
22
(translation_unit) "// license:GPL-2.0+\n// copyright-holders:<NAME>\n/***************************************************************************\n\n Nascom 1/2/3\n\n Disk image format\n\n***************************************************************************/\n\n#pragma once\n\n#ifndef __NASCOM_DSK_H__\n#de...
113
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.41, "nodes": 61, "errors": 0, "source_hash": "3857a427cee7ca1812b274b3e12f70ffe1f07ddf2940abd77ae4a7f046f5a580", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,592
c
/****************************************************************************** ** ** ** The MIT License ** ** ** ...
29.41
165
(translation_unit) "/******************************************************************************\n** **\n** The MIT License **\n** ...
479
15
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 29.41, "nodes": 328, "errors": 0, "source_hash": "2216a435e8f14a91685ea36a4977d26abbeb79f9c5967930e344aede6e73dd17", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,593
c
#ifndef __stdio_os__ #define __stdio_os__ //----------------------------------------------------------------------- // Functions declarations in this file are the various os-level traps // defined in the main simulator library at: // ~ee469/labs/common/dlxos/lib/gcc-lib/dlx/2.7.2.3/libtraps.a // These declarations are...
38.05
20
(translation_unit) "#ifndef __stdio_os__\n#define __stdio_os__\n\n//-----------------------------------------------------------------------\n// Functions declarations in this file are the various os-level traps\n// defined in the main simulator library at:\n// ~ee469/labs/common/dlxos/lib/gcc-lib/dlx/2.7.2.3/libtraps.a...
166
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 38.05, "nodes": 115, "errors": 0, "source_hash": "83a2c7eef0f28981c7242d83b1dafdd6a17fa058c059830b2124e4ef47cf19fa", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,594
c
/* ***************************************************************************** Starting the IO reactor and reviewing its state ***************************************************************************** */ #ifndef H_FACIL_IO_H /* development sugar, ignore */ #include "999 dev.h" /* development sugar, ignore */ #end...
34.85
100
(translation_unit) "/* *****************************************************************************\nStarting the IO reactor and reviewing its state\n***************************************************************************** */\n#ifndef H_FACIL_IO_H /* development sugar, ignore */\n#include "999 dev.h" /* developme...
192
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 34.85, "nodes": 122, "errors": 0, "source_hash": "f15400725c0f6c03252528b82309e8a568b2658d1d5e065e7d89a3b1d621b113", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,595
c
#pragma once #include "Shader.h" #include "Utils/Buffer.h" #include "Utils/Types.h" #include <memory> #include <string> namespace oakvr { namespace render { class ShaderProgram { public: ShaderProgram(const std::string &shaderProgram , sp<oakvr::core::MemoryBuffer> vsBuffer , sp<oakvr::core::Memor...
24
31
(translation_unit) "#pragma once\n\n#include "Shader.h"\n#include "Utils/Buffer.h"\n#include "Utils/Types.h"\n\n#include <memory>\n#include <string>\n\nnamespace oakvr\n{\n namespace render\n {\n class ShaderProgram\n {\n public:\n ShaderProgram(const std::string &shaderProgram\n , sp<oakvr::core::MemoryBuffer>...
245
11
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.0, "nodes": 151, "errors": 0, "source_hash": "7a26d487054b5d4bff0711724677693c45346cb1add2a451f84035595d62ebb7", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,596
c
#ifndef MERGE_SORT #define MERGE_SORT void merge_sort(int* v, int p, int r); #endif
20
4
(translation_unit) "#ifndef MERGE_SORT\n#define MERGE_SORT\n\nvoid merge_sort(int* v, int p, int r);\n\n#endif" (preproc_ifdef) "#ifndef MERGE_SORT\n#define MERGE_SORT\n\nvoid merge_sort(int* v, int p, int r);\n\n#endif" (#ifndef) "#ifndef" (identifier) "MERGE_SORT" (preproc_def) "#define MERGE_SORT\n" ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.0, "nodes": 23, "errors": 0, "source_hash": "989f2c9df90450310875dad5f9bc16f46d29f756404c5b488381349b658e46f6", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ME...
2,597
c
#include <p24fxxxx.h> _CONFIG2(FNOSC_FRCPLL & OSCIOFNC_ON &POSCMOD_NONE & I2C1SEL_PRI) // Internal FRC OSC = 8MHz _CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & COE_OFF & FWDTEN_OFF & ICS_PGx1) //turn off junk we don't need #pragma code int main(void){ CLKDIVbits.RCDIV0=0; //clock divider to 0 AD1P...
25.84
38
(translation_unit) "#include <p24fxxxx.h> \n_CONFIG2(FNOSC_FRCPLL & OSCIOFNC_ON &POSCMOD_NONE & I2C1SEL_PRI) // Internal FRC OSC = 8MHz \n_CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & COE_OFF & FWDTEN_OFF & ICS_PGx1) //turn off junk we don't need \n \n \n#pragma code \n \nint main(void){ \n \n CLKDIVbits.RCDIV0=0;...
220
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.84, "nodes": 131, "errors": 0, "source_hash": "1866a1f21e804985b2520ec4f7e967d50aea2c1dc1fc98c87596d4f3bd5a12d4", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,598
c
/* * FtpServer Arduino, esp8266 and esp32 library for Ftp Server * Derived form https://github.com/nailbuster/esp8266FTPServer * * AUTHOR: <NAME> * * https://www.mischianti.org/2020/02/08/ftp-server-on-esp8266-and-esp32 * */ #ifndef SIMPLE_FTP_SERVER_H #define SIMPLE_FTP_SERVER_H #include <FtpServer.h> #end...
22.79
14
(translation_unit) "/*\n * FtpServer Arduino, esp8266 and esp32 library for Ftp Server\n * Derived form https://github.com/nailbuster/esp8266FTPServer\n *\n * AUTHOR: <NAME>\n *\n * https://www.mischianti.org/2020/02/08/ftp-server-on-esp8266-and-esp32\n *\n */\n\n#ifndef SIMPLE_FTP_SERVER_H\n#define SIMPLE_FTP_SERVER_...
15
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.79, "nodes": 13, "errors": 0, "source_hash": "515957ce1d8a8efdbff11ff978f6a9d6645aa7d7e0a4f949dd4b386811180531", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
2,599