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
// 161. One Edit Distance // https://leetcode.com/problems/one-edit-distance/ // Runtime: 4 ms, faster than 56.72% of C++ online submissions for One Edit Distance. // Memory Usage: 6.9 MB, less than 61.21% of C++ online submissions for One Edit Distance. class Solution { public: bool isOneEditDistance(string ...
29.67
51
(translation_unit) "// 161. One Edit Distance\n// https://leetcode.com/problems/one-edit-distance/\n\n// Runtime: 4 ms, faster than 56.72% of C++ online submissions for One Edit Distance.\n// Memory Usage: 6.9 MB, less than 61.21% of C++ online submissions for One Edit Distance.\n \nclass Solution {\npublic:\n bo...
400
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.67, "nodes": 244, "errors": 0, "source_hash": "4c5e6b9407924087cdaa50c0382117a7e3d95fbc9bc7cf4b30d570c4ab4bd71c", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
81,100
c
/* * AntiDupl.NET Program (http://ermig1979.github.io/AntiDupl). * * Copyright (c) 2002-2018 <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including ...
30.92
95
(translation_unit) " \n* AntiDupl.NET Program (http://ermig1979.github.io/AntiDupl). \n* \n* Copyright (c) 2002-2018 <NAME>. \n* \n* Permission is hereby granted, free of charge, to any person obtaining a copy \n* of this software and associated documentation files (the "Software"), to deal \n* in the Software without...
354
11
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 30.92, "nodes": 242, "errors": 0, "source_hash": "f2fd999b4685c8d891ee9925eb3a4e2a2ca91b54c116097445e97fa61b0a41b9", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
81,101
c
#pragma once #include "NoteProvider.h" class RtMidiIn; class NoteProviderMidi : public NoteProvider { public: NoteProviderMidi(); virtual ~NoteProviderMidi(); virtual void update(); bool IsAvailable(); private: RtMidiIn* mMidiIn; };
17.38
13
(translation_unit) "#pragma once\n\n#include "NoteProvider.h"\n\nclass RtMidiIn;\n\nclass NoteProviderMidi : public NoteProvider\n{\npublic:\n NoteProviderMidi();\n virtual ~NoteProviderMidi(); \n\n virtual void update();\n\n bool IsAvailable();\n\nprivate:\n RtMidiIn* mMidiIn;\n};" (preproc_call) "#pragma once\n" ...
73
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 17.38, "nodes": 41, "errors": 0, "source_hash": "f080e7264ac4f3c15140bdcfea080c2aca57c7d9cd4e33b6e6dd158c3cc7249e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,102
c
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. Licensed under the Apache 2.0 License. */ #include <inttypes.h> #include "kremlib.h" #include "kremlin/internal/compat.h" #include "kremlin/internal/target.h" #ifndef __FStar_Char_H #define __FStar_Char_H typedef uint32_t FStar_Char_char_c...
34.86
21
(translation_unit) "/*\n Copyright (c) INRIA and Microsoft Corporation. All rights reserved.\n Licensed under the Apache 2.0 License.\n*/\n\n#include <inttypes.h>\n#include "kremlib.h"\n#include "kremlin/internal/compat.h"\n#include "kremlin/internal/target.h"\n\n#ifndef __FStar_Char_H\n#define __FStar_Char_H\n\n\n\n...
116
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.86, "nodes": 86, "errors": 0, "source_hash": "7a281556241583652867f446e4e38806934daaf716f73336f7c96fd9fae4ec89", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
81,103
c
// // SFUtilHelper.h // swift_framework // // Created by 靳小飞 on 2018/11/29. // Copyright © 2018 靳小飞. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface SFUtilHelper : NSObject + (void)test; @end NS_ASSUME_NONNULL_END
19.23
13
(translation_unit) "//\n// SFUtilHelper.h\n// swift_framework\n//\n// Created by 靳小飞 on 2018/11/29.\n// Copyright © 2018 靳小飞. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SFUtilHelper : NSObject\n+ (void)test;\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "/...
37
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.23, "nodes": 22, "errors": 0, "source_hash": "59b6c0692699c86dad558798b18e2027397ba67eedf1961bed14b238e523eb74", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "dation/Fo...
81,104
c
#ifndef CRYPTONIGHT_H #define CRYPTONIGHT_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> void cryptonight_hash(const char* input, char* output, uint32_t len, int variant); void cryptonight_fast_hash(const char* input, char* output, uint32_t len); #ifdef __cplusplus } #endif #endif
17.65
17
(translation_unit) "#ifndef CRYPTONIGHT_H \n#define CRYPTONIGHT_H \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n#include <stdint.h> \n \nvoid cryptonight_hash(const char* input, char* output, uint32_t len, int variant); \nvoid cryptonight_fast_hash(const char* input, char* output, uint32_t len); \n \n#ifdef __cp...
84
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.65, "nodes": 62, "errors": 0, "source_hash": "bf375074bea904296eb8557a1a7ea9d4902cf70c1629aa9af28eaee0de7dfaac", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,105
c
// // Dec-2020, <NAME> // MIT license // #pragma once #include "rect.h" #include "glm/vec2.hpp" namespace sp { /////////////////// // Normalized coordinates are in range [0.0, 1.0]. using NormCoord = float; using NormPos = glm::vec2; using NormVec = glm::vec2; using NormDim = glm::vec2; using NormRect = Rect<NormPo...
17.83
18
(translation_unit) "//\n// Dec-2020, <NAME>\n// MIT license\n//\n#pragma once\n#include "rect.h"\n#include "glm/vec2.hpp"\n\n\nnamespace sp\n{\n///////////////////\n\n// Normalized coordinates are in range [0.0, 1.0].\n\nusing NormCoord = float;\nusing NormPos = glm::vec2;\nusing NormVec = glm::vec2;\nusing NormDim = g...
81
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 17.83, "nodes": 53, "errors": 0, "source_hash": "09a008727f5f8ee0f6e8105e0dbf417263e8fb85335f55bb67c9c00a08007c9f", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,106
c
extern void test_lib_fn(); int main(int argc, char **argv) { test_lib_fn(); return 0; }
17.4
5
(translation_unit) "extern void test_lib_fn();\nint main(int argc, char **argv) {\n test_lib_fn();\n return 0;\n}\n" (declaration) "extern void test_lib_fn();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "test_lib_fn()" (identifier) "tes...
43
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.4, "nodes": 27, "errors": 0, "source_hash": "9654c45f6e8af966658c86148ca0889157c6b4ae72645f8308b439bb39799dbd", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern void ...
81,107
c
#ifndef BABYLON_SHADERS_LINE_VERTEX_FX_H #define BABYLON_SHADERS_LINE_VERTEX_FX_H namespace BABYLON { extern const char* lineVertexShader; const char* lineVertexShader = R"ShaderCode( // Attributes attribute vec3 position; attribute vec4 normal; // Uniforms uniform mat4 worldViewProjection; uniform float width...
33.8
30
(translation_unit) "fndef BABYLON_SHADERS_LINE_VERTEX_FX_H\n#define BABYLON_SHADERS_LINE_VERTEX_FX_H\n\nnamespace BABYLON {\n\nextern const char* lineVertexShader;\n\nconst char* lineVertexShader\n = R"ShaderCode(\n\n// Attributes\nattribute vec3 position;\nattribute vec4 normal;\n\n// Uniforms\nuniform mat4 worldView...
261
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 33.8, "nodes": 190, "errors": 0, "source_hash": "371ad3993d3eec4f45041b232a64170210380dedeb068ab8d0813a777afd2382", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef B...
81,108
c
/* * This file is part of the kyuba.org Khonsu project. * See the appropriate repository at http://git.kyuba.org/ for exact file * modification records. */ /* * Copyright (c) 2009, Kyuba Project Members * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
31.37
156
(translation_unit) "/*\n * This file is part of the kyuba.org Khonsu project.\n * See the appropriate repository at http://git.kyuba.org/ for exact file\n * modification records.\n*/\n\n/*\n * Copyright (c) 2009, Kyuba Project Members\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\...
1,035
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 31.37, "nodes": 608, "errors": 0, "source_hash": "bc6c65b04ef897e481ac319ea7a69983efe85d297e63fa332ebdf2abe65cbf59", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,109
c
// // LAViewController.h // WXWCategory // // Created by hwxue on 07/03/2019. // Copyright (c) 2019 hwxue. All rights reserved. // @import UIKit; @interface LAViewController : UIViewController @end
19.2
10
(translation_unit) "//\n// LAViewController.h\n// WXWCategory\n//\n// Created by hwxue on 07/03/2019.\n// Copyright (c) 2019 hwxue. All rights reserved.\n//\n\n@import UIKit;\n\n@interface LAViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LAViewController.h" (comment) "// WXWCatego...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 10, "errors": 0, "source_hash": "ebd5d2c6e4429fe4fd45e1cf900966eca4b02860e855a0b0e677cabbb73a7f54", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
81,110
c
#include "GC/semihonest.h" #include "GC/sh_eva.h" #include "GC/sh_gen.h" #include "GC/sh_party.h"
23.5
4
(translation_unit) "#include "GC/semihonest.h"\n#include "GC/sh_eva.h"\n#include "GC/sh_gen.h"\n#include "GC/sh_party.h"\n" (preproc_include) "#include "GC/semihonest.h"\n" (#include) "#include" (string_literal) ""GC/semihonest.h"" (") """ (string_content) "GC/semihonest.h" (") """ (prepro...
25
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 23.5, "nodes": 12, "errors": 0, "source_hash": "4ec3ba3070cb6f88c426ff091c45d629db255a20b6523fbf711d8520bd23706a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
81,111
c
#ifndef _COFFEE_BASIC_GEOMETRIC_FRUSTUM3_PLANE_H_ #define _COFFEE_BASIC_GEOMETRIC_FRUSTUM3_PLANE_H_ #include "coffee_includes.h" namespace coffee { namespace basic { //--------------------------------------------------------------------------------------------// /// Frustum3 planes enumeration //---------...
32.45
38
(translation_unit) "#ifndef _COFFEE_BASIC_GEOMETRIC_FRUSTUM3_PLANE_H_\n#define _COFFEE_BASIC_GEOMETRIC_FRUSTUM3_PLANE_H_\n\n#include "coffee_includes.h"\n\nnamespace coffee\n{\nnamespace basic\n{\n //--------------------------------------------------------------------------------------------//\n /// Frustum3 plan...
92
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 32.45, "nodes": 56, "errors": 0, "source_hash": "14a399f7d4a4b133952001ce6ae2b6d1d93f05d1fb4ed1f449c0e261f3a9be83", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,112
c
/* * Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #ifndef _CrlID_H_ #define _CrlID_H_ #include "asn_application.h" /* Including external dependencies */ #include "IA5String.h" #include "INTEGER.h" #include "Gene...
25.94
31
(translation_unit) "/*\n * Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved.\n * Redistribution and modifications are permitted subject to BSD license.\n */\n\n#ifndef _CrlID_H_\n#define _CrlID_H_\n\n\n#include "asn_application.h"\n\n/* Including external dependencies */\n#include "IA5String.h"\n#i...
117
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.94, "nodes": 73, "errors": 0, "source_hash": "8dfbe170ae785ee9813a7880896f9407251ddcf9419844814b5c0c9a570bacaa", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,113
c
# include <stdio.h> # include <gc.h> int main(int argc, char ** argv) { int i; for (i = 1; i < argc; i++) { printf("gc-%d.%d.%d/%s ", GC_VERSION_MAJOR, GC_VERSION_MINOR, GC_VERSION_MICRO, argv[i]); } return(0); }
21.55
11
(translation_unit) "# include <stdio.h>\n# include <gc.h>\n\nint main(int argc, char ** argv)\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n printf("gc-%d.%d.%d/%s ",\n GC_VERSION_MAJOR, GC_VERSION_MINOR, GC_VERSION_MICRO, argv[i]);\n }\n return(0);\n}\n" (preproc_include) "# include <std...
82
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.55, "nodes": 49, "errors": 0, "source_hash": "cc374278f2846a400dc91536a2089631a5f980c576732b20020d390088c20309", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# incl...
81,114
c
/* * FrontierBFS.h * hog2 * * Created by <NAME> on 1/29/11. * Copyright 2011. All rights reserved. * */ #ifndef FRONTIERBFS_H #define FRONTIERBFS_H #include <iostream> #include "SearchEnvironment.h" #include <ext/hash_map> #include "FPUtil.h" typedef __gnu_cxx::hash_map<uint64_t, bool, Hash64> FrontierBFS...
27.39
195
(translation_unit) "/*\n * FrontierBFS.h\n * hog2\n *\n * Created by <NAME> on 1/29/11.\n * Copyright 2011. All rights reserved.\n *\n */\n\n#ifndef FRONTIERBFS_H\n#define FRONTIERBFS_H\n\n#include <iostream>\n#include "SearchEnvironment.h"\n#include <ext/hash_map>\n#include "FPUtil.h"\n\ntypedef __gnu_cxx::hash_ma...
1,869
70
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 27.39, "nodes": 1142, "errors": 0, "source_hash": "63169987a2576efa4442c99a9748e84f28fdc38434d24c00ce6a17ed50d09176", "categorized_nodes": 810}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
81,115
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set sw=4 ts=8 et tw=80 : */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */...
36.91
55
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */\n/* vim: set sw=4 ts=8 et tw=80 : */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://...
308
14
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.91, "nodes": 196, "errors": 0, "source_hash": "543a6352ff6be16dea1a2a1ed7c6facd037e4f21bd582e89337a50bb7191d834", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,116
c
#ifndef GEAS__BITOPS__H #define GEAS__BITOPS__H // Helper header for doing stuff on BitMaps. #include <cstring> #include <stdint.h> namespace geas { namespace B32 { inline unsigned block_bits(void) { return 5; } inline unsigned block_size(void) { return 1 << block_bits(); } inline uint64_t block_mask(voi...
30.27
105
(translation_unit) "#ifndef GEAS__BITOPS__H\n#define GEAS__BITOPS__H\n// Helper header for doing stuff on BitMaps.\n#include <cstring>\n#include <stdint.h>\n\nnamespace geas {\n namespace B32 {\n inline unsigned block_bits(void) { return 5; }\n inline unsigned block_size(void) { return 1 << block_bits(); }\n ...
1,264
42
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 30.27, "nodes": 822, "errors": 0, "source_hash": "8744bdf9b6530665faceb0b378987a3dc591ec0712184035f990d9b8ac92cace", "categorized_nodes": 530}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
81,117
c
#include <stdio.h> #include <stdlib.h> double fibonacci(long); main(){ long resultado, num; printf("Entre com um inteiro: "); scanf("%ld", &num); int i; for (i = 1;i<=num;i++) printf("Fibonacci(%3d) - %G\n", i, fibonacci(i)); getchar(); } double fibonacci(long n) //fibonacci nao-re...
19.04
25
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\ndouble fibonacci(long);\nmain(){\n long resultado, num;\n printf("Entre com um inteiro: ");\n scanf("%ld", &num);\n int i;\n for (i = 1;i<=num;i++)\n printf("Fibonacci(%3d) - %G\n", i, fibonacci(i));\n getchar();\n}\ndouble fibonac...
192
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.04, "nodes": 116, "errors": 0, "source_hash": "ef0c1c59ac94aa664abcc4dbef29e4d7dea23ae99fcef1f91197ddb6a8e6eef9", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
81,118
c
/** * @file debounce.h * @brief Modulo para lectura de botones con antirebote en EDU-CIAA * @author <NAME> * @date Apr 1, 2020 */ #ifndef DEBOUNCE_H_ #define DEBOUNCE_H_ #include "sapi.h" #include <stdint.h> #include <stdbool.h> #define DEBOUNCE_TIME 40 /** * @enum debounceState_t * @brief enumeracion para l...
29.02
48
(translation_unit) "/**\n * @file debounce.h\n * @brief Modulo para lectura de botones con antirebote en EDU-CIAA\n * @author <NAME>\n * @date Apr 1, 2020\n */\n\n#ifndef DEBOUNCE_H_\n#define DEBOUNCE_H_\n\n#include "sapi.h"\n#include <stdint.h>\n#include <stdbool.h>\n\n#define DEBOUNCE_TIME 40\n\n/**\n * @enum debounc...
119
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.02, "nodes": 80, "errors": 0, "source_hash": "b5616a9229db052d72d5d70ad4e38fd56cb4dd0e3480395283094c37f212fddc", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,119
c
// license:BSD-3-Clause // copyright-holders:<NAME>,<NAME>, <NAME> #ifndef MAME_VIDEO_K052109_H #define MAME_VIDEO_K052109_H #pragma once #include "screen.h" typedef device_delegate<void (int layer, int bank, int *code, int *color, int *flags, int *priority)> k052109_cb_delegate; #define K052109_CB_MEMBER(_name) v...
39.8
96
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>,<NAME>, <NAME>\n#ifndef MAME_VIDEO_K052109_H\n#define MAME_VIDEO_K052109_H\n\n#pragma once\n\n#include "screen.h"\n\ntypedef device_delegate<void (int layer, int bank, int *code, int *color, int *flags, int *priority)> k052109_cb_delegate;\n#defin...
726
18
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 39.8, "nodes": 466, "errors": 0, "source_hash": "9365e6d00d2699c9d35cebe85d12682a833d43a39ffc1d3434ad83c3258fbd0a", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,120
c
/* * Copyright (c) 2020-2021, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef __TFM_HAL_INTERRUPT_H__ #define __TFM_HAL_INTERRUPT_H__ #include <stdint.h> #include "tfm_hal_defs.h" /** * \brief Enables an interrupt from the Interrupt Controller of the platform * * \pa...
35.63
41
(translation_unit) "/*\n * Copyright (c) 2020-2021, Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n */\n\n#ifndef __TFM_HAL_INTERRUPT_H__\n#define __TFM_HAL_INTERRUPT_H__\n\n#include <stdint.h>\n#include "tfm_hal_defs.h"\n\n/**\n * \brief Enables an interrupt from the Interrupt Co...
61
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.63, "nodes": 43, "errors": 0, "source_hash": "b9d80443ee740579a1d4d9b7784212f531b4216037195250a6a58c378e70c8e8", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,121
c
// -*- C++ -*- //============================================================================= /** * @file LB_LoadAlert.h * * $Id: LB_LoadAlert.h 77001 2007-02-12 07:54:49Z johnnyw $ * * @author <NAME> <<EMAIL>> */ //============================================================================= #ifndef TAO_LB...
29.28
61
(translation_unit) "// -*- C++ -*-\n\n//=============================================================================\n/**\n * @file LB_LoadAlert.h\n *\n * $Id: LB_LoadAlert.h 77001 2007-02-12 07:54:49Z johnnyw $\n *\n * @author <NAME> <<EMAIL>>\n */\n//================================================================...
188
7
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 29.28, "nodes": 103, "errors": 0, "source_hash": "7a489e7e728b877d609f800c65b7162607789edf363d27035c947ad1b3d8ae2c", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,122
c
#include <stdio.h> #include <stdlib.h> #include "fractal.h" double g(double); void menu(Figure *); int main() { Color* color = (Color*)malloc(sizeof(Color)); double width, height, thickness, resolution; int r, g, b; printf("\n***Welcome to the Fractal Factory***\n"); printf("\nEnter width of your...
30.88
92
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "fractal.h"\n\ndouble g(double);\nvoid menu(Figure *);\n\nint main() \n{\n Color* color = (Color*)malloc(sizeof(Color));\n double width, height, thickness, resolution;\n int r, g, b;\n printf("\n***Welcome to the Fractal Factory***\n");\n...
841
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 30.88, "nodes": 444, "errors": 0, "source_hash": "4de906b41da6e7f56a56742c1fc6c9d1530294c52bf78ee0ddda64f483d83e4a", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,123
c
/******************************************************************************* * - FILE: work.c * - DESC: Pipelines Workflow Subroutines. * WORK interfaces between pipeline WORKER object and various *functions. *******************************************************************************/...
29.68
34
(translation_unit) "/*******************************************************************************\n * - FILE: work.c\n * - DESC: Pipelines Workflow Subroutines.\n * WORK interfaces between pipeline WORKER object and various\n *functions.\n *******************************************************...
125
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.68, "nodes": 61, "errors": 0, "source_hash": "6143bbeb0334bdf64932a39409050b7d0d7de828d59038c4b1894adf0b622481", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,124
c
/* Public domain */ /* * Test the various bindings provided by the AG_Scrollbar(3) widget using * arbitrary values and ranges. */ #include "agartest.h" int vInt = 500; unsigned vUint = 0; Sint8 v8 = 50; Uint32 v32 = 32; #ifdef AG_HAVE_64BIT Uint64 v64 = 64; #endif float vFlt = 1.0; double vDbl = 0.0; #ifdef AG_HAV...
31.15
88
(translation_unit) "/* Public domain */\n/*\n * Test the various bindings provided by the AG_Scrollbar(3) widget using\n * arbitrary values and ranges.\n */\n\n#include "agartest.h"\n\nint vInt = 500;\nunsigned vUint = 0;\nSint8 v8 = 50;\nUint32 v32 = 32;\n#ifdef AG_HAVE_64BIT\nUint64 v64 = 64;\n#endif\nfloat vFlt = 1....
919
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 31.15, "nodes": 452, "errors": 0, "source_hash": "10b2f19f25a7bfdee9302a16628a424b4c7957a7fe11870dd4988f6065cd47fc", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,125
c
/* * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and ...
29.47
148
(translation_unit) "/*\n * Copyright (c) 2015, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n * ...
818
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 29.47, "nodes": 485, "errors": 0, "source_hash": "6fc27ea3c7b287f21abd75e0691f6bbcd54dee9bfeb436f1b5869323016505d9", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,126
c
// // CFile.h // CAndSwift // // Created by 盘国权 on 2018/4/29. // Copyright © 2018年 pgq. All rights reserved. // #import <Foundation/Foundation.h> #ifndef CFile #define CFile #pragma mark - 1 变量引用 const int global_ten; // NS_STRING_ENUM 通常表示值固定 typedef NSString * PQButtonColor NS_STRING_ENUM; PQButtonColor cons...
19.91
77
(translation_unit) "//\n// CFile.h\n// CAndSwift\n//\n// Created by 盘国权 on 2018/4/29.\n// Copyright © 2018年 pgq. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#ifndef CFile\n#define CFile\n\n#pragma mark - 1 变量引用\nconst int global_ten;\n\n// NS_STRING_ENUM 通常表示值固定\ntypedef NSString * PQButtonColo...
381
16
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 19.91, "nodes": 242, "errors": 0, "source_hash": "486fd918650b39cea430b03e16186b687ec51e41d99c83473c178e136f181a97", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundat...
81,127
c
// Copyright 2019 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 ASH_SHELF_WINDOW_SCALE_ANIMATION_H_ #define ASH_SHELF_WINDOW_SCALE_ANIMATION_H_ #include <memory> #include <vector> #include "ash/ash_export.h" ...
38.37
49
(translation_unit) "// Copyright 2019 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 ASH_SHELF_WINDOW_SCALE_ANIMATION_H_\n#define ASH_SHELF_WINDOW_SCALE_ANIMATION_H_\n\n#include <memory>\n#include <vector>\n...
273
14
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 38.37, "nodes": 153, "errors": 0, "source_hash": "f0d7fa074b5f6bd5df5f8b3c3088d97cad6e2d37d7434bc9e5537cee7ad2e5b6", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,128
c
// DO NOT USE THIS FILE now, inherit /std/drink and set_canSave(1) to make saveable // *Styx* 12/24/03 ///std/drink.c //from the Nightmare mudlib //inheritable drink code //created by <NAME> October 1992 #include <std.h> inherit "/std/drink.c"; /* getting rid of the redundancy in case something does use it *Styx* ...
26.42
122
(translation_unit) "// DO NOT USE THIS FILE now, inherit /std/drink and set_canSave(1) to make saveable\n// *Styx* 12/24/03\n\n///std/drink.c\n//from the Nightmare mudlib\n//inheritable drink code\n//created by <NAME> October 1992\n\n#include <std.h>\n\ninherit "/std/drink.c";\n\n/* getting rid of the redundancy in ca...
19
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 26.42, "nodes": 6, "errors": 0, "source_hash": "4f88c31170404035b19af4dbd02c101808da5b558cc36d64f4c5e4540efb9d5e", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
81,129
c
// // Created by Андрей on 17.11.2017. // Copyright © 2017 Improve Digital. All rights reserved. // #ifndef IDFiasLevel_h #define IDFiasLevel_h typedef NS_ENUM(NSInteger, IDFIASLevel) { IDFIASLevelCountry = 0, IDFIASLevelRegion = 1, IDFIASLevelArea = 3, IDFIASLevelCity = 4, IDFIASLevelCityDistri...
27.52
21
(translation_unit) "//\n// Created by Андрей on 17.11.2017.\n// Copyright © 2017 Improve Digital. All rights reserved.\n//\n\n#ifndef IDFiasLevel_h\n#define IDFiasLevel_h\n\ntypedef NS_ENUM(NSInteger, IDFIASLevel) {\n IDFIASLevelCountry = 0,\n IDFIASLevelRegion = 1,\n IDFIASLevelArea = 3,\n IDFIASLevelCit...
102
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.52, "nodes": 75, "errors": 0, "source_hash": "a54de956494fa02dcf5778cd0f67c0a676efbd650828bb396933bbd4001573c4", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": " IDFiasLevel_h\n...
81,130
c
// // Created by <NAME> on 19/03/2020. // #ifndef CSP2SAT_VARIABLESYMBOL_H #define CSP2SAT_VARIABLESYMBOL_H #include "ValueSymbol.h" class VariableSymbol: public ValueSymbol { public: VariableSymbol(const string &name, SMTFormula *f) : ValueSymbol(name, SymbolTable::_varbool) { if(!SymbolTable::entityDe...
23.46
35
(translation_unit) "//\n// Created by <NAME> on 19/03/2020.\n//\n\n#ifndef CSP2SAT_VARIABLESYMBOL_H\n#define CSP2SAT_VARIABLESYMBOL_H\n\n#include "ValueSymbol.h"\n\n\nclass VariableSymbol: public ValueSymbol {\npublic:\n VariableSymbol(const string &name, SMTFormula *f) : ValueSymbol(name, SymbolTable::_varbool) {\n...
210
11
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 23.46, "nodes": 109, "errors": 0, "source_hash": "24ed00701eb0966ed26886c9402c49f7876644aed81fb28a9c7c65aa5ae5e84c", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,131
c
#pragma once #include <stdio.h> #include <stdint.h> #pragma pack(push, 1) struct Bytes32 { uint8_t value[32]; }; #pragma pack(pop) #pragma pack(push, 1) struct Bytes100 { uint8_t value[100]; }; #pragma pack(pop) uint8_t *bytes_from_hex_alloc(const char *hex); struct Bytes32 bytes32_from_hex(const char *hex...
21.33
15
(translation_unit) "#pragma once\n\n#include <stdio.h>\n#include <stdint.h>\n\n#pragma pack(push, 1)\nstruct Bytes32 {\n uint8_t value[32];\n};\n#pragma pack(pop)\n\n#pragma pack(push, 1)\nstruct Bytes100 {\n uint8_t value[100];\n};\n#pragma pack(pop)\n\nuint8_t *bytes_from_hex_alloc(const char *hex);\n\nstruct B...
92
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.33, "nodes": 66, "errors": 0, "source_hash": "8b00984eda5d4fd31a2fee738ac763612ff83ead5c524906fe8b9895dffdce52", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,132
c
#include <stdio.h> #include <stdlib.h> int main() { // Static vector allocation (Stack memory) int vs[5] = {0, 10, 20, 30, 40}; puts("### STATIC VECTOR ###"); printf("&vs = %p vs = %p\n", &vs, vs); for (int i = 0; i < 5; i++) { printf("&vs[%d] = %p, vs[%d] = %d\n", i, &vs[i], i, vs[i...
32.69
35
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n\n // Static vector allocation (Stack memory)\n int vs[5] = {0, 10, 20, 30, 40};\n\n puts("### STATIC VECTOR ###");\n printf("&vs = %p vs = %p\n", &vs, vs);\n\n for (int i = 0; i < 5; i++)\n {\n printf("&vs[%d] = %p, v...
381
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.69, "nodes": 201, "errors": 0, "source_hash": "0bd704493aa96f91b3feed8ad29aa284bff9f95d1aed7ede26c3e7412da11bb5", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,133
c
#pragma once #include "libutils.h" #include "MovingAverage.h" class LIBUTILS_API CState { public: CState(void); virtual ~CState(void); virtual string getString() const = 0; virtual void setString(string value) = 0; }; class LIBUTILS_API CStringState: public CState { string m_Value; public: CSt...
19.55
58
(translation_unit) "#pragma once \n#include "libutils.h"\n#include "MovingAverage.h" \n \nclass LIBUTILS_API CState \n{ \npublic: \n CState(void); \n virtual ~CState(void); \n virtual string getString() const = 0; \n virtual void setString(string value) = 0; \n}; \n \nclass LIBUTILS_API CStringState: \n public CState \...
343
31
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 19.55, "nodes": 213, "errors": 0, "source_hash": "c9e594e2001894ca0abdaf0f183132a09078475f818e43800c959f4c975d90e8", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,134
c
#pragma once #include <optional> namespace eventHorizon { template <class T> class IConcurrentQueue { public: virtual ~IConcurrentQueue() = default; virtual void enqueue(T &&element) = 0; virtual bool dequeue_wait(T &element, const std::chrono::milliseconds &duration) = 0; }; } // na...
29.82
11
(translation_unit) "#pragma once\n#include <optional>\n\nnamespace eventHorizon {\ntemplate <class T> class IConcurrentQueue {\npublic:\n virtual ~IConcurrentQueue() = default;\n virtual void enqueue(T &&element) = 0;\n virtual bool dequeue_wait(T &element,\n const std::chrono::millisecond...
95
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.82, "nodes": 60, "errors": 0, "source_hash": "80020526c11f04805f08154f0ce07b3d1cfb4d40188ecec306bc4093d839b6d5", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,135
c
#pragma once #include "engine/lumix.h" #include "engine/fs/ifile_device.h" namespace Lumix { class IAllocator; namespace FS { class IFile; class LUMIX_ENGINE_API MemoryFileDevice LUMIX_FINAL : public IFileDevice { public: explicit MemoryFileDevice(IAllocator& allocator) : m_allocator(allocator) {} ...
24.95
21
(translation_unit) "#pragma once\n\n#include "engine/lumix.h"\n#include "engine/fs/ifile_device.h"\n\nnamespace Lumix\n{\n class IAllocator;\n\n namespace FS\n {\n class IFile;\n\n class LUMIX_ENGINE_API MemoryFileDevice LUMIX_FINAL : public IFileDevice\n {\n public:\n explicit MemoryFileDevice(IAllocator& alloca...
143
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.95, "nodes": 77, "errors": 0, "source_hash": "456c1a566cf2e85b62ebda75b4993485d1ab2f9180d21776d1e3221f20fbe928", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,136
c
#ifndef __FAX_PRINTSDI_SAMPLE //========================================================================== // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A...
24.97
29
(translation_unit) "#ifndef __FAX_PRINTSDI_SAMPLE \n//========================================================================== \n// \n// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \n// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \n// THE IMPLIED WARRANTIES OF MERCHANTABI...
48
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.97, "nodes": 34, "errors": 0, "source_hash": "70907a04b71d34cb3bfbfbfa088dc148afe59bf361d5711d196f66f8c0749ace", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,137
c
#ifndef __MMC_ASYNC_IO_H__ #define __MMC_ASYNC_IO_H__ #include <stdint.h> //----------------------------------------------------------------- // Prototypes: //----------------------------------------------------------------- void mmc_async_io_init(int irq_num, int max_sectors); int mmc_async_io_read(uint32_t start_b...
40.33
9
(translation_unit) "#ifndef __MMC_ASYNC_IO_H__\n#define __MMC_ASYNC_IO_H__\n\n#include <stdint.h>\n\n//-----------------------------------------------------------------\n// Prototypes:\n//-----------------------------------------------------------------\nvoid mmc_async_io_init(int irq_num, int max_sectors);\nint mmc_a...
50
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 40.33, "nodes": 37, "errors": 0, "source_hash": "4b4c8bd9307874114c2664b60b68f46aff7ee01c7a49672008e57fce8d58c594", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
81,138
c
/* * Copyright (C) 2003, 2004, 2005 <NAME>. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
30.89
108
(translation_unit) "/*\n * Copyright (C) 2003, 2004, 2005 <NAME>. All rights reserved.\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 above copyright\n * n...
547
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 30.89, "nodes": 322, "errors": 0, "source_hash": "cc30a9cde0c296bb21cff32ba8cd3f93ff01c82ab34a76245fe2077cfbde0564", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,139
c
#include "rotate.h" #include "../import/import.h" #include <stdlib.h> #include <SDL/SDL.h> #include <SDL/SDL_image.h> #include <err.h> SDL_Surface *rotate(SDL_Surface *img, char angle) { if(angle != 'r' && angle != 'l') errx(EXIT_FAILURE, "Wrong rotate angle value"); /* Variables */ Uint32 pi...
20.68
62
(translation_unit) "#include "rotate.h"\n#include "../import/import.h"\n\n#include <stdlib.h>\n#include <SDL/SDL.h>\n#include <SDL/SDL_image.h>\n#include <err.h>\n\n\n\nSDL_Surface *rotate(SDL_Surface *img, char angle)\n{\n if(angle != 'r' && angle != 'l')\n errx(EXIT_FAILURE, "Wrong rotate angle value");\n\n...
330
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 20.68, "nodes": 212, "errors": 0, "source_hash": "6c68f49f9ff6573a41e30fcafc57392c2aad83efa869e645cb95c28b23fd1d0a", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,140
c
/* PURPOSE: (Trick runtime simulation executive parameter definition.) REFERENCE: (((Bailey, R.W, and Paddock, E.J.) (Trick Simulation Environment) (NASA:JSC #37943) (JSC / Engineering Directorate / Automation and Robotics Division) (June 1994) (--))) ASSUMPTION...
34.26
38
(translation_unit) "/*\n PURPOSE:\n (Trick runtime simulation executive parameter definition.)\n REFERENCE:\n (((Bailey, R.W, and Paddock, E.J.) (Trick Simulation Environment)\n (NASA:JSC #37943)\n (JSC / Engineering Directorate / Automation and Robotics Division)\n (June ...
197
3
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.26, "nodes": 135, "errors": 0, "source_hash": "49f752b20848263903a836d58d224b421a24d654bc06e543e8cea351878cc966", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef COMMAND...
81,141
c
// // NSFont+DokiboxAdditions.h // dokibox // // Created by <NAME> on 13/03/2015. // Copyright (c) 2015 <NAME> and contributors. All rights reserved. // // #import <Cocoa/Cocoa.h> @interface NSFont (DokiboxAdditions) + (NSFont *)italicSystemFontOfSize:(CGFloat)fontSize; @end
22.33
12
(translation_unit) "//\n// NSFont+DokiboxAdditions.h\n// dokibox\n//\n// Created by <NAME> on 13/03/2015.\n// Copyright (c) 2015 <NAME> and contributors. All rights reserved.\n//\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface NSFont (DokiboxAdditions)\n\n+ (NSFont *)italicSystemFontOfSize:(CGFloat)fontSize;\n\n@end\n...
44
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.33, "nodes": 23, "errors": 0, "source_hash": "b213800dd9820c49cb069bb773db2e1dac8a7bc95dbf2f0001e4d939151f19e2", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
81,142
c
#pragma once #include "crypto/ECDH.h" #include "overlay/Peer.h" #include "overlay/PeerSharedKeyId.h" #include "util/lrucache.hpp" #include "xdr/vii-types.h" namespace viichain { class PeerAuth { Application& mApp; Curve25519Secret mECDHSecretKey; Curve25519Public ...
35.91
33
(translation_unit) "#pragma once\n\n#include "crypto/ECDH.h"\n#include "overlay/Peer.h"\n#include "overlay/PeerSharedKeyId.h"\n#include "util/lrucache.hpp"\n#include "xdr/vii-types.h"\n\n\nnamespace viichain\n{\nclass PeerAuth\n{\n \n Application& mApp;\n Curve25519Secret mE...
229
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.91, "nodes": 120, "errors": 0, "source_hash": "2704b92c560e0f58e86cd90dc70eea876cfb255e4ec16ef55279087138d2a303", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,143
c
/* MTI_DPI */ /* * Copyright 2002-2008 Mentor Graphics Corporation. * * Note: * This file is automatically generated. * Please do not edit this file - you will lose your edits. * * Settings when this file was generated: * PLATFORM = 'linux_x86_64' */ #ifndef INCLUDED_MAC_FEDRIVER #define INCLUDED_MAC_FE...
18.43
40
(translation_unit) "/* MTI_DPI */\n\n/*\n * Copyright 2002-2008 Mentor Graphics Corporation.\n *\n * Note:\n * This file is automatically generated.\n * Please do not edit this file - you will lose your edits.\n *\n * Settings when this file was generated:\n * PLATFORM = 'linux_x86_64'\n */\n#ifndef INCLUDED_MAC_...
112
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 18.43, "nodes": 80, "errors": 0, "source_hash": "6f92520d8acffb4296d80cd216e52fc78c3a375047fd65eefa6523dc07074a9a", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,144
c
#ifndef _STAT_H_ #define _STAT_H_ #include <stdio.h> #include <sched.h> #include <vector> #include <list> #include "sched.h" struct cpu_util_t { unsigned long long tdiff; unsigned int cpu; }; static bool cmp_sort(const cpu_util_t& first, const cpu_util_t& second) { return (first.tdiff < second.tdiff); } class...
26.82
98
(translation_unit) "#ifndef _STAT_H_\n#define _STAT_H_\n\n#include <stdio.h>\n#include <sched.h>\n#include <vector>\n#include <list>\n#include "sched.h"\n\nstruct cpu_util_t {\n unsigned long long tdiff;\n unsigned int cpu;\n};\n\nstatic bool cmp_sort(const cpu_util_t& first, const cpu_util_t& second)\n{\n return (f...
934
9
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 26.82, "nodes": 590, "errors": 0, "source_hash": "479e01f2decc587a9c9b3cf055dbfe5baf0423d794a2fc37067bc2e300dcc652", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,145
c
/* * Copyright (C) 2008-2014 Free Software Foundation, Inc. * * Author: <NAME>, <NAME> * * This file is part of GnuTLS. * * GnuTLS is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of t...
27.17
253
(translation_unit) "/*\n * Copyright (C) 2008-2014 Free Software Foundation, Inc.\n *\n * Author: <NAME>, <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foun...
1,996
0
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 27.17, "nodes": 1079, "errors": 0, "source_hash": "87c443af8a1af4cce97c54a40b26b242c07ea552a44919499fed3afc302ab8a1", "categorized_nodes": 795}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
81,146
c
#ifndef __MODULEWINDOW_H__ #define __MODULEWINDOW_H__ #include "Module.h" class ParsonNode; class MISSCLICK_API M_Window : public Module { public: M_Window(bool isActive = true); virtual ~M_Window(); bool Init(ParsonNode& config) override; bool CleanUp() override; bool LoadConfiguration(ParsonNode& root) over...
38.64
53
(translation_unit) "#ifndef __MODULEWINDOW_H__\n#define __MODULEWINDOW_H__\n\n#include "Module.h"\n\nclass ParsonNode;\n\nclass MISSCLICK_API M_Window : public Module\n{\npublic:\n M_Window(bool isActive = true);\n virtual ~M_Window();\n\n bool Init(ParsonNode& config) override;\n bool CleanUp() override;\n\n bool Load...
485
23
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 38.64, "nodes": 285, "errors": 0, "source_hash": "f9a85b3b4e42e9ab79c2a2ce0efbd623a7cb719ad8d2da78de40870816456318", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,147
c
// // Copyright 1997 <NAME>. All rights reserved. // // // GuiClientMerge.h // // CGuiClientMerge is a ClientMerge wrapper // that add a synchronization mechanism // #ifndef __GUICLIENTMERGE__ #define __GUICLIENTMERGE__ class CGuiClientMerge { public: CGuiClientMerge(ClientMerge *pMerge) : m_pMerge(p...
37.19
58
(translation_unit) "//\n// Copyright 1997 <NAME>. All rights reserved.\n//\n//\n\n// GuiClientMerge.h \n//\n// CGuiClientMerge is a ClientMerge wrapper\n// that add a synchronization mechanism\n//\n\n#ifndef __GUICLIENTMERGE__\n#define __GUICLIENTMERGE__\n\nclass CGuiClientMerge\n{\npublic:\n CGuiClientMerge(Clie...
576
8
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.19, "nodes": 316, "errors": 0, "source_hash": "0d03973d2aa8474096763bf7f7d5a6fa5633f622a98ea0fad3d6e2bf895da624", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,148
c
#pragma once #include <boost/filesystem.hpp> class TextureManager { public: static uint32_t LoadTexture(boost::filesystem::path); };
16.88
8
(translation_unit) "#pragma once \n \n#include <boost/filesystem.hpp> \n \nclass TextureManager { \npublic: \n static uint32_t LoadTexture(boost::filesystem::path); \n}; \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include <boost/filesystem.hpp...
37
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.88, "nodes": 19, "errors": 0, "source_hash": "bed6298b42c61d5c41fc66ccc37e32537e842c3ef33517bd28b0ee258da7feb4", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
81,149
c
/* * author: <NAME> */ #ifndef _TOP_DOC_H_ #define _TOP_DOC_H_ #include "../utils/int_list.h" struct _score_doc { int doc; float score; }; struct _score_doc* score_doc_initial(int _doc, float _score); struct _score_docs_node { struct _score_docs_node* next; struct _score_docs_node* prev; struct _score_...
20.02
50
(translation_unit) "/*\n * author: <NAME>\n */\n\n#ifndef _TOP_DOC_H_\n#define _TOP_DOC_H_\n\n#include "../utils/int_list.h"\n\nstruct _score_doc\n{\n int doc;\n float score;\n};\n\nstruct _score_doc*\nscore_doc_initial(int _doc, float _score);\n\nstruct _score_docs_node\n{\n struct _score_docs_node* next;\n struct...
290
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 20.02, "nodes": 224, "errors": 0, "source_hash": "92da25ab90ae369a7e5290f6f442bb951e6e14918a066b046f7f21de3da131c1", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,150
c
// // NSJSONSerialization+RTAddition.h // yanyu // // Created by rickytang on 13-11-21. // Copyright (c) 2013年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSJSONSerialization (RTAddition) +(id)convertToObjectWithJsonString:(NSString *)string; +(NSString *)convertToJsonStringWithO...
30.43
14
(translation_unit) "//\n// NSJSONSerialization+RTAddition.h\n// yanyu\n//\n// Created by rickytang on 13-11-21.\n// Copyright (c) 2013年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSJSONSerialization (RTAddition)\n+(id)convertToObjectWithJsonString:(NSString *)string;\n\n+(NS...
95
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.43, "nodes": 58, "errors": 0, "source_hash": "4aa886311b6997dde372bcf7868bd6415dffc35c9e94f184ed156ca10a300d42", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
81,151
c
#include "registers.h" #include <stdint.h> #include "task_apis.h" /* #define P_AO_UART_WFIFO (0xc81004c0) */ /* #define P_AO_RTI_PIN_MUX_REG (0xc8100014) */ #define UART_PORT_CONS P_AO_UART_WFIFO #define UART_STP_BIT UART_MODE_MASK_STP_1BIT #define UART_PRTY_BIT 0 #define UART_CHAR_LEN UAR...
26.55
87
(translation_unit) "#include "registers.h"\n#include <stdint.h>\n#include "task_apis.h"\n\n/* #define P_AO_UART_WFIFO (0xc81004c0) */\n/* #define P_AO_RTI_PIN_MUX_REG (0xc8100014) */\n\n#define UART_PORT_CONS P_AO_UART_WFIFO\n\n#define UART_STP_BIT UART_MODE_MASK_STP_1BIT\n#define UART_PRTY_BIT...
547
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 26.55, "nodes": 371, "errors": 0, "source_hash": "4bddcf783829ceff2f183dbc911faee1fd914017b021f70c400a5519496c3690", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,152
c
// // SKDataUploadResult.h // SpeechKit // // Copyright 2012, Nuance Communications Inc. All rights reserved. // // Nuance Communications, Inc. provides this document without representation // or warranty of any kind. The information in this document is subject to // change without notice and does not represent a c...
32.68
82
(translation_unit) "//\n// SKDataUploadResult.h\n// SpeechKit\n//\n// Copyright 2012, Nuance Communications Inc. All rights reserved.\n//\n// Nuance Communications, Inc. provides this document without representation \n// or warranty of any kind. The information in this document is subject to \n// change without notic...
238
26
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 32.68, "nodes": 138, "errors": 0, "source_hash": "a472c88f8a149a84a8a914c68646cdb6108189805ad811259fb0dcab934e98b5", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
81,153
c
// // TLFrameParser.h // TLAttributedLabel-Demo // // Created by andezhou on 15/7/7. // Copyright (c) 2015年 andezhou. All rights reserved. // // 用于生成最后绘制界面需要的CTFrameRef实例。 #import <Foundation/Foundation.h> #import "TLCoreTextData.h" #import "TLAttributedLabelLink.h" #import "TLAttributedLabelImage.h" #import "TLA...
33.26
66
(translation_unit) "//\n// TLFrameParser.h\n// TLAttributedLabel-Demo\n//\n// Created by andezhou on 15/7/7.\n// Copyright (c) 2015年 andezhou. All rights reserved.\n//\n// 用于生成最后绘制界面需要的CTFrameRef实例。\n\n#import <Foundation/Foundation.h>\n#import "TLCoreTextData.h"\n#import "TLAttributedLabelLink.h"\n#import "TLAttr...
346
46
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 33.26, "nodes": 238, "errors": 0, "source_hash": "4a8055e30081f4fdcac81ad926bf52500b3e9a39a89db93d7bfdce0b0782f00b", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
81,154
c
#pragma once #include "cartridge.h" #include "displayenginea.h" #include <memory> #include <stdio.h> #include <string.h> using namespace std; class Memory { public: Memory(Cartridge*); ~Memory(); int getARM9EntryAddress(); int getARM7EntryAddress(); uint32_t ARM9Load32(uin...
26.76
34
(translation_unit) "#pragma once\n\n#include "cartridge.h"\n#include "displayenginea.h"\n#include <memory>\n#include <stdio.h>\n#include <string.h>\n\nusing namespace std;\n\nclass Memory {\n public:\n Memory(Cartridge*);\n ~Memory();\n int getARM9EntryAddress();\n int getARM7EntryAddress...
234
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.76, "nodes": 167, "errors": 0, "source_hash": "ec78598429db01a4c978278f5747fc70f4386af2cc6666232bb7a7543cfaeb90", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
81,155
c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Code for dealing with x.509 v3 crl and crl entries extensions. * * $Id: crlv2.c,v 1.7 2012/04/25 14:49:27 ...
29.61
135
(translation_unit) "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/*\n * Code for dealing with x.509 v3 crl and crl entries extensions.\n *\n * $Id: crlv2.c...
1,000
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 29.61, "nodes": 616, "errors": 0, "source_hash": "88e42a8513262c2c15ba9483eb174336eec41054ab20bfbc5a83b6196ff49e98", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,156
c
/* --|----------------------------------------------------------------------------| --| FILE DESCRIPTION: --| input_processing.h provides an interface for using various input --| processing helper functions. --| --|----------------------------------------------------------------------------| --| REFERENCES: --| ...
34.02
131
(translation_unit) "/*\n--|----------------------------------------------------------------------------|\n--| FILE DESCRIPTION:\n--| input_processing.h provides an interface for using various input\n--| processing helper functions.\n--| \n--|-------------------------------------------------------------------------...
98
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 34.02, "nodes": 63, "errors": 0, "source_hash": "2ac528588f77927a961d0c82f41f470ff9792031cd75874beddcf8551c8b1b06", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,157
c
// RUN: %layout_check %s struct A { char a; /* b c d */ long l; int i; } a = { 1, 2 }; /* .byte 1, .space 7 .quad 2 .space 4, .space 4 */
11.17
12
(translation_unit) "// RUN: %layout_check %s\nstruct A\n{\n char a; /* b c d */\n long l;\n int i;\n} a = { 1, 2 };\n\n/*\n.byte 1, .space 7\n.quad 2\n.space 4, .space 4\n*/\n" (comment) "// RUN: %layout_check %s" (declaration) "struct A\n{\n char a; /* b c d */\n long l;\n int i;\n} a = { 1, 2 };" (struct...
34
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 11.17, "nodes": 20, "errors": 0, "source_hash": "dccdfa3ee43ed152779b77c2bf793764e33d6c727d4a48d6469e04f169bff175", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct A\n...
81,158
c
// This file is part of the QuantumGate project. For copyright and // licensing information refer to the license file(s) in the project root. #pragma once namespace QuantumGate::Implementation::Core { enum class MessageType : UInt16 { Unknown = 0, BeginMetaExchange = 10, EndMetaExchange = 20, BeginPrimaryK...
23.82
45
(translation_unit) "// This file is part of the QuantumGate project. For copyright and\n// licensing information refer to the license file(s) in the project root.\n\n#pragma once\n\nnamespace QuantumGate::Implementation::Core\n{\n enum class MessageType : UInt16\n {\n Unknown = 0,\n\n BeginMetaExchange = 10,\n EndMe...
238
6
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.82, "nodes": 183, "errors": 0, "source_hash": "460df28a85f8af640927d58d771d0b188c8b3c44de7b2cd205cd23eb1dc82cdd", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,159
c
// // GeocoderProvider.h // GWV2 // // Created by gewara on 12-4-12. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @class SVLocationDescription; @protocol SVGeocoderDelegate <NSObject> @optional - (void)geocoder:(id)geocoder didRecieveLocality:(SVLocationDescription *...
29.16
19
(translation_unit) "//\n// GeocoderProvider.h\n// GWV2\n//\n// Created by gewara on 12-4-12.\n// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class SVLocationDescription;\n\n@protocol SVGeocoderDelegate <NSObject>\n\n@optional\n- (void)geocoder:(id)geocoder didRecie...
145
18
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.16, "nodes": 95, "errors": 0, "source_hash": "85043a78758564e361635ea01079ede5f244808635f78d630e7d931e73a8bd5b", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
81,160
c
/* This is a circular doubly linked list. The very first element in the list is the sentry element and does not count as a element of the list. New: the first element also contains the length of the list Made by <NAME> (2015) */ #include <stdlib.h> #include "dlinkedlist.h" /* * Allocates memory to the list and...
22.89
234
(translation_unit) "/*\n This is a circular doubly linked list.\n The very first element in the list is the sentry \n element and does not count as a element of the list.\n New: the first element also contains the length of the list\n Made by <NAME> (2015)\n*/\n#include <stdlib.h>\n#include "dlinkedlist.h"\n\n/*\n * A...
1,364
0
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 22.89, "nodes": 827, "errors": 0, "source_hash": "b76f62d0c7dbcded9f98ae72a8b06340bafd33187f952f5a284587ffc9940960", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,161
c
// // LYPhotoPageViewController.h // LYPhotoPageViewControllerDemo // // Created by <NAME> on 15-3-2. // Copyright (c) 2015年 LY. All rights reserved. // #import <UIKit/UIKit.h> #import "LYPhotoViewController.h" typedef NS_ENUM(NSUInteger, EPhotoPageScrollAnimationDirection) { EPhotoPageScrollAnimationDirecti...
44.42
45
(translation_unit) "//\n// LYPhotoPageViewController.h\n// LYPhotoPageViewControllerDemo\n//\n// Created by <NAME> on 15-3-2.\n// Copyright (c) 2015年 LY. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "LYPhotoViewController.h"\n\ntypedef NS_ENUM(NSUInteger, EPhotoPageScrollAnimationDirection) {\n ...
407
40
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 44.42, "nodes": 258, "errors": 0, "source_hash": "8401560f3f9208f944799bf86b769d633389ec8dbe628f79cf62e2895a90c958", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
81,162
c
/* version information (c) 2007-2015 (W3C) MIT, ERCIM, Keio University See tidy.h for the copyright notice. */ #ifdef RELEASE_DATE static const char TY_(release_date)[] = RELEASE_DATE; #else static const char TY_(release_date)[] = "2015/01/22"; #endif #ifdef LIBTIDY_VERSION #ifdef RC_NUMBER static const char TY_...
26.26
19
(translation_unit) "/* version information\n\n (c) 2007-2015 (W3C) MIT, ERCIM, Keio University\n See tidy.h for the copyright notice.\n\n*/\n\n#ifdef RELEASE_DATE\nstatic const char TY_(release_date)[] = RELEASE_DATE;\n#else\nstatic const char TY_(release_date)[] = "2015/01/22";\n#endif\n#ifdef LIBTIDY_VERSION\n#ifde...
133
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.26, "nodes": 76, "errors": 0, "source_hash": "1db1881a9d8a624561478d9cb742c7963bf503f67f131f298ab390214f8ac864", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef R...
81,163
c
/* Copyright (c) 2020 M.A.X. Port Team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, ...
24.71
215
(translation_unit) "/* Copyright (c) 2020 M.A.X. Port Team \n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy \n * of this software and associated documentation files (the "Software"), to deal \n * in the Software without restriction, including without limitation the rights \n * to u...
1,563
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 24.71, "nodes": 958, "errors": 0, "source_hash": "dc8137df19bfc1f670fb2340d346ba13a7bf9e339cbaff598707e4e5b5767d99", "categorized_nodes": 760}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,164
c
/* * Copyright (c) 2017-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <string.h> #include "tfm_api.h" #include "tfm_internal.h" #include "core/tfm_core_svc.h" #include "tfm_utils.h" #include "tfm_svcalls.h" #include "spm_api.h" uint32_t tfm_core_svc_handler(uint3...
25.69
58
(translation_unit) "/*\n * Copyright (c) 2017-2019, Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n */\n\n#include <string.h>\n#include "tfm_api.h"\n#include "tfm_internal.h"\n#include "core/tfm_core_svc.h"\n#include "tfm_utils.h"\n#include "tfm_svcalls.h"\n#include "spm_api.h"\n\n...
261
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 25.69, "nodes": 136, "errors": 0, "source_hash": "d63e092b8dc1e60c7936efb9558abbb3a5b2d574914b023c54b5ee4a4de29ff0", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
81,165
c
#include <stdint.h> #ifndef IO_H #define IO_H #define KMI_KB_BASE 0x18000000 #define KMI_MS_BASE 0x19000000 typedef struct _KMI_MMIO { uint32_t cr; uint32_t stat; uint32_t data; uint32_t clk; uint32_t ir; } KMI_MMIO; void test(); #endif
17.36
14
(translation_unit) "#include <stdint.h>\n\n#ifndef IO_H\n#define IO_H\n\n#define KMI_KB_BASE 0x18000000\n#define KMI_MS_BASE 0x19000000\n\ntypedef struct _KMI_MMIO {\n uint32_t cr;\n uint32_t stat;\n uint32_t data;\n uint32_t clk;\n uint32_t ir;\n} KMI_MMIO;\n\nvoid test();\n\n#endif" (preproc_include)...
57
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.36, "nodes": 44, "errors": 0, "source_hash": "e553a9f390657d67adb2b30b85df5e2ebf64f4ee039f9541dde044dfc1f8f0c9", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
81,166
c
#include <board.h> #include <gpio.h> void configure_buttons(void); void button_pressed(struct device *dev, struct gpio_callback *cb, u32_t pins);
35.5
4
(translation_unit) "#include <board.h>\n#include <gpio.h>\n\nvoid configure_buttons(void);\n\nvoid button_pressed(struct device *dev, struct gpio_callback *cb, u32_t pins);\n" (preproc_include) "#include <board.h>\n" (#include) "#include" (system_lib_string) "<board.h>" (preproc_include) "#include <gpio.h>\...
44
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 35.5, "nodes": 35, "errors": 0, "source_hash": "cee512fdab200e8cae1dd2d64c052333ba773e6871cddf40205c3f6a97632845", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
81,167
c
#ifndef ScenarioMachdep_H #define ScenarioMachdep_H // RW2STL -- inserted: #include <string> // End of RW2STL -- inserted includes. #include <stdlib.h> #include <scenario/src/dll.h> #if defined(_MSC_VER) //# define CMRP_DATA_PATH "..\\..\\..\\cmrpData\\" # define CMRP_DATA_PATH "..\\..\\cmrpData\\" #else # define C...
22.41
111
(translation_unit) "#ifndef ScenarioMachdep_H\n#define ScenarioMachdep_H\n// RW2STL -- inserted:\n#include <string>\n// End of RW2STL -- inserted includes.\n\n#include <stdlib.h>\n\n#include <scenario/src/dll.h>\n\n\n#if defined(_MSC_VER)\n//# define CMRP_DATA_PATH "..\\..\\..\\cmrpData\\"\n# define CMRP_DATA_PATH "..\...
406
18
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 22.41, "nodes": 261, "errors": 0, "source_hash": "ca6c3de519dad3411c699227a43196e1b3e333c84011567281afe5d931198ffe", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef Scena...
81,168
c
// Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2014-2015 XDN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "../integration_test_lib/BaseFunctionalTest.h" #include "....
37.33
18
(translation_unit) "// Copyright (c) 2011-2015 The Cryptonote developers\n// Copyright (c) 2014-2015 XDN developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#pragma once\n\n#include "../integration_test_lib/BaseFu...
116
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.33, "nodes": 59, "errors": 0, "source_hash": "88314bc3e202970c1ac3b35a5e16dfb19e7b914057ca5110bea8a8e78063db94", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,169
c
/** * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
33.45
259
(translation_unit) "/**\n * Copyright 2019 Huawei Technologies Co., Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unle...
2,559
88
{"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 33.45, "nodes": 1474, "errors": 0, "source_hash": "71c387525d7e362ce833ae1af64556a8cb61eb715179272f26ddbfa846564335", "categorized_nodes": 1051}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
81,170
c
// // ExpandedCollectionViewFlowLayout.h // Depoza // // Created by <NAME> on 02.05.15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ExpandedCollectionViewFlowLayout : UICollectionViewFlowLayout @end
23.8
10
(translation_unit) "//\n// ExpandedCollectionViewFlowLayout.h\n// Depoza\n//\n// Created by <NAME> on 02.05.15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ExpandedCollectionViewFlowLayout : UICollectionViewFlowLayout\n\n@end\n" (comment) "//" (comment) "// ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.8, "nodes": 9, "errors": 0, "source_hash": "9e42dc044de6b3542a6a5778a4041bc0b222f64dee312ca320342036f51815b6", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
81,171
c
/* -*-C++-*- ****************************************************************************** * * File: ExTrieTable.h * RCS: $Id * Description: ExTrieTable class declaration * Created: 7/1/97 * Modified: $Author * Language: C++ * Status: $State * * // @@@ START COPYRIGHT @@@ // // Lic...
28.43
77
(translation_unit) "/* -*-C++-*-\n******************************************************************************\n*\n* File: ExTrieTable.h\n* RCS: $Id\n* Description: ExTrieTable class declaration\n* Created: 7/1/97\n* Modified: $Author\n* Language: C++\n* Status: $State\n*\n*\n// @...
285
7
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 28.43, "nodes": 168, "errors": 0, "source_hash": "b0fd10d7a7100973d7c40c768e9437925f6961187131cef77c0a2abaa29e1bb6", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,172
c
#pragma once namespace core { namespace smartreply { enum class type { invalid, sticker, sticker_by_text, text, audiocall, videocall, }; std::string_view type_2_string(const smartreply::type _type) noexcep...
24.84
19
(translation_unit) "#pragma once\n\nnamespace core\n{\n namespace smartreply\n {\n enum class type\n {\n invalid,\n\n sticker,\n sticker_by_text,\n text,\n audiocall,\n videocall,\n };\n\n std::string_view type_2_string(...
105
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.84, "nodes": 58, "errors": 0, "source_hash": "895c0863f6fd1a7e02aa0febf55d2933edebd20ac91c14f773aac6733464f608", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,173
c
#define GLI_INCLUDE_GL_SGIX_TEXTURE_SCALE_BIAS enum Main { GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179, GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A, GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B, GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C, };
41
7
(translation_unit) "#define GLI_INCLUDE_GL_SGIX_TEXTURE_SCALE_BIAS\n\nenum Main {\n\n GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179,\n GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A,\n GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B,\n GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C,\...
31
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 41.0, "nodes": 23, "errors": 0, "source_hash": "80f488ed544f5223c35a4894a58b6bcd136aae8deb37d8fc27e7f3f3a7c7e393", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define GLI_...
81,174
c
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2005-2017 Andes Technology Corporation #ifndef __ASM_NDS32_PROCESSOR_H #define __ASM_NDS32_PROCESSOR_H #ifdef __KERNEL__ #include <asm/ptrace.h> #include <asm/types.h> #include <asm/sigcontext.h> #define KERNEL_STACK_SIZE PAGE_SIZE #define STACK_TOP TASK_SIZE #de...
30.53
77
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n// Copyright (C) 2005-2017 Andes Technology Corporation\n\n#ifndef __ASM_NDS32_PROCESSOR_H\n#define __ASM_NDS32_PROCESSOR_H\n\n#ifdef __KERNEL__\n\n#include <asm/ptrace.h>\n#include <asm/types.h>\n#include <asm/sigcontext.h>\n\n#define KERNEL_STACK_SIZE PAGE_SIZE...
354
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 30.53, "nodes": 285, "errors": 0, "source_hash": "361377343d1dadaeafd2e8b187c85459297833c7f1fd458b891c2e54bffa4d6f", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,175
c
#ifdef CONFIG_HAS_CC3220SDK #include <kernel.h> #include <misc/printk.h> #include <ti/drivers/net/wifi/simplelink.h> #include <ti/drivers/net/wifi/bsd/sys/socket.h> #include <ti/drivers/net/wifi/bsd/netinet/in.h> #include <ti/drivers/net/wifi/bsd/arpa/inet.h> #define printf printk #define UART_PRINT printk #define perr...
26.8
157
(translation_unit) "#ifdef CONFIG_HAS_CC3220SDK\n#include <kernel.h>\n#include <misc/printk.h>\n#include <ti/drivers/net/wifi/simplelink.h>\n#include <ti/drivers/net/wifi/bsd/sys/socket.h>\n#include <ti/drivers/net/wifi/bsd/netinet/in.h>\n#include <ti/drivers/net/wifi/bsd/arpa/inet.h>\n#define printf printk\n#define UA...
1,484
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 26.8, "nodes": 885, "errors": 0, "source_hash": "e10c4e4b52e29b0c5b84aaf4ac860f79f97b60c27def6af36a909040dccb8979", "categorized_nodes": 598}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
81,176
c
#ifndef WebCore_FWD_WTFString_h #define WebCore_FWD_WTFString_h #include <JavaScriptCore/WTFString.h> #endif
26.25
4
(translation_unit) "#ifndef WebCore_FWD_WTFString_h\n#define WebCore_FWD_WTFString_h\n#include <JavaScriptCore/WTFString.h>\n#endif\n" (preproc_ifdef) "#ifndef WebCore_FWD_WTFString_h\n#define WebCore_FWD_WTFString_h\n#include <JavaScriptCore/WTFString.h>\n#endif" (#ifndef) "#ifndef" (identifier) "WebCore_FWD...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 26.25, "nodes": 10, "errors": 0, "source_hash": "553e69878dd6d29ce9a4f28896793ade05d5760e362e40603a7702d4c7b729c4", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef We...
81,177
c
#pragma once #include <DB/Interpreters/Context.h> #include <DB/Interpreters/IInterpreter.h> namespace DB { class InterpreterFactory { public: static std::unique_ptr<IInterpreter> get( ASTPtr & query, Context & context, QueryProcessingStage::Enum stage = QueryProcessingStage::Complete); }; }
19
15
(translation_unit) "#pragma once\n\n#include <DB/Interpreters/Context.h>\n#include <DB/Interpreters/IInterpreter.h>\n\n\nnamespace DB\n{\n\nclass InterpreterFactory\n{\npublic:\n static std::unique_ptr<IInterpreter> get(\n ASTPtr & query,\n Context & context,\n QueryProcessingStage::Enum stage = QueryProcessingStage...
68
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.0, "nodes": 40, "errors": 0, "source_hash": "d3ad9a2d942d5088b6ad57aee1c5e65bb7f5010dad92011a89645afcaea95899", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
81,178
c
// Copyright 2021 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 IOS_CHROME_BROWSER_UI_INCOGNITO_REAUTH_INCOGNITO_REAUTH_VIEW_LABEL_H_ #define IOS_CHROME_BROWSER_UI_INCOGNITO_REAUTH_INCOGNITO_REAUTH_VIEW_LABEL_H...
48.12
17
(translation_unit) "// Copyright 2021 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 IOS_CHROME_BROWSER_UI_INCOGNITO_REAUTH_INCOGNITO_REAUTH_VIEW_LABEL_H_\n#define IOS_CHROME_BROWSER_UI_INCOGNITO_REAUTH_INCO...
72
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 48.12, "nodes": 48, "errors": 0, "source_hash": "09a41578b0ce5f0141a6ea16dfb5ee406cc8ee84d9cbb7c92cc48a58056a8f5b", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,179
c
/** * Copyright (c) 2018-2022, BookOS Development Team * SPDX-License-Identifier: Apache-2.0 * * Contains: x86 gate * * Change Logs: * Date Author Notes * 2021-10-3 JasonHu Init */ #ifndef __I386_GATE__ #define __I386_GATE__ #include <xbook.h> #define IDT_LIMIT 0x...
25.84
31
(translation_unit) "/**\n * Copyright (c) 2018-2022, BookOS Development Team\n * SPDX-License-Identifier: Apache-2.0\n * \n * Contains: x86 gate\n * \n * Change Logs:\n * Date Author Notes\n * 2021-10-3 JasonHu Init\n */\n\n#ifndef __I386_GATE__\n#define __I386_GATE__\n\n#include <xb...
88
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.84, "nodes": 78, "errors": 0, "source_hash": "ebdb4ec7d156bfca7c79602c70ec4532e8351f79f147b5d8bbbbe9a7d39b0adc", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,180
c
/* example include file */ void c_squared(void);
11.25
4
(translation_unit) "/*\nexample include file\n*/\n\nvoid c_squared(void);" (comment) "/*\nexample include file\n*/" (declaration) "void c_squared(void);" (primitive_type) "void" (function_declarator) "c_squared(void)" (identifier) "c_squared" (parameter_list) "(void)" (() "(" (pa...
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 11.25, "nodes": 7, "errors": 0, "source_hash": "bd5d8f11fa8a1bebde7bd7246d000e8f209f545c3ec79651ef0c0cfa4a5578ca", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void c_square...
81,181
c
#ifndef _LTFAT_DGT_COMMON_H #define _LTFAT_DGT_COMMON_H #include "ltfat/basicmacros.h" /** \addtogroup dgt * @{ */ /** \name Phase convention * @{ */ /** Discrete Gabor Transform Phase convention * * There are two commonly used phase conventions. * * Frequency invariant: * \anchor dgtfreqinv * \f[ * c(...
20.53
53
(translation_unit) "#ifndef _LTFAT_DGT_COMMON_H\n#define _LTFAT_DGT_COMMON_H\n#include "ltfat/basicmacros.h"\n/** \addtogroup dgt \n * @{\n */\n\n/** \name Phase convention \n * @{ */\n\n/** Discrete Gabor Transform Phase convention\n *\n * There are two commonly used phase conventions. \n *\n * Frequency invariant:\n ...
75
1
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 20.53, "nodes": 51, "errors": 0, "source_hash": "77801d285dc1f84d6a1e3a5bd64fb51e459544e017ffd699d507a6c5038b8ed9", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,182
c
/* * This file is licensed under BSD 3-Clause. * All license information is available in the included COPYING file. */ /* * mos6502_stack.c * MOS 6502 encoder for stack instructions * * Author : <NAME> <<EMAIL>> * Date created : 17/10/2020 */ #include "mos6502.h" size_t mos6502_tsx() { return mos6502...
13.79
42
(translation_unit) "/*\n * This file is licensed under BSD 3-Clause.\n * All license information is available in the included COPYING file.\n */\n\n/*\n * mos6502_stack.c\n * MOS 6502 encoder for stack instructions\n *\n * Author : <NAME> <<EMAIL>>\n * Date created : 17/10/2020\n */\n\n#include "mos6502.h"\n\nsiz...
133
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 13.79, "nodes": 69, "errors": 0, "source_hash": "444a40b345e372adcb4f855fa41849a26e945f4543538da25ea6d1371b05de65", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
81,183
c
#ifndef GUARD_14_2_H #define GUARD_14_2_H int ex14_2(); #endif // !GUARD_14_2_H
19
4
(translation_unit) "#ifndef GUARD_14_2_H\n#define GUARD_14_2_H\n\nint ex14_2();\n\n#endif // !GUARD_14_2_H" (preproc_ifdef) "#ifndef GUARD_14_2_H\n#define GUARD_14_2_H\n\nint ex14_2();\n\n#endif" (#ifndef) "#ifndef" (identifier) "GUARD_14_2_H" (preproc_def) "#define GUARD_14_2_H\n" (#define) "#defin...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 19.0, "nodes": 12, "errors": 0, "source_hash": "12bb1e98e3b3723719e666065a4687da6618f13c7b167a0af6a0eca124845ce0", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GUA...
81,184
c
/* Package: dyncall Library: dyncall File: dyncall/dyncall_call_ppc64.h Description: License: Copyright (c) 2014-2015 <NAME> <<EMAIL>> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and th...
31.71
41
(translation_unit) "/*\n\n Package: dyncall\n Library: dyncall\n File: dyncall/dyncall_call_ppc64.h\n Description: \n License:\n\n Copyright (c) 2014-2015 <NAME> <<EMAIL>>\n\n Permission to use, copy, modify, and distribute this software for any\n purpose with or without fee is hereby granted, provided that the a...
86
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.71, "nodes": 57, "errors": 0, "source_hash": "2bf458e24f66aa339e42afa0cbc14026ab6a867214ed6cea7765ed274b7106d3", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,185
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_ZJScrollViewModule_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_ZJScrollVi...
24.14
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_ZJScrollViewModule_ExampleVersionNumber;\nFOUNDATION_EXPORT c...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.14, "nodes": 42, "errors": 0, "source_hash": "4c247c28dd6232e4d7246c891ffbe1f5c755981490554d6c7f16a6d9ba5c0277", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
81,186
c
// // MainViewController.h // MobileWeather // // Copyright (c) 2013-2015 Ford Motor Company. All rights reserved. // #import <UIKit/UIKit.h> @interface MainViewController : UIViewController @end
21.11
9
(translation_unit) "//\n// MainViewController.h\n// MobileWeather\n//\n// Copyright (c) 2013-2015 Ford Motor Company. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MainViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MainViewController.h" (comment) "// MobileWeath...
18
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.11, "nodes": 9, "errors": 0, "source_hash": "03c00e1171859025e222d8a9d2c480204274bfbcfbbde482a11098417488e287", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
81,187
c
// Copyright 2017 PDFium 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 PUBLIC_CPP_FPDF_DELETERS_H_ #define PUBLIC_CPP_FPDF_DELETERS_H_ #include "public/fpdf_annot.h" #include "public/fpdf_dataavail.h" #include "public/fpdf...
32.11
62
(translation_unit) "// Copyright 2017 PDFium 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 PUBLIC_CPP_FPDF_DELETERS_H_\n#define PUBLIC_CPP_FPDF_DELETERS_H_\n\n#include "public/fpdf_annot.h"\n#include "public/fpdf_dataav...
516
26
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 32.11, "nodes": 304, "errors": 0, "source_hash": "b66d237326d39281d969a6913a2c7cd479e8afbe44d8ec8276c162b0ee901b8d", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,188
c
// Student ID : SLAE64-1611 // Student Name : Jonathan "Chops" Crosby // Assignment 6 : Shell Code Test File // File Name : poweroff.c #include<stdio.h> #include<string.h> //compile with: gcc poweroff.c -o poweroff -fno-stack-protector -z execstack -no-pie unsigned char code[] = \ "\x48\x31\xc0\xb0\xa9\xba\xdd\...
32.4
15
(translation_unit) "// Student ID : SLAE64-1611\n// Student Name : Jonathan "Chops" Crosby\n// Assignment 6 : Shell Code Test File\n// File Name : poweroff.c\n\n#include<stdio.h>\n#include<string.h>\n\n//compile with: gcc poweroff.c -o poweroff -fno-stack-protector -z execstack -no-pie\n\nunsigned char code[] = \\...
119
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.4, "nodes": 76, "errors": 0, "source_hash": "5f84b2fcbbf3c45d96f7b748b1d2cb77b7b725caee990e73cff1c8db11be07f5", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
81,189
c
/* gli_convert.c - OpenGL image (GLI) file loader */ /* Copyright NVIDIA Corporation, 2000. */ /* Fromat conversion routines for lightweight generic image file loader for OpenGL programs. */ #include <assert.h> #include <stdlib.h> #include "gli.h" void gliConvertBGRtoRGB(gliGenericImage *image) { const int c...
26.59
162
(translation_unit) "/* gli_convert.c - OpenGL image (GLI) file loader */\n\n/* Copyright NVIDIA Corporation, 2000. */\n\n/* Fromat conversion routines for lightweight generic image\n file loader for OpenGL programs. */\n\n#include <assert.h>\n#include <stdlib.h>\n\n#include "gli.h"\n\nvoid\ngliConvertBGRtoRGB(gliGene...
1,926
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 26.59, "nodes": 1285, "errors": 0, "source_hash": "e04a61e518d93cf61e2f8d20ae66dc657a88d33d09174093b93320c26155beaa", "categorized_nodes": 977}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
81,190
c
// // UIView+Devoe.h // LightPhoto // // Created by <NAME> on 6/6/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Devoe) + (id) autolayoutView; + (UIImage *) getScreenShotOfView:(UIView *)theView; - (BOOL)validateNonZeroLength:(UITextField *)textField; - (BOO...
33.83
23
(translation_unit) "//\n// UIView+Devoe.h\n// LightPhoto\n//\n// Created by <NAME> on 6/6/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (Devoe)\n\n+ (id) autolayoutView;\n+ (UIImage *) getScreenShotOfView:(UIView *)theView;\n\n- (BOOL)validateNonZeroLeng...
262
39
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.83, "nodes": 152, "errors": 0, "source_hash": "b8f87147a39756aebe24d97ca8d1c4ade912cdd9fcc5d9ffaafe50c367d1bb3f", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
81,191
c
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_REF_COUNTED_LOCK_H_ #define GPU_COMMAND_BUFFER_SERVICE_REF_COUNTED_LOCK_H_ #include "base/memory/ref_counted.h" #inclu...
36.78
45
(translation_unit) "// Copyright 2021 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef GPU_COMMAND_BUFFER_SERVICE_REF_COUNTED_LOCK_H_\n#define GPU_COMMAND_BUFFER_SERVICE_REF_COUNTED_LOCK_H_\n\n#include "base/m...
372
19
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.78, "nodes": 199, "errors": 0, "source_hash": "41deb209282fd8c7e3a83b14babe903f1f5726481273ed2cc2a36f80f4d866af", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,192
c
///////////////////////////////////////////////////////////////////////////// // Copyright (c) 2012, <NAME>. // This code is released under the MIT License. // www.opensource.org/licenses/mit-license.php ///////////////////////////////////////////////////////////////////////////// #ifndef _BENCHMARK_COMMON_H_ #define ...
39.04
26
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Copyright (c) 2012, <NAME>.\n// This code is released under the MIT License.\n// www.opensource.org/licenses/mit-license.php\n/////////////////////////////////////////////////////////////////////////////\n\n#ifndef _BE...
103
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 39.04, "nodes": 76, "errors": 0, "source_hash": "e9808dd0aa964f3a0c2f0b49733ac23197b0bb43cedeb46b18d06e82e20dca51", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,193
c
// // PAWProfileViewController.h // Poppin // // Created by <NAME> on 5/10/16. // Copyright © 2016 <NAME>. All rights reserved. // #ifndef PAWProfileViewController_h #define PAWProfileViewController_h #import "PAWPost.h" #import "NavController.h" #endif /* PAWProfileViewController_h */ #import <Parse/Parse.h> #i...
34.74
43
(translation_unit) "//\n// PAWProfileViewController.h\n// Poppin\n//\n// Created by <NAME> on 5/10/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#ifndef PAWProfileViewController_h\n#define PAWProfileViewController_h\n\n#import "PAWPost.h"\n#import "NavController.h"\n\n#endif /* PAWProfileViewControll...
331
35
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 34.74, "nodes": 217, "errors": 0, "source_hash": "891fb1bebe908309ab570f7dcc2e33fe62718b08c0e50886c8d5e927859150de", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
81,194
c
/* MIT License Copyright (c) 2016-2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
38.55
58
(translation_unit) "/*\n\n MIT License\n\n Copyright (c) 2016-2017 <NAME>\n\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction, including without limitation the r...
297
4
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.55, "nodes": 181, "errors": 0, "source_hash": "4dd2a27ecdaa1c8f345fc89fd4a24a925054aeecbd743c1345faa9add8110cd9", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,195
c
#include<iostream> #include<vector> using namespace std; struct ListNode { int val; ListNode *next; }; vector<int> ListReverse(ListNode *head) { vector<int> input1; while(head!=NULL) { input1.push_back(head->val); } reverse(input1.begin(),input1.end()); return...
18.11
35
(translation_unit) "#include<iostream> \n#include<vector> \nusing namespace std; \nstruct ListNode \n{ \n int val; \n ListNode *next; \n}; \nvector<int> ListReverse(ListNode *head) \n{ \n vector<int> input1; \n \n while(head!=NULL) \n { \n input1.push_back(head->val); \n \n } \n reverse(inpu...
268
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.11, "nodes": 167, "errors": 0, "source_hash": "703ca3c925029fb1ebc7619e749e4d286464928e22f630233692265b307b5e1d", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,196
c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <pthread.h> #include <sys/types.h> #include <sys/syscall.h> #include <sys/wait.h> /* Ce programme permet de comprendre comment gérer les "zombies" * Zombie = programme mort dont le père n'a pas été mis au courant de son décès. */ void handler(int si...
31.35
93
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <pthread.h>\n#include <sys/types.h>\n#include <sys/syscall.h>\n#include <sys/wait.h>\n\n/* Ce programme permet de comprendre comment gérer les "zombies"\n * Zombie = programme mort dont le père n'a pas été mis au courant de son d...
334
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 31.35, "nodes": 181, "errors": 0, "source_hash": "24d6ead3c196d3e58b6fa8eadb52516dc17593a0dded5a77ad7135e3d870e9fe", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,197
c
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_ #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_ namespace mus { namespace ws { class Wind...
44.31
32
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_\n#define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_DELEGATE_H_\n\nnamespace mus {\...
156
8
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 44.31, "nodes": 89, "errors": 0, "source_hash": "80cfd303abe1f7a8f16a3098fa1331f8f6934743556b804ad7dc6e4dc0329f37", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,198
c
// // CBWrefreshComponet.h // CBWRefresh // // Created by 陈博文 on 16/5/30. // Copyright © 2016年 陈博文. All rights reserved. // #import <UIKit/UIKit.h> /** 刷新控件的状态 */ typedef NS_ENUM(NSInteger,CBWRefreshState) { /** 普通闲置状态 */ CBWRefreshStateIdle = 1, /** 松开就可以进行刷新的状态 */ CBWRefreshStatePulling, /**...
24.2
55
(translation_unit) "//\n// CBWrefreshComponet.h\n// CBWRefresh\n//\n// Created by 陈博文 on 16/5/30.\n// Copyright © 2016年 陈博文. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/** 刷新控件的状态 */\ntypedef NS_ENUM(NSInteger,CBWRefreshState) {\n /** 普通闲置状态 */\n CBWRefreshStateIdle = 1,\n /** 松开就可以进行刷新的状态 */\n...
255
41
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.2, "nodes": 155, "errors": 0, "source_hash": "8b64aba5d8a8a02ce4f7f3a624b2242f5a118d5a8e46790775a9f83fba82c07d", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
81,199