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
// // VodPlayer.h // AVFoundationTest // // Created by OHSEUNGWOOK on 2017. 6. 8.. // Copyright © 2017년 OHSEUNGWOOK. All rights reserved. // #import <Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> #import "VodPlayerDefine.h" @protocol VodPlayerDelegate; @interface VodPlayer : NSObject @property ...
33.11
37
(translation_unit) "//\n// VodPlayer.h\n// AVFoundationTest\n//\n// Created by OHSEUNGWOOK on 2017. 6. 8..\n// Copyright © 2017년 OHSEUNGWOOK. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <AVFoundation/AVFoundation.h>\n#import "VodPlayerDefine.h"\n\n@protocol VodPlayerDelegate;\n\n@interfac...
306
55
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.11, "nodes": 200, "errors": 0, "source_hash": "15d7ad39a20e2e5fd028390655662cf34d0c6d04af43fcafc4af8adbbcdbfdb7", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
12,800
c
#import <Foundation/Foundation.h> #import "LegacyComponents.h" #import "TGCachedConversationData.h" @class TLChannelAdminLogEvent; @protocol TGChannelAdminLogEntryContent <NSObject> @end @interface TGChannelAdminLogEntry : NSObject @property (nonatomic, readonly) int64_t entryId; @property (nonatomic, readonly) ...
56.53
86
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import "LegacyComponents.h"\n\n#import "TGCachedConversationData.h"\n\n@class TLChannelAdminLogEvent;\n\n@protocol TGChannelAdminLogEntryContent <NSObject>\n\n@end\n\n@interface TGChannelAdminLogEntry : NSObject\n\n@property (nonatomic, readonly) int64_t entryId...
1,101
170
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 56.53, "nodes": 785, "errors": 0, "source_hash": "7e3eb3445cac11e90ea0f6241d7743db5b7a5e7fb76d5fb5f9dd84bc2f8895c8", "categorized_nodes": 457}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,801
c
#ifndef SCRIPT_SYSTEM_H #define SCRIPT_SYSTEM_H #include <cstdint> // uint32_t #include "inferno/singleton.h" namespace Inferno { struct NativeScriptComponent; struct LuaScriptComponent; class Scene; class ScriptSystem final : public Singleton<ScriptSystem> { public: ScriptSystem(s); virtual ~ScriptSyste...
26.59
22
(translation_unit) "#ifndef SCRIPT_SYSTEM_H\n#define SCRIPT_SYSTEM_H\n\n#include <cstdint> // uint32_t\n\n#include "inferno/singleton.h"\n\nnamespace Inferno {\n\n struct NativeScriptComponent;\n struct LuaScriptComponent;\n\n class Scene;\n\n class ScriptSystem final : public Singleton<ScriptSystem> {\n public:\n Scr...
159
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.59, "nodes": 99, "errors": 0, "source_hash": "196a6b5e9ec209d135e880a2394ec238c988f3f3343e7fc68a7d25315991444f", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,802
c
// // AB_FilteredArray.h // // Copyright (c) 2014年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface AB_FilteredArray : NSObject { NSArray* baseArray; NSArray* filteredArray; NSPredicate* _predicate; } - (id) initWithArray:(NSArray*)setArray; - (void) removeItemAtIndex:(int)...
25.55
20
(translation_unit) "//\n// AB_FilteredArray.h\n//\n// Copyright (c) 2014年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface AB_FilteredArray : NSObject\n{\n NSArray* baseArray;\n NSArray* filteredArray;\n NSPredicate* _predicate;\n}\n\n- (id) initWithArray:(NSArray*)setArray...
158
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.55, "nodes": 99, "errors": 0, "source_hash": "6eab91b5faa86fce58d11b4386b4f865f4e533f9d87b9db2388bd13fb7b23bb9", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
12,803
c
#ifndef SOMADORADEDIGITO_H_INCLUDED #define SOMADORADEDIGITO_H_INCLUDED class SomadoraDeDigito { private: char resto; char valorDaSoma; public: void Somar(char, char, char, int); char getResto(); char getSoma(); }; #endif // SOMADORADEDIGITO_H_INCLUDED
22.15
13
(translation_unit) "#ifndef SOMADORADEDIGITO_H_INCLUDED\n#define SOMADORADEDIGITO_H_INCLUDED\n\nclass SomadoraDeDigito\n{\n private:\n char resto;\n char valorDaSoma;\n public:\n void Somar(char, char, char, int);\n char getResto();\n char getSoma();\n\n};\n\n#endif // SOMADORAD...
66
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.15, "nodes": 40, "errors": 0, "source_hash": "083b5b20916c2097e1c12e4ef42214d49f28b3b174bc5bc89e79be20f0c7a064", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,804
c
// // FSChatKit.h // FSChatKit // // Created by <NAME> on 7/1/20. // Copyright © 2020 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for FSChatKit. FOUNDATION_EXPORT double FSChatKitVersionNumber; //! Project version string for FSChatKit. FOUNDATION_EXPORT const unsi...
36.54
13
(translation_unit) "//\n// FSChatKit.h\n// FSChatKit\n//\n// Created by <NAME> on 7/1/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for FSChatKit.\nFOUNDATION_EXPORT double FSChatKitVersionNumber;\n\n//! Project version string for FSChat...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.54, "nodes": 15, "errors": 0, "source_hash": "80fae015d86dc2fe081dc6c2e62651422338e9b10a86b3f5a0c708b7c7865430", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
12,805
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #pragma mark Blocks typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown #pragma mark Named Structures struct CGSize { ...
25.32
34
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#pragma mark Blocks\n\ntypedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown\n\n#pragma mark Name...
181
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.32, "nodes": 127, "errors": 0, "source_hash": "b38c13f33b5d29d9851bd4e00f887dca8eea2f6e15a87f6404fea212bfba8fa5", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,806
c
// // SMAdditionalMultipartData.h // The Pillow Book for Mac // // Created by Nacho on 03/02/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface SMAdditionalMultipartData : NSObject - (id) initWithData: (NSData *) data name: (NSString *) name type: (NSString *) ...
35.87
15
(translation_unit) "//\n// SMAdditionalMultipartData.h\n// The Pillow Book for Mac\n//\n// Created by Nacho on 03/02/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SMAdditionalMultipartData : NSObject\n\n- (id) initWithData: (NSData *) data name: (NSSt...
129
23
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.87, "nodes": 83, "errors": 0, "source_hash": "8721e446c8b39b81b2a042410b7af6f0f78b3d673e46039c10c74b666c01121f", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,807
c
#ifndef USER_SETTINGS_H #define USER_SETTINGS_H #include "user_settings.h" #define SETTINGS_VERSION 7 typedef struct __attribute__((packed, aligned(4))) { //Size must always be a multiple of 4! //Description of settings uint8_t magic; //0x42 uint8_t version; //SETTINGS_VERSION //Devi...
28.17
70
(translation_unit) "#ifndef USER_SETTINGS_H\n#define USER_SETTINGS_H\n\n #include "user_settings.h"\n\n #define SETTINGS_VERSION 7\n\n typedef struct __attribute__((packed, aligned(4))) { //Size must always be a multiple of 4!\n //Description of settings\n uint8_t magic; //0x42 \n uint8_t version; ...
347
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 28.17, "nodes": 237, "errors": 0, "source_hash": "5bc9309c86a060db0db781e2838a508aa28f747334401a7021cb32276264859f", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,808
c
/* -*- c++ -*- */ /* * Copyright 2008,2013 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your o...
31.98
51
(translation_unit) "/* -*- c++ -*- */\n/*\n * Copyright 2008,2013 Free Software Foundation, Inc.\n *\n * This file is part of GNU Radio\n *\n * GNU Radio is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; eit...
194
9
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 31.98, "nodes": 115, "errors": 0, "source_hash": "00332ce591ba61c7a431906c69168d190bdf0a35a59cc1ab2707aad93b49873c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,809
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/codepipeline/CodePipeline_EXPORTS.h> #include <aws/codepipeline/model/PipelineDeclaration.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/codepipeline/mode...
34.52
99
(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/codepipeline/CodePipeline_EXPORTS.h>\n#include <aws/codepipeline/model/PipelineDeclaration.h>\n#include <aws/core/utils/memory/stl/AWSVector.h>\n#incl...
624
41
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 34.52, "nodes": 404, "errors": 0, "source_hash": "0fbcbfeacff9d2ad65f6f55d00c5c1f3becbb561d51859f653b4936441fcf219", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
12,810
c
#pragma once #include <sm_api.h> #include <list> #include <mutex> #include <thread> // Note: This is a singleton because right now every instance of FaceRecognizer // stands-up and tears-down the FaceAPI framework at every Start() and Stop(). // If you want to have multiple FaceRecognizers, decouple the API startu...
33
43
(translation_unit) "#pragma once\n\n#include <sm_api.h>\n#include <list>\n#include <mutex>\n#include <thread>\n\n// Note: This is a singleton because right now every instance of FaceRecognizer\n// stands-up and tears-down the FaceAPI framework at every Start() and Stop().\n// If you want to have multiple FaceRecogniz...
281
14
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.0, "nodes": 171, "errors": 0, "source_hash": "d78ecdc04e1c6042b2776d070bf4332aa6dcfb67ab30f2e428beb36ec86b267c", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,811
c
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
39.49
51
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2016 The Qt Company Ltd.\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of Qt Creator.\n**\n** Commercial License Usage\n** Licensees holding valid commercial Qt licenses may use ...
211
11
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 39.49, "nodes": 120, "errors": 0, "source_hash": "cbe0855d81b8afbd01c1035e57dfd605b7ed48046252e8ccf6f0b48bc5aed637", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,812
c
#pragma once #include <lpg_stream_writer.h> #include <lpg_unicode_view.h> #include <stdbool.h> typedef struct decode_string_literal_result { bool is_valid; size_t length; } decode_string_literal_result; decode_string_literal_result decode_string_literal(unicode_view source, stream_writer decoded); decode_str...
35.64
11
(translation_unit) "#pragma once\n\n#include <lpg_stream_writer.h>\n#include <lpg_unicode_view.h>\n#include <stdbool.h>\n\ntypedef struct decode_string_literal_result\n{\n bool is_valid;\n size_t length;\n} decode_string_literal_result;\n\ndecode_string_literal_result decode_string_literal(unicode_view source, st...
61
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.64, "nodes": 46, "errors": 0, "source_hash": "efbec03cd86eb606e1f7688a73ac54e261846f2aa5b964eeabd7bbb5bfe11147", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,813
c
/* -------------------------------------------------------------------------- */ /* ------------- RonClient --- Oficial client for RonOTS servers ------------ */ /* -------------------------------------------------------------------------- */ #ifndef __MAP_H_ #define __MAP_H_ #include <list> #include "ad2d.h" #inclu...
31.18
155
(translation_unit) "/* -------------------------------------------------------------------------- */\n/* ------------- RonClient --- Oficial client for RonOTS servers ------------ */\n/* -------------------------------------------------------------------------- */\n\n#ifndef __MAP_H_\n#define __MAP_H_\n\n#include <list...
1,680
39
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 31.18, "nodes": 1170, "errors": 0, "source_hash": "df1532006a4a358ea0d6204a3dd3da256fdb138c168deb09bdf8d623664a1ca7", "categorized_nodes": 721}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
12,814
c
/*! @file @brief Hardware abstraction layer for POSIX <pre> Copyright (C) 2016 Kyushu Institute of Technology. Copyright (C) 2016 Shimane IT Open-Innovation Center. This file is distributed under BSD 3-Clause License. </pre> */ /***** Feature test switches **************************************...
27.53
88
(translation_unit) "/*! @file\n @brief\n Hardware abstraction layer\n for POSIX\n\n <pre>\n Copyright (C) 2016 Kyushu Institute of Technology.\n Copyright (C) 2016 Shimane IT Open-Innovation Center.\n\n This file is distributed under BSD 3-Clause License.\n </pre>\n*/\n\n/***** Feature test switches *****...
299
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 27.53, "nodes": 176, "errors": 0, "source_hash": "3267b7c5868d474471b40e809b8f20b100e6c5dd53fc670d0d4504cb1071ef90", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,815
c
/* sock.h module for server * Date : 28-March-2021 * **/ bool send_to_network(char *buffer, int client_id){ if (send(c[client_id].c_socket, buffer, STRLEN, 0)==SOCKET_ERROR){ newMessage("Error Sending Data"); } return true; } bool recv_from_network(char *buffer){ int i = recv(Socket, buffer, STRLEN, 0...
21.52
63
(translation_unit) "/* sock.h module for server\n * Date : 28-March-2021\n * \n **/\nbool send_to_network(char *buffer, int client_id){\n\n if (send(c[client_id].c_socket, buffer, STRLEN, 0)==SOCKET_ERROR){\n \n newMessage("Error Sending Data");\n }\n return true;\n}\n\nbool recv_from_network(char *buffer){\n\n int...
489
1
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 21.52, "nodes": 266, "errors": 0, "source_hash": "e38eba0f7eebb07b8a7984363e456b377efd62b22d83c3dd02d9f4279d2220db", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
12,816
c
#ifndef RIGIDBODY_H #define RIGIDBODY_H #include <functional> #include "core/3D/Physics/Collider3D.h" #include "components/Component.h" class GameObject; //! RigidBody3D Class /*! Is a component and handles almost all of the needed math for the physics of our engine */ class RigidBody3D : public Component { priva...
33.17
89
(translation_unit) "#ifndef RIGIDBODY_H\n#define RIGIDBODY_H\n\n#include <functional>\n\n\n#include "core/3D/Physics/Collider3D.h"\n\n#include "components/Component.h"\n\n\nclass GameObject;\n//! RigidBody3D Class\n/*! Is a component and handles almost all of the needed math for the physics of our engine */\nclass Rigi...
808
38
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 33.17, "nodes": 461, "errors": 0, "source_hash": "1dc797ba7b7079d5207181423edb8ca6a6db174b089b47f03d30e32fc0f34533", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,817
c
#ifndef NVIM_MARK_H #define NVIM_MARK_H #include "nvim/macros.h" #include "nvim/ascii.h" #include "nvim/buffer_defs.h" #include "nvim/mark_defs.h" #include "nvim/memory.h" #include "nvim/pos.h" #include "nvim/os/time.h" /// Set fmark using given value #define SET_FMARK(fmarkp_, mark_, fnum_) \ do { \ fmark_...
39.53
57
(translation_unit) "#ifndef NVIM_MARK_H\n#define NVIM_MARK_H\n\n#include "nvim/macros.h"\n#include "nvim/ascii.h"\n#include "nvim/buffer_defs.h"\n#include "nvim/mark_defs.h"\n#include "nvim/memory.h"\n#include "nvim/pos.h"\n#include "nvim/os/time.h"\n\n/// Set fmark using given value\n#define SET_FMARK(fmarkp_, mark_, ...
296
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 39.53, "nodes": 188, "errors": 0, "source_hash": "02fa0e3d87ecffa75e847ad9738ff480e3390540a40fbc7b1f97c7d9adb8dec8", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,818
c
#ifndef _PS2_CUNIT_SNPRINTF_H #define _PS2_CUNIT_SNPRINTF_H #include "stddef.h" int _ps2_cunit_snprintf ( char * s, size_t n, const char * format, ... ); #endif
31.2
5
(translation_unit) "#ifndef _PS2_CUNIT_SNPRINTF_H\n#define _PS2_CUNIT_SNPRINTF_H\n#include "stddef.h"\n\nint _ps2_cunit_snprintf ( char * s, size_t n, const char * format, ... );\n\n#endif\n" (preproc_ifdef) "#ifndef _PS2_CUNIT_SNPRINTF_H\n#define _PS2_CUNIT_SNPRINTF_H\n#include "stddef.h"\n\nint _ps2_cunit_snprintf ...
42
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 31.2, "nodes": 28, "errors": 0, "source_hash": "97d30274c53197c34aa0cbae953772a32b4bac01da5cf8c985605c581938443c", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _P...
12,819
c
/* This is the single file included by all MPC8xx build options. * Since there are many different boards and no standard configuration, * we have a unique include file for each. Rather than change every * file that has to include MPC8xx configuration, they all include * this one and the configuration switching is ...
25.95
78
(translation_unit) "/* This is the single file included by all MPC8xx build options.\n * Since there are many different boards and no standard configuration,\n * we have a unique include file for each. Rather than change every\n * file that has to include MPC8xx configuration, they all include\n * this one and the con...
257
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 25.95, "nodes": 219, "errors": 0, "source_hash": "3a663e358a9325a276b927aa4b9ef05165399cea5d37614a6acdf18df96d9fae", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
12,820
c
// LoLaCryptoKeyExchange.h #ifndef _LOLA_CRYPTO_KEY_EXCHANGE_h #define _LOLA_CRYPTO_KEY_EXCHANGE_h #include <uECC.h> class LoLaCryptoKeyExchanger { public: static const uint8_t KEY_CURVE_SIZE = 20; //160 bits take 20 bytes. static const uint8_t KEY_MAX_SIZE = KEY_CURVE_SIZE + 1; //Enough for compressed public keys...
26.16
211
(translation_unit) "// LoLaCryptoKeyExchange.h\n\n#ifndef _LOLA_CRYPTO_KEY_EXCHANGE_h\n#define _LOLA_CRYPTO_KEY_EXCHANGE_h\n\n#include <uECC.h>\n\nclass LoLaCryptoKeyExchanger\n{\npublic:\n static const uint8_t KEY_CURVE_SIZE = 20; //160 bits take 20 bytes.\n static const uint8_t KEY_MAX_SIZE = KEY_CURVE_SIZE + 1; //En...
1,275
18
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 26.16, "nodes": 738, "errors": 0, "source_hash": "cc76bdda9fce898f911ec639324821c80b96ec450f6763dab040722c30ecf276", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,821
c
/* * light.h * * Created on: 2016年12月8日 * Author: zhuqian */ #ifndef SRC_CORE_LIGHT_H_ #define SRC_CORE_LIGHT_H_ #include "raiden.h" #include "geometry.h" #include "transform.h" #include "spectrum.h" #include "interaction.h" //第一次使用c++11中的enum class //但是这里为啥要用这个新特性,完全无法理解 //这里定义了4个光源特征 enum class LightFlags...
29.78
82
(translation_unit) "/*\n * light.h\n *\n * Created on: 2016年12月8日\n * Author: zhuqian\n */\n\n#ifndef SRC_CORE_LIGHT_H_\n#define SRC_CORE_LIGHT_H_\n#include "raiden.h"\n#include "geometry.h"\n#include "transform.h"\n#include "spectrum.h"\n#include "interaction.h"\n//第一次使用c++11中的enum class\n//但是这里为啥要用这个新特性,完全无法理解\...
756
47
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 29.78, "nodes": 485, "errors": 0, "source_hash": "c1f4ae6ebe2dc3f4b5c219e8681f8f6762b75a95b78b20dbebf9b5895f2de71a", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f SRC_...
12,822
c
/* Copyright © <NAME> 2021. Licensed under the MIT License. You may obtain a copy of the License at https://opensource.org/licenses/mit-license.php */ #pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "RTSCameraMouseComponent.generated.h" /** * Enum to describe screen borders */...
36.2
94
(translation_unit) "/* Copyright © <NAME> 2021. Licensed under the MIT License. You may obtain a copy of the License at https://opensource.org/licenses/mit-license.php */\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Components/ActorComponent.h"\n#include "RTSCameraMouseComponent.generated.h"\n\n/**\n * Enum t...
679
28
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 36.2, "nodes": 401, "errors": 0, "source_hash": "1ee13883f6378333d33d96e368c4bfad3aa2ea0bd2fd10b642ce6cb2d1bad676", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma o...
12,823
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <PassKitCore/PKApplyWebServiceResponse.h> @interface PKApplyWebServiceApplicationDeleteResponse : PKApplyWebServiceResponse { } + (BOOL)supportsSecureCoding; @end
26.55
11
(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 <PassKitCore/PKApplyWebServiceResponse.h>\n\n@interface PKApplyWebServiceApplicationDeleteResponse : PKApplyWebServiceResponse\n{\n}\n\n+ (BOOL)supportsS...
35
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.55, "nodes": 18, "errors": 0, "source_hash": "cab9b491d1a8e8c348ffa6d680f9382c9b5b45158f25104691c6e3f3852b351b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <P...
12,824
c
NS_ASSUME_NONNULL_BEGIN @class CLLocation; @protocol TableSectionDataSource <NSObject> - (NSInteger)numberOfRows; - (nullable NSString *)title; - (BOOL)canEdit; - (BOOL)canSelect; - (UITableViewCell *)tableView:(UITableView *)tableView cellForRow:(NSInteger)row; - (void)didSelectRow:(NSInteger)row; - (void)deleteR...
33
14
(translation_unit) "NS_ASSUME_NONNULL_BEGIN\n\n@class CLLocation;\n\n@protocol TableSectionDataSource <NSObject>\n\n- (NSInteger)numberOfRows;\n- (nullable NSString *)title;\n- (BOOL)canEdit;\n- (BOOL)canSelect;\n\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRow:(NSInteger)row;\n\n- (void)didSelectRo...
166
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.0, "nodes": 106, "errors": 0, "source_hash": "bb0193c819582aed6181a5289fa79d5238a8135e78c9eaef0679f834961a5db6", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "NS_ASSUME_...
12,825
c
#include<stdio.h> #include<string.h> #include<stdlib.h> int main(int argc, char *argv[]){ int len; char line[200], *result_1, *result_2, *result_3, *titlePage, *token; const char needle_1[]="<a href=\"/wiki/", needle_2[]="title=\"", needle_3[]="</a>", needle_4[]="\"", s[2]="\""; if (argc != 2){ printf("ERROR: W...
26.69
42
(translation_unit) "#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n\nint main(int argc, char *argv[]){\n\n int len;\n char line[200], *result_1, *result_2, *result_3, *titlePage, *token;\n const char needle_1[]="<a href=\"/wiki/", needle_2[]="title=\"", needle_3[]="</a>", needle_4[]="\"", s[2]="\"";\n if (a...
378
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.69, "nodes": 209, "errors": 0, "source_hash": "0c9642b7ff0b6a2b59c264522783fd41054bea9ca3229cda51108497f95dea95", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,826
c
#include <stdio.h> int main(){ int i=0,n,j,y,w; float arr[64],k,o,g=0,z; while((scanf("%f",&k))!=EOF){ y=0; for(j=0;j<i;j++){ if(arr[j]==k){ y=1; } } arr[i]=k; if(y==0)i++; } n=i; printf("%d\n",n); for(i=0;i<n;i++){ o=arr[i]; z=arr[i]; w=0; while(z-n>=0){ z=z-n; w++; } o=arr[i]-w*n; g=o+g; } printf("%.3f\n",g); return ...
9.83
30
(translation_unit) "#include <stdio.h>\nint main(){\nint i=0,n,j,y,w;\nfloat arr[64],k,o,g=0,z;\nwhile((scanf("%f",&k))!=EOF){\ny=0;\nfor(j=0;j<i;j++){\nif(arr[j]==k){\ny=1;\n}\n}\narr[i]=k;\nif(y==0)i++;\n}\nn=i;\nprintf("%d\n",n);\nfor(i=0;i<n;i++){\no=arr[i];\nz=arr[i];\nw=0;\nwhile(z-n>=0){\nz=z-n;\nw++;\n}\no=arr[...
285
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 9.83, "nodes": 169, "errors": 0, "source_hash": "13c72da6755cc92f97fb39e211b88704812447ff31ece955f747797420004961", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,827
c
// // ViewController.h // GNApiSdk // // Created by <NAME> on 5/5/15. // Copyright (c) 2015 Gerencianet. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
17.91
11
(translation_unit) "//\n// ViewController.h\n// GNApiSdk\n//\n// Created by <NAME> on 5/5/15.\n// Copyright (c) 2015 Gerencianet. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// GN...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.91, "nodes": 11, "errors": 0, "source_hash": "080609b671b747272c4ee112e848cb87597c5273b267bfd2b1a585b541768387", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
12,828
c
/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ typedef en...
29.72
95
(translation_unit) "/**\n * Copyright (c) 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same ...
321
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 29.72, "nodes": 219, "errors": 0, "source_hash": "74a2823d345d9748fa318306e4bee2fc54a72ee93800868f4fea3724489ebffe", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
12,829
c
#ifndef ADC_H #define ADC_H #ifdef cplusplus extern "C" { #endif #include <stdint.h> extern uint16_t adc_value[]; enum { ADC_CHANNEL_LENGTH = 7, ADC_BUFF_SIZE = ADC_CHANNEL_LENGTH, }; void rc_adc_init(); #ifdef cplusplus } #endif #endif /* ADC_H */
13.28
18
(translation_unit) "#ifndef ADC_H\n#define ADC_H\n\n#ifdef cplusplus\nextern "C"\n{\n#endif\n\n#include <stdint.h>\n\nextern uint16_t adc_value[];\nenum\n{\n ADC_CHANNEL_LENGTH = 7,\n ADC_BUFF_SIZE = ADC_CHANNEL_LENGTH,\n};\n\nvoid rc_adc_init();\n\n#ifdef cplusplus\n}\n#endif\n\n#endif /* ADC_H */" (preproc_if...
64
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 13.28, "nodes": 45, "errors": 0, "source_hash": "7ab3f1723910661ad651cb937cff3cbd64e7b1f6689fb3d540985188ecd3c60a", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,830
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface MRMyTracker : NSObject { } + (_Bool)hasDefaultTracker; + (void)trackRegistrationEventWithParams:(id)arg1; + (void)trackRegistrationEvent; + (void)trackIn...
26.2
25
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface MRMyTracker : NSObject\n{\n}\n\n+ (_Bool)hasDefaultTracker;\n+ (void)trackRegistrationEventWithParams:(id)arg1;\n+ (void)track...
224
13
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.2, "nodes": 128, "errors": 0, "source_hash": "bdbfeb611a0ea82a3fe1235905b8b044923a4149da8f33f7cb0f8375f5fe84b4", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,831
c
/*exerxixio_12_vetores*/ #include <stdio.h> #include <stdlib.h> int main() { int i, maior, menor; int maiorPosicao, menorPosicao; float vlr[5], md; printf("\n\tInforme cinco valores\n\n"); for(i=0; i<5; i++) { printf("Informe o %d valor: ", i+1); scanf("%f", &vlr[i]); if(i == 0) {...
21.95
38
(translation_unit) "/*exerxixio_12_vetores*/\n#include <stdio.h>\n#include <stdlib.h>\n int main() \n{\n int i, maior, menor; \n int maiorPosicao, menorPosicao;\n float vlr[5], md;\n printf("\n\tInforme cinco valores\n\n");\n\n for(i=0; i<5; i++) \n {\n printf("Informe o %d valor: ", i+1);\n scanf("%f", &vl...
283
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.95, "nodes": 154, "errors": 0, "source_hash": "b9c80d21c987f75ea51ea754ce7bd8354e6bbd49493d761b96fbf2547084097e", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,832
c
#ifndef HEADER_PSI_INCLUDED #define HEADER_PSI_INCLUDED #include "vwf.h" typedef struct PSIClasses { bool Offense : 1; bool Recover : 1; bool Assist : 1; bool Other : 1; } PSIClasses; typedef struct PSIWindow { bool Character_Window : 1; bool Classes_Window : 1; } PSIWindow; typedef struct P...
26.78
41
(translation_unit) "#ifndef HEADER_PSI_INCLUDED\n#define HEADER_PSI_INCLUDED\n\n#include "vwf.h"\n\ntypedef struct PSIClasses {\n bool Offense : 1;\n bool Recover : 1;\n bool Assist : 1;\n bool Other : 1;\n} PSIClasses;\n\ntypedef struct PSIWindow\n{\n bool Character_Window : 1;\n bool Classes_Window ...
268
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.78, "nodes": 193, "errors": 0, "source_hash": "28a5421e2539649ac6f48f07465fef98dc28d6fcac33120ad246e9f158c7d270", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,833
c
#include <stdlib.h> #include <stdio.h> #if MPI #include <math.h> #include <mpi.h> #endif #include "cycletimer.h" #include "instrument.h" /* Instrument different sections of program */ static char *activity_name[ACTIVITY_COUNT] = { "unknown", "startup", "compute_weights", "compute_sums", "find_moves", "local_comm", "...
30.74
172
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\n#if MPI\n#include <math.h>\n#include <mpi.h>\n#endif\n\n#include "cycletimer.h"\n#include "instrument.h"\n\n/* Instrument different sections of program */\nstatic char *activity_name[ACTIVITY_COUNT] = { "unknown", "startup", "compute_weights", "compute_sums...
1,805
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 30.74, "nodes": 1035, "errors": 0, "source_hash": "265f80e65c537d3d2194ec30c4fd2ffed984aa76e02bd9119f842cf0e62214fe", "categorized_nodes": 746}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,834
c
/* gc.h A Garbage collector impl with Mark & Sweep. */ #pragma once #include <set> #include <vector> #include "vm/spinwait.h" const uint32_t gc_grow_size = 50; class runner; struct gc_context { std::set<object*> marks; }; class gc { public: gc(runner &r); virtual ~gc(); // Returns sp...
21.6
43
(translation_unit) "/* gc.h\n\n A Garbage collector impl\n with Mark & Sweep.\n */\n#pragma once\n\n#include <set>\n#include <vector>\n\n#include "vm/spinwait.h"\n\nconst uint32_t gc_grow_size = 50;\n\nclass runner;\nstruct gc_context {\n std::set<object*> marks;\n};\n\nclass gc {\npublic:\n gc(runner &r)...
268
8
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 21.6, "nodes": 162, "errors": 0, "source_hash": "060cbeb80647b872c8800277799101d111ad4eaaa408d1e94109f5f13c371d88", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,835
c
/** * Created by cmd-keen * on netbook * at So 12. Jun 14:35:31 CEST 2016 */ #ifndef _TESTCONNECTION_H_ #define _TESTCONNECTION_H_ #include <Network/Connection.h> #include <queue> #include <string> struct PendingReceiver { Receiver *receiver; size_t bytes; }; /** * @brief */ class TestConnection : public C...
22.48
33
(translation_unit) "/**\n * Created by cmd-keen\n * on netbook\n * at So 12. Jun 14:35:31 CEST 2016\n */\n\n#ifndef _TESTCONNECTION_H_\n#define _TESTCONNECTION_H_\n\n#include <Network/Connection.h>\n#include <queue>\n#include <string>\n\nstruct PendingReceiver {\n Receiver *receiver;\n size_t bytes;\n};\n\n/**\n * @bri...
187
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.48, "nodes": 120, "errors": 0, "source_hash": "ace2d619dad2acdb57dd46fec14d1f9eaa89f4a59f3dd3890d9eb650c2842e99", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,836
c
#pragma once #include <ctime> #include <Adafruit_GFX.h> class IClockFace { public: virtual ~IClockFace() {} virtual void initialize(uint16_t color) = 0; virtual void draw(const tm& time, uint16_t color) = 0; }; class StandardClockFace : public IClockFace { Adafruit_GFX &display; int16_t w, h; ...
30.61
49
(translation_unit) "#pragma once\n#include <ctime>\n#include <Adafruit_GFX.h>\n\nclass IClockFace\n{\npublic:\n virtual ~IClockFace() {}\n virtual void initialize(uint16_t color) = 0;\n virtual void draw(const tm& time, uint16_t color) = 0;\n};\n\nclass StandardClockFace : public IClockFace\n{\n Adafruit_GF...
499
9
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.61, "nodes": 331, "errors": 0, "source_hash": "8816879256d3060ee93867e90c8bf49e01f1d9710dbd82f87e815691d8acf98b", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,837
c
#pragma once //------------------------------------------------------------------------------ /** @class RakNet::RakNetPackedId (C) 2009 Radon Labs GmbH (C) 2013-2015 Individual contributors, see AUTHORS file */ #include "raknet/MessageIdentifiers.h" namespace RakNet { #define PACKET_DATA_BYTEOFFS...
24.54
37
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n/**\n @class RakNet::RakNetPackedId\n \n (C) 2009 Radon Labs GmbH\n (C) 2013-2015 Individual contributors, see AUTHORS file\n*/\n#include "raknet/MessageIdentifiers.h"\n\nnamespace RakNet\...
93
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.54, "nodes": 57, "errors": 0, "source_hash": "ad0fe8b871a01aa0f251f8928e164be8518f344dc9be960b9bf62eb1d4b1a15a", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,838
c
inherit ROOM; void create() { set("short", "边寨风情"); set("long", @LONG 这里已是苗疆地界,只觉得山清水秀,风景与中原大不相同。你 走在路上,不时会碰到少男少女在路边田野里载歌载舞,顿时只觉心 情舒畅,但愿终老此乡。东面有一条江水拦住去路。 LONG); set("outdoors", "wudujiao"); set("exits", ([ "east" : __DIR__"jiang1", "northeast" : __DIR__"...
23
17
(translation_unit) "inherit ROOM;\n\nvoid create()\n{\n set("short", "边寨风情");\n set("long", @LONG\n这里已是苗疆地界,只觉得山清水秀,风景与中原大不相同。你\n走在路上,不时会碰到少男少女在路边田野里载歌载舞,顿时只觉心\n情舒畅,但愿终老此乡。东面有一条江水拦住去路。\nLONG);\n set("outdoors", "wudujiao");\n\n set("exits", ([\n "east" : __DIR__"jiang1",\n ...
145
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.0, "nodes": 65, "errors": 0, "source_hash": "5c732016322d4e097b9ea43fd255eee4374ae84b8ffe0c2dd719399f86cb3502", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit ROO...
12,839
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __gnu_java_rmi_RMIMarshalledObjectOutputStream__ #define __gnu_java_rmi_RMIMarshalledObjectOutputStream__ #pragma interface #include <gnu/java/rmi/server/RMIObjectOutputStream.h> #include <gcj/array.h> extern "Java" { namespace gnu { na...
29.8
35
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __gnu_java_rmi_RMIMarshalledObjectOutputStream__\n#define __gnu_java_rmi_RMIMarshalledObjectOutputStream__\n\n#pragma interface\n\n#include <gnu/java/rmi/server/RMIObjectOutputStream.h>\n#include <gcj/array.h>\n\nextern "Java"...
266
19
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.8, "nodes": 134, "errors": 0, "source_hash": "2c9e40b49c22a1a9ebe836c9d47f43545843a48d2be889f2fd92e90bbf52c183", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,840
c
// // YFAddMoreVC.h // day26-alipay // // Created by apple on 15/10/29. // Copyright (c) 2015年 itheima. All rights reserved. // #import <UIKit/UIKit.h> @interface YFAddMoreVC : UIViewController @end
19.3
10
(translation_unit) "//\n// YFAddMoreVC.h\n// day26-alipay\n//\n// Created by apple on 15/10/29.\n// Copyright (c) 2015年 itheima. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YFAddMoreVC : UIViewController\n\n@end\n" (comment) "//" (comment) "// YFAddMoreVC.h" (comment) "// day26-alipay"...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.3, "nodes": 12, "errors": 0, "source_hash": "8925f7ff2db8e7dbb614ad4547d0d579591e197da5fae682db017e0f610bdd82", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
12,841
c
#include <DHT.h> // Libreria DHT DHT dht(DHTPIN, DHTTYPE); // Instaciacion de la clase para el Sensor DHT
52
2
(translation_unit) "#include <DHT.h> // Libreria DHT\n\nDHT dht(DHTPIN, DHTTYPE); // Instaciacion de la clase para el Sensor DHT\n" (preproc_include) "#include <DHT.h> // Libreria DHT\n" (#include) "#include" (system_lib_string) "<DHT.h>" (comment) "// Libreria DHT" (declaration) "DHT dht(DHTPIN, DHTTYP...
19
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 52.0, "nodes": 12, "errors": 0, "source_hash": "37d3b8eba4b1d4eca1dba2700f9e65c8a5ecec9d06e4191dd415c77c476fc9b7", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,842
c
#pragma once #include "helpers.h" #include "supercluster.hpp" #include <jsi/jsi.h> using namespace std; using namespace facebook; namespace clusterer { class JSI_EXPORT SuperclusterHostObject : public jsi::HostObject { public: SuperclusterHostObject(jsi::Runtime &rt, const jsi::Value *args, ...
30.79
19
(translation_unit) "#pragma once\n\n#include "helpers.h"\n#include "supercluster.hpp"\n#include <jsi/jsi.h>\n\nusing namespace std;\nusing namespace facebook;\n\nnamespace clusterer {\nclass JSI_EXPORT SuperclusterHostObject : public jsi::HostObject {\npublic:\n SuperclusterHostObject(jsi::Runtime &rt, const jsi::Valu...
184
15
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.79, "nodes": 103, "errors": 0, "source_hash": "65682eda9200447f70237239dbfa466c2edd01433713a9176cc254db34e94481", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,843
c
/* * Mutex protected logging * Copyright (c) 2004 Pertimm bu <NAME> * Dev : November 2004 * Version 1.0 */ #include <logthr.h> #include <stdarg.h> PUBLIC(int) OgThrMessageLog(ogmutex_t *mutex,int mb,char *title,char * file_ptr,const char * format, ... ) { va_list arg_ptr; char text[DOgMlog...
20.46
41
(translation_unit) "/* \n * Mutex protected logging \n * Copyright (c) 2004 Pertimm bu <NAME> \n * Dev : November 2004 \n * Version 1.0 \n*/ \n#include <logthr.h> \n#include <stdarg.h> \n \n \n \n \n \nPUBLIC(int) OgThrMessageLog(ogmutex_t *mutex,int mb,char *title,char * file_ptr,const char * format, ... ) \n{ \n...
239
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 20.46, "nodes": 142, "errors": 0, "source_hash": "32afcdd4cdc1e75e972dbd5401f43be3bc9e65ffe252f66aa49f29ab10652edb", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,844
c
/* * Regulator driver for STw4810/STw4811 VMMC regulator. * * Copyright (C) 2013 ST-Ericsson SA * Written on behalf of Linaro for ST-Ericsson * * Author: <NAME> <<EMAIL>> * * License terms: GNU General Public License (GPL) version 2 */ #include <linux/err.h> #include <linux/init.h> #include <linux/mfd/stw481x...
28.84
92
(translation_unit) "/*\n * Regulator driver for STw4810/STw4811 VMMC regulator.\n *\n * Copyright (C) 2013 ST-Ericsson SA\n * Written on behalf of Linaro for ST-Ericsson\n *\n * Author: <NAME> <<EMAIL>>\n *\n * License terms: GNU General Public License (GPL) version 2\n */\n\n#include <linux/err.h>\n#include <linux/ini...
607
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 28.84, "nodes": 372, "errors": 0, "source_hash": "10fa9188739d9ebf5486a9534c5868d4d981149176a4a1a0f7aeb9651983df73", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,845
c
// // Product.h // Sitecore.ARDemo // // Created by <NAME> on 15.09.2018. // Copyright © 2018 SmartIn. All rights reserved. // #import <Foundation/Foundation.h> @interface Product : NSObject @property (strong, nonatomic) NSString *productId; @property (strong, nonatomic) NSString *name; @property (strong, nona...
35.45
20
(translation_unit) "//\n// Product.h\n// Sitecore.ARDemo\n//\n// Created by <NAME> on 15.09.2018.\n// Copyright © 2018 SmartIn. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Product : NSObject\n\n@property (strong, nonatomic) NSString *productId;\n\n@property (strong, nonatomic) NSStri...
207
42
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.45, "nodes": 157, "errors": 0, "source_hash": "54a89f49bd878589526b8fb8c25d83a93017c758fbffdf5757d845a72ea3606b", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
12,846
c
#ifndef _miiskira_define_h_ #define _miiskira_define_h_ // 常量定义 #define miiskira$posky$posky "posky" #define miiskira$posky$graph "graph" #endif
23.5
6
(translation_unit) "#ifndef _miiskira_define_h_\n#define _miiskira_define_h_\n\n// 常量定义\n\n#define miiskira$posky$posky "posky"\n#define miiskira$posky$graph "graph"\n\n#endif\n" (preproc_ifdef) "#ifndef _miiskira_define_h_\n#define _miiskira_define_h_\n\n// 常量定义\n\n#define miiskira$posky$posky "posky"\n#define mi...
17
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.5, "nodes": 15, "errors": 0, "source_hash": "baa69a85ff98594043fd50d84af4d520c01fb3d7ff742809bd83afd863aad8ca", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _mi...
12,847
c
#ifndef SAFE_ALLOC_H #define SAFE_ALLOC_H #include <stdlib.h> void* s_malloc(size_t size); void* s_calloc(size_t num, size_t size); void* s_realloc(void* ptr, size_t size); void s_free(void* ptr); #endif
24.5
8
(translation_unit) "#ifndef SAFE_ALLOC_H\n#define SAFE_ALLOC_H\n\n#include <stdlib.h>\n\nvoid* s_malloc(size_t size);\n\nvoid* s_calloc(size_t num, size_t size);\n\nvoid* s_realloc(void* ptr, size_t size);\n\nvoid s_free(void* ptr);\n\n#endif" (preproc_ifdef) "#ifndef SAFE_ALLOC_H\n#define SAFE_ALLOC_H\n\n#include <s...
73
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.5, "nodes": 58, "errors": 0, "source_hash": "9a22cf34933ede44b47319058e4af6ed84c5e4bfb5551b76af873130836d1cca", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SA...
12,848
c
#include <erl_nif.h> #include <math.h> #include <string.h> /* Code translated from Elixir - Synthex.Filter.Moog: https://github.com/bitgamma/synthex/blob/master/lib/synthex/filter/moog.ex transposed to Erlang NIF library. */ static ErlNifResourceType* moog_type; typedef struct { /* Pass cutoff and resonance in pe...
32.07
106
(translation_unit) "#include <erl_nif.h>\n#include <math.h>\n#include <string.h>\n\n/* Code translated from Elixir - Synthex.Filter.Moog:\nhttps://github.com/bitgamma/synthex/blob/master/lib/synthex/filter/moog.ex\ntransposed to Erlang NIF library.\n*/\n\nstatic ErlNifResourceType* moog_type;\n\ntypedef struct\n{\n /*...
1,104
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 32.07, "nodes": 726, "errors": 0, "source_hash": "d0e92fc121f2ed9a3b49904b3c9934e2d11a8be15d7b043b20e84825e7a119d3", "categorized_nodes": 511}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,849
c
#pragma once #include<memory> #include "render_state.h" namespace Render { namespace Stage { class Base { public: std::shared_ptr<Render::State> & mSceneState; protected: inline std::shared_ptr<Render::State> & sceneState() { return mSceneState; } public: explicit Base(std::shared_p...
17.12
26
(translation_unit) "#pragma once\n\n#include<memory>\n#include "render_state.h"\n\nnamespace Render\n{\n namespace Stage\n {\n class Base\n { \n public:\n std::shared_ptr<Render::State> & mSceneState;\n protected:\n inline std::shared_ptr<Render::State> &\n sceneState()\n {\n return mSceneState;\n }\n ...
169
9
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.12, "nodes": 94, "errors": 0, "source_hash": "f883d6e32a5c26b65409f7ec39b83a025e0f172a2ea893e9e0fb8b13dfc4e7b4", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,850
c
// // DemoBoxItem.h // xh_textfield // // Created by 路 on 2019/10/24. // Copyright © 2019年 路. All rights reserved. // #import "WXHCodeViewItem.h" @interface DemoBoxItem : WXHCodeViewItem /// 显示文本 @property (strong ,nonatomic) UILabel *label; @end
19.92
12
(translation_unit) "//\n// DemoBoxItem.h\n// xh_textfield\n//\n// Created by 路 on 2019/10/24.\n// Copyright © 2019年 路. All rights reserved.\n//\n\n#import "WXHCodeViewItem.h"\n\n@interface DemoBoxItem : WXHCodeViewItem\n\n/// 显示文本\n@property (strong ,nonatomic) UILabel *label;\n@end\n" (comment) "//" (comment) ...
37
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.92, "nodes": 23, "errors": 0, "source_hash": "0341d362886164faa0eeb03a5036f1f9f86c82060bf3c0fd74f65f40b7b2a163", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"WXHCod...
12,851
c
/*********************************************************** Copyright 1987, 1988, 1990 by Digital Equipment Corporation, Maynard, All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provide...
30.38
263
(translation_unit) "/***********************************************************\nCopyright 1987, 1988, 1990 by Digital Equipment Corporation, Maynard,\n\n All Rights Reserved\n\nPermission to use, copy, modify, and distribute this software and its\ndocumentation for any purpose and without fee i...
1,639
5
{"language": "c", "success": true, "metadata": {"lines": 263, "avg_line_length": 30.38, "nodes": 1026, "errors": 0, "source_hash": "3949b4aec94cc2961ddde54c516520009fdc42d888e6c4b29e3f5737b20e9278", "categorized_nodes": 805}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
12,852
c
// // Created by liuyubobobo on 9/2/16. // #ifndef INC_04_OPTIMIZE_BY_SIZE_UNIONFIND3_H #define INC_04_OPTIMIZE_BY_SIZE_UNIONFIND3_H #include <cassert> using namespace std; namespace UF3{ class UnionFind{ private: int* parent; int* sz; // sz[i]表示以i为根的集合中元素个数 int count; public...
24.91
54
(translation_unit) "//\n// Created by liuyubobobo on 9/2/16.\n//\n\n#ifndef INC_04_OPTIMIZE_BY_SIZE_UNIONFIND3_H\n#define INC_04_OPTIMIZE_BY_SIZE_UNIONFIND3_H\n\n#include <cassert>\n\nusing namespace std;\n\n\nnamespace UF3{\n\n class UnionFind{\n\n private:\n int* parent;\n int* sz; // sz[i]表示以i为根的...
388
9
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.91, "nodes": 228, "errors": 0, "source_hash": "85da53ce5a218dddd63bef168f75aef226446b48aec6fb58c3585f91f1cb25c1", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,853
c
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2006 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "elan_module_impl.h" #include <elan/elan.h> #include "elan_module.h" #include "my_papi_defs.h" /* void elan__print_queue(MPID_nem_elan_event_queue_ptr_t qhead, int sens)...
29.01
141
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; -*- */\n/*\n * (C) 2006 by Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n */\n\n#include "elan_module_impl.h"\n#include <elan/elan.h>\n#include "elan_module.h"\n#include "my_papi_defs.h"\n\n/*\nvoid elan__print_queue(MPID_nem_elan_ev...
606
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 29.01, "nodes": 373, "errors": 0, "source_hash": "ca0786d0b0d3b9b4bf1b55250b1ecf8667f72c755b2673bd395c5ea01ee4f09f", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,854
c
#include "types.h" #include "user.h" int main(int argc, char *argv[]) { if (argc != 2) { printf(1, "Usage: sanity [n]\n"); exit(); } int i, n, j = 0, k, retime, rutime, stime; int times[3][3]; for (i = 0; i < 3; i++) for (j = 0; j < 3; j++) times[i][j] = 0; n = atoi(argv[1]); int pid; for (i = 0; i <...
26.23
84
(translation_unit) "#include "types.h"\n#include "user.h"\n\nint main(int argc, char *argv[])\n{\n if (argc != 2)\n {\n printf(1, "Usage: sanity [n]\n");\n exit();\n }\n int i, n, j = 0, k, retime, rutime, stime;\n int times[3][3];\n for (i = 0; i < 3; i++)\n for (j = 0; j < 3; j++)\n times[i][j] = 0;\n n = atoi(a...
984
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 26.23, "nodes": 572, "errors": 0, "source_hash": "d76d149b4c17a8d23de304be1ae0b43ac47a8011c5eebe8b95845ad12e1be493", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,855
c
#include <pthread.h> #include <stdio.h> pthread_t producer; pthread_t consumer; typedef struct { int cmds; int executed; pthread_mutex_t mutex; pthread_cond_t full; pthread_cond_t empty; } cmd_mbox_t; cmd_mbox_t cmd_mbox; void *producer_thread(void *data) { while (cmd_mbox.executed) { pthread_mute...
28.04
51
(translation_unit) "#include <pthread.h>\n#include <stdio.h>\n\npthread_t producer;\npthread_t consumer;\n\ntypedef struct {\n int cmds;\n int executed;\n pthread_mutex_t mutex;\n pthread_cond_t full;\n pthread_cond_t empty;\n} cmd_mbox_t;\n\ncmd_mbox_t cmd_mbox;\n\nvoid *producer_thread(void *data) {\n\n while (...
488
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.04, "nodes": 281, "errors": 0, "source_hash": "615256cebe6a1497498240323f7bed5cc0f6414655c0a253ef795f611cd2ba99", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,856
c
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELP...
35.95
120
(translation_unit) "// Copyright (c) 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_\n#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSE...
728
35
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 35.95, "nodes": 464, "errors": 0, "source_hash": "9eea2c4da1a65883222df446fe479f6f9e81cc08c863585816cd237f97e58567", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,857
c
/* * Copyright (c) 2016, Zolertia - http://www.zolertia.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notic...
32.03
289
(translation_unit) "/*\n * Copyright (c) 2016, Zolertia - http://www.zolertia.com\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\n * are met:\n * 1. Redistributions of source code must retain the ...
2,055
1
{"language": "c", "success": true, "metadata": {"lines": 289, "avg_line_length": 32.03, "nodes": 1138, "errors": 0, "source_hash": "c9ee764f7885dd20b45d242774a431146c8c76ab13d3be1dcfe8f7822079a96b", "categorized_nodes": 832}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,858
c
#include "cpu/z80/z80.h" /* This it the best way to allow game specific kludges until the system is fully understood */ enum { GETSTUNK=0, /* unknown for inclusion of possible new sets */ GETSTAR, GETSTARJ, GTSTARB1, /* "good" bootleg with same behaviour as 'getstarj' */ GTSTARB2, /* "lame" bootl...
28.47
135
(translation_unit) "#include "cpu/z80/z80.h" \n \n \n/* This it the best way to allow game specific kludges until the system is fully understood */ \nenum { \n GETSTUNK=0, /* unknown for inclusion of possible new sets */ \n GETSTAR, \n GETSTARJ, \n GTSTARB1, /* "good" bootleg with same behaviour as 'getstarj' */ \n...
652
5
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 28.47, "nodes": 373, "errors": 0, "source_hash": "fe73a203bff48f7b97ac8f48fd30ade85df8b6ac50f0752f2d32d0938e4012c7", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,859
c
#ifndef __FVM_ERR_H #define __FVM_ERR_H #include <stdint.h> #define FVM_NO_ARG_ERR -1 #define FVM_NO_MEM -2 #define FVM_NO_ROM -3 #define FVM_LARGE_ROM -4 #define FVM_FATAL_ERR -5 #define FVM_PROGRAM_ERR -6 #define FVM_STACK_ERR -7 #define FVM_FONT_ERR -8 #define FVM_RESOURCE_ERR -9 #define FVM_LESS_MEM_ERR -10 #define...
22.56
18
(translation_unit) "#ifndef __FVM_ERR_H\n#define __FVM_ERR_H\n#include <stdint.h>\n#define FVM_NO_ARG_ERR -1\n#define FVM_NO_MEM -2\n#define FVM_NO_ROM -3\n#define FVM_LARGE_ROM -4\n#define FVM_FATAL_ERR -5\n#define FVM_PROGRAM_ERR -6\n#define FVM_STACK_ERR -7\n#define FVM_FONT_ERR -8\n#define FVM_RESOURCE_ERR -9\n#def...
74
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.56, "nodes": 70, "errors": 0, "source_hash": "70b003086f84b381e1d9796c76115ac6a2b78da7d4ba331428932810f29e09e1", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,860
c
// Copyright (c) 2011-2021 The Khronos Group, Inc. // SPDX-License-Identifier: MIT private: interop_handle(__unspecified__); // (1) public: interop_handle() = delete; // (2)
28.33
6
(translation_unit) "// Copyright (c) 2011-2021 The Khronos Group, Inc.\n// SPDX-License-Identifier: MIT\n\nprivate:\n\n interop_handle(__unspecified__); // (1)\n\npublic:\n\n interop_handle() = delete; // (2)\n" (comment) "// Copyright (c) 2011-2021 The Khronos Group, Inc." (comment) "// SPDX-License-Identifier: MI...
29
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 28.33, "nodes": 11, "errors": 0, "source_hash": "6fd88dc6a37382f986fc2cb4e8c547abc01c72db9ffce0c7808deaf5542cc803", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "privat...
12,861
c
/* * popen - open a pipe */ /* $Header$ */ #include <sys/types.h> #include <limits.h> #include <errno.h> #include <signal.h> #include <stdio.h> #if defined(__BSD4_2) union wait { int w_status; }; typedef union wait wait_arg; #else typedef int wait_arg; #endif /* __BSD4_2 */ #include "../stdio/...
18.52
122
(translation_unit) "/* \n * popen - open a pipe \n */ \n/* $Header$ */ \n \n#include <sys/types.h> \n#include <limits.h> \n#include <errno.h> \n#include <signal.h> \n#include <stdio.h> \n \n#if defined(__BSD4_2) \nunion wait { \n int w_status; \n}; \ntypedef union wait wait_arg; \n#else \ntypedef int wait_arg; \n#endif...
933
2
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 18.52, "nodes": 603, "errors": 0, "source_hash": "86957c3e50f44fcdd608e818499930c522cf8969645541701648449b410098da", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,862
c
#ifndef PHONE_H_ #define PHONE_H_ #include "systemc.h" #include "interface.h" #include "powerButton.h" #include "touchScreen.h" #include "battery.h" #include "phoneOS.h" #include "notificationManager.h" #include <string> using namespace std; SC_MODULE(Phone){ sc_fifo_in<Activity> activity; sc_in<bool> pt_presse...
23.98
97
(translation_unit) "#ifndef PHONE_H_\n#define PHONE_H_\n\n#include "systemc.h"\n#include "interface.h"\n#include "powerButton.h"\n#include "touchScreen.h"\n#include "battery.h"\n#include "phoneOS.h"\n#include "notificationManager.h"\n#include <string>\n\nusing namespace std;\n\nSC_MODULE(Phone){\n\n sc_fifo_in<Activity...
587
4
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 23.98, "nodes": 329, "errors": 0, "source_hash": "7361442113ea3ebdde62ca0d55c494708f5edcdfd49ec93cb0c072bbe3b23e84", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,863
c
// // PMAppDelegate.h // ProxyMenu // // Created by <NAME> on 13-9-4. // Copyright (c) 2013年 TickPlant. All rights reserved. // #import <Cocoa/Cocoa.h> @interface PMAppDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate, NSWindowDelegate> @property (assign) IBOutlet NSWindow *window; @property (readonly,...
39.94
16
(translation_unit) "//\n// PMAppDelegate.h\n// ProxyMenu\n//\n// Created by <NAME> on 13-9-4.\n// Copyright (c) 2013年 TickPlant. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface PMAppDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate, NSWindowDelegate>\n\n@property (assign) IBOutlet NSWindo...
141
17
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.94, "nodes": 90, "errors": 0, "source_hash": "fade3161b863e576808d2a3ac7102a1b0a4243b3225e52a87bb332bc90289992", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Co...
12,864
c
/* * File: defs.h * Author: mark * * Created on 10. November 2013, 20:16 */ #ifndef DEFS_H #define DEFS_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <xc.h> #include <plib.h> #define BIT0 0b1 #define BIT1 ...
18.82
73
(translation_unit) "/* \n * File: defs.h\n * Author: mark\n *\n * Created on 10. November 2013, 20:16\n */\n\n#ifndef DEFS_H\n#define DEFS_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n#include <xc.h>\n#include <...
295
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 18.82, "nodes": 223, "errors": 0, "source_hash": "46a9ed310eefdd21dc0f5fb3e0f477fb5274097d852396b8727ef5e0276b8a0c", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,865
c
// Copyright (c) 2021 <NAME> #pragma once #include <string> #include <vector> #include <QtCharts/QChart> #include <QtCharts/QLineSeries> #include <QtCharts/QValueAxis> #include <QtWidgets/QGesture> #include <QtWidgets/QGraphicsScene> #include <QtWidgets/QGraphicsView> #include <boost/optional.hpp> #include <boost/ptr...
34.09
78
(translation_unit) "// Copyright (c) 2021 <NAME>\n\n#pragma once\n\n#include <string>\n#include <vector>\n#include <QtCharts/QChart>\n#include <QtCharts/QLineSeries>\n#include <QtCharts/QValueAxis>\n#include <QtWidgets/QGesture>\n#include <QtWidgets/QGraphicsScene>\n#include <QtWidgets/QGraphicsView>\n#include <boost/o...
651
40
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 34.09, "nodes": 380, "errors": 0, "source_hash": "93441832b54571f1328656d1d5dae8bc240b8cdf3d734bc5f9a023f40c0a180b", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,866
c
#ifndef ENGINE_H_ #define ENGINE_H_ #include "cgc_stdint.h" enum { WHITE, BLACK }; enum { WHITE_WON, BLACK_WON, DRAW, UNFINISHED }; enum { PAWN, KNIGHT, BISHOP, ROOK, QUEEN, KING, NUM_PIECES = KING + 1, EMPTY = NUM_PIECES }; typedef uint64_t bboard_t; typedef...
18.48
46
(translation_unit) "#ifndef ENGINE_H_\n#define ENGINE_H_\n\n#include "cgc_stdint.h"\n\nenum {\n WHITE,\n BLACK\n};\n\nenum {\n WHITE_WON,\n BLACK_WON,\n DRAW,\n UNFINISHED\n};\n\nenum {\n PAWN,\n KNIGHT,\n BISHOP,\n ROOK,\n QUEEN,\n KING,\n NUM_PIECES = KING + 1,\n EMPTY = NUM_...
248
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 18.48, "nodes": 169, "errors": 0, "source_hash": "9e5c27c79efe3eabaffb015fed3e6b6cea66e1a171f0f95e5fa63cc5d10f8e0c", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,867
c
#ifndef SPOTLIGHTCOMMAND_H_ #define SPOTLIGHTCOMMAND_H_ #include <glm/glm.hpp> #include "LightingCommand.h" namespace lly { class Device; class SpotLightingCommand : public LightingCommand { public: SpotLightingCommand(const glm::vec4& color, const glm::vec3& position, const glm::vec3& direction...
21.2
41
(translation_unit) "#ifndef SPOTLIGHTCOMMAND_H_\n#define SPOTLIGHTCOMMAND_H_\n#include <glm/glm.hpp>\n#include "LightingCommand.h"\n\nnamespace lly {\n class Device;\n\n class SpotLightingCommand : public LightingCommand\n {\n public:\n SpotLightingCommand(const glm::vec4& color, \n const glm::vec3& position, \n...
250
15
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 21.2, "nodes": 147, "errors": 0, "source_hash": "761aeb653ff3c9f5fa8b8e3c46a01e0c2394f004cdb0d31587e3c86956d88875", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,868
c
/* * Language adjustment for some words in the document * Copyright (c) 2012 Pertimm by <NAME> * Dev : July 2012 * Version 1.0 */ #include "ogm_lip.h" static int LipAdjustLang1(struct og_ctrl_lip *ctrl_lip, int document_language_code, int Ipawo); /* Language adjustement, means that we take into ...
27.71
52
(translation_unit) "/* \n * Language adjustment for some words in the document \n * Copyright (c) 2012 Pertimm by <NAME> \n * Dev : July 2012 \n * Version 1.0 \n*/ \n#include "ogm_lip.h" \n \n \nstatic int LipAdjustLang1(struct og_ctrl_lip *ctrl_lip, int document_language_code, int Ipawo); \n \n \n/* Language adjus...
318
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.71, "nodes": 202, "errors": 0, "source_hash": "3a4960a5124a490a0b30091d5e5d152171c64f1973147973fb1900ea52182928", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,869
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "E2SM-KPM-IEs" * found in "E2SM-KPM-v02.01-cl.asn" * `asn1c -D E2SM-KPM-v02.01-cl -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example` */ #ifndef _E2SM_KPM_ActionDefinition_H_ #define _E2SM...
35.51
63
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "E2SM-KPM-IEs"\n * found in "E2SM-KPM-v02.01-cl.asn"\n * `asn1c -D E2SM-KPM-v02.01-cl -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`\n */\n\n#ifndef _E2SM_KPM_Action...
165
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.51, "nodes": 113, "errors": 0, "source_hash": "0275af0c63313f538da4420429634293c42ba0fa390b1ca3e2f923141ecbe6c7", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,870
c
#include <stdio.h> #include <stdlib.h> typedef struct { int codigo; int estoque; } Cadastro; void imprimir(Cadastro *cadastro, int n) { printf ("\n\n---------RESULTADO DOS PEDIDOS DOS CLIENTES-------\n\n"); for (int i = 0; i < n; i++) { printf("Código da mercadoria %d: %d \n", i + 1, cadastro[...
34.3
57
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n int codigo;\n int estoque;\n} Cadastro;\n\nvoid imprimir(Cadastro *cadastro, int n) {\n printf ("\n\n---------RESULTADO DOS PEDIDOS DOS CLIENTES-------\n\n");\n for (int i = 0; i < n; i++) {\n printf("Código da mercador...
599
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.3, "nodes": 306, "errors": 0, "source_hash": "0a1fb802517e2f4ac7bfacf2bcbcf8eed350ba0f3db1ddac622046b7db23a3f3", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,871
c
#ifndef SkWindow_DEFINED #define SkWindow_DEFINED // start : ignore skia dll warnings #pragma warning( push ) #pragma warning( disable : 4251 ) #if SK_SUPPORT_GPU #else class GrContext; #endif #include "SkBitmap.h" #include "SkMatrix.h" #include "SkRegion.h" #include "SkString.h" #include "SkSurface.h" // end :...
24.12
69
(translation_unit) "#ifndef SkWindow_DEFINED\n#define SkWindow_DEFINED\n\n// start : ignore skia dll warnings\n#pragma warning( push ) \n#pragma warning( disable : 4251 ) \n\n#if SK_SUPPORT_GPU\n#else\nclass GrContext;\n#endif\n\n#include "SkBitmap.h"\n#include "SkMatrix.h"\n#include "SkRegion.h"\n#include "SkString....
459
17
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 24.12, "nodes": 291, "errors": 0, "source_hash": "5d4657410fca93d46eddbc6ce803eac2e99b5c0776701ccffd8348b4453b408b", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,872
c
// // UIImage+Thumbnail.h // MAGE // // Created by <NAME> on 6/29/16. // Copyright © 2016 National Geospatial Intelligence Agency. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Thumbnail) - (UIImage *) thumbnailWithSize:(CGSize) size; @end
23.18
11
(translation_unit) "//\n// UIImage+Thumbnail.h\n// MAGE\n//\n// Created by <NAME> on 6/29/16.\n// Copyright © 2016 National Geospatial Intelligence Agency. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (Thumbnail)\n\n- (UIImage *) thumbnailWithSize:(CGSize) size;\n\n@end\n" (comment) "...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.18, "nodes": 22, "errors": 0, "source_hash": "3f28ed83f84295a4e2f6b775d09f6fc7378416075986e889ee52f67ffd092df1", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,873
c
/* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The OpenAirInterface Software Alliance licenses this file to You under the OAI Publi...
37.11
141
(translation_unit) "/*\n Licensed to the OpenAirInterface (OAI) Software Alliance under one or more\n contributor license agreements. See the NOTICE file distributed with\n this work for additional information regarding copyright ownership.\n The OpenAirInterface Software Alliance licenses this file to You...
1,040
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 37.11, "nodes": 656, "errors": 0, "source_hash": "4b82decb4dffa35849c889fb16b26a565bec7d97c6961fd2852e049f1457b21e", "categorized_nodes": 504}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,874
c
#ifndef KINFU_PIPELINE_H_ #define KINFU_PIPELINE_H_ #include <iostream> #include <thread> #include "system_utility.h" #include "threeD_viewer.h" namespace Kinfu { class KinfuPipeline : public std::enable_shared_from_this<Kinfu::KinfuPipeline> { public: KinfuPipeline(int height, int width, float ma...
35.84
57
(ERROR) "#ifndef KINFU_PIPELINE_H_\n#define KINFU_PIPELINE_H_\n\n#include <iostream>\n#include <thread>\n#include "system_utility.h"\n#include "threeD_viewer.h"\n\nnamespace Kinfu\n{\n class KinfuPipeline : public std::enable_shared_from_this<Kinfu::KinfuPipeline>\n {\n public:\n KinfuPipeline(int heigh...
451
26
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 35.84, "nodes": 257, "errors": 0, "source_hash": "258772721444a2eb77eb31ed4925b13d910ed33ecf7a22ea0c6084133bfe5903", "categorized_nodes": 157}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef KINFU_PIPELINE_H_...
12,875
c
// // AliyunIdentityPublicApi.h // ZolozIdentityManager // // Created by richard on 22/11/2017. // Copyright © 2017 Alipay. All rights reserved. // #ifndef ZolozIdentityPublicApi_h #define ZolozIdentityPublicApi_h #import <AliyunIdentityManager/AliyunIdentityManager.h> #import <AliyunIdentityManager/ZIMResponse.h...
29.92
13
(translation_unit) "//\n// AliyunIdentityPublicApi.h\n// ZolozIdentityManager\n//\n// Created by richard on 22/11/2017.\n// Copyright © 2017 Alipay. All rights reserved.\n//\n\n#ifndef ZolozIdentityPublicApi_h\n#define ZolozIdentityPublicApi_h\n\n#import <AliyunIdentityManager/AliyunIdentityManager.h>\n#import <Ali...
25
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.92, "nodes": 13, "errors": 0, "source_hash": "8cadfe7adea640b675d491c3b51cc3af23e2ca6686a323de7afbfd5c5cb8928e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef Zo...
12,876
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:44:28 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/FMIPCore.framework/FMIPCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME...
29.35
17
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:44:28 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/FMIPCore.framework/FMIPCore\n* classdump-dyld is licensed under GPLv3, Copyr...
45
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.35, "nodes": 21, "errors": 0, "source_hash": "39915e1b9711c9dbf784a0a4300d7fa00009e982b8d3faff49a88c4cb7a0f15a", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
12,877
c
// // MDOption.h // MidtransDemo // // Created by <NAME> on 4/28/17. // Copyright © 2017 Midtrans. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, MDOptionType) { MDOptionTypeGeneral, MDOptionTypeColor, MDOptionTypeComposer }; typedef NS_ENUM(NSUInteger, MDComposerType) { ...
33.17
29
(translation_unit) "//\n// MDOption.h\n// MidtransDemo\n//\n// Created by <NAME> on 4/28/17.\n// Copyright © 2017 Midtrans. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSUInteger, MDOptionType) {\n MDOptionTypeGeneral,\n MDOptionTypeColor,\n MDOptionTypeComposer\n};\n\ntypedef NS...
261
37
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 33.17, "nodes": 159, "errors": 0, "source_hash": "d717f8ea027b9c17761b39f23a43df1d37837e984c64ee92fd8a14069a70f3e5", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
12,878
c
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// /// Auto-generated by Stone, do not modify. /// #import <Foundation/Foundation.h> #import <ObjectiveDropboxOfficial/DBSerializableProtocol.h> @class DBSHARINGTeamMemberInfo; @class DBUSERSTeam; NS_ASSUME_NONNULL_BEGIN #pragma mark - API Object /// ...
35.05
80
(translation_unit) "///\n/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.\n///\n/// Auto-generated by Stone, do not modify.\n///\n\n#import <Foundation/Foundation.h>\n\n#import <ObjectiveDropboxOfficial/DBSerializableProtocol.h>\n\n@class DBSHARINGTeamMemberInfo;\n@class DBUSERSTeam;\n\nNS_ASSUME_NONNULL_BEGIN...
320
36
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 35.05, "nodes": 183, "errors": 0, "source_hash": "ce1083e672156511d9eb5ed9fc1be81ff0a0033eaecf5defe8165a4b7b6353d4", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,879
c
// // Created by f33dir on 6/26/21. // #ifndef GAMEBOY_MEMORY_H #define GAMEBOY_MEMORY_H #include <cstdint> #include <fstream> #include "MemUtils/MemUtils.h" #include <fstream> #include <vector> #include <ctime> #include <chrono> class Memory { //IO uint8_t DPAD; uint8_t ACTION_BUTTONS; uint8_t TIME;...
23.46
50
(translation_unit) "//\n// Created by f33dir on 6/26/21.\n//\n\n#ifndef GAMEBOY_MEMORY_H\n#define GAMEBOY_MEMORY_H\n\n\n#include <cstdint>\n#include <fstream>\n#include "MemUtils/MemUtils.h"\n#include <fstream>\n#include <vector>\n#include <ctime>\n#include <chrono>\nclass Memory {\n //IO\n uint8_t DPAD;\n uin...
340
15
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 23.46, "nodes": 237, "errors": 0, "source_hash": "c34e4e45b79e9c101901f0801704cfc6411306494f2eb4071f80d10f51cba9e2", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,880
c
/* PR c/64223: Test for duplicated warnings. */ /* { dg-do compile } */ /* { dg-options "-Wformat" } */ int printf (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); void foo (void) { printf ("%d\n", 0UL); /* { dg-bogus "expects argument of type.*expects argument of type" } */ /* { dg-warning "e...
36.4
10
(translation_unit) "/* PR c/64223: Test for duplicated warnings. */\n/* { dg-do compile } */\n/* { dg-options "-Wformat" } */\n\nint printf (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));\n\nvoid\nfoo (void)\n{\n printf ("%d\n", 0UL); /* { dg-bogus "expects argument of type.*expects argument of t...
66
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.4, "nodes": 31, "errors": 0, "source_hash": "e65f35c8cd1ebf736952c8850f31c5c6625434a3099750b094c599160ce8bcb1", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int printf ...
12,881
c
/* Copyright (C) 2013 The PARI group. This file is part of the PARI/GP package. PARI/GP 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. It is distributed in the hope that it will be useful, but WITHOUT ANY WARR...
23.56
328
(translation_unit) "/* Copyright (C) 2013 The PARI group.\n\nThis file is part of the PARI/GP package.\n\nPARI/GP is free software; you can redistribute it and/or modify it under the\nterms of the GNU General Public License as published by the Free Software\nFoundation. It is distributed in the hope that it will be us...
2,551
30
{"language": "c", "success": true, "metadata": {"lines": 328, "avg_line_length": 23.56, "nodes": 1588, "errors": 0, "source_hash": "a9dbd7f0e94ea515819336557ee929bc128a6b7f7db2502e6df773ee170c9fdf", "categorized_nodes": 1158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,882
c
#pragma once #include <thread> #include <future> #include "command.h" #include "threadsafe_queue.h" class InstrumentCtrl { private: threadsafe_queue<Command>* pCq; threadsafe_queue<ENGN_Info>* pRq; std::thread hw_thread; public: InstrumentCtrl(threadsafe_queue<Command>* p, threadsafe_queue<ENGN_Info>*...
21.95
19
(translation_unit) "#pragma once\n#include <thread>\n#include <future>\n#include "command.h"\n#include "threadsafe_queue.h"\n\n\nclass InstrumentCtrl\n{\nprivate:\n threadsafe_queue<Command>* pCq;\n threadsafe_queue<ENGN_Info>* pRq;\n std::thread hw_thread;\npublic:\n InstrumentCtrl(threadsafe_queue<Command...
137
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.95, "nodes": 91, "errors": 0, "source_hash": "0ea0cda952bc2a5141ac0cdead46944fb1745ba44ccf43e3c915b547f3b355a2", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,883
c
// // AddElementViewController.h // Travel Notes // // Created by gianpaolo on 30/10/16. // Copyright © 2016 capraraedefrancescosoft. All rights reserved. // #import <UIKit/UIKit.h> #import "Element.h" #import "PageViewCell.h" typedef enum addElementType {CAPTURE_VIDEO, CAPTURE_IMAGE, CHOOSE_VIDEO, CHOOSE_IMAGE, ...
37.39
23
(translation_unit) "//\n// AddElementViewController.h\n// Travel Notes\n//\n// Created by gianpaolo on 30/10/16.\n// Copyright © 2016 capraraedefrancescosoft. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Element.h"\n#import "PageViewCell.h"\n\ntypedef enum addElementType {CAPTURE_VIDEO, CAPTURE_IMA...
137
12
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.39, "nodes": 95, "errors": 0, "source_hash": "3c4ae63aa97fa6a3c8cca5c8d624c0171f263bbcde2210948ae94bd2cab548bd", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,884
c
#pragma once #include "types.h" #include "shipyard.h" #include "ship.h" #include "dropoff.h" #include <memory> #include <unordered_map> typedef hlt { struct Player { PlayerId id; std::shared_ptr<Shipyard> shipyard; Halite halite; std::unordered_map<EntityId, std::shared_ptr<Ship>>...
31.3
23
(translation_unit) "#pragma once\n\n#include "types.h"\n#include "shipyard.h"\n#include "ship.h"\n#include "dropoff.h"\n\n#include <memory>\n#include <unordered_map>\n\ntypedef hlt {\n struct Player {\n PlayerId id;\n std::shared_ptr<Shipyard> shipyard;\n Halite halite;\n std::unordered_m...
207
14
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.3, "nodes": 134, "errors": 0, "source_hash": "85d181c1cf001084385850716a8db556e2f7587cb1b3eef589e277a0a1901091", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,885
c
/* Generated by wayland-scanner 1.12.0 */ #ifndef CRYSTALS_CLIENT_PROTOCOL_H #define CRYSTALS_CLIENT_PROTOCOL_H #include <stdint.h> #include <stddef.h> #include "wayland-client.h" #ifdef __cplusplus extern "C" { #endif /** * @page page_crystals The crystals protocol * @section page_ifaces_crystals Interfaces * ...
24.07
216
(translation_unit) "/* Generated by wayland-scanner 1.12.0 */\n\n#ifndef CRYSTALS_CLIENT_PROTOCOL_H\n#define CRYSTALS_CLIENT_PROTOCOL_H\n\n#include <stdint.h>\n#include <stddef.h>\n#include "wayland-client.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n * @page page_crystals The crystals protocol\n * @section ...
1,058
0
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 24.07, "nodes": 735, "errors": 0, "source_hash": "a21b6acaa0082349465489d2d1e40f74aea7c36d40b2af593d61c5c782722a21", "categorized_nodes": 460}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,886
c
#include "heap.h" #include <assert.h> #include <stdarg.h> void heap_init(heap *self, heap_pair *memory, size_t count) { assert(self && memory); self->memory = memory; self->heap_size = count; self->free_list = NULL; for (size_t i = 0; i < count; ++i) { memory[i].second = (intptr_t)self->fre...
29.95
65
(translation_unit) "#include "heap.h"\n#include <assert.h>\n#include <stdarg.h>\n\nvoid heap_init(heap *self, heap_pair *memory, size_t count) {\n assert(self && memory);\n self->memory = memory;\n self->heap_size = count;\n self->free_list = NULL;\n for (size_t i = 0; i < count; ++i) {\n memory[i...
795
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 29.95, "nodes": 509, "errors": 0, "source_hash": "5b2deb554c171e6ce2f7d2d26a5ef75a95fa799c49516f31139f4607b43ce4eb", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,887
c
/** * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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/LICE...
35.86
37
(translation_unit) "/**\n * Copyright (c) 2017, Arm Limited and affiliates.\n * SPDX-License-Identifier: Apache-2.0\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://...
39
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.86, "nodes": 31, "errors": 0, "source_hash": "d2d3151a96b4db104f0642e4de12aacca794c1b4f0eecb0ab6e85554bce20196", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,888
c
/* Napisać rekurencyjną implementację funkcji obliczającej nk (n do potęgi k). */ /* potęga: n^k = n * n * ... * n -- k razy */ /* n^k = n * n^{k-1} */ #include <stdio.h> long long int potega(int n, int k) { if (k == 1) { return 1; } else { return n * potega(n, k-1); } } int main(void) { int x, y; long...
21.46
24
(translation_unit) "/* Napisać rekurencyjną implementację funkcji\nobliczającej nk (n do potęgi k). */\n\n/* potęga: n^k = n * n * ... * n -- k razy */\n/* n^k = n * n^{k-1} */\n\n#include <stdio.h>\n\nlong long int potega(int n, int k) {\n \n if (k == 1) {\n return 1;\n } else {\n return n * potega(n, k-1);\n }\n}\n...
181
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.46, "nodes": 85, "errors": 0, "source_hash": "b70dff65bc389f869ad9bb1db90352f9a5475393cd867e8fe4e64beb136865f0", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de <st...
12,889
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020, STMicroelectronics */ #ifdef CONFIG_TYPEC_STUSB160X int stusb160x_cable_connected(void); #else int stusb160x_cable_connected(void) { return -ENODEV; } #endif
23.89
9
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright (C) 2020, STMicroelectronics\n */\n\n#ifdef CONFIG_TYPEC_STUSB160X\nint stusb160x_cable_connected(void);\n#else\nint stusb160x_cable_connected(void) { return -ENODEV; }\n#endif\n" (comment) "/* SPDX-License-Identifier: GPL-2.0 */" (comment...
37
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 23.89, "nodes": 24, "errors": 0, "source_hash": "2e6f624547276f17e61ffdab06abbd3fe05078871c413b9be3546c8583301271", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef CO...
12,890
c
//===- InstCombine.h - InstCombine pass -------------------------*- C++ -*-===// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...
37.24
37
(translation_unit) "//===- InstCombine.h - InstCombine pass -------------------------*- C++ -*-===//\n//\n// The LLVM37 Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===--------------------------...
191
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.24, "nodes": 97, "errors": 0, "source_hash": "f27a997a2af29f11b41e000f9e13c407ebfca79a625bb2a2d38e0a4b1acc2a8b", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,891
c
/* * SPDX-License-Identifier: Apache-2.0 */ // Copyright (c) ONNX Project Contributors. // Licensed under the MIT license. #pragma once #include <mutex> #include <string> #include <unordered_map> #include <vector> #include "attr_proto_util.h" #include "onnx/common/constants.h" #include "onnx/common/status.h" #inc...
34.28
83
(translation_unit) "/*\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Copyright (c) ONNX Project Contributors.\n// Licensed under the MIT license.\n\n#pragma once\n\n#include <mutex>\n#include <string>\n#include <unordered_map>\n#include <vector>\n\n#include "attr_proto_util.h"\n#include "onnx/common/constants.h"\n...
687
48
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 34.28, "nodes": 372, "errors": 0, "source_hash": "34060dbf8698aa1460717986aa964a49647fccf28f4b00ecd0db5e71f330d312", "categorized_nodes": 276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,892
c
#include <msgpuck.h> int mp_singlecheck(const char *data, const char *end) { if (mp_unlikely(data >= end)) return 1; uint8_t c = mp_load_u8(&data); int l = mp_parser_hint[c]; if (mp_likely(l >= 0)) { if (mp_unlikely(data + l > end)) return 1; return 0; } else if (mp_likely(l > MP_HINT)) { return 0; } ...
23.5
152
(translation_unit) "#include <msgpuck.h>\n\nint\nmp_singlecheck(const char *data, const char *end) {\n if (mp_unlikely(data >= end))\n return 1;\n uint8_t c = mp_load_u8(&data);\n int l = mp_parser_hint[c];\n if (mp_likely(l >= 0)) {\n if (mp_unlikely(data + l > end))\n return 1;\n return 0;\n } else if (mp_likely...
1,282
1
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 23.5, "nodes": 798, "errors": 0, "source_hash": "40e7eaa18f46d5a7271686d4567a6d41fdc6941b764d1e03176eb1fa13591a3f", "categorized_nodes": 528}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,893
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "UObject/Interface.h" #include "Openable.generated.h" // This class does not need to be modified. UINTERFACE(MinimalAPI) class UOpenable : public UInterface { GENERATED_BODY() }; /** * *...
24.38
24
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "UObject/Interface.h"\n#include "Openable.generated.h"\n\n// This class does not need to be modified.\nUINTERFACE(MinimalAPI)\nclass UOpenable : public UInterface\n{\n...
97
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.38, "nodes": 46, "errors": 0, "source_hash": "c1c79d4546fa799bc67a60ab52ace17278efbe6cfee1887a1dbc8b36728cf0f7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,894
c
#include <jni.h> #include <string.h> JNIEXPORT jstring JNICALL Java_de_jensklingenberg_User_getSecretString(JNIEnv *env, jobject instance) { return (*env)-> NewStringUTF(env, "topSecret"); } JNIEXPORT jstring JNICALL Java_de_jensklingenberg_User_getSecondSecret(JNIEnv *env, jobject instance) { return (*env)-> N...
34.21
19
(translation_unit) "#include <jni.h>\n#include <string.h>\n \nJNIEXPORT jstring JNICALL\nJava_de_jensklingenberg_User_getSecretString(JNIEnv *env, jobject instance) {\n\nreturn (*env)-> NewStringUTF(env, "topSecret");\n}\n\nJNIEXPORT jstring JNICALL\nJava_de_jensklingenberg_User_getSecondSecret(JNIEnv *env, jobject i...
187
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.21, "nodes": 114, "errors": 0, "source_hash": "cf6398557ca0108ceeed245cfc04da06a3b87678a3cf24fa8c15da9c7451685f", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,895
c
// // EShopWebDetailsController.h // EShopComps // // Created by 王胜利 on 2018/1/19. // Copyright © 2018年 谢虎. All rights reserved. // #import <UIKit/UIKit.h> @interface EShopWebDetailsController : UIViewController /// 要打开的网页地址 @property (nonatomic, strong) NSString *urlString; @end
22.75
12
(translation_unit) "//\n// EShopWebDetailsController.h\n// EShopComps\n//\n// Created by 王胜利 on 2018/1/19.\n// Copyright © 2018年 谢虎. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface EShopWebDetailsController : UIViewController\n\n/// 要打开的网页地址\n@property (nonatomic, strong) NSString *urlString;\n\n@...
37
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.75, "nodes": 23, "errors": 0, "source_hash": "7c6a04d3ab211b776b4036d537089c8e5cd26692db5fbd8ba873780e9afb9bff", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit.h...
12,896
c
#ifndef PROJECT_HEADER_component250_2_H #define PROJECT_HEADER_component250_2_H int component250_2(); #endif // PROJECT_HEADER_component250_2_H
28
5
(translation_unit) "#ifndef PROJECT_HEADER_component250_2_H\n#define PROJECT_HEADER_component250_2_H\n\n\n\nint component250_2();\n\n#endif // PROJECT_HEADER_component250_2_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component250_2_H\n#define PROJECT_HEADER_component250_2_H\n\n\n\nint component250_2();\n\n#endif" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.0, "nodes": 12, "errors": 0, "source_hash": "a4e694bd2bd5242cd5f5b18b429cbaba89baac82558d2169559a8f0f709783ea", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
12,897
c
// Copyright (c) Google LLC 2020 // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. #ifndef BRUNSLI_DEC_STATE_INTERNAL_H_ #define BRUNSLI_DEC_STATE_INTERNAL_H_ #include <array> #include <string> #include <vector> #i...
27.41
175
(translation_unit) "// Copyright (c) Google LLC 2020\n//\n// Use of this source code is governed by an MIT-style\n// license that can be found in the LICENSE file or at\n// https://opensource.org/licenses/MIT.\n\n#ifndef BRUNSLI_DEC_STATE_INTERNAL_H_\n#define BRUNSLI_DEC_STATE_INTERNAL_H_\n\n#include <array>\n#include ...
708
49
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 27.41, "nodes": 468, "errors": 0, "source_hash": "5a521632ebb0e2478931492cefbd4b2fc7c047022a687c36bc408755554b17cd", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BRUNS...
12,898
c
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> #include <nfc/nfc.h> #include <nfc/nfc-types.h> #define MAX_DEVICE_COUNT 16 static nfc_device *pnd = NULL; static nfc_context *context; static void stop_polling(int sig); int cardTransmit(nfc_device *pnd, uint8_t *capdu, size_t capdulen,...
29.67
151
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <signal.h>\n#include <string.h>\n\n#include <nfc/nfc.h>\n#include <nfc/nfc-types.h>\n\n#define MAX_DEVICE_COUNT 16\n\nstatic nfc_device *pnd = NULL;\nstatic nfc_context *context;\n\nstatic void stop_polling(int sig);\nint cardTransmit(nfc_device *pnd...
1,362
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 29.67, "nodes": 769, "errors": 0, "source_hash": "143593f8a3a81e099537ae66692c03891f8edfed9a5c507741328222e3554330", "categorized_nodes": 495}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,899