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
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "QQScanNativeViewController.h" #import "UIImage+LBXScan.h"
33
5
(translation_unit) "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n#import "QQScanNativeViewController.h"\n#import "UIImage+LBXScan.h"\n" (comment) "//" (comment) "// Use this file to import your target's public headers that you would like to expose to S...
10
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 33.0, "nodes": 6, "errors": 0, "source_hash": "8295242758fbf8b5e09f8bbd6d6756aa71067921f7b40cef9b85fdd5a2fbca21", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"QQS...
78,900
c
/* * c 2001 PPC 64 Team, IBM Corp * * 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. * * sca...
29.02
173
(translation_unit) "/*\n * c 2001 PPC 64 Team, IBM Corp\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at your option) an...
1,113
4
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 29.02, "nodes": 669, "errors": 0, "source_hash": "64dbaa2d165852bc130ece49f939467a483ffa29ff111d077f40a5530d87a6de", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,901
c
#ifndef ROOSTER_CONSOLEINPUTPROVIDER_H #define ROOSTER_CONSOLEINPUTPROVIDER_H #include <support/InputProvider.h> namespace interactive { class ConsoleInputProvider : public InputProvider { public: static std::string read(); }; } #endif /* ROOSTER_CONSOLEINPUTPROVIDER_H */
27.3
10
(translation_unit) "#ifndef ROOSTER_CONSOLEINPUTPROVIDER_H\n#define ROOSTER_CONSOLEINPUTPROVIDER_H\n\n#include <support/InputProvider.h>\n\nnamespace interactive {\n class ConsoleInputProvider : public InputProvider {\n public:\n static std::string read();\n };\n}\n\n#endif /* ROOSTER_CONSOLEINPUTPROVIDER_H */\n"...
47
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.3, "nodes": 25, "errors": 0, "source_hash": "d07dfca59fad338d3d6215ddf86fc141b28196b4625c98b20e0394a204f5d1ec", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
78,902
c
/* BEGIN_ICS_COPYRIGHT6 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
28.53
145
(translation_unit) "/* BEGIN_ICS_COPYRIGHT6 ****************************************\n\nCopyright (c) 2015, Intel Corporation\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must re...
895
8
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 28.53, "nodes": 529, "errors": 0, "source_hash": "1006c1099aebad1b514c832dc2a171331ca5264641f3a53a866089e9e39c77dd", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,903
c
/************************************************************************* > File Name: sequentialStack.h > Description: linear stack > Author: libo > Mail: <EMAIL> > Created Time: 09/07/2018 - 15:47 ************************************************************************/ #ifndef SQSTACK_H_ #define SQSTACK_...
16.85
61
(translation_unit) "/*************************************************************************\n > File Name: sequentialStack.h\n > Description: linear stack\n > Author: libo\n > Mail: <EMAIL> \n > Created Time: 09/07/2018 - 15:47\n ************************************************************************/\n\n#ifndef...
227
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 16.85, "nodes": 164, "errors": 0, "source_hash": "ed5b5c713242f0f51c622bf4a36c3d851a89d448132166452a6a2d92b697b320", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,904
c
/** * @file stdlib.h * @brief STANDARD LIBRARY * @version 0.1 * @date 08-02-2022 */ #ifndef _STDLIB_H_ #define _STDLIB_H_ #include <stdint.h> #include <stdbool.h> // STRUCTS typedef struct heap { volatile uint8_t *start; volatile uint8_t *end; } heap_t; typedef struct block_metadata { uint32_t size; //Blo...
25.29
34
(translation_unit) "/**\n * @file stdlib.h\n * @brief STANDARD LIBRARY\n * @version 0.1\n * @date 08-02-2022\n */\n\n#ifndef _STDLIB_H_\n#define _STDLIB_H_\n\n#include <stdint.h>\n#include <stdbool.h>\n\n// STRUCTS\ntypedef struct heap \n{\n volatile uint8_t *start;\n volatile uint8_t *end;\n} heap_t;\n\ntypedef struct...
206
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.29, "nodes": 150, "errors": 0, "source_hash": "28ff6aba7cf9ed0010ea70d36eecad3212abee3bb72f7f1f97c5d1a9dd490fe0", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,905
c
#ifndef __TCP_PROTOCOL_H__ #define __TCP_PROTOCOL_H__ #include "connection_protocol.h" class TCPProtocol: public ConnectionProtocol { }; #endif
23
6
(translation_unit) "#ifndef __TCP_PROTOCOL_H__\n#define __TCP_PROTOCOL_H__\n\n#include "connection_protocol.h"\n\nclass TCPProtocol: public ConnectionProtocol {\n};\n\n#endif\n" (preproc_ifdef) "#ifndef __TCP_PROTOCOL_H__\n#define __TCP_PROTOCOL_H__\n\n#include "connection_protocol.h"\n\nclass TCPProtocol: public Con...
26
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.0, "nodes": 14, "errors": 0, "source_hash": "04e618824298cf887546216c61703d595b879646d43f5bc951f346ace629b4d8", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
78,906
c
/* * agent.h * * Created on: Sep 15, 2010 * Author: baj */ #ifndef AGENT_H_ #define AGENT_H_ class State; enum AgentType { AT_None, AT_MonteCarlo, AT_Sarsa, AT_QLearning, AT_SarsaLambda, AT_Neuron }; class Agent { public: Agent(const bool test): test_(test) { } virtual ~Agent() { } virtual i...
20.61
31
(translation_unit) "/*\n * agent.h\n *\n * Created on: Sep 15, 2010\n * Author: baj\n */\n\n#ifndef AGENT_H_\n#define AGENT_H_\n\nclass State;\n\nenum AgentType {\n AT_None,\n AT_MonteCarlo,\n AT_Sarsa,\n AT_QLearning,\n AT_SarsaLambda,\n AT_Neuron\n};\n\nclass Agent {\npublic:\n Agent(const bool test): test_(tes...
211
13
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.61, "nodes": 112, "errors": 0, "source_hash": "e5710e5b910d927ee39d44339a4ab843f2218b07b964a74a5beaf41f7973fc1c", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,907
c
/** @file File defines the Sec routines for the AMD SEV Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _AMD_SEV_SEC_INTERNAL_H__ #define _AMD_SEV_SEC_INTERNAL_H__ /** Handle an SEV-ES/GHCB protocol check failure. Notify ...
25.03
69
(translation_unit) "/** @file\n File defines the Sec routines for the AMD SEV\n\n Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR>\n\n SPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#ifndef _AMD_SEV_SEC_INTERNAL_H__\n#define _AMD_SEV_SEC_INTERNAL_H__\n\n/**\n Handle an SEV-ES/GHCB p...
78
1
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 25.03, "nodes": 52, "errors": 0, "source_hash": "b12c296210ee31cf93a4e62ba58b794ce72a3c60141d58e31daeb4b1643bbd40", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,908
c
/* * (C) Copyright 2020 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #ifndef LORENZ95_ANALYTICINIT_H_ #define LORENZ95_ANALYTICINIT_H_ #include "eckit/config/LocalConfiguration.h" #include "oops/int...
34.84
37
(translation_unit) "/*\n * (C) Copyright 2020 UCAR\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n */\n\n#ifndef LORENZ95_ANALYTICINIT_H_\n#define LORENZ95_ANALYTICINIT_H_\n\n#include "eckit/config/LocalConfig...
213
12
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.84, "nodes": 103, "errors": 0, "source_hash": "6c7df65089950a92cb618b8212d0a38710173cbf98d773d416a5ff97b2816ad7", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LORENZ9...
78,909
c
#include <mruby-aux/class.h> MRB_API mrb_value mrbx_proc_from_method(mrb_state *mrb, mrb_method_t m) { struct RProc *proc; if (MRB_METHOD_FUNC_P(m)) { proc = mrb_proc_new_cfunc(mrb, MRB_METHOD_FUNC(m)); } else { proc = MRB_METHOD_PROC(m); } return mrb_obj_value(proc); }
23.08
12
(translation_unit) "#include <mruby-aux/class.h>\n\nMRB_API mrb_value\nmrbx_proc_from_method(mrb_state *mrb, mrb_method_t m)\n{\n struct RProc *proc;\n\n if (MRB_METHOD_FUNC_P(m)) {\n proc = mrb_proc_new_cfunc(mrb, MRB_METHOD_FUNC(m));\n } else {\n proc = MRB_METHOD_PROC(m);\n }\n\n return mrb_obj_value(proc...
90
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.08, "nodes": 55, "errors": 0, "source_hash": "4de51f42ef8abea8863ddf5d57713fc540f1d59c6de290cb28c293da6eca4d51", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,910
c
// // RNUIScrollView.h // Rayne // // Copyright 2018 by Überpixel. All rights reserved. // Unauthorized use is punishable by torture, mutilation, and vivisection. // #ifndef __RAYNE_UISCROLLVIEW_H_ #define __RAYNE_UISCROLLVIEW_H_ #include "RNUIView.h" namespace RN { namespace UI { class ScrollView : public V...
20.12
40
(translation_unit) "//\n// RNUIScrollView.h\n// Rayne\n//\n// Copyright 2018 by Überpixel. All rights reserved.\n// Unauthorized use is punishable by torture, mutilation, and vivisection.\n//\n\n#ifndef __RAYNE_UISCROLLVIEW_H_\n#define __RAYNE_UISCROLLVIEW_H_\n\n#include "RNUIView.h"\n\nnamespace RN\n{\n namespace ...
158
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 20.12, "nodes": 97, "errors": 0, "source_hash": "6f056586e5b71609ee2e53f9782f2a803ba2b53ca50e6485550fe0ab78ffc43c", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
78,911
c
// // WDBar.h // Brushes // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // // Copyright (c) 2012-2013 <NAME> // #import <UIKit/UIKit.h> typedef enum { ...
34.59
54
(translation_unit) "//\n// WDBar.h\n// Brushes\n//\n// This Source Code Form is subject to the terms of the Mozilla Public\n// License, v. 2.0. If a copy of the MPL was not distributed with this\n// file, You can obtain one at http://mozilla.org/MPL/2.0/.\n//\n// Copyright (c) 2012-2013 <NAME>\n//\n\n#import <UIK...
523
85
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 34.59, "nodes": 355, "errors": 0, "source_hash": "01bd2fefe8e36b523605d4867fb79932707b90e0ed91568a4fd719e05ff8afdd", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
78,912
c
#ifndef _FIGURE3D_H_ #define _FIGURE3D_H_ #include <vector> #include <string> #include "../lib/prim2d.h" class El2D{ size_t n; double a,b; public: El2D(const size_t _n, const double & _a, const double & _b, std::vector<Segm2D> & f); }; /* class Line2D{ size_t n; double y,l; public: Line2D(const si...
18.57
28
(translation_unit) "#ifndef _FIGURE3D_H_\n#define _FIGURE3D_H_\n\n#include <vector>\n#include <string>\n\n#include "../lib/prim2d.h"\n\n\nclass El2D{\n size_t n;\n double a,b;\npublic:\n El2D(const size_t _n, const double & _a, const double & _b, std::vector<Segm2D> & f);\n};\n\n\n/*\nclass Line2D{\n size_t n;\n...
78
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.57, "nodes": 45, "errors": 0, "source_hash": "d4d9f07205de117bbc75f863a0d3d651e301b0dad879a4caea89de83f5009d90", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,913
c
/* * document.h * * Created on: 4. 4. 2016 * Author: ondra */ #ifndef LIBS_LIGHTCOUCH_SRC_LIGHTCOUCH_DOCUMENT_H_ #define LIBS_LIGHTCOUCH_SRC_LIGHTCOUCH_DOCUMENT_H_ #include "lightspeed/base/containers/constStr.h" #include <lightspeed/utils/json/json.h> #include "lightspeed/base/containers/autoArray.h" #inc...
39.47
161
(translation_unit) "/*\n * document.h\n *\n * Created on: 4. 4. 2016\n * Author: ondra\n */\n\n#ifndef LIBS_LIGHTCOUCH_SRC_LIGHTCOUCH_DOCUMENT_H_\n#define LIBS_LIGHTCOUCH_SRC_LIGHTCOUCH_DOCUMENT_H_\n#include "lightspeed/base/containers/constStr.h"\n#include <lightspeed/utils/json/json.h>\n#include "lightspeed/bas...
574
37
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 39.47, "nodes": 289, "errors": 0, "source_hash": "20053a4e34e5ba29f35875c741897ab08edee0ed6d1c088ba1ce9c9f83caf27d", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,914
c
#ifndef KALEIDOSCOPE17_CORE_H #define KALEIDOSCOPE17_CORE_H #include <map> #include <memory> #include <string> #include "kaleidoscope17/KaleidoscopeJIT.h" // release 70 #include "kaleidoscope17/utils.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Le...
28.84
88
(translation_unit) "#ifndef KALEIDOSCOPE17_CORE_H\n#define KALEIDOSCOPE17_CORE_H\n\n#include <map>\n#include <memory>\n#include <string>\n\n#include "kaleidoscope17/KaleidoscopeJIT.h" // release 70\n#include "kaleidoscope17/utils.h"\n#include "llvm/IR/Function.h"\n#include "llvm/IR/IRBuilder.h"\n#include "llvm/IR/LLVM...
730
41
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 28.84, "nodes": 400, "errors": 0, "source_hash": "3d5b6a6b538a0d743941b7e7cbee819b61fabdc496bb7cd9f7093db8beab3dcc", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,915
c
#pragma once #include "NativeModules.h" #include <optional> #include <string> // These should stay aligned with those defined here // https://github.com/react-native-community/react-native-localize/tree/master/src REACT_STRUCT(Locale) struct Locale { REACT_FIELD(languageCode, L"languageCode") std::string la...
33.48
54
(translation_unit) "#pragma once\n\n#include "NativeModules.h"\n\n#include <optional>\n#include <string>\n\n// These should stay aligned with those defined here\n// https://github.com/react-native-community/react-native-localize/tree/master/src\n\nREACT_STRUCT(Locale)\nstruct Locale\n{\n REACT_FIELD(languageCode, L"...
479
17
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.48, "nodes": 259, "errors": 0, "source_hash": "b2ad7772f1fb16e2926f8910691148348a212af5a66898aed69265692f47f90e", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,916
c
#pragma once #include <cstdint> #include <cmath> #include <iostream> #include "coalition.h" class SelectionPolicy { public: virtual void reset(const uint32_t n_actions) = 0; virtual void add_rollout_result(const uint32_t action, const coalition::value_t result) = 0; virtual uint32_t get_next_action() = 0; virtua...
32.45
65
(translation_unit) "#pragma once\n\n#include <cstdint>\n#include <cmath>\n#include <iostream>\n\n#include "coalition.h"\n\nclass SelectionPolicy\n{\npublic:\n virtual void reset(const uint32_t n_actions) = 0;\n virtual void add_rollout_result(const uint32_t action, const coalition::value_t result) = 0;\n virtual uint32...
530
34
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 32.45, "nodes": 322, "errors": 0, "source_hash": "bf57c5a958777c70d3e6252f2e441275c886a694b90d57ccb492799e1fec51cb", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,917
c
#ifndef _ST_HPC_PPL_NN_ENGINES_X86_ENGINE_H_ #define _ST_HPC_PPL_NN_ENGINES_X86_ENGINE_H_ #include "ppl/nn/engines/engine_impl.h" #include "ppl/nn/engines/x86/x86_device.h" #include "ppl/nn/engines/x86/x86_options.h" namespace ppl { namespace nn { namespace x86 { class X86Engine final : public EngineImpl { public: ...
41.04
28
(translation_unit) "#ifndef _ST_HPC_PPL_NN_ENGINES_X86_ENGINE_H_\n#define _ST_HPC_PPL_NN_ENGINES_X86_ENGINE_H_\n\n#include "ppl/nn/engines/engine_impl.h"\n#include "ppl/nn/engines/x86/x86_device.h"\n#include "ppl/nn/engines/x86/x86_options.h"\n\nnamespace ppl { namespace nn { namespace x86 {\n\nclass X86Engine final : ...
285
16
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 41.04, "nodes": 154, "errors": 0, "source_hash": "eea4b5c385bccd00934b896d61209d5af8fa5277336331b11b05aaa101345265", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,918
c
#ifndef _PARAM_H_ #define _PARAM_H_ #include <string> #include <vector> #include <memory> #include "BaseData.h" #include "Type.h" class Node; enum ParamType {INPUT_PARAM, OUTPUT_PARAM}; class Parameter { private: // Name of the parameter std::string m_name; // Type of parameter (input or output) ParamType m_paramT...
27.15
92
(translation_unit) "#ifndef _PARAM_H_\n#define _PARAM_H_\n#include <string>\n#include <vector>\n#include <memory>\n#include "BaseData.h"\n#include "Type.h"\nclass Node;\nenum ParamType {INPUT_PARAM, OUTPUT_PARAM};\n\nclass Parameter\n{\nprivate:\n // Name of the parameter\n std::string m_name;\n // Type of parameter (i...
638
20
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 27.15, "nodes": 387, "errors": 0, "source_hash": "c4360cb5e13aea6ef534f2d0a047e72a8715ade71b2360dd31214a14204f87e7", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,919
c
/*========================================================== * Copyright 2020 QuickLogic Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
35.67
60
(translation_unit) "/*==========================================================\n * Copyright 2020 QuickLogic Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * h...
172
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 35.67, "nodes": 134, "errors": 0, "source_hash": "a4ef698c948d8a661edc05dafaeb2f7041e9be579939a70606254b4025b3754e", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,920
c
// // GDProgressButton.h // 09-URLSession下载 // // Created by apple on 15/1/19. // Copyright (c) 2015年 zhouguodong. All rights reserved. // #import <UIKit/UIKit.h> @interface GDProgressButton : UIButton /** 进度 0.0~1.0 */ @property (nonatomic, assign) float progress; /** 线宽 */ @property (nonatomic, assign) float li...
22.71
14
(translation_unit) "//\n// GDProgressButton.h\n// 09-URLSession下载\n//\n// Created by apple on 15/1/19.\n// Copyright (c) 2015年 zhouguodong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GDProgressButton : UIButton\n/** 进度 0.0~1.0 */\n@property (nonatomic, assign) float progress;\n/** 线宽 */\n@pro...
52
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.71, "nodes": 32, "errors": 0, "source_hash": "fa95400ff998afc35f2f98a9c4486a8603d892b4949e2eb89cbfad706646a57c", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
78,921
c
#include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #ifndef _WIN32 #include <unistd.h> #endif #include "msocket.h" #include "osmacro.h" /************************** SHARED ***********************************/ static msocket_t *m_socket = 0; static int m_port = -1; /************...
21.66
140
(translation_unit) "#include <stdio.h> \n#include <stdint.h> \n#include <string.h> \n#include <stdlib.h> \n#ifndef _WIN32 \n#include <unistd.h> \n#endif \n#include "msocket.h" \n#include "osmacro.h" \n \n/************************** SHARED ***********************************/ \nstatic msocket_t *m_socket = 0; \nstatic i...
953
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 21.66, "nodes": 553, "errors": 0, "source_hash": "dc2511cec3c08db08ae43c013197d8668e2817735627aabac71cfbb4e7abac52", "categorized_nodes": 389}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,922
c
/****************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
24.64
87
(translation_unit) "/******************************************************************\n *\n * Copyright 2016 Samsung Electronics All Rights Reserved.\n *\n *\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 ...
175
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 24.64, "nodes": 119, "errors": 0, "source_hash": "f9b4b676a137da3c16caed0397e52e2b65e50d72fc395eb1e6c04a3454af2115", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,923
c
/* Round to int long double floating-point values. IBM extended format long double version. Copyright (C) 2006, 2007, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser...
39.3
57
(translation_unit) "/* Round to int long double floating-point values.\n IBM extended format long double version.\n Copyright (C) 2006, 2007, 2012 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under t...
243
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 39.3, "nodes": 146, "errors": 0, "source_hash": "1a61afe97818082f0057bae820952f1efb011ad4a5d09e569f8f3ae23436ac00", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,924
c
// // TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd. // All rights reserved. See LICENSE.txt for license. // #ifndef RENDER_UTIL_H #define RENDER_UTIL_H #include <MaterialXCore/Document.h> #include <MaterialXFormat/XmlIo.h> #include <MaterialXGenShader/Util.h> #include <MaterialXGenShader/HwS...
37.08
201
(translation_unit) "//\n// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.\n// All rights reserved. See LICENSE.txt for license.\n//\n\n#ifndef RENDER_UTIL_H\n#define RENDER_UTIL_H\n\n#include <MaterialXCore/Document.h>\n#include <MaterialXFormat/XmlIo.h>\n\n#include <MaterialXGenShader/Util.h>\n...
1,593
87
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 37.08, "nodes": 892, "errors": 0, "source_hash": "568af2b41c80013d6105841efaeaec97130f8fb6556a9bee604d0a056bcffbbe", "categorized_nodes": 609}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,925
c
/* DrivePFE.h (c)2004 PaleStar Development, <NAME> */ #ifndef DRIVE_PFE_H #define DRIVE_PFE_H #include "DarkSpace/GadgetDrive.h" //---------------------------------------------------------------------------- class DrivePFE : public GadgetDrive { public: DECLARE_WIDGET_CLASS(); // NounGadget interface int ma...
14.94
69
(translation_unit) "/*\n DrivePFE.h\n (c)2004 PaleStar Development, <NAME>\n*/\n\n#ifndef DRIVE_PFE_H\n#define DRIVE_PFE_H\n\n#include "DarkSpace/GadgetDrive.h"\n\n\n\n//----------------------------------------------------------------------------\n\nclass DrivePFE : public GadgetDrive\n{\npublic:\n DECLARE_WIDGET_CLASS...
264
14
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 14.94, "nodes": 122, "errors": 0, "source_hash": "dfcca6f2a44208a9713ed2fc1b3e3b118f2d70c5db6386a7c606be4dab9c088a", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,926
c
#pragma once #define DllExport __declspec( dllexport ) namespace pacman { struct DllExport EnumClassHash { template <typename T> size_t operator()(T t) const { return static_cast<size_t>(t); } }; }
19.8
10
(translation_unit) "#pragma once\n#define DllExport __declspec( dllexport )\n\nnamespace pacman {\n\nstruct DllExport EnumClassHash {\n template <typename T>\n size_t operator()(T t) const {\n return static_cast<size_t>(t);\n }\n};\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (p...
64
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.8, "nodes": 43, "errors": 0, "source_hash": "628de4a7b3fc0fbc73322f6a54dd1fdeddcc664c58703377ae9b52ee7128641b", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,927
c
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organization...
33.83
76
(translation_unit) "/**********************************************************************\n * LeechCraft - modular cross-platform feature rich internet client.\n * Copyright (C) 2006-2014 <NAME>\n *\n * Boost Software License - Version 1.0 - August 17th, 2003\n *\n * Permission is hereby granted, free of charge, to ...
296
13
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 33.83, "nodes": 185, "errors": 0, "source_hash": "0cf9e784551fc7970e323a8eb72e6602135bf2d155a0d2d8c6fae41437f2e73f", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,928
c
#ifndef DUST3D_APPLICATION_DDS_FILE_H_ #define DUST3D_APPLICATION_DDS_FILE_H_ #include <QString> #include <QOpenGLTexture> class DdsFileReader { public: DdsFileReader(const QString &filename); QOpenGLTexture *createOpenGLTexture(); private: QString m_filename; }; #endif
20.77
13
(translation_unit) "#ifndef DUST3D_APPLICATION_DDS_FILE_H_\n#define DUST3D_APPLICATION_DDS_FILE_H_\n\n#include <QString>\n#include <QOpenGLTexture>\n\nclass DdsFileReader\n{\npublic:\n DdsFileReader(const QString &filename);\n QOpenGLTexture *createOpenGLTexture();\nprivate:\n QString m_filename;\n};\n\n#endif...
56
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.77, "nodes": 35, "errors": 0, "source_hash": "1b46aba7835141d4cda5108f87408e8c7d8323820915475995b3a1de48643644", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,929
c
//////////////////////////////////////////////////////////////////////////// // Created : 06.04.2010 // Author : <NAME> // Copyright (C) GSC Game World - 2010 //////////////////////////////////////////////////////////////////////////// #ifndef PARTICLE_SCALABLE_CONTROL_H_INCLUDED #define PARTICLE_SCALABLE_CON...
24.62
86
(translation_unit) "//////////////////////////////////////////////////////////////////////////// \n// Created : 06.04.2010 \n// Author : <NAME> \n// Copyright (C) GSC Game World - 2010 \n//////////////////////////////////////////////////////////////////////////// \n \n#ifndef PARTICLE_SCALABLE_CONTROL_H_INCLUDED \n#d...
406
29
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.62, "nodes": 259, "errors": 0, "source_hash": "97ae77ef95642d66e356e808edd53ea0599ac7694d0e14620a7d31203eeb9a13", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,930
c
/** * \file * \author <NAME> * \date 2010-01-20 * \brief Definition of the BaseItem class. * * \copyright * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * htt...
33.93
54
(translation_unit) "/**\n * \file\n * \author <NAME>\n * \date 2010-01-20\n * \brief Definition of the BaseItem class.\n *\n * \copyright\n * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICEN...
291
9
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.93, "nodes": 165, "errors": 0, "source_hash": "0c8e7da18eac7d5507943378a258e3f2b4c779960bdaa6bfd2567419fa9470e7", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,931
c
#include <stdio.h> int MinIndex(const int *Array, int Start, int Size) { int Min = Start, i = 0; for (i = Start; i < Size; i++) if (Array[i] < Array[Min]) Min = i; return Min; } int main() { int Count = 0; while (scanf("%d", &Count) != EOF) { int Array[Count], i = 0, j = 0; for (i = 0; i < Count; i++)scanf("...
23.33
24
(translation_unit) "#include <stdio.h>\n\nint MinIndex(const int *Array, int Start, int Size) {\n int Min = Start, i = 0;\n for (i = Start; i < Size; i++) if (Array[i] < Array[Min]) Min = i;\n return Min;\n}\n\nint main() {\n int Count = 0;\n while (scanf("%d", &Count) != EOF) {\n int Array[Count], i = 0, j = 0;\n fo...
308
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.33, "nodes": 187, "errors": 0, "source_hash": "1251918099376566fa6f1d3822530d73a6ad89fd01afc7e49ac46ae26f7f6a45", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,932
c
/* * Copyright 2012 Aarhus University * * 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 agre...
31.27
63
(translation_unit) "/*\n * Copyright 2012 Aarhus University\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 requi...
229
5
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.27, "nodes": 147, "errors": 0, "source_hash": "666271e86419f0751359628dd38afc2abdb86c675eabd66f397c81854f5d4214", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,933
c
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-05-20 bigmagic first version */ #ifndef __DRV_UART_H__ #define __DRV_UART_H__ #define UART0_IRQ (10) #define UART_DEFAULT_BAUDRATE ...
36.97
33
(translation_unit) "/*\n * Copyright (c) 2006-2021, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2021-05-20 bigmagic first version\n */\n\n#ifndef __DRV_UART_H__\n#define __DRV_UART_H__\n\n#define UART0_IRQ (10)\n\n#defin...
114
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.97, "nodes": 101, "errors": 0, "source_hash": "3a70b125a8cef5cede0315c0ee3b41e88e543c482808ceadd0c08cd1a2a12f73", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,934
c
/* * Copyright (c) 2012-2015 <NAME> <<EMAIL>> * <https://github.com/chansen/c-dt> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the a...
28.52
222
(translation_unit) "/*\n * Copyright (c) 2012-2015 <NAME> <<EMAIL>>\n * <https://github.com/chansen/c-dt>\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met: \n * \n * 1. Redistributions of s...
1,998
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 28.52, "nodes": 1177, "errors": 0, "source_hash": "ff4dbc4dda06f85b64f1ea0ea38619bbb2680558b71eee7171fc6ce2fe6a046f", "categorized_nodes": 918}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,935
c
#include <bmlib.h> #ifdef BMLIB_HAS_STRING /* * string functions. * some are optimised for size not efficiency or libc conforming! */ int strlen(const char *s) { int ret = 0; while(*s++ != '\0') ret++; return ret; } void strcpy(char *dst, const char *src) { for(; *src != '\0'; ) ...
18.74
102
(translation_unit) "#include <bmlib.h>\n\n#ifdef BMLIB_HAS_STRING\n\n/*\n * string functions.\n * some are optimised for size not efficiency or libc conforming!\n */\n\nint strlen(const char *s)\n{\n int ret = 0;\n while(*s++ != '\0')\n ret++;\n return ret;\n}\n\nvoid strcpy(char *dst, const char *src)\...
898
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 18.74, "nodes": 623, "errors": 0, "source_hash": "862ac62a472da4a97357428fc9cff2225bf0f8b6307812c3a65ab2f15c38b9db", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,936
c
// // DislikeModel.h // KG_Video // // Created by apple on 16/12/5. // Copyright © 2016年 zhangyanlin. All rights reserved. // #import <Foundation/Foundation.h> @interface DislikeModel : NSObject @property (nonatomic, assign) NSInteger dislikeId; @property (nonatomic, copy) NSString *dislikeText; + (void)save...
27.43
14
(translation_unit) "//\n// DislikeModel.h\n// KG_Video\n//\n// Created by apple on 16/12/5.\n// Copyright © 2016年 zhangyanlin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface DislikeModel : NSObject\n\n@property (nonatomic, assign) NSInteger dislikeId;\n@property (nonatomic, copy) NSSt...
82
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.43, "nodes": 53, "errors": 0, "source_hash": "e2a83a1b269577b5c455dfa76e7051b63ec2309ca36368b2377659881ff0e9fc", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
78,937
c
#pragma once #include "Texture.h" #include "Utils.h" #include "Vector.h" namespace xitils { class SkySphere { public: virtual Vector3f getRadiance(const Vector3f& wi) = 0; }; class SkySphereFromImage : public SkySphere { public: SkySphereFromImage(const std::string& filename): tex(filename) {} Vec...
22.53
38
(translation_unit) "#pragma once\n\n#include "Texture.h"\n#include "Utils.h"\n#include "Vector.h"\n\nnamespace xitils {\n\n class SkySphere {\n public: \n virtual Vector3f getRadiance(const Vector3f& wi) = 0;\n };\n\n class SkySphereFromImage : public SkySphere {\n public:\n SkySphereFromImage(const std::string& file...
346
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.53, "nodes": 208, "errors": 0, "source_hash": "91a0b715f66cb9214e444bcd97f71eeeccda495ee03c8326e0c30b98973ed23c", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,938
c
#include <stdio.h> #include <string.h> #include <limits.h> #include "ex00/ft_strlen.c" #include "ex01/ft_putstr.c" #include "ex02/ft_putnbr.c" #include "ex03/ft_atoi.c" #include "ex04/ft_putnbr_base.c" #include "ex05/ft_atoi_base.c" int main() { char *s1 = "jesuis7"; printf("%d\n", ft_strlen(s1)); char *s = "bonjo...
34.34
73
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <limits.h>\n#include "ex00/ft_strlen.c"\n#include "ex01/ft_putstr.c"\n#include "ex02/ft_putnbr.c"\n#include "ex03/ft_atoi.c"\n#include "ex04/ft_putnbr_base.c"\n#include "ex05/ft_atoi_base.c"\n\nint main()\n{\n char *s1 = "jesuis7";\n printf("%d\n", f...
1,181
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 34.34, "nodes": 554, "errors": 0, "source_hash": "608790df82b7fd74a74ea805a801f4bc603ee39ab56650978f8c5aa7ed1a88cc", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,939
c
#ifndef KB8042_H #define KB8042_H #include <drivers/keyboard.h> bool init8042(); #endif//KB8042_H
18.6
5
(translation_unit) "#ifndef KB8042_H\n#define KB8042_H\n#include <drivers/keyboard.h>\n\nbool init8042();\n\n#endif//KB8042_H\n" (preproc_ifdef) "#ifndef KB8042_H\n#define KB8042_H\n#include <drivers/keyboard.h>\n\nbool init8042();\n\n#endif" (#ifndef) "#ifndef" (identifier) "KB8042_H" (preproc_def) "#def...
20
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 18.6, "nodes": 15, "errors": 0, "source_hash": "ea3c14970746bac995b432532d8d7df22049df68a77242462919b509de4fa6b9", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef KB...
78,940
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* list.c :+: :+: :+: ...
26.58
71
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* list.c ...
553
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 26.58, "nodes": 337, "errors": 0, "source_hash": "28b27c4e21d9b7b7244118e26f8e5976899346421067f2c55a00b07dc6083f7d", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,941
c
#include "rw_locker.h" typedef enum _RwLockerMode { RW_LOCKER_NONE, RW_LOCKER_W, RW_LOCKER_R, } RwLockerMode; struct _RwLocker { int readers; RwLockerMode mode; Locker *w_locker; Locker *r_locker; }; RwLocker *rw_locker_create(Locker *w_locker, Locker *r_locker) { return_val_if_fail(w...
26.03
75
(translation_unit) "#include "rw_locker.h"\n\ntypedef enum _RwLockerMode {\n RW_LOCKER_NONE,\n RW_LOCKER_W,\n RW_LOCKER_R,\n} RwLockerMode;\n\nstruct _RwLocker {\n int readers;\n RwLockerMode mode;\n Locker *w_locker;\n Locker *r_locker;\n};\n\nRwLocker *rw_locker_create(Locker *w_locker, Locker *r...
615
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 26.03, "nodes": 387, "errors": 0, "source_hash": "82b940dd7dd3b801ef83354a7353fec43e2f44800ef72b1ceeb872b757535586", "categorized_nodes": 283}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,942
c
#ifndef POSTGRESPRODUCERSREPOSITORY_H #define POSTGRESPRODUCERSREPOSITORY_H #include <map> #include <pqxx/pqxx> #include "base_config.h" #include "base_producers_repository.h" class PostgresProducersRepository : public BaseProducersRepository { public: PostgresProducersRepository(const std::shared_ptr<BaseConfig>&...
38.83
35
(translation_unit) "#ifndef POSTGRESPRODUCERSREPOSITORY_H\n#define POSTGRESPRODUCERSREPOSITORY_H\n\n#include <map>\n#include <pqxx/pqxx>\n#include "base_config.h"\n#include "base_producers_repository.h"\n\nclass PostgresProducersRepository : public BaseProducersRepository {\n public:\n PostgresProducersRepository(cons...
347
22
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 38.83, "nodes": 197, "errors": 0, "source_hash": "fa7866333e4d5eb07be58b43ab9de8a6a3a3a04cd49c4f1ff8f7fe7813ff0be6", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,943
c
/** @file Barrier to stop speculative execution (SMM version). Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include "Variable.h" /** This service is consumed by the variable modules to place a barrier t...
20.38
26
(translation_unit) "/** @file \n Barrier to stop speculative execution (SMM version). \n \nCopyright (c) 2018, Intel Corporation. All rights reserved.<BR> \nSPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#include <Library/BaseLib.h> \n#include "Variable.h" \n \n/** \n This service is consumed by the varia...
31
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.38, "nodes": 16, "errors": 0, "source_hash": "0a9494d971c546f3d0e2923b2cbd363aed8ed724e45932be50b0703b7f86feef", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,944
c
#ifndef INTERFACESPEC_H #define INTERFACESPEC_H #include "dictionaryInstance.h" #include "explicitItemId.h" #include "implicitItemId.h" #include "sc_export.h" class SC_CORE_EXPORT Interface_spec : public Dictionary_instance { public: #ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable: 4251 ) #endif...
29.06
99
(translation_unit) "#ifndef INTERFACESPEC_H\n#define INTERFACESPEC_H\n\n#include "dictionaryInstance.h"\n#include "explicitItemId.h"\n#include "implicitItemId.h"\n\n#include "sc_export.h"\n\nclass SC_CORE_EXPORT Interface_spec : public Dictionary_instance\n{\n public:\n#ifdef _MSC_VER\n#pragma warning( push )\n#prag...
472
9
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 29.06, "nodes": 287, "errors": 0, "source_hash": "c5ed447e0fd239e04bae80f84f78cf5b965bd93ed94fadedbeb9db8361a78ba3", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,945
c
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http:...
21.62
42
(translation_unit) "/******************************************************************************\n * Copyright (c) 2004, 2008 IBM Corporation\n * All rights reserved.\n * This program and the accompanying materials\n * are made available under the terms of the BSD License\n * which accompanies this distribution, and...
206
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.62, "nodes": 128, "errors": 0, "source_hash": "edbe263e81af7a3394702909d8babb310757917558710eba7ec1c907e83cef02", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,946
c
/** @file HL_epc.h * @brief EPC Driver Header File * @date 07-July-2017 * @version 04.07.00 * * This file contains: * - Definitions * - Types * - Interface Prototypes * . * which are relevant for the EPC driver. */ /* * Copyright (C) 2009-2016 Texas Instruments Incorporated - www....
25.22
136
(translation_unit) "/** @file HL_epc.h \n* @brief EPC Driver Header File \n* @date 07-July-2017 \n* @version 04.07.00 \n* \n* This file contains: \n* - Definitions \n* - Types \n* - Interface Prototypes \n* . \n* which are relevant for the EPC driver. \n*/ \n \n \n/* \n* Copyright (C) 2009-2016 Te...
352
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 25.22, "nodes": 256, "errors": 0, "source_hash": "475997c798d5a25ff6e1f3ba73fe31422e34a5d133e163d36858ed1a8b17a344", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,947
c
#ifndef GS_TEXTURE_GENERATOR_H #define GS_TEXTURE_GENERATOR_H #include "gsColor.h" #include "gsLandTile.h" #include "../cck/cckSimplexNoise.h" namespace gs { class TextureGenerator { private: struct BiomeColorGroup { public: const gs::Color color0; const gs:...
31.53
32
(translation_unit) "#ifndef GS_TEXTURE_GENERATOR_H\n#define GS_TEXTURE_GENERATOR_H\n\n#include "gsColor.h"\n#include "gsLandTile.h"\n#include "../cck/cckSimplexNoise.h"\n\nnamespace gs\n{\n class TextureGenerator\n {\n private:\n struct BiomeColorGroup\n {\n public:\n const gs::...
284
21
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.53, "nodes": 137, "errors": 0, "source_hash": "808254df647c71f902f0367fee8ec09896a5e0db8e676a5c830cebb66f4bf398", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,948
c
/* * test-settings.c * Copyright (C) 2014 <NAME> <<EMAIL>> * * Distributed under terms of the MIT license. */ #include "../dg-settings.h" #include "../dg-util.h" #include <glib.h> #include <gio/gio.h> #include <glib/gstdio.h> #include <unistd.h> #include <string.h> DG_SETTINGS_CLASS_DECLARE (TestSettings, test_...
30.31
113
(translation_unit) "/*\n * test-settings.c\n * Copyright (C) 2014 <NAME> <<EMAIL>>\n *\n * Distributed under terms of the MIT license.\n */\n\n#include "../dg-settings.h"\n#include "../dg-util.h"\n#include <glib.h>\n#include <gio/gio.h>\n#include <glib/gstdio.h>\n#include <unistd.h>\n#include <string.h>\n\n\nDG_SETTING...
845
9
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 30.31, "nodes": 461, "errors": 0, "source_hash": "a657fff3d53f121b71fc1ec3d744ee46ee48dc904ec726c44e8082b0d0e8f143", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,949
c
#import <Foundation/Foundation.h> #include "robobo_msgs/srv/talk__response.h" #import "ROS_std_msgs/msg/Int8.h" @interface ROS_robobo_msgs_srv_Talk_Response : NSObject { ROS_std_msgs_msg_Int8* error; } @property(assign) ROS_std_msgs_msg_Int8* error; + (intptr_t)typesupportHandle; + (intptr_t)fromObjcConverterPtr...
39.71
14
(translation_unit) "#import <Foundation/Foundation.h>\n\n#include "robobo_msgs/srv/talk__response.h"\n\n#import "ROS_std_msgs/msg/Int8.h"\n\n@interface ROS_robobo_msgs_srv_Talk_Response : NSObject {\n ROS_std_msgs_msg_Int8* error;\n}\n\n@property(assign) ROS_std_msgs_msg_Int8* error;\n\n+ (intptr_t)typesupportHandle;\...
130
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.71, "nodes": 84, "errors": 0, "source_hash": "fcd92487c343a24ea7c98728ed01bc4c9c469dcc002442e76229f8ee1d34316a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,950
c
#ifndef __ERROR_H__ #define __ERROR_H__ #include "base.h" namespace native { class exception { public: exception(const std::string& message) : message_(message) { } virtual ~exception() { } const std::string& message() const { return message_; } private: std::string ...
17.25
57
(translation_unit) "#ifndef __ERROR_H__\n#define __ERROR_H__\n\n#include "base.h"\n\nnamespace native\n{\nclass exception\n{\n public:\n exception(const std::string& message)\n : message_(message)\n {\n }\n\n virtual ~exception() {\n }\n\n const std::string& message() const {\n return messa...
349
12
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 17.25, "nodes": 184, "errors": 0, "source_hash": "a84f38574828e5ed91350c3e6143b01254150f93aa0add4863462c355ff9d552", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,951
c
// // ChannelBarrageHelper.h // kiwi // // Created by 潘志勇 on 2018/1/30. // Copyright © 2018年 YY Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "ChannelBarrageTypes.h" extern const CGFloat kDefaultBarrageAlpha; extern const CGFloat kMinBarrageAlpha; @interface ChannelBarrageHelper : NSObje...
26.17
18
(translation_unit) "//\n// ChannelBarrageHelper.h\n// kiwi\n//\n// Created by 潘志勇 on 2018/1/30.\n// Copyright © 2018年 YY Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ChannelBarrageTypes.h"\n\nextern const CGFloat kDefaultBarrageAlpha;\nextern const CGFloat kMinBarrageAlpha;\n\n@inter...
65
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.17, "nodes": 40, "errors": 0, "source_hash": "e831787a96f79776e09521f65f2e4ffcfc0fb23f7dde127feb6dd43595e28d48", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
78,952
c
//typedef int item; /* typedef struct bintree { item d; struct bintree *l; struct bintree *r; } tree; */ //extern struct bintree; //typedef struct bintree gtree; void init(void *); void redraw(); void setopfmt(char *);
13
16
(translation_unit) "//typedef int item;\n\n/*\ntypedef struct bintree\n{\n item d;\n struct bintree *l;\n struct bintree *r;\n} tree;\n*/\n\n\n//extern struct bintree;\n//typedef struct bintree gtree;\n\n\nvoid init(void *);\nvoid redraw();\nvoid setopfmt(char *);\n\n\n\n" (comment) "//typedef int item;" (comment) ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 13.0, "nodes": 23, "errors": 0, "source_hash": "b9947265eb2f2aa3d5e774f624093485290b673bde5747af1536ead92ad58af8", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void init(v...
78,953
c
/* * Copyright 2012 The Spedye Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
27.33
97
(translation_unit) "/*\n * Copyright 2012 The Spedye Authors. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE...
463
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 27.33, "nodes": 344, "errors": 0, "source_hash": "dd451a6c167e90fd430378953f6716ec72fcb4060b8754d5ea7e9de94d98b814", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,954
c
/* * This file is part of the micropython-usermod project, * * https://github.com/v923z/micropython-usermod * * The MIT License (MIT) * * Copyright (c) 2019 <NAME> */ #include "py/obj.h" #include "py/builtin.h" #include "py/runtime.h" #include <stdlib.h> STATIC mp_obj_t mean_function(mp_obj_t error_code) ...
36.04
45
(translation_unit) "/*\n * This file is part of the micropython-usermod project, \n *\n * https://github.com/v923z/micropython-usermod\n *\n * The MIT License (MIT)\n *\n * Copyright (c) 2019 <NAME>\n*/\n \n#include "py/obj.h"\n#include "py/builtin.h"\n#include "py/runtime.h"\n#include <stdlib.h>\n\nSTATIC mp_obj_t ...
356
2
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.04, "nodes": 190, "errors": 0, "source_hash": "983f840521587c58fbbe8fdbbc357c0d57aea3e56c431bf297685808df4e2a68", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,955
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <InterfaceBuilderKit/IBLibraryObjectTemplate.h> @class IBObjectContainer; @interface IBLibraryCustomObjectTemplate : IBLibraryObjectTemplate { IBObjectContainer *objectConta...
28.2
20
(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 <InterfaceBuilderKit/IBLibraryObjectTemplate.h>\n\n@class IBObjectContainer;\n\n@interface IBLibraryCustomObjectTemplate : IBLibraryObjectTemplate\n{\n ...
149
11
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.2, "nodes": 87, "errors": 0, "source_hash": "658ee7ad7b64a823a0c5b22f3b5ed2fcda05beb4db1c5cca343d943c6001768b", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <I...
78,956
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/sdb/SimpleDB_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSStreamFwd.h> namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // names...
28.72
50
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/sdb/SimpleDB_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSStreamFwd.h>\n\nnamespace Aws\n{\nnamespace Utils\n{\nnamespace Xml\n{\n class XmlNod...
297
13
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.72, "nodes": 182, "errors": 0, "source_hash": "12fc98118f51c82312cfb6a356210b2ff3f0e25e9902eb142948cffab7620a7d", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
78,957
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (c) 2011 Samsung Electronics Co., Ltd. * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #ifndef _EXYNOS_DRM_FBDEV_H_ #define _EXYNOS_DRM_FBDEV_H_ #ifdef CONFIG_DRM_FBDEV_EMULATION int exynos_drm_fbdev_init(struct drm_device...
22.86
28
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * Copyright (c) 2011 Samsung Electronics Co., Ltd.\n *\n * Authors:\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n */\n\n#ifndef _EXYNOS_DRM_FBDEV_H_\n#define _EXYNOS_DRM_FBDEV_H_\n\n#ifdef CONFIG_DRM_FBDEV_EMULATION\n\nint exyn...
117
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.86, "nodes": 85, "errors": 0, "source_hash": "5209db194ad60db65450e93406c4e7ec42bdc1b84091949155c47e4bbc787312", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,958
c
// // FriendsTableViewController.h // GithubFriends // // Created by <NAME> on 3/18/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface FriendsTableViewController : UITableViewController @end
20.64
11
(translation_unit) "//\n// FriendsTableViewController.h\n// GithubFriends\n//\n// Created by <NAME> on 3/18/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FriendsTableViewController : UITableViewController\n\n\n\n@end\n" (comment) "//" (comment) "// Friends...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.64, "nodes": 9, "errors": 0, "source_hash": "e57e064a425925d75fd20dcf49d582f5ef88a6948b3fe929d1580bd97c00e677", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
78,959
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <signal.h> #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while(0) int count; char val; void sigalrmHandler(int sig) { /* Do nothing */ return; } int main(int argc, char *argv[]) { struct sigaction...
24.62
39
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <signal.h>\n \n#define handle_error(msg) \\n do { perror(msg); exit(EXIT_FAILURE); } while(0)\n\nint count;\nchar val;\n\nvoid sigalrmHandler(int sig) {\n /* Do nothing */\n return;\n}\n\n\nint main(int ar...
272
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.62, "nodes": 150, "errors": 0, "source_hash": "db2d5ae71c66739be8cfca0033592550575865b61d086a670a4ce798cd4f5740", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,960
c
#ifndef WIDGET_H #define WIDGET_H #if Win32 #include <SDL2\SDL_events.h> #endif #if __EMSCRIPTEN__ #include <SDL\SDL_events.h> #endif class Widget { public: Widget(); virtual ~Widget(); virtual void Render()const=0; virtual void Render(float percent)const=0; virtual void Input(SDL_Event &event)=0; private: }; #e...
16
19
(translation_unit) "#ifndef WIDGET_H\n#define WIDGET_H\n#if Win32\n#include <SDL2\SDL_events.h>\n#endif\n#if __EMSCRIPTEN__\n#include <SDL\SDL_events.h>\n#endif\nclass Widget\n{\npublic:\n Widget();\n virtual ~Widget();\n virtual void Render()const=0;\n virtual void Render(float percent)const=0;\n virtual void Input(SD...
104
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.0, "nodes": 72, "errors": 0, "source_hash": "f23560c3fb83a4cd1ca4dca3d6a0d202e534bee5a127381f30791d24257b11dd", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
78,961
c
#pragma once #include "common/Typedefs.h" #include "common/Handle.h" #include <RfgTools++/formats/meshes/TerrainLowLod.h> #include <RfgTools++/formats/meshes/Terrain.h> #include <vector> #include <mutex> class RenderObject; struct LowLodTerrainVertex { i16 x = 0; i16 y = 0; i16 z = 0; i16 w = 0; }; st...
26.3
47
(translation_unit) "#pragma once\n#include "common/Typedefs.h"\n#include "common/Handle.h"\n#include <RfgTools++/formats/meshes/TerrainLowLod.h>\n#include <RfgTools++/formats/meshes/Terrain.h>\n#include <vector>\n#include <mutex>\n\nclass RenderObject;\n\nstruct LowLodTerrainVertex\n{\n i16 x = 0;\n i16 y = 0;\n ...
271
13
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.3, "nodes": 174, "errors": 0, "source_hash": "6804962daa89903b6e6814455dee1222383055b66f25b5ecd03608273afbd59b", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,962
c
#pragma once #include <vector> #include "Material.h" #ifndef GL_H #define GL_H #include "extern\GL\glew.h" #endif class MaterialGroup { public: MaterialGroup(){}; ~MaterialGroup(){ Triangles.clear(); }; Material** getBaseMaterial() { return &BaseMaterial; } void setBaseMaterial(Material *m...
23.24
89
(translation_unit) "#pragma once \n \n#include <vector> \n \n#include "Material.h" \n \n#ifndef GL_H \n#define GL_H \n#include "extern\GL\glew.h" \n#endif \n \nclass MaterialGroup \n{ \npublic: \n MaterialGroup(){}; \n ~MaterialGroup(){ Triangles.clear(); }; \n \n Material** getBaseMaterial() { return &BaseMaterial; }...
737
4
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 23.24, "nodes": 436, "errors": 0, "source_hash": "907149edeb4d23d38faeac136ef30c51632fb6fff1d95e6a58a17f68659838d0", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,963
c
/* * Copyright (C) 2019 ML!PA Consulting GmbH * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_at86rf215 * @{ * * @file * @brief Default configuration ...
27.52
61
(translation_unit) "/*\n * Copyright (C) 2019 ML!PA Consulting GmbH\n *\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n */\n\n/**\n * @ingroup drivers_at86rf215\n * @{\n *\n * @file\n * @b...
105
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.52, "nodes": 79, "errors": 0, "source_hash": "6911c8734d87e6ab77917b1071fa9c8619edf481a53dc73e9ee372545727c9c1", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,964
c
#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <pthread.h> #include <errno.h> #include "debug.h" #include "box86context.h" #include "dynarec.h" #include "emu/x86emu_private.h" #include "emu/x86run_private.h" #include "x86run.h" #include "x86emu.h" #include "box86stack.h" #include "callback.h" #inc...
27.81
70
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stddef.h>\n#include <pthread.h>\n#include <errno.h>\n\n#include "debug.h"\n#include "box86context.h"\n#include "dynarec.h"\n#include "emu/x86emu_private.h"\n#include "emu/x86run_private.h"\n#include "x86run.h"\n#include "x86emu.h"\n#include "box86st...
533
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 27.81, "nodes": 296, "errors": 0, "source_hash": "c1f36f608663537feef56383cc8da2e652405f7e706bd331eb98feb556ff0a67", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,965
c
#include <stdio.h> int main (void) { int count = 0; int mientero = 0; printf("Introduce el nº. \n"); scanf("%d" , &mientero); for(int i=0;i<=mientero;i++) { if(mientero % i ==0) { count++; } } if(count == 2){printf("Es primo. \n");}
12.74
19
(translation_unit) "#include <stdio.h>\n\nint main (void)\n{\n int count = 0;\n int mientero = 0;\n printf("Introduce el nº. \n");\n scanf("%d" , &mientero);\n\n for(int i=0;i<=mientero;i++)\n {\n \n if(mientero % i ==0) {\n \n count++;\n \n }\n \n } \n \n if(count == 2){printf("Es primo. \n");}\n" (preproc_inc...
123
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 12.74, "nodes": 68, "errors": 0, "source_hash": "74c307cd14ee2c95fcd70b49b13b04257c176be557af89e4ad3797e979d29fdf", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,966
c
#include "types.h" #include "user.h" #include "thread.h" int global=0; void th1(void *arg_ptr); int main(int argc, char *argv[]) { int a=0; int t_pid= thread_create(th1, (void*) &a); printf(1,"Thread with PID %d created\n",t_pid); int t_pid1= thread_create(th1, (void*) &a); printf(1,"Thread with PID...
20
30
(translation_unit) "#include "types.h"\n#include "user.h"\n#include "thread.h"\n\nint global=0;\nvoid th1(void *arg_ptr);\n\nint\nmain(int argc, char *argv[])\n{ \n int a=0;\n\n int t_pid= thread_create(th1, (void*) &a);\n printf(1,"Thread with PID %d created\n",t_pid);\n int t_pid1= thread_create(th1, (void*)...
275
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.0, "nodes": 166, "errors": 0, "source_hash": "a24c07d287e614950deba6899de89e33f1bf7e353c828a678ed8a1e14f910b4b", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,967
c
#ifndef DRAWINGBOARD_H #define DRAWINGBOARD_H #include <QtDebug> #include <QWidget> /* 功能: 可以擦除,可保存,可恢复画板 说明: 该画板在 qt5.9.8 下测试通过,目前在 ARM Cortex A7 双核 @1.3GHz 画图尚且流畅 有些是没有用到,例如 offsetPoint_ */ namespace DrawingBoardNameSpace { #define LOGD qDebug()<<__func__ class DrawingBoard : public QWidget { ...
27.26
58
(translation_unit) "#ifndef DRAWINGBOARD_H\n#define DRAWINGBOARD_H\n#include <QtDebug>\n#include <QWidget>\n\n\n/*\n 功能: 可以擦除,可保存,可恢复画板\n 说明: 该画板在 qt5.9.8 下测试通过,目前在 ARM Cortex A7 双核 @1.3GHz 画图尚且流畅\n 有些是没有用到,例如\n\n offsetPoint_\n\n*/\n\n\n\n\nnamespace DrawingBoardNameSpace {\n\n#define LOGD qDebug()<<__func__...
384
19
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.26, "nodes": 261, "errors": 0, "source_hash": "d4d027273e8d1559c1f7b8c63005a40f1d3fbf0787fcc3d0f51a7ae99ad3f094", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,968
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon */ @interface HMDIDSServiceManager : HMFObject { _HMDIDSProxyLinkPreferenceAssertion * _proxyLinkPreferenceAssertion; IDSService * _proxyService; IDSService * _service; IDSService * _stream...
36.08
26
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon\n */\n\n@interface HMDIDSServiceManager : HMFObject {\n _HMDIDSProxyLinkPreferenceAssertion * _proxyLinkPreferenceAssertion;\n IDSService * _proxyService;\n IDSService * _servic...
254
19
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.08, "nodes": 165, "errors": 0, "source_hash": "c0e6c74cc4cc4d11cb3da0c307af6f9d362a45451ea084bc52b408aa9a89a963", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
78,969
c
#ifndef UTIL_MAIN_INCL #define UTIL_MAIN_INCL int main(int argc, char **argv) { absl::ParseCommandLine(argc, argv); auto status = Main(); Output_value(status.status()); if (status.ok()) { return 0; } Output_value(status.error().message()); Output_value(status.error().StackTrace()); return 1; } #en...
23.57
14
(translation_unit) "#ifndef UTIL_MAIN_INCL\n#define UTIL_MAIN_INCL \nint main(int argc, char **argv) {\n absl::ParseCommandLine(argc, argv);\n auto status = Main();\n Output_value(status.status());\n if (status.ok()) {\n return 0;\n }\n\n Output_value(status.error().message());\n Output_value(status.error().S...
122
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.57, "nodes": 67, "errors": 0, "source_hash": "eeb9c01f74dbfad4cba08e3a301a85d1bff2096f852b28155fa8be2441c411b0", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,970
c
#pragma once #include "../../include/CrossPlatform.h" #include "../../include/ApiStruct.h" #include "../../include/QueueEnum.h" #include <set> #include <string> #include <mutex> #include <atomic> #include <thread> #ifdef _WIN64 #pragma comment(lib, "../../include/REM/win64/EESQuoteApi.lib") #else #pragma comment...
34
128
(translation_unit) "ragma once\n\n#include "../../include/CrossPlatform.h"\n#include "../../include/ApiStruct.h"\n#include "../../include/QueueEnum.h"\n\n#include <set>\n#include <string>\n#include <mutex>\n#include <atomic>\n#include <thread>\n\n\n#ifdef _WIN64\n #pragma comment(lib, "../../include/REM/win64/EESQuoteA...
870
20
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 34.0, "nodes": 605, "errors": 0, "source_hash": "2701b918c9765ec096661baf5fd5bb56f0ff7904c245e32773b62ae0099c3836", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
78,971
c
extern zend_class_entry *zendframework_barcode_object_exception_barcodevalidationexception_ce; ZEPHIR_INIT_CLASS(ZendFramework_Barcode_Object_Exception_BarcodeValidationException);
89.5
2
(translation_unit) "extern zend_class_entry *zendframework_barcode_object_exception_barcodevalidationexception_ce;\n\nZEPHIR_INIT_CLASS(ZendFramework_Barcode_Object_Exception_BarcodeValidationException);\n\n" (declaration) "extern zend_class_entry *zendframework_barcode_object_exception_barcodevalidationexception_ce;...
17
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 89.5, "nodes": 11, "errors": 0, "source_hash": "fcd414107067c345c7026d70786c9a730dd8990ba703ed29a721c9a0b0f6c6ae", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern zend_c...
78,972
c
#ifndef __MSERVER_DBGATE_SQLSS__ #define __MSERVER_DBGATE_SQLSS__ #include <mysql++/mysql++.h> #include <mysql++/ssqls.h> sql_create_3(users_salts, 1, 3, mysqlpp::sql_int_unsigned, uid, mysqlpp::sql_varchar, username, mysqlpp::sql_char, salt); sql_create_2(world, 1, 2, mysqlpp::sql_time...
30.29
17
(translation_unit) "#ifndef __MSERVER_DBGATE_SQLSS__\n#define __MSERVER_DBGATE_SQLSS__\n#include <mysql++/mysql++.h>\n#include <mysql++/ssqls.h>\nsql_create_3(users_salts, 1, 3,\n mysqlpp::sql_int_unsigned, uid,\n mysqlpp::sql_varchar, username,\n mysqlpp::sql_char, salt);\n\nsql_create_2(world, 1,...
114
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.29, "nodes": 63, "errors": 0, "source_hash": "825ed7601698c216911bff5f5be2250b50a1836d7338dc8c7331da7201e88aba", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,973
c
// Copyright (c) 2008 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : <NAME>, <NAME>, <NAME>, // <NAME>, <NAME>, <NAME> // Partially supporte...
32.12
170
(translation_unit) "// Copyright (c) 2008 INRIA Sophia-Antipolis (France).\n// All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org).\n//\n// $URL$\n// $Id$\n// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial\n//\n// Author(s) : <NAME>, <NAME>, <NAME>,\n// <NAME>, <NAME>,...
1,383
101
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 32.12, "nodes": 794, "errors": 0, "source_hash": "14ce8d09d7f7fdaee36d22fd9a2afb19fae751f623f147ad14e53a17bc466a2f", "categorized_nodes": 576}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,974
c
// // Copyright (C) Microsoft. All rights reserved. // #ifndef __SAC_H__ #define __SAC_H__ #include <winapifamily.h> #pragma region Desktop Family #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) typedef DWORD HMAC; #define RSA_KEY_LEN 64 #define SAC_SESSION_KEYLEN 8 #define SAC_PROTOCOL_W...
16.94
33
(translation_unit) "// \n// Copyright (C) Microsoft. All rights reserved. \n// \n#ifndef __SAC_H__ \n#define __SAC_H__ \n#include <winapifamily.h> \n \n#pragma region Desktop Family \n#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) \n \n \ntypedef DWORD HMAC; \n \n#define RSA_KEY_LEN 64 \n#define SAC_SESSION_...
83
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.94, "nodes": 66, "errors": 0, "source_hash": "21a4ef24340cf408cac32840ccd3e116233ea2fa363fd0e199b4a1853839308f", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,975
c
// // Created by wei on 3/19/18. // #pragma once #include "core/render/glad/glad.h" #include <cstring> namespace surfelwarp { //A small struct to hold the clear values struct GLClearValues { GLfloat vertex_map_clear[4]; GLfloat normal_map_clear[4]; GLfloat color_time_clear[4]; GLfloat solver_rgba_clear[4]...
25.58
33
(translation_unit) "//\n// Created by wei on 3/19/18.\n//\n\n#pragma once\n#include "core/render/glad/glad.h"\n#include <cstring>\n\nnamespace surfelwarp {\n \n //A small struct to hold the clear values\n struct GLClearValues {\n GLfloat vertex_map_clear[4];\n GLfloat normal_map_clear[4];\n GLfloat color_time_clear[...
232
16
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.58, "nodes": 148, "errors": 0, "source_hash": "9a4e898562e0fb225b546239c5122af64d6bfb52fb446f3bb68dca99bbc8fef5", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,976
c
/********************************************************* *Copyright (C), 2015, Shanghai Eastsoft Microelectronics Co., Ltd. **********************************************************/ #include "lib_wdt.h" enum { WDT_PCLK = 0x0, WDT_LRC = 0x1, }; void WWDT_Init(uint32_t load, uint8_t win, uint8_t it_flag) ...
21.08
64
(translation_unit) "/*********************************************************\n*Copyright (C), 2015, Shanghai Eastsoft Microelectronics Co., Ltd.\n**********************************************************/\n#include "lib_wdt.h"\n\n\nenum {\n WDT_PCLK = 0x0,\n WDT_LRC = 0x1,\n};\n\nvoid WWDT_Init(uint32_t load,...
416
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 21.08, "nodes": 245, "errors": 0, "source_hash": "50fb7c7d7a1d51c85ef2e811b0888a8896e07e42699799a06b8344093de26458", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,977
c
#include "ip_address_array.h" #include "platform/platform.h" struct ip_address_array *ip_address_array_new(size_t count) { struct ip_address_array *result; struct sockaddr **addresses; int i; addresses = ALLOC_NEW_ARRAY(struct sockaddr *, count); if (addresses == NULL) { LOG_ERROR("ip_address_array_new: faile...
24.53
186
(translation_unit) "#include "ip_address_array.h"\n#include "platform/platform.h"\n\nstruct ip_address_array *ip_address_array_new(size_t count)\n{\n struct ip_address_array *result;\n struct sockaddr **addresses;\n int i;\n\n addresses = ALLOC_NEW_ARRAY(struct sockaddr *, count);\n if (addresses == NULL)\n {\n LOG_ER...
1,375
5
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 24.53, "nodes": 785, "errors": 0, "source_hash": "c709072c33aec268c33c899760a9476c4ebf58014fc6f33829ab40e63f9a7339", "categorized_nodes": 566}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,978
c
#ifndef PRIEMCALCULATOR_H #define PRIEMCALCULATOR_H #include <pthread.h> #include "priem.h" #include <map> #include <semaphore.h> void init(int threads); void destroy(); void calculate(int max); void* calculate2(void* args); void join(); void print(); void launchThread(pthread_t* thread, int number, int threadIndex)...
23.22
23
(translation_unit) "#ifndef PRIEMCALCULATOR_H\n#define PRIEMCALCULATOR_H\n#include <pthread.h>\n#include "priem.h"\n#include <map>\n#include <semaphore.h>\n\n\nvoid init(int threads);\nvoid destroy();\n\nvoid calculate(int max);\nvoid* calculate2(void* args);\nvoid join();\nvoid print();\nvoid launchThread(pthread_t* t...
177
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.22, "nodes": 125, "errors": 0, "source_hash": "725e738ef12a9f6751da60fcd03af8feaef5cdb93cbb61c23afc45112521573e", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,979
c
// // XGCirculScrollView.h // Day3_ScrollWindow // // Created by 彭丙向 on 16/2/26. // Copyright © 2016年 pengbingxiang. All rights reserved. // //轮播图 #import <UIKit/UIKit.h> @interface XGCirculScrollView : UIView /** 滚动图片名称 */ @property (nonatomic,strong) NSArray *imageNamesArray; /** 图片自动滑动的时间间隔 */ @property (non...
29.67
24
(translation_unit) "//\n// XGCirculScrollView.h\n// Day3_ScrollWindow\n//\n// Created by 彭丙向 on 16/2/26.\n// Copyright © 2016年 pengbingxiang. All rights reserved.\n//\n\n//轮播图\n\n#import <UIKit/UIKit.h>\n\n@interface XGCirculScrollView : UIView\n\n/** 滚动图片名称 */\n@property (nonatomic,strong) NSArray *imageNamesArray...
148
29
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.67, "nodes": 102, "errors": 0, "source_hash": "dbc46ecb723600adae5d1bfd950277927347d8ff16bcd21986b1ef564f6584f2", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>...
78,980
c
/*++ Copyright (C) Microsoft Corporation, All Rights Reserved Module Name: filecontext.h Abstract: This header file defines the structure type for file context associated with the file object Environment: user mode only Revision History: --*/ #pragma once typedef struct ...
13.23
30
(translation_unit) "/*++ \n \nCopyright (C) Microsoft Corporation, All Rights Reserved \n \nModule Name: \n \n filecontext.h \n \nAbstract: \n \n This header file defines the structure type for file context associated with the file object \n \nEnvironment: \n \n user mode only \n \nRevision History: \n \n--*...
29
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 13.23, "nodes": 21, "errors": 0, "source_hash": "60c6269b09d1c2299c57d3bb63e96ac6cb0ef8af2d7e5d46101efaca3cffb2ec", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,981
c
/*************************************************************************** Copyright (c) 2006-2007, <NAME>, <NAME> University. 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...
26.03
266
(translation_unit) "/***************************************************************************\nCopyright (c) 2006-2007, <NAME>, <NAME> University.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to\ndeal in the Sof...
2,151
0
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 26.03, "nodes": 1169, "errors": 0, "source_hash": "f1aec81c2d2db91def92acfd68401ba9771d27d19faeba370980ee19b6e0442a", "categorized_nodes": 786}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,982
c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
32.52
87
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0...
744
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 32.52, "nodes": 385, "errors": 0, "source_hash": "123a5b9ef0ba2bde52d4bad8367fdb31cc60315e4559e76a0c888d0dfa5424f1", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,983
c
#include <common.h> int send_packets (memif_connection_t *c, uint16_t qid, packet_generator_t *generator, uint32_t num_pkts, uint16_t max_pkt_size) { int err, i; uint16_t tx; do { err = memif_buffer_alloc (c->conn, qid, c->tx_bufs, num_pkts > MAX_MEMIF_BUFS ? MAX_MEMIF_BUFS : ...
24.35
48
(translation_unit) "#include <common.h>\n\nint\nsend_packets (memif_connection_t *c, uint16_t qid,\n packet_generator_t *generator, uint32_t num_pkts,\n uint16_t max_pkt_size)\n{\n int err, i;\n uint16_t tx;\n\n do\n {\n err = memif_buffer_alloc (c->conn, qid, c->tx_bufs,\n num_pkts > MAX_MEMI...
307
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.35, "nodes": 177, "errors": 0, "source_hash": "e58b2ded5f6a9b05be9ba72bc544860f76b5eb4a518cb2010e50a67943f9e2ce", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,984
c
/* * Copyright 2007, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef CDDB_H #define CDDB_H #include <scsi_cmds.h> uint32 compute_cddb_disc_id(scsi_toc_toc &toc); #endif // CDDB_H
18.45
11
(translation_unit) "/*\n * Copyright 2007, <NAME>, <EMAIL>.\n * Distributed under the terms of the MIT License.\n */\n#ifndef CDDB_H\n#define CDDB_H\n\n\n#include <scsi_cmds.h>\n\n\nuint32 compute_cddb_disc_id(scsi_toc_toc &toc);\n\n#endif // CDDB_H\n" (comment) "/*\n * Copyright 2007, <NAME>, <EMAIL>.\n * Distribute...
26
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.45, "nodes": 18, "errors": 0, "source_hash": "95e6172f25aee2de7d0a0574aa6c5ce225acfa4bd4a0cdfc8c2ccf3eafd531e6", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,985
c
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/common/basic_defs.h> #include <tilck/kernel/term.h> #include <tilck/kernel/safe_ringbuf.h> #include <tilck/kernel/sync.h> #include <tilck/kernel/sched.h> struct term_action; struct term_rb_data { struct kmutex lock; struct safe_ringbuf rb...
35.18
76
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n\n#pragma once\n#include <tilck/common/basic_defs.h>\n#include <tilck/kernel/term.h>\n#include <tilck/kernel/safe_ringbuf.h>\n#include <tilck/kernel/sync.h>\n#include <tilck/kernel/sched.h>\n\nstruct term_action;\n\nstruct term_rb_data {\n struct kmutex...
443
2
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 35.18, "nodes": 289, "errors": 0, "source_hash": "3cfd2c2920e5dd2c1c578e3ba1ef9ee0849e855b389d6dd56a5081603b9ec859", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,986
c
#ifndef CABSTRACTTEXTDOCUMENTLAYOUT_H #define CABSTRACTTEXTDOCUMENTLAYOUT_H #include <QAbstractTextDocumentLayout> #include <QTextDocument> class CAbstractTextDocumentLayout : public QAbstractTextDocumentLayout { Q_OBJECT public: explicit CAbstractTextDocumentLayout(QTextDocument *parent = 0); void updat...
24.59
17
(translation_unit) "#ifndef CABSTRACTTEXTDOCUMENTLAYOUT_H\n#define CABSTRACTTEXTDOCUMENTLAYOUT_H\n\n#include <QAbstractTextDocumentLayout>\n#include <QTextDocument>\n\nclass CAbstractTextDocumentLayout : public QAbstractTextDocumentLayout\n{\n Q_OBJECT\npublic:\n explicit CAbstractTextDocumentLayout(QTextDocument...
70
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.59, "nodes": 45, "errors": 0, "source_hash": "8fe700bdddadeae005500ee11fa6bf25f4e2e3d6eb99b010c193a93b7ee0c5a9", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CABSTRAC...
78,987
c
//Day10a.c // //The tenth challenge involves numbered microchips being moved around by //numbered robots. When a bot receives two microchips, it compares the chip //numbers to see which is higher. The bot gives its high chip to one bot or //output bin and its low chip to another bot or output bin. Bots only do the //co...
29.55
281
(translation_unit) "//Day10a.c\n//\n//The tenth challenge involves numbered microchips being moved around by\n//numbered robots. When a bot receives two microchips, it compares the chip\n//numbers to see which is higher. The bot gives its high chip to one bot or\n//output bin and its low chip to another bot or output b...
1,642
0
{"language": "c", "success": true, "metadata": {"lines": 281, "avg_line_length": 29.55, "nodes": 940, "errors": 0, "source_hash": "4974bebfd943b05149741e8b29b177f36867a87cd5cb4c017459605364f49409", "categorized_nodes": 681}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,988
c
// // SubviewTemplate.h // SQTemplate // // Created by <NAME> on 17/5/11. // Copyright © 2017年 Doubles_Z. All rights reserved. // #import <UIKit/UIKit.h> @interface HYBlockTitleView : UIView @property (nonatomic,strong) UIButton * arrowButton; @property (nonatomic,strong) UIButton * moreButton; @property (nonato...
26.38
13
(translation_unit) "//\n// SubviewTemplate.h\n// SQTemplate\n//\n// Created by <NAME> on 17/5/11.\n// Copyright © 2017年 Doubles_Z. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HYBlockTitleView : UIView\n\n@property (nonatomic,strong) UIButton * arrowButton;\n@property (nonatomic,strong) UIButto...
72
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.38, "nodes": 51, "errors": 0, "source_hash": "d5ab28f0443fb2c3b823aa2a4c1e5c4b6574065574ab71ad7e8c20986ddb3243", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
78,989
c
/* * Copyright (C) ST-Ericsson SA 2010 * * Author: <NAME> <<EMAIL>> * License terms: GNU General Public License (GPL) version 2 */ #include <linux/amba/mmci.h> #include <linux/mmc/host.h> #include <plat/pincfg.h> #include <plat/gpio-nomadik.h> #include <mach/db5500-regs.h> #include <plat/ste_dma40.h> #include "...
31.31
65
(translation_unit) "/*\n * Copyright (C) ST-Ericsson SA 2010\n *\n * Author: <NAME> <<EMAIL>>\n * License terms: GNU General Public License (GPL) version 2\n */\n\n#include <linux/amba/mmci.h>\n#include <linux/mmc/host.h>\n\n#include <plat/pincfg.h>\n#include <plat/gpio-nomadik.h>\n#include <mach/db5500-regs.h>\n#inclu...
387
3
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.31, "nodes": 259, "errors": 0, "source_hash": "42b072f1e628ba6a4d53ed2d7acbbaae83a2e0f52f50d90a50d50a00a0174a53", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,990
c
// // Infrastructure.h // Infrastructure // // Created by <NAME> on 08/12/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Infrastructure. FOUNDATION_EXPORT double InfrastructureVersionNumber; //! Project version string for Infrastructure. F...
39.38
13
(translation_unit) "//\n// Infrastructure.h\n// Infrastructure\n//\n// Created by <NAME> on 08/12/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for Infrastructure.\nFOUNDATION_EXPORT double InfrastructureVersionNumber;\n\n//! Project ver...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.38, "nodes": 15, "errors": 0, "source_hash": "fbf2709d8615e1a068fc0de8f74b7ecbbc4971e9c4b4a202e22e4fc8a8e71639", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
78,991
c
// ============================================================================ // // = LIBRARY // ULib - c++ library // // = FILENAME // data_session.h - data session utility // // = AUTHOR // <NAME> // // ============================================================================ #ifndef ULIB_DATA_SESSION_...
29.94
184
(translation_unit) "// ============================================================================\n//\n// = LIBRARY\n// ULib - c++ library\n//\n// = FILENAME\n// data_session.h - data session utility\n//\n// = AUTHOR\n// <NAME>\n//\n// =========================================================================...
1,561
29
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 29.94, "nodes": 833, "errors": 0, "source_hash": "f131bb6fb0f7069cd36148b0be5c32fbb1b3b75b61c2891b73f7eefdc1b4dfa3", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,992
c
#ifndef _GPIO_H #define _GPIO_H 1 #include <stm32.h> /** Funkcje konfigurujące pojedyncze wyprowadzenie **/ /* Typy wzięte z biblioteki STM32 */ typedef enum { GPIO_OType_PP = 0x00, GPIO_OType_OD = 0x01 } GPIOOType_TypeDef; typedef enum { GPIO_Low_Speed = 0x00, GPIO_Medium_Speed = 0x01, GPIO_Fast_Spee...
35.38
42
(translation_unit) "#ifndef _GPIO_H\n#define _GPIO_H 1\n\n#include <stm32.h>\n\n/** Funkcje konfigurujące pojedyncze wyprowadzenie **/\n\n/* Typy wzięte z biblioteki STM32 */\n\ntypedef enum {\n GPIO_OType_PP = 0x00,\n GPIO_OType_OD = 0x01\n} GPIOOType_TypeDef;\n\ntypedef enum {\n GPIO_Low_Speed = 0x00,\n GPIO_M...
252
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 35.38, "nodes": 189, "errors": 0, "source_hash": "af3ea4e53b5c176f42cf103a4ae6986aa32836c0cb850fa59fb3c561968ee8ee", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,993
c
/* *** Copyright Integral Solutions Ltd 1993. All rights reserved *** File: neural.h Purpose: Feed forward networks with back propagation learning Author: <NAME>, Feb 1994 Documentation neurals help/backprop Related Files backprop.c complearn.c ranvecs.c */ #include <stdlib.h> #...
27.13
15
(translation_unit) "/* *** Copyright Integral Solutions Ltd 1993. All rights reserved ***\n File: neural.h\n Purpose: Feed forward networks with back propagation learning\n Author: <NAME>, Feb 1994\n Documentation neurals help/backprop\n Related Files backprop.c complearn.c ranvecs.c\n...
23
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.13, "nodes": 21, "errors": 0, "source_hash": "8aa8c196fb7a3a129c03e9185a2dc8223417c899e71f859e1a7fbc660afaa5c3", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,994
c
#include <xml_cdata.h> /* * call-seq: * new(document, content) * * Create a new CData element on the +document+ with +content+ */ static VALUE new(VALUE klass, VALUE doc, VALUE content) { xmlDocPtr xml_doc; Data_Get_Struct(doc, xmlDoc, xml_doc); xmlNodePtr node = xmlNewCDataBlock( xml_doc, (co...
28
35
(translation_unit) "#include <xml_cdata.h>\n\n/*\n * call-seq:\n * new(document, content)\n *\n * Create a new CData element on the +document+ with +content+\n */\nstatic VALUE new(VALUE klass, VALUE doc, VALUE content)\n{\n xmlDocPtr xml_doc;\n Data_Get_Struct(doc, xmlDoc, xml_doc);\n\n xmlNodePtr node = xmlNewCDa...
257
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.0, "nodes": 145, "errors": 0, "source_hash": "01dd7e3445fd202cdefba85c534b2e28b7764fd63310bcc55708ccd296eb02e5", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,995
c
#pragma once #include "Wrapper.h" /** * @class TypeWrapper * @brief szablon klasy przechowujacej obiekt danego typu. Dzieki dziedziczeniu po klasie Wrapper, mozna stworzyc kontener polimorficzny, * ktory moze przechowywac obiekty dowolnego typu jednoczesnie. */ template <typename T> class TypeWrapper : public...
23.13
31
(translation_unit) "#pragma once\n\n#include "Wrapper.h"\n\n/**\n * @class TypeWrapper\n * @brief szablon klasy przechowujacej obiekt danego typu. Dzieki dziedziczeniu po klasie Wrapper, mozna stworzyc kontener polimorficzny,\n * ktory moze przechowywac obiekty dowolnego typu jednoczesnie.\n */\ntemplate <typename ...
79
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.13, "nodes": 42, "errors": 0, "source_hash": "fe03e249f421432367f069c7457bf63cea60e5d96d8d0580afb8cdf72ceb57ff", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,996
c
#ifndef PLAYER_H #define PLAYER_H // Include standard libraries #include <memory> #include <map> // Include project libraries #include "../utils.h" // Forward declarations class Board; class King; class Player { public: /** * @brief Default constructor (Players must still be constructed by other constructo...
22.85
74
(translation_unit) "#ifndef PLAYER_H\n#define PLAYER_H\n\n// Include standard libraries\n#include <memory>\n#include <map>\n\n// Include project libraries\n#include "../utils.h"\n\n// Forward declarations\nclass Board;\nclass King;\n\nclass Player\n{\npublic:\n /**\n * @brief Default constructor (Players must st...
218
9
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 22.85, "nodes": 116, "errors": 0, "source_hash": "e0a54577f5762d1f0aa726728668a1555d1b916ba9d3a19245a221f1884c0156", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,997
c
#include <stdlib.h> #include <stdio.h> #include "get_if_mtu.h" int main(int argc, char *argv[]) { uint32_t mtu; int result; if (argc != 2) { fprintf(stderr, "Usage: %s <interface name>\n", argv[0]); return 1; } result = get_if_mtu (&mtu, argv[1]); if (result == EXIT_SUCCESS) { printf("get_if_mtu: %u\n", mt...
22.39
18
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include "get_if_mtu.h"\n\nint main(int argc, char *argv[]) {\nuint32_t mtu;\nint result;\n\n if (argc != 2) {\n fprintf(stderr, "Usage: %s <interface name>\n", argv[0]);\n return 1;\n }\n\n result = get_if_mtu (&mtu, argv[1]);\n if (result == EXIT_SUCCESS)...
151
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.39, "nodes": 80, "errors": 0, "source_hash": "7179e1813df997ea4357f1a19e8c7320874b2230e6217c1d2e7c62ad5a139c47", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,998
c
/* * program04.c * * Created on: Nov 9, 2015 * Author: <NAME> * Purpose: Take an input file, "quiz.txt", and manipulate its content, calculate average for quizzes and printing them to an output file, "average.txt" */ #include<stdio.h> #include<stdlib.h> #define MAX_QUIZZES 10 // Number of total quizz...
39.36
125
(translation_unit) "/*\n * program04.c\n *\n * Created on: Nov 9, 2015\n * Author: <NAME>\n * Purpose: Take an input file, "quiz.txt", and manipulate its content, calculate average for quizzes and printing them to an output file, "average.txt"\n */\n\n\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX_QUI...
1,223
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 39.36, "nodes": 717, "errors": 0, "source_hash": "1b5303ed144c3d44d3f60e6ec8661e72c1da7cd3be8af21cf7236b3bc2085fc6", "categorized_nodes": 448}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,999