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
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
31.95
159
(translation_unit) "/* \nTHE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX \nSOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO \nEND-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A \nROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-US...
73
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 31.95, "nodes": 54, "errors": 0, "source_hash": "14b1ba3dd3afb3e7c8c3d4cd7ca483ae166ba5cb127ed3f6a16393703dfcfdb6", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,700
c
#include <stdio.h> #include <stdlib.h> #include <string.h> FILE * fin; FILE * fout; FILE *fsrc; char fname[256]; char buff[1024]; char files[100][256]; int main(int argc, char *argv[]) { char * p; int fnum, lnum; int filefound = 0; if (argc != 2) { printf("avr-source V1.1\r\n\nusage: avr-source filename.s\n");...
20.19
113
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nFILE * fin;\nFILE * fout;\nFILE *fsrc;\n\nchar fname[256];\nchar buff[1024];\nchar files[100][256];\n\nint main(int argc, char *argv[])\n{\n char * p;\n int fnum, lnum;\n int filefound = 0;\n if (argc != 2) {\n printf("avr-source V1.1\...
1,044
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 20.19, "nodes": 532, "errors": 0, "source_hash": "54ab38b86f702eba124627c329b87d70b3627acf8e2f729c9b07116528cea177", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,701
c
#ifndef MODEL_H #define MODEL_H #include <vector> #include <memory> #include <string> #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "Material.h" #include "Log.h" #include "Util.h" #include "Mesh.h" #include "Files.h" #include "MeshTextures.h" namespace Renderer { ...
28.93
30
(translation_unit) "#ifndef MODEL_H\n#define MODEL_H\n\n#include <vector>\n#include <memory>\n#include <string>\n\n#include <assimp/Importer.hpp>\n#include <assimp/scene.h>\n#include <assimp/postprocess.h>\n\n#include "Material.h"\n#include "Log.h"\n#include "Util.h"\n#include "Mesh.h"\n#include "Files.h"\n#include "Me...
244
8
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.93, "nodes": 149, "errors": 0, "source_hash": "dbedc1912a63f9b2dd3a9fbdb7c0d11811f86558e6e2a11cbc4d06a894336a9a", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,702
c
// Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H #define BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H // // Data for paymentserv...
20.42
122
(ERROR) "// Copyright (c) 2009-2018 The Bitcoin Core developers \n// Distributed under the MIT software license, see the accompanying \n// file COPYING or http://www.opensource.org/licenses/mit-license.php. \n \n#ifndef BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H \n#define BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H \n \n// \n// Dat...
304
5
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 20.42, "nodes": 181, "errors": 0, "source_hash": "9a3560cddb9574e126af0281648eabc5da87eb1625c9ce5f29b377d49c448345", "categorized_nodes": 103}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright (c) 2009-20...
13,703
c
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright 2018-2019 NXP * * Brief CAAM Controller Hardware Abstration Layer. * Implementation of primitives to access HW. */ #include <caam_hal_ctrl.h> #include <caam_io.h> #include <platform_config.h> #include <registers/ctrl_regs.h> #include <registers/vers...
28.35
164
(translation_unit) "// SPDX-License-Identifier: BSD-2-Clause\n/*\n * Copyright 2018-2019 NXP\n *\n * Brief CAAM Controller Hardware Abstration Layer.\n * Implementation of primitives to access HW.\n */\n#include <caam_hal_ctrl.h>\n#include <caam_io.h>\n#include <platform_config.h>\n#include <registers/ctrl_re...
1,108
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 28.35, "nodes": 715, "errors": 0, "source_hash": "8f78513040f93b9b89757432d3d9da8274f140729d2979ca6a27e902f6c3a1b3", "categorized_nodes": 533}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,704
c
//Copyright (c) Microsoft Corporation. All rights reserved. #pragma once namespace Microsoft { namespace WindowsAPICodePack { namespace DirectX { namespace Direct3D { /// <summary> /// Describes the set of features targeted by a Direct3D device. /// <para>(Also see DirectX SDK: D3D_FEATURE_LEVEL)</para> /// <para>(...
34.42
65
(translation_unit) "//Copyright (c) Microsoft Corporation. All rights reserved.\n\n#pragma once\n\nnamespace Microsoft { namespace WindowsAPICodePack { namespace DirectX { namespace Direct3D {\n\n/// <summary>\n/// Describes the set of features targeted by a Direct3D device.\n/// <para>(Also see DirectX SDK: D3D_FEATU...
154
3
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 34.42, "nodes": 72, "errors": 0, "source_hash": "da3a575f8b893ad5787b18c252565e49b71dac1615ae3b7f6ec23e489946e527", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,705
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FitnessUI.framework/FitnessUI */ @interface FIUINavigationController : UINavigationController - (id)initWithRootViewController:(id)arg1; - (long long)preferredInterfaceOrientationForPresentation; - (bool)shouldAutorotate; - (unsigned long lon...
38.67
9
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/FitnessUI.framework/FitnessUI\n */\n\n@interface FIUINavigationController : UINavigationController\n\n- (id)initWithRootViewController:(id)arg1;\n- (long long)preferredInterfaceOrientationForPresentation;\n- (bool)shouldAuto...
64
5
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 38.67, "nodes": 39, "errors": 0, "source_hash": "057332af4c5d51c96ab8a10ece16bac81e19b47a1cb32ad4109a24372edf7873", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface FIUINa...
13,706
c
#ifndef MYCOLORPUSHBUTTON_H #define MYCOLORPUSHBUTTON_H #include <QPushButton> class myColorButtonDialog : public QPushButton { Q_OBJECT public: explicit myColorButtonDialog(QWidget *parent = 0); explicit myColorButtonDialog(QColor defaultColor, QWidget *parent = 0); protected: void paintEvent(QPaint...
25.39
23
(translation_unit) "#ifndef MYCOLORPUSHBUTTON_H\n#define MYCOLORPUSHBUTTON_H\n\n#include <QPushButton>\n\nclass myColorButtonDialog : public QPushButton\n{\n Q_OBJECT\npublic:\n explicit myColorButtonDialog(QWidget *parent = 0);\n explicit myColorButtonDialog(QColor defaultColor, QWidget *parent = 0);\n\nprote...
150
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.39, "nodes": 99, "errors": 0, "source_hash": "bf95f1f82beda749841297e4cd8147f8ebc800cfbba89f4e4b69aad9f60dd883", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,707
c
#include "unpipc.h" int main(int argc, char **argv) { if (argc != 2) { err_quit();
13.5
6
(translation_unit) "#include "unpipc.h"\n\nint main(int argc, char **argv)\n{\n if (argc != 2)\n {\n err_quit();\n" (preproc_include) "#include "unpipc.h"\n" (#include) "#include" (string_literal) ""unpipc.h"" (") """ (string_content) "unpipc.h" (") """ (ERROR) "int main(int argc, char **...
42
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 13.5, "nodes": 26, "errors": 0, "source_hash": "fe31e0a1b148746198404e5c16f6a484f7d7b2139dc614f1f68f4f56be583944", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
13,708
c
#ifndef __AIO_H__ #define __AIO_H__ #include <features.h> #include <stdint.h> #include <signal.h> #include <time.h> #include <sys/types.h> #include <zero/param.h> /* return values for cancelation */ #define AIO_CANCELED 0 #define AIO_NOTCANCELED 1 #define AIO_ALLDONE 2 /* synchronisation modes for lio_listio(...
36.93
69
(translation_unit) "#ifndef __AIO_H__\n#define __AIO_H__\n\n#include <features.h>\n#include <stdint.h>\n#include <signal.h>\n#include <time.h>\n#include <sys/types.h>\n#include <zero/param.h>\n\n/* return values for cancelation */\n#define AIO_CANCELED 0\n#define AIO_NOTCANCELED 1\n#define AIO_ALLDONE 2\n\n/* sy...
494
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 36.93, "nodes": 362, "errors": 0, "source_hash": "ce2b9f2f2dab3a87d2066a41183868e70f728f1277678b7ef65013cc40533d24", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,709
c
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #ifndef AVT_PYTHON_FILTER_H #define AVT_PYTHON_FILTER_H #include <python_filters_exports.h> #in...
39.76
42
(translation_unit) "// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt\n// Project developers. See the top-level LICENSE file for dates and other\n// details. No copyright assignment is required to contribute to VisIt.\n\n#ifndef AVT_PYTHON_FILTER_H\n#define AVT_PYTHON_FILTER_H\n#include <pyth...
328
17
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 39.76, "nodes": 185, "errors": 0, "source_hash": "ec59f4749abebce03842f7fa11e0592aafa5e0aed638b496d850cc103e18a826", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,710
c
#pragma once void cuda_paint_prepare (unsigned char* in_image, unsigned char* out_image, int width, int height, int radius, int nBins);
67
2
(translation_unit) "#pragma once\n\nvoid cuda_paint_prepare (unsigned char* in_image, unsigned char* out_image, int width, int height, int radius, int nBins);\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void cuda_paint_prepare (unsigned char* in_ima...
43
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 67.0, "nodes": 34, "errors": 0, "source_hash": "27429e1015519c20671a399c19c7ad72e322100651281c53359114fbf9e5d82b", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
13,711
c
#pragma once #include <string> typedef struct _seqence_t { unsigned int pos; std::string name; unsigned int divider; } sequence_t; //ряды номиналов static sequence_t sequence[] = { { 0, "NUL", 0 } , {1, "E192", 1} , {2, "E96", 2 } , {3, "E48", 4 } , {4, "E24", 8 } , {5, "E12", 16 } , {6, "E6", 32 ...
13.71
28
(translation_unit) "#pragma once \n \n#include <string> \n \ntypedef struct _seqence_t { \n unsigned int pos; \n std::string name; \n unsigned int divider; \n} sequence_t; \n//ряды номиналов \nstatic sequence_t sequence[] = \n{ { 0, "NUL", 0 } , \n{1, "E192", 1} , \n{2, "E96", 2 } , \n{3, "E48", 4 } , \n{4, "E24", 8 } ...
169
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 13.71, "nodes": 80, "errors": 0, "source_hash": "167a7913a59bac6732ecef92ce32c80efd88cb2b61f10e6883cdde0f3f90729b", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,712
c
// Copyright (c) 2015 <NAME> / GCC / TU-Darmstadt. All rights reserved. // Use of this source code is governed by the BSD 3-Clause license that can be // found in the LICENSE file. #ifndef __MATOG_DEGREE_PRETTYPRINTER #define __MATOG_DEGREE_PRETTYPRINTER #include <matog/dll.h> #include <matog/enums.h> #include <cuda...
32.26
35
(translation_unit) "// Copyright (c) 2015 <NAME> / GCC / TU-Darmstadt. All rights reserved. \n// Use of this source code is governed by the BSD 3-Clause license that can be\n// found in the LICENSE file.\n\n#ifndef __MATOG_DEGREE_PRETTYPRINTER\n#define __MATOG_DEGREE_PRETTYPRINTER\n\n#include <matog/dll.h>\n#include <m...
156
1
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.26, "nodes": 81, "errors": 0, "source_hash": "c172f8194e29348b55bfac9c131326d2592ae3afbd72fadaf8df1b33a7662e05", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,713
c
/* * SDU Protection Cryptographic Policy Set (includes a combination of * compression, Message Authentication Codes and Encryption mechanisms) * * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
35.96
48
(translation_unit) "/*\n * SDU Protection Cryptographic Policy Set (includes a combination of\n * compression, Message Authentication Codes and Encryption mechanisms)\n *\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the term...
169
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 35.96, "nodes": 121, "errors": 0, "source_hash": "8116f82835f042263306ab2ab18b7521c28f9ee4042852789df16cf00572f160", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,714
c
#ifndef _HISI_COUL_EVENT_H #define _HISI_COUL_EVENT_H #include <linux/notifier.h> #include <linux/time.h> enum hisi_coul_event { /* event below just processed in the orign flow */ HISI_SOH_ACR = 0, HISI_SOH_DCR = 1, HISI_EEPROM_CYC = 2, HISI_OCV_UPDATE = 3, /* event below should be processed as atom in the orig...
24.43
58
(translation_unit) "#ifndef _HISI_COUL_EVENT_H\n#define _HISI_COUL_EVENT_H\n#include <linux/notifier.h>\n#include <linux/time.h>\n\nenum hisi_coul_event {\n /* event below just processed in the orign flow */\n HISI_SOH_ACR = 0,\n HISI_SOH_DCR = 1,\n HISI_EEPROM_CYC = 2,\n HISI_OCV_UPDATE = 3,\n\n /* event below should ...
315
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.43, "nodes": 226, "errors": 0, "source_hash": "bd8ae4ef16d21554cfb0c088c9d74a1d36635c895bb3e1f82f02c2ddc7e62eeb", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,715
c
/* * uart.c * * Copyright 2013 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This ...
21.35
155
(translation_unit) "/*\n * uart.c\n * \n * Copyright 2013 <NAME> <<EMAIL>>\n * \n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any...
823
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 21.35, "nodes": 425, "errors": 0, "source_hash": "47c13f71e5c5c76df4659b94ed4c9115762fbd8dad2d6ab974a4c8d56ea48210", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,716
c
/* * Copyright (c) 2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef __ITS_TESTS_COMMON_H__ #define __ITS_TESTS_COMMON_H__ #include "test/framework/test_framework_helpers.h" #ifdef __cplusplus extern "C" { #endif /* Test UIDs */ #define WRITE_ONCE_UID 1U /* Cannot ...
30.36
200
(translation_unit) "/*\n * Copyright (c) 2019, Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n */\n\n#ifndef __ITS_TESTS_COMMON_H__\n#define __ITS_TESTS_COMMON_H__\n\n#include "test/framework/test_framework_helpers.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Test UIDs */\n...
420
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 30.36, "nodes": 331, "errors": 0, "source_hash": "9fdf5cea47885684cd8b9d1db444c9e0e35361628a654c1a1de8c11315ace2a7", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,717
c
#include <windows.h> #include <stdio.h> #include <stdint.h> #include <stdbool.h> void process_serial(char *name, char *serial_out) { BYTE serial_buf[9] = { '0', '0','0', '0', '0', '0', '0', '0',0x0 }; const int check_dword = 0xFFFFE479 ^ 0x08EF21BD; //pad buf with zero in case it fails. bool done = fals...
26.69
51
(translation_unit) "#include <windows.h>\n#include <stdio.h>\n#include <stdint.h>\n#include <stdbool.h>\nvoid process_serial(char *name, char *serial_out)\n{\n BYTE serial_buf[9] = { '0', '0','0', '0', '0', '0', '0', '0',0x0 };\n const int check_dword = 0xFFFFE479 ^ 0x08EF21BD;\n //pad buf with zero in case it...
387
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 26.69, "nodes": 245, "errors": 0, "source_hash": "70deae7acee395a60a1f1c4cbf1869a8f89b599259797bbcf4cbd79de43d25c9", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,718
c
/** * @file sr_common.h * @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * @brief Sysrepo common routines. * * @copyright * Copyright 2015 Cisco Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
28.51
45
(translation_unit) "/**\n * @file sr_common.h\n * @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>\n * @brief Sysrepo common routines.\n *\n * @copyright\n * Copyright 2015 Cisco Systems, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the L...
84
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 28.51, "nodes": 49, "errors": 0, "source_hash": "70f7f2314c730d0df481e9c9af0dfc3845d9f52db7a110e21ffe5d37af4ae9a4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,719
c
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ #define SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ #include <string> #include "base/observer_list.h" #include "sync/base/...
41.84
63
(translation_unit) "// Copyright 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SYNC_ENGINE_SYNC_ENGINE_EVENT_H_\n#define SYNC_ENGINE_SYNC_ENGINE_EVENT_H_\n\n#include <string>\n\n#include "base/observer...
217
8
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 41.84, "nodes": 112, "errors": 0, "source_hash": "802d73c2eeff302320fbb777606cd2128e7b3c5cbf37bdf6e9e0258ee389dce7", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,720
c
#ifndef ABOVEGROUNDWORKER_H #define ABOVEGROUNDWORKER_H #include <iostream> #include "chair.h" #include "computer.h" #include "desk.h" class AboveGroundWorker { private: std::string name; Chair *chair; Computer *computer; Desk *desk; double salary; public: /** * @brief Konstruktor klasy A...
24.31
51
(translation_unit) "#ifndef ABOVEGROUNDWORKER_H\n#define ABOVEGROUNDWORKER_H\n\n#include <iostream>\n#include "chair.h"\n#include "computer.h"\n#include "desk.h"\n\nclass AboveGroundWorker\n{\nprivate:\n std::string name;\n Chair *chair;\n Computer *computer;\n Desk *desk;\n double salary;\npublic:\n ...
158
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.31, "nodes": 95, "errors": 0, "source_hash": "4f3a9ece89c711c5911e1226f3354f117880f86d1e816937b0b4d2917c33006e", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,721
c
/* * https://github.com/fatcookies * * La Fortuna (at90usb1286) @ 8MHz * Plays an 8bit/8000 sample PCM audio on OC1A and OC3A * * Adapted from: * http://avrpcm.blogspot.co.uk/2010/11/playing-8-bit-pcm-using-any-avr.html */ #include "audio.h" #include <stdint.h> #include <avr/interrupt.h> /* Current sample...
21.23
131
(translation_unit) "/*\n * https://github.com/fatcookies\n * \n * La Fortuna (at90usb1286) @ 8MHz\n * Plays an 8bit/8000 sample PCM audio on OC1A and OC3A\n * \n * Adapted from:\n * http://avrpcm.blogspot.co.uk/2010/11/playing-8-bit-pcm-using-any-avr.html \n */\n\n#include "audio.h"\n#include <stdint.h>\n#include <avr/...
617
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 21.23, "nodes": 356, "errors": 0, "source_hash": "0725c736bc07b359a68b7dc77fb4566ecee84d3e1781ffb58092fe223a60749a", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,722
c
// CIX C++ library // Copyright (c) <NAME> // SPDX-License-Identifier: MIT #pragma once class namedpipe_worker : public cix::win_namedpipe_server::listener_t, public std::enable_shared_from_this<namedpipe_worker> { public: enum : std::size_t { max_clients = MAXIMUM_WAIT_OBJECTS - 1 }; priv...
31.08
72
(translation_unit) "// CIX C++ library \n// Copyright (c) <NAME> \n// SPDX-License-Identifier: MIT \n \n#pragma once \n \n \nclass namedpipe_worker : \n public cix::win_namedpipe_server::listener_t, \n public std::enable_shared_from_this<namedpipe_worker> \n{ \npublic: \n enum : std::size_t { max_clients = MAX...
474
30
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.08, "nodes": 274, "errors": 0, "source_hash": "2a7fc7bb239ff13976e789bb846c754e2247635321cf5c43b956908154785c5c", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,723
c
#include "trick/reference.h"
28
1
(translation_unit) "#include "trick/reference.h"\n" (preproc_include) "#include "trick/reference.h"\n" (#include) "#include" (string_literal) ""trick/reference.h"" (") """ (string_content) "trick/reference.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 28.0, "nodes": 3, "errors": 0, "source_hash": "0756c155b292d13f9a9f0c9ddedc9ae70c222ff02a60951dc7f5e61c4691bac2", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
13,724
c
/* time.c ====== Author: R.J.Barnes */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Pu...
20.85
193
(translation_unit) "/* time.c\n ======\n Author: R.J.Barnes\n*/\n\n/*\n LICENSE AND DISCLAIMER\n \n Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory\n \n This file is part of the Radar Software Toolkit (RST).\n \n RST is free software: you can redistribute it and/or modify\n it under the t...
1,787
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 20.85, "nodes": 1196, "errors": 0, "source_hash": "4c92c4022a45cdecc76b3a24bea1462555ab607007d4963ff0e838150581a5ae", "categorized_nodes": 855}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,725
c
/* AD5627.h - Library for AD5627 DAC. Created by <NAME>, February 14, 2020. */ #ifndef AD5627_H #define AD5627_H #include <Arduino.h> #include <Wire.h> class AD5627{ private: byte _address; float _ref_voltage; const int _CA1 = 0x18; // Command: DAC A one block write const int _CB1 = 0x19; // Co...
29.38
24
(translation_unit) "/*\n AD5627.h - Library for AD5627 DAC.\n Created by <NAME>, February 14, 2020.\n*/\n\n#ifndef AD5627_H\n#define AD5627_H\n\n#include <Arduino.h>\n#include <Wire.h>\n\nclass AD5627{\n private:\n byte _address;\n float _ref_voltage;\n const int _CA1 = 0x18; // Command: DAC A one block wri...
133
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.38, "nodes": 84, "errors": 0, "source_hash": "91ba914aaf52df17088464a660d268ed464c18e24dfc7305cc062791ff37c768", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,726
c
#ifndef MID_CODE_H_INCLUDED #define MID_CODE_H_INCLUDED #include "var.h" #include "const.h" #include "table.h" #include <vector> #include <string> using namespace std; extern vector<int> temp_counts; extern int branch; extern vector<string> str_set; typedef struct { bool certain; int value; st...
24.93
75
(translation_unit) "#ifndef MID_CODE_H_INCLUDED \n#define MID_CODE_H_INCLUDED \n \n#include "var.h" \n#include "const.h" \n#include "table.h" \n#include <vector> \n#include <string> \n \nusing namespace std; \n \nextern vector<int> temp_counts; \nextern int branch; \nextern vector<string> str_set; \n \ntypedef struct {...
627
3
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 24.93, "nodes": 458, "errors": 0, "source_hash": "ac5b3a164e63787539f25842872b1f13020513ef0b055ac3fa39e7e87df89df0", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,727
c
#pragma once #include <experimental/tuple> #define png_infopp_NULL (png_infopp)NULL #define int_p_NULL (int*)NULL #include <boost/gil/typedefs.hpp> #include <boost/gil/extension/io/png.hpp> #include "types.h" namespace imageit { namespace detail{ using boost::gil::rgba8_pixel_t; inline rgba8_pix...
34.58
33
(translation_unit) "#pragma once\n\n#include <experimental/tuple>\n\n#define png_infopp_NULL (png_infopp)NULL\n#define int_p_NULL (int*)NULL\n#include <boost/gil/typedefs.hpp>\n#include <boost/gil/extension/io/png.hpp>\n\n#include "types.h"\n\nnamespace imageit\n{\n namespace detail{\n using boost::gil::rgba8...
394
16
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.58, "nodes": 266, "errors": 0, "source_hash": "d8ae8f87f92c0286ce95796e94cac89f12feec06d7ce45d39e648a5c0baca4a1", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,728
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "calb.h" /*------------------------------------------------------------------------- * * Non-linear non-correlated fit. * * Note that the weighting sig is absorbed in fmod and dfda, so * that they can be handled by the user supp...
28.88
163
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include "calb.h"\n\n/*-------------------------------------------------------------------------\n *\n * Non-linear non-correlated fit.\n *\n * Note that the weighting sig is absorbed in fmod and dfda, so\n * that they ...
1,784
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 28.88, "nodes": 1145, "errors": 0, "source_hash": "396a83fe7f1beab870d5b75c8b327467bf3e9aed5472a940bf43e9fb9357f460", "categorized_nodes": 781}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,729
c
/* * This file Copyright (C) 2014-2015 Mnemosyne LLC * * It may be used under the GNU GPL versions 2 or 3 * or any future license endorsed by Mnemosyne LLC. * * $Id: crypto-utils-cyassl.c 14442 2015-01-07 13:20:56Z mikedld $ */ #include <assert.h> #include <cyassl/ctaocrypt/arc4.h> #include <cyassl/ctaocrypt/d...
24.05
256
(translation_unit) "/*\n * This file Copyright (C) 2014-2015 Mnemosyne LLC\n *\n * It may be used under the GNU GPL versions 2 or 3\n * or any future license endorsed by Mnemosyne LLC.\n *\n * $Id: crypto-utils-cyassl.c 14442 2015-01-07 13:20:56Z mikedld $\n */\n\n#include <assert.h>\n\n#include <cyassl/ctaocrypt/arc4....
1,542
2
{"language": "c", "success": true, "metadata": {"lines": 256, "avg_line_length": 24.05, "nodes": 957, "errors": 0, "source_hash": "37edf6c4baca2b974e15120e92fb3633ecda9e2e5d1b69fddcb18add588f3d47", "categorized_nodes": 644}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,730
c
/* * psftpcommon.c: front-end functionality shared between both file * transfer tools across platforms. (As opposed to sftpcommon.c, which * has *protocol*-level common code.) */ #include <stdlib.h> #include <string.h> #include "putty.h" #include "sftp.h" #include "psftp.h" #define MAX_NAMES_MEMORY ...
31.41
102
(translation_unit) "/* \n * psftpcommon.c: front-end functionality shared between both file \n * transfer tools across platforms. (As opposed to sftpcommon.c, which \n * has *protocol*-level common code.) \n */ \n \n#include <stdlib.h> \n#include <string.h> \n \n#include "putty.h" \n#include "sftp.h" \n#include "psftp....
727
1
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 31.41, "nodes": 452, "errors": 0, "source_hash": "0c8225bee3cfa45580a16cfa9d3313153cccf1958f6036e4ad499da816f1bb45", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,731
c
#include <iostream> // ROSE analyses #include "rose.h" #include "VariableRenaming.h" #include "Labeler.h" namespace Experimental { class RoseRDAnalysis { public: static void generateRoseRDDotFiles(SPRAY::Labeler* labeler, SgProject* root); private: static void generateRoseRDDotFile(VariableRenaming* varRen,std...
33.81
16
(translation_unit) "#include <iostream>\n// ROSE analyses\n#include "rose.h"\n#include "VariableRenaming.h"\n\n#include "Labeler.h"\n\nnamespace Experimental {\n\nclass RoseRDAnalysis {\n public:\n static void generateRoseRDDotFiles(SPRAY::Labeler* labeler, SgProject* root);\n private:\n static void generateRoseRDDot...
158
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.81, "nodes": 97, "errors": 0, "source_hash": "f0ce5b551fa991bc6bd689a33135f155a583dc55fec86bc0388f73ef52a4f7fd", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,732
c
#ifndef TANGENT_H #define TANGENT_H #include <torch/torch.h> #include <ATen/Tensor.h> #include <ATen/TensorOperators.h> #include <ATen/Layout.h> #include <cxxabi.h> #define COUTN(var) {std::cout << "\e[33m" << #var << "\e[0m" << std::endl << var << std::endl;} namespace lietorch { namespace internal { template<cl...
30.4
149
(translation_unit) "#ifndef TANGENT_H\n#define TANGENT_H\n\n#include <torch/torch.h>\n#include <ATen/Tensor.h>\n#include <ATen/TensorOperators.h>\n#include <ATen/Layout.h>\n\n#include <cxxabi.h>\n\n#define COUTN(var) {std::cout << "\e[33m" << #var << "\e[0m" << std::endl << var << std::endl;}\n\nnamespace lietorch {\n\...
1,726
123
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 30.4, "nodes": 1030, "errors": 0, "source_hash": "b01995884f1b6e7f8e98e92f3f5d4539a464e7621aa3b566e71c937afec6f6f4", "categorized_nodes": 689}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,733
c
int cpe_get_wan_elc_status(cwmp_t * cwmp, const char * name, char ** value, char * args, pool_t * pool) { int wan_port = 0; struct port_status ps = {}; DM_TRACE_GET(); /* get WAN status */ wan_port = 4 - cwmp_nvram_get_int("wan_port", 5); if (wan_port == -1) { return FAULT_CODE_9002; ...
31.75
52
(translation_unit) "int cpe_get_wan_elc_status(cwmp_t * cwmp, const char * name, char ** value, char * args, pool_t * pool)\n{\n int wan_port = 0;\n struct port_status ps = {};\n\n DM_TRACE_GET();\n /* get WAN status */\n wan_port = 4 - cwmp_nvram_get_int("wan_port", 5);\n if (wan_port == -1) {\n ...
414
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 31.75, "nodes": 236, "errors": 0, "source_hash": "33cbe1545b0a14a67d5a98cf919a90d7c45c0e8bb0a2bcab8ef8326c42e577ad", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
13,734
c
// // SignUpSegue.h // HaNoiTravel // // Created by Dreamup on 1/11/17. // Copyright © 2017 DREAMUP. All rights reserved. // #import <UIKit/UIKit.h> @interface SignUpSegue : UIStoryboardSegue @property CGPoint originatingPoint; @end
20.55
11
(translation_unit) "//\n// SignUpSegue.h\n// HaNoiTravel\n//\n// Created by Dreamup on 1/11/17.\n// Copyright © 2017 DREAMUP. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SignUpSegue : UIStoryboardSegue\n\n@property CGPoint originatingPoint;\n\n@end\n" (comment) "//" (comment) "// SignUpSe...
29
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.55, "nodes": 16, "errors": 0, "source_hash": "f2a375e68ce97d58e8e9da5b620289a9839249b86bdc543728697f270084443e", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
13,735
c
// DENG: dynamic engine - small but powerful 3D game engine // licence: Apache, see LICENCE file // file: Window.h - Nekowin library abstraction class header for DENG // author: <NAME> #ifndef WINDOW_H #define WINDOW_H #ifdef WINDOW_CPP #include <cstdint> #include <vector> #include <string> #include <...
37.73
99
(translation_unit) "// DENG: dynamic engine - small but powerful 3D game engine\n// licence: Apache, see LICENCE file\n// file: Window.h - Nekowin library abstraction class header for DENG\n// author: <NAME>\n\n#ifndef WINDOW_H\n#define WINDOW_H\n\n#ifdef WINDOW_CPP\n #include <cstdint>\n #include <vector>\n #...
725
32
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 37.73, "nodes": 464, "errors": 0, "source_hash": "10e813aec9ea5101e6e34b8c68f72143bd521ac4f92c083029b944b043ea28b9", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef WINDOW...
13,736
c
#ifndef AliAnalysisTaskTOFppSpectra_cxx #define AliAnalysisTaskTOFppSpectra_cxx class AliVTrack; class TH1F; class AliESDEvent; class AliVEvent; class TH3F; class TH2F; class AliPIDResponse; class AliESDtrackCuts; #include <AliPID.h> #include <AliPIDResponse.h> #include "AliAnalysisTaskSE.h" #include "AliTrackerBase...
32.98
186
(translation_unit) "#ifndef AliAnalysisTaskTOFppSpectra_cxx\n#define AliAnalysisTaskTOFppSpectra_cxx\n\n\nclass AliVTrack;\nclass TH1F;\nclass AliESDEvent;\nclass AliVEvent;\nclass TH3F;\nclass TH2F;\nclass AliPIDResponse;\nclass AliESDtrackCuts;\n\n#include <AliPID.h>\n#include <AliPIDResponse.h>\n#include "AliAnalysi...
1,133
17
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 32.98, "nodes": 836, "errors": 0, "source_hash": "1bd726fc07756bf9eba3404851001c2c8c9f825a0ddada4d3a99acd3658ca451", "categorized_nodes": 550}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,737
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once class FChatDisplayService : public IChatDisplayService , public TSharedFromThis<FChatDisplayService> { public: virtual ~FChatDisplayService() {} }; /** * Creates the implementation for an FChatDisplayService. * * @return the newly create...
33.06
17
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\nclass FChatDisplayService\n : public IChatDisplayService\n , public TSharedFromThis<FChatDisplayService>\n{\npublic:\n virtual ~FChatDisplayService() {}\n};\n\n/**\n * Creates the implementation for an FChatDisplayServic...
80
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.06, "nodes": 47, "errors": 0, "source_hash": "d3b5b0b160e2fa51d39a509323563454a857a98fb0e662afae9ff80a3cd31707", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,738
c
// // question-30.h // algorithm // // Created by Kai on 2019/8/19. // Copyright © 2019 kai. All rights reserved. // #ifndef question_30_h #define question_30_h /* 设计一个栈,有 min 函数。该栈中,调用 min, push, pop 时间复杂度都是 O(1)。 */ #include <stdio.h> #include "stack.h" // 该结构内部用两个栈实现,main 栈用于存储目标数据,minValues 存储最小值。 typedef...
17.22
46
(translation_unit) "//\n// question-30.h\n// algorithm\n//\n// Created by Kai on 2019/8/19.\n// Copyright © 2019 kai. All rights reserved.\n//\n\n#ifndef question_30_h\n#define question_30_h\n\n/*\n 设计一个栈,有 min 函数。该栈中,调用 min, push, pop 时间复杂度都是 O(1)。\n */\n\n#include <stdio.h>\n#include "stack.h"\n\n// 该结构内部用两个栈实现,m...
116
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 17.22, "nodes": 77, "errors": 0, "source_hash": "5b32c1cf0959ae8913a01c75adf879019e9e118cffd0385bea384e1bd5226539", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef q...
13,739
c
#ifndef CONN_POOL_H #define CONN_POOL_H #ifdef __cplusplus extern "C"{ #endif #if !defined(WIN32) #define CONN_DECLARE(type) type #define CONN_DECLARE_NONSTD(type) type #define CONN_DECLARE_DATA #elif defined(CONN_DECLARE_STATIC) #define CONN_DECLARE(type) type __stdcall #define...
25.81
74
(translation_unit) "#ifndef CONN_POOL_H \n#define CONN_POOL_H \n \n#ifdef __cplusplus \nextern "C"{ \n#endif \n \n#if !defined(WIN32) \n#define CONN_DECLARE(type) type \n#define CONN_DECLARE_NONSTD(type) type \n#define CONN_DECLARE_DATA \n#elif defined(CONN_DECLARE_STATIC) \n#define CONN_DECLARE(type) ...
335
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 25.81, "nodes": 247, "errors": 0, "source_hash": "5a2ab7d072962a3e13fb09ed0442465ec72eac293609c8c82faddec0b1f93a2f", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,740
c
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2016 Rockchip Electronics Co., Ltd */ #include <common.h> #include <spl.h> #include <asm/gpio.h> void board_boot_order(u32 *spl_boot_list) { /* eMMC prior to sdcard */ spl_boot_list[0] = BOOT_DEVICE_MMC2; spl_boot_list[1] = BOOT_DEVICE_MMC1; } #define GPIO...
20.36
25
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * (C) Copyright 2016 Rockchip Electronics Co., Ltd\n */\n\n#include <common.h>\n#include <spl.h>\n#include <asm/gpio.h>\n\nvoid board_boot_order(u32 *spl_boot_list)\n{\n /* eMMC prior to sdcard */\n spl_boot_list[0] = BOOT_DEVICE_MMC2;\n spl_boot_list[1] = ...
121
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.36, "nodes": 73, "errors": 0, "source_hash": "8726e07934ca24114976c12a7599056e1e2f63e35e66a1e3ec5a7537e4bcbead", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,741
c
/** file print_arrays.c * @author <NAME> * * Functions for printing arrays. */ #include <stdio.h> #include "print_arrays.h" /** Print an array of ints, one per line. @param a Array to print @param num_elements Number of elements in the array */ void print_int_array(int a[], int num_elements...
24.23
48
(translation_unit) "/** file print_arrays.c \n * @author <NAME> \n * \n * Functions for printing arrays. \n */ \n \n#include <stdio.h> \n#include "print_arrays.h" \n \n/** Print an array of ints, one per line. \n @param a Array to print \n @param num_elements Number of elements in the array \n*/ \n \nvoid print_i...
229
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.23, "nodes": 131, "errors": 0, "source_hash": "a7cb7a14793357315f5e1140894ed3a5b3e1e416239cc2081a506cbab8ab2edf", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,742
c
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. /** binary_behavior_dataset.h -*- C++ -*- <NAME>, 16 December 2014 Copyright (c) 2014 mldb.ai inc. All rights reserved. */ #include "mldb/core/dataset.h" #pragma once namespace MLDB { /**...
43.95
75
(translation_unit) "// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.\n\n/** binary_behavior_dataset.h -*- C++ -*-\n <NAME>, 16 December 2014\n Copyright (c) 2014 mldb.ai inc. All rights reserved.\n\n*/\n\n#include "mldb/core/dataset.h"\n\n#pragma ...
489
39
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 43.95, "nodes": 285, "errors": 0, "source_hash": "632e095fac28d0c8d17e420aaf7c8ce5cb1ae06f27d82771fe3a26c6d1e6d98e", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,743
c
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0....
34.93
30
(translation_unit) "/**********************************************************************\n * LeechCraft - modular cross-platform feature rich internet client.\n * Copyright (C) 2006-2014 <NAME>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE or copy at https://w...
203
9
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.93, "nodes": 143, "errors": 0, "source_hash": "86ba5bfcfc0a3c3dc07479e3083df3d91db10174819211b65ca5c54d78e3c1f0", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,744
c
#ifndef __DEBUG_H #define __DEBUG_H #include <assert.h> #if DEBUG void debug_init(); void debug_printf(const char* message, ...); #define debug_assert(expr) assert(expr) #else #define debug_init() inline void debug_printf(const char *message,...){ } #define debug_assert(a) #endif #endif
19.57
14
(translation_unit) "#ifndef __DEBUG_H\n#define __DEBUG_H\n#include <assert.h>\n#if DEBUG\n\nvoid debug_init();\n\nvoid debug_printf(const char* message, ...);\n\n#define debug_assert(expr) assert(expr)\n\n#else\n#define debug_init()\ninline void debug_printf(const char *message,...){\n}\n#define debug_assert(a)\n#endif...
87
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.57, "nodes": 59, "errors": 0, "source_hash": "46b16df4117260a6afe1c3b5edbd7c249ef466598136c81c70275485d79b4c21", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,745
c
#ifndef COMMANDS_H #define COMMANDS_H #include <stdint.h> #include "object.h" #include "shell.h" #include "parser.h" #define SHELL_COMMAND_COUNT 256 #define commands_status_return(_status) do { \ commands_status_set(_status); \ ...
32.95
42
(translation_unit) "#ifndef COMMANDS_H\n#define COMMANDS_H\n\n#include <stdint.h>\n\n#include "object.h"\n#include "shell.h"\n#include "parser.h"\n\n#define SHELL_COMMAND_COUNT 256\n\n#define commands_status_return(_status) do { \\n commands_status_set(_status); ...
238
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.95, "nodes": 161, "errors": 0, "source_hash": "01fddf119644fedd19b24c31501b9dfa105dfc6462915304a235f725f1c9dca4", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,746
c
/* * File: gfilechooser.h * -------------------- * This file defines the <code>GFileChooser</code> class which supports * popping up graphical dialog boxes to select file names. * * @author <NAME> * @version 2016/10/25 * - added file filter option * @version 2014/07/09 * - initial version * @since 2014/07/0...
30.48
29
(translation_unit) "/*\n * File: gfilechooser.h\n * --------------------\n * This file defines the <code>GFileChooser</code> class which supports\n * popping up graphical dialog boxes to select file names.\n * \n * @author <NAME>\n * @version 2016/10/25\n * - added file filter option\n * @version 2014/07/09\n * - initi...
148
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.48, "nodes": 71, "errors": 0, "source_hash": "adbb00d081efcd9747fadb49b6a6b1f3c29605d62fd23ab616580a84bf89c508", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,747
c
// // PCCategory.h // Pica // // Created by fancy on 2020/11/3. // Copyright © 2020 fancy. All rights reserved. // #import <Foundation/Foundation.h> #import "PCThumb.h" NS_ASSUME_NONNULL_BEGIN /* { "title": "援助嗶咔", "thumb": { "originalName": "help.jpg", "path": "help.jpg",...
28.2
45
(translation_unit) "//\n// PCCategory.h\n// Pica\n//\n// Created by fancy on 2020/11/3.\n// Copyright © 2020 fancy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PCThumb.h"\n\nNS_ASSUME_NONNULL_BEGIN\n/*\n {\n "title": "援助嗶咔",\n "thumb": {\n "originalName": "help....
285
58
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 28.2, "nodes": 207, "errors": 0, "source_hash": "4364c002da1c88131b44a1422fcd2eb0471e491245e6f5722a2485b37a5af9e2", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
13,748
c
// // Created by islam on 20.06.17. // #pragma once #include "field_metadata.hpp" #include "function_metadata.h" #include <memory> namespace interop { struct object_metadata_t { std::string name; destructor_metadata_t destructor; std::vector<constructor_metadata_t> constructors; std::vector<field_met...
24.89
19
(translation_unit) "//\n// Created by islam on 20.06.17.\n//\n\n#pragma once\n\n#include "field_metadata.hpp"\n#include "function_metadata.h"\n#include <memory>\n\nnamespace interop {\nstruct object_metadata_t {\n std::string name;\n destructor_metadata_t destructor;\n std::vector<constructor_metadata_t> const...
114
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.89, "nodes": 71, "errors": 0, "source_hash": "a795e1317629cb4e9304fce4732a2c2b58f6fa7bf3dae1437798567441408432", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,749
c
/** * @file llfloatergroupbulkban.h * @brief This floater is a wrapper for LLPanelGroupBulkBan, which * is used to ban Residents from a specific group. * * $LicenseInfo:firstyear=2013&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2013, Linden Research, Inc. * * This library is free software; ...
35.54
41
(translation_unit) "/** \n* @file llfloatergroupbulkban.h\n* @brief This floater is a wrapper for LLPanelGroupBulkBan, which\n* is used to ban Residents from a specific group.\n*\n* $LicenseInfo:firstyear=2013&license=viewerlgpl$\n* Second Life Viewer Source Code\n* Copyright (C) 2013, Linden Research, Inc.\n*\n* Th...
109
6
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.54, "nodes": 61, "errors": 0, "source_hash": "d1236030037703494f8ca638ed399060a2d498be6bf902b39eca35606f5aad13", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,750
c
// // NoxmobiMediationIronSourceAdapter.h // // ▄▄︻┻━━━┳━═━━ BUG~~ // // Created by Chong on 2020/8/7. // Copyright © 2020 Chong. All rights reserved. // #import <Foundation/Foundation.h> #define NoxmobiMediationIronSourceAdapterVersion @"7.1.10.0.0"
24.7
10
(translation_unit) "//\n// NoxmobiMediationIronSourceAdapter.h\n// \n// ▄▄︻┻━━━┳━═━━ BUG~~\n// \n// Created by Chong on 2020/8/7.\n// Copyright © 2020 Chong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#define NoxmobiMediationIronSourceAdapterVersion @"7.1.10.0.0"\n" (comment) "//" (comment...
16
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.7, "nodes": 7, "errors": 0, "source_hash": "52e4c6e2795f33a4bd2e1345167265f9dcef3a5629b522a4229b0db3aed099c7", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ation.h>\n\n...
13,751
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @import Foundation; @class NSMutableDictionary, NSObject; @interface SimPasteboardPortMap : NSObject { NSMutableDictionary *_portToProxyMap; NSObject *_concurrentQueue; } + (id)...
34.05
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n@import Foundation;\n@class NSMutableDictionary, NSObject;\n\n@interface SimPasteboardPortMap : NSObject\n{\n NSMutableDictionary *_portToProxyMap;\n NSObj...
183
20
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.05, "nodes": 114, "errors": 0, "source_hash": "5dbdf4f1e8cf988c20910784ac4f36574e73f4deb211a8a25f873a7de267e67f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
13,752
c
#include "../headers/snake.h" #include "../headers/constants.h" #include <stdlib.h> #include <stdio.h> void init_snake(struct snake *snake, int size, int x, int y) { snake->parts = malloc(sizeof(Vector) * size); for (int i = 0; i < size; i++) { //sets the body parts one after the other in a line ...
29.99
76
(translation_unit) "#include "../headers/snake.h"\n#include "../headers/constants.h"\n#include <stdlib.h>\n#include <stdio.h>\n\nvoid init_snake(struct snake *snake, int size, int x, int y)\n{\n snake->parts = malloc(sizeof(Vector) * size);\n for (int i = 0; i < size; i++)\n {\n //sets the body parts on...
839
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 29.99, "nodes": 558, "errors": 0, "source_hash": "e897a3c79b9a9c25560b4a029725f4393d3332f924bda703b2cc150da4717353", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,753
c
// // DJPictureViewer.h // DJPictureViewerExample // // Created by djl on 2016. // Copyright © 2016年 djl. djliu( https://github.com/djliu328 ) // #ifndef DJPictureViewer_h #define DJPictureViewer_h #import "DJPicture.h" #import "DJWaterfallsflowLayout.h" #endif /* DJPictureViewer_h */
23.17
12
(translation_unit) "//\n// DJPictureViewer.h\n// DJPictureViewerExample\n//\n// Created by djl on 2016.\n// Copyright © 2016年 djl. djliu( https://github.com/djliu328 )\n//\n\n#ifndef DJPictureViewer_h\n#define DJPictureViewer_h\n\n#import "DJPicture.h"\n#import "DJWaterfallsflowLayout.h"\n\n#endif /* DJPictureViewe...
22
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 13, "errors": 0, "source_hash": "13248132d96b702e05946f1475aa83898d8b02e025f7bdbc774e59c1a648a083", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef DJPi...
13,754
c
#pragma once #include "nodeManager.h" #include <sharechains/tracker.h> #include <networks/network.h> #include <coind/jsonrpc/coind.h> #include <memory> using std::shared_ptr; namespace c2pool::libnet::worker { class WorkerBridge { private: shared_ptr<NodeManager> _node_manager; ...
28.58
24
(translation_unit) "#pragma once\n#include "nodeManager.h"\n#include <sharechains/tracker.h>\n#include <networks/network.h>\n#include <coind/jsonrpc/coind.h>\n\n\n#include <memory>\nusing std::shared_ptr;\n\nnamespace c2pool::libnet::worker\n{\n class WorkerBridge\n {\n private:\n shared_ptr<Nod...
148
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.58, "nodes": 90, "errors": 0, "source_hash": "05f990ccd2fc76f6b12625b757eb147e6c97d5c70ec5d080af4c26d995fcd417", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,755
c
#include <std.h> #include "../marsh.h" inherit FINH; void create() { ::create(); set_exits(([ "southeast": RPATH "f_p001_p004", "south": RPATH "f_p000_p004", "north": RPATH "f_p000_p006", ])); }
16.25
12
(translation_unit) "#include <std.h>\n#include "../marsh.h"\n\ninherit FINH;\n\nvoid create()\n{\n ::create();\n set_exits(([\n"southeast": RPATH "f_p001_p004",\n"south": RPATH "f_p000_p004",\n"north": RPATH "f_p000_p006",\n\n ]));\n}\n\n" (preproc_include) "#include <std.h>\n" (#include) "#include" ...
85
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.25, "nodes": 36, "errors": 0, "source_hash": "8c230a0fd6093603dcd0911f9debd75b194d8d0f509f0f5b4e627263a7f9f9c7", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,756
c
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 <NAME>. All rights reserved. *...
39.24
55
(translation_unit) "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2013 <NAME>. All rights reserved. ...
425
27
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 39.24, "nodes": 283, "errors": 0, "source_hash": "a68db92b388a0a663879c282d96df8889d03fd30ab9347bf7665fc531f41c571", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,757
c
// // User.h // ios-voiceroomsdk-quickdemo // // Created by 叶孤城 on 2021/9/24. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface User : NSObject @property (nonatomic, copy) NSString *userId; //用户id @property (nonatomic, copy) NSString *token; //登录im的token @property (nonatomic, copy) NSStrin...
22.82
22
(translation_unit) "//\n// User.h\n// ios-voiceroomsdk-quickdemo\n//\n// Created by 叶孤城 on 2021/9/24.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface User : NSObject\n\n@property (nonatomic, copy) NSString *userId; //用户id\n@property (nonatomic, copy) NSString *token; //登录im的token\n...
125
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.82, "nodes": 76, "errors": 0, "source_hash": "6bf39b58bc3e1be445b53fa4bf5f3513b7ba583772879b67d1f46d210d94b85b", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda...
13,758
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication */ @interface VMUVMRegionRangeInfo : NSObject { unsigned long long address; unsigned long long size; unsigned long long stackIdentifier; unsigned int userTag; } @property unsigned long...
36.48
25
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication\n */\n\n@interface VMUVMRegionRangeInfo : NSObject {\n unsigned long long address;\n unsigned long long size;\n unsigned long long stackIdentifier;\n unsigned int userTag...
286
25
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 36.48, "nodes": 203, "errors": 0, "source_hash": "c5a93540ecb3ddf2805dd8fc8e1cdecff1acc454dd0e7655aa0289f67e6e69aa", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
13,759
c
// // DTXRNAsyncStorageSavesDataProvider.h // DetoxInstruments // // Created by <NAME> (Wix) on 01/27/20. // Copyright © 2017-2020 Wix. All rights reserved. // #import "DTXDetailDataProvider.h" @interface DTXRNAsyncStorageSavesDataProvider : DTXDetailDataProvider @end
26.3
10
(translation_unit) "//\n// DTXRNAsyncStorageSavesDataProvider.h\n// DetoxInstruments\n//\n// Created by <NAME> (Wix) on 01/27/20.\n// Copyright © 2017-2020 Wix. All rights reserved.\n//\n\n#import "DTXDetailDataProvider.h"\n\n@interface DTXRNAsyncStorageSavesDataProvider : DTXDetailDataProvider\n\n@end\n" (commen...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.3, "nodes": 9, "errors": 0, "source_hash": "1cfad182fbc69ece2517df0dfbbb18a77498da2efa6d1eb832345ea23fc69451", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"DTX...
13,760
c
#ifndef __REMOTE_USART1__H #define __REMOTE_USART1__H #include "sys.h" #define USART1_DMA_RC_BUF_LEN 20u void USART1_Remote_Init(void); #endif
25.67
6
(translation_unit) "#ifndef __REMOTE_USART1__H\n#define __REMOTE_USART1__H\n#include "sys.h"\n\n#define USART1_DMA_RC_BUF_LEN 20u \n\nvoid USART1_Remote_Init(void);\n\n#endif\n\n\n\n\n\n" (preproc_ifdef) "#ifndef __REMOTE_USART1__H\n#define __REMOTE_USART1__H\n#include "sys.h"\n\n#define USART1_DMA_R...
28
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.67, "nodes": 21, "errors": 0, "source_hash": "c2e2976285ba4a456d89334164103f36fba86076972913536e34596361824be3", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,761
c
/* * Copyright (c) 2016-present <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
30.82
92
(translation_unit) "/*\n * Copyright (c) 2016-present <NAME>.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use...
553
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 30.82, "nodes": 362, "errors": 0, "source_hash": "64716e322353b814a901b86b2094cacb349539a3c7ce2565fc3cc1b78af2cad9", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,762
c
#ifndef ECHOSERVER_H #define ECHOSERVER_H #include <QHostAddress> #include <QObject> #include <QSignalMapper> class QTcpServer; class EchoServer : public QObject { Q_OBJECT public: explicit EchoServer(QObject *parent = 0); bool listen(const QHostAddress &address, quint16 port); private slots: void ...
25.32
22
(translation_unit) "#ifndef ECHOSERVER_H\n#define ECHOSERVER_H\n\n#include <QHostAddress>\n#include <QObject>\n#include <QSignalMapper>\n\nclass QTcpServer;\n\nclass EchoServer : public QObject\n{\n Q_OBJECT\npublic:\n explicit EchoServer(QObject *parent = 0);\n\n bool listen(const QHostAddress &address, quint...
134
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.32, "nodes": 91, "errors": 0, "source_hash": "fe43f9e8c9c380b4b44e1ebfceaaa9ac19745b40582b08650772f9f739dda65e", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,763
c
// // UIButton+behavior.h // MVVMExample // // Created by 岳潇洋 on 2018/8/8. // Copyright © 2018年 岳潇洋. All rights reserved. // #import <UIKit/UIKit.h> #import "VTouchBehavior.h" @interface UIButton (behavior) @property(strong,nonatomic)VTouchBehavior * touch; @end
21.25
12
(translation_unit) "//\n// UIButton+behavior.h\n// MVVMExample\n//\n// Created by 岳潇洋 on 2018/8/8.\n// Copyright © 2018年 岳潇洋. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "VTouchBehavior.h"\n\n@interface UIButton (behavior)\n\n@property(strong,nonatomic)VTouchBehavior * touch;\n\n@end\n" (comment)...
45
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.25, "nodes": 31, "errors": 0, "source_hash": "febd1589d9b495ad63920132a1f86eebd9c7c114ab824a94c24536ff03c76c85", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
13,764
c
/* FreeRTOS Mutex Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio....
22.29
72
(translation_unit) "/* FreeRTOS Mutex Example\n\n This example code is in the Public Domain (or CC0 licensed, at your option.)\n\n Unless required by applicable law or agreed to in writing, this\n software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or impl...
384
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 22.29, "nodes": 207, "errors": 0, "source_hash": "dc87badeca93b5035de04b6737ba7a9da7fdf6a77f5409fdb7056b4f34e1e269", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,765
c
// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #ifndef PIKA_CLIENT_CONN_H...
27
42
(translation_unit) "// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.\n// This source code is licensed under the BSD-style license found in the\n// LICENSE file in the root directory of this source tree. An additional grant\n// of patent rights can be found in the PATENTS file in the same directory.\n\n#...
250
10
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 27.0, "nodes": 140, "errors": 0, "source_hash": "0c6bf0f09e75420262f9428c5876f00374466714a962d1debc75fe5722dc1466", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,766
c
#pragma once #include "JsonHandler.h" #include <optional> namespace CesiumGltf { class ObjectJsonHandler : public JsonHandler { public: virtual IJsonHandler* StartObject() override final; virtual IJsonHandler* EndObject(size_t memberCount) override final; protected: virtual IJsonHandler* StartSubObject(); vi...
29.57
35
(translation_unit) "#pragma once\n\n#include "JsonHandler.h"\n#include <optional>\n\nnamespace CesiumGltf {\nclass ObjectJsonHandler : public JsonHandler {\npublic:\n virtual IJsonHandler* StartObject() override final;\n virtual IJsonHandler* EndObject(size_t memberCount) override final;\n\nprotected:\n virtual IJso...
322
15
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.57, "nodes": 204, "errors": 0, "source_hash": "b088f1e0c5ac85e57af285dcf6eb83aa1e64b3bfcbb7b5d71d3eca1fe621c41a", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,767
c
#pragma once #include <string> #include <vector> class CSVParser { char m_delimeter; bool m_throw_on_bad_line; public: CSVParser(char delimeter = ',', bool throw_if_bad = false); std::vector<std::string> ReadRow(const std::string& line); };
19.85
13
(translation_unit) "#pragma once \n \n#include <string> \n#include <vector> \n \nclass CSVParser \n{ \n char m_delimeter; \n bool m_throw_on_bad_line; \npublic: \n CSVParser(char delimeter = ',', bool throw_if_bad = false); \n std::vector<std::string> ReadRow(const std::string& line); \n};" (preproc_call)...
83
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.85, "nodes": 53, "errors": 0, "source_hash": "0a74695bd5112599e7aac87862ff88ad474b105b16382d075d022e3bd76dd4c6", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,768
c
#include "glnincl1.h" a
11
2
(translation_unit) "#include "glnincl1.h"\na\n" (preproc_include) "#include "glnincl1.h"\n" (#include) "#include" (string_literal) ""glnincl1.h"" (") """ (string_content) "glnincl1.h" (") """ (expression_statement) "a" (identifier) "a" (;) ""
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 11.0, "nodes": 4, "errors": 0, "source_hash": "f45553965eb6851f4b7d893ab5c3e9c71383278cef3b0272d60427ad52a6a711", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
13,769
c
#include <stdio.h> int main(void) { int x; int y = 55; for (x = 1; y <= 75; y = (++x*5)+50) printf("x=%d;y=%d\n", x, y); return 0; }
15.67
9
(translation_unit) "#include <stdio.h>\nint main(void)\n{\n int x;\n int y = 55;\n for (x = 1; y <= 75; y = (++x*5)+50)\n printf("x=%d;y=%d\n", x, y);\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(vo...
76
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 15.67, "nodes": 50, "errors": 0, "source_hash": "2f50a19c6a4d45d940cbe4b8048954c448aff6877c4c13311b1cfd9f4de1d8a4", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,770
c
// // port.h // knock Honey // // Created by 刘毕涛 on 16/10/17. // Copyright © 2016年 liubitao. All rights reserved. // #ifndef port_h #define port_h //QQ APP ID 1105806530 APP KEY LpnWofBiKeDb0aqA //weixin AppID:wx1bf9134fbd335945 Appsecret:50d04908bedb1ba715cb352c814efc81 //weibo App Key:1110923628 A...
47.22
172
(translation_unit) "//\n// port.h\n// knock Honey\n//\n// Created by 刘毕涛 on 16/10/17.\n// Copyright © 2016年 liubitao. All rights reserved.\n//\n\n#ifndef port_h\n#define port_h\n\n//QQ APP ID 1105806530 APP KEY LpnWofBiKeDb0aqA\n//weixin AppID:wx1bf9134fbd335945 Appsecret:50d04908bedb1ba715cb352c814efc81\n...
425
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 47.22, "nodes": 339, "errors": 0, "source_hash": "d9c3ad5391b3c75215af99bdabc2c2e9febd05093d44cf6315b49c6ed671527c", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ort_h\...
13,771
c
#include "../domain.h" inherit "/std/object"; void setup(void) { set_id("piano"); set_short("A rough looking piano"); set_long("A pretty beat up bar piano. This thing looks like " + "it has seen better days. It seems to beckon you to play it."); }
32.12
8
(translation_unit) "#include "../domain.h"\n\ninherit "/std/object";\n\nvoid setup(void) {\n set_id("piano");\n set_short("A rough looking piano");\n set_long("A pretty beat up bar piano. This thing looks like " +\n "it has seen better days. It seems to beckon you to play it.");\n}\n\n" (preproc_include)...
66
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 32.12, "nodes": 28, "errors": 0, "source_hash": "fb12b1feed97147ce38db0b413fa45f2422ee0c37a9ef52e3535b44a70290675", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,772
c
/* libmsgexchange - Client / Server Message Exchange Library Copyright (C) 2012 BMS Informationstechnologie GmbH */ /** \file msgsession.h Header file for the MsgSession class. This include file defines the MsgSession class */ #ifndef MSGSESSION_H #define MSGSESSION_H #include <time.h> #include <atomic> #...
25.72
124
(translation_unit) "/*\n libmsgexchange - Client / Server Message Exchange Library\n Copyright (C) 2012 BMS Informationstechnologie GmbH\n*/\n\n\n/** \file msgsession.h\n Header file for the MsgSession class.\n This include file defines the MsgSession class\n*/\n\n#ifndef MSGSESSION_H\n#define MSGSESSION_H\n\n#in...
306
9
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 25.72, "nodes": 188, "errors": 0, "source_hash": "d13c6a3e705379f42fd9424d30a7e3815fd714eccb51db6ae8d3027803de2fe9", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,773
c
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedclass; #pragma link C++ nestedtypedef; #pragma link C++ namespace VDC; #pragma link C++ class THaHRS+; #pragma link C++ class THaVDC+; #pragma link C++ class THaVDCChamber+; #pragma link...
34.4
30
(translation_unit) "#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ nestedclass;\n#pragma link C++ nestedtypedef;\n#pragma link C++ namespace VDC;\n\n#pragma link C++ class THaHRS+;\n#pragma link C++ class THaVDC+;\n#pragma link C++ cl...
89
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.4, "nodes": 88, "errors": 0, "source_hash": "6155880be82614bcfb396550da2b29a62959513c90ea86702b87e55d61f8f9f8", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
13,774
c
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_COUNTDOWNEVENT_H #define __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_COUNTDOWNEVENT_H #include <mscorlib/System/mscorlib_System_Object.h> #include <mscorlib/System/mscorlib_System_IDisposable.h> namespace mscorlib { namespace System { namespace Threading { class W...
33.13
110
(translation_unit) "#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_COUNTDOWNEVENT_H\n#define __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_COUNTDOWNEVENT_H\n\n#include <mscorlib/System/mscorlib_System_Object.h>\n#include <mscorlib/System/mscorlib_System_IDisposable.h>\n\nnamespace mscorlib\n{\n namespace System\n {\n names...
1,043
83
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 33.13, "nodes": 529, "errors": 0, "source_hash": "21a919f752cf02b4cb15f77539464a6001455a97a689f7540548bd82bc28d7c3", "categorized_nodes": 373}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,775
c
#include <stdio.h> #define MAX_LAENGE 5 /** * @brief Schreiben Sie ein Programm, * das eine nur aus Ziffern bestehende * Zeichenkette einliest und aus dem * Eingabestring eine int-Zahlberechnet * * @return int */ int main () { int zaehler = 0; char eingabePuffer[MAX_LAENGE]; printf("Bitt...
22.75
32
(translation_unit) "#include <stdio.h>\n\n#define MAX_LAENGE 5\n\n/**\n * @brief Schreiben Sie ein Programm, \n * das eine nur aus Ziffern bestehende\n * Zeichenkette einliest und aus dem \n * Eingabestring eine int-Zahlberechnet\n * \n * @return int \n */\nint main () {\n\n int zaehler = 0;\n \n char eingabeP...
76
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.75, "nodes": 41, "errors": 0, "source_hash": "ed5d99fbbaca60da713d67e0f3bdfe1147fc68eedbb65e54eab68b87a06b354c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,776
c
#define _58 {\ 0x2115608c, \ 0xbbc5d0ba, \ 0xd2bf73c8, \ 0x7332e5db, \ 0x26d7f54c, \ 0xef7416d, \ 0x98c27713, \ 0x5ab9814e, \ 0x5b7c230f, \ 0x41c7147f, \ 0xd9f73b45, \ 0x55c18eb1, \ 0xf0de60c1, \ 0x14d6e58, \ 0x96b35b6d, \ 0x2860d60, \ 0x636faa79, \ 0x911c87d4, \ 0x66f4629b, \ 0xe7532c0e, \ 0x125f44b8, \ 0xeacbf057, \ ...
24.83
145
(translation_unit) "#define _58 {\\n0x2115608c, \\n0xbbc5d0ba, \\n0xd2bf73c8, \\n0x7332e5db, \\n0x26d7f54c, \\n0xef7416d, \\n0x98c27713, \\n0x5ab9814e, \\n0x5b7c230f, \\n0x41c7147f, \\n0xd9f73b45, \\n0x55c18eb1, \\n0xf0de60c1, \\n0x14d6e58, \\n0x96b35b6d, \\n0x2860d60, \\n0x636faa79, \\n0x911c87d4, \\n0x66f4629b, \\n0x...
5
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 24.83, "nodes": 4, "errors": 0, "source_hash": "5484ce59f74d214de2b022d317322c233349305455383c97b44ef04467fc4d8a", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _58...
13,777
c
/* * COPYRIGHT 1987 * DIGITAL EQUIPMENT CORPORATION * <NAME> * ALL RIGHTS RESERVED. * * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION. * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY ...
33.56
128
(translation_unit) "/*\n * COPYRIGHT 1987\n * DIGITAL EQUIPMENT CORPORATION\n * <NAME>\n * ALL RIGHTS RESERVED.\n *\n * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND\n * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.\n * DIGITAL MAKES NO REPRESENTA...
496
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 33.56, "nodes": 369, "errors": 0, "source_hash": "f62a0ca089a8d94d167bf29b7d478d9fe9f8b51e93ddda7b153da6bd5d09d451", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,778
c
// Copyright 2020 Google LLC // // 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 ...
27.42
119
(translation_unit) "// Copyright 2020 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by app...
826
29
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 27.42, "nodes": 495, "errors": 0, "source_hash": "1f4b2a6511b0799052ac2e38c1c4f5f4bf71100dd7482601fb95a72973f3c4f7", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,779
c
/* * Copyright (c) 2005 <NAME> http://continuousphysics.com/Bullet/ * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies. * Erwin Coumans makes no representation...
37.14
101
(translation_unit) "/*\n * Copyright (c) 2005 <NAME> http://continuousphysics.com/Bullet/\n *\n * Permission to use, copy, modify, distribute and sell this software\n * and its documentation for any purpose is hereby granted without fee,\n * provided that the above copyright notice appear in all copies.\n * Erwin Couma...
463
30
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 37.14, "nodes": 313, "errors": 0, "source_hash": "535c5332034755607ccfeaa8a3506da78040367ef9372591abfa9b49cede6021", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,780
c
/** * \file user_config.h * \author <NAME> (<EMAIL>) * \brief App config options * \version 0.1 * \date 2021-08-21 */ /* General */ #define DEBUG_PRINT_ENABLE /* WiFi */ #define CFG_WIFI_SSID "mrrb_dev" #define CFG_WIFI_PASSWORD "<PASSWORD>-" #define CFG_WI...
26
14
(translation_unit) "/**\n * \file user_config.h\n * \author <NAME> (<EMAIL>)\n * \brief App config options\n * \version 0.1\n * \date 2021-08-21\n */\n\n/* General */\n#define DEBUG_PRINT_ENABLE\n\n/* WiFi */\n#define CFG_WIFI_SSID "mrrb_dev"\n#define CFG_WIFI_PASSW...
23
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.0, "nodes": 19, "errors": 0, "source_hash": "c69b9d4bf3d77d9ca4747873448d988bc63c7deecb477740e0ff8cf36713abf6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define DEBU...
13,781
c
// // DQUserTableViewCell.h // DrawQuest // // Created by <NAME> on 10/31/12. // Copyright (c) 2012 Canvas. All rights reserved. // #import <UIKit/UIKit.h> @class DQImageView; @interface DQUserTableViewCell : UITableViewCell @property (strong, nonatomic) DQImageView *avatarView; @property (strong, nonatomic) UI...
25.38
13
(translation_unit) "//\n// DQUserTableViewCell.h\n// DrawQuest\n//\n// Created by <NAME> on 10/31/12.\n// Copyright (c) 2012 Canvas. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class DQImageView;\n\n@interface DQUserTableViewCell : UITableViewCell\n\n@property (strong, nonatomic) DQImageView *avatarView...
61
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.38, "nodes": 41, "errors": 0, "source_hash": "ab32f42eb894b6ab82b7d07535c5f58fa63a21c0d64720e46ed2769df6171931", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,782
c
// Copyright (C) 2003, by Lonely. All rights reserved. // This software can not be used, copied, or modified // in any form without the written permission from authors. // lingshe 西域灵蛇 #include <ansi.h> inherit SNAKE; void create() { set_name("灵蛇", ({"ling she", "she", "snake"})); set("race", "野兽"); set("...
25.65
72
(translation_unit) "// Copyright (C) 2003, by Lonely. All rights reserved.\n// This software can not be used, copied, or modified\n// in any form without the written permission from authors.\n// lingshe 西域灵蛇\n\n#include <ansi.h>\ninherit SNAKE;\n\nvoid create()\n{\n set_name("灵蛇", ({"ling she", "she", "snake"}));\n ...
739
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 25.65, "nodes": 332, "errors": 0, "source_hash": "558e6ccee542142b19987feee7949de7cdfdf00c0e16f6dc8a0c2fc4c83bf114", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " <an...
13,783
c
// collection of functions to hook: // 1) Game Event: createsmoke, g3sg1, mac10, etc... // 2) Console Command: cl_seethru, gamma, impulse, etc... // 3) User Message: BanPick, IGFactor, MonShootSnd, etc... #pragma once #include "globals.h" namespace hook { pfnEventHook Event(const char* name, pfnEv...
31.86
14
(translation_unit) "// collection of functions to hook: \n// 1) Game Event: createsmoke, g3sg1, mac10, etc... \n// 2) Console Command: cl_seethru, gamma, impulse, etc... \n// 3) User Message: BanPick, IGFactor, MonShootSnd, etc... \n \n#pragma once \n \n#include "globals.h" \n \nnamespace hook { \n pfnEventHook...
77
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.86, "nodes": 48, "errors": 0, "source_hash": "2eda8a7655e11f6fa5257fba9d284b86be31112f48e3e2ccdbeac1124b9f2418", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,784
c
#pragma once #include "../intermediate_type.h" #include "geometry_msgs/Point.h" #include "../structure/geometry_msgs_point.h" class GoemetryMsgsPoint: public IntermediateType<geometry_msgs::Point> { public: GoemetryMsgsPoint(const std::string name = GEOMETRY_MSGS_POINT_NAME) :IntermediateType(name, G...
30.42
31
(translation_unit) "#pragma once\n#include "../intermediate_type.h"\n#include "geometry_msgs/Point.h"\n#include "../structure/geometry_msgs_point.h"\n\n\nclass GoemetryMsgsPoint: public IntermediateType<geometry_msgs::Point>\n{\npublic:\n \n GoemetryMsgsPoint(const std::string name = GEOMETRY_MSGS_POINT_NAME)\n ...
251
7
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.42, "nodes": 154, "errors": 0, "source_hash": "ea99e740b2e2d03630cbce8f10f9b943ec559fae3abbd8359a39460f5115f88c", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,785
c
/* * Copyright(c) 2015, 2016 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of versi...
32.79
206
(translation_unit) "/*\n * Copyright(c) 2015, 2016 Intel Corporation.\n *\n * This file is provided under a dual BSD/GPLv2 license. When using or\n * redistributing this file, you may do so under either license.\n *\n * GPL LICENSE SUMMARY\n *\n * This program is free software; you can redistribute it and/or modify\n ...
1,536
0
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 32.79, "nodes": 947, "errors": 0, "source_hash": "b7fcfff3227b9b7743522e361b4df0f36e04d327e798a5399c33658b5f646d8e", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
13,786
c
// // _+Objects.h // _.m // // Created by <NAME> on 7/18/12. // Copyright (c) 2012 <NAME>. All rights reserved. // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restri...
41.44
57
(translation_unit) "//\n// _+Objects.h\n// _.m\n//\n// Created by <NAME> on 7/18/12.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person\n// obtaining a copy of this software and associated documentation\n// files (the "Software"), to deal in th...
632
70
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 41.44, "nodes": 372, "errors": 0, "source_hash": "e98b4e30d5d12a512dd7661f3c6f1134f5de5dbf136e7b247a4a90114bc6e53d", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
13,787
c
#pragma once #include <assert.h> #include <stddef.h> #include <stdint.h> #include <stdalign.h> #include "util.h" #define DEFAULT_ALIGNMENT alignof(max_align_t) static inline uintptr_t nearest_aligned_addr(uintptr_t addr, size_t align) { // Check that alignment is a value of power of two. assert((align & -align) =...
31.27
33
(translation_unit) "#pragma once\n\n#include <assert.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <stdalign.h>\n\n#include "util.h"\n\n#define DEFAULT_ALIGNMENT alignof(max_align_t)\n\nstatic inline uintptr_t nearest_aligned_addr(uintptr_t addr, size_t align) {\n // Check that alignment is a value of power of...
292
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.27, "nodes": 218, "errors": 0, "source_hash": "097857f1d294793cac193b8b15be70cd29d86e915b8a0b4d6223282a5b05b1b5", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,788
c
// ---------------------------------------------------------- /*! \headerfile \title \brief Template file files/cppheader/file.h \list \li @notice Template file classes/file.h \li @copyright Arboreus (http://arboreus.systems) \li @author <NAME> (http://alexandr.kirilov.me) \li @created 26/07/2021 at 22:50:19 ...
28.8
184
(translation_unit) "// ----------------------------------------------------------\n/*!\n \headerfile\n \title\n \brief Template file files/cppheader/file.h\n\n \list\n \li @notice Template file classes/file.h\n \li @copyright Arboreus (http://arboreus.systems)\n \li @author <NAME> (http://alexandr.kirilov.me)\n \li @cr...
1,136
7
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 28.8, "nodes": 690, "errors": 0, "source_hash": "a7d43dc7321733fe688ac9730ef28176fe0db637113cd5633556a4c625b4eb22", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,789
c
#include <stdio.h> #include <stdlib.h> #if 0 /* $begin 250-switcher-prob-c */ void switcher(long a, long b, long c, long *dest) { long val; switch(a) { case ___: /* Case A */ c = _____; /* Fall through */ case ___: /* Case B */ val = _____; break; case ___: /* Case C */ ca...
17.75
63
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#if 0\n/* $begin 250-switcher-prob-c */\nvoid switcher(long a, long b, long c, long *dest)\n{\n long val;\n switch(a) {\n case ___: /* Case A */\n c = _____;\n /* Fall through */\n case ___: /* Case B */\n val = _____;\n break;\n ...
430
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 17.75, "nodes": 283, "errors": 0, "source_hash": "d068fae43a54f1e58c571479bb73c6cced5a2454699cec6d3e5658b76fbe2e97", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,790
c
#include<stdio.h> #include<string.h> int check(long long n){ char s[30]; sprintf(s,"%lld",n); int len = strlen(s); if(len==1) return 1; int i; for(i=1;i<len;i++){ if(s[i-1]>s[i]) return 0; } return 1; } long long process(long long n){ char s[30]; sprintf(s,"%lld"...
17.66
47
(translation_unit) "#include<stdio.h>\n#include<string.h>\n\n\nint check(long long n){\n\n char s[30];\n\n sprintf(s,"%lld",n);\n\n int len = strlen(s);\n\n if(len==1) return 1;\n int i;\n for(i=1;i<len;i++){\n if(s[i-1]>s[i]) return 0;\n }\n\n return 1;\n}\n\nlong long process(long long ...
414
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 17.66, "nodes": 241, "errors": 0, "source_hash": "4b80a7018aa63f6e24ec0b6b479a8d220cdf3223e1af53df9d608c66d8299dbc", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,791
c
#include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <stdio.h> #include <stdlib.h> #define MAXSIZE 128 struct msgbuf { long mtype; char mtext[MAXSIZE]; }; main() { int msqid; key_t key; struct msgbuf rcvbuffer; key = 1234; if ((msqid = msgget(key, 0666)) <...
19.04
27
(translation_unit) "#include <sys/types.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#define MAXSIZE 128\n\nstruct msgbuf\n{\n long mtype;\n char mtext[MAXSIZE];\n};\n\n\nmain()\n{\n int msqid;\n key_t key;\n struct msgbuf rcvbuffer;\n\n key = 1234...
186
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 19.04, "nodes": 105, "errors": 0, "source_hash": "98b9353d9326a3e1920568417d211be37f1df6e725de5aa02b13237f011ac9b0", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,792
c
/* * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * <NAME> <<EMAIL>> * * (C) Copyright 2002 * <NAME>, DENX Software Engineering, <<EMAIL>> * * Copyright (C) 2011 Andes Technology Corporation * <NAME>, Andes Technology Corporation <<EMAIL>> * <NAME>, Andes Technology Corporation <<EMAI...
23.64
168
(translation_unit) "/*\n * (C) Copyright 2002\n * Sysgo Real-Time Solutions, GmbH <www.elinos.com>\n * <NAME> <<EMAIL>>\n *\n * (C) Copyright 2002\n * <NAME>, DENX Software Engineering, <<EMAIL>>\n *\n * Copyright (C) 2011 Andes Technology Corporation\n * <NAME>, Andes Technology Corporation <<EMAIL>>\n * <NAME>, Andes...
777
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 23.64, "nodes": 429, "errors": 0, "source_hash": "1956d520e6f07005d936cae68fed8ee51f053b23178ce1608c01827aaf687de2", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,793
c
/* Vector API for GNU compiler. Copyright (C) 2004, 2005 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> This file is part of GCC. GCC 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 ...
29.27
136
(translation_unit) "/* Vector API for GNU compiler.\n Copyright (C) 2004, 2005 Free Software Foundation, Inc.\n Contributed by <NAME> <<EMAIL>>\n\nThis file is part of GCC.\n\nGCC is free software; you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free\n...
784
5
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 29.27, "nodes": 513, "errors": 0, "source_hash": "959ba213ece8852c81386176d4065c57f8636472ddb267c8cb01340577523328", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,794
c
#ifndef _RKBAR_SCAN_API_H_ #define _RKBAR_SCAN_API_H_ #include <stdint.h> #include <stdio.h> #include <string.h> typedef struct image_s { unsigned width, height; /* image size */ void *data; /* image sample data */ unsigned long datalen; /* allocated/mapped size of data */ unsigned crop...
26
27
(translation_unit) "#ifndef _RKBAR_SCAN_API_H_ \n#define _RKBAR_SCAN_API_H_ \n#include <stdint.h> \n#include <stdio.h> \n#include <string.h> \ntypedef struct image_s { \n unsigned width, height; /* image size */ \n void *data; /* image sample data */ \n unsigned long datalen; /* allocated/mapped size...
166
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.0, "nodes": 124, "errors": 0, "source_hash": "8679ff41a2ebc60a25e1dc3cd87370e3d405eaf1b4b8360e53a61fb9fa2d023d", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,795
c
#ifndef CONFIG_H #define CONFIG_H #define CONFIG_INAC_TIME 1 #define CONFIG_EXEC_TIME 2 #define CONFIG_EXEC 3 #define CONFIG_LIST 4 #define CONFIG_KILL 5 #define CONFIG_HIST 6 #define CONFIG_HELP 7 typedef struct _CONFIG_ { int cmd; int option; } Config; Config create_conf(int, int); void send_conf(int, Config);...
19.19
16
(translation_unit) "#ifndef CONFIG_H\n#define CONFIG_H\n\n#define CONFIG_INAC_TIME 1\n#define CONFIG_EXEC_TIME 2\n#define CONFIG_EXEC 3\n#define CONFIG_LIST 4\n#define CONFIG_KILL 5\n#define CONFIG_HIST 6\n#define CONFIG_HELP 7\n\ntypedef struct _CONFIG_ {\n\n int cmd;\n int option;\n\n} Config;\n\nConfig create_conf(i...
80
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.19, "nodes": 65, "errors": 0, "source_hash": "2ee8a3c9417139c2cbb644e551825333776dfd2c03a713eda0e375722f64cafc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,796
c
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // //---------------------------------------------------------- // SuperPMI-Shim-Collector.h - Shim that collects and yields .mc (method context) files. //----------...
38.15
13
(translation_unit) "//\n// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n//\n\n//----------------------------------------------------------\n// SuperPMI-Shim-Collector.h - Shim that collects and yields .mc (method co...
38
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.15, "nodes": 24, "errors": 0, "source_hash": "380ef95036b8d6dd467faa37a955589f1de88eaaa4b16fe856f3c649436e8481", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,797
c
// // QHUIWidgetsController.h // QHCoreLibDemo // // Created by changtang on 2017/9/13. // Copyright © 2017年 TCTONY. All rights reserved. // #import <UIKit/UIKit.h> @interface QHUIWidgetsController : UIViewController @end
19.64
11
(translation_unit) "//\n// QHUIWidgetsController.h\n// QHCoreLibDemo\n//\n// Created by changtang on 2017/9/13.\n// Copyright © 2017年 TCTONY. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface QHUIWidgetsController : UIViewController\n\n\n@end\n" (comment) "//" (comment) "// QHUIWidgetsControlle...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.64, "nodes": 10, "errors": 0, "source_hash": "0d23da5ca33fd6efb457fb8e76e6e5bac9db6aa01c9fdd8187df88b8146808c6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
13,798
c
#ifndef LARGE_CONSOLE_READ_H #define LARGE_CONSOLE_READ_H #include <windows.h> #include <stdlib.h> #include <vector> #include "SmallRect.h" #include "../shared/DebugClient.h" #include "../shared/WinptyAssert.h" class Win32Console; class LargeConsoleReadBuffer { public: LargeConsoleReadBuffer();...
26.23
47
(translation_unit) "#ifndef LARGE_CONSOLE_READ_H \n#define LARGE_CONSOLE_READ_H \n \n#include <windows.h> \n#include <stdlib.h> \n \n#include <vector> \n \n#include "SmallRect.h" \n#include "../shared/DebugClient.h" \n#include "../shared/WinptyAssert.h" \n \nclass Win32Console; \n \nclass LargeConsoleReadBuffer { \npub...
303
6
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.23, "nodes": 172, "errors": 0, "source_hash": "3ce334eb2e2d89707b25a5e90ea452d2c94b50ee04cdab5a989d726200b24dbf", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,799