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
/* aes.h The aes/rijndael block cipher. Copyright (C) 2001, 2013 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; ...
32.66
154
(translation_unit) "/* aes.h\n\n The aes/rijndael block cipher.\n\n Copyright (C) 2001, 2013 <NAME>\n\n This file is part of GNU Nettle.\n\n GNU Nettle is free software: you can redistribute it and/or\n modify it under the terms of either:\n\n * the GNU Lesser General Public License as published by the Fr...
848
5
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 32.66, "nodes": 635, "errors": 0, "source_hash": "f3e4c1e80148ff9240e9038a8184e0f250a4749600dea74922d416bc9ef065b6", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,800
c
#pragma once #include "render/private_render.h" #include "rhi_common.h" namespace luna { namespace render { enum LunarDescriptorRangeType { LUNAR_DESCRIPTOR_RANGE_TYPE_SRV = 0, LUNAR_DESCRIPTOR_RANGE_TYPE_UAV = (LUNAR_DESCRIPTOR_RANGE_TYPE_SRV + 1), LUNAR_DESCRIPTOR_RANGE_TYPE_CBV = (LUNAR_DESCRIPTOR_RANGE_TYPE_UAV...
32.06
122
(translation_unit) "#pragma once\n#include "render/private_render.h"\n#include "rhi_common.h"\nnamespace luna\n{\nnamespace render\n{\n\nenum LunarDescriptorRangeType\n{\n LUNAR_DESCRIPTOR_RANGE_TYPE_SRV = 0,\n LUNAR_DESCRIPTOR_RANGE_TYPE_UAV = (LUNAR_DESCRIPTOR_RANGE_TYPE_SRV + 1),\n LUNAR_DESCRIPTOR_RANGE_TYPE_CBV = ...
566
15
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 32.06, "nodes": 374, "errors": 0, "source_hash": "0f6c43909dbe2c80b5b86137be69bb3547306c51149afa21c05b1c7583fa05a3", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,801
c
// Copyright 2014 Velodyne Acoustics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
37.83
47
(translation_unit) "// Copyright 2014 Velodyne Acoustics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless re...
189
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 37.83, "nodes": 118, "errors": 0, "source_hash": "a4fdbff9844c4fede02bb449d74dd8b6f0b62b13619c6778179362f8fd2f9ab4", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,802
c
/* * This text was generated automatically * It provides the ISC implementation of * MPI_Cart_rank */ #include <_mpi.h> #ifdef __GNUC__ void MPI_CART_RANK() __attribute__ ((weak, alias("iscf_cart_rank"))); void mpi_cart_rank() __attribute__ ((weak, alias("iscf_cart_rank"))); void mpi_cart_rank_() __attribute__ (...
33.38
16
(translation_unit) "/*\n * This text was generated automatically\n * It provides the ISC implementation of\n * MPI_Cart_rank\n */\n\n#include <_mpi.h>\n\n#ifdef __GNUC__\nvoid MPI_CART_RANK() __attribute__ ((weak, alias("iscf_cart_rank")));\nvoid mpi_cart_rank() __attribute__ ((weak, alias("iscf_cart_rank")));\nvoid mp...
166
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.38, "nodes": 96, "errors": 0, "source_hash": "a3be675ecb0231a838be378b1b6c285bff8a34ae047aaa5f7f43a7656d77cd6e", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,803
c
#ifndef MIMOSA_MAIN_H #define MIMOSA_MAIN_H #endif //MIMOSA_MAIN_H
21.33
3
(translation_unit) "#ifndef MIMOSA_MAIN_H\n#define MIMOSA_MAIN_H\n\n#endif //MIMOSA_MAIN_H\n" (preproc_ifdef) "#ifndef MIMOSA_MAIN_H\n#define MIMOSA_MAIN_H\n\n#endif" (#ifndef) "#ifndef" (identifier) "MIMOSA_MAIN_H" (preproc_def) "#define MIMOSA_MAIN_H\n" (#define) "#define" (identifier) "MIMO...
9
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.33, "nodes": 7, "errors": 0, "source_hash": "0cc2b4d9f51c1da31d51882f0e0f82ddbb6cd3b3fa7d61180fb408f65776ef4c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MIM...
5,804
c
#ifndef PROJECT_HEADER_component867_2_H #define PROJECT_HEADER_component867_2_H int component867_2(); #endif // PROJECT_HEADER_component867_2_H
28
5
(translation_unit) "#ifndef PROJECT_HEADER_component867_2_H\n#define PROJECT_HEADER_component867_2_H\n\n\n\nint component867_2();\n\n#endif // PROJECT_HEADER_component867_2_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component867_2_H\n#define PROJECT_HEADER_component867_2_H\n\n\n\nint component867_2();\n\n#endif" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.0, "nodes": 12, "errors": 0, "source_hash": "037ba4ea778cddc1787375bf2a47d4209267dcc1aa98122ad7639543460ff70a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
5,805
c
#include <stdlib.h> #include <scic/errno.h> #include <cml/math.h> #include <cml/roots.h> /** * Find the root of a function using Newton's algorithm with the Armijo line * search to ensure the absolute value of the function decreases along the * iterations. The descent direction at step k is given by * * \f[ ...
31.64
76
(translation_unit) "#include <stdlib.h>\n#include <scic/errno.h>\n#include <cml/math.h>\n#include <cml/roots.h>\n\n/**\n * Find the root of a function using Newton's algorithm with the Armijo line\n * search to ensure the absolute value of the function decreases along the\n * iterations. The descent direction at step ...
348
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 31.64, "nodes": 221, "errors": 0, "source_hash": "661a64d1e0063319e4b59df22a7578ece3d2f10556b2777e284741ab99d5705f", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,806
c
#include "lib9.h" #include <float.h> #include "mathi.h" void FPinit(void) { _controlfp(_EM_INEXACT,_MCW_EM); // abort on underflow, etc. } ulong getFPstatus(void) { ulong fsr = 0, fsr32 = _statusfp(); if(fsr32&_SW_INEXACT) fsr |= INEX; if(fsr32&_SW_OVERFLOW) fsr |= OVFL; if(fsr32&_SW_UNDERFLOW) fsr |= UNFL; if(...
23.35
77
(translation_unit) "#include "lib9.h"\n#include <float.h>\n#include "mathi.h"\n\nvoid\nFPinit(void)\n{\n _controlfp(_EM_INEXACT,_MCW_EM); // abort on underflow, etc.\n}\n\nulong\ngetFPstatus(void)\n{\n ulong fsr = 0, fsr32 = _statusfp();\n if(fsr32&_SW_INEXACT) fsr |= INEX;\n if(fsr32&_SW_OVERFLOW) fsr |= OVFL;\n if(fs...
803
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 23.35, "nodes": 499, "errors": 0, "source_hash": "3769b1b01dcfea369ca824f8245ce0a01b8fd977bbd3d0766d058247c8ddeb34", "categorized_nodes": 397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,807
c
// CircleGeometry.h // // <NAME> // Last updated: 09/21/2015 #ifndef CIRCLE_GEOMETRY_H #define CIRCLE_GEOMETRY_H #include "RigidBody2DGeometry.h" class CircleGeometry final : public RigidBody2DGeometry { public: explicit CircleGeometry( const scalar& r ); explicit CircleGeometry( std::istream& input_stream ); ...
41
24
(translation_unit) "// CircleGeometry.h\n//\n// <NAME>\n// Last updated: 09/21/2015\n\n#ifndef CIRCLE_GEOMETRY_H\n#define CIRCLE_GEOMETRY_H\n\n#include "RigidBody2DGeometry.h"\n\nclass CircleGeometry final : public RigidBody2DGeometry\n{\n\npublic:\n\n explicit CircleGeometry( const scalar& r );\n explicit CircleGeom...
267
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 41.0, "nodes": 142, "errors": 0, "source_hash": "e1dce95e35e80647601cdbb4d7490199c76ba1ea619ad6008bbbd90c2878764d", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,808
c
/* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **============================================================================== */ #include "miextras.h" #include "instanc...
26.08
25
(translation_unit) "/*\n**==============================================================================\n**\n** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE\n** for license information.\n**\n**==============================================================================\n*/\n\n#include "...
114
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.08, "nodes": 72, "errors": 0, "source_hash": "72ea25301bc758a051c3f15c933dada4f25b0bf44d21acbbfe03c8649c0f5dad", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,809
c
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ #include <stdint.h> #include <memory> #inclu...
38.92
240
(translation_unit) "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_\n#define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_\n\n#include <stdint.h...
1,762
52
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 38.92, "nodes": 1018, "errors": 0, "source_hash": "0923023f545b85f05a49754fb56a311e0111c0fed42d759ee0b5a1dca5bb15c9", "categorized_nodes": 716}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
5,810
c
/* * iLOG3 - log function library written in c * author : calvin * email : <EMAIL> * * Licensed under the LGPL v2.1, see the file LICENSE in base directory. */ #if ( defined _WIN32 ) #ifndef _WINDLL_FUNC #define _WINDLL_FUNC _declspec(dllexport) #endif #elif ( defined __unix ) || ( defined _AIX ) || ( defined _...
21.08
87
(translation_unit) "/*\n * iLOG3 - log function library written in c\n * author : calvin\n * email : <EMAIL>\n *\n * Licensed under the LGPL v2.1, see the file LICENSE in base directory.\n */\n\n#if ( defined _WIN32 )\n#ifndef _WINDLL_FUNC\n#define _WINDLL_FUNC _declspec(dllexport)\n#endif\n#elif ( defined __unix ) ||...
560
1
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 21.08, "nodes": 355, "errors": 0, "source_hash": "f8bae58240fb3e1cddc13f1370551174893ee6bbda97a149129923f9437e376d", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if ( def...
5,811
c
// Copyright (C) <NAME> <<EMAIL>> // This file is part of FreeFT. See license.txt for details. #pragma once #include "ui/window.h" #include "ui/button.h" #include "ui/list_box.h" namespace ui { // if drop_size == 0 then drop list won't be shown, // items will be selected in cyclic order class ComboBox: public Wi...
26.68
38
(translation_unit) "// Copyright (C) <NAME> <<EMAIL>>\n// This file is part of FreeFT. See license.txt for details.\n\n#pragma once\n\n#include "ui/window.h"\n#include "ui/button.h"\n#include "ui/list_box.h"\n\nnamespace ui {\n\n // if drop_size == 0 then drop list won't be shown,\n // items will be selected in cyclic ...
324
15
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.68, "nodes": 186, "errors": 0, "source_hash": "eeccb8b660da146c510845fd2f873f8d2664aec57008fa8b8d06eec930f244f5", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,812
c
#pragma once #include <glm/glm.hpp> namespace narvalengine { class Ray { public: union { glm::vec3 o, origin; }; union { glm::vec3 d, direction; }; Ray() {}; glm::vec3 getPointAt(float t) { return o + t * d; } Ray(glm::vec3 origin, glm::vec3 direction) { this->o = origin; this->d = direction;...
18.24
17
(translation_unit) "#pragma once\n#include <glm/glm.hpp>\n\nnamespace narvalengine {\n class Ray {\n public:\n union { glm::vec3 o, origin; };\n union { glm::vec3 d, direction; };\n\n Ray() {};\n\n glm::vec3 getPointAt(float t) {\n return o + t * d;\n }\n\n Ray(glm::vec3 origin, glm::vec3 direction) {\n this-...
136
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.24, "nodes": 74, "errors": 0, "source_hash": "8ee8398c4113910bee9ed641901988fec2b69bffd16f8cc310b9cdca43a2f683", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,813
c
#pragma once #include "precomp.h" #include "behaviors/base.h" #include "props.h" #include "token_map.h" // // Tag // struct TagsMapElem { // Used internally by `TagsBehavior` as an element in the tag -> actors map. Defined first and at // top-level because `TagsComponent` depends on `Tag` depends on `TagsMap` ...
31.22
162
(translation_unit) "#pragma once\n\n#include "precomp.h"\n\n#include "behaviors/base.h"\n#include "props.h"\n#include "token_map.h"\n\n\n//\n// Tag\n//\n\nstruct TagsMapElem {\n // Used internally by `TagsBehavior` as an element in the tag -> actors map. Defined first and at\n // top-level because `TagsComponent` dep...
1,362
80
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 31.22, "nodes": 793, "errors": 0, "source_hash": "b6e22908efc468251176b44a9b4ff6833f58935936ad71d3abe895e7331d5909", "categorized_nodes": 551}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,814
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:46:13 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/Message.framework/Message * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. *...
41.13
15
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:46:13 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/PrivateFrameworks/Message.framework/Message\n* classdump-dyld is licensed under GPLv3, Copyright...
101
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 41.13, "nodes": 58, "errors": 0, "source_hash": "3487b4d598cee0ada7b111940ae0afd903ce537aaac6a282a177c3264b48eccd", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol MFAttac...
5,815
c
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
27.46
124
(translation_unit) "/**********************************************************************/\n/* ____ ____ */\n/* / /\/ / */\n/* /___/ \ / */\n/* \...
1,164
1
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 27.46, "nodes": 760, "errors": 0, "source_hash": "6ac75ba84bdc9938ce91cc41781be69a6316e7a1854834534392c66ddcdf888a", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
5,816
c
// // TAPRoomListModel.h // TapTalk // // Created by <NAME> on 01/10/18. // Copyright © 2018 Moselo. All rights reserved. // #import "TAPBaseModel.h" #import "TAPMessageModel.h" NS_ASSUME_NONNULL_BEGIN @interface TAPRoomListModel : TAPBaseModel @property (strong, nonatomic) TAPMessageModel *lastMessage; @proper...
27
16
(translation_unit) "//\n// TAPRoomListModel.h\n// TapTalk\n//\n// Created by <NAME> on 01/10/18.\n// Copyright © 2018 Moselo. All rights reserved.\n//\n\n#import "TAPBaseModel.h"\n#import "TAPMessageModel.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TAPRoomListModel : TAPBaseModel\n\n@property (strong, nonatomic) TA...
74
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.0, "nodes": 51, "errors": 0, "source_hash": "b718101fc4c907822579c12244a94b71e3731983d025e365ba3fd57f92c940ee", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"T...
5,817
c
/* * coder.h * * Created for: GlobalLogic Basecamp * Author: vitalii.lysenko * * Coder class header. * * You have to change this file to fix build errors, and make * the unit tests passed. * */ #ifndef CODER_H #define CODER_H #include <iostream> #include <cstring> /* * This function was pre-compiled...
21.55
115
(translation_unit) "/*\n * coder.h\n *\n * Created for: GlobalLogic Basecamp\n * Author: vitalii.lysenko\n *\n * Coder class header.\n *\n * You have to change this file to fix build errors, and make\n * the unit tests passed.\n *\n */\n\n#ifndef CODER_H\n#define CODER_H\n#include <iostream>\n#include <cstring>\...
955
23
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 21.55, "nodes": 578, "errors": 0, "source_hash": "b0cfd9642746bb56ab246f1e839d071b0b4dd2837f642d65cc4be37a59185c2c", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,818
c
// // SKMainViewController.h // SK3DTouchDemo // // Created by sunke on 2016/8/20. // Copyright © 2016 sunke. All rights reserved. // #import <UIKit/UIKit.h> @interface SKMainViewController : UIViewController @end
18.91
11
(translation_unit) "//\n// SKMainViewController.h\n// SK3DTouchDemo\n//\n// Created by sunke on 2016/8/20.\n// Copyright © 2016 sunke. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface SKMainViewController : UIViewController\n\n@end\n\n" (comment) "//" (comment) "// SKMainViewController.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.91, "nodes": 9, "errors": 0, "source_hash": "25b6d1889e2f75d22576ec96864afd5b6d5f33899745600e1984edb1c934aa28", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
5,819
c
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "azure_c_shared_utility/crt_abstractions.h" #include "azure_c_shared_utility/buffer_.h" #include "...
31.37
93
(translation_unit) "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n\n#include "azure_c_shared_utility/crt_abstractions.h"\n#include "azure_c_shared_u...
637
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 31.37, "nodes": 348, "errors": 0, "source_hash": "d602dffd130686339c6eecc9366fe6343c0cd550afc2c8eb66e3ea8fc49dc15c", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,820
c
#ifndef __SPAN_POLYFILL_H #define __SPAN_POLYFILL_H //std::span polyfill //we don't support static Extents #if __cplusplus>=202002L #error do not include this in C++20 #endif #include <stddef.h> namespace std{ template<typename T> class span{ public: T* m_data; size_t m_size; span():m_data(NULL),m_size(0){} ...
28.85
40
(translation_unit) "#ifndef __SPAN_POLYFILL_H\n#define __SPAN_POLYFILL_H\n//std::span polyfill\n//we don't support static Extents\n#if __cplusplus>=202002L\n #error do not include this in C++20\n#endif\n#include <stddef.h>\nnamespace std{\n template<typename T> \n class span{\n public:\n T* m_data;\n size_t m_size;\n...
603
19
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 28.85, "nodes": 353, "errors": 0, "source_hash": "241b66277771bf069c6c484751ce91d816c9e26ce301ab3768e149df8ef572df", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,821
c
// // SKDebug.h // SKNewsProject // // Created by shavekevin on 2016/11/22. // Copyright © 2016年 shavekevin. All rights reserved. // #ifndef SKDebug_h #define SKDebug_h /// 打印日志. #ifdef DEBUG #define debugLog( s, ... ) NSLog( @"%@ \r\n Class: %@ Line: %d ", \ [NSString stringWithFormat:(s), ##__VA_ARGS__], \ [...
29.16
19
(translation_unit) "//\n// SKDebug.h\n// SKNewsProject\n//\n// Created by shavekevin on 2016/11/22.\n// Copyright © 2016年 shavekevin. All rights reserved.\n//\n\n#ifndef SKDebug_h\n#define SKDebug_h\n\n/// 打印日志.\n#ifdef DEBUG\n#define debugLog( s, ... ) NSLog( @"%@ \r\n Class: %@ Line: %d ", \\n[NSString stringWi...
55
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.16, "nodes": 35, "errors": 0, "source_hash": "594af55f9aad0c018dbeb0228a1ae2355a478d4f50b811738564ccb4d13cdce7", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef SKD...
5,822
c
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
31.39
132
(translation_unit) "/*\n * Copyright 2012 Red Hat Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, copy,...
1,188
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 31.39, "nodes": 713, "errors": 0, "source_hash": "3cb75e4a549e795138fd4cc3d1ec85d474df6b61f95beea5108810a19324dcc1", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,823
c
/*Copyright 2018 LibOpt Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
37.94
34
(translation_unit) "/*Copyright 2018 LibOpt Authors\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agre...
144
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 37.94, "nodes": 117, "errors": 0, "source_hash": "172848fce2b94c397e632dc619f69d54e23c2598db4e9b62f599fc3d67249c49", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,824
c
#pragma once // The GPIO pin that is connected to a relay #define GPIO_RELAY 5 // WeMos D1 Mini - Pin D1 // The GPIO pin that is connected to a LED #define GPIO_LED 2 //WeMos D1 Mini - Pin D4 (Internal Blue LED) // The GPIO pin that is connected to a button // const int button_gpio = 0; #define GPIO_BUTTON 0 // WeMo...
39.34
29
(translation_unit) "#pragma once\n\n// The GPIO pin that is connected to a relay\n#define GPIO_RELAY 5 // WeMos D1 Mini - Pin D1\n\n// The GPIO pin that is connected to a LED\n#define GPIO_LED 2 //WeMos D1 Mini - Pin D4 (Internal Blue LED)\n\n// The GPIO pin that is connected to a button\n// const int button_gpio = 0;\...
71
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 39.34, "nodes": 55, "errors": 0, "source_hash": "cd174a28667766265b11b2ad5d598e3c4a87def300db2946391a2595dc43582d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,825
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Intents/INIntentResolutionResult.h> @interface INIntentExecutionResultResolutionResult : INIntentResolutionResult { } + (id)confirmationRequiredWithIntentExecutionResultToConfi...
38.8
15
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <Intents/INIntentResolutionResult.h>\n\n@interface INIntentExecutionResultResolutionResult : INIntentResolutionResult\n{\n}\n\n+ (id)confirmationRequired...
119
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.8, "nodes": 67, "errors": 0, "source_hash": "4dcfb8c007d5fc2005d7424f10616092373f4d3b82329a91fb4f647a69f395f8", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <I...
5,826
c
#ifndef _CONFIG_H_WROVER_KIT #define _CONFIG_H_WROVER_KIT #define DCFDisplay M5Display #include <ESP32-Chimera-Core.h> // https://github.com/tobozo/ESP32-Chimera-Core or regular M5Stack Core #define tft M5.Lcd // syntax sugar // editable values #define UI_320x240 //#define UI_160x128 #define displayRotation 1 #defin...
34.51
59
(translation_unit) "#ifndef _CONFIG_H_WROVER_KIT\n#define _CONFIG_H_WROVER_KIT\n\n#define DCFDisplay M5Display\n#include <ESP32-Chimera-Core.h> // https://github.com/tobozo/ESP32-Chimera-Core or regular M5Stack Core\n#define tft M5.Lcd // syntax sugar\n\n// editable values\n\n#define UI_320x240\n//#define UI_160x128\n#...
194
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 34.51, "nodes": 178, "errors": 0, "source_hash": "51dbc1c9013d474a175c29b39f9c3404e704b0a2929510f9788ca38385c9e30e", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,827
c
#ifndef __BCPU_H__ #define __BCPU_H__ #include <stdint.h> #include "bdecode.h" #define PC_SUPERVISOR ((uint32_t)0x80000000) #define ISR_RESET (PC_SUPERVISOR | 0x00000000) #define ISR_ILLOP (PC_SUPERVISOR | 0x00000004) #define ISR_CLK (PC_SUPERVISOR | 0x00000008) #define ISR_KBD (PC_SUPER...
29.36
67
(translation_unit) "#ifndef __BCPU_H__\n#define __BCPU_H__\n\n#include <stdint.h>\n#include "bdecode.h"\n\n#define PC_SUPERVISOR ((uint32_t)0x80000000)\n#define ISR_RESET (PC_SUPERVISOR | 0x00000000)\n#define ISR_ILLOP (PC_SUPERVISOR | 0x00000004)\n#define ISR_CLK (PC_SUPERVISOR | 0x00000008)\n#de...
403
1
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 29.36, "nodes": 271, "errors": 0, "source_hash": "2ab6c81f71c8db34b20d34fa25ad9a42d29d7b28f4efc94d87fdba5ba28c7ea9", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,828
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "TritonApiTypes.h" #include <vector> // Delay load headers #if defined(WINDOWS) || defined(DURANGO) #include <Windows.h> #endif class TritonWrapper { public: static bool SetTrito...
27.85
75
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved. \n// Licensed under the MIT License. \n \n#pragma once \n \n#include "TritonApiTypes.h" \n#include <vector> \n \n// Delay load headers \n#if defined(WINDOWS) || defined(DURANGO) \n#include <Windows.h> \n#endif \n \nclass TritonWrapper \n{ ...
401
2
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.85, "nodes": 238, "errors": 0, "source_hash": "c6c2f6e9b77e1dd5dddc9265ea0ae37e1db52d69a6b9aee412d7f91d0909dd0b", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,829
c
// // PointShopCell.h // Coding_iOS // // Created by Ease on 15/8/5. // Copyright (c) 2015年 Coding. All rights reserved. // #define kCellIdentifier_PointShopCell @"PointShopCell" #import <UIKit/UIKit.h> @interface PointShopCell : UITableViewCell + (CGFloat)cellHeight; @end
22.17
12
(translation_unit) "//\n// PointShopCell.h\n// Coding_iOS\n//\n// Created by Ease on 15/8/5.\n// Copyright (c) 2015年 Coding. All rights reserved.\n//\n\n#define kCellIdentifier_PointShopCell @"PointShopCell"\n\n#import <UIKit/UIKit.h>\n\n@interface PointShopCell : UITableViewCell\n+ (CGFloat)cellHeight;\n\n@end\n" ...
39
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.17, "nodes": 22, "errors": 0, "source_hash": "1227a675f40ee19934d81702aca1b38f2fa85a67d49c2a52bc0eba0c0a489505", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "efine kCel...
5,830
c
#pragma once #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" namespace exstar{ class GLSL{ public: enum Shader{ VERTEX,FRAGMENT,GEOMETRY }; GLSL(); GLSL(const std::string SHADER); void use(); void uniformMat4(const char* uniform, glm::mat4& matrix); vo...
25.4
25
(translation_unit) "#pragma once\n\n#include "glm/glm.hpp"\n#include "glm/gtc/matrix_transform.hpp"\n#include "glm/gtc/type_ptr.hpp"\n\nnamespace exstar{\n class GLSL{\n public:\n enum Shader{\n VERTEX,FRAGMENT,GEOMETRY\n };\n GLSL();\n GLSL(const std::string SHADER);\n void use();\n void uniformMat4(const char...
243
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.4, "nodes": 144, "errors": 0, "source_hash": "dba4a73a9b4f144137df4acf2dd6fd06f3070678c493876bdcb3ef47c602f2e1", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,831
c
// // BMViewController.h // BUMPMessanger-Theme // // Created by <NAME> on 11/20/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface BMViewController : UIViewController @end
21.1
10
(translation_unit) "//\n// BMViewController.h\n// BUMPMessanger-Theme\n//\n// Created by <NAME> on 11/20/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BMViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// BMViewController.h" (comm...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 9, "errors": 0, "source_hash": "471b1d7bfa50604061f1560a2903340e0ba666ff959f289f6b3888d8ed0698e0", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
5,832
c
/* ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be use...
30.64
220
(translation_unit) "/*\n** This program is free software; you can redistribute it and/or modify\n** it under the terms of the GNU General Public License as published by\n** the Free Software Foundation; either version 2 of the License, or\n** (at your option) any later version.\n**\n** This program is distributed in th...
1,520
0
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 30.64, "nodes": 932, "errors": 0, "source_hash": "c985b1fe736a73c074909d26542aaf7d5f42bc544264de9a323c29e0eb204770", "categorized_nodes": 703}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,833
c
#pragma once #include <algorithm> namespace utl { template <typename Container, typename Predicate> void erase_if(Container& c, Predicate pred) { c.erase(std::remove_if(begin(c), end(c), pred), end(c)); } } // namespace utl
27.38
8
(translation_unit) "#pragma once\n\n#include <algorithm>\n\nnamespace utl {\n\ntemplate <typename Container, typename Predicate>\nvoid erase_if(Container& c, Predicate pred) {\n c.erase(std::remove_if(begin(c), end(c), pred), end(c));\n}\n\n} // namespace utl\n" (preproc_call) "#pragma once\n" (preproc_directiv...
86
6
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.38, "nodes": 52, "errors": 0, "source_hash": "44690df8705bbf2ffe493cf0fb4cbd251363ff3aa26c829f239173b1fe9e9296", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,834
c
#ifndef INPUTHANDLER_H #define INPUTHANDLER_H class INIReader; class InputPlugin; class LichtensteinPluginHandler; class InputHandler { public: InputHandler(INIReader *config, LichtensteinPluginHandler *pluginHandler); ~InputHandler(); private: void loadPlugin(void); private: INIReader *config = nullptr;...
23.35
17
(translation_unit) "#ifndef INPUTHANDLER_H\n#define INPUTHANDLER_H\n\nclass INIReader;\nclass InputPlugin;\nclass LichtensteinPluginHandler;\n\nclass InputHandler {\n public:\n InputHandler(INIReader *config, LichtensteinPluginHandler *pluginHandler);\n ~InputHandler();\n\n private:\n void loadPlugin(void);\n\n priv...
102
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.35, "nodes": 68, "errors": 0, "source_hash": "9925c0669317995fed290dedfcf01a9e5795539f9f3a22624c3f48c4cec185fa", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,835
c
#include <stdio.h> #include <stdlib.h> #include <copperplate/traceobj.h> #include <alchemy/task.h> #include <alchemy/sem.h> static struct traceobj trobj; static int tseq[] = { 10, 13, 1, 14, 15, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 9, 19 }; static RT_TASK t_a, t_b; static RT_SEM sem; static void task_a(void *arg) ...
27.63
97
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <copperplate/traceobj.h>\n#include <alchemy/task.h>\n#include <alchemy/sem.h>\n\nstatic struct traceobj trobj;\n\nstatic int tseq[] = {\n 10, 13,\n 1, 14, 15, 2, 3, 4,\n 5, 6, 7, 8, 16, 17, 18,\n 9, 19\n};\n\nstatic RT_TASK t_a, t_b;\n\nstatic RT_SEM...
1,182
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 27.63, "nodes": 646, "errors": 0, "source_hash": "5fd0db1fccfe351bc405b6df8558ba02a102177ca60ad4b2fda7d3eac27dfb63", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,836
c
#ifndef PROJECT_HEADER_component398_11_H #define PROJECT_HEADER_component398_11_H int component398_11(); #endif // PROJECT_HEADER_component398_11_H
28.8
5
(translation_unit) "#ifndef PROJECT_HEADER_component398_11_H\n#define PROJECT_HEADER_component398_11_H\n\n\n\nint component398_11();\n\n#endif // PROJECT_HEADER_component398_11_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component398_11_H\n#define PROJECT_HEADER_component398_11_H\n\n\n\nint component398_11();\n\n#endi...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.8, "nodes": 12, "errors": 0, "source_hash": "8ba6eaeb18a050484cc3f754cf3edf5dccc770c3b63593e933e8f1babc3cacb2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
5,837
c
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2010-2012 * NVIDIA Corporation <www.nvidia.com> */ #include <common.h> #include <asm/io.h> #include <asm/arch/tegra.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> #include <asm/arch/pinmux.h> #include <asm/gpio.h> #include <i2c.h> void pin_mux...
23.72
36
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * (C) Copyright 2010-2012\n * NVIDIA Corporation <www.nvidia.com>\n */\n\n#include <common.h>\n#include <asm/io.h>\n#include <asm/arch/tegra.h>\n#include <asm/arch/clock.h>\n#include <asm/arch/funcmux.h>\n#include <asm/arch/pinmux.h>\n#include <asm/gpio.h...
112
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.72, "nodes": 68, "errors": 0, "source_hash": "b75adbc449daed7aa9e14a44329709231c786d9fa00136a8201cdbad4c833275", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,838
c
#ifndef __FINITE_RULE_CACHE_H__ #define __FINITE_RULE_CACHE_H__ #include <unordered_map> #include <functional> #include "ideal_rule_cache.h" class finite_rule_cache_t : public ideal_rule_cache_t { public: finite_rule_cache_t(int capacity); ~finite_rule_cache_t(); void install_rule(operands_t *ops, results_t ...
34.17
29
(translation_unit) "#ifndef __FINITE_RULE_CACHE_H__\n#define __FINITE_RULE_CACHE_H__\n\n#include <unordered_map>\n#include <functional>\n#include "ideal_rule_cache.h"\n\nclass finite_rule_cache_t : public ideal_rule_cache_t\n{\n\npublic:\n\n finite_rule_cache_t(int capacity);\n ~finite_rule_cache_t();\n\n void insta...
125
2
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.17, "nodes": 79, "errors": 0, "source_hash": "97e83929dd14f9ddc6a37f863fce8889fd744c5c36bc8acc9c938d0df595bb25", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,839
c
/**************************************************************************//** * @file fvc.h * @version V3.00 * @brief Firmware Version Counter Driver Header * * @note * SPDX-License-Identifier: Apache-2.0 * Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ******************************...
30.44
50
(translation_unit) "/**************************************************************************//**\n * @file fvc.h\n * @version V3.00\n * @brief Firmware Version Counter Driver Header\n *\n * @note\n * SPDX-License-Identifier: Apache-2.0\n * Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.\n **...
132
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 30.44, "nodes": 86, "errors": 0, "source_hash": "be5ce444c77b7fb01d5b3a3c8cf10b8b48fc3e9c2f26919363f057523ac63048", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,840
c
#ifndef PLANE_H #define PLANE_H namespace MATH { /// float x,y,z; came from vector as the normal to the surface + distance to the surface (d) struct Plane : public Vec3 { float d; /// Just a little utility to populate a Plane inline void set(float x_, float y_, float z_, float d_) { x = x_; y = y_; z = ...
25.51
47
(translation_unit) "#ifndef PLANE_H\n#define PLANE_H\n\nnamespace MATH {\n /// float x,y,z; came from vector as the normal to the surface + distance to the surface (d) \n struct Plane : public Vec3 {\n float d;\n\n /// Just a little utility to populate a Plane\n inline void set(float x_, float y_, float z_, float ...
529
12
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 25.51, "nodes": 359, "errors": 0, "source_hash": "0d62bdd232db10d51e799991a9616955678fc3a87d1f4d0e3ca888190bd1185f", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,841
c
#ifndef ROWS_VISIT_QUERY_H #define ROWS_VISIT_QUERY_H #include <memory> #include <ortools/constraint_solver/routing.h> #include "solver_wrapper.h" namespace rows { class MultipleVisitQuery { public: MultipleVisitQuery(rows::SolverWrapper &solver_wrapper, operations_resear...
43.63
27
(translation_unit) "#ifndef ROWS_VISIT_QUERY_H\n#define ROWS_VISIT_QUERY_H\n\n#include <memory>\n\n#include <ortools/constraint_solver/routing.h>\n\n#include "solver_wrapper.h"\n\nnamespace rows {\n\n class MultipleVisitQuery {\n public:\n MultipleVisitQuery(rows::SolverWrapper &solver_wrapper,\n ...
234
14
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 43.63, "nodes": 129, "errors": 0, "source_hash": "7dbf97e292fd12668c08ad0cbbbfa2bbe1973352923c806d06f682d63fdbacef", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,842
c
/* * LPDDR2 data as per JESD209-2 * * Copyright (C) 2010 Texas Instruments, Inc. * * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */...
19.27
142
(translation_unit) "/*\n * LPDDR2 data as per JESD209-2\n *\n * Copyright (C) 2010 Texas Instruments, Inc.\n *\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the...
862
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 19.27, "nodes": 600, "errors": 0, "source_hash": "9c62de71cc3b6699f1e62febc7ff09f513dbd49d22565c47b67685b4b874e052", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,843
c
#include "output.h" //#include <stdio.h> int main() { unsigned long int localMaster = MASTER; unsigned long int localBit = BIT(2); unsigned long int localMaster1 = MASTER1; unsigned long int localGenmask = GENMASK(1, 0); return MASTER + MASTER1; }
28.67
9
(translation_unit) "#include "output.h"\n//#include <stdio.h>\nint main() {\n unsigned long int localMaster = MASTER;\n unsigned long int localBit = BIT(2);\n\n unsigned long int localMaster1 = MASTER1;\n unsigned long int localGenmask = GENMASK(1, 0);\n\n return MASTER + MASTER1;\n}\n" (preproc_include...
77
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.67, "nodes": 56, "errors": 0, "source_hash": "830ea7900c714739c26fff6b6310f374d9ddab15b25266c0bf80995689cb2f22", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,844
c
#pragma once #ifndef DAK_UTILITY_CONSTANTS_H #define DAK_UTILITY_CONSTANTS_H namespace dak::utility { // Tolerance used when comparing double values and points locations. // Thus it affects points, edges, polygons, etc. constexpr double TOLERANCE = 1e-7; // Square of the above. Used for squared distances...
31.23
13
(translation_unit) "#pragma once\n\n#ifndef DAK_UTILITY_CONSTANTS_H\n#define DAK_UTILITY_CONSTANTS_H\n\nnamespace dak::utility\n{\n // Tolerance used when comparing double values and points locations.\n // Thus it affects points, edges, polygons, etc.\n constexpr double TOLERANCE = 1e-7;\n\n // Square of the ab...
46
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.23, "nodes": 34, "errors": 0, "source_hash": "f664350e37ecebb15020662c147dde3e80e10c55c99d24df05031e7030269476", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,845
c
/* * strcspn - find length of initial segment of s consisting entirely * of characters not from s2 */ #include <string.h> size_t strcspn(const char *s1, const char *s2) { register const char *scan; register const char *rscan; register size_t count; count = 0; for (scan = s1; *scan != '\0'; scan++) { for (...
21.15
20
(translation_unit) "/*\n * strcspn - find length of initial segment of s consisting entirely\n * of characters not from s2\n */\n\n#include <string.h>\n\nsize_t\nstrcspn(const char *s1, const char *s2)\n{\n register const char *scan;\n register const char *rscan;\n register size_t count;\n\n count = 0;\n for (scan = s...
138
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.15, "nodes": 92, "errors": 0, "source_hash": "441000d6d5830077fe5b9a5bcc8fe3359084e4b9c45a1133f971c796baaf6e14", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,846
c
#ifndef OPERATORS_QUERYTOOLS_H #define OPERATORS_QUERYTOOLS_H #include "userdb/userdb.h" #include "operators/queryprofiler.h" /* * This class contains references to a few useful things during query execution. * It is meant to be easily extendable to avoid changing the operator API every time a tool is added. */ cl...
36.53
17
(translation_unit) "#ifndef OPERATORS_QUERYTOOLS_H\n#define OPERATORS_QUERYTOOLS_H\n\n#include "userdb/userdb.h"\n#include "operators/queryprofiler.h"\n\n/*\n * This class contains references to a few useful things during query execution.\n * It is meant to be easily extendable to avoid changing the operator API every ...
136
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.53, "nodes": 73, "errors": 0, "source_hash": "75c3715cd3016ecaa3a18719937687d4fb75050ce3c1d5e8b6d79909d8174699", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,847
c
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
29.64
50
(translation_unit) "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless...
149
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.64, "nodes": 94, "errors": 0, "source_hash": "dad788572b19d8593c3c203a1683ec7cd2a57d7c540e649fb109475eec2abe8a", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,848
c
/* Code from Head First C. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> void error(char *msg) { fprintf(stderr, "%s: %s\n", msg, strerror(errno)); exit(1); } int o...
24.84
55
(translation_unit) "/* Code from Head First C.\n\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <errno.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n\nvoid error(char *msg)\n{\n fprintf(stderr, "%s: %s\n", msg, str...
477
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.84, "nodes": 285, "errors": 0, "source_hash": "f56a28a089d0671783d2b2bdaa2fe43b328b7ce81ee641f869d0ee7109947c3a", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,849
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WXPBGeneratedMessage.h" @class NSData, PaymentSelectPageData; @interface CmdInfo : WXPBGeneratedMessage { } + (void)initialize; // Remaining properties @property(retain, nona...
30.62
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "WXPBGeneratedMessage.h"\n\n@class NSData, PaymentSelectPageData;\n\n@interface CmdInfo : WXPBGeneratedMessage\n{\n}\n\n+ (void)initialize;\n\n// Remaini...
96
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.62, "nodes": 57, "errors": 0, "source_hash": "c2ccae0b2f14b6a4ff68bfe8b3f31195fbcc3c436e4ab5a5bff2dc158033b66e", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,850
c
#ifndef UDP_SERVER_H #define UDP_SERVER_H #include <netinet/in.h> #ifdef __cplusplus extern "C" { #endif typedef enum { UDP_SERVER_OK = 0, UDP_SERVER_SOCK_ERR = -1, UDP_SERVER_BIND_ERR = -2, UDP_SERVER_SEND_ERR = -3, UDP_SERVER_RECV_ERR = -4 }udp_server_error_t; ty...
23.1
41
(translation_unit) "#ifndef UDP_SERVER_H\n#define UDP_SERVER_H\n\n\n#include <netinet/in.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n\ntypedef enum\n{\n UDP_SERVER_OK = 0,\n UDP_SERVER_SOCK_ERR = -1,\n UDP_SERVER_BIND_ERR = -2,\n UDP_SERVER_SEND_ERR = -3,\n UDP_SERVER_RECV_E...
226
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 23.1, "nodes": 167, "errors": 0, "source_hash": "aa77edc4394e94dc9e0e2013963849571ce14443d7fd20bca5bd2534467a6a85", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,851
c
/* * This file is part of the coreboot project. * * Copyright (C) 2008 coresystems GmbH * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; version 2 of * the License. * * This program i...
15.12
106
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2008 coresystems GmbH\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; version 2 of\n * the L...
383
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 15.12, "nodes": 275, "errors": 0, "source_hash": "f870cb853ed25f82f2898b1b4c4096f975758264ba88dacf9ce366aba99e99de", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typ...
5,852
c
/* +----------------------------------------------------------------------+ | cmark | +----------------------------------------------------------------------+ | Copyright (c) <NAME> 2018 | +-------------------...
41.17
88
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | cmark |\n +----------------------------------------------------------------------+\n | Copyright (c) <NAME> 2018 ...
726
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 41.17, "nodes": 462, "errors": 0, "source_hash": "96269907d155430eaa84bc324c5ce0eb87add244d288fc70552b23268b046220", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,853
c
#ifndef SIMDDETECTOR_H #define SIMDDETECTOR_H namespace NSSimd { class СSimdDetector { public: СSimdDetector(); int level() const; private: int InstructionLevel_; }; } // namespace NSSimd #endif // SIMDDETECTOR_H
17.25
12
(translation_unit) "#ifndef SIMDDETECTOR_H\n#define SIMDDETECTOR_H\n\nnamespace NSSimd {\n\nclass СSimdDetector {\npublic:\n СSimdDetector();\n int level() const;\n\nprivate:\n int InstructionLevel_;\n};\n\n} // namespace NSSimd\n\n#endif // SIMDDETECTOR_H\n" (preproc_ifdef) "#ifndef SIMDDETECTOR_H\n#define SIMDDE...
52
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.25, "nodes": 27, "errors": 0, "source_hash": "e5a448933f86b45639e4463470c8bee57e0dcda27c1ff30df2323012b0b360ce", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,854
c
/* $XFree86: xc/programs/Xserver/cfb/cfballpriv.c,v 1.14 2005/10/14 15:16:18 tsi Exp $ */ /* Copyright 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in a...
33.03
79
(translation_unit) "/* $XFree86: xc/programs/Xserver/cfb/cfballpriv.c,v 1.14 2005/10/14 15:16:18 tsi Exp $ */\n/*\nCopyright 1991, 1998 The Open Group\n\nPermission to use, copy, modify, distribute, and sell this software and its\ndocumentation for any purpose is hereby granted without fee, provided that\nthe above co...
347
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 33.03, "nodes": 220, "errors": 0, "source_hash": "26bce8f4f52edba6f5d56df5ccf42f5ab0802907ecbf40ec0398dbe23d16258f", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,855
c
// // KYContactsManager.h // KYContact // // Created by kingly09 on 06/07/2018. // Copyright © 2018年 kingly09. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class KYContactObject; @protocol CNKeyDescriptor; /** 针对Contacts.framework进行请求数据的类 */ NS_CLASS_AVAILABLE_IOS(9_0) @...
21.28
54
(translation_unit) "//\n// KYContactsManager.h\n// KYContact\n//\n// Created by kingly09 on 06/07/2018.\n// Copyright © 2018年 kingly09. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class KYContactObject;\n@protocol CNKeyDescriptor;\n\n\n/**\n 针对Contacts.framework进行请求数...
226
31
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 21.28, "nodes": 155, "errors": 0, "source_hash": "65a818a8ceb75881482d3327cde8ed1bbbe65b5dd0b3644c7de18f02ef11f43d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
5,856
c
#pragma once #include "../test/libuv/http_request.h" #include "json.h" #include "zz_algorithms.h" #include "../test/libuv/file_writeall.h" #include <iostream> #include "date.h" namespace ai { namespace fr24 { struct feed_parser { feed_parser(const char* data) : data_(data) { json::parse_value(data, jso...
35.07
175
(translation_unit) "#pragma once\n#include "../test/libuv/http_request.h"\n#include "json.h"\n#include "zz_algorithms.h"\n#include "../test/libuv/file_writeall.h"\n#include <iostream>\n#include "date.h"\n\nnamespace ai\n{\n namespace fr24\n {\n struct feed_parser\n {\n feed_parser(const char* data) : data_(data)\n ...
2,273
113
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 35.07, "nodes": 1313, "errors": 0, "source_hash": "623fd570b5e75c1a9053d08a015efc1b50889604fb4d0de3819ee981b8bb7a2e", "categorized_nodes": 913}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
5,857
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook */ @interface ABCNContactStoreSample : NSObject { ABCNContactStore * _contactStore; } @end
28.86
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook\n */\n\n@interface ABCNContactStoreSample : NSObject {\n ABCNContactStore * _contactStore;\n}\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/Framewo...
22
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.86, "nodes": 14, "errors": 0, "source_hash": "e28c2dc81c3f0aaa610ae3787b57f9d2ee57f0f80b1e6a53d156b06db2fdbb4e", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface ABCNCon...
5,858
c
// // UniTransformer.h // Unicorn // // Created by retriable on 2018/9/10. // Copyright © 2018年 retriable. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface UniTransformer : NSValueTransformer + (instancetype)transformerWithForward:(id _Nullable(^)(id _Nullable value))...
30.31
13
(translation_unit) "//\n// UniTransformer.h\n// Unicorn\n//\n// Created by retriable on 2018/9/10.\n// Copyright © 2018年 retriable. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UniTransformer : NSValueTransformer\n\n+ (instancetype)transformerWithForward:(id...
84
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.31, "nodes": 55, "errors": 0, "source_hash": "95f01783bd74294013601989d73a27d19107d43c64407e99ccb4b17d4c6ba91a", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
5,859
c
#include <bits/stdc++.h> #pragma once class InvertedIndex{ public: InvertedIndex(); void getPath(); void printExerciseOne(); void printExerciseTwo(); private: void invertedIndex(int,std::string); std::string convertToString(int); int convertToInt(std::string); std::string inverse(std::...
26.95
20
(translation_unit) "#include <bits/stdc++.h>\n#pragma once\nclass InvertedIndex{\npublic:\n InvertedIndex();\n void getPath();\n void printExerciseOne();\n void printExerciseTwo();\n\nprivate:\n void invertedIndex(int,std::string);\n std::string convertToString(int);\n int convertToInt(std::string)...
203
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.95, "nodes": 117, "errors": 0, "source_hash": "9183758e4f1c906daf3ee54cc3cca272539587264c95e8975b854f7dff871eee", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,860
c
#include <stdlib.h> #include "cgds/Stack.h" #include "helpers.h" #include "lut.h" void t_stack_clear() { Stack* s = stack_new(int); stack_push(s, 0); stack_push(s, 0); stack_push(s, 0); stack_clear(s); lu_assert(stack_empty(s)); stack_destroy(s); } void t_stack_size() { Stack* s = stack_new(int); ...
22.08
113
(translation_unit) "#include <stdlib.h>\n#include "cgds/Stack.h"\n#include "helpers.h"\n#include "lut.h"\n\nvoid t_stack_clear()\n{\n Stack* s = stack_new(int);\n\n stack_push(s, 0);\n stack_push(s, 0);\n stack_push(s, 0);\n\n stack_clear(s);\n lu_assert(stack_empty(s));\n\n stack_destroy(s);\n}\n\nvoid t_stack_...
1,184
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 22.08, "nodes": 714, "errors": 0, "source_hash": "2215270e365c42010b2e2b26193d0b964268521d5787c6e1cf7f79a70924ee6e", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,861
c
#pragma once #include "Card.h" #include <random> /** * Uno * * RecentCardPile class: * Defines the place where cards are dumped after being played. Pile automatically clears itself after reaching a bounded size. * * @author <NAME> * @version 2022.1 */ class RecentCardPile { public: // Initialises the empty p...
31.39
57
(translation_unit) "#pragma once\n\n#include "Card.h"\n#include <random>\n\n/**\n * Uno\n *\n * RecentCardPile class:\n * Defines the place where cards are dumped after being played. Pile automatically clears itself after reaching a bounded size.\n *\n * @author <NAME>\n * @version 2022.1\n */\nclass RecentCardPile\n{\...
187
9
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.39, "nodes": 104, "errors": 0, "source_hash": "43df0884b6f2ad09d4178cd7bcbcb36354123adf2610c1ed567b1b2ed06adc2c", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,862
c
#pragma once #include <cmath> #include <glm/glm.hpp> #include <glm/gtx/norm.hpp> #include <glm/gtx/compatibility.hpp> namespace Math { // 3D axes enum Axis { AXIS_X, AXIS_Y, AXIS_Z, AXIS_COUNT }; // 3D directions enum Direction { DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DIRECTION_DOWN, ...
23.82
84
(translation_unit) "#pragma once\n\n#include <cmath>\n#include <glm/glm.hpp>\n#include <glm/gtx/norm.hpp>\n#include <glm/gtx/compatibility.hpp>\n\nnamespace Math\n{\n // 3D axes\n enum Axis\n {\n AXIS_X,\n AXIS_Y,\n AXIS_Z,\n\n AXIS_COUNT\n };\n\n // 3D directions\n enum Direction\n {\n DIRECTION_LEFT,\n DIRECTIO...
596
34
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 23.82, "nodes": 349, "errors": 0, "source_hash": "d70f0052f1695bc747ac3901c293bcd28c119e563f0d15d0c7243c1e4b046975", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,863
c
#pragma once #include <chrono> #include <gloperate/gloperate_api.h> namespace gloperate { class GLOPERATE_API ChronoTimer { using clock = std::chrono::high_resolution_clock; using time_point = clock::time_point; public: using Duration = std::chrono::duration<long long, std::nano>; ChronoTimer(bool...
24.18
34
(translation_unit) "#pragma once\n\n#include <chrono>\n\n#include <gloperate/gloperate_api.h>\n\n\nnamespace gloperate\n{\n\nclass GLOPERATE_API ChronoTimer\n{\n using clock = std::chrono::high_resolution_clock;\n using time_point = clock::time_point;\npublic:\n using Duration = std::chrono::duration<long long...
234
17
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.18, "nodes": 149, "errors": 0, "source_hash": "26e451c1189da008dca10a85b482786fc5d2274b354c2f09c9f70bb77af54597", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,864
c
#pragma once #include <d3d11.h> class FontClass { public: FontClass(); ~FontClass(); };
10.25
8
(translation_unit) "#pragma once\n#include <d3d11.h>\n\nclass FontClass\n{\npublic:\n FontClass();\n ~FontClass();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <d3d11.h>\n" (#include) "#include" (system_lib_string) "<d3d11.h>...
34
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 10.25, "nodes": 17, "errors": 0, "source_hash": "8c7e156064bb6cb8c10321238b6587c5e56c6498571d7cda2b16b56c14820d5d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,865
c
// // Created by <NAME> on 14/05/14. // Copyright (c) 2014 arvystate.net. All rights reserved. // #import "DKDrawingDefines.h" #import "DKDrawingSource.h" // // TODO: This category. // @interface UIView (DKDrawing) /*! * Only a wrapper for primary color for drawing */ @property (nonatomic, strong) UIColor* drawing...
27.82
28
(ERROR) "//\n// Created by <NAME> on 14/05/14.\n// Copyright (c) 2014 arvystate.net. All rights reserved.\n//\n\n#import "DKDrawingDefines.h"\n#import "DKDrawingSource.h"\n\n//\n// TODO: This category.\n//\n@interface UIView (DKDrawing)\n\n/*!\n * Only a wrapper for primary color for drawing\n */\n@property (nonatomic,...
122
22
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.82, "nodes": 83, "errors": 0, "source_hash": "c761c2bbbe0718291a6b339b4621fcfffefbb0958d51f8735da62e68c0730a5d", "categorized_nodes": 40}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Created by <NAME> on...
5,866
c
/* * This file is part of muFORTH: http://muforth.nimblemachines.com/ * * Copyright (c) 2002-2009 <NAME>. All rights reserved, and all wrongs * reversed. (See the file COPYRIGHT for details.) */ /* Interpreter and compiler */ #include "muforth.h" #include <ctype.h> /* for debug */ #include <sys/uio.h> #include...
25.13
258
(translation_unit) "/*\n * This file is part of muFORTH: http://muforth.nimblemachines.com/\n *\n * Copyright (c) 2002-2009 <NAME>. All rights reserved, and all wrongs\n * reversed. (See the file COPYRIGHT for details.)\n */\n\n/* Interpreter and compiler */\n\n#include "muforth.h"\n\n#include <ctype.h>\n\n/* for debug...
1,174
0
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 25.13, "nodes": 623, "errors": 0, "source_hash": "d5599fcf5a9185852f5c00abd5ca4cd08a14090e50800f8b0583e5f5b7d2e237", "categorized_nodes": 447}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,867
c
#include "value.h" #include "list.h" #include "hash.h" #include "dump.h" #include "parse.h" #include "func.h" #include "arena.h" long get_file_size(const char* path) { FILE* f; if ((f = fopen(path, "r")) == NULL) { fprintf(stderr, "Failed to open file: %s", path); return -1; } fseek(f, 0, SEEK_END); ...
18.01
72
(translation_unit) "#include "value.h"\n#include "list.h"\n#include "hash.h"\n#include "dump.h"\n#include "parse.h"\n#include "func.h"\n#include "arena.h"\n\nlong get_file_size(const char* path)\n{\n FILE* f;\n if ((f = fopen(path, "r")) == NULL) {\n fprintf(stderr, "Failed to open file: %s", path);\n return -1...
625
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 18.01, "nodes": 363, "errors": 0, "source_hash": "0e2d09b2365525df6659ad89db78c1703e9952b95756e75e9b333d6bbd8e016c", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,868
c
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "TestDynamicComponentActor.generated.h" class UTestDynamicComponent; /** * A replicated, always relevant Actor used in SpatialTestSingleServerDynamicComponents to test dynamic...
42.18
28
(translation_unit) "// Copyright (c) Improbable Worlds Ltd, All Rights Reserved\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/Actor.h"\n#include "TestDynamicComponentActor.generated.h"\n\nclass UTestDynamicComponent;\n\n/**\n * A replicated, always relevant Actor used in SpatialTestSingleServerDy...
133
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 42.18, "nodes": 78, "errors": 0, "source_hash": "be1a07801f1a30e862ceeffef37fb143e7d632ac8a9751113b1978fef1710c69", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,869
c
/* Platform neutral runtime library. To be statically linked with an appropriate gxruntime driver. */ #ifndef BBRUNTIME_H #define BBRUNTIME_H #include "../gxruntime/gxruntime.h" void bbruntime_link( void (*rtSym)( const char *sym,void *pc ) ); const char *bbruntime_run( gxRuntime *runtime,void (*pc)(),bool debu...
28.12
16
(translation_unit) "/*\n\nPlatform neutral runtime library.\n\nTo be statically linked with an appropriate gxruntime driver.\n\n*/\n\n#ifndef BBRUNTIME_H\n#define BBRUNTIME_H\n\n#include "../gxruntime/gxruntime.h"\n\nvoid bbruntime_link( void (*rtSym)( const char *sym,void *pc ) );\n\nconst char *bbruntime_run( gxRunti...
126
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.12, "nodes": 79, "errors": 0, "source_hash": "f7c29c634d6ad1e9d8751fac92631c7a3aaf6f9fcac7a7c98b565da4a9309d1e", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,870
c
// // DetailedInfoSubViewController.h // GoFit // // Created by EMPty on 3/4/16. // Copyright (c) 2016 EMPty. All rights reserved. // #import "NLSubTableViewController.h" @interface DetailedInfoSubViewController : NLSubTableViewController<UITableViewDataSource, UITableViewDelegate> @property (nonatomic) NSArra...
24.62
13
(translation_unit) "//\n// DetailedInfoSubViewController.h\n// GoFit\n//\n// Created by EMPty on 3/4/16.\n// Copyright (c) 2016 EMPty. All rights reserved.\n//\n\n\n\n\n#import "NLSubTableViewController.h"\n\n@interface DetailedInfoSubViewController : NLSubTableViewController<UITableViewDataSource, UITableViewDeleg...
44
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.62, "nodes": 28, "errors": 0, "source_hash": "288fcf40c3a94c7b31429ccb6fe2c0269b2e02e1bc58b2451fc51655a164bdc0", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,871
c
#include <kipr/botball.h> int x; double bias; int pos; double area; /** * Averages the error in the gyro for the z axis. */ void calibrate_gyro() { double avg = 0; int i = 0; while(i < 50) { avg += gyro_z(); msleep(10); i++; } bias = avg / 50.0; printf("New B...
20.83
140
(translation_unit) "#include <kipr/botball.h>\nint x;\ndouble bias;\nint pos;\ndouble area;\n\n/**\n* Averages the error in the gyro for the z axis.\n*/\nvoid calibrate_gyro()\n{\n double avg = 0;\n int i = 0;\n while(i < 50)\n {\n avg += gyro_z();\n msleep(10);\n i++;\n }\n ...
784
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 20.83, "nodes": 437, "errors": 0, "source_hash": "954345d931e41b96a38c93c538ad2b33f3b1e0bdac6fc7f32cddb675dce2e858", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,872
c
#pragma once #include "Engine/Core/Window.h" #include <string> #include "Engine/Renderer/RendererContext.h" namespace Engine { class WindowsWindow: public Window { public: WindowsWindow(const WindowSpecification& specification); virtual ~WindowsWindow(); virtual void Init() override; virtual void ProcessEve...
30.39
51
(translation_unit) "#pragma once\n#include "Engine/Core/Window.h"\n#include <string>\n#include "Engine/Renderer/RendererContext.h"\n\nnamespace Engine {\n class WindowsWindow: public Window {\n public:\n WindowsWindow(const WindowSpecification& specification);\n virtual ~WindowsWindow();\n\n virtual void Init() over...
449
35
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.39, "nodes": 279, "errors": 0, "source_hash": "24ec792104c112a1956031862fe74523ebe039dbf1a41a76f2593fc6b792187e", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,873
c
/* * ofxBlobTracking.h * * Created by <NAME> on 5/4/08. * Copyright 2008 risenparadigm. All rights reserved. * * Changelog: * 08/15/08 -- Fixed a major bug in the track algorithm */ #ifndef OFXBLOBTRACKER #define OFXBLOBTRACKER #include "ofxBlob.h" #include "ofxContourFinder.h" class ofxBlobTracker{ publi...
28.28
57
(translation_unit) "/*\n * ofxBlobTracking.h\n *\n * Created by <NAME> on 5/4/08.\n * Copyright 2008 risenparadigm. All rights reserved.\n *\n * Changelog:\n * 08/15/08 -- Fixed a major bug in the track algorithm\n */\n\n#ifndef OFXBLOBTRACKER\n#define OFXBLOBTRACKER\n\n#include "ofxBlob.h"\n#include "ofxContourFind...
394
5
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.28, "nodes": 271, "errors": 0, "source_hash": "33067213fea03a0b6b8048c5471dafcb10a134183ea10162706cf96b45149a12", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,874
c
#include <stdio.h> #include <stdlib.h> /* * This function interprets score_card as an array of pointers with size elements. * Return the sum of the values pointed to by the elements of score_card. */ int sum_card(int **score_card, int size) { // TODO: write the body of sum_card according to its description. ...
27.15
34
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n/*\n * This function interprets score_card as an array of pointers with size elements.\n * Return the sum of the values pointed to by the elements of score_card.\n */\nint sum_card(int **score_card, int size) {\n // TODO: write the body of sum_card accor...
216
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.15, "nodes": 137, "errors": 0, "source_hash": "5c57af0579ab61280566d29cf1dea34afc3b08df97d4088bad82543c3f9974d8", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,875
c
// // Created by <NAME> on 5/30/17. // #ifndef GRAPHIT_LABEL_SCOPE_H #define GRAPHIT_LABEL_SCOPE_H #include <list> #include <string> namespace graphit { /** * Label scope is an object that holds the current scope for the labels */ class LabelScope { public: LabelScope(){ } ...
31.52
52
(translation_unit) "//\n// Created by <NAME> on 5/30/17.\n//\n\n#ifndef GRAPHIT_LABEL_SCOPE_H\n#define GRAPHIT_LABEL_SCOPE_H\n\n#include <list>\n#include <string>\n\nnamespace graphit {\n /**\n * Label scope is an object that holds the current scope for the labels\n */\n class LabelScope {\n public:\n ...
262
10
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 31.52, "nodes": 139, "errors": 0, "source_hash": "2f75f5e5239dd1a6b76b07496ed43c2817f922cd08e71ce0df4eafac1afdcad3", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef GRAPHIT...
5,876
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <chrono> #include <fstream> #include <string> #include <thread> #include <type_traits> #include <vecto...
32.49
67
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\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.\n */\n\n#pragma once\n\n#include <chrono>\n#include <fstream>\n#include <string>\n#include <thread>\n#incl...
683
51
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.49, "nodes": 359, "errors": 0, "source_hash": "b285e093112baffbacab173d7b41a2878653828597d61f3335faa831d7929b96", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,877
c
// // UIButton+CrashButton.h // ios_demo // // Created by andy on 1/7/15. // Copyright (c) 2015 Andy. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (CrashButton) + (UIButton *)crashButtonWithFrame:(CGRect)frame; @end
21.09
11
(translation_unit) "//\n// UIButton+CrashButton.h\n// ios_demo\n//\n// Created by andy on 1/7/15.\n// Copyright (c) 2015 Andy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (CrashButton)\n+ (UIButton *)crashButtonWithFrame:(CGRect)frame;\n@end\n" (comment) "//" (comment) "// UIButt...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.09, "nodes": 23, "errors": 0, "source_hash": "4fad15f4e5e595cbef67c935e415376ca9ac14784fc87c668d4b5ca62316530d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,878
c
// // Copyright (c) 2021, <NAME> & <NAME> // All rights reserved. // // This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree. // // Author: <NAME> // File: pch.h // // ReSharper disable CppClangTidyClangDiagnosticReservedIdMacro #pragma once #incl...
25.42
59
(translation_unit) "\n// Copyright (c) 2021, <NAME> & <NAME>\n// All rights reserved.\n// \n// This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree.\n// \n// Author: <NAME>\n// File: pch.h\n//\n\n// ReSharper disable CppClangTidyClangDiagnosticReserved...
179
2
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 25.42, "nodes": 116, "errors": 0, "source_hash": "f5143454ad67b296a32c0e7c4d3235e7b28b179101102561dbfcdfa62c2cc323", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
5,879
c
/* APPLE LOCAL file mainline */ /* PR 5878. We ICEd in verify_local_live_at_start because we incorrectly forced the PIC register live between BAR and BAZ. We did this because the definition of PIC_OFFSET_TABLE_REGNUM was incorrectly not INVALID_REGNUM when !flag_pic for most targets. */ /* { dg-do run }...
25.17
121
(translation_unit) "/* APPLE LOCAL file mainline */\n/* PR 5878.\n\n We ICEd in verify_local_live_at_start because we incorrectly forced\n the PIC register live between BAR and BAZ. We did this because the\n definition of PIC_OFFSET_TABLE_REGNUM was incorrectly not INVALID_REGNUM\n when !flag_pic for most targ...
599
2
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 25.17, "nodes": 419, "errors": 0, "source_hash": "dd7934b27b7e5bbf0f438516546ff18e07695b3b48b0320aa727151ad8707001", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern ...
5,880
c
#include "buffer.h" int main(int argc, char *argv[]) { Buffer* buffer = makeBuffer("duck", "rb"); printf("Good?: %i\n", buffer->good); if (buffer->good){ bool success = read(buffer); printf("Success: %i\n", success); printf("Size : %zu\n", buffer->size); printf("Current : %z...
24.74
19
(translation_unit) "#include "buffer.h"\n\nint main(int argc, char *argv[])\n{\n Buffer* buffer = makeBuffer("duck", "rb");\n printf("Good?: %i\n", buffer->good);\n if (buffer->good){\n bool success = read(buffer);\n printf("Success: %i\n", success);\n printf("Size : %zu\n", buffer->size);...
197
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.74, "nodes": 103, "errors": 0, "source_hash": "0ea132c49257392bc880f451be88ba8f769d9bbd849fbf5ae342c9d57f7ab90f", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,881
c
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
45.04
74
(translation_unit) "/*==============================================================================\n\n Program: 3D Slicer\n\n Copyright (c) Kitware Inc.\n\n See COPYRIGHT.txt\n or http://www.slicer.org/copyright/copyright.txt for details.\n\n Unless required by applicable law or agreed to in writing, software\n ...
358
15
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 45.04, "nodes": 198, "errors": 0, "source_hash": "5efe58a78f8c19fc2005d3248e8ca03c9283eb80b3364c61720e410776fb1225", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __vtkM...
5,882
c
#pragma once #include "common.h" #include <vector> #include <windows.h> typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO); #define PRODUCT_PROFESSIONAL 0x00000030 #define VER_SUITE_WH_SERVER 0x00008000 #define CRC_STEAM_VER_1_2 0x077CE924D typedef struct _PROCESSOR_POWER_INFORMATION { ULONG Number; ...
29.82
33
(translation_unit) "#pragma once \n \n#include "common.h" \n#include <vector> \n#include <windows.h> \n \ntypedef void (WINAPI *PGNSI)(LPSYSTEM_INFO); \n#define PRODUCT_PROFESSIONAL 0x00000030 \n#define VER_SUITE_WH_SERVER 0x00008000 \n \n#define CRC_STEAM_VER_1_2 0x077CE924D \n \ntypedef struct _PROCESSOR_POWER_INFORM...
209
6
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.82, "nodes": 156, "errors": 0, "source_hash": "1668af20729c1baafc0cbf35499a0c2c4bff231c9641f8ea6d87b6d575972d62", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,883
c
/* <NAME> COP 3223 11/22/2016 Caesar Cipher */ #include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 10000 // maximum message size char message[MAX]; // message to change /* shift = how many letters to shift, ed = encrypt (1) or decrypt (2); shifts each letter and prin...
26.51
195
(translation_unit) "/* <NAME> \n COP 3223 \n 11/22/2016 \n Caesar Cipher */ \n \n#include <stdio.h> \n#include <string.h> \n#include <ctype.h> \n \n#define MAX 10000 // maximum message size \n \nchar message[MAX]; // message to change \n \n \n/* shift = how many letters to shift, ed = encrypt (1) or decrypt (2...
1,339
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 26.51, "nodes": 704, "errors": 0, "source_hash": "6f8ff2fb799444ec7e734ce814eec1adb30114eae6ebbbb8ab5680a891049fcf", "categorized_nodes": 489}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,884
c
#include <gmshc.h> int main(int argc, char **argv) { int ierr; gmshInitialize(argc, argv, 1, &ierr); gmshModelAdd("square", &ierr); gmshModelGeoAddPoint(0, 0, 0, 0.1, 1, &ierr); gmshModelGeoAddPoint(1, 0, 0, 0.1, 2, &ierr); gmshModelGeoAddPoint(1, 1, 0, 0.1, 3, &ierr); gmshModelGeoAddPoint(0, 1, 0, 0.1, ...
32.21
24
(translation_unit) "#include <gmshc.h>\n\nint main(int argc, char **argv)\n{\n int ierr;\n gmshInitialize(argc, argv, 1, &ierr);\n gmshModelAdd("square", &ierr);\n gmshModelGeoAddPoint(0, 0, 0, 0.1, 1, &ierr);\n gmshModelGeoAddPoint(1, 0, 0, 0.1, 2, &ierr);\n gmshModelGeoAddPoint(1, 1, 0, 0.1, 3, &ierr);\n gmshM...
316
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.21, "nodes": 166, "errors": 0, "source_hash": "95557f16a34fdfc2adcb3142d52d043f3c5cdf795591a10dc620abd08e0d56c4", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,885
c
#ifndef LIBNGXCORE_TEST_DEFINES_H #define LIBNGXCORE_TEST_DEFINES_H void array_test001(void); void string_test001(void); void pool_test001(void); void time_test001(void); void list_test001(void); void parse_test001(void); void version_test001(void); void regex_test001(void); void base64_test001(void); void crc32_test0...
26.8
15
(translation_unit) "#ifndef LIBNGXCORE_TEST_DEFINES_H\n#define LIBNGXCORE_TEST_DEFINES_H\n\nvoid array_test001(void);\nvoid string_test001(void);\nvoid pool_test001(void);\nvoid time_test001(void);\nvoid list_test001(void);\nvoid parse_test001(void);\nvoid version_test001(void);\nvoid regex_test001(void);\nvoid base64_...
129
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.8, "nodes": 91, "errors": 0, "source_hash": "cc1faa6534f0caf9673ef3e0fb5c1bc8a4fdddd407c554a0994b2258850e6030", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
5,886
c
/***************************************************************************** Copyright(c) 2013 FCI Inc. All Rights Reserved File name : fci_ringbuffer.h Description : Header of Data Buffer control file This program is free software; you can redistribute it and/or modify it under the terms of the GNU General P...
44.56
70
(translation_unit) "/*****************************************************************************\n Copyright(c) 2013 FCI Inc. All Rights Reserved\n\n File name : fci_ringbuffer.h\n\n Description : Header of Data Buffer control file\n\n This program is free software; you can redistribute it and/or modify\n it under th...
466
2
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 44.56, "nodes": 370, "errors": 0, "source_hash": "479a37f08ccae6410446989ff38a88981860c27d70de62db870e60cc33051bfe", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,887
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore */ @interface _NULivePhotoRenderResult : _NURenderResult <NULivePhotoRenderResult> { struct CGImage { } * _photo; struct { long long value; int timescale; unsigned int flag...
36.87
38
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore\n */\n\n@interface _NULivePhotoRenderResult : _NURenderResult <NULivePhotoRenderResult> {\n struct CGImage { } * _photo;\n struct { \n long long value; \n int timescale...
480
35
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.87, "nodes": 321, "errors": 0, "source_hash": "9e2d7ac2623121c6bba89a4150f12681e657dbc28539ebdbc918a135bfe8e682", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
5,888
c
#ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include <QPixmap> #include <QIcon> #include <QFont> #include <QHBoxLayout> #include <QVBoxLayout> #include <QGraphicsBlurEffect> #include <QGraphicsOpacityEffect> #include <page1.h> #include <toggleswitch.hpp> #include <page2.h> #include <controldialog.h> #include...
29.19
83
(translation_unit) "#ifndef WIDGET_H\n#define WIDGET_H\n\n#include <QWidget>\n#include <QPixmap>\n#include <QIcon>\n#include <QFont>\n#include <QHBoxLayout>\n#include <QVBoxLayout>\n#include <QGraphicsBlurEffect>\n#include <QGraphicsOpacityEffect>\n\n#include <page1.h>\n#include <toggleswitch.hpp>\n#include <page2.h>\n...
575
5
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 29.19, "nodes": 412, "errors": 0, "source_hash": "a1fbd5c1e7d8d84124d0f0de0139dbeab039c198373d1929bc03a642607bd97b", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,889
c
#ifndef CLUSTERING_WIDGET_H #define CLUSTERING_WIDGET_H #pragma once class ImageView; class StopWatch; class ClusteringWidget final : public QWidget { Q_OBJECT public: explicit ClusteringWidget(QWidget* parent = nullptr); ~ClusteringWidget() override; MAKE_NOT_COPYABLE_NOR_MOVEABLE(ClusteringWidget) private: v...
25.86
28
(translation_unit) "#ifndef CLUSTERING_WIDGET_H\n#define CLUSTERING_WIDGET_H\n#pragma once\nclass ImageView;\nclass StopWatch;\nclass ClusteringWidget final : public QWidget {\n Q_OBJECT\n\n public:\n explicit ClusteringWidget(QWidget* parent = nullptr);\n ~ClusteringWidget() override;\n MAKE_NOT_COPYABLE_NOR_MOVEABLE(...
184
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.86, "nodes": 125, "errors": 0, "source_hash": "ab80be6f68c1d6cb4cb1e9494c1a550e360ffa76ff77439bee4584b8477cabab", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,890
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:44:55 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by ...
30.8
20
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:44:55 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore\n* classdump-dyld is licensed under GPLv3, ...
106
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.8, "nodes": 60, "errors": 0, "source_hash": "7748d40538c5253e1db4ae0be907cc5a58c53ea374d152bd01d3adc8e87ce608", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <iT...
5,891
c
/** @copyright <pre> Copyright 2018 Infineon Technologies AG This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>. The initial version of this software has been created with the funding support by the German Federal Ministry of Education and Res...
41.18
72
(translation_unit) "/**\n\n @copyright\n\n <pre>\n\n Copyright 2018 Infineon Technologies AG\n\n This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.\n\n The initial version of this software has been created with the funding support by the German Federal\n ...
181
8
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 41.18, "nodes": 110, "errors": 0, "source_hash": "869dbead1ceda046b40abf28f9bb490a29e8078288918a9257aa82b82a689a73", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,892
c
#pragma once struct ipaddressinfo { const char* offical_ip; const char* alias_ip; const char* offical_name; const char* alias_name; };
16.38
8
(translation_unit) "#pragma once\n\nstruct ipaddressinfo\n{\n const char* offical_ip;\n const char* alias_ip;\n const char* offical_name;\n const char* alias_name;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (struct_specifier) "struct ipaddressinfo\n{\n const char...
43
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.38, "nodes": 26, "errors": 0, "source_hash": "0ae0d1b4d7d251a2f7e0fc4916e525d11cdeb8ddfb769d4374b60ffb191cb06a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,893
c
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
32.2
213
(translation_unit) "//-------------------------------------------------------------------------------------------------------\n// Copyright (C) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.\n//----------------------------------...
1,697
64
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 32.2, "nodes": 954, "errors": 0, "source_hash": "b82c47e57241e23cc1f1dd80a30a0e35f8bbd9df2c4f725f1ac9f3b392fc35a9", "categorized_nodes": 697}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,894
c
// Copyright 2017 <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 applicable law ...
35.88
48
(translation_unit) "// Copyright 2017 <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// \n// Unless...
337
17
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 35.88, "nodes": 173, "errors": 0, "source_hash": "602a3ec0f1f4d70eadee52ef48d32eaa8b835442492f8b3c927c63429a92bcf7", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,895
c
/* * Copyright 2016 Gigatribe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
34.33
85
(translation_unit) "/*\n * Copyright 2016 Gigatribe\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ...
678
24
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 34.33, "nodes": 406, "errors": 0, "source_hash": "e8cee4aeebf511c9b4f2867ff19ccf19504001c38237ed538b58a7843e426ec2", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,896
c
/** * @file * @author University of Warwick * @version 1.0 * * @section LICENSE * * @section DESCRIPTION * * Contains declarations for the MeshSourceFileConfigJSON class. */ #ifndef CUPCFD_MESH_MESH_SOURCE_FILE_CONFIG_SOURCE_JSON_INCLUDE_H #define CUPCFD_MESH_MESH_SOURCE_FILE_CONFIG_SOURCE_JSON_INCLUDE_H #i...
29.66
119
(translation_unit) "/**\n * @file\n * @author University of Warwick\n * @version 1.0\n *\n * @section LICENSE\n *\n * @section DESCRIPTION\n *\n * Contains declarations for the MeshSourceFileConfigJSON class.\n */\n\n#ifndef CUPCFD_MESH_MESH_SOURCE_FILE_CONFIG_SOURCE_JSON_INCLUDE_H\n#define CUPCFD_MESH_MESH_SOURCE_FILE...
359
20
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 29.66, "nodes": 206, "errors": 0, "source_hash": "0f8a2e170156ccd6300152c79f87082b396d2d0f4d1bfd2903415c4ff42143ef", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,897
c
/*======================================== * Copyright (C) 2015 All rights reserved. * Filename: handle_send_file * Author: Mr.Lu * Version: 2.0 * Date: 2015/8/3 * Description: 处理用户发送文件操作 * Function List: handle_send_file() ==========================================*/ #include "....
27.51
72
(translation_unit) "/*========================================\n* Copyright (C) 2015 All rights reserved.\n* Filename: handle_send_file\n* Author: Mr.Lu\n* Version: 2.0\n* Date: 2015/8/3\n* Description: 处理用户发送文件操作\n* Function List: handle_send_file()\n============================...
471
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 27.51, "nodes": 258, "errors": 0, "source_hash": "8deb962d8bc891304dbb511b2dcf8fe4c31fcaaf2b8611983c127749b1b0ed0e", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "d.h\...
5,898
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> struct timespec tsc_timespec; float getTime() { clock_gettime(CLOCK_MONOTONIC, &tsc_timespec); // syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &tsc_timespec); return (float) tsc_timespec.tv_sec + (float) tsc_timespec.tv_nsec / 10...
29.26
77
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\nstruct timespec tsc_timespec;\n\nfloat getTime() {\n clock_gettime(CLOCK_MONOTONIC, &tsc_timespec);\n // syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &tsc_timespec);\n return (float) tsc_timespec.tv_sec + (fl...
633
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.26, "nodes": 387, "errors": 0, "source_hash": "3c64900d6d15e9425cda11d79dc71569f4b07523d6a035dd00ec98c03c576108", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,899