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
struct bodyData { const char* type; void* object; };
12.75
4
(translation_unit) "struct bodyData {\n const char* type;\n void* object;\n};\n" (struct_specifier) "struct bodyData {\n const char* type;\n void* object;\n}" (struct) "struct" (type_identifier) "bodyData" (field_declaration_list) "{\n const char* type;\n void* object;\n}" ({) "{" (field_decla...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 12.75, "nodes": 13, "errors": 0, "source_hash": "16a174422c1d1b3433a29aab35b7f44068c018a14e57b6a26cda9718cdfab3ab", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct ...
10,500
c
static int width_status(Bar *bar, BarArg *a); #if BAR_EXTRASTATUS_PATCH static int width_status_es(Bar *bar, BarArg *a); #endif // BAR_EXTRASTATUS_PATCH static int draw_status(Bar *bar, BarArg *a); #if BAR_EXTRASTATUS_PATCH static int draw_status_es(Bar *bar, BarArg *a); #endif // BAR_EXTRASTATUS_PATCH static int click...
39
9
(translation_unit) "static int width_status(Bar *bar, BarArg *a);\n#if BAR_EXTRASTATUS_PATCH\nstatic int width_status_es(Bar *bar, BarArg *a);\n#endif // BAR_EXTRASTATUS_PATCH\nstatic int draw_status(Bar *bar, BarArg *a);\n#if BAR_EXTRASTATUS_PATCH\nstatic int draw_status_es(Bar *bar, BarArg *a);\n#endif // BAR_EXTRAST...
124
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 39.0, "nodes": 90, "errors": 0, "source_hash": "1227bdb109c62ace681d5e7a3cf32fecde5f7a88cc4da5e4f627868a669c57e4", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static int w...
10,501
c
/* * Copyright 2013 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ #include <assert.h> #include <stdio.h> #include <string.h>...
25.46
56
(translation_unit) "/*\n * Copyright 2013 The Emscripten Authors. All rights reserved.\n * Emscripten is available under two separate licenses, the MIT license and the\n * University of Illinois/NCSA Open Source License. Both these licenses can be\n * found in the LICENSE file.\n */\n\n#include <assert.h>\n#include <...
483
4
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 25.46, "nodes": 294, "errors": 0, "source_hash": "956684ae25348b7426c45e7b2cdeb88354e3df9adb84b3dcd09a9fda3c147d2e", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,502
c
/** * @file mydemo.h * */ #ifndef MY_DEMO_H #define MY_DEMO_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #ifdef LV_CONF_INCLUDE_SIMPLE #include "lvgl.h" #include "lv_ex_conf.h" #else #include "../../../lvgl/lvgl.h" #include "../../../lv_ex_conf.h" #endi...
15.09
23
(translation_unit) "/**\n * @file mydemo.h\n *\n */\n\n#ifndef MY_DEMO_H\n#define MY_DEMO_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/*********************\n * INCLUDES\n *********************/\n\n#ifdef LV_CONF_INCLUDE_SIMPLE\n#include "lvgl.h"\n#include "lv_ex_conf.h"\n#else\n#include "../../../lvgl/lvgl.h...
60
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.09, "nodes": 38, "errors": 0, "source_hash": "eb6cfec3271d5c3307ef162f4375968965bdbc18c2b2ff4852208eaeb885085f", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,503
c
/* * Maybe reduce I/O frequency from pipe. Experiment with this value. */ #define BUFF_SIZE 1024*1024 #define MAX_OUTFILES 10000 #define CMD_MAX 128 // Match these with ad2vcf // Yes, we actually saw a few INFO fields over 512k in some dbGap BCFs #define VCF_INFO_MAX_CHARS 10...
28.91
22
(translation_unit) "/*\n * Maybe reduce I/O frequency from pipe. Experiment with this value.\n */\n\n#define BUFF_SIZE 1024*1024\n#define MAX_OUTFILES 10000\n#define CMD_MAX 128\n\n// Match these with ad2vcf\n// Yes, we actually saw a few INFO fields over 512k in some dbGap BCFs\n#define ...
75
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.91, "nodes": 60, "errors": 0, "source_hash": "17ac8a6776c7d0e41f2a9cd392f49f789415b3f12e314d2f70efe7bf1048f7a3", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BU...
10,504
c
/*------------------------------------ ///\ Plywood C++ Framework \\\/ https://plywood.arc80.com/ ------------------------------------*/ #pragma once #include <ply-runtime/Core.h> // clang-format off // Choose default implementation if not already configured by ply_userconfig.h: #if !defined(PLY_IMPL_SEMAPHORE_...
36.36
28
(translation_unit) "/*------------------------------------\n ///\ Plywood C++ Framework\n \\\/ https://plywood.arc80.com/\n------------------------------------*/\n#pragma once\n#include <ply-runtime/Core.h>\n\n// clang-format off\n\n// Choose default implementation if not already configured by ply_userconfig.h:\n#i...
80
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 36.36, "nodes": 68, "errors": 0, "source_hash": "0ba63bec916df0839d32239f03c196e357eaf3220e835d177e3ebdfb0f64b2c3", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,505
c
/* Q Light Controller Plus addrgbpanel.h Copyright (c) <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.txt Unless required by...
24.93
71
(translation_unit) "/*\n Q Light Controller Plus\n addrgbpanel.h\n\n Copyright (c) <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE...
287
11
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 24.93, "nodes": 175, "errors": 0, "source_hash": "1b98fcfba8a31dfea2cb3cdbc5cbb09cc48fcc7e89dff9385ec432daa0865a29", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,506
c
#pragma once #include "GHPlatform/GHPlatformServices.h" #include "GHPlatform/GHFOpenFileOpener.h" #include "GHWin32TimeCalculator.h" #include "GHWin32ThreadFactory.h" #include "GHWin32FilePicker.h" #include "GHWinSockSocketMgr.h" #include "GHWin32OutputPipe.h" class GHWin32PlatformServices : public GHPlatformServices...
39.88
26
(translation_unit) "#pragma once\n\n#include "GHPlatform/GHPlatformServices.h"\n#include "GHPlatform/GHFOpenFileOpener.h"\n#include "GHWin32TimeCalculator.h"\n#include "GHWin32ThreadFactory.h"\n#include "GHWin32FilePicker.h"\n#include "GHWinSockSocketMgr.h"\n#include "GHWin32OutputPipe.h"\n\nclass GHWin32PlatformServic...
221
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 39.88, "nodes": 122, "errors": 0, "source_hash": "0d9de97cc7990ae68e0a002e46601fa46811a7e0e2fa99a168b3795eeb2a224a", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,507
c
/******************************************************************************* // // SYCL 2020 Conformance Test Suite // // Common checks for sycl::usm_allocator api // *******************************************************************************/ #ifndef __SYCLCTS_TESTS_USM_ALLOCATOR_API_H #define __SYCLCTS_TES...
36.09
211
(translation_unit) "/*******************************************************************************\n//\n// SYCL 2020 Conformance Test Suite\n//\n// Common checks for sycl::usm_allocator api\n//\n*******************************************************************************/\n\n#ifndef __SYCLCTS_TESTS_USM_ALLOCATOR...
2,096
117
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 36.09, "nodes": 1259, "errors": 0, "source_hash": "2d3fb5d550454d038e314c1aef129e2849ecefc24f94c67e4734906f47e12aa1", "categorized_nodes": 927}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __SY...
10,508
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_ #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_ #include "net/base/netw...
42.28
32
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_\n#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_...
171
8
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 42.28, "nodes": 82, "errors": 0, "source_hash": "26290f4fb2a42952049a13bfad2b20dc1457cafee2891e0c5218e0cf4107611d", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,509
c
// // Created by xiaofeng on 6/21/17. // #ifndef PROJECT_IHTTPSERVERDELEGATE_H #define PROJECT_IHTTPSERVERDELEGATE_H #include <string> #include <map> namespace nifeng { class IHttpServerDelegate { public: virtual ~IHttpServerDelegate(){} virtual std::string* onReceivePostData(const std::str...
33.52
21
(translation_unit) "//\n// Created by xiaofeng on 6/21/17.\n//\n\n#ifndef PROJECT_IHTTPSERVERDELEGATE_H\n#define PROJECT_IHTTPSERVERDELEGATE_H\n#include <string>\n#include <map>\nnamespace nifeng\n{\n class IHttpServerDelegate\n {\n public:\n virtual ~IHttpServerDelegate(){}\n virtual std::string...
201
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.52, "nodes": 115, "errors": 0, "source_hash": "b3262d231903c930ac28da7fad5b151e9642648e81ffb34860285fecbeca10ee", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,510
c
/* * string.h * * Created on: 15.05.2019 * Author: stefan */ #ifndef UTILS_STRING_H_ #define UTILS_STRING_H_ #include <cstdio> #include <iostream> #include <memory> #include <string> #include <vector> namespace utils { const static char *ws = " \t\n\r\f\v"; // trim from end of string (right) ...
27.9
58
(translation_unit) "/*\n * string.h\n *\n * Created on: 15.05.2019\n * Author: stefan\n */\n\n#ifndef UTILS_STRING_H_\n#define UTILS_STRING_H_\n\n#include <cstdio>\n#include <iostream>\n#include <memory>\n#include <string>\n#include <vector>\n\nnamespace utils\n{\n\n const static char *ws = " \t\n\r\f\v";\n\n ...
578
38
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.9, "nodes": 352, "errors": 0, "source_hash": "9bbb9fb25038c8fbf0ba3dbb0bb2684650d37d3f1d8062d72fce784475d7a8f7", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,511
c
// bslma_usesbslmaallocator.h -*-C++-*- #ifndef INCLUDED_BSLMA_USESBSLMAALLOCATOR #define INCLUDED_BSLMA_USESBSLMAALLOCATOR #ifndef INCLUDED_BSLS_IDENT #include <bsls_ident.h> #endif BSLS_IDENT("$Id: $") //@PURPOSE: Provide a metafunction that indicates the use of bslma allocat...
37.13
134
(translation_unit) "// bslma_usesbslmaallocator.h -*-C++-*-\n#ifndef INCLUDED_BSLMA_USESBSLMAALLOCATOR\n#define INCLUDED_BSLMA_USESBSLMAALLOCATOR\n\n#ifndef INCLUDED_BSLS_IDENT\n#include <bsls_ident.h>\n#endif\nBSLS_IDENT("$Id: $")\n\n//@PURPOSE: Provide a metafunction that indic...
500
36
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 37.13, "nodes": 309, "errors": 0, "source_hash": "b18e1b645c02f376207b4af83fbb0edd88b0d1cebb87a73fcb30dc66b0175e2c", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,512
c
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsVulkanPrerequisites.h" #include "RenderAPI/BsGpuBuf...
41.25
44
(translation_unit) "//************************************ bs::framework - Copyright 2018 <NAME> **************************************//\n//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//\n#pragma once\n\n#include "BsVulkanPrerequisites.h"\n#in...
299
14
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 41.25, "nodes": 196, "errors": 0, "source_hash": "62b13381f8d35ae505509febc227cb034aee0456d77092e1abac701b3f6d7240", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,513
c
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
38.83
92
(translation_unit) "/* ****************************************************************** **\n** OpenSees - Open System for Earthquake Engineering Simulation **\n** Pacific Earthquake Engineering Research Center **\n** **\n** ...
764
50
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 38.83, "nodes": 445, "errors": 0, "source_hash": "88acfc768eec70b6699c789825c75c61d1bf8435b87c3bf9e2d2f2389eb6af40", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,514
c
/* * Copyright 2021, <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef FEEDEDIT_H #define FEEDEDIT_H #include <Window.h> #include "Feed.h" class BButton; class BStringView; class BTextControl; class Feed; class FeedListItem; enum { kOkButton = 'edok', kCancelB...
18.9
40
(translation_unit) "/*\n * Copyright 2021, <NAME> <<EMAIL>>\n * All rights reserved. Distributed under the terms of the MIT license.\n */\n#ifndef FEEDEDIT_H\n#define FEEDEDIT_H\n\n#include <Window.h>\n\n#include "Feed.h"\n\nclass BButton;\nclass BStringView;\nclass BTextControl;\nclass Feed;\nclass FeedListItem;\n\n\n...
197
3
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 18.9, "nodes": 131, "errors": 0, "source_hash": "9ce2ef59eb84e7e08b0efe922cc600ebc5d266adb758e159320160ea9d8913c9", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,515
c
/** **************************************************************************************** * * @file arch_sleep.h * * @brief Sleep control function API. * * Copyright (C) 2012. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary Information and is a Trade Se...
28.13
47
(translation_unit) "/**\n ****************************************************************************************\n *\n * @file arch_sleep.h\n *\n * @brief Sleep control function API.\n *\n * Copyright (C) 2012. Dialog Semiconductor Ltd, unpublished work. This computer \n * program includes Confidential, Proprietary I...
158
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 28.13, "nodes": 106, "errors": 0, "source_hash": "4101ed32f5b03f3466300066d8b489170b75e98f39300cde153087f2daffb916", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
10,516
c
// // TitleCell.h // DzyCollection // // Created by Dzy on 25/01/2017. // Copyright © 2017 Dzy. All rights reserved. // #import <UIKit/UIKit.h> @interface TitleCell : UICollectionViewCell @property (weak, nonatomic) IBOutlet UILabel *msg; @property (nonatomic ) UILabel *text; @end
21.08
13
(translation_unit) "//\n// TitleCell.h\n// DzyCollection\n//\n// Created by Dzy on 25/01/2017.\n// Copyright © 2017 Dzy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TitleCell : UICollectionViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *msg;\n\n@property (nonatomic ) UILabel *text;\n...
53
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.08, "nodes": 36, "errors": 0, "source_hash": "2f9ea15472399ac283ed0ff0fbd57c17a0aed855468ceda194c0b2af7eefb92d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,517
c
#ifndef BUILD_LK #include <linux/string.h> #endif #include "lcm_drv.h" #ifdef BUILD_LK #include <platform/mt_gpio.h> #elif defined(BUILD_UBOOT) #include <asm/arch/mt_gpio.h> #else #include <mach/mt_gpio.h> #endif LCM_DRIVER otm8018b_dsi_vdo_txd_fwvga_lcm_drv = { .name = "otm8018b_dsi_vdo_txd_fwvga", ...
20.47
15
(translation_unit) "#ifndef BUILD_LK\n#include <linux/string.h>\n#endif\n#include "lcm_drv.h"\n\n#ifdef BUILD_LK\n #include <platform/mt_gpio.h>\n#elif defined(BUILD_UBOOT)\n #include <asm/arch/mt_gpio.h>\n#else\n #include <mach/mt_gpio.h>\n#endif\nLCM_DRIVER otm8018b_dsi_vdo_txd_fwvga_lcm_drv = \n{\n .name ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.47, "nodes": 42, "errors": 0, "source_hash": "fccb61bcc4347787b78b6adeb7a82c90783bfe045d7ad6b25badc7933b06d2b8", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,518
c
#pragma once class CProtectedStoreDetails { private: CStringBuffer m_FileSystemPath; DWORD m_dwFlags; CMiniInlineHeap<> m_SecDescBacking; void Reset(); public: CProtectedStoreDetails() : m_dwFlags(0) { } ~CProtectedStoreDetails(); static BOOL ResolveStore(LPCGUID pGuid...
20.18
17
(translation_unit) "#pragma once \n \n \n \nclass CProtectedStoreDetails \n{ \nprivate: \n CStringBuffer m_FileSystemPath; \n DWORD m_dwFlags; \n CMiniInlineHeap<> m_SecDescBacking; \n \n void Reset(); \npublic: \n CProtectedStoreDetails() : m_dwFlags(0) { } \n ~CProtectedStoreDetails(); \n sta...
86
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.18, "nodes": 50, "errors": 0, "source_hash": "a3ecd08c1be6352f457647c3ad6ce4c46d01735d74550096f122f25c9c71c00b", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,519
c
///////////////////////////////////////////////////////////// // // // Copyright (c) 2003-2014 by The University of Queensland // // Centre for Geoscience Computing // // http://earth.uq.edu.au/centre-geoscience-computing // // ...
36.5
38
(translation_unit) "/////////////////////////////////////////////////////////////\n// //\n// Copyright (c) 2003-2014 by The University of Queensland //\n// Centre for Geoscience Computing //\n// http://earth.uq.edu.au/centre-geoscience-comp...
145
9
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.5, "nodes": 80, "errors": 0, "source_hash": "efc7dcd4cb7e6cd7b9d64540e09dcfa1dd7329fad5e25bc50acef1e9d17272ee", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,520
c
#include <qmainwindow.h> #include <qaction.h> #include <qslider.h> #include "DrawZone.h" #include "DataManager.h" #include "ConfigurationManager.h" class TestWindow : public QMainWindow { Q_OBJECT public: TestWindow( QWidget* parent = 0, const char* name = 0, WFlags f = WType_TopLevel ); void keyPressEvent( QKeyEv...
24.82
33
(translation_unit) "#include <qmainwindow.h>\n#include <qaction.h>\n#include <qslider.h>\n\n#include "DrawZone.h"\n#include "DataManager.h"\n#include "ConfigurationManager.h"\n\nclass TestWindow : public QMainWindow\n{\n Q_OBJECT\npublic:\n TestWindow( QWidget* parent = 0, const char* name = 0, WFlags f = WType_TopLeve...
247
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.82, "nodes": 178, "errors": 0, "source_hash": "c9223e7f002f8926f3fe81e2a3dd43874fc796e2fc35c2de3bb119e239433c47", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,521
c
/* * @file lighting.c * @brief Lights in the alert system implementation. * @author <NAME> * @date 4/8/2017 4:37:47 PM */ #include "lighting.h" int lightingPriority = PRI_OFF; /* Higher number indicates higher priority. */ int getLightingStatus() { return lightingPriority; } bool setLighting(i...
22.39
31
(translation_unit) "/* \n * @file lighting.c \n * @brief Lights in the alert system implementation. \n * @author <NAME> \n * @date 4/8/2017 4:37:47 PM \n */ \n \n#include "lighting.h" \n \nint lightingPriority = PRI_OFF; /* Higher number indicates higher priority. */ \n \nint getLightingStatus() { \n return lightingPr...
124
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.39, "nodes": 64, "errors": 0, "source_hash": "ad9a1ea34cf4f4d288207377190e2c9b774c44156cfd9041a09e3f80882f0b07", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,522
c
/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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...
38.08
104
(translation_unit) "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 Microsoft Corporation\n *\n * -=- Robust Distributed System Nucleus (rDSN) -=-\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 dea...
722
50
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 38.08, "nodes": 408, "errors": 0, "source_hash": "dab3581a583f54a5e89a5e1ced5b16e5d59a9813f206c656fc65dfc78419e4cc", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,523
c
// // HWPanIndicatorView.h // HWPanModal // // Created by <NAME> on 2019/5/16. // #import <UIKit/UIKit.h> #import <HWPanModal/HWPanModalIndicatorProtocol.h> NS_ASSUME_NONNULL_BEGIN @interface HWPanIndicatorView : UIView <HWPanModalIndicatorProtocol> @property (nonnull, nonatomic, strong) UIColor *indicatorColor;...
25.46
13
(translation_unit) "//\n// HWPanIndicatorView.h\n// HWPanModal\n//\n// Created by <NAME> on 2019/5/16.\n//\n\n#import <UIKit/UIKit.h>\n#import <HWPanModal/HWPanModalIndicatorProtocol.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HWPanIndicatorView : UIView <HWPanModalIndicatorProtocol>\n\n@property (nonnull, nonatomic...
52
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.46, "nodes": 35, "errors": 0, "source_hash": "3f13385ec298401c614abf9c4e6ccc130397bbd615c8c1744bb3641ff1017bd5", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,524
c
/* ** EPITECH PROJECT, 2018 ** my_strcmp ** File description: ** Reproduce the behavior of the strcmp function. */ int my_strlen(char const *); int my_strcmp(char const *s1, char const *s2) { int i = 0; if (s1 == (void *)0 && s2 == (void *)0) return (0); if (s1 == (void *)0) return (1); ...
21.34
38
(translation_unit) "/*\n** EPITECH PROJECT, 2018\n** my_strcmp\n** File description:\n** Reproduce the behavior of the strcmp function.\n*/\n\nint my_strlen(char const *);\n\nint my_strcmp(char const *s1, char const *s2)\n{\n int i = 0;\n\n if (s1 == (void *)0 && s2 == (void *)0)\n return (0);\n if (s1 ...
358
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.34, "nodes": 218, "errors": 0, "source_hash": "67adb051bcbfcff878f3a570f1522e642c1b11c8828c86911d0089c2a9824b3d", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int my_s...
10,525
c
// license:BSD-3-Clause #include "driver.h" #include "osdepend.h" #include "window.h" #include "video.h" #ifdef LIBPINMAME #include "rc.h" #include "../libpinmame/sound.h" #endif #include <pthread.h> #import <AudioToolbox/AudioQueue.h> #import <AudioToolbox/AudioServices.h> #define MAX_AUDIO_BUFFERS 3 typedef stru...
28.51
188
(translation_unit) "// license:BSD-3-Clause\n\n#include "driver.h"\n#include "osdepend.h"\n#include "window.h"\n#include "video.h"\n#ifdef LIBPINMAME\n #include "rc.h"\n #include "../libpinmame/sound.h"\n#endif\n#include <pthread.h>\n#import <AudioToolbox/AudioQueue.h>\n#import <AudioToolbox/AudioServices.h>\n\n#define...
1,561
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 28.51, "nodes": 985, "errors": 0, "source_hash": "857a78c5800e013187a957ac741a285d0d33221de5aa2d25d2572d9f9a7133e2", "categorized_nodes": 708}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,526
c
// Sample program for the QX-mini51 STC89C52 development board // // Display 0123 on 7-segment LED display using multiplexing // J6 must be closed to supply the 7-segment LED display // #include <8051.h> #include <typedefs.h> // 0 bit means that segment is on __code uchar table[] = { 0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x9...
15.87
45
(translation_unit) "// Sample program for the QX-mini51 STC89C52 development board\n//\n// Display 0123 on 7-segment LED display using multiplexing\n// J6 must be closed to supply the 7-segment LED display\n//\n#include <8051.h>\n\n#include <typedefs.h>\n\n// 0 bit means that segment is on\n__code uchar table[] = { 0xc...
287
1
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 15.87, "nodes": 170, "errors": 0, "source_hash": "df663a217c848def963b10865a3b964a7d1e12458879b856e13d606e2594fbbd", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,527
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SAObjects.framework/SAObjects */ @interface SAPhoneHangUpResponse : SABaseCommand <SAServerBoundCommand> @property (nonatomic, copy) NSString *aceId; @property (nonatomic) bool activeCallRemaining; @property (readonly, copy) NSString *debugDe...
38.55
22
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/SAObjects.framework/SAObjects\n */\n\n@interface SAPhoneHangUpResponse : SABaseCommand <SAServerBoundCommand>\n\n@property (nonatomic, copy) NSString *aceId;\n@property (nonatomic) bool activeCallRemaining;\n@property (reado...
246
49
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 38.55, "nodes": 166, "errors": 0, "source_hash": "4c460afef39cd6a8c95fdea25598f56c89a7bffbc8d56d90a9b362ff247b7197", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SAPh...
10,528
c
// // DBSphereView.h // sphereTagCloud // // Created by <NAME> on 14/8/31. // Copyright (c) 2014年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface DBSphereView : UIView /** * Sets the cloud's tag views. * * @remarks Any @c UIView subview can be passed in the array. * * @param array The a...
19.31
26
(translation_unit) "//\n// DBSphereView.h\n// sphereTagCloud\n//\n// Created by <NAME> on 14/8/31.\n// Copyright (c) 2014年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DBSphereView : UIView\n\n/**\n * Sets the cloud's tag views.\n *\n * @remarks Any @c UIView subview can be passed in t...
66
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.31, "nodes": 34, "errors": 0, "source_hash": "66bf92d1b592594673056f0e482756abb63843d5e95972df01f3b9d96a377296", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
10,529
c
// Manage Ini File (A Place where stuff is remembered from execution to execution) // Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved. #pragma once #include "Random.h" class IniFile { String iniFilePath; int pathLng; Random rand; public: IniFile() : rand() {} ~IniFile() { ...
35.9
82
(translation_unit) "// Manage Ini File (A Place where stuff is remembered from execution to execution)\n// Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved.\n\n\n#pragma once\n#include "Random.h"\n\n\nclass IniFile {\nString iniFilePath;\nint pathLng;\n\nRandom rand;\n\npublic:\n\n ...
870
23
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 35.9, "nodes": 562, "errors": 0, "source_hash": "80cf0ecd56886c87ab61c118d162c4f7104f126645a023d234b7b7a46de3886b", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,530
c
/* (c) 2015-2016 <NAME> */ /* this project is open source, see the LICENSE file for more information */ #include "mini.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> char *skip_wspace(char *text); char *get_name(char **text); char *handle_comment(char *text); char *get_value(char **tex...
24.94
307
(translation_unit) "/* (c) 2015-2016 <NAME> */\n/* this project is open source, see the LICENSE file for more information */\n#include "mini.h"\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <ctype.h>\nchar *skip_wspace(char *text);\nchar *get_name(char **text);\nchar *handle_comment(char *text...
2,283
0
{"language": "c", "success": true, "metadata": {"lines": 307, "avg_line_length": 24.94, "nodes": 1471, "errors": 0, "source_hash": "81f924a715766232ad1a1a7b46a20c6c536b4a40eaf571602ce50027487ac3fa", "categorized_nodes": 930}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,531
c
#ifndef BENCH_NATIVE_H #define BENCH_NATIVE_H #include <vector> #include <string> #include "Benchmark.h" class BenchNative : public Benchmark { public: BenchNative(); double DoBenchmark(const std::string& sExpr, long iCount); static std::vector<std::string> load_native_expressions(); }; #endif
20.36
14
(translation_unit) "#ifndef BENCH_NATIVE_H\n#define BENCH_NATIVE_H\n\n#include <vector>\n#include <string>\n\n#include "Benchmark.h"\n\n\nclass BenchNative : public Benchmark\n{\npublic:\n\n BenchNative();\n\n double DoBenchmark(const std::string& sExpr, long iCount);\n\n static std::vector<std::string> load_native_exp...
85
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 49, "errors": 0, "source_hash": "051a3e2f65023cf5a2842fcee9d2aa5e06fe6c5a4726c3b761c17a538290c437", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,532
c
#pragma once class CGLCommentFile { public: bool LOADFILE( const char * szFileName ); public: CGLCommentFile(); virtual ~CGLCommentFile(); };
15.11
9
(translation_unit) "#pragma once\n\nclass CGLCommentFile\n{\npublic:\n bool LOADFILE( const char * szFileName );\n\npublic:\n CGLCommentFile();\n virtual ~CGLCommentFile();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class CGLCommentFile\n{\...
50
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 15.11, "nodes": 27, "errors": 0, "source_hash": "f801924e476850507e23d762ab83ba1b397e98d68ad8b310e29cca8441e079ee", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,533
c
#ifndef SEMANTIC_POINT_CLOUD_H_ #define SEMANTIC_POINT_CLOUD_H_ #include <vector> #include <algorithm> #include <memory> #include <map> #include <pcl/point_cloud.h> #include <pcl/kdtree/kdtree_flann.h> namespace semanticicp { template <typename PointT, typename SemanticT> class SemanticPointCloud { ...
40.9
51
(translation_unit) "#ifndef SEMANTIC_POINT_CLOUD_H_\n#define SEMANTIC_POINT_CLOUD_H_\n\n#include <vector>\n#include <algorithm>\n#include <memory>\n#include <map>\n\n#include <pcl/point_cloud.h>\n#include <pcl/kdtree/kdtree_flann.h>\n\n\nnamespace semanticicp\n{\n template <typename PointT, typename SemanticT>\n ...
505
27
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 40.9, "nodes": 330, "errors": 0, "source_hash": "ae43fc94cc14d05c052239d94f9cb3ba5f5e482bda9f8f2c4e08d6c6a05e0c5f", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,534
c
/* Consolidation of graph communities with Parallel DBMS. (c) <NAME> */ #ifndef _PGFCM_H_ #define _PGFCM_H_ #include <par_libpq-fe.h> void consolidation(PGconn *conn, int F, char *GRAPH, char *VERTEX); void assert_nicely(PGconn *conn, PGresult *res, int cond, char *msg); #endif
27.1
10
(translation_unit) "/* \nConsolidation of graph communities with Parallel DBMS.\n(c) <NAME> \n*/\n\n#ifndef _PGFCM_H_\n#define _PGFCM_H_\n\n#include <par_libpq-fe.h>\n\nvoid consolidation(PGconn *conn, int F, char *GRAPH, char *VERTEX);\n\nvoid assert_nicely(PGconn *conn, PGresult *res, int cond, char *msg);\n#endif\n"...
70
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.1, "nodes": 56, "errors": 0, "source_hash": "58c8b5215b3a649745e231485c5a79124b8fc0c197a37c67af7a4f9b19e84e23", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,535
c
// SPDX-FileCopyrightText: 2020 DB Station&Service AG <<EMAIL>> // // SPDX-License-Identifier: Apache-2.0 // #import <UIKit/UIKit.h> #import "MBStationTabView.h" @protocol MBStationTabBarViewDelegate <NSObject> - (void)didSelectTabAtIndex:(NSUInteger)index; @end @interface MBStationTabBarView : UIView <MBStationT...
36.71
17
(translation_unit) "// SPDX-FileCopyrightText: 2020 DB Station&Service AG <<EMAIL>>\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n\n#import <UIKit/UIKit.h>\n#import "MBStationTabView.h"\n\n@protocol MBStationTabBarViewDelegate <NSObject>\n\n- (void)didSelectTabAtIndex:(NSUInteger)index;\n\n@end\n\n@interface MBSta...
160
16
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.71, "nodes": 102, "errors": 0, "source_hash": "b213323df23f50b1b9c55af944ae054f5a1ef9afe47790b1903548d373a64848", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,536
c
#ifndef __CAR_BRIDGE_UTIL_H # define __CAR_BRIDGE_UTIL_H # include <node.h> # include <nan.h> # include <elastos.h> # include "macros.h" CAR_BRIDGE_NAMESPACE_BEGIN extern IInterface *Probe(::v8::Local<::v8::Object> object, _ELASTOS EIID const &iid); extern void AttachAspect(::v8::Local<::v8::Object> object, _E...
35.23
13
(translation_unit) "#ifndef __CAR_BRIDGE_UTIL_H\n# define __CAR_BRIDGE_UTIL_H\n\n# include <node.h>\n\n# include <nan.h>\n\n# include <elastos.h>\n\n# include "macros.h"\n\n\n\nCAR_BRIDGE_NAMESPACE_BEGIN\n\nextern IInterface *Probe(::v8::Local<::v8::Object> object, _ELASTOS EIID const &iid);\n\nextern void AttachAspect...
139
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.23, "nodes": 87, "errors": 0, "source_hash": "82dd73f2792918bc0d4e5fe71e0ca7e3763b7e2fa9e05daa9e1e08e72e89a8db", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,537
c
#pragma once #include "../stdafx.h" #include "../core/crypto.h" #include "aes.h" #include "key.h" #include "helper.h" #include <CommonCrypto/CommonCrypto.h> namespace osx { class CryptoDigest : public core::CryptoDigest { public: CK_MECHANISM_TYPE mechType; CryptoDigest() : c...
27.63
207
(translation_unit) "#pragma once\n\n#include "../stdafx.h"\n#include "../core/crypto.h"\n#include "aes.h"\n#include "key.h"\n\n#include "helper.h"\n\n#include <CommonCrypto/CommonCrypto.h>\n\nnamespace osx {\n \n class CryptoDigest : public core::CryptoDigest {\n public:\n CK_MECHANISM_TYPE mechType;\...
710
20
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 27.63, "nodes": 448, "errors": 0, "source_hash": "96e5f85917879663ea056283bfaf8be6bdbc302c6ed7e9773a3764889c778340", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,538
c
// This code is in the public domain -- <EMAIL> #ifndef NV_MATH_BOX_H #define NV_MATH_BOX_H #include <nvmath/Vector.h> #include <float.h> // FLT_MAX namespace nv { /// Axis Aligned Bounding Box. class Box { public: /// Default ctor. Box() { }; /// Copy ctor. Box( const Box & b ) : m_mins(b.m_mins), m_maxs(b....
22.36
114
(translation_unit) "// This code is in the public domain -- <EMAIL>\n\n#ifndef NV_MATH_BOX_H\n#define NV_MATH_BOX_H\n\n#include <nvmath/Vector.h>\n\n#include <float.h> // FLT_MAX\n\nnamespace nv\n{\n\n/// Axis Aligned Bounding Box.\nclass Box\n{\npublic:\n\n /// Default ctor.\n Box() { };\n\n /// Copy ctor.\n Box( cons...
829
35
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 22.36, "nodes": 477, "errors": 0, "source_hash": "2ef61d575d87a2a0aeaba9e0568c99008ed3f15442479a95c0beba2f1581d42f", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,539
c
/* Copyright (c) 1990-2004 Info-ZIP. All rights reserved. See the accompanying file LICENSE, version 2000-Apr-09 or later (the contents of which are also included in zip.h) for terms of use. If, for some reason, all these files are missing, the Info-ZIP license also may be found at: ftp://ftp.info-zip.org/...
26.26
195
(translation_unit) "/*\n Copyright (c) 1990-2004 Info-ZIP. All rights reserved.\n\n See the accompanying file LICENSE, version 2000-Apr-09 or later\n (the contents of which are also included in zip.h) for terms of use.\n If, for some reason, all these files are missing, the Info-ZIP license\n also may be found at...
825
5
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 26.26, "nodes": 611, "errors": 0, "source_hash": "8306e7649fc4330d2cbb0bc387a28b63b9d750f9620841e219cc420a7da99c42", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,540
c
#ifndef NFA_H #define NFA_H #define U_MAX 1 << 32 - 1 #include "csr.h" #include "util.h" // #include "set.h" #include <stdbool.h> #define MAXSTATE 63 #define MAXCHAR 63 #define MAXSTATESET 100 #define MAXEDGE 100 #define MAXSTACK 100 #define MAXSETS 100 /* the state which is at the border of the sub set */ typedef...
23.62
112
(translation_unit) "#ifndef NFA_H\n#define NFA_H\n#define U_MAX 1 << 32 - 1\n\n\n#include "csr.h"\n#include "util.h"\n// #include "set.h"\n#include <stdbool.h>\n\n#define MAXSTATE 63\n#define MAXCHAR 63\n\n#define MAXSTATESET 100\n#define MAXEDGE 100\n#define MAXSTACK 100\n#define MAXSETS 100\n\n/* the state which is a...
756
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 23.62, "nodes": 547, "errors": 0, "source_hash": "3bcd0061a163fc4c832dfd18e9b2d8a7865536800769dd81b0b85d17589195be", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,541
c
/* xGS 3D Low-level rendering API Low-level 3D rendering wrapper API with multiple back-end support (c) livingcreative, 2015 - 2018 https://github.com/livingcreative/xgs IUnknown.h Abstract stub class for COM-linke interface compatibility */ #pragma once #ifdef WIN32 #define I...
25.84
25
(translation_unit) "\n xGS 3D Low-level rendering API\n\n Low-level 3D rendering wrapper API with multiple back-end support\n\n (c) livingcreative, 2015 - 2018\n\n https://github.com/livingcreative/xgs\n\n IUnknown.h\n Abstract stub class for COM-linke interface compatibility\n*/\n\n#pragma on...
99
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.84, "nodes": 73, "errors": 0, "source_hash": "eaf62d3d2ec321f3ed63d895937b98dd29ba95dfb242ce9bd62f2f4fbe07739f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
10,542
c
#ifndef DB_WINDOW_H #define DB_WINDOW_H #include "vbc/vbc_database.h" #include <QMainWindow> #include <QGraphicsScene> namespace Ui { class db_window; } class db_window : public QMainWindow { Q_OBJECT std::shared_ptr<vbc_database> vbc; private: QGraphicsScene fp_dif_scene, fp_scene; image::color_image...
30.43
56
(translation_unit) "#ifndef DB_WINDOW_H\n#define DB_WINDOW_H\n#include "vbc/vbc_database.h"\n#include <QMainWindow>\n#include <QGraphicsScene>\n\nnamespace Ui {\nclass db_window;\n}\n\nclass db_window : public QMainWindow\n{\n Q_OBJECT\n std::shared_ptr<vbc_database> vbc;\nprivate:\n QGraphicsScene fp_dif_scen...
412
11
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 30.43, "nodes": 266, "errors": 0, "source_hash": "70e7440057e3fe0fa573385d3a33073bb5d635aec341e41e6c195da851ae2e05", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,543
c
#pragma once #include "../htfe/HTFE.h" #include <SFML/Graphics.hpp> #include <vector> #include <list> #include <random> #include <memory> namespace htferl { class HTFERL { public: enum InputType { _state = 0, _action = 1, _q = 2 }; static float sigmoid(float x) { return 1.0f / (1...
21.44
124
(translation_unit) "#pragma once \n \n#include "../htfe/HTFE.h" \n#include <SFML/Graphics.hpp> \n \n#include <vector> \n#include <list> \n \n#include <random> \n \n#include <memory> \n \nnamespace htferl { \n class HTFERL { \n public: \n enum InputType { \n _state = 0, _action = 1, _q = 2 \n }; \n \n static float ...
774
31
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 21.44, "nodes": 472, "errors": 0, "source_hash": "b6f34d71255c435bdf5a101a66ea25422b99c681326e83b37c502c8442fa19e4", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,544
c
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #pragma warning(disable: 4244) #pragma warning(disable: 4101) #pragma warning(disable: 4018) #include <stdio.h> #inc...
26.39
49
(translation_unit) "// stdafx.h : include file for standard system include files,\n// or project specific include files that are used frequently, but\n// are changed infrequently\n//\n\n#pragma once\n\n#include "targetver.h"\n\n#pragma warning(disable: 4244) \n#pragma warning(disable: 4101) \n#pragma warning(disable: 4...
162
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.39, "nodes": 154, "errors": 0, "source_hash": "176b25672efa7482b6bdabf993378494b193a9826a4b4ecca9f05e46e81e6c48", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,545
c
/* * Super Entity Game Server * http://segs.sf.net/ * Copyright (c) 2006 - 2016 Super Entity Game Server Team (see Authors.txt) * This software is licensed! (See License.txt for details) * */ #pragma once #include <QtSql/QSqlDatabase> class DbTransactionGuard { QSqlDatabase &m_db; bool proper_commit = fa...
21.22
27
(translation_unit) "/*\n * Super Entity Game Server\n * http://segs.sf.net/\n * Copyright (c) 2006 - 2016 Super Entity Game Server Team (see Authors.txt)\n * This software is licensed! (See License.txt for details)\n *\n */\n#pragma once\n\n#include <QtSql/QSqlDatabase>\nclass DbTransactionGuard\n{\n QSqlDatabase &m...
118
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 21.22, "nodes": 62, "errors": 0, "source_hash": "15c8d7553aa27fe60e953e95db855c88b841e99d462473ee47741c776a2a0ed4", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,546
c
// // KYEWebNetworkHandler.h // WKWebView_Unit // // Created by kye_zzp on 2017/12/8. // Copyright © 2017年 kye_zzp. All rights reserved. // #import <Foundation/Foundation.h> #import "KYEWebOperation.h" NS_ASSUME_NONNULL_BEGIN @protocol KYEWebNetworkHandler <NSObject> /** 生成发起请求的request @param urlString 请求URL ...
24.97
31
(translation_unit) "//\n// KYEWebNetworkHandler.h\n// WKWebView_Unit\n//\n// Created by kye_zzp on 2017/12/8.\n// Copyright © 2017年 kye_zzp. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n#import "KYEWebOperation.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol KYEWebNetworkHandler <NSObject>\n\n/**\n 生成发起请...
138
12
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.97, "nodes": 94, "errors": 0, "source_hash": "647fa3529e934a499a922e4e9f1b6e3f52237e5e3eb80b7ab9b4abb35e82ef03", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,547
c
#include "prelude.h" typedef GENERATE(encode_cmd, decode_cmd) struct { uint64_t timestamp; union TAGPREFIX(cmd) { struct { char *filename; unsigned int num_refs; grant_ref_t refs[num_refs]; } open; struct { uint64_t fd; } close; struct { uint64_t fd; uint6...
17.55
38
(translation_unit) "#include "prelude.h"\n\ntypedef GENERATE(encode_cmd, decode_cmd)\nstruct {\n uint64_t timestamp;\n\n union TAGPREFIX(cmd) {\n struct {\n char *filename;\n unsigned int num_refs;\n grant_ref_t refs[num_refs];\n } open;\n\n struct {\n uint64_t fd;\n } close;\n\n st...
192
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 17.55, "nodes": 114, "errors": 0, "source_hash": "1bcf985ab069a59541f5a666e017051b29ef96d50073b807eda16b8e6842478a", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,548
c
#include <math.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "mesh.h" #include "modelmgr.h" #include "assemble.h" #include "superlu.h" /* * compute y = alph*x + y; * n - the dimension of vectors x, y */ void daxpy(int n, double alph, double *x, double *y) { int k; for (k =...
26.54
84
(translation_unit) "#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include <assert.h>\n\n#include "mesh.h"\n#include "modelmgr.h"\n#include "assemble.h"\n#include "superlu.h"\n\n\n/*\n * compute y = alph*x + y; \n * n - the dimension of vectors x, y\n */\nvoid daxpy(int n, double alph, double *x, d...
567
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 26.54, "nodes": 361, "errors": 0, "source_hash": "3821f0c5da8327e2c91aff070d9abe934969c94ba5b6dd7e051a8c4a7e4c9a43", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,549
c
/** @file GLG3D/GuiLabel.h @created 2006-05-01 @edited 2007-06-01 G3D Library http://g3d.sf.net Copyright 2001-2007, <NAME> <EMAIL> All rights reserved. */ #ifndef G3D_GUILABEL_H #define G3D_GUILABEL_H #include "GLG3D/GuiControl.h" namespace G3D { class GuiWindow; class GuiPane; /** A text label. Will nev...
23.45
29
(translation_unit) "/**\n @file GLG3D/GuiLabel.h\n\n @created 2006-05-01\n @edited 2007-06-01\n\n G3D Library http://g3d.sf.net\n Copyright 2001-2007, <NAME> <EMAIL>\n All rights reserved.\n*/\n#ifndef G3D_GUILABEL_H\n#define G3D_GUILABEL_H\n\n#include "GLG3D/GuiControl.h"\n\nnamespace G3D {\n\nclass GuiWindow;\nclass...
130
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.45, "nodes": 65, "errors": 0, "source_hash": "1e38358451f428f9d6010c115ab93c3b6c531f331e752ff85f66108af68eab7a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,550
c
/* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://sam.zoy.org/wtfpl/COPYING for more detai...
34.22
54
(translation_unit) "/* This program is free software. It comes without any warranty, to\n * the extent permitted by applicable law. You can redistribute it\n * and/or modify it under the terms of the Do What The Fuck You Want\n * To Public License, Version 2, as published by Sam Hocevar. See\n * http://sam.zoy.org/wtfp...
297
1
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 34.22, "nodes": 220, "errors": 0, "source_hash": "23b8f3aad6abd8ca6603b7e7c8aa98270c8254ce0c367560a7a59ec6f9b52ee1", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,551
c
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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 * right...
31.81
154
(translation_unit) "/*\n * The MIT License\n *\n * Copyright (c) 1997-2019 The University of Utah\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\n * deal in the Software without restriction, including with...
887
59
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 31.81, "nodes": 545, "errors": 0, "source_hash": "85803591b3476add4fe01e8165fe8137c2c9f8bed0c610899853e144db964c87", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,552
c
/*===================================================================== ** ** Source: test1.c (_rotr) ** ** Purpose: Tests the PAL implementation of the _rotr function. ** The _rotr function rotates the unsigned value. _rotr ** rotates the value right and "wraps" bits rotated off ** one en...
34.54
63
(translation_unit) "/*=====================================================================\n**\n** Source: test1.c (_rotr)\n**\n** Purpose: Tests the PAL implementation of the _rotr function. \n** The _rotr function rotates the unsigned value. _rotr\n** rotates the value right and "wraps" bits rotat...
331
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 34.54, "nodes": 178, "errors": 0, "source_hash": "34a0b6efc198dcd53beb5ce3c4a12dcda7bb29ace29e74f34751b81fbb4c7bf8", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,553
c
/****************************************************************************/ /// @file HelpersHarmonoise.h /// @author <NAME> /// @author <NAME> /// @date Mon, 10.05.2004 /// @version $Id$ /// // Helper methods for Harmonoise-based noise emission computation /**************************************************...
36.85
95
(translation_unit) "/****************************************************************************/\n/// @file HelpersHarmonoise.h\n/// @author <NAME>\n/// @author <NAME>\n/// @date Mon, 10.05.2004\n/// @version $Id$\n///\n// Helper methods for Harmonoise-based noise emission computation\n/**********************...
236
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 36.85, "nodes": 118, "errors": 0, "source_hash": "9af881721ed286dfe8dd8053c34e1bfbb7022d460e1b2cb7443e7feba0bc49aa", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,554
c
#ifndef DATASET_TEST_H_INCLUDED #define DATASET_TEST_H_INCLUDED #include <string.h> #include <stdio.h> typedef struct { int id; char type[32]; float price; }dataset_t; int compare_dataset(void* a, void* b); int compare_dataset_int(void* a, void* b); int Print_dataset(void* elem, void* nullable); ...
24.87
15
(translation_unit) "#ifndef DATASET_TEST_H_INCLUDED\n#define DATASET_TEST_H_INCLUDED\n#include <string.h>\n#include <stdio.h>\n\ntypedef struct\n{\n int id;\n char type[32];\n float price;\n}dataset_t;\n\nint compare_dataset(void* a, void* b);\nint compare_dataset_int(void* a, void* b);\nint Print_dat...
112
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.87, "nodes": 86, "errors": 0, "source_hash": "332e1f837af48cf4e127d3b01d18c0bf2524d0776d15ceed435f4936568d0ef8", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,555
c
/* Author : <NAME>, <<EMAIL>> */ /* FLASK */ /* * A security identifier table (sidtab) is a hash table * of security context structures indexed by SID value. */ #ifndef _SEPOL_POLICYDB_SIDTAB_H_ #define _SEPOL_POLICYDB_SIDTAB_H_ #include <sepol/policydb/context.h> typedef struct sidtab_node { sepol_security_i...
36.34
50
(translation_unit) "/* Author : <NAME>, <<EMAIL>> */\n\n/* FLASK */\n\n/*\n * A security identifier table (sidtab) is a hash table\n * of security context structures indexed by SID value.\n */\n\n#ifndef _SEPOL_POLICYDB_SIDTAB_H_\n#define _SEPOL_POLICYDB_SIDTAB_H_\n\n#include <sepol/policydb/context.h>\n\ntypedef struc...
365
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 36.34, "nodes": 283, "errors": 0, "source_hash": "48b34f75e4ec9f9928cac094dac1e39bb9b85fd4c76dfb1306d1cefcc997f3a1", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,556
c
/* * Copyright (c) 2004 <NAME> <<EMAIL>> * * This file is part of Libav. * * Libav is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
35.72
61
(translation_unit) "/*\n * Copyright (c) 2004 <NAME> <<EMAIL>>\n *\n * This file is part of Libav.\n *\n * Libav is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License...
87
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 35.72, "nodes": 63, "errors": 0, "source_hash": "dc11db33007b9e655c212f2224a74b088c1c7a59273d91f3a51efc8c84a4a035", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,557
c
#if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // needed headers #include <comdef.h> #include <memory.h> #include <tchar.h> #include <string.h> #include <vfw.h> #include "Buffer.h" #pragma comment (lib, "vfw32.lib") /*! \brief A simple class to create AVI video stream. \par Usage Step 1 : Declare an C...
33.09
65
(translation_unit) "#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n// needed headers\n#include <comdef.h>\n#include <memory.h>\n#include <tchar.h>\n#include <string.h>\n#include <vfw.h>\n#include "Buffer.h"\n\n#pragma comment (lib, "vfw32.lib")\n\n/*! \brief A simple class to create AVI video stream.\n...
346
10
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.09, "nodes": 215, "errors": 0, "source_hash": "eaaa46cb24030dcea9c059a00508bffec8df7601bfcb1f03380ba64aca8e0854", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if _MSC_...
10,558
c
#include "pthread_impl.h" int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust) { if (robust > 1U) return EINVAL; *a &= ~4; *a |= robust*4; return 0; }
20.25
8
(translation_unit) "#include "pthread_impl.h"\n\nint pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)\n{\n if (robust > 1U) return EINVAL;\n *a &= ~4;\n *a |= robust*4;\n return 0;\n}\n" (preproc_include) "#include "pthread_impl.h"\n" (#include) "#include" (string_literal) ""pthread_impl.h"" ...
64
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.25, "nodes": 43, "errors": 0, "source_hash": "669ed00b86271495a5be5131beef35e76845ab275ea15b34c49da7965ad309d9", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,559
c
#pragma once template <class T> class vec3; template <class T> class vec4; template <class T> inline T DotProduct(const vec4<T> &a, const vec4<T> &b) { return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; } template <class T> inline vec4<T> CrossProduct(const vec4<T> &a, const vec4<T> &b) { return vec4<T>(a.y ...
22.04
166
(translation_unit) "#pragma once\n\ntemplate <class T> class vec3;\ntemplate <class T> class vec4;\n\ntemplate <class T>\ninline T DotProduct(const vec4<T> &a, const vec4<T> &b)\n{\n return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w;\n}\n\ntemplate <class T>\ninline vec4<T> CrossProduct(const vec4<T> &a, const vec4...
1,829
82
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 22.04, "nodes": 1247, "errors": 0, "source_hash": "57c185f11aa3810c2e6c93d732ceee8b07891d6617592df9656671a4d2dde303", "categorized_nodes": 896}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
10,560
c
#pragma once #include "il2cpp.h" void Dpr_Contest_DanceSettings___ctor (Dpr_Contest_DanceSettings_o* __this, const MethodInfo* method_info);
46
3
(translation_unit) "#pragma once\n\n#include "il2cpp.h"\n\nvoid Dpr_Contest_DanceSettings___ctor (Dpr_Contest_DanceSettings_o* __this, const MethodInfo* method_info);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "il2cpp.h"\n" (#include...
31
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 46.0, "nodes": 21, "errors": 0, "source_hash": "c58e8303d6343baec0066a2b5c356e453a77eddcd819bd17e11dd0a976532f46", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
10,561
c
/* * main.h * * Created on: Dec 1, 2020 * Author: spizyteck */ #ifndef MAIN_H_ #define MAIN_H_ #define ENABLECLOCK (1) //DEFINING FOR PD11 AND PD12 AS OUTPUTS #define CLEAR_PD11 (~(3)) //For clearing the bit positions for PD11 in the mode register #define SET_PD11_AS_OUTPUT (1)...
30.05
190
(translation_unit) "/* \n * main.h \n * \n * Created on: Dec 1, 2020 \n * Author: spizyteck \n */ \n \n#ifndef MAIN_H_ \n#define MAIN_H_ \n \n#define ENABLECLOCK (1) \n \n//DEFINING FOR PD11 AND PD12 AS OUTPUTS \n#define CLEAR_PD11 (~(3)) //For clearing the bit positions for PD11 in the mode registe...
941
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 30.05, "nodes": 698, "errors": 0, "source_hash": "5ad6faf4acfed53e8f223dc349af6406a3c7968c87133be9c23a0941784d03ca", "categorized_nodes": 472}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,562
c
#include "timer0.h" #include <plib/timers.h> #include "i2c2message.h" void initTimer0() { OpenTimer0(TIMER_INT_ON & T0_16BIT & T0_SOURCE_INT & T0_PS_1_128 ); // Timer0 interrupt at low priority INTCON2bits.TMR0IP = 0; // allow interrupts from...
19.5
20
(translation_unit) "#include "timer0.h"\n\n#include <plib/timers.h>\n#include "i2c2message.h"\n\n\nvoid initTimer0()\n{\n OpenTimer0(TIMER_INT_ON &\n T0_16BIT &\n T0_SOURCE_INT &\n T0_PS_1_128 );\n\n // Timer0 interrupt at low priority\n INTCON2bits.TMR0IP ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.5, "nodes": 45, "errors": 0, "source_hash": "047f245e250c5cf020b07581b74985cf3e965fbe930379512f59eeb79f2121f5", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,563
c
/** * Test copy-save switch in coordinate creation * * $Id: tst_lonlat.c 719 2011-04-26 17:39:51Z srinath22 $ */ #include "nccf_coord.h" #include <stdlib.h> #include <assert.h> #include <netcdf.h> #include <nccf_handle_error.h> int main() { const int ndims = 2; const int dims[] = {10, 11}; const double lon...
28.33
54
(translation_unit) "/**\n * Test copy-save switch in coordinate creation\n *\n * $Id: tst_lonlat.c 719 2011-04-26 17:39:51Z srinath22 $\n */\n\n#include "nccf_coord.h"\n#include <stdlib.h>\n#include <assert.h>\n#include <netcdf.h>\n#include <nccf_handle_error.h>\n\nint main() {\n\n const int ndims = 2;\n const int di...
576
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.33, "nodes": 351, "errors": 0, "source_hash": "704a5f280d225301034baf527e83b74ab75f937307fe81eda495e00fb5808d9f", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,564
c
/* * Copyright(c) 2012-2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SOURCE_OCTF_ANALYTICS_STATISTICS_FILESYSTEMSTATISTICS_H #define SOURCE_OCTF_ANALYTICS_STATISTICS_FILESYSTEMSTATISTICS_H #include <map> #include <string> #include <octf/analytics/statistics/IoStatistics.h> #include <oct...
34.24
71
(translation_unit) "/*\n * Copyright(c) 2012-2018 Intel Corporation\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef SOURCE_OCTF_ANALYTICS_STATISTICS_FILESYSTEMSTATISTICS_H\n#define SOURCE_OCTF_ANALYTICS_STATISTICS_FILESYSTEMSTATISTICS_H\n\n#include <map>\n#include <string>\n#include <octf/analytics/statistics...
364
19
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.24, "nodes": 215, "errors": 0, "source_hash": "429e427447b7f4cee263c0fc98e1459bdf4da75d4f03492851500c8bb98e101f", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,565
c
#pragma once void writeIndent(int currentIdent); int getNextIdent(); int main();
19.25
4
(translation_unit) "#pragma once\nvoid writeIndent(int currentIdent);\nint getNextIdent();\nint main();" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void writeIndent(int currentIdent);" (primitive_type) "void" (function_declarator) "writeIndent(i...
31
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 19.25, "nodes": 21, "errors": 0, "source_hash": "b186cbca088acc8bc9a2bfbda74fd7fb085a1f5afa74eab2f92da9cfccd0a4e1", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,566
c
#ifndef SHAKESPEARE_H_IS_INCLUDED #define SHAKESPEARE_H_IS_INCLUDED #include "shakespeare/shakespeare.h" #endif
18
6
(translation_unit) "#ifndef SHAKESPEARE_H_IS_INCLUDED\n#define SHAKESPEARE_H_IS_INCLUDED\n\n#include "shakespeare/shakespeare.h"\n\n\n\n\n\n#endif" (preproc_ifdef) "#ifndef SHAKESPEARE_H_IS_INCLUDED\n#define SHAKESPEARE_H_IS_INCLUDED\n\n#include "shakespeare/shakespeare.h"\n\n\n\n\n\n#endif" (#ifndef) "#ifndef" ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.0, "nodes": 10, "errors": 0, "source_hash": "c8807ef78eeedf3779971d973f524e22f5bbff92ed7374baa4cbd1887f1cf966", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SHA...
10,567
c
#pragma once #include "array.h" #include "astro.h" #include "constants.h" #include "iers_bulletin_a.h" #include "map.h" #include "state.h"
18.86
7
(translation_unit) "#pragma once\n\n#include "array.h"\n#include "astro.h"\n#include "constants.h"\n#include "iers_bulletin_a.h"\n#include "map.h"\n#include "state.h"\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "array.h"\n" (#includ...
40
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 18.86, "nodes": 21, "errors": 0, "source_hash": "e87a8f0cb0c05f0c7e5ce0503924ddd2cdeafd1014b5fa5de349cd5414a0a6d3", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,568
c
/************************************************************************ * dlb_pmd * Copyright (c) 2021, Dolby Laboratories Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1...
28.1
133
(translation_unit) "/************************************************************************\n * dlb_pmd\n * Copyright (c) 2021, Dolby Laboratories Inc.\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following condi...
520
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 28.1, "nodes": 325, "errors": 0, "source_hash": "f351eaf6c1ba79d771b8e82efbf72142b12c88fdd867e9ebc0148773384d8c11", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,569
c
// // AppDelegate.h // BetterKVO // // Created by <NAME> on 6/21/16. // Copyright © 2016 Kei. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
20.75
12
(translation_unit) "//\n// AppDelegate.h\n// BetterKVO\n//\n// Created by <NAME> on 6/21/16.\n// Copyright © 2016 Kei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n" (comment) "//...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.75, "nodes": 25, "errors": 0, "source_hash": "eb739d731ca30b5f7dced0fe5e67b69e551307df8d41db6b761963a857cec363", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,570
c
#include <jni.h> #ifdef __cplusplus extern "C" { #endif //----------------------------------------------charater method jlong Java_com_wanthings_ZinniaCore_characterNew (JNIEnv *envenv, jobject jobj); void Java_com_wanthings_ZinniaCore_characterDestroy (JNIEnv *env, jobject jobj, jlong character); void Java_com_wa...
38.56
94
(translation_unit) "#include <jni.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n//----------------------------------------------charater method\n\njlong Java_com_wanthings_ZinniaCore_characterNew\n(JNIEnv *envenv, jobject jobj);\n\nvoid Java_com_wanthings_ZinniaCore_characterDestroy\n(JNIEnv *env, jobject jobj, jlo...
842
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 38.56, "nodes": 601, "errors": 0, "source_hash": "42ac2984b85f25007e58af5f922b6fbcf481b3973c0e2b1c1f1065b8d2436af6", "categorized_nodes": 469}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,571
c
#include "unity.h" extern void test_dec(void); extern void test_hex(void); extern void test_singles(void); extern void test_comments(void); extern void test_strings(void); int main(void) { UNITY_BEGIN(); RUN_TEST(test_dec); RUN_TEST(test_hex); RUN_TEST(test_singles); RUN_TEST(test_comments); R...
23.47
15
(translation_unit) "#include "unity.h"\n\nextern void test_dec(void);\nextern void test_hex(void);\nextern void test_singles(void);\nextern void test_comments(void);\nextern void test_strings(void);\n\nint main(void) {\n UNITY_BEGIN();\n RUN_TEST(test_dec);\n RUN_TEST(test_hex);\n RUN_TEST(test_singles);\n ...
134
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.47, "nodes": 82, "errors": 0, "source_hash": "bb515202f5ea4a5c1ba41476dc7f3b26951e552348a845f244ec9e000c5440fd", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,572
c
/* * Copyright (c) 2015, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this...
36.57
101
(translation_unit) "/*\n * Copyright (c) 2015, Intel Corporation\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * \n * 1. Redistributions of source code must retain the above co...
447
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.57, "nodes": 273, "errors": 0, "source_hash": "0a6b74606d09335c06d9cca111422ca782dcd220607f299d966c89311b86c1e2", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,573
c
// // YtelAPIV3 // // This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). // #ifndef APIMATIC_AUDIOFORMATENUM #define APIMATIC_AUDIOFORMATENUM enum AudioFormatEnum { AudioFormatMp3, //mp3 file AudioFormatWav, //wav file }; #endif
18.53
15
(translation_unit) "// \n// YtelAPIV3 \n// \n// This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). \n// \n#ifndef APIMATIC_AUDIOFORMATENUM \n#define APIMATIC_AUDIOFORMATENUM \n \nenum AudioFormatEnum \n{ \n AudioFormatMp3, //mp3 file \n AudioFormatWav, //wav file \n}; \n \n...
28
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.53, "nodes": 15, "errors": 0, "source_hash": "950304a461743e3cadee3fca31c982d68c9ce1125fa0c1cae103bdbededb1e41", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,574
c
#include"stdio.h" #include"unistd.h" #include"stdlib.h" #include"string.h" #include"time.h" #include"netinet/in.h" #include"sys/socket.h" #include"sys/types.h" #include"sys/stat.h" #include"arpa/inet.h" #include"pwd.h" #include"IPMSG.H" #include"pthread.h" #include"client.h" #include"ip.h" #include"fcntl.h" extern cha...
29.03
90
(translation_unit) "#include"stdio.h"\n#include"unistd.h"\n#include"stdlib.h"\n#include"string.h"\n#include"time.h"\n#include"netinet/in.h"\n#include"sys/socket.h"\n#include"sys/types.h"\n#include"sys/stat.h"\n#include"arpa/inet.h"\n#include"pwd.h"\n#include"IPMSG.H"\n#include"pthread.h"\n#include"client.h"\n#include"i...
771
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 29.03, "nodes": 443, "errors": 0, "source_hash": "fcfcd6521f4736359c279431302d73f0bb6ffd84adf158d2e7e64bd23d873bd0", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,575
c
#ifndef _CONFIGFILE_H_ #define _CONFIGFILE_H_ class SOCmnXmlTreeElement : public SOCmnElement, virtual public SOCmnElementNameString, virtual public SOCmnElementListBranch { public: SOCmnXmlTreeElement(LPCTSTR elementName, SOCmnXmlTreeElement* pParentElement); SOCmnList<SOCmnXmlTreeElement> *getXmlElements(void)...
25.1
50
(translation_unit) "#ifndef _CONFIGFILE_H_\n#define _CONFIGFILE_H_\n\nclass SOCmnXmlTreeElement :\n public SOCmnElement,\n virtual public SOCmnElementNameString,\n virtual public SOCmnElementListBranch\n{\npublic:\n SOCmnXmlTreeElement(LPCTSTR elementName, SOCmnXmlTreeElement* pParentElement);\n\n SOCmnList<SOCmnXmlTre...
348
14
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 25.1, "nodes": 223, "errors": 0, "source_hash": "1fdef90ef5ba85a77d0af725837a761465fc1780babe08ad09095de64bdb5c8b", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,576
c
/** \file obex_main.h Implementation of the Object Exchange Protocol OBEX. OpenOBEX library - Free implementation of the Object Exchange protocol. Copyright (c) 1998, 1999, 2000 <NAME>, All Rights Reserved. Copyright (c) 1999, 2000 <NAME>, All Rights Reserved. OpenOBEX is free software; you can redistribute it ...
36.62
98
(translation_unit) "/**\n \file obex_main.h\n Implementation of the Object Exchange Protocol OBEX.\n OpenOBEX library - Free implementation of the Object Exchange protocol.\n\n Copyright (c) 1998, 1999, 2000 <NAME>, All Rights Reserved.\n Copyright (c) 1999, 2000 <NAME>, All Rights Reserved.\n\n OpenOBEX is free softwa...
604
8
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 36.62, "nodes": 405, "errors": 0, "source_hash": "94bd5dacc28a3da2fd0ba21ada077aeffab3ec4259b9ef30f778857aa2a4f8d4", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,577
c
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2013, <NAME>, FU Berlin // All rights reserved. // // Redistribution and use in s...
34.92
211
(translation_unit) "// ==========================================================================\n// SeqAn - The Library for Sequence Analysis\n// ==========================================================================\n// Copyright (c) 2006-2013, <NAME>, FU Berlin\n// All rights reserved.\n//\n// R...
289
7
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 34.92, "nodes": 134, "errors": 0, "source_hash": "a39273e5c957de9ea983361a145f706aedba2e99ebc47c14f835f77df709b46c", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,578
c
#include<stdio.h> void getNums(long long num,int nums[]); void printNum(int num); void exchange(int input[],int length); //1234567890987654321123456789 //1844674407370955161 //超界了,换方法,这个只能处理在longlong即1844674407370955161以内的 int main() { long long input=0; scanf("%lld",&input); int nums[100];//小于2^100的数字最多有99位十进制数,所...
18.46
76
(translation_unit) "#include<stdio.h>\n\nvoid getNums(long long num,int nums[]);\nvoid printNum(int num);\nvoid exchange(int input[],int length);\n\n//1234567890987654321123456789\n//1844674407370955161\n//超界了,换方法,这个只能处理在longlong即1844674407370955161以内的\nint main()\n{\n long long input=0;\n scanf("%lld",&input);\n int n...
758
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 18.46, "nodes": 413, "errors": 0, "source_hash": "3c4cea8a7bdf23def85422db7bd673ba61ce5de4ac8a8fcb5da04c3e8bad3373", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,579
c
/** * \file BrlyTtimp_blks.h * invocation / return data blocks for operation pack BrlyTtimp (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifndef BRLYTTIMP_BLKS_H #define BRLYTTIMP_BLKS_H #include "Brly...
30.55
33
(translation_unit) "/**\n * \file BrlyTtimp_blks.h\n * invocation / return data blocks for operation pack BrlyTtimp (declarations)\n * \copyright (C) 2016-2020 MPSI Technologies GmbH\n * \author <NAME> (auto-generation)\n * \date created: 11 Jan 2021\n */\n// IP header --- ABOVE\n\n#ifndef BRLYTTIMP_BLKS_H\n#define BR...
260
15
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.55, "nodes": 141, "errors": 0, "source_hash": "031f872a6432474745f7cdd410e0fcfdc618db54bb18933134154f8f9d213d36", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,580
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @interface WAudioCodeConvert : NSObject { void *_encodePsEnc; } + (id)instance; @property(nonatomic) void *en...
32.24
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@interface WAudioCodeConvert : NSObject\n{\n void *_encodePsEnc;\n}\n\n+ (id)instan...
127
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.24, "nodes": 79, "errors": 0, "source_hash": "158a84d684f290552aa49dd3dcaea39590eb6b465605f39e1e220d121db7a956", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,581
c
/*++ Copyright (c) 2013, 2014 Microsoft Corporation Microsoft Confidential */ /* The definitions in this file are #included in TpmTypes.h These are the custom additions for the TPMT_SYM_DEF class */ #define TPMT_SYM_DEF_CUSTOM_CLONE(l,r) ///<summary>Create a NULL SYM_DEF_OBJECT (one with a TPM_A...
20.36
22
(translation_unit) "/*++ \n \nCopyright (c) 2013, 2014 Microsoft Corporation \nMicrosoft Confidential \n \n*/ \n \n/* \nThe definitions in this file are #included in TpmTypes.h \n \nThese are the custom additions for the TPMT_SYM_DEF class \n \n*/ \n \n#define TPMT_SYM_DEF_CUSTOM_CLONE(l,r) \n \n///<summary>Create a N...
49
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.36, "nodes": 23, "errors": 0, "source_hash": "65fdc1ef7613cb203ff63ebd41e6de1df6edff4dc7dd3516be649d0687508842", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
10,582
c
// // ApplicationView.h // Boat // // Created by bin on 19/10/14. // Copyright (c) 2014 binku. All rights reserved. // #import <UIKit/UIKit.h> @interface ApplicationView : UIView @end
17.8
10
(translation_unit) "//\n// ApplicationView.h\n// Boat\n//\n// Created by bin on 19/10/14.\n// Copyright (c) 2014 binku. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ApplicationView : UIView\n\n@end\n" (comment) "//" (comment) "// ApplicationView.h" (comment) "// Boat" (comment) "//" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.8, "nodes": 9, "errors": 0, "source_hash": "95adc2c262fc4640df25614a644ab5c88f1e57ca47ea9c56545a7483df579736", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
10,583
c
// // Person.h // // // Created by leyi on 15/8/15. // // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class Company; @interface Person : NSManagedObject @property (nonatomic, retain) NSNumber * age; @property (nonatomic, retain) NSString * company; @property (nonatomic, retain) NSString * n...
24.29
17
(translation_unit) "//\n// Person.h\n// \n//\n// Created by leyi on 15/8/15.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n@class Company;\n\n@interface Person : NSManagedObject\n\n@property (nonatomic, retain) NSNumber * age;\n@property (nonatomic, retain) NSString * company;\n@prop...
117
24
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.29, "nodes": 85, "errors": 0, "source_hash": "2ea1d514517720570093f2f5205e932d2200baf32513c101120bfe73f41181b6", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,584
c
#ifndef _NPY_ENDIAN_H_ #define _NPY_ENDIAN_H_ /* * NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in * endian.h */ #ifdef NPY_HAVE_ENDIAN_H /* Use endian.h if available */ #include <endian.h> #define NPY_BYTE_ORDER __BYTE_ORDER #if (__BYTE_ORDER == __LITTLE_ENDIAN) #defi...
30.88
32
(translation_unit) "#ifndef _NPY_ENDIAN_H_\n#define _NPY_ENDIAN_H_\n\n/*\n * NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in\n * endian.h\n */\n\n#ifdef NPY_HAVE_ENDIAN_H\n /* Use endian.h if available */\n #include <endian.h>\n #define NPY_BYTE_ORDER __BYTE_ORDER\n #if (__BYTE_ORDER =...
133
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.88, "nodes": 108, "errors": 0, "source_hash": "f3cc4b0948c0886c4d299f2f489ceddb524f9194a6bb15e642a6de927fab4a9e", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,585
c
// // VideoRoomChannel.h // RTCVideoLiveRoom // // Created by aliyun on 2020/8/12. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface VideoRoomChannel : NSObject @property (copy,nonatomic) NSString *channelId; @property (copy,nonatomic) NSString *ownerId; @property (copy,nonatomic) NSS...
27.81
16
(translation_unit) "//\n// VideoRoomChannel.h\n// RTCVideoLiveRoom\n//\n// Created by aliyun on 2020/8/12.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface VideoRoomChannel : NSObject\n\n@property (copy,nonatomic) NSString *channelId;\n@property (copy,nonatomic) NSString *ownerId...
116
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.81, "nodes": 77, "errors": 0, "source_hash": "7b1c5ae653d38b069ba65663a81875bb33d0946fabdb44beab15b4745b41aa6f", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,586
c
// Changes Copyright (c) 2019, <NAME>. // Original version by emmarose88: // https://github.com/emmarose88/HungarianAlgorithm/blob/master/matching.cpp #pragma once #include <cmath> #include <algorithm> #include <Eigen/Dense> using namespace std; struct Hungarian { protected: enum class MinOrMax { Min, Max ...
27.9
256
(translation_unit) "// Changes Copyright (c) 2019, <NAME>.\n// Original version by emmarose88:\n// https://github.com/emmarose88/HungarianAlgorithm/blob/master/matching.cpp\n\n#pragma once\n\n\n#include <cmath>\n\n#include <algorithm>\n\n#include <Eigen/Dense>\n\nusing namespace std;\n\nstruct Hungarian\n{\nprotected:\...
2,077
58
{"language": "c", "success": true, "metadata": {"lines": 256, "avg_line_length": 27.9, "nodes": 1230, "errors": 0, "source_hash": "3656cce0a1fdd59b3e586e16243154b449a4fc93c6d9a68c835d95cfc15f4d4c", "categorized_nodes": 853}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,587
c
/* * Cpp Code File: mainBluetooth.cpp * Very small Soccer - Bluetooth Team 2015. * Descrição: Programa principal de comunicação que envia dados para cada robô (N robôs) atraves do bluetooth de uma workstatioN (computador). * Decription: Main program of communication that send data to each robots (N robots) by blue...
30.92
146
(translation_unit) "/*\n * Cpp Code File: mainBluetooth.cpp\n * Very small Soccer - Bluetooth Team 2015.\n * Descrição: Programa principal de comunicação que envia dados para cada robô (N robôs) atraves do bluetooth de uma workstatioN (computador).\n * Decription: Main program of communication that send data to each r...
445
7
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 30.92, "nodes": 282, "errors": 0, "source_hash": "6b5b29ee92d0611990629913de87f790d09266bd0f4f880ca841b8a6e49dff9f", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f __B...
10,588
c
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <F...
28.74
53
(translation_unit) "/**\n * Copyright (c) 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same ...
203
29
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.74, "nodes": 135, "errors": 0, "source_hash": "a0af1079b1d1a1ebae4eaa4ab057622aa4a080eec1b1bc2b4aecf169da887c0a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,589
c
#pragma once #include <glad/glad.h> unsigned int CreatValueTextureF(float value); unsigned int CreatValueTextureV3(float* value); unsigned int CreatValueTextureV3v(float red, float green, float blue); unsigned int LoadTexture(const char *path, GLint colorSpace, GLint internalColorSpace);
40.43
7
(translation_unit) "#pragma once\n\n#include <glad/glad.h>\n\n\nunsigned int CreatValueTextureF(float value);\n\nunsigned int CreatValueTextureV3(float* value);\n\nunsigned int CreatValueTextureV3v(float red, float green, float blue);\n\nunsigned int LoadTexture(const char *path, GLint colorSpace, GLint internalColorSp...
81
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 40.43, "nodes": 62, "errors": 0, "source_hash": "a6fa9cb9c1ff0bbaeac759ac0b621f68f51d0e2d6585f8dc3e4820a484a9641f", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,590
c
/* * Copyright (c) 2017-2019 Intel Corporation, Inc. All rights reserved. * (C) Copyright 2020 Hewlett Packard Enterprise Development LP * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version ...
32.11
309
(translation_unit) "/*\n * Copyright (c) 2017-2019 Intel Corporation, Inc. All rights reserved.\n * (C) Copyright 2020 Hewlett Packard Enterprise Development LP\n *\n * This software is available to you under a choice of one of two\n * licenses. You may choose to be licensed under the terms of the GNU\n * General Pub...
2,664
6
{"language": "c", "success": true, "metadata": {"lines": 309, "avg_line_length": 32.11, "nodes": 1748, "errors": 0, "source_hash": "56820aa07f753c49577ebda1e62ba3cf4374963cb781856482a143818154c801", "categorized_nodes": 1310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
10,591
c
/* * QEMU host block devices * * Copyright (c) 2003-2008 <NAME> * * This work is licensed under the terms of the GNU GPL, version 2 or * later. See the COPYING file in the top-level directory. */ #ifndef BLOCKDEV_H #define BLOCKDEV_H #include "block.h" #include "qemu-queue.h" void blockdev_mark_auto_del(Bloc...
34.22
49
(translation_unit) "/*\n * QEMU host block devices\n *\n * Copyright (c) 2003-2008 <NAME>\n *\n * This work is licensed under the terms of the GNU GPL, version 2 or\n * later. See the COPYING file in the top-level directory.\n */\n\n#ifndef BLOCKDEV_H\n#define BLOCKDEV_H\n\n#include "block.h"\n#include "qemu-queue.h"\...
429
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 34.22, "nodes": 314, "errors": 0, "source_hash": "d61b440901b6dcf7c6807c86098c6058a103764c0bc3284a3c91384bd5287b02", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,592
c
/** * Copyright (2012-2014) JDSU * File: event_frame.h * Original author: <NAME> (<EMAIL>) * Purpose: defines the Frame event class */ #ifndef XTREME_COMMON_EVENT_FRAME_H_ #define XTREME_COMMON_EVENT_FRAME_H_ #include "xtreme/common/xtreme_types.h" #include "xtreme/common/event.h" #include "xtreme/common/status_...
33.12
99
(translation_unit) "/**\n * Copyright (2012-2014) JDSU\n * File: event_frame.h\n * Original author: <NAME> (<EMAIL>)\n * Purpose: defines the Frame event class\n */\n\n#ifndef XTREME_COMMON_EVENT_FRAME_H_\n#define XTREME_COMMON_EVENT_FRAME_H_\n\n#include "xtreme/common/xtreme_types.h"\n#include "xtreme/common/event.h"\...
551
21
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 33.12, "nodes": 297, "errors": 0, "source_hash": "ece9ce8df5cffce129b885f5f83265bb8892cd4bb5c60865dd130b68b58b0210", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef XTREME...
10,593
c
// // headerDesignerConfig.h // MobileProject 一些模块key值名称 // // Created by Mingoy on 16/9/14. // Copyright © 2016年 Mingoy. All rights reserved. // #ifndef headerDesignerConfig_h #define headerDesignerConfig_h //键值 static NSString * const kDesignerModuleActionsDictionaryKeyName=@"name"; static NSString * const kDes...
30.4
15
(translation_unit) "//\n// headerDesignerConfig.h\n// MobileProject 一些模块key值名称\n//\n// Created by Mingoy on 16/9/14.\n// Copyright © 2016年 Mingoy. All rights reserved.\n//\n\n#ifndef headerDesignerConfig_h\n#define headerDesignerConfig_h\n\n//键值\nstatic NSString * const kDesignerModuleActionsDictionaryKeyName=@"nam...
71
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.4, "nodes": 43, "errors": 0, "source_hash": "4e5bcc346dabdc6886338479d2abea84f87d599b62b41140f903c210f6249441", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ignerConf...
10,594
c
#include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" int main(void) { printf(1, "Total Number of Open Files: %d\n", numOpenFiles()); int fd; fd = open("backup", O_CREATE | O_RDWR); printf(1, "Total Number of Open Files: %d\n", numOpenFiles()); close(fd); printf(1, "Total Nu...
26
14
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n#include "fcntl.h"\nint main(void)\n{\n\n printf(1, "Total Number of Open Files: %d\n", numOpenFiles());\n int fd;\n fd = open("backup", O_CREATE | O_RDWR);\n printf(1, "Total Number of Open Files: %d\n", numOpenFiles());\n clo...
136
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.0, "nodes": 67, "errors": 0, "source_hash": "5fe52ac082d121f099c5e41b9a8713118effc630a1cbcc78ac5575ff70c7fb06", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,595
c
#include "debug.h" #include "common.h" #define DEBUG_LOGGING_ON 0 #if DEBUG_LOGGING_ON static void log_touch(const struct Touch *touch){ const char *status_string; const char *type_string; const char *extra_string; if ( touch->flags & (1<<MT_NEW) ){ status_string = "NEW"; }else if ( touch-...
29.39
54
(translation_unit) "#include "debug.h"\n#include "common.h"\n\n#define DEBUG_LOGGING_ON 0\n\n#if DEBUG_LOGGING_ON\nstatic void log_touch(const struct Touch *touch){\n const char *status_string;\n const char *type_string;\n const char *extra_string;\n if ( touch->flags & (1<<MT_NEW) ){\n status_string...
509
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 29.39, "nodes": 274, "errors": 0, "source_hash": "32124aa64f29efeed670e5e1b2416a48c8a88e4fb63b4fa68a410f6bcd23ce74", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,596
c
/* * Stampare una piramide rovesciata utilizzando il carattere #, * in modo che la punta della piramide sia in basso e la base in alto. * Per esempio se ALTEZZA=3 si ottiene il seguente output: * * ##### * ### * # * * Per la consegna utilizzare ALTEZZA=6 * */ #include <stdio.h> int main (void) { ...
34.65
34
(translation_unit) "/*\n * Stampare una piramide rovesciata utilizzando il carattere #, \n * in modo che la punta della piramide sia in basso e la base in alto. \n * Per esempio se ALTEZZA=3 si ottiene il seguente output: \n * \n * #####\n * ###\n * #\n * \n * Per la consegna utilizzare ALTEZZA=6\n * \n */\n#includ...
149
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.65, "nodes": 81, "errors": 0, "source_hash": "a6a9844678509d468265f25d85dab4bd7068d1d92178b10b2822f9446108a148", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,597
c
#ifndef __FINDATTRS_H__ #define __FINDATTRS_H__ #include "baton.h" using namespace v8; Handle<Value> FindAttrs(const Arguments& args); #endif /* __FINDATTRS_H__ */
26.33
6
(translation_unit) "#ifndef __FINDATTRS_H__\n#define __FINDATTRS_H__\n\n#include "baton.h"\n\nusing namespace v8;\n\nHandle<Value> FindAttrs(const Arguments& args);\n\n#endif /* __FINDATTRS_H__ */" (preproc_ifdef) "#ifndef __FINDATTRS_H__\n#define __FINDATTRS_H__\n\n#include "baton.h"\n\nusing namespace v8;\n\nHandle...
40
2
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.33, "nodes": 27, "errors": 0, "source_hash": "75b8dec9820fa2a434ea0222d1c6db6b7f2f527c7a15df866251170a071ef017", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,598
c
/** * semi_positive_filter.h * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
27.94
31
(translation_unit) "/**\n * semi_positive_filter.h\n * Copyright 2016 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n ...
87
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.94, "nodes": 53, "errors": 0, "source_hash": "b5f6e13c65a26c2c3780eb7d9b64df6e91d303cbbdac3451c360100832346e3c", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,599