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
// // EmValidaor.h // EmApi // // Created by pengyong on 16/9/16. // Copyright © 2016年 Ivo. All rights reserved. // // validation 格式说明 /* 验证数据类型 class [NSString class] [NSDictionary class] ... 验证数字 @100 是否为100 验证字符串 @“” 是否为空字符串 验证字典数据 验证 key @[@"key1",@"key2"]...
13.12
143
(translation_unit) "//\n// EmValidaor.h\n// EmApi\n//\n// Created by pengyong on 16/9/16.\n// Copyright © 2016年 Ivo. All rights reserved.\n//\n// validation 格式说明\n/*\n \n 验证数据类型\n \n class\n \n [NSString class]\n \n [NSDictionary class]\n \n ...\n \n 验证数字\n \n @100 是否为100\n \n 验证字符串\n \n @“” 是否为空字符串\...
188
20
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 13.12, "nodes": 108, "errors": 0, "source_hash": "efce9e6483e307d4f69ae78069b8afc2d945055af504dde40906581e99dba1ce", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\n @par...
2,000
c
#pragma once #include "APIWrappers/Resources/Buffers/Buffer.h" namespace Boolka { class IndexBuffer; class IndexBufferView { public: IndexBufferView(); ~IndexBufferView(); bool Initialize(Buffer& indexBuffer, UINT size, DXGI_FORMAT format, UINT64 buffe...
25.94
18
(translation_unit) "#pragma once\n#include "APIWrappers/Resources/Buffers/Buffer.h"\n\nnamespace Boolka\n{\n\n class IndexBuffer;\n\n class IndexBufferView\n {\n public:\n IndexBufferView();\n ~IndexBufferView();\n\n bool Initialize(Buffer& indexBuffer, UINT size, DXGI_FORMAT format,\n ...
105
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.94, "nodes": 58, "errors": 0, "source_hash": "0e86197d6ba8b86bd62d9be374579a0887dfc9aa469285ffecc8eacb89724ceb", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,001
c
#ifndef LASERSCANNER2D_H #define LASERSCANNER2D_H #include "Raytracer2D.h" #include "PlanarObservation.h" #include "ExplorationPlanner/grid/PlanarGridOccupancyMap.h" #include "ExplorationPlanner/grid/PlanarGridBinaryMap.h" #include "ExplorationPlanner/grid/PlanarGridIndex.h" #include "ExplorationPlanner/kinematics/Pla...
35
63
(translation_unit) "#ifndef LASERSCANNER2D_H\n#define LASERSCANNER2D_H\n\n#include "Raytracer2D.h"\n#include "PlanarObservation.h"\n#include "ExplorationPlanner/grid/PlanarGridOccupancyMap.h"\n#include "ExplorationPlanner/grid/PlanarGridBinaryMap.h"\n#include "ExplorationPlanner/grid/PlanarGridIndex.h"\n#include "Explo...
296
19
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.0, "nodes": 160, "errors": 0, "source_hash": "402e9a28dc2e5dabef647775eb6c885485172f6712454ebc266117d64e9f699f", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,002
c
#import <Foundation/Foundation.h> #import "MGLTypes.h" #import "MGLGeometry.h" #import "MGLMapCamera.h" NS_ASSUME_NONNULL_BEGIN MGL_EXPORT /** The options to use when creating images with the `MGLMapsnapshotter`. */ @interface MGLMapSnapshotOptions : NSObject /** Creates a set of options with the minimum required...
29.85
84
(translation_unit) "#import <Foundation/Foundation.h>\n#import "MGLTypes.h"\n#import "MGLGeometry.h"\n#import "MGLMapCamera.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\nMGL_EXPORT\n/**\n The options to use when creating images with the `MGLMapsnapshotter`.\n */\n@interface MGLMapSnapshotOptions : NSObject\n\n/**\n Creates a set of...
302
38
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 29.85, "nodes": 203, "errors": 0, "source_hash": "09c27bc47046dc6d80651362fe343156d5b3742f30c727f01ca7bd05875842b9", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,003
c
/*========================================================================= Program: Visualization Toolkit Module: vtkPNGReader.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT A...
30.77
100
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkPNGReader.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This soft...
407
12
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 30.77, "nodes": 241, "errors": 0, "source_hash": "a882d95982187c2ff6d94c5ad5c336d63fabdd568a04f146102721bffda70799", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,004
c
/* This program tests initialization of the restart count (read EEPROM, increment, write EEPROM) and continuous updating of the MCU uptime. */ #include <uptime/uptime.h> uint8_t counts[6] = {0}; void print_counts(void) { print("uptime: %lu\n", uptime_s); print("counts:"); for (uint8_t i = 0; i < 6; i++) ...
21.6
63
(translation_unit) "/*\nThis program tests initialization of the restart count (read EEPROM, increment,\nwrite EEPROM) and continuous updating of the MCU uptime.\n*/\n\n#include <uptime/uptime.h>\n\nuint8_t counts[6] = {0};\n\nvoid print_counts(void) {\n print("uptime: %lu\n", uptime_s);\n print("counts:");\n ...
521
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 21.6, "nodes": 263, "errors": 0, "source_hash": "9974fa6404b6c2b724a906acee812748ccd8555f570bb9c1bab769779fdc3e2e", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,005
c
// Fig. 17.8: Time.h // Time class containing a constructor with default arguments. // Member functions defined in Time.cpp. // prevent multiple inclusions of header #ifndef TIME_H #define TIME_H //Time abstract data type definition class Time { public: Time( int = 0, int = 0, int = 0 ); // default constructor ...
35.17
29
(translation_unit) "// Fig. 17.8: Time.h\n// Time class containing a constructor with default arguments.\n// Member functions defined in Time.cpp.\n\n// prevent multiple inclusions of header\n#ifndef TIME_H\n#define TIME_H\n\n//Time abstract data type definition\nclass Time\n{\npublic:\n Time( int = 0, int = 0, int ...
171
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.17, "nodes": 97, "errors": 0, "source_hash": "f263050e759ea2456e6848091d49cc4676cccd0712cff1d44fdb45081940547b", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,006
c
#ifndef DIRECT_SPARSE_BTENSOR_TEST_H #define DIRECT_SPARSE_BTENSOR_TEST_H #include <libtest/unit_test.h> namespace libtensor { class direct_sparse_btensor_test : public libtest::unit_test { public: virtual void perform() throw(libtest::test_exception); private: void test_get_batch_contract2() throw(libtest:...
43.59
17
(translation_unit) "#ifndef DIRECT_SPARSE_BTENSOR_TEST_H\n#define DIRECT_SPARSE_BTENSOR_TEST_H\n\n#include <libtest/unit_test.h>\n\nnamespace libtensor {\n\nclass direct_sparse_btensor_test : public libtest::unit_test { \npublic:\n virtual void perform() throw(libtest::test_exception);\nprivate:\n void test_get_b...
171
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 43.59, "nodes": 92, "errors": 0, "source_hash": "c9231e279ac49c77d2836c42b0159c084430ca0c3aef8f7116d69871d02cc27f", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,007
c
#include <stdio.h> #include <string.h> void bubbleSort1(char arr[], int len) { char a, b, temp; for (int i = 0; i < len; i++) { for (int j = i + 1; j < len; j++) { a = arr[i]; b = arr[j]; if (a > b) { temp = arr[i]; ...
20.86
28
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\nvoid bubbleSort1(char arr[], int len)\n{\n char a, b, temp;\n for (int i = 0; i < len; i++)\n {\n for (int j = i + 1; j < len; j++)\n {\n a = arr[i];\n b = arr[j];\n\n if (a > b)\n {\n ...
221
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.86, "nodes": 130, "errors": 0, "source_hash": "bbeb6ada8ad0bc88e2140015a734645ef9425d693767db13e8c043d2eeacb080", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,008
c
/* * Find the number of combinations of British coins that combine to make N pennies */ #include <stdio.h> #include <stdlib.h> #include "euler_utils.h" #include "utils.h" int main (int argc, char ** argv) { if (argc != 2) { fprintf (stderr, "usage: %s <N>\n", argv[0]); return 1; } int N = atoi (argv[1]); ...
25.63
19
(translation_unit) "/*\n * Find the number of combinations of British coins that combine to make N pennies\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "euler_utils.h"\n#include "utils.h"\n\nint main (int argc, char ** argv) {\n if (argc != 2) {\n fprintf (stderr, "usage: %s <N>\n", argv[0]);\n return 1;...
168
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.63, "nodes": 97, "errors": 0, "source_hash": "ee9f5f32faf1d3980664d048bad5365524717af3495b3171c41f0ac49a120df9", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,009
c
#include "CharList.h" #include <Window.h> #include <Control.h> #include <String.h> #include <Font.h> #include <Message.h> #include <string.h> #include <UTF8.h> //#define FFont_Support #ifdef FFont_Support #include "FFont.h" #endif enum { numcols = 16, numrows = 16, }; // // Charset class // class CharSetView : p...
25.28
64
(translation_unit) "#include "CharList.h"\n\n#include <Window.h>\n#include <Control.h>\n#include <String.h>\n#include <Font.h>\n#include <Message.h>\n#include <string.h>\n#include <UTF8.h>\n\n//#define FFont_Support\n\n#ifdef FFont_Support\n#include "FFont.h"\n#endif\n\nenum\n{\n numcols = 16,\n numrows = 16,\n};\n\n//...
455
10
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 25.28, "nodes": 314, "errors": 0, "source_hash": "9a72019d7af81d47f86e9850130ba52f42ad028bca3271d98dfdcf30af6da33a", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,010
c
/******************************************************************************************************** * @file utility.c * * @brief This is the source file for BLE SDK * * @author BLE GROUP * @date 2020.06 * * @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") * * Li...
21.1
134
(translation_unit) "/********************************************************************************************************\n * @file utility.c\n *\n * @brief This is the source file for BLE SDK\n *\n * @author BLE GROUP\n * @date 2020.06\n *\n * @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ...
1,076
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 21.1, "nodes": 674, "errors": 0, "source_hash": "a8793be41d182ddebbac70fac48bfc6b80ece176c913f81c1c70d6cdf8690350", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,011
c
#ifndef __CPP_PGM_IMAGE__ #define __CPP_PGM_IMAGE__ #include <vector> class PGMImage { public: unsigned char* data; int width, height, depth; PGMImage( int width, int height, int depth ); ~PGMImage(); void createBorder( int bwidth, unsigned char color = 0 ); }; void T...
26.81
16
(translation_unit) "#ifndef __CPP_PGM_IMAGE__\n#define __CPP_PGM_IMAGE__\n\n\n#include <vector>\n\n\n\nclass PGMImage {\n public:\n unsigned char* data;\n int width, height, depth;\n PGMImage( int width, int height, int depth );\n ~PGMImage();\n void createBorder( int bwidth, unsig...
132
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.81, "nodes": 89, "errors": 0, "source_hash": "5ee102f843c6ca72f297c0f73681aa81939fb99098eb81674d65626ddbc59845", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,012
c
// // AddContactViewController.h // ProjectToBegin // // Created by <NAME> on 2/19/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //#import "MAAddContactTextField.h" #import "MAContactManager.h" @interface MAAddContactViewController : UIViewController<UITextFieldDelegate> //add i...
35.89
27
(translation_unit) "//\n// AddContactViewController.h\n// ProjectToBegin\n//\n// Created by <NAME> on 2/19/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n//#import "MAAddContactTextField.h"\n#import "MAContactManager.h"\n\n@interface MAAddContactViewController : UIViewControll...
177
25
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.89, "nodes": 125, "errors": 0, "source_hash": "c69d09c1f7d6e90b89a533a86f67181e4219d1e3786055a5816789211b6aac92", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
2,013
c
// // GoodToGo // // Created by <NAME> // Copyright © 2020 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for API. FOUNDATION_EXPORT double BaseRepositoryWebAPIVersionNumber; //! Project version string for API. FOUNDATION_EXPORT const unsigned char BaseRepositoryWebAP...
37.67
12
(translation_unit) "//\n// GoodToGo\n//\n// Created by <NAME>\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for API.\nFOUNDATION_EXPORT double BaseRepositoryWebAPIVersionNumber;\n\n//! Project version string for API.\nFOUNDATION_EXPORT const ...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 37.67, "nodes": 15, "errors": 0, "source_hash": "978a8f3b690589535df85cd30163be7673efd595cce2fc440adf3c1dc69cd3bd", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
2,014
c
#pragma once #include "ioreg.h" #include "stm32f0xx.h" #include "clock.h" #include "enum.h" namespace Mcucpp { IO_STRUCT_WRAPPER( PWR, PowerRegs, PWR_TypeDef ); IO_STRUCT_WRAPPER( SYSCFG, SysConfRegs, SYSCFG_TypeDef ); class Power { public: enum ePldThreshold { Lvl0 = P...
18.62
37
(translation_unit) "#pragma once \n \n#include "ioreg.h" \n#include "stm32f0xx.h" \n#include "clock.h" \n \n#include "enum.h" \n \nnamespace Mcucpp \n{ \n IO_STRUCT_WRAPPER( PWR, PowerRegs, PWR_TypeDef ); \n IO_STRUCT_WRAPPER( SYSCFG, SysConfRegs, SYSCFG_TypeDef ); \n \n class Power \n { \n \n public: \n enum...
168
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.62, "nodes": 97, "errors": 0, "source_hash": "b60f5a6425416713a207c92a3057aff0effa97c1affbe9c9d3d23bc390c17492", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,015
c
#include <stdio.h> void main() { float pr,ps; printf("Enter the prices of rice and sugar: "); scanf("%f%f",&pr,&ps); printf("Item Price\n"); printf("Rice Rs.%0.2f\n",pr); printf("Sugar Rs.%0.2f\n",ps); }
21.1
10
(translation_unit) "#include <stdio.h>\n\nvoid main()\n{\n float pr,ps;\n printf("Enter the prices of rice and sugar: ");\n scanf("%f%f",&pr,&ps);\n printf("Item Price\n");\n printf("Rice Rs.%0.2f\n",pr);\n printf("Sugar Rs.%0.2f\n",ps);\n}\n " (preproc_include) "#include <stdio.h>\n" (#include) "#incl...
90
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 41, "errors": 0, "source_hash": "d9bd98a1f9d8c8790a306980b2a926902233448405b966228567b8ae072a00b9", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,016
c
/*************************************************************************** qgsauthcertificatemanager.h --------------------- begin : September, 2015 copyright : (C) 2015 by Boundless Spatial, Inc. USA author : <NAME> email : lshaffer at bo...
36.02
62
(translation_unit) "/***************************************************************************\n qgsauthcertificatemanager.h\n ---------------------\n begin : September, 2015\n copyright : (C) 2015 by Boundless Spatial, Inc. USA\n author : <NAME>\n email ...
166
9
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 36.02, "nodes": 97, "errors": 0, "source_hash": "c7c85a02d8ac71fb02e6356c439eb12c549dcef2e55d875046a88a1fedc6950c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,017
c
/***************************************************************************\ * * PROGRAM NAME: WPDCF77 * ------------- * * VERSION: 6.0 * -------- * * MODULE NAME: PLAY * ------------ * * DESCRIPTION: * ------------ * Methods for the multimedia functions * * NOTES: * ------ * * FUNCTIONS: * ------...
31.02
133
(translation_unit) "/***************************************************************************\\n *\n * PROGRAM NAME: WPDCF77\n * -------------\n *\n * VERSION: 6.0\n * --------\n *\n * MODULE NAME: PLAY\n * ------------\n *\n * DESCRIPTION:\n * ------------\n * Methods for the multimedia functions\n *\n * NOTES:\n...
706
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 31.02, "nodes": 408, "errors": 0, "source_hash": "5abe79bb998ccd88f9f85f14d114f0bc785fc1d5060374b703f2aababc2dfddb", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
2,018
c
/* * Copyright © 2012 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, pub...
36.11
63
(translation_unit) "/*\n * Copyright © 2012 Intel Corporation\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to use...
317
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 36.11, "nodes": 202, "errors": 0, "source_hash": "b8367fab23380ec652404a834df6f108530b9c4989ddcdea513014803c0364b1", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
2,019
c
#ifndef TENSORFLOW_USE_SYCL #error This file should only be included when compiling with SYCL support #endif #ifndef TENSORFLOW_KERNELS_CONV_OPS_SYCL_KERNEL_HELPERS_H_ #define TENSORFLOW_KERNELS_CONV_OPS_SYCL_KERNEL_HELPERS_H_ #include "tensorflow/core/kernels/conv_ops_sycl_fast_div.h" #include "tensorflow/core/kerne...
33.91
261
(translation_unit) "#ifndef TENSORFLOW_USE_SYCL\n#error This file should only be included when compiling with SYCL support\n#endif\n\n#ifndef TENSORFLOW_KERNELS_CONV_OPS_SYCL_KERNEL_HELPERS_H_\n#define TENSORFLOW_KERNELS_CONV_OPS_SYCL_KERNEL_HELPERS_H_\n\n#include "tensorflow/core/kernels/conv_ops_sycl_fast_div.h"\n#in...
2,881
178
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 33.91, "nodes": 1885, "errors": 0, "source_hash": "017dc858fe137c3c7afc98eae7d7f1eabe30cfbd181122f75ea2008bb868c162", "categorized_nodes": 1299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
2,020
c
/* This is free and unencumbered software released into the public domain. */ #ifndef DRY_CLI_OPTION_H #define DRY_CLI_OPTION_H #include <functional> /* for std::function */ namespace dry { namespace cli { struct option; enum class option_argument : int; using option_handler = std::function<void (int, ...
25.43
28
(translation_unit) "/* This is free and unencumbered software released into the public domain. */\n\n#ifndef DRY_CLI_OPTION_H\n#define DRY_CLI_OPTION_H\n\n#include <functional> /* for std::function */\n\nnamespace dry {\n namespace cli {\n struct option;\n enum class option_argument : int;\n using option_hand...
146
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.43, "nodes": 91, "errors": 0, "source_hash": "11125e797c60d516b39126d2a194b2f5a513a6e39794effee8b09d8764471fca", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef DRY_CLI_...
2,021
c
// Geometric Tools, Inc. // http://www.geometrictools.com // Copyright (c) 1998-2006. All Rights Reserved // // The Wild Magic Version 4 Foundation Library source code is supplied // under the terms of the license agreement // http://www.geometrictools.com/License/Wm4FoundationLicense.pdf // and may not be copied ...
30.09
33
(translation_unit) "// Geometric Tools, Inc.\n// http://www.geometrictools.com\n// Copyright (c) 1998-2006. All Rights Reserved\n//\n// The Wild Magic Version 4 Foundation Library source code is supplied\n// under the terms of the license agreement\n// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf...
181
7
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.09, "nodes": 119, "errors": 0, "source_hash": "717c41166c8696f6065dbab6cb9c8d071fa862a0bbb6cdd92c9af506bf4670b6", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,022
c
#ifndef _KEYSTATE_KEY_PURGE_CMD_H_ #define _KEYSTATE_KEY_PURGE_CMD_H_ extern struct cmd_func_block key_purge_funcblock; #endif /* _KEYSTATE_KEY_PURGE_CMD_H_ */
39
4
(translation_unit) "#ifndef _KEYSTATE_KEY_PURGE_CMD_H_\n#define _KEYSTATE_KEY_PURGE_CMD_H_\n\nextern struct cmd_func_block key_purge_funcblock;\n\n#endif /* _KEYSTATE_KEY_PURGE_CMD_H_ */\n\n\n" (preproc_ifdef) "#ifndef _KEYSTATE_KEY_PURGE_CMD_H_\n#define _KEYSTATE_KEY_PURGE_CMD_H_\n\nextern struct cmd_func_block key_...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.0, "nodes": 14, "errors": 0, "source_hash": "ed7538c5e49859e278b4663e3d3eb8080f56adb0f478fc291f715b69eb689668", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _K...
2,023
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "HMDAccessorySettingProtocol.h" @class NSArray; @protocol HMDAccessorySettingUpdateProtocol <HMDAccessorySettingProtocol> - (void)mergeConstraintsFromOther:(NSArray *)arg1; - (B...
32.08
13
(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 "HMDAccessorySettingProtocol.h"\n\n@class NSArray;\n\n@protocol HMDAccessorySettingUpdateProtocol <HMDAccessorySettingProtocol>\n- (void)mergeConstraints...
90
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.08, "nodes": 52, "errors": 0, "source_hash": "cd4471b84d5e54346c5586b089028a32e37ef9e840dc026e944b6239034f2627", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,024
c
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" static integer fla_...
39.4
225
(translation_unit) "/*\n\n Copyright (C) 2014, The University of Texas at Austin\n\n This file is part of libflame and is available under the 3-Clause\n BSD license, which can be found in the LICENSE file at the top-level\n directory, or at http://opensource.org/licenses/BSD-3-Clause\n\n*/\n\n#include "FLAM...
816
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 39.4, "nodes": 458, "errors": 0, "source_hash": "b071aa8c5391c00021c1a4bbc458d1806ca7256716fc4d0d296c7555fb1334cb", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,025
c
#ifndef IMAGELOADER_H #define IMAGELOADER_H #include "../CommonTypes.h" #include <vector> using namespace std; class ImageLoader { public: ImageLoader(); ~ImageLoader(); bool Load_Image(const char *pszImage); void FreeImageData(); uint8_t *GetImageData() { return m_pImageData; } uint32_t Get...
28.37
30
(translation_unit) "#ifndef IMAGELOADER_H\n#define IMAGELOADER_H\n\n#include "../CommonTypes.h"\n\n#include <vector>\nusing namespace std;\n\nclass ImageLoader\n{\npublic:\n ImageLoader();\n ~ImageLoader();\n\n bool Load_Image(const char *pszImage);\n void FreeImageData();\n uint8_t *GetImageData() { ret...
247
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.37, "nodes": 149, "errors": 0, "source_hash": "005282b1ccce4ca40f4f2f0c0d1477179eeb2eb0d2690a8630230767ec631319", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,026
c
/* * * Kocaeli University Computer Engineering * TÜBİTAK BİLGEM, Turkey * * FELICS - Fair Evaluation of Lightweight Cryptographic Systems * * Copyright (C) 2016 Kocaeli University * * Written in 2016 by <NAME> <<EMAIL>> * * This file is part of FELICS. * * FELICS is free software; you can redistribute it a...
34.21
91
(translation_unit) "/*\n *\n * Kocaeli University Computer Engineering\n * TÜBİTAK BİLGEM, Turkey\n *\n * FELICS - Fair Evaluation of Lightweight Cryptographic Systems\n *\n * Copyright (C) 2016 Kocaeli University\n *\n * Written in 2016 by <NAME> <<EMAIL>>\n *\n * This file is part of FELICS.\n *\n * FELICS is free so...
700
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 34.21, "nodes": 413, "errors": 0, "source_hash": "b56d63278384f8132998ea55777325cc1fa9516efe711b11dec111ca8af4edba", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "clud...
2,027
c
#include "parlay/primitives.h" template<class Tp, class T, class Ti, class F, class G, class H> parlay::sequence<Ti> sweep(parlay::sequence<T> &A, // elements to sweep over Ti Init, // initial value F f, // a function for inserting f(Ti,T) -> Ti G g, // a function for building g(T*,T*) -> Ti H...
34.29
38
(translation_unit) "#include "parlay/primitives.h"\n\ntemplate<class Tp, class T, class Ti, class F, class G, class H>\nparlay::sequence<Ti> sweep(parlay::sequence<T> &A, // elements to sweep over\n Ti Init, // initial value \n F f, // a function for inserting f(Ti,T) -> Ti\n G g, // a function for build...
498
30
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.29, "nodes": 319, "errors": 0, "source_hash": "debf926a7932d1e063eaf3c64a985f37d64989017f51ae168b435146c852c5fa", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,028
c
/****************************************************************** Copyright 2013, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2....
26.36
125
(translation_unit) "/******************************************************************\n Copyright 2013, <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apa...
969
24
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 26.36, "nodes": 594, "errors": 0, "source_hash": "df516e0191f2d32d1a0c4ed09ccecf57530ee795aef731f0183dcd5ccff176e9", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,029
c
#include <stdio.h> #include <stdlib.h> #define INFINITY 0xffff #define MAX_VERTEX 100 typedef char vertex_type; typedef int weight_type; typedef struct EdgeNode { int vertex_index; // 边节点对应的下标 weight_type weight; struct EdgeNode *next; } EdgeNode; typedef struct { vertex_type vertex_content; Edg...
25.28
173
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define INFINITY 0xffff\n#define MAX_VERTEX 100\n\ntypedef char vertex_type;\ntypedef int weight_type;\n\ntypedef struct EdgeNode\n{\n int vertex_index; // 边节点对应的下标\n weight_type weight;\n struct EdgeNode *next;\n} EdgeNode;\n\ntypedef struct\n{\n ...
1,456
3
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 25.28, "nodes": 866, "errors": 0, "source_hash": "c6239ff962ab5d3294f83c5dea0f9c5a7a7a2866b03eedb09eb3b23d3b6ff2a7", "categorized_nodes": 626}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,030
c
#include "Python.h" #include "numpy/arrayobject.h" #include <fcntl.h> #include <omp.h> #include <sys/param.h> #define VERSION "0.1" void GridMinimum(double *zmg, int *idz, const double *xb, const unsigned int xbn, const double *yb, const unsigned int ybn, const double *x, const dou...
31.67
120
(translation_unit) "#include "Python.h"\n#include "numpy/arrayobject.h"\n#include <fcntl.h>\n#include <omp.h>\n#include <sys/param.h>\n\n#define VERSION "0.1"\n\nvoid\nGridMinimum(double *zmg, int *idz,\n const double *xb, const unsigned int xbn,\n const double *yb, const unsigned int ybn,\n ...
1,282
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 31.67, "nodes": 766, "errors": 0, "source_hash": "c70a6219cfbc3a1f314d19048dabaf2e6498cae36d8b0ae5d7e96c0ccc9e2dbb", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,031
c
// // OutlineViewDiffableDataSource.h // OutlineViewDiffableDataSource // // Created by <NAME> on 2/8/20. // Copyright © 2020 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for OutlineViewDiffableDataSource. FOUNDATION_EXPORT double OutlineViewDiffableDataSourceVersionNumber; ...
46.54
13
(translation_unit) "//\n// OutlineViewDiffableDataSource.h\n// OutlineViewDiffableDataSource\n//\n// Created by <NAME> on 2/8/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n//! Project version number for OutlineViewDiffableDataSource.\nFOUNDATION_EXPORT double OutlineViewDif...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 46.54, "nodes": 15, "errors": 0, "source_hash": "89da53cc14a56e67769f18fbc42857b9d62b3b4fcb49908bb6965c8f74a57522", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
2,032
c
// // ESLHUD.h // Pods // // Created by xiaobo on 2020/7/14. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ESLHUD : NSObject + (void)dismiss; + (void)showLoading; + (void)showLoadingStatus:(NSString *)string; + (void)showNativeLoading:(UIView *)view; + (void)dismissNativeLoading:(UIView...
30.79
19
(translation_unit) "//\n// ESLHUD.h\n// Pods\n//\n// Created by xiaobo on 2020/7/14.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ESLHUD : NSObject\n\n+ (void)dismiss;\n+ (void)showLoading;\n+ (void)showLoadingStatus:(NSString *)string;\n+ (void)showNativeLoading:(UIView *)view;\...
221
28
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.79, "nodes": 135, "errors": 0, "source_hash": "d6e6c79c988e28150d193f93325792358ed8f708e2d778e87cf414cb671bfee0", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,033
c
// Copyright (c) 2016, Intel Corporation. #ifndef __zjs_gpio_h__ #define __zjs_gpio_h__ #include "jerry-api.h" extern void (*zjs_gpio_convert_pin)(uint32_t orig, int *dev, int *pin); jerry_value_t zjs_gpio_init(); #endif // __zjs_gpio_h__
33.29
7
(translation_unit) "// Copyright (c) 2016, Intel Corporation.\n\n#ifndef __zjs_gpio_h__\n#define __zjs_gpio_h__\n\n#include "jerry-api.h"\n\nextern void (*zjs_gpio_convert_pin)(uint32_t orig, int *dev, int *pin);\n\njerry_value_t zjs_gpio_init();\n\n#endif // __zjs_gpio_h__\n" (comment) "// Copyright (c) 2016, Intel...
54
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 33.29, "nodes": 38, "errors": 0, "source_hash": "3ff188b4d8948575add221f22cb638219e79f3aeb386ba4ce670961b9c24331c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,034
c
#ifndef _RX8025_H #define _RX8025_H #define uint unsigned int #define uchar unsigned char void InitRX8025SA(void); void SetRX8025SACurrentTime(uchar *TimeValue); void ReadRX8025SAClockData(uchar *ClockData); #endif
24.33
9
(translation_unit) "#ifndef _RX8025_H\n#define _RX8025_H\n\n#define uint unsigned int\n#define uchar unsigned char\n\n void InitRX8025SA(void);\n void SetRX8025SACurrentTime(uchar *TimeValue);\n void ReadRX8025SAClockData(uchar *ClockData);\n \n#endif" (preproc_ifdef) "#ifndef _RX8025_H\n#define _RX8025_H\n\n...
52
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.33, "nodes": 42, "errors": 0, "source_hash": "5f85bd6d33bcbff6d5d02a73c7cdd47add208894c5b583a26f9bfcec0a0f01a4", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,035
c
// // VPLSettingsViewController.h // vPlaces // // Created by <NAME> on 16.11.13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "DPHue.h" @interface VPLSettingsViewController : UITableViewController @property (nonatomic, strong) DPHue *hue; @end
23.17
12
(translation_unit) "//\n// VPLSettingsViewController.h\n// vPlaces\n//\n// Created by <NAME> on 16.11.13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "DPHue.h"\n\n@interface VPLSettingsViewController : UITableViewController\n\n@property (nonatomic, strong) DPHue *hue;...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 25, "errors": 0, "source_hash": "b2d61465bfe97c199d65a5d11ebfcc491da91bd5da8830ad86b60d2bb0c75857", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,036
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* * Fix_ncep_4.c * * sets flag controlling whether DX and DY are defined * * 8/2008: Public Domain: <NAME> * */ extern int fix_ncep_4_flag; /* * HEADER:100:fix_ncep_4:setup:0:fixes NCEP grib2...
16.76
33
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "grb2.h"\n#include "wgrib2.h"\n#include "fnlist.h"\n\n/*\n * Fix_ncep_4.c\n *\n * sets flag controlling whether DX and DY are defined\n *\n * 8/2008: Public Domain: <NAME>\n *\n */\nextern int fix_ncep_4_flag;\n\n\n/*\n * HEADER:...
127
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.76, "nodes": 79, "errors": 0, "source_hash": "7d0c207c5c8503375165a0cd13e6d9e07606b3f60cda203e174ca0f4db64f259", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,037
c
#ifndef TEACHING_TASK_EXECUTE_MANAGER_H_INCLUDED #define TEACHING_TASK_EXECUTE_MANAGER_H_INCLUDED #include "QtUtil.h" #include "TeachingTypes.h" #include "ParameterView.h" #include "MetaDataView.h" #include "ArgumentEstimator.h" #include "ControllerBase.h" namespace teaching { using namespace cnoid; class FlowView...
36.38
66
(translation_unit) "#ifndef TEACHING_TASK_EXECUTE_MANAGER_H_INCLUDED\n#define TEACHING_TASK_EXECUTE_MANAGER_H_INCLUDED\n\n#include "QtUtil.h"\n#include "TeachingTypes.h"\n#include "ParameterView.h"\n#include "MetaDataView.h"\n#include "ArgumentEstimator.h"\n\n#include "ControllerBase.h"\n\nnamespace teaching {\n\nusing...
624
8
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 36.38, "nodes": 407, "errors": 0, "source_hash": "680ade5668dd54077393a0cca78e5974ec6403410568328aaf29b8419de12837", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,038
c
// modified from: https://github.com/adafruit/Adafruit_AHTX0/blob/master/Adafruit_AHTX0.cpp #define AHTX0_I2CADDR_DEFAULT 0x38 ///< AHT default i2c address byte AHTx_calibrate_cmd[3] = { 0xE1, 0x08, 0x00 }; byte AHTx_measure_cmd[3] = { 0xAC, 0x33, 0x00 }; byte AHTx_reset_cmd = 0xBA; class AHTx_Sensor { TwoWir...
33.67
73
(translation_unit) "// modified from: https://github.com/adafruit/Adafruit_AHTX0/blob/master/Adafruit_AHTX0.cpp\n\n#define AHTX0_I2CADDR_DEFAULT 0x38 ///< AHT default i2c address\n\nbyte AHTx_calibrate_cmd[3] = { 0xE1, 0x08, 0x00 };\nbyte AHTx_measure_cmd[3] = { 0xAC, 0x33, 0x00 };\nbyte AHTx_reset_cmd = 0xBA;\n\ncla...
773
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 33.67, "nodes": 437, "errors": 0, "source_hash": "f2180ff986bd36fddf48c9e6540b826c5ded57c1f5d4b4a2d42628db5ef4513f", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
2,039
c
#include "jdprofile.h" FIRMWARE_IDENTIFIER(0x3ce4a36a, "JM UVI/Illuminance 65 v3.6"); void app_init_services() { illuminance_init(&illuminance_ltr390uv); uvindex_init(&uvindex_ltr390uv); }
31.83
6
(translation_unit) "#include "jdprofile.h"\n\nFIRMWARE_IDENTIFIER(0x3ce4a36a, "JM UVI/Illuminance 65 v3.6");\n\nvoid app_init_services() {\n illuminance_init(&illuminance_ltr390uv);\n uvindex_init(&uvindex_ltr390uv);\n}\n" (preproc_include) "#include "jdprofile.h"\n" (#include) "#include" (string_litera...
50
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 31.83, "nodes": 23, "errors": 0, "source_hash": "de760a1c40ef6b29fd5a2f71516063190df50d9ec9ea2af63ecb62d23df02e3a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,040
c
// version.c #include <getconfig.h> #include <version.h> inherit F_CLEAN_UP; void show_version(); void create() { seteuid(getuid()); } int main(object me, string arg) { int ver; if (arg == "stop" || arg == "cancel") { if (! SECURITY_D->valid_grant(me, "(admin)")) ...
31.74
112
(translation_unit) "// version.c\n\n#include <getconfig.h>\n#include <version.h>\n\ninherit F_CLEAN_UP;\n\nvoid show_version();\n\nvoid create() { seteuid(getuid()); }\n\nint main(object me, string arg)\n{\n int ver;\n\n if (arg == "stop" || arg == "cancel")\n {\n if (! SECURITY_D->v...
937
18
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 31.74, "nodes": 518, "errors": 0, "source_hash": "feede0755ed50dcab06889976583cbbff97826fae0bc500b726094dae08142b1", "categorized_nodes": 373}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,041
c
// Define an empty struct for now struct empty *ptr_empty; int other() { return (sizeof(struct empty)); }
20.8
5
(translation_unit) "// Define an empty struct for now\nstruct empty *ptr_empty;\n\nint other() {\n return (sizeof(struct empty));\n}\n" (comment) "// Define an empty struct for now" (declaration) "struct empty *ptr_empty;" (struct_specifier) "struct empty" (struct) "struct" (type_identifier) "emp...
34
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.8, "nodes": 19, "errors": 0, "source_hash": "06f191fd31f493d4ec3347bc76cdaa1324bfc9c9ceac4f6a08b350f13b05b198", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct empty...
2,042
c
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import <FBControlCore/FBJSONConversion.h> NS_ASSUME_NONNULL_BEGIN /** XCode constants. The...
32.61
69
(translation_unit) "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import <Foundation/Foundation.h>\n\n#import <FBControlCore/FBJSONConversion.h>\n\nNS_ASSUME_NONNULL_BE...
309
30
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 32.61, "nodes": 177, "errors": 0, "source_hash": "ff76b9b4de8dbec2b8efda554cb693c0aec56e3be69565ad526da2bd1184c26b", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,043
c
/********************* */ /*! \file term_translator.h ** \verbatim ** Top contributors (to current version): ** <NAME> ** This file is part of the smt-switch project. ** Copyright (c) 2020 by the authors listed in the file AUTHORS ** in the top-level source direc...
33.68
38
(translation_unit) "/********************* */\n/*! \file term_translator.h\n** \verbatim\n** Top contributors (to current version):\n** <NAME>\n** This file is part of the smt-switch project.\n** Copyright (c) 2020 by the authors listed in the file AUTHORS\n** in...
163
5
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.68, "nodes": 82, "errors": 0, "source_hash": "74dc1b10b0dae29a3d5a154ca6e6be844b677cefefda1d4b7e0341b017183dde", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,044
c
/* $NetBSD: cpu.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */ /* $FreeBSD: releng/9.3/sys/arm/include/cpu.h 219653 2011-03-14 23:30:14Z jkim $ */ #ifndef MACHINE_CPU_H #define MACHINE_CPU_H #include <machine/armreg.h> void cpu_halt(void); void swi_vm(void *); #ifdef _KERNEL static __inline uint64_t get_cycleco...
30.3
33
(translation_unit) "/* $NetBSD: cpu.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */\n/* $FreeBSD: releng/9.3/sys/arm/include/cpu.h 219653 2011-03-14 23:30:14Z jkim $ */\n\n#ifndef MACHINE_CPU_H\n#define MACHINE_CPU_H\n\n#include <machine/armreg.h>\n\nvoid cpu_halt(void);\nvoid swi_vm(void *);\n\n#ifdef _KERNEL\nstat...
244
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.3, "nodes": 174, "errors": 0, "source_hash": "7eca43d095c4357cb079defd95de353c40b1029b26ab8c897a53f3f6769804da", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,045
c
#ifndef PROCESSOR_H #define PROCESSOR_H #include <iostream> #include <string> #include <vector> class Processor { public: float Utilization(); // See src/processor.cpp private: float utilization; unsigned long long int active_jiffies_{0}; unsigned long long int jiffies_{0}; unsigned long...
24.44
16
(translation_unit) "#ifndef PROCESSOR_H\n#define PROCESSOR_H\n\n#include <iostream>\n#include <string>\n#include <vector>\n\nclass Processor {\n public:\n float Utilization(); // See src/processor.cpp\n\n private:\n float utilization;\n unsigned long long int active_jiffies_{0};\n unsigned long long ...
100
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.44, "nodes": 64, "errors": 0, "source_hash": "a1669b2857f6acd11b11f2b9e36d2f3aabdf569a6128076288dd63615823e704", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,046
c
class vastar_state : public driver_device { public: vastar_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } UINT8 *m_spriteram1; UINT8 *m_spriteram2; UINT8 *m_spriteram3; UINT8 *m_bg1videoram; UINT8 *m_bg2videoram; UINT8 *m_fgvideoram...
22.54
35
(translation_unit) "class vastar_state : public driver_device \n{ \npublic: \n vastar_state(const machine_config &mconfig, device_type type, const char *tag) \n : driver_device(mconfig, type, tag) { } \n \n UINT8 *m_spriteram1; \n UINT8 *m_spriteram2; \n UINT8 *m_spriteram3; \n \n UINT8 *m_bg1videoram; \n UINT8 *m_bg2...
192
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.54, "nodes": 121, "errors": 0, "source_hash": "7b64aea789e34a5e89f2dcfdba129a5df3df74352652ac8390fad86a107896aa", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
2,047
c
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // TODO-Cleanup: this class is unused //---------------------------------------------------------- // FileCache.h - very simple read ahead/ReadFile abstraction /...
28.23
66
(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// TODO-Cleanup: this class is unused\n\n//----------------------------------------------------------\n// FileCache.h - very simple read ...
313
26
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 28.23, "nodes": 219, "errors": 0, "source_hash": "6701e8cde7f66e9d3f8dcce7bfac30b0416911a8ae727892f31bfcd03d5276a6", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,048
c
#ifndef AI_H #define AI_H #include "rawtetrisboard.h" #include <calc/calculator.h> #include <string> #include <vector> class Ai { public: Ai(); Ai(std::string name, std::string valueFunction); std::string getName() const { return name_; } std::string getValueFunction() const { return valueFunction_; } ...
19.05
42
(translation_unit) "#ifndef AI_H\n#define AI_H\n\n#include "rawtetrisboard.h"\n\n#include <calc/calculator.h>\n\n#include <string>\n#include <vector>\n\nclass Ai {\npublic:\n Ai();\n\n Ai(std::string name, std::string valueFunction);\n\n std::string getName() const {\n return name_;\n }\n\n std::string getValueFunctio...
262
12
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 19.05, "nodes": 146, "errors": 0, "source_hash": "3dbcfbdc84b43e74894383b480dc700e7a6a32e6bf582f69819a8889bf1fb8e3", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,049
c
/* * Copyright 2014-2022 Real Logic Limited. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
36.14
98
(translation_unit) "/*\n * Copyright 2014-2022 Real Logic Limited.\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 * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
333
23
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 36.14, "nodes": 193, "errors": 0, "source_hash": "5fc20d4fc1d3bc0b46d1b6638ca631f1661ee45cbd19dab39a584c32c1394577", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,050
c
/* rdp.c -- rpd helpers implementation * * Copyright (C) 2017 <NAME> * * This software may be modified and distributed under the terms * of the Apache license. See the LICENSE file for details. */ #include <stdlib.h> #include <math.h> #include "rdp.h" void rdp_attach(display_context_t disp) { rdp_attach_d...
36
45
(translation_unit) "/* rdp.c -- rpd helpers implementation\n *\n * Copyright (C) 2017 <NAME>\n *\n * This software may be modified and distributed under the terms\n * of the Apache license. See the LICENSE file for details.\n */\n\n#include <stdlib.h>\n#include <math.h>\n\n#include "rdp.h"\n\nvoid rdp_attach(display_c...
465
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.0, "nodes": 305, "errors": 0, "source_hash": "b8a7afb139711bf4aad2028f649ebff07c77092cae30a49dae36c2853188812e", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,051
c
#include "../inc/thread_pool.h" #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <pthread.h> void* thread_function(void* arg) { printf("Executed in thread. arg: 0x%x\n", *((int*)arg)); usleep(10); return 0; } int main(void) { unsigned int maxThreads = 4; struct ThreadContext* co...
26.79
33
(translation_unit) "#include "../inc/thread_pool.h"\n#include <stdlib.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <pthread.h>\n\nvoid* thread_function(void* arg)\n{\n printf("Executed in thread. arg: 0x%x\n", *((int*)arg));\n usleep(10);\n return 0;\n}\n\nint main(void)\n{\n unsigned int maxThread...
292
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.79, "nodes": 175, "errors": 0, "source_hash": "4ace7722f6804fbc64075ff7d1ca0fdd77e1676a8f834826a2cc91a4305313bd", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,052
c
/* $Id$ Copyright 1989-2014 <NAME> This file is part of PIPS. PIPS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. PIPS is distributed in...
26.36
261
(translation_unit) "/*\n\n $Id$\n\n Copyright 1989-2014 <NAME>\n\n This file is part of PIPS.\n\n PIPS is free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n any later ver...
1,782
0
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 26.36, "nodes": 975, "errors": 0, "source_hash": "f37c205cb543f87a7005525845ca93a66ad63631a3c8d3e63d4c185fe1ffd31e", "categorized_nodes": 717}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
2,053
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface MSProtocolUtilities : NSObject { } + (void)applyUserDefaultOverridesToResponse:(id)arg1; + (void)fetchMPSStateWithBaseAvailabilityURL:(id)arg1 personID:(...
32.88
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface MSProtocolUtilities : NSObject\n{\n}\n\n+ (void)applyUserDefaultOverridesToResponse:(id)arg1;\n+ (void)fetchMPSStateWithBaseAv...
149
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.88, "nodes": 83, "errors": 0, "source_hash": "06ff34ce13bc042459a7aacd46f05fd367a5cfbe9893a00360e21d6710e4a989", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,054
c
// // ofxWTBSPostGlitch.h // 2015_0802_delayExample // // Created by switch on 2015/08/04. // // #ifndef ___015_0802_delayExample__ofxWTBSPostGlitch__ #define ___015_0802_delayExample__ofxWTBSPostGlitch__ #include "ofMain.h" #define GLITCH_NUM 8 ////////////////////////////////////////////////////////////////...
31.89
345
(translation_unit) "//\n// ofxWTBSPostGlitch.h\n// 2015_0802_delayExample\n//\n// Created by switch on 2015/08/04.\n//\n//\n\n#ifndef ___015_0802_delayExample__ofxWTBSPostGlitch__\n#define ___015_0802_delayExample__ofxWTBSPostGlitch__\n\n#include "ofMain.h"\n\n\n#define GLITCH_NUM 8\n\n\n\n//////////////////////////...
1,749
7
{"language": "c", "success": true, "metadata": {"lines": 345, "avg_line_length": 31.89, "nodes": 919, "errors": 0, "source_hash": "6a833285647804f21bbf12f4772a95c5797b8d821bd7d4cf779ef57d7fcd5abe", "categorized_nodes": 673}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,055
c
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 program is d...
32.27
129
(translation_unit) "/*\n * ***** BEGIN GPL LICENSE BLOCK *****\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later versio...
692
16
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 32.27, "nodes": 454, "errors": 0, "source_hash": "51ba2af423bb5c2ef5713e6fe2d1956747f38255dcae9b3daefd3759e0ee8821", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,056
c
void console_log(char *msg);
28
1
(translation_unit) "void console_log(char *msg);\n" (declaration) "void console_log(char *msg);" (primitive_type) "void" (function_declarator) "console_log(char *msg)" (identifier) "console_log" (parameter_list) "(char *msg)" (() "(" (parameter_declaration) "char *msg" (p...
14
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 28.0, "nodes": 10, "errors": 0, "source_hash": "41eec198ef33edc5507c7dab360757f5f1d799e91a251d22aa94caed75da4a56", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void console_...
2,057
c
// File: 5.10.c // Author: TaoKY #include <stdio.h> int main(){ double ans = 0; int first = 1, second = 2, third; for (int i = 0; i < 20; i++){ ans += (double)second / first; third = first + second; first = second; second = third; } printf("%lf\n", ans); return 0; }
18.93
14
(translation_unit) "// File: 5.10.c\n// Author: TaoKY\n\n#include <stdio.h>\n\nint main(){\n double ans = 0;\n int first = 1, second = 2, third;\n for (int i = 0; i < 20; i++){\n ans += (double)second / first;\n third = first + second;\n first = second; second = third;\n }\n printf("%lf\n", ans);\n return 0;\n}\n" ...
112
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.93, "nodes": 72, "errors": 0, "source_hash": "b8bff395701364425c83dfe81acd4f4fc90e30359642f14b90be01773b166a89", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,058
c
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD // // 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 applic...
34.06
51
(translation_unit) "// Copyright 2021 Espressif Systems (Shanghai) PTE LTD\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...
229
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.06, "nodes": 122, "errors": 0, "source_hash": "8ddabc2773094d92684a2c5376a5c7dae7fc2851d29a8fc2d3579d959d4cec7a", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,059
c
/* Copyright (C) 2007 <NAME> * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. * * Modifications for Android written Jul 2009 by <NAME> */ /* FUNCTION <<open_memstream>>---open a write stream around an arbitrary-length string INDEX open_...
30.8
207
(translation_unit) "/* Copyright (C) 2007 <NAME>\n * Permission to use, copy, modify, and distribute this software\n * is freely granted, provided that this notice is preserved.\n *\n * Modifications for Android written Jul 2009 by <NAME>\n */\n\n/*\nFUNCTION\n<<open_memstream>>---open a write stream around an arbitrar...
1,255
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 30.8, "nodes": 829, "errors": 0, "source_hash": "cb7af6a30bdac37544f114dadaebdf0ab068ba85d4a8d3e0687c736418e42167", "categorized_nodes": 585}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,060
c
/* Name: glcText.h Copyright: Version 0.1 Author: <NAME> Date: 19/10/2004 Description: Text class for OpenGL Programs Examples of use: // Using setAll method glcText t1; t1.setAll("teste", 0, (int)p[current].x, (int)p[current].y-10,1.0,1.0,1.0 ); // Using separated Metho...
28.91
35
(translation_unit) "/*\n Name: glcText.h\n Copyright: Version 0.1\n Author: <NAME>\n Date: 19/10/2004\n Description: Text class for OpenGL Programs\n\n Examples of use:\n\n // Using setAll method\n glcText t1;\n t1.setAll("teste", 0, (int)p[current].x, (int)p[current].y-10,1.0,1.0,1.0 ...
153
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.91, "nodes": 96, "errors": 0, "source_hash": "01d752fbab1007beed44d656c584ad87611dc0854d1a226a3f3df08b8fc7b0c0", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
2,061
c
/** * @file ZC_FFTW3_math.h * @author <NAME> * @date Jan, 2018 * @brief Header file for ZC_R_math.c. * (C) 2018 by Mathematics and Computer Science (MCS), Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #ifndef _ZC_FFTW3_MATH_H #define _ZC_FFTW3_MATH_H #ifdef __cplusplus exter...
28.53
19
(translation_unit) "/**\n * @file ZC_FFTW3_math.h\n * @author <NAME>\n * @date Jan, 2018\n * @brief Header file for ZC_R_math.c.\n * (C) 2018 by Mathematics and Computer Science (MCS), Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n */\n\n#ifndef _ZC_FFTW3_MATH_H\n#define _ZC_FFTW3_MA...
83
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.53, "nodes": 62, "errors": 0, "source_hash": "9e9169af8276291bfd9f073871ac13ec7fe74c2f67f5a541eb7232a42f2a8f7a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,062
c
#include <tfs_internal.h> //#define TLOG_DEBUG #ifdef TLOG_DEBUG #define tlog_debug(x, ...) do {rprintf("TLOG: " x, ##__VA_ARGS__);} while(0) #else #define tlog_debug(x, ...) #endif #define END_OF_LOG 1 #define TUPLE_AVAILABLE 2 #define END_OF_SEGMENT 3 typedef struct log { filesystem fs; u64 remainder; ...
33.43
207
(translation_unit) "#include <tfs_internal.h>\n\n//#define TLOG_DEBUG\n#ifdef TLOG_DEBUG\n#define tlog_debug(x, ...) do {rprintf("TLOG: " x, ##__VA_ARGS__);} while(0)\n#else\n#define tlog_debug(x, ...)\n#endif\n\n#define END_OF_LOG 1\n#define TUPLE_AVAILABLE 2\n#define END_OF_SEGMENT 3\n\ntypedef struct log {\n file...
1,937
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 33.43, "nodes": 1124, "errors": 0, "source_hash": "38bae5f19410db8eb6cc27957333e4c364856f97646bf9a26bcbffed0d26d9d9", "categorized_nodes": 874}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,063
c
//////////////////////////////////////////////////////////////////////////////// // GAURDS //////////////////////////////////////////////////////////////////////////////// #ifndef __WINDOWLISTENER_H__ #define __WINDOWLISTENER_H__ //+----------------------------------------------------------------------------- // // ...
35.52
58
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n// GAURDS\n////////////////////////////////////////////////////////////////////////////////\n\n#ifndef __WINDOWLISTENER_H__\n#define __WINDOWLISTENER_H__\n\n//+----------------------------------------------------------...
271
12
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 35.52, "nodes": 159, "errors": 0, "source_hash": "83d757f0bc08e41bc73e0a34875b5a5dbe9cc948257c058c34c6f7d4fb7c2959", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,064
c
#ifndef _BIGNUM_H #define _BIGNUM_H #include <iostream> #include <cstring> #include <iomanip> #include <algorithm> #include <cstdlib> using namespace std; #define MAXN 9999 #define MAXSIZE 10 #define DLEN 4 class BigNum { private: int a[500]; int len; public: BigNum() { len=1; memset(...
19.16
306
(translation_unit) "#ifndef _BIGNUM_H\n#define _BIGNUM_H\n\n#include <iostream>\n#include <cstring>\n#include <iomanip>\n#include <algorithm>\n#include <cstdlib>\nusing namespace std;\n\n#define MAXN 9999\n#define MAXSIZE 10\n#define DLEN 4\n\nclass BigNum\n{\nprivate:\n int a[500];\n int len;\npublic:\n BigNu...
2,782
62
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 19.16, "nodes": 1650, "errors": 0, "source_hash": "0c8334325be6554701b583a55cbb4102322bf80e28a3c6a3bd55cfcd46bc3256", "categorized_nodes": 1177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
2,065
c
#pragma once class Item { double price; size_t quantity; char* name; void copyFrom(const Item& item); void free(); public: Item(); ~Item(); Item(const char* name, size_t quantity, double price); Item(const Item& other); Item& operator=(const Item& other); const char* getName() const; size_t getQuantity()...
20.52
23
(translation_unit) "#pragma once\nclass Item\n{\n double price;\n size_t quantity;\n char* name;\n void copyFrom(const Item& item);\n void free();\n\npublic:\n Item();\n ~Item();\n Item(const char* name, size_t quantity, double price);\n Item(const Item& other);\n Item& operator=(const Item& other);\n\n\n const char* g...
202
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.52, "nodes": 120, "errors": 0, "source_hash": "ac188f07ffee75ae4a9f6ca0a7bba4e7ab4bb2ff0c3524f6ba59d9004a9b0477", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,066
c
#ifndef AliLMREvent_H #define AliLMREvent_H #include "TObject.h" #include "TLorentzVector.h" #include "TClonesArray.h" #include "TString.h" class AliLMRMuon; class AliLMREvent : public TObject { public: AliLMREvent(); AliLMREvent(Int_t run, Double_t evtPlane, Double_t Vert[3],Double_t *Activity); AliLMREvent (co...
35.14
56
(translation_unit) "#ifndef AliLMREvent_H\n#define AliLMREvent_H\n\n\n#include "TObject.h"\n#include "TLorentzVector.h"\n#include "TClonesArray.h"\n#include "TString.h"\n\nclass AliLMRMuon;\n\nclass AliLMREvent : public TObject {\npublic:\n AliLMREvent();\n AliLMREvent(Int_t run, Double_t evtPlane, Double_t Vert[3],Dou...
652
9
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.14, "nodes": 369, "errors": 0, "source_hash": "f197aa8cfc670789bf90cab6960cca31def47f6a14eb42e7d4672da64c906605", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,067
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef EVENTPROPERTIES_PERMITRESPONSES_H #define EVENTPROPERTIES_PERMITRESPONSES_H #ifdef _WIN32 #pragma once #endif clas...
30.36
14
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: \n//\n// $NoKeywords: $\n//=============================================================================//\n\n#ifndef EVENTPROPERTIES_PERMITRESPONSES_H\n#define EVENTPROPERTIES_PERMITRESPONSES_H\n#ifdef _WI...
39
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.36, "nodes": 26, "errors": 0, "source_hash": "6841c3298b47c29aa1a06ef5c47cfa951e0e6345121949896f8e73209d508146", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,068
c
// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_LIR_LITERALS_FORWARD_H_ #define ELANG_LIR_LITERALS_FORWARD_H_ #include <ostream> #include <string> #include <vector> #include "elang/base/fl...
39.36
56
(translation_unit) "// Copyright 2014-2015 Project Vogue. 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 ELANG_LIR_LITERALS_FORWARD_H_\n#define ELANG_LIR_LITERALS_FORWARD_H_\n\n#include <ostream>\n#include <string>\n#include <vec...
348
19
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 39.36, "nodes": 205, "errors": 0, "source_hash": "8ef6e5fae5e8bd1e71f068d78a25f1e1d8527062ac705d764d4ae059238764e0", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,069
c
#include "csf.h" void main(void) { MAP *map; map = Rcreate("test.map",100,80, CR_UINT1, VS_BOOLEAN, PT_YINCT2B, 0.0,0.0,0.0,1.0); if (map == NULL) { Mperror("map.dat"); exit(1); } Mclose(map); /* close CSF-file before exiting */ exit(0); }
18.64
14
(translation_unit) "#include "csf.h" \n\nvoid main(void) \n{ \n\n MAP *map; \n\n map = Rcreate("test.map",100,80,\n CR_UINT1, VS_BOOLEAN, PT_YINCT2B, 0.0,0.0,0.0,1.0); \n\n if (map == NULL) \n { \n Mperror("map.dat"); \n exit(1);\n }\n\n Mclose(map); /* close CSF-file before exiting */\n exit(0);\n\n}\...
106
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.64, "nodes": 54, "errors": 0, "source_hash": "b9795a86784df07d4ae171f765b46722c8c8c4083bf29c2efa7aae4f546665fe", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,070
c
/* # # ---------------------------------------------------------------------------- # # Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
37.14
95
(translation_unit) "/*\n#\n# ----------------------------------------------------------------------------\n#\n# Copyright 2019 IBM Corporation\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License...
851
50
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 37.14, "nodes": 479, "errors": 0, "source_hash": "3edee838dd71500f6e7114bc4266d5c632ab744e43897c5aa89e4dac9476c1c2", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,071
c
#include "Condiment.h" void MochaNew(Mocha *this, IBeverage *beverage) { strcpy(this->description, "Mocha"); this->price = 0.20; this->getDescription = MochaGetDescription; this->cost = MochaCost; this->beverage = beverage; } char *MochaGetDescription(Mocha *this) { //printf("%s $%.2f\n", (this...
30.5
62
(translation_unit) "#include "Condiment.h"\n\nvoid MochaNew(Mocha *this, IBeverage *beverage)\n{\n strcpy(this->description, "Mocha");\n this->price = 0.20;\n this->getDescription = MochaGetDescription;\n this->cost = MochaCost;\n this->beverage = beverage;\n}\nchar *MochaGetDescription(Mocha *this)\n{\n...
638
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 30.5, "nodes": 384, "errors": 0, "source_hash": "a0e49d32e719b02f88121d69248fcb59b866ee7f56a00a6597f54c4a0029a629", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,072
c
// // Created by <NAME> on 30.09.2018. // #include "frustum.h" void frustum_projview(frustum_t frustum, mat4x4 projview) { for (int i = 0; i < 4; i++) frustum[0][i] = projview[i][3] + projview[i][0]; for (int i = 0; i < 4; i++) frustum[1][i] = projview[i][3] - projview[i][0]; for (int i = 0; i < 4; i++) f...
41.27
30
(translation_unit) "//\n// Created by <NAME> on 30.09.2018.\n//\n\n#include "frustum.h"\n\nvoid frustum_projview(frustum_t frustum, mat4x4 projview) {\n for (int i = 0; i < 4; i++) frustum[0][i] = projview[i][3] + projview[i][0];\n for (int i = 0; i < 4; i++) frustum[1][i] = projview[i][3] - projview[i][0];\n ...
660
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 41.27, "nodes": 410, "errors": 0, "source_hash": "c54cf3a1e71603cda2b50451c34b795fc2e416754ab1c71bc2d03c3af5dfa6c5", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,073
c
/* * This file is part of FFL project. * * The MIT License (MIT) * Copyright (C) 2017-2018 zhufeifei All rights reserved. * * FFL_Log * Created by zhufeifei(34008081@qq.com) on 2017/7/12 * https://github.com/zhenfei2016/FFL-v2.git * 打印日志帮助类 * */ #include <stdio.h> #include <stdarg.h> #include "FFL_Log.h" #inclu...
20.83
172
(translation_unit) "/*\n* This file is part of FFL project.\n*\n* The MIT License (MIT)\n* Copyright (C) 2017-2018 zhufeifei All rights reserved.\n*\n* FFL_Log\n* Created by zhufeifei(34008081@qq.com) on 2017/7/12\n* https://github.com/zhenfei2016/FFL-v2.git\n* 打印日志帮助类\n*\n*/\n#include <stdio.h>\n#include <stdar...
1,131
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 20.83, "nodes": 652, "errors": 0, "source_hash": "e38a5292e62235c673aec692135f8a70016fd570b448b9a6f1ef1bbb5270a661", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "o.h...
2,074
c
// // Branched off piLibs (Copyright © 2015 <NAME>, The MIT License), in 2015. See THIRD_PARTY_LICENSES.txt // #pragma once #include <functional> #include <map> #include <vector> #include <string> #include "../libBasics/piLog.h" #include "../libSound/piSound.h" #include "../libBasics/piTimer.h" #include "../libBasics/...
31.9
200
(translation_unit) "//\n// Branched off piLibs (Copyright © 2015 <NAME>, The MIT License), in 2015. See THIRD_PARTY_LICENSES.txt\n//\n#pragma once\n\n#include <functional>\n#include <map>\n#include <vector>\n#include <string>\n#include "../libBasics/piLog.h"\n#include "../libSound/piSound.h"\n#include "../libBasics/piT...
965
19
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 31.9, "nodes": 664, "errors": 0, "source_hash": "dafa440d64084af8e0132f7bf264bef12a81575a359547a992cb80b0c850d431", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma ...
2,075
c
/* Macros for the header version. */ #ifndef VIPS_VERSION_H #define VIPS_VERSION_H #define VIPS_VERSION "8.4.2" #define VIPS_VERSION_STRING "8.4.2-Tue Oct 25 09:32:33 UTC 2016" #define VIPS_MAJOR_VERSION (8) #define VIPS_MINOR_VERSION (4) #define VIPS_MICRO_VERSION (2) /* Not really anything to do with versions, b...
28.47
15
(translation_unit) "/* Macros for the header version.\n */\n\n#ifndef VIPS_VERSION_H\n#define VIPS_VERSION_H\n\n#define VIPS_VERSION "8.4.2"\n#define VIPS_VERSION_STRING "8.4.2-Tue Oct 25 09:32:33 UTC 2016"\n#define VIPS_MAJOR_VERSION (8)\n#define VIPS_MINOR_VERSION (4)\n#define VIPS_MICRO_VERSION (2)\n\n/* Not really...
39
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.47, "nodes": 35, "errors": 0, "source_hash": "5ef64ec369662e02a4b9642c2f208fab97c7ede2a93aa5b2051d9e163e01dc76", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,076
c
// // LiabraryIndexResponse.h // CAWReader // // Created by wbuntu on 5/9/16. // Copyright © 2016 wbuntu. All rights reserved. // #import "BaseResponse.h" #import "bookModel.h" @interface LiabraryIndexResponseComponent : JSONModel @property (nonatomic,strong) NSArray<bookModel> *hot; @property (nonatomic,strong) ...
30.35
17
(translation_unit) "//\n// LiabraryIndexResponse.h\n// CAWReader\n//\n// Created by wbuntu on 5/9/16.\n// Copyright © 2016 wbuntu. All rights reserved.\n//\n\n#import "BaseResponse.h"\n#import "bookModel.h"\n\n@interface LiabraryIndexResponseComponent : JSONModel\n@property (nonatomic,strong) NSArray<bookModel> *ho...
111
20
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.35, "nodes": 83, "errors": 0, "source_hash": "b63a8e95b7f1b953897c58ab955f63b1d55893a23725d1d0ab5a7b2c5dee4d34", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
2,077
c
/* ========================================================= V:Multiplayer - http://www.vmultiplayer.com -- File: Model.h -- Project: Client -- Author(s): OrMisicL =============================================================*/ #ifndef MODEL_H #define MODEL_H class CModel { public: CModel(DWORD dwModelHash); ~CMo...
24
24
(translation_unit) "/* =========================================================\nV:Multiplayer - http://www.vmultiplayer.com\n\n-- File: Model.h\n-- Project: Client\n-- Author(s): OrMisicL\n\n=============================================================*/\n\n#ifndef MODEL_H\n#define MODEL_H\n\nclass CModel\n{\npublic:...
127
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.0, "nodes": 76, "errors": 0, "source_hash": "6a288c0550fe9f195924ac5d7b03c31154bb14056d0b1088f98ba09099c482d3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
2,078
c
#ifndef _COMPRESSION_H_ #define _COMPRESSION_H_ #include <cmath> #include <utility> #include <vector> typedef struct { int freq; int val; int left; int right; } huffman_node; template<class Heap> long long Benchmark<Heap>::compression(int N, int* freq_table) { log("running compression\n"); l...
28.02
40
(translation_unit) "#ifndef _COMPRESSION_H_\n#define _COMPRESSION_H_\n\n#include <cmath>\n#include <utility>\n#include <vector>\n\ntypedef struct {\n int freq;\n int val;\n int left;\n int right;\n} huffman_node;\n\ntemplate<class Heap>\nlong long Benchmark<Heap>::compression(int N, int* freq_table) {\n ...
433
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 28.02, "nodes": 274, "errors": 0, "source_hash": "c76703bbb1356c8871dcb0b11c97f75ea4aa86eb0ad8feeaac99dadb73f860a0", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,079
c
#include <stdio.h> #include <limits.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <stdarg.h> #include <libgen.h> #include <sys/stat.h> #define MAX_PARAMS 100 int add_parameters(const char *, char ***); char * find_rvm(void); char * find_rvm_path...
24.2
303
(translation_unit) "#include <stdio.h>\n#include <limits.h>\n#include <string.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/wait.h>\n#include <stdarg.h>\n#include <libgen.h>\n#include <sys/stat.h>\n\n#define MAX_PARAMS 100\n\nint add_parameters(const char *, char ***);\n\nchar * fi...
2,314
1
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 24.2, "nodes": 1430, "errors": 0, "source_hash": "afcf3aa2834cc5f324692f5dd0d6e241539c054ea602c3a89abb329b96e174e2", "categorized_nodes": 852}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,080
c
// Standard headers #include <stdio.h> #include <stdlib.h> // Internal headers #include "direction.h" #include "position.h" #include "spy.h" // Main header #include "attacker.h" // Macros #define UNUSED(x) (void)(x) // Auxiliary to avoid error of unused parameter /*--------------------------------------------------...
29.44
61
(translation_unit) "// Standard headers\n#include <stdio.h>\n#include <stdlib.h>\n\n// Internal headers\n#include "direction.h"\n#include "position.h"\n#include "spy.h"\n\n// Main header\n#include "attacker.h"\n\n// Macros\n#define UNUSED(x) (void)(x) // Auxiliary to avoid error of unused parameter\n\n/*---------------...
332
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 29.44, "nodes": 192, "errors": 0, "source_hash": "560eafd20367019448f985b9671f94f915751272167c78385b33660f1c4473d6", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,081
c
/* * Tencent is pleased to support the open source community by making Libco available. * Copyright (C) 2014 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain...
28
39
(translation_unit) "/*\n* Tencent is pleased to support the open source community by making Libco available.\n\n* Copyright (C) 2014 THL A29 Limited, a Tencent company. All rights reserved.\n*\n* Licensed under the Apache License, Version 2.0 (the "License"); \n* you may not use this file except in compliance with the ...
156
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.0, "nodes": 111, "errors": 0, "source_hash": "b8f75a27dc4eedc1e58866cc7e00d50c41b148118ab950bbac2b177591a781f2", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,082
c
// Copyright ETHZ 2017 #pragma once #include <vector> #include "MyMesh.h" namespace MeshConv { void vectorsToOpenMesh(const std::vector<std::vector<float> > &verts, const std::vector<std::vector<int> > &faces, const std::vector<short> &lables, MyMesh &ommesh ); void openMeshToVectors( const MyMesh &ommesh, std::...
50.88
16
(translation_unit) "// Copyright ETHZ 2017\n#pragma once\n\n#include <vector>\n#include "MyMesh.h"\n\nnamespace MeshConv \n{\n void vectorsToOpenMesh(const std::vector<std::vector<float> > &verts, const std::vector<std::vector<int> > &faces, const std::vector<short> &lables, MyMesh &ommesh ); \n\n void openMeshToVector...
303
20
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 50.88, "nodes": 192, "errors": 0, "source_hash": "5db6a002b5268a04573565618dd87c74e481aa93ee257ac8c8c95fa73f82261f", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,083
c
#include "crlibm.h" #include "crlibm_private.h" #include "triple-double.h" #include "exp-td.h" #define AVOID_FMA 0 extern void exp_td_accurate(double *polyTblh, double *polyTblm, double *polyTbll, double rh, double rm, double rl, double tbl1h, double tbl1m, double tbl1l, double tbl2h, double t...
33.46
72
(translation_unit) "#include "crlibm.h"\n#include "crlibm_private.h"\n#include "triple-double.h"\n#include "exp-td.h"\n\n#define AVOID_FMA 0\n\n\nextern void exp_td_accurate(double *polyTblh, double *polyTblm, double *polyTbll, \n double rh, double rm, double rl, \n double tbl1h, double tbl1m, double tbl1l,...
528
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 33.46, "nodes": 334, "errors": 0, "source_hash": "d1187376ba0b6ddc6df38e90218d20795463af27a9bc51790254d056c53ea9fa", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,084
c
/* * WinWorks - unistd.h * Copyright (c) 2013 Tony "untitled" Peng * <http://www.tonypeng.com/> * * This file is subject to the terms and conditions defined in the * file 'LICENSE.txt', which is part of this source code package. */ #ifndef UNISTD_H_ #define UNISTD_H_ #include <string> static inline void bzer...
27.15
13
(translation_unit) "/*\n * WinWorks - unistd.h\n * Copyright (c) 2013 Tony "untitled" Peng\n * <http://www.tonypeng.com/>\n * \n * This file is subject to the terms and conditions defined in the\n * file 'LICENSE.txt', which is part of this source code package.\n */\n\n#ifndef UNISTD_H_\n#define UNISTD_H_\n\n#include <...
47
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.15, "nodes": 31, "errors": 0, "source_hash": "cea7df7a8589bbd6ea06f447e5d5b3b4deea226d756b3245962b2fa34774802e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,085
c
/* * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include "soc/soc_caps.h" #include "soc/periph_defs.h" #ifdef __cplusplus extern "C" { #endif typedef struct { struct { const periph_module_t module; struct { ...
22.21
24
(translation_unit) "/*\n * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#pragma once\n\n#include "soc/soc_caps.h"\n#include "soc/periph_defs.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef struct {\n struct {\n const periph...
95
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.21, "nodes": 53, "errors": 0, "source_hash": "3f2eb3bb664edd646bc84d6911fe5a83f8a47d9ad2118e1ff1ac24d9afa0aa47", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,086
c
/** * * @defgroup nrf_drv_swi_config SWI(EGU) peripheral driver configuration * @{ * @ingroup nrf_drv_swi */ /** @brief Enable WDT driver * * Set to 1 to activate. * * @note This is an NRF_CONFIG macro. */ #define EGU_ENABLED /** @} */
15.53
15
(translation_unit) "/**\n *\n * @defgroup nrf_drv_swi_config SWI(EGU) peripheral driver configuration\n * @{\n * @ingroup nrf_drv_swi\n */\n/** @brief Enable WDT driver\n *\n * Set to 1 to activate.\n *\n * @note This is an NRF_CONFIG macro.\n */\n#define EGU_ENABLED\n\n\n/** @} */\n" (comment) "/**\n *\n * @defgrou...
7
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 15.53, "nodes": 3, "errors": 0, "source_hash": "08298219d6cdda4f135eb5a49b647d60ef638bf84e0bf15fddc17ef32e34850d", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define EGU_...
2,087
c
/* * Copyright (c) 2017 Queued team * * 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, publ...
23.97
108
(translation_unit) "/*\n * Copyright (c) 2017 Queued team\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 *\n * in the Software without restriction, including without limitation the rights\n * to use...
277
20
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 23.97, "nodes": 122, "errors": 0, "source_hash": "daf854c816a4172ef351cddd969e1aee7c1697c6496595515436e41286c714da", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,088
c
/* vi: set sw=4 ts=4: */ /* * tune2fs: utility to modify EXT2 filesystem * * Busybox'ed (2009) by <NAME> <<EMAIL>> * * Licensed under GPLv2, see file LICENSE in this source tree. */ #include "libbb.h" #include <linux/fs.h> #include <linux/ext2_fs.h> // storage helpers char BUG_wrong_field_size(void); #define STO...
28.53
76
(translation_unit) "/* vi: set sw=4 ts=4: */\n/*\n * tune2fs: utility to modify EXT2 filesystem\n *\n * Busybox'ed (2009) by <NAME> <<EMAIL>>\n *\n * Licensed under GPLv2, see file LICENSE in this source tree.\n */\n#include "libbb.h"\n#include <linux/fs.h>\n#include <linux/ext2_fs.h>\n\n// storage helpers\nchar BUG_wr...
502
2
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 28.53, "nodes": 301, "errors": 0, "source_hash": "e0f0e981fd5cc701269ee78e8d0ebf3755a4b3744f062cf5c6a1104f81ed1a57", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,089
c
/* * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * * Copyright 2017, UT-Battelle, LLC. * * LLNL-CODE-741539 * All rights reserved. * * This is the license for UnifyFS. * For details, see https://github.com/LLNL/UnifyFS. * Please rea...
38.12
78
(translation_unit) "/*\n * Copyright (c) 2017, Lawrence Livermore National Security, LLC.\n * Produced at the Lawrence Livermore National Laboratory.\n *\n * Copyright 2017, UT-Battelle, LLC.\n *\n * LLNL-CODE-741539\n * All rights reserved.\n *\n * This is the license for UnifyFS.\n * For details, see https://github.c...
176
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 38.12, "nodes": 146, "errors": 0, "source_hash": "e20717decd61035470e33f7f475f7018ca40de20c5beb7966a55350fedd77b28", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,090
c
#ifndef LILLE_COMMAND_GRAYWORLD_ORIG_H #define LILLE_COMMAND_GRAYWORLD_ORIG_H #include "command.h" #include "lgrayworld_config.h" namespace lille { class CommandGrayworldOrig : public vole::Command { public: CommandGrayworldOrig(); public: int execute(); void printShortHelp() const; void printHelp() const; pro...
23.35
17
(translation_unit) "#ifndef LILLE_COMMAND_GRAYWORLD_ORIG_H\n#define LILLE_COMMAND_GRAYWORLD_ORIG_H\n\n#include "command.h"\n#include "lgrayworld_config.h"\n\nnamespace lille {\n\nclass CommandGrayworldOrig : public vole::Command {\npublic:\n CommandGrayworldOrig();\n\npublic:\n int execute();\n void printShortHelp() co...
90
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.35, "nodes": 44, "errors": 0, "source_hash": "d1fdce5f177ed9fa3e4ba7e096f04e856afe5369bdf0d92b2464d8c9a2ca59ed", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,091
c
/* * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
25.84
99
(translation_unit) "/*\n * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License").\n * You may not use this file except in compliance with the License.\n * A copy of the License is located at\n *\n * http://aws.amazon.com/apac...
318
27
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 25.84, "nodes": 209, "errors": 0, "source_hash": "318936f741b85aafc6af342233145d6631191ea5f1a9394a91a06ab98bfc6f53", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,092
c
/* int iswide = (sizeof(*nptr) == sizeof(wchar_t)); */ /* void *start = (void*)nptr; */ (void)max; (void)min; int sign = 0; int overflow = 0; /* skip leading whitespace */ while (isspace(*nptr)) { nptr++; } /* get sign, if any */ if (*nptr == '+') { sign = 1; nptr++; } else if (*nptr == '-') { sign...
21.02
84
(translation_unit) "/* int iswide = (sizeof(*nptr) == sizeof(wchar_t)); */\n /* void *start = (void*)nptr; */\n (void)max; (void)min;\n int sign = 0;\n int overflow = 0;\n\n /* skip leading whitespace */\n while (isspace(*nptr)) {\n nptr++;\n }\n\n /* get sign, if any */\n if (*nptr == '+') {\n sign = 1;\n nptr++;\n...
860
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 21.02, "nodes": 565, "errors": 0, "source_hash": "8bcfe5bfad1038b5fe089475dbc3f3e805dc06637bec3472316a97e5ca7addc3", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "cast_expression", "text": "(voi...
2,093
c
#ifndef MX_HISTORY_H #define MX_HISTORY_H #include "../../input/inc/mx_input.h" #define MX_HISTORY_FILE ".ush_history" typedef struct s_history { char *command; struct s_history *prev; struct s_history *next; } t_history; void mx_history_file_appending(const char *command); t_history *mx_cr...
36.17
18
(translation_unit) "#ifndef MX_HISTORY_H\n#define MX_HISTORY_H\n\n#include "../../input/inc/mx_input.h"\n\n#define MX_HISTORY_FILE ".ush_history"\n\ntypedef struct s_history {\n char *command;\n struct s_history *prev;\n struct s_history *next;\n} t_history;\n\nvoid mx_history_file_appending(const...
180
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.17, "nodes": 137, "errors": 0, "source_hash": "de9a7041671bf561d4471c8defab1c5c0d35ddf32b8e3ada7e31a07683248a64", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,094
c
#ifndef imxrt10xx_flexspi_h #define imxrt10xx_flexspi_h #include <assert.h> #include <stdint.h> #define FLEXSPI_OPCODE_CMD_SDR 0x01 #define FLEXSPI_OPCODE_CMD_DDR 0x21 #define FLEXSPI_OPCODE_RADDR_SDR 0x02 #define FLEXSPI_OPCODE_RADDR_DDR 0x22 #define FLEXSPI_OPCODE_CADDR_SDR 0x03 #define FLEXSPI_OPCODE_CADDR_DDR 0x2...
27.41
139
(translation_unit) "#ifndef imxrt10xx_flexspi_h\n#define imxrt10xx_flexspi_h\n\n#include <assert.h>\n#include <stdint.h>\n\n#define FLEXSPI_OPCODE_CMD_SDR 0x01\n#define FLEXSPI_OPCODE_CMD_DDR 0x21\n#define FLEXSPI_OPCODE_RADDR_SDR 0x02\n#define FLEXSPI_OPCODE_RADDR_DDR 0x22\n#define FLEXSPI_OPCODE_CADDR_SDR 0x03\n#defi...
671
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 27.41, "nodes": 499, "errors": 0, "source_hash": "1529e0004ac62bf788ee62d2012699c324a7ac6bff6bc5a233ccaddbbfa1f87c", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,095
c
/* The MIT License (MIT) Copyright (c) 2015 <NAME> Questions/comments? Email at: <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
26.88
207
(translation_unit) "/*\nThe MIT License (MIT)\n\nCopyright (c) 2015 <NAME>\nQuestions/comments? Email at:\n<EMAIL>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, includin...
1,304
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 26.88, "nodes": 730, "errors": 0, "source_hash": "8f953332b68213e27dabaab43500c3a205b984202cf3ae09efd445cc4066552d", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,096
c
// // YYGDBTestDbFormat.h // Ledger // // Created by Ян on 30.06.18. // Copyright © 2018 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "YYGDBTester.h" @interface YYGDBTestDbFormat : NSObject <YYGDBTesting> - (instancetype)init; @property(weak, nonatomic) id<YYGDBTestOwning> owner; @...
26.71
17
(translation_unit) "//\n// YYGDBTestDbFormat.h\n// Ledger\n//\n// Created by Ян on 30.06.18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "YYGDBTester.h"\n\n@interface YYGDBTestDbFormat : NSObject <YYGDBTesting>\n\n- (instancetype)init;\n\n@property(weak, nonat...
118
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.71, "nodes": 76, "errors": 0, "source_hash": "8ebb691a6d68cd68669e7d0954c16e6ceb18cd35f355c0f28e0e3bb53d8ee239", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
2,097
c
// Copyright 2017-2019 Espressif Systems (Shanghai) PTE LTD // // 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 app...
29.82
105
(translation_unit) "// Copyright 2017-2019 Espressif Systems (Shanghai) PTE LTD\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/...
711
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 29.82, "nodes": 428, "errors": 0, "source_hash": "9975d7c677a0dfddcba37fa007e9a32875b74737614a2bcf6446509b25f6b721", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,098
c
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGP...
32.55
118
(translation_unit) "/**************************************************************************** \n** \n** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). \n** All rights reserved. \n** Contact: Nokia Corporation (<EMAIL>) \n** \n** This file is part of the QtDeclarative module of the Qt Toolkit. \n*...
470
27
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 32.55, "nodes": 296, "errors": 0, "source_hash": "fb8623d62036c7eeea6f83817e908f0eefc9dc4a480f90f5dac5dddfa1d54bf4", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,099