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
// // PanoramMenuItem.h // TestPanarom // // Created by dongyongzhu on 16/1/24. // Copyright © 2016年 innovator. All rights reserved. // #import <UIKit/UIKit.h> @class PanoramMenuItem; typedef void(^MenuItemSelectHander) (PanoramMenuItem *item); @interface PanoramMenuItem : UIView @property (nonatomic,strong) NSDi...
27.69
16
(translation_unit) "//\n// PanoramMenuItem.h\n// TestPanarom\n//\n// Created by dongyongzhu on 16/1/24.\n// Copyright © 2016年 innovator. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class PanoramMenuItem;\ntypedef void(^MenuItemSelectHander) (PanoramMenuItem *item);\n@interface PanoramMenuItem : UIView\n...
104
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.69, "nodes": 72, "errors": 0, "source_hash": "557538300361146ea06e16e423d9f0bfafa50865b96835645747eea9ff4bdd92", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
3,000
c
/* gcc -std=c17 -lc -lm -pthread -o ../_build/c/io_rename.exe ./c/io_rename.c && (cd ../_build/c/;./io_rename.exe) https://en.cppreference.com/w/c/io/rename */ #include <stdio.h> int main(void) { FILE* fp = fopen("from.txt", "w"); // create file "from.txt" if(!fp) { perror("from.txt"); return 1; } fputc('a'...
32.22
18
(translation_unit) "/*\ngcc -std=c17 -lc -lm -pthread -o ../_build/c/io_rename.exe ./c/io_rename.c && (cd ../_build/c/;./io_rename.exe)\nhttps://en.cppreference.com/w/c/io/rename\n*/\n#include <stdio.h>\nint main(void)\n{\n FILE* fp = fopen("from.txt", "w"); // create file "from.txt"\n if(!fp) { perror("from.txt"...
205
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.22, "nodes": 96, "errors": 0, "source_hash": "df58cc2884fb217fe36113854a305cac4c626d3ef7e7700ea0ce195cd27160c7", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,001
c
/* * ProbeBillboardGlyphRenderTasks.h * * Copyright (C) 2019 by Universitaet Stuttgart (VISUS). * All rights reserved. */ #ifndef PROBE_BILLBOARD_GLYPH_RENDER_TASK_H_INCLUDED #define PROBE_BILLBOARD_GLYPH_RENDER_TASK_H_INCLUDED #include <typeindex> #include "mesh_gl/AbstractGPURenderTaskDataSource.h" #include ...
36.37
166
(translation_unit) "/*\n * ProbeBillboardGlyphRenderTasks.h\n *\n * Copyright (C) 2019 by Universitaet Stuttgart (VISUS).\n * All rights reserved.\n */\n\n#ifndef PROBE_BILLBOARD_GLYPH_RENDER_TASK_H_INCLUDED\n#define PROBE_BILLBOARD_GLYPH_RENDER_TASK_H_INCLUDED\n\n#include <typeindex>\n\n#include "mesh_gl/AbstractGPURe...
1,303
73
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 36.37, "nodes": 807, "errors": 0, "source_hash": "b20e39a5489a1068428f5c17aa1da20081dc53b4a8b40539a40637c2dbf7a96f", "categorized_nodes": 572}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,002
c
#pragma once #include <QMainWindow> #include <QtWidgets> #include <core/bus.h> #include <memory> namespace NesEmulatorExe { enum class Mode; class DebugWidget : public QWidget { //Q_OBJECT public: DebugWidget(NesEmulator::Bus& bus, Mode& mode, QWidget* parent = nullptr); virt...
29.62
34
(translation_unit) "#pragma once\n\n#include <QMainWindow>\n#include <QtWidgets>\n#include <core/bus.h>\n#include <memory>\n\nnamespace NesEmulatorExe\n{\n enum class Mode;\n\n class DebugWidget : public QWidget\n {\n //Q_OBJECT\n\n public:\n DebugWidget(NesEmulator::Bus& bus, Mode& mode, QWid...
278
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.62, "nodes": 171, "errors": 0, "source_hash": "7b055577ee0108e076ee21bfb8b4df563a910cb9631a4b41b77ab98c9fb1458c", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,003
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
33.24
137
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apach...
299
13
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 33.24, "nodes": 176, "errors": 0, "source_hash": "432d3ac2e856f0f4f181d449864ee8ae4e52b69b56a2bbc03783fb649d2f731d", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,004
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 #import "BinaryPatchHelper.h" #import "ClassSecretKeyMap.h" #import "JSONPatchHelper.h" #import "ORPatchFile.h" #import "Runn...
23.94
18
(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#import "BinaryPatchHelper.h"\n#import "ClassSecretKeyMap.h"\n#import "JSONPatchHelper.h"\n#i...
67
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.94, "nodes": 57, "errors": 0, "source_hash": "207d3c89df7ef072dd3b572ed488a079020d053acd048bfd00dcafc56c13b5d3", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
3,005
c
// Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_THIRD_PARTY_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_ #define NET_THIRD_PARTY_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_ #include "net/thi...
43.89
19
(translation_unit) "// Copyright (c) 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef NET_THIRD_PARTY_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_\n#define NET_THIRD_PARTY_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_B...
90
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 43.89, "nodes": 47, "errors": 0, "source_hash": "9c7a776901786293a2b6273eaef6adc24b8d39eb7138dc09218d0e4ba86f3b14", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,006
c
#pragma once #include <QWidget> #include <QLabel> #include <QCheckBox> #include <QComboBox> #include "project.h" #include "tileset.h" #include "tileseteditorwidget.h" #include "tilesetpreviewwidget.h" #include "tilesetanimationwidget.h" #include "tilesetpalettewidget.h" #include "tilesetassociatedsetswidget.h" #includ...
31.05
74
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include <QLabel>\n#include <QCheckBox>\n#include <QComboBox>\n#include "project.h"\n#include "tileset.h"\n#include "tileseteditorwidget.h"\n#include "tilesetpreviewwidget.h"\n#include "tilesetanimationwidget.h"\n#include "tilesetpalettewidget.h"\n#include "tilese...
589
18
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 31.05, "nodes": 398, "errors": 0, "source_hash": "ab3c3dcc2ffe80f14ea14ada684f306facaa29385829237fbc04ef9ad591e9d5", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,007
c
/* include/linux/usb/otg.h * * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com * * USB OTG (On The Go) defines * * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __LINUX_USB_OTG_H #define __LINUX_USB_OTG_H enum usb_dr_mode { USB_DR_MODE_UNKNOWN, USB_DR_MODE_HOST, USB_DR_MODE_PERIPHER...
21
17
(translation_unit) "/* include/linux/usb/otg.h\n *\n * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com\n *\n * USB OTG (On The Go) defines\n *\n * SPDX-License-Identifier: GPL-2.0+\n */\n\n#ifndef __LINUX_USB_OTG_H\n#define __LINUX_USB_OTG_H\n\nenum usb_dr_mode {\n USB_DR_MODE_UNKNOWN,\n USB_D...
29
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.0, "nodes": 19, "errors": 0, "source_hash": "3ce26e5ee4ea38a9c707aeef2600eb534c41f44fba4d7e39bd16ad3d77530596", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,008
c
// Copyright (c) 2015 RV-Match Team. All Rights Reserved. struct str {int *x;}; int main(void) { int x = 5; int *p = &x; (struct str)p; }
21.29
7
(translation_unit) "// Copyright (c) 2015 RV-Match Team. All Rights Reserved.\n\nstruct str {int *x;};\n\nint main(void) {\n int x = 5;\n int *p = &x;\n (struct str)p;\n}\n" (comment) "// Copyright (c) 2015 RV-Match Team. All Rights Reserved." (struct_specifier) "struct str {int *x;}" (struct) "s...
55
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.29, "nodes": 36, "errors": 0, "source_hash": "e8f76ba031743b28ac31ef7b3ed309a3aabd8112e571b21fb1178e215b29d469", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct...
3,009
c
#ifndef COMMON_H #define COMMON_H #include <iostream> #include <Eigen/Geometry> #include <math.h> #include <chrono> /** * @brief The Timer class, used for durationn in Ms. */ class Timer { typedef std::chrono::high_resolution_clock Clock; public: Timer() = default; /** * @brief Permit to update ...
34.14
72
(translation_unit) "#ifndef COMMON_H\n#define COMMON_H\n\n#include <iostream>\n\n#include <Eigen/Geometry>\n#include <math.h>\n\n#include <chrono>\n\n/**\n * @brief The Timer class, used for durationn in Ms.\n */\nclass Timer\n{\n typedef std::chrono::high_resolution_clock Clock;\npublic:\n\n Timer() = default;\n...
520
26
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.14, "nodes": 297, "errors": 0, "source_hash": "b81346c88635a392edb85eebf0f436a0848036562e1275dfa08a67c8874af967", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,010
c
// Copyright 2010 <NAME> (vadim -at- schetin.in). // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <openssl/engine.h> #include <openssl/aes.h> #include <openssl/evp.h> #include <openssl/evp.h>...
34.83
66
(translation_unit) "// Copyright 2010 <NAME> (vadim -at- schetin.in).\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n\n#pragma once\n\n#include <openssl/engine.h>\n#include <openssl/aes.h>\n#include <openssl/evp...
801
7
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 34.83, "nodes": 458, "errors": 0, "source_hash": "951dd00bb31c6da2c27f99e042fffaf5bc5f8f3353a1b0bf7c89170db3a61b90", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,011
c
/* Copyright © 2018-2019 MAKER. */ /* This code is licensed under the MIT License. */ /* See: LICENSE.md */ #include <skift/atomic.h> #include <skift/logger.h> #include "kernel/cpu/ir...
24.93
45
(translation_unit) "/* Copyright © 2018-2019 MAKER. */\n/* This code is licensed under the MIT License. */\n/* See: LICENSE.md */\n\n#include <skift/atomic.h>\n#include <skift/logger.h>...
281
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.93, "nodes": 153, "errors": 0, "source_hash": "80b90247e923f79a5db39125db86030498885ab3f86e30ee5a5ca7d8ffe25339", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
3,012
c
#pragma once #include "Poco/Redis/Client.h" #include <Logger.h> #include <string_view> namespace redispublish { class RedisPublish { public: explicit RedisPublish(std::string_view configFile); ~RedisPublish(); static void publish(std::string_view topic, std::string_view message); ...
34.45
22
(translation_unit) "#pragma once\n#include "Poco/Redis/Client.h"\n#include <Logger.h>\n#include <string_view>\n\nnamespace redispublish\n{\n class RedisPublish\n {\n public:\n explicit RedisPublish(std::string_view configFile);\n ~RedisPublish();\n\n static void publish(std::string_view to...
175
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.45, "nodes": 92, "errors": 0, "source_hash": "dfbe63333d8052a2daafcaf0d48063a8cdcb873a963b1240ef430c3b6a51cb52", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,013
c
//----------------------------------------------------------------------------- class CField { public: CString Name; CString Value; CField(const char *name, const char *value); }; //----------------------------------------------------------------------------- class CRecord { public: CList<CField> Fields...
23.95
19
(translation_unit) "//-----------------------------------------------------------------------------\n\nclass CField\n {\n public:\n CString Name;\n CString Value;\n CField(const char *name, const char *value);\n };\n\n//-----------------------------------------------------------------------------\n\nclass CRecord\n ...
138
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.95, "nodes": 75, "errors": 0, "source_hash": "8136e14d804e77273a318320a206480b51b06c432f2b3f7d654c956d3d069388", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
3,014
c
#pragma once #include "clear_rendertarget.h" namespace cg { class LineDrawing : public ClearRenderTarget { public: LineDrawing(uint32_t width, uint32_t height); virtual ~LineDrawing(); void DrawLine(uint32_t x_begin, uint32_t y_begin, uint32_t x_end, uint32_t y_end, color color); void D...
15.38
21
(translation_unit) "#pragma once \n \n \n#include "clear_rendertarget.h" \n \nnamespace cg \n{ \n \n class LineDrawing : public ClearRenderTarget \n { \n public: \n LineDrawing(uint32_t width, uint32_t height); \n virtual ~LineDrawing(); \n \n void DrawLine(uint32_t x_begin, uint32_t y_begin, uint32_t x_end, uint32_...
90
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.38, "nodes": 55, "errors": 0, "source_hash": "2311ff9832adf767895d38e48697959e290f7211d523339591e02513496b867e", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,015
c
#pragma once #include <AzCore/Component/ComponentBus.h> #include "Utils/CommonTypes.h" #include <AzCore/JSON/rapidjson.h> namespace spark { class InfoRequests : public AZ::EBusTraits { public: // One handler is supported. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single; /...
36.17
29
(translation_unit) "#pragma once\n\n\n#include <AzCore/Component/ComponentBus.h>\n#include "Utils/CommonTypes.h"\n#include <AzCore/JSON/rapidjson.h>\n\nnamespace spark {\n\n class InfoRequests\n : public AZ::EBusTraits\n {\n public:\n // One handler is supported.\n static const AZ::EBusHandlerPolicy HandlerPolicy = ...
291
18
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.17, "nodes": 189, "errors": 0, "source_hash": "35c6415f840c6b053187c3f67f17a2d074c9e8ad608ec0244d77dec62c92ae04", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,016
c
// license:BSD-3-Clause // copyright-holders:<NAME> /********************************************************************* kc_cas.h *********************************************************************/ #ifndef MAME_FORMATS_KC_CAS_H #define MAME_FORMATS_KC_CAS_H #pragma once #include "cassimg.h" CASSETTE_FORMA...
33.73
11
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/*********************************************************************\n\n kc_cas.h\n\n*********************************************************************/\n#ifndef MAME_FORMATS_KC_CAS_H\n#define MAME_FORMATS_KC_CAS_H\n\n#pragma once\n\n#inc...
29
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.73, "nodes": 17, "errors": 0, "source_hash": "eec5170a427a0d816e4acdd496f0a5611ea95c772190dd86bccf8cbed3854c61", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,017
c
// // Created by matti on 5.9.2015. // Exercise 1.1 // #include <stdio.h> main() { printf("hello, world\n"); }
13.38
8
(translation_unit) "//\n// Created by matti on 5.9.2015.\n// Exercise 1.1\n//\n\n#include <stdio.h>\n\nmain() {\n printf("hello, world\n");\n}" (comment) "//" (comment) "// Created by matti on 5.9.2015." (comment) "// Exercise 1.1" (comment) "//" (preproc_include) "#include <stdio.h>\n" (#include) "#in...
30
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.38, "nodes": 11, "errors": 0, "source_hash": "0d1c746e0dd3f0409bd2a77cc16ef8bc01428b2bc2caffcc684318371cb74b6b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
3,018
c
// // LMPlayerViewController.h // LMIJKPlayer // // Created by 李小南 on 2017/4/6. // Copyright © 2017年 LMIJKPlayer. All rights reserved. // #import <UIKit/UIKit.h> @interface LMPlayerViewController : UIViewController @end
21.4
10
(translation_unit) "//\n// LMPlayerViewController.h\n// LMIJKPlayer\n//\n// Created by 李小南 on 2017/4/6.\n// Copyright © 2017年 LMIJKPlayer. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LMPlayerViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LMPlayerViewController.h...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.4, "nodes": 10, "errors": 0, "source_hash": "8e3cd90d1cf347dd34d29d7266f9ab933826037156da66905b9419b921731650", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit...
3,019
c
--- threadlib/pthread.c.orig 2007-02-10 03:01:08 UTC +++ threadlib/pthread.c @@ -58,6 +58,7 @@ pthread_mutex_t *mp=(pthread_mutex_t *)v ** queue, then goes back to waiting for another go signal. */ +__attribute__((__noreturn__)) static void *threadfunc(void *p) { cthread_t *c= (cthread_t *)p;
29.2
10
(translation_unit) "--- threadlib/pthread.c.orig 2007-02-10 03:01:08 UTC\n+++ threadlib/pthread.c\n@@ -58,6 +58,7 @@ pthread_mutex_t *mp=(pthread_mutex_t *)v\n ** queue, then goes back to waiting for another go signal.\n */\n \n+__attribute__((__noreturn__))\n static void *threadfunc(void *p)\n {\n cthread_t *c= (cthr...
132
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.2, "nodes": 106, "errors": 0, "source_hash": "a86131aab62c8d5031a0b3bbefd757e69102258a84d886b096acb245067ff2df", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "update_expression", "text": "--- ...
3,020
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/frauddetector/FraudDetector_EXPORTS.h> #include <aws/frauddetector/FraudDetectorRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/frauddetector/model...
38.2
224
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/frauddetector/FraudDetector_EXPORTS.h>\n#include <aws/frauddetector/FraudDetectorRequest.h>\n#include <aws/core/utils/memory/stl/AWSString.h>\n#includ...
1,675
95
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 38.2, "nodes": 1055, "errors": 0, "source_hash": "c3a8bd942cfd702db89f43a91367b3244671ad4541ffdb6471d14890cd71740e", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
3,021
c
#include "engine.h" #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <lauxlib.h> #include <lualib.h> #include <lua.h> #include "Helper/stringPath.h" #include "Engine/luaHelper.h" #include "Scene/MainMenu/mainMenu.h" #include "Physics/physicsInterface.h" #include "skybox.h" Engine engine; /// Used o...
34.8
314
(translation_unit) "#include "engine.h"\n#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n#include <lauxlib.h>\n#include <lualib.h>\n#include <lua.h>\n#include "Helper/stringPath.h"\n#include "Engine/luaHelper.h"\n#include "Scene/MainMenu/mainMenu.h"\n#include "Physics/physicsInterface.h"\n#include "skybox...
2,738
0
{"language": "c", "success": true, "metadata": {"lines": 314, "avg_line_length": 34.8, "nodes": 1546, "errors": 0, "source_hash": "3f417acf43caada635d511e1c8790564321dd6152091c158481855b232b3fe9b", "categorized_nodes": 1192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,022
c
/* * OMAP2+ DMA driver * * Copyright (C) 2003 - 2008 Nokia Corporation * Author: <NAME> <<EMAIL>> * DMA channel linking for 1610 by <NAME> <<EMAIL>> * Graphics DMA and LCD DMA graphics tranformations * by <NAME> <<EMAIL>> * OMAP2/3 support Copyright (C) 2004-2007 Texas Instruments, Inc. * Some functions based ...
29.58
270
(translation_unit) "/*\n * OMAP2+ DMA driver\n *\n * Copyright (C) 2003 - 2008 Nokia Corporation\n * Author: <NAME> <<EMAIL>>\n * DMA channel linking for 1610 by <NAME> <<EMAIL>>\n * Graphics DMA and LCD DMA graphics tranformations\n * by <NAME> <<EMAIL>>\n * OMAP2/3 support Copyright (C) 2004-2007 Texas Instruments, I...
1,633
3
{"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 29.58, "nodes": 985, "errors": 0, "source_hash": "d4307bdceeef2d8b6653212cb5e4814fcea6a94272efa649dae7f9fe157bd730", "categorized_nodes": 676}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,023
c
/******************************************************************************** * Copyright (c) 2020 AVL List GmbH and others * * This program and the accompanying materials are made available under the * terms of the Apache Software License 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2....
35.55
38
(translation_unit) "/********************************************************************************\n * Copyright (c) 2020 AVL List GmbH and others\n * \n * This program and the accompanying materials are made available under the\n * terms of the Apache Software License 2.0 which is available at\n * https://www.apach...
226
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 35.55, "nodes": 126, "errors": 0, "source_hash": "100738751aeb596a0c086963ec8828c701a2dcecd499d0049130bd4ea522f1ca", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,024
c
/* Generated by RuntimeBrowser. */ @protocol _UITouchPhaseChangeDelegate <NSObject> @required - (void)_touchPhaseChangedForTouch:(UITouch *)arg1; @end
24.33
6
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol _UITouchPhaseChangeDelegate <NSObject>\n\n@required\n\n- (void)_touchPhaseChangedForTouch:(UITouch *)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol _UITouchPhaseChangeDelegate <NSObject>\n\n@required\n\n- (vo...
30
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.33, "nodes": 20, "errors": 0, "source_hash": "302e9f7b18fc8478f00d9e712436d77aee64a368372c8af47787d09a331a6e29", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol _UITouc...
3,025
c
#include <stdlib.h> #include "rect.h" void main (void) { Rect* retangulo1 = NewRect(); PrintRect(retangulo1); Rect* retangulo2 = NewRect(); DragRect(retangulo2, 10,100); PrintRect(retangulo2); free(retangulo1); free(retangulo2); }
22.55
11
(translation_unit) "#include <stdlib.h>\n#include "rect.h"\n\nvoid main (void) {\n Rect* retangulo1 = NewRect();\n PrintRect(retangulo1);\n\n Rect* retangulo2 = NewRect();\n DragRect(retangulo2, 10,100);\n PrintRect(retangulo2);\n\n free(retangulo1);\n free(retangulo2);\n}" (preproc_include) "#in...
92
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.55, "nodes": 55, "errors": 0, "source_hash": "8eeb5d409a0aa7473740ea19aa187c727f5747f5a6e1f13ea2601857d46bbf7c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,026
c
// // SnowParticlesystem.h // Core3D // // Created by CoreCode on 03.06.08. // Copyright 2007 - 2012 CoreCode. Licensed under the MIT License, see _MIT_LICENSE.txt // #import "Particlesystem.h" @interface SnowParticlesystem : Particlesystem { float randomBuffer[500]; } @end
17.8
15
(translation_unit) "//\n// SnowParticlesystem.h\n// Core3D\n//\n// Created by CoreCode on 03.06.08.\n// Copyright 2007 - 2012 CoreCode. Licensed under the MIT License, see _MIT_LICENSE.txt\n//\n\n\n#import "Particlesystem.h"\n\n\n@interface SnowParticlesystem : Particlesystem\n{\n float randomBuffer[500];\n}\n\n@en...
35
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.8, "nodes": 17, "errors": 0, "source_hash": "03707e990c8e93050dc41cd115142c0b3c953cd0aad9d6ef74da6e980f1f776b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"P...
3,027
c
//===- DbiStream.h - PDB Dbi Stream (Stream 3) Access -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
30.49
57
(translation_unit) "//===- DbiStream.h - PDB Dbi Stream (Stream 3) Access -----------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
300
6
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 30.49, "nodes": 165, "errors": 0, "source_hash": "522b0c73eda4148da7bc7adcceb34d5aeeb759a40a3c0f4c0c38fcca7eeefbcb", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,028
c
// Copyright 2018, Beeri 15. All rights reserved. // Author: <NAME> (<EMAIL>) // #pragma once #include <array> #include <type_traits> #include <boost/asio/buffer.hpp> #include "base/pod_array.h" namespace boost { namespace asio { inline mutable_buffer buffer(base::PODArray<uint8_t>& arr) noexcept { return mutabl...
31.61
127
(translation_unit) "// Copyright 2018, Beeri 15. All rights reserved.\n// Author: <NAME> (<EMAIL>)\n//\n#pragma once\n\n#include <array>\n#include <type_traits>\n\n#include <boost/asio/buffer.hpp>\n#include "base/pod_array.h"\n\nnamespace boost {\nnamespace asio {\n\ninline mutable_buffer buffer(base::PODArray<uint8_t...
1,425
91
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 31.61, "nodes": 846, "errors": 0, "source_hash": "fb89fb0f4cb7945df0963ea8c30a4e7d182e9f3059c02718d4ff9d0d76aa0f8c", "categorized_nodes": 570}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,029
c
#ifndef ANT_SCHEDULER #define ANT_SCHEDULER #include <pthread.h> #include <semaphore.h> #include <stdint.h> // define the event #define TASK_EVT_ALWAY_ON 0x01 #define TASK_EVT_ON_READABLE 0x02 #define TASK_EVT_ON_WRITABLE 0x04 #define TASK_EVT_ON_TIMEOUT 0x08 #define POLL_EVENT_TO 10 // ms typedef struct _antd_sche...
24.51
111
(translation_unit) "#ifndef ANT_SCHEDULER\n#define ANT_SCHEDULER\n\n#include <pthread.h>\n#include <semaphore.h>\n#include <stdint.h>\n\n\n// define the event\n#define TASK_EVT_ALWAY_ON 0x01\n#define TASK_EVT_ON_READABLE 0x02\n#define TASK_EVT_ON_WRITABLE 0x04\n#define TASK_EVT_ON_TIMEOUT 0x08\n#define POLL_EVENT_TO 10...
435
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 24.51, "nodes": 316, "errors": 0, "source_hash": "db656e05d876a8963a5a9c71cb3e903bd99d8db0912a8fb364224c758fa4b175", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,030
c
#ifndef STORAGE_LEVELDB_DB_SKIPLIST_H_ #define STORAGE_LEVELDB_DB_SKIPLIST_H_ #include <atomic> #include <cstdlib> #include <cassert> #include "util/arena.h" #include "util/random.h" namespace leveldb { class Arena; template <typename Key, class Comparator> class SkipList { private: struct Node; public: ...
32.39
271
(translation_unit) "#ifndef STORAGE_LEVELDB_DB_SKIPLIST_H_\n#define STORAGE_LEVELDB_DB_SKIPLIST_H_\n\n#include <atomic>\n#include <cstdlib>\n#include <cassert>\n\n#include "util/arena.h"\n#include "util/random.h"\n\nnamespace leveldb {\n\nclass Arena; \n\ntemplate <typename Key, class Comparator>\nclass SkipList {\npri...
2,674
135
{"language": "c", "success": true, "metadata": {"lines": 271, "avg_line_length": 32.39, "nodes": 1636, "errors": 0, "source_hash": "b40c66bd2516168fbdeba5ddc8560e3e651aa2dffd09097ca0a655db58d5d85a", "categorized_nodes": 1127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
3,031
c
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
37.31
36
(translation_unit) "/*\n * Copyright (C) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless...
225
13
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 37.31, "nodes": 126, "errors": 0, "source_hash": "085b0cc20ee2b89f1e7367f3f4266bd545ab56b893886b962cfa526ea18d98ec", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,032
c
#ifndef _PREFERENCES_H_ #define _PREFERENCES_H_ /* number of threads to use in OpenMP */ int prefs_numThreads; #endif
22.6
5
(translation_unit) "#ifndef _PREFERENCES_H_\n#define _PREFERENCES_H_\n\n/* number of threads to use in OpenMP */\nint prefs_numThreads;\n\n#endif\n" (preproc_ifdef) "#ifndef _PREFERENCES_H_\n#define _PREFERENCES_H_\n\n/* number of threads to use in OpenMP */\nint prefs_numThreads;\n\n#endif" (#ifndef) "#ifndef" ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.6, "nodes": 10, "errors": 0, "source_hash": "adb7b92ba6102b7ef0f417eda55481dce7158032fa1968aa57414d4fc9693bac", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _PR...
3,033
c
// // BRLMPrintImageSettings.h // BRLMPrinterKit // // Copyright © 2020 Brother Industries, Ltd. All rights reserved. // #import <Foundation/Foundation.h> #import "BRLMPrinterDefine.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, BRLMPrintSettingsCompressMode) { BRLMPrintSettingsCompressModeNone, B...
36.22
69
(translation_unit) "//\n// BRLMPrintImageSettings.h\n// BRLMPrinterKit\n//\n// Copyright © 2020 Brother Industries, Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "BRLMPrinterDefine.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n\ntypedef NS_ENUM(NSInteger, BRLMPrintSettingsCompressMode) {\n BRLMPr...
409
61
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 36.22, "nodes": 269, "errors": 0, "source_hash": "f14a953afcd5970276f26cea2c92e49705c49c4d71d17602c502f5969e2bca26", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
3,034
c
/******************************************************************************* * File Name: Pin.h * Version 2.20 * * Description: * This file contains the Alias definitions for Per-Pin APIs in cypins.h. * Information on using these APIs can be found in the System Reference Guide. * * Note: * **********...
32.52
42
(translation_unit) "/******************************************************************************* \n* File Name: Pin.h \n* Version 2.20 \n* \n* Description: \n* This file contains the Alias definitions for Per-Pin APIs in cypins.h. \n* Information on using these APIs can be found in the System Reference Guide. ...
66
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.52, "nodes": 49, "errors": 0, "source_hash": "e7349dd3aca6b7c1cf69aaad325dcf96d7ada78a35b90afc73e2b50f19534be5", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
3,035
c
#ifndef SIZECALCULATORBASE_H #define SIZECALCULATORBASE_H #include <vector> #include <utility> #include "src/math/line.h" #include "src/math/cylindersize.h" class CylinderSizeCalculatorBase { public: virtual ~CylinderSizeCalculatorBase(); virtual CylinderSize evaluate(const std::vector<Line> &lines) = 0; ...
33
16
(translation_unit) "#ifndef SIZECALCULATORBASE_H\n#define SIZECALCULATORBASE_H\n\n#include <vector>\n#include <utility>\n\n#include "src/math/line.h"\n#include "src/math/cylindersize.h"\n\nclass CylinderSizeCalculatorBase\n{\npublic:\n virtual ~CylinderSizeCalculatorBase();\n\n virtual CylinderSize evaluate(const...
134
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.0, "nodes": 90, "errors": 0, "source_hash": "6f24d5dee9b9ebdb218ea60e84bc47d31b276b8b2d128cd61e62fabdb0a4a3eb", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
3,036
c
// Copyright 2014, Hong Kong University of Science and Technology. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * This file defines procedures for time and memory measurements. * * by <NAME> * initial: 2009.9 */ #ifndef PROFILE_HE...
26.81
16
(translation_unit) "// Copyright 2014, Hong Kong University of Science and Technology. 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/*\n * This file defines procedures for time and memory measurements.\n *\n * by <NAME>\n * initial: 20...
50
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.81, "nodes": 34, "errors": 0, "source_hash": "b4438ee9ec4fdf9f8094ca9b08effe1997c110c51ed405d820bed5904396b7ac", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,037
c
#ifndef LIBWATCHMAN_PROTO_H_ #define LIBWATCHMAN_PROTO_H_ #include <jansson.h> #include "bser.h" #include "bser_parse.h" /* A wrapper around json (jansson) or bser */ enum { PROTO_BSER, PROTO_JSON }; typedef struct proto_ptr { union { json_t* json; bser_t* bser; } u; int type; } proto_t;...
22.67
132
(translation_unit) "#ifndef LIBWATCHMAN_PROTO_H_\n#define LIBWATCHMAN_PROTO_H_\n\n#include <jansson.h>\n#include "bser.h"\n#include "bser_parse.h"\n\n/* A wrapper around json (jansson) or bser */\n\nenum { PROTO_BSER, PROTO_JSON };\n\ntypedef struct proto_ptr {\n union {\n json_t* json;\n bser_t* bser;...
929
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 22.67, "nodes": 572, "errors": 0, "source_hash": "83f4c1c610d7de91bf9a47f8e66a727d30049e2440c51d3f11709192403fbcb9", "categorized_nodes": 427}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,038
c
#ifndef PEOPLE_H #define PEOPLE_H typedef enum {A,B} type_t; typedef struct { unsigned int id; type_t tipo; unsigned long genoma; char* nome; pid_t pid; short sem; } person; typedef struct nodo { person* elem; struct nodo* next; } node; typedef struct { node* first; int length; } people; type_...
23.36
36
(translation_unit) "#ifndef PEOPLE_H\n#define PEOPLE_H\n\ntypedef enum {A,B} type_t;\n\ntypedef struct {\n unsigned int id;\n type_t tipo;\n unsigned long genoma;\n char* nome;\n pid_t pid;\n short sem;\n} person;\n\ntypedef struct nodo {\n person* elem;\n struct nodo* next;\n} node;\n\ntypedef struct {\n node...
341
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.36, "nodes": 259, "errors": 0, "source_hash": "6de1ca10c207c994ee0d612d08a975678563feeef145353010477806a325b5f0", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,039
c
//***************************************************************************** // // Copyright 2015 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http ://ww...
33.85
97
(translation_unit) "//*****************************************************************************\n//\n// Copyright 2015 Microsoft Corporation\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the L...
625
31
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 33.85, "nodes": 385, "errors": 0, "source_hash": "8cb332ea45e30ff7f4874389b4ee226967c51e8f00c847da8c1257027a41cb9c", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,040
c
#ifndef _LUA_IAP_H__ #define _LUA_IAP_H__ #include "xgame/xlua.h" #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS int luaopen_iap(lua_State *L); #else #define luaopen_iap xlua_nonsupport #endif #endif
20.67
9
(translation_unit) "#ifndef _LUA_IAP_H__\n#define _LUA_IAP_H__\n\n#include "xgame/xlua.h"\n\n#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS\nint luaopen_iap(lua_State *L);\n#else\n#define luaopen_iap xlua_nonsupport\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef _LUA_IAP_H__\n#define _LUA_IAP_H__\n\n#include "xgame/xlua.h"...
41
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.67, "nodes": 34, "errors": 0, "source_hash": "0cd481461a3ccd83aea54741ff6ba9e0946a95b443a4da42cce49af3e3b62df7", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,041
c
namespace Jde::AI { void CalculateGbm(); }
10
4
(translation_unit) "namespace Jde::AI\n{\n void CalculateGbm();\n}" (function_definition) "namespace Jde::AI\n{\n void CalculateGbm();\n}" (type_identifier) "namespace" (identifier) "Jde" (ERROR) "::AI" (:) ":" (:) ":" (identifier) "AI" (compound_statement) "{\n void CalculateGbm();\...
19
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 10.0, "nodes": 10, "errors": 0, "source_hash": "7d6260c9fbaee25d6f689f94acf274fb07582ea5bf8ec840a0d6ba5817c6c6e9", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "names...
3,042
c
#pragma once //******************************************************* // Purpose: Base class for all statements // // Author: <NAME> // Email: <EMAIL> // // Date: 2/20/2015 // //******************************************************* #include <string> #include "cAstNode.h" class cStmtNode : public cAstNode { pub...
19.06
18
(translation_unit) "#pragma once\n//*******************************************************\n// Purpose: Base class for all statements\n//\n// Author: <NAME>\n// Email: <EMAIL>\n//\n// Date: 2/20/2015\n//\n//*******************************************************\n\n#include <string>\n\n#include "cAstNode.h"\n\nclass ...
52
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.06, "nodes": 21, "errors": 0, "source_hash": "920d2a7d18c775e29106f9150a70176a91253828da1060d475069f28e2f98202", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,043
c
// // UIColor+KKInitializer.h // KKInitializer // // Created by Cocoa on 2019/1/14. // Copyright © 2019年 cocoa. All rights reserved. // #import <UIKit/UIKit.h> ///// 文本主要颜色 defa //extern UIColor *kk_t1Color; //extern UIColor *kk_t2Color; //extern UIColor *kk_t3Color; //extern UIColor *kk_t4Color; /** * 1. 根据r...
27.19
68
(ERROR) "//\n// UIColor+KKInitializer.h\n// KKInitializer\n//\n// Created by Cocoa on 2019/1/14.\n// Copyright © 2019年 cocoa. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n///// 文本主要颜色 defa\n//extern UIColor *kk_t1Color;\n//extern UIColor *kk_t2Color;\n//extern UIColor *kk_t3Color;\n//extern UIColor *kk_t...
287
6
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 27.19, "nodes": 148, "errors": 0, "source_hash": "7f194896fa758e0b7c002d2b7077727c0cb681899c7647b9c55529a1acf6cbc6", "categorized_nodes": 94}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// UIColor+KKInitiali...
3,044
c
/** @file Copyright 2006 - 2010 Unified EFI, Inc.<BR> Copyright (c) 2010, Byosoft Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of ...
26.03
79
(translation_unit) "/** @file \n \n Copyright 2006 - 2010 Unified EFI, Inc.<BR> \n Copyright (c) 2010, Byosoft Corporation. All rights reserved.<BR> \n \n This program and the accompanying materials \n are licensed and made available under the terms and conditions of the BSD License \n which accompanies this distr...
147
11
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 26.03, "nodes": 116, "errors": 0, "source_hash": "277b0702d389109a1e99b18994950fd26650f007a8b4300b56a131310fd285e8", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,045
c
/* Copyright (c) 2008, 2009 Apple Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
28.73
134
(translation_unit) "/*\n Copyright (c) 2008, 2009 Apple Inc.\n \n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the "Software"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, mo...
721
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 28.73, "nodes": 401, "errors": 0, "source_hash": "b7fa2a986f4dad87d02083d998edaf640f530efefb0c6eaaea8b1865f60fc54a", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,046
c
// // CityPlaceModel.h // UgouAppios // // Created by 靓萌服饰 on 16/8/10. // Copyright © 2016年 靓萌服饰. All rights reserved. // #import <Foundation/Foundation.h> @interface CityPlaceModel : NSObject @property(nonatomic,strong)NSString *name; @property(nonatomic,strong)NSNumber *id; +(CityPlaceModel *)initWithdic:(NSDic...
25
13
(translation_unit) "//\n// CityPlaceModel.h\n// UgouAppios\n//\n// Created by 靓萌服饰 on 16/8/10.\n// Copyright © 2016年 靓萌服饰. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CityPlaceModel : NSObject\n@property(nonatomic,strong)NSString *name;\n@property(nonatomic,strong)NSNumber *id;\n+(Ci...
76
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.0, "nodes": 47, "errors": 0, "source_hash": "f7c08286507106d478518cac5ce3e4dee1080f877c03a7e7c4eba86e7f866c8b", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/Foundatio...
3,047
c
#pragma once #include "RE/BSTArray.h" #include "RE/BSTLocklessQueue.h" #include "RE/NiCullingProcess.h" #include "RE/NiSmartPointer.h" namespace RE { class BSCompoundFrustum; class BSMultiBound; class BSOcclusionPlane; class NiAVObject; class NiBound; class BSCullingProcess : public NiCullingProcess { publ...
36.57
63
(translation_unit) "#pragma once\n\n#include "RE/BSTArray.h"\n#include "RE/BSTLocklessQueue.h"\n#include "RE/NiCullingProcess.h"\n#include "RE/NiSmartPointer.h"\n\n\nnamespace RE\n{\n class BSCompoundFrustum;\n class BSMultiBound;\n class BSOcclusionPlane;\n class NiAVObject;\n class NiBound;\n\n\n class BSCullingProce...
462
12
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 36.57, "nodes": 285, "errors": 0, "source_hash": "724737f3c343f863d0d7bccd1d6f35e374f206953250ca358495412b4d280029", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,048
c
#ifndef PERIODIC_BOUNDARY_H #define PERIODIC_BOUNDARY_H #include "Boundary.h" namespace boundary { class PeriodicBoundary : public Boundary { public: bool applyCondition(int& coordinate, const int& max_value); }; } // end namespace #endif
23
10
(translation_unit) "#ifndef PERIODIC_BOUNDARY_H\n#define PERIODIC_BOUNDARY_H\n\n#include "Boundary.h"\n\nnamespace boundary {\n\nclass PeriodicBoundary : public Boundary {\n\npublic:\n bool applyCondition(int& coordinate, const int& max_value);\n\n};\n\n} // end namespace\n\n#endif\n" (preproc_ifdef) "#ifndef PERIODI...
57
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.0, "nodes": 29, "errors": 0, "source_hash": "338fd169a30edf0ceeba9da41cee2726799b5ef1b8f0adb85d44819285887802", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
3,049
c
#ifndef __LB_QUEUE_H__ #define __LB_QUEUE_H__ typedef char * Data; typedef struct _node { Data data; struct _node * next; } Node; typedef struct { Node * front; Node * rear; int size; } Queue; void QueueInit(Queue * q); int IsEmpty(Queue * q); void Enqueue(Queue * q, Data data); Data Dequeue(Queue * q); Da...
15.24
21
(translation_unit) "#ifndef __LB_QUEUE_H__\n#define __LB_QUEUE_H__\n\ntypedef char * Data;\n\ntypedef struct _node\n{\n Data data;\n struct _node * next;\n} Node;\n\ntypedef struct \n{\n Node * front;\n Node * rear;\n\n int size;\n} Queue;\n\n\nvoid QueueInit(Queue * q);\nint IsEmpty(Queue * q);\n\nvoid Enqueue(Queue *...
131
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.24, "nodes": 100, "errors": 0, "source_hash": "0c1eeb1b9a1384fc95b282ea46b9a3d51792a9f058e7dd2894eac80cdefa47a3", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,050
c
#include <stdio.h> /* Exercise 1-8 * * Write a program to count blanks, tabs, and newlines */ int main() { int c; long cc, bc, tc, nc; cc = bc = tc = nc = 0; while ((c = getchar()) != EOF) { ++cc; if (c == ' ') ++bc; if (c == '\t') ++tc; if (...
18.84
32
(translation_unit) "#include <stdio.h>\n\n/* Exercise 1-8\n * \n * Write a program to count blanks, tabs, and newlines\n */\n\nint main()\n{\n int c;\n long cc, bc, tc, nc;\n cc = bc = tc = nc = 0;\n while ((c = getchar()) != EOF) {\n ++cc;\n if (c == ' ')\n ++bc;\n if (c == ...
144
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.84, "nodes": 91, "errors": 0, "source_hash": "48f321273a3dd008f6a9e782a27e4b040268c6b011429d52ed1e3c0f223dad6b", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,051
c
/** * Copyright (c) 2018-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "logdevice/common/plugin/Plugin.h" namespace facebook { namespa...
33.38
24
(translation_unit) "/**\n * Copyright (c) 2018-present, Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n#pragma once\n\n#include "logdevice/common/plugin/Plugin.h"\...
80
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.38, "nodes": 37, "errors": 0, "source_hash": "c0fe83dd6341ca163c3cb8b3c07e5fbbc74fee669ffc60fdc5a4caff07a6100e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,052
c
// // TeamCardHeaderCell.h // NIM // // Created by chris on 15/3/7. // Copyright (c) 2015年 Netease. All rights reserved. // #import <UIKit/UIKit.h> #import "NIMCardDataSourceProtocol.h" @class NIMAvatarImageView; @protocol NIMTeamCardHeaderCellDelegate; @interface NIMTeamCardHeaderCell : UICollectionViewCell @...
31.18
28
(translation_unit) "//\n// TeamCardHeaderCell.h\n// NIM\n//\n// Created by chris on 15/3/7.\n// Copyright (c) 2015年 Netease. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "NIMCardDataSourceProtocol.h"\n@class NIMAvatarImageView;\n@protocol NIMTeamCardHeaderCellDelegate;\n\n\n\n@interface NIMTeamCardH...
207
42
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.18, "nodes": 150, "errors": 0, "source_hash": "3ddf0ba2df9dc547cb51b84a1b4da39ca42dd57a69468ef37bcb988b055d06ec", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
3,053
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" __attribute__((visibility("hidden"))) @interface WBShading : NSObject { } + (void)write:(id)arg1 to:(struct WrdShading *)arg2; + (struct CsColour)fixedUpVersionOfCo...
28.27
15
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n__attribute__((visibility("hidden")))\n@interface WBShading : NSObject\n{\n}\n\n+ (void)write:(id)arg1 to:(struct WrdShading *)arg2;\n+ (...
137
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.27, "nodes": 79, "errors": 0, "source_hash": "18dfdf659ae0b52a9139cc3a53aecf4c3b33a732aa7e26b112ff9d2d64eab3b3", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3,054
c
#include "../bml_logger.h" #include "../bml_trace.h" #include "../bml_types.h" #include "bml_norm_ellpack.h" #include "bml_types_ellpack.h" #include <stdlib.h> #include <string.h> /** Calculate the sum of squares of the elements of a matrix. * * \ingroup norm_group * * \param A The matrix * \return The sum of...
27.17
221
(translation_unit) "#include "../bml_logger.h"\n#include "../bml_trace.h"\n#include "../bml_types.h"\n#include "bml_norm_ellpack.h"\n#include "bml_types_ellpack.h"\n\n#include <stdlib.h>\n#include <string.h>\n\n/** Calculate the sum of squares of the elements of a matrix.\n *\n * \ingroup norm_group\n *\n * \param A ...
835
0
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 27.17, "nodes": 492, "errors": 0, "source_hash": "81671efe67792796a15440046d84fd1f2054e7e57d3385d5688abe6d7b65d71e", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,055
c
#ifndef _ASM_IA64_POLL_H #define _ASM_IA64_POLL_H /* * poll(2) bit definitions. Chosen to be compatible with Linux/x86. * * Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co * <NAME> <<EMAIL>> */ #define POLLIN 0x0001 #define POLLPRI 0x0002 #define POLLOUT 0x0004 #define POLLERR 0x0008 #define POLLHUP 0x00...
21.62
26
(translation_unit) "#ifndef _ASM_IA64_POLL_H\n#define _ASM_IA64_POLL_H\n\n/*\n * poll(2) bit definitions. Chosen to be compatible with Linux/x86.\n *\n * Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co\n * <NAME> <<EMAIL>>\n */\n\n#define POLLIN 0x0001\n#define POLLPRI 0x0002\n#define POLLOUT 0x0004\n#define POLL...
79
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.62, "nodes": 69, "errors": 0, "source_hash": "4a16cb9148c6983ec4456ceac377eb6499528f125ba6d80e4cbcdfac4ee8c514", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,056
c
/* (c) Copyright 2012-2013 DirectFB integrated media GmbH (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org) (c) Copyright 2000-2004 Convergence (integrated media) GmbH All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <...
40.76
194
(translation_unit) "/*\n (c) Copyright 2012-2013 DirectFB integrated media GmbH\n (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)\n (c) Copyright 2000-2004 Convergence (integrated media) GmbH\n\n All rights reserved.\n\n Written by <NAME> <<EMAIL>>,\n <NAME...
1,526
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 40.76, "nodes": 850, "errors": 0, "source_hash": "d4f0cc0fe804d61778a32a653823e12e27e34e51da582df152e7f740a907b6e7", "categorized_nodes": 643}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,057
c
// // ShowMsgElem.h // IMDemo // // Created by  Admin on 2018/1/9. // Copyright © 2018年  Admin. All rights reserved. // #import <Foundation/Foundation.h> /** 判断文字中是否包含表情 */ #define MessageIsImage(text) [text hasPrefix:@"img["] && [text containsString:@"img["] && [text containsString:@"]"] && [[text substringFro...
37.61
33
(translation_unit) "//\n// ShowMsgElem.h\n// IMDemo\n//\n// Created by  Admin on 2018/1/9.\n// Copyright © 2018年  Admin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/** 判断文字中是否包含表情 */\n#define MessageIsImage(text) [text hasPrefix:@"img["] && [text containsString:@"img["] && [text containsStri...
278
32
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 37.61, "nodes": 177, "errors": 0, "source_hash": "527a45de77dbbf57868d657c62f41eccb6305922cc4ec9323d0b158e0822a58d", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Fou...
3,058
c
/* * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * 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 this permission noti...
34.19
225
(translation_unit) "/*\n * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")\n * Copyright (C) 1999-2002 Internet Software Consortium.\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 above\n * copyright notic...
1,573
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 34.19, "nodes": 942, "errors": 0, "source_hash": "d43e977fceeb7883d926b9ae9a48441688d971113cda3d8d200d1ca6be652ce6", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,059
c
//LCD function header file //for mega128 board //<NAME> 10.7.09 void cursor_home(void); void home_line2(void); void fill_spaces(void); void string2lcd(char *lcd_str); void strobe_lcd(void); void clear_display(void); void cursor_home(void); void home_line2(void); void fill_spaces(void); void char2lcd(char a_char)...
23.81
16
(translation_unit) "//LCD function header file\n//for mega128 board\n//<NAME> 10.7.09\n\nvoid cursor_home(void);\nvoid home_line2(void); \nvoid fill_spaces(void);\nvoid string2lcd(char *lcd_str);\nvoid strobe_lcd(void);\nvoid clear_display(void);\nvoid cursor_home(void);\nvoid home_line2(void);\nvoid fill_spaces(v...
141
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.81, "nodes": 98, "errors": 0, "source_hash": "c289acf57aa11908b642128cfea07f36466ab5c8c9bc2053a0796fc7c7d757a2", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void curso...
3,060
c
/* * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-04-01 wangyq the first version */ #ifndef DRV_PM_H__ #define DRV_PM_H__ #include <rthw.h> #include <board.h> #include <rtdevice.h...
24.05
22
(translation_unit) "/*\n * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2019-04-01 wangyq the first version\n */\n\n#ifndef DRV_PM_H__\n#define DRV_PM_H__\n\n#include <rthw.h>\n#incl...
90
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.05, "nodes": 72, "errors": 0, "source_hash": "ae31d0a7a598305dbf6edd2e26e6a3263e0228acb4243127e61416a45ab2a3a8", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,061
c
#pragma once // 3.3.3 Context class #include "SYCL/detail/common.h" #include "SYCL/detail/debug.h" #include "SYCL/device.h" #include "SYCL/device_selector.h" #include "SYCL/error_handler.h" #include "SYCL/info.h" #include "SYCL/param_traits.h" #include "SYCL/refc.h" namespace cl { namespace sycl { // Forward declar...
37.08
133
(translation_unit) "#pragma once\n\n// 3.3.3 Context class\n\n#include "SYCL/detail/common.h"\n#include "SYCL/detail/debug.h"\n#include "SYCL/device.h"\n#include "SYCL/device_selector.h"\n#include "SYCL/error_handler.h"\n#include "SYCL/info.h"\n#include "SYCL/param_traits.h"\n#include "SYCL/refc.h"\n\nnamespace cl {\nn...
1,060
63
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 37.08, "nodes": 623, "errors": 0, "source_hash": "038e43d0ebe2403fa51118b2e5ef4870f531175dc65daa8cf2e98da7e740f8ba", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,062
c
// // SSSP.h // SSSP // after export we can import like a Module // Created by <NAME> on 5/8/16. // #import <Cocoa/Cocoa.h> //! Project version number for SSSP. FOUNDATION_EXPORT double SSSPVersionNumber; //! Project version string for SSSP. FOUNDATION_EXPORT const unsigned char SSSPVersionString[]; // In this ...
35.25
12
(translation_unit) "//\n// SSSP.h\n// SSSP\n// after export we can import like a Module\n// Created by <NAME> on 5/8/16.\n//\n\n#import <Cocoa/Cocoa.h>\n\n//! Project version number for SSSP.\nFOUNDATION_EXPORT double SSSPVersionNumber;\n\n//! Project version string for SSSP.\nFOUNDATION_EXPORT const unsigned char ...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.25, "nodes": 15, "errors": 0, "source_hash": "c8c6cec0e7eccdb8cdc13f7b70495d46ad83efccd7c78d94cb3ca3380a2af05d", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,063
c
#define GDT_ADDR 0x200800 //GDT地址 #define IDT_ADDR 0x200000 //IDT地址 /* GDT数据结构体 */ struct GDT_data { short limit_low, base_low; char base_mid, access; char limit_high, base_high; }; /* IDT数据结构体 */ struct IDT_data { short offset_low, selector; char count, access; short offset_high; }; void cpu_init(); void GDT_s...
19.21
19
(translation_unit) "#define GDT_ADDR 0x200800 //GDT地址\n#define IDT_ADDR 0x200000 //IDT地址\n\n/* GDT数据结构体 */\nstruct GDT_data\n{\n short limit_low, base_low;\n char base_mid, access;\n char limit_high, base_high;\n};\n/* IDT数据结构体 */\nstruct IDT_data\n{\n short offset_low, selector;\n char count, access;\n short offset_hi...
111
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.21, "nodes": 74, "errors": 0, "source_hash": "e8e8455bcd213adcd18a4f69087a875612ad0d2c12ecc0b1aa267f831125e745", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define GD...
3,064
c
/**ARGS: -DFOO */ /**SYSCODE: = 0 */ =L No newline on last line of the file
14.2
5
(translation_unit) "/**ARGS: -DFOO */\n/**SYSCODE: = 0 */\n=L\nNo newline on last\nline of the file" (comment) "/**ARGS: -DFOO */" (comment) "/**SYSCODE: = 0 */" (ERROR) "=" (=) "=" (declaration) "L\nNo" (type_identifier) "L" (identifier) "No" (;) "" (declaration) "newline on" (type_identi...
21
2
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.2, "nodes": 15, "errors": 0, "source_hash": "fe72e564cfcfb93e05469c2368302da38ef8db05ca839d00973162e6bd0d052a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "=", "parent": null...
3,065
c
// Biblioteca Pilha typedef struct pilha{ int i; struct pilha *prox; }Pilha; bool pop(Pilha **topo); void push(Pilha **p, int vert); Pilha* inicializa(); int verifica(Pilha *p, int vertice); void printPilha(Pilha *p);
19.64
11
(translation_unit) "// Biblioteca Pilha\n\ntypedef struct pilha{\n int i;\n struct pilha *prox;\n}Pilha;\n\n\n\nbool pop(Pilha **topo);\nvoid push(Pilha **p, int vert);\nPilha* inicializa();\nint verifica(Pilha *p, int vertice);\nvoid printPilha(Pilha *p);\n" (comment) "// Biblioteca Pilha" (type_definition) ...
98
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.64, "nodes": 73, "errors": 0, "source_hash": "f47c96f1b12ec61bdec2d832b364eb7aaa36eca145236cc7606949bbe3449f65", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
3,066
c
// Taylor Series print [I don't get it :(] // e^x = 1 + x/1 + x^2/2! + x^3/3!..... // time is O(n^2) #include <stdio.h> double e(int x, int y){ // x==e, y== x! static double p = 1; static double f = 1; if (y <= 0){ return 1; } double r = e(x, y-1); p *= x; f *= y...
16.22
23
(translation_unit) "// Taylor Series print [I don't get it :(] \n// e^x = 1 + x/1 + x^2/2! + x^3/3!..... \n// time is O(n^2) \n \n#include <stdio.h> \n \ndouble e(int x, int y){ // x==e, y== x! \n static double p = 1; \n static double f = 1; \n \n if (y <= 0){ \n return 1; \n } \n \n double r = e...
129
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 16.22, "nodes": 78, "errors": 0, "source_hash": "92c1ca2195baff2f047c17c40873b0e9961974b0b8f3ad61508c54078af29f35", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,067
c
/* * Copyright (C) 2015 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be use...
31.11
112
(translation_unit) "/*\n * Copyright (C) 2015 Intel Corporation. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License version\n * 2 as published by the Free Software Foundation.\n *\n * This program is distributed in t...
782
1
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 31.11, "nodes": 525, "errors": 0, "source_hash": "aef6cbb088e5200089ea27d66805739c39b9c3f591ee83d9e4f0b22332eb5531", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,068
c
#pragma once #include "Platform.h" #include "Animation.h" class Projectile: public Animation { public: //ctor dtor Projectile(sf::Texture* projTexture); //sets void setBodyPosition(sf::Vector2f playerPos, bool faceRight); void setFaceRight(bool faceRight); ...
25.36
39
(translation_unit) "#pragma once \n \n#include "Platform.h" \n#include "Animation.h" \n \nclass Projectile: public Animation \n{ \n public: \n //ctor dtor \n Projectile(sf::Texture* projTexture); \n \n //sets \n void setBodyPosition(sf::Vector2f playerPos, bool faceRight); \n void ...
224
13
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 25.36, "nodes": 134, "errors": 0, "source_hash": "179b55e8c0aea58eaf3971f83e55ba48d80f434028b06a6b899a2d38a4eb8cb4", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,069
c
// Copyright (c) 2015-2018 <NAME> (at gmail dot com) // This file is distributed under the MIT License. #ifndef OFP_YAML_OUTPUTJSON_H_ #define OFP_YAML_OUTPUTJSON_H_ #include "ofp/yaml/yllvm.h" namespace ofp { namespace yaml { OFP_BEGIN_IGNORE_PADDING class OutputJson : public llvm::yaml::IO { public: explicit ...
37.12
84
(translation_unit) "// Copyright (c) 2015-2018 <NAME> (at gmail dot com)\n// This file is distributed under the MIT License.\n\n#ifndef OFP_YAML_OUTPUTJSON_H_\n#define OFP_YAML_OUTPUTJSON_H_\n\n#include "ofp/yaml/yllvm.h"\n\nnamespace ofp {\nnamespace yaml {\n\nOFP_BEGIN_IGNORE_PADDING\n\nclass OutputJson : public llvm...
899
38
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 37.12, "nodes": 526, "errors": 0, "source_hash": "98efb697b67f8e4e8748b9da7003a684edb9ae681f28d7d61a479f8298957f7d", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,070
c
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int n, m; float p, q; scanf("%d %d", &n, &m); scanf("%f %f", &p, &q); printf("%d %d\r\n%.1f %.1f", n + m, n - m, p + q, p - q); return 0; }
18.54
13
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main()\n{\n int n, m;\n float p, q;\n scanf("%d %d", &n, &m);\n scanf("%f %f", &p, &q);\n\n printf("%d %d\r\n%.1f %.1f", n + m, n - m, p + q, p - q);\n return 0;\n}\n" (preproc_include) "#inclu...
111
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.54, "nodes": 65, "errors": 0, "source_hash": "381fe24cb3d19a49e0f1dd10f7233d3cf3ca32d43d47adf55abdcec8e9b77078", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,071
c
/* * Copyright 2015 <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef MULTILINETEXTVIEW_H #define MULTILINETEXTVIEW_H #include <SupportDefs.h> #include <View.h> class MultiLineTextDrawer; class MultiLineStringView : public BView { public: MultiLineStringView(BRec...
25.55
33
(translation_unit) "/*\n * Copyright 2015 <NAME> <<EMAIL>>\n * All rights reserved. Distributed under the terms of the MIT license.\n */\n \n#ifndef MULTILINETEXTVIEW_H\n#define MULTILINETEXTVIEW_H\n\n#include <SupportDefs.h>\n#include <View.h>\n\nclass MultiLineTextDrawer;\nclass MultiLineStringView : public BView {\n...
216
5
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.55, "nodes": 151, "errors": 0, "source_hash": "18bf53274a325f5441797ac1d31650649fd1b47f9df1894a1612c0cf9dddb157", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,072
c
#include "../library/dataStructures/Graph/graph.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void scanPairs(Edge** edges, int* lazyStudents, int countPairs, int lazyStudentsCount) { for (int i = 0; i < countPairs; ++i) { int start = 0; int end = 0; scanf("%d %d", &start, &e...
32.15
47
(translation_unit) "#include "../library/dataStructures/Graph/graph.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nvoid scanPairs(Edge** edges, int* lazyStudents, int countPairs, int lazyStudentsCount)\n{\n for (int i = 0; i < countPairs; ++i) {\n int start = 0;\n int end = 0;\n ...
490
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.15, "nodes": 295, "errors": 0, "source_hash": "a38ff33067d02dbd362b9797f14a23fcd818a90ddde87dd79b4fe9b65164422d", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,073
c
#ifndef MYSPECTRUMHANDLER #define MYSPECTRUMHANDLER #include "STFT.h" //#include "SharedMemoryIO.h" #include <iostream> #include <vector> class MySpectrumHandler : public SpectrumHandler { public: MySpectrumHandler( double vWhistleThreshold, int nWhistleBegin, int nWhistleEnd, unsigned nWhistleMissFrames,...
26.1
127
(translation_unit) "#ifndef MYSPECTRUMHANDLER\n#define MYSPECTRUMHANDLER\n\n#include "STFT.h"\n\n//#include "SharedMemoryIO.h"\n\n#include <iostream>\n#include <vector>\n\nclass MySpectrumHandler : public SpectrumHandler\n{\npublic:\n\n MySpectrumHandler(\n double vWhistleThreshold,\n int nWhistleBegin,\n int nWhist...
908
19
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 26.1, "nodes": 574, "errors": 0, "source_hash": "56140a61cad6ee37791066cb36c11bff71326b16b53811eb7700e9fe4d2852e2", "categorized_nodes": 389}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,074
c
/************************************************************************/ /* SDL用 ジョイスティック入力処理 */ /* */ /* このファイルは、 joystick.c からインクルードされます */ /* */ /************************************************************************/ #if defined(JOY_SDL) #include <stdio.h> #include <SDL.h> #include "quasi...
24.8
149
(translation_unit) "/************************************************************************/\n/* SDL用 ジョイスティック入力処理 */\n/* */\n/* このファイルは、 joystick.c からインクルードされます */\n/* */\n/************************************************************************/\n#if defined(JOY_SDL)\n\n#include <stdio.h>\n#inc...
1,104
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 24.8, "nodes": 614, "errors": 0, "source_hash": "203ea60c52033c4ae11a5bfbb0384bde11fd82204feb67b8c50b50d9769e3d82", "categorized_nodes": 454}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "e \"quasi...
3,075
c
#include<stdio.h> int main (){ int i ,num, maior ; printf("digite um numero : "); scanf("%d",&num); i = num ; maior = num; while(i != 0 ){ printf("digite um numero : "); scanf("%d",&num); i = num ; if (num > maior){ maior = num ...
15.28
25
(translation_unit) "#include<stdio.h>\n\nint main (){\n \n int i ,num, maior ;\n \n printf("digite um numero : ");\n scanf("%d",&num);\n \n i = num ;\n maior = num;\n\n \n while(i != 0 ){\n printf("digite um numero : ");\n scanf("%d",&num);\n i = num ;\n\n if (n...
139
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 15.28, "nodes": 68, "errors": 0, "source_hash": "af5bb4798072a0406f6133215bcd6c563d74032178f6054792b060073852dcd1", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,076
c
// // AbstractViewController.h // OctSurfer // // Copyright (c) 2012 yo_waka. All rights reserved. // #import <UIKit/UIKit.h> @interface AbstractViewController : UIViewController <UIGestureRecognizerDelegate> @property (nonatomic, assign) BOOL hiddenTabBar; - (void) showLogin: (BOOL)animated; - (void) setScrol...
31.61
18
(translation_unit) "//\n// AbstractViewController.h\n// OctSurfer\n//\n// Copyright (c) 2012 yo_waka. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface AbstractViewController : UIViewController <UIGestureRecognizerDelegate>\n\n@property (nonatomic, assign) BOOL hiddenTabBar;\n\n- (void) showLogin: ...
165
22
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.61, "nodes": 96, "errors": 0, "source_hash": "05992fb93cf9c6df34d04e3523d28bc9d2feb0ea9add4f4966b0ea10c413b3fa", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,077
c
#pragma once #include <memory> namespace db { // This class will be a singleton class ConnectionManager { public: //Here we can use the Q_DISABLE_COPY macro or prohibit copying through the constructor ConnectionManager(const ConnectionManager&) = delete; ConnectionManager& operator=(const ConnectionManager...
26.95
20
(translation_unit) "#pragma once\n#include <memory>\n\nnamespace db\n{\n// This class will be a singleton\nclass ConnectionManager\n{\npublic:\n //Here we can use the Q_DISABLE_COPY macro or prohibit copying through the constructor\n ConnectionManager(const ConnectionManager&) = delete;\n ConnectionManager& op...
111
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.95, "nodes": 55, "errors": 0, "source_hash": "94158615461341d824fffb578c5f89d247c35be9efb685263139f0a8ffde5bf3", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,078
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "NSObject.h" @protocol SelectAttachmentViewDataSource <NSObject> @optional -(id)appIDAtIndex:(unsigned long)index; -(id)descriptionForAttachmentAtIndex:(unsi...
26.82
17
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "NSObject.h"\n\n\n@protocol SelectAttachmentViewDataSource <NSObject>\n@optional\n-(id)appIDAtIndex:(unsigned long)index;\n-(id)desc...
108
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.82, "nodes": 70, "errors": 0, "source_hash": "fc56b3bcebe2ee2fb64472cfe971f38e1a74926a6ff5967d112c126c789d8746", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3,079
c
#include "luat_base.h" #include "luat_malloc.h" #include "luat_msgbus.h" #include "luat_timer.h" #include "luat_gpio.h" #include "rtthread.h" #include <rtdevice.h> #include "drivers/pin.h" #define DBG_TAG "luat.gpio" #define DBG_LVL DBG_INFO #include <rtdbg.h> // void luat_gpio_mode(int pin, int ...
24.97
93
(translation_unit) "#include "luat_base.h"\n#include "luat_malloc.h"\n#include "luat_msgbus.h"\n#include "luat_timer.h"\n#include "luat_gpio.h"\n\n#include "rtthread.h"\n#include <rtdevice.h>\n#include "drivers/pin.h"\n\n#define DBG_TAG "luat.gpio"\n#define DBG_LVL DBG_INFO\n#include <rtdbg.h>\n\n//...
549
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 24.97, "nodes": 330, "errors": 0, "source_hash": "b9bb7d85dbf98cfc93ca04a620357de39a77a3dd2006bd8eeb5d543e6bfac86f", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,080
c
#ifndef STACK_H #define STACK_H #include <stdexcept> template<class T> class Stack { public: Stack(); Stack(size_t n); Stack(size_t n, const T &repeatItem); Stack(const Stack &other); ~Stack(); T top() const; T bottom() const; T pop(); void push(const T &item); S...
17.46
115
(translation_unit) "#ifndef STACK_H\n#define STACK_H\n\n#include <stdexcept>\n\ntemplate<class T>\nclass Stack\n{\npublic:\n Stack();\n Stack(size_t n);\n Stack(size_t n, const T &repeatItem);\n Stack(const Stack &other);\n ~Stack();\n \n T top() const;\n T bottom() const;\n \n T pop();\n ...
922
65
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 17.46, "nodes": 549, "errors": 0, "source_hash": "eea582761eff67d1a254274a237d16d1ba26bafa83a655ac6686aefa0a00cd97", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,081
c
#include <stdio.h> #include <stdlib.h> #include "Queue.h" #include "Stack.h" int main(void) { queue_t *q; stack_t *st = st_create(sizeof(int)); int numbers[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int crt_val; printf("-------------------------------- Test stack --------------------------------\n"); st_push(st, ...
25.52
96
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "Queue.h"\n#include "Stack.h"\n\nint\nmain(void)\n{\n queue_t *q;\n stack_t *st = st_create(sizeof(int));\n int numbers[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n int crt_val;\n\n printf("-------------------------------- Test stack -----------------...
847
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 25.52, "nodes": 442, "errors": 0, "source_hash": "09a3fef109fc40ee279ec908412d2ea59f9a2f0d8e3c04be6157c3c870ba8332", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,082
c
/* * $Header$ * $Name$ * * * A PTHREADS convenience wrapper intended primarily for use with * gcc/g77 which does not support an "automatic" (here, meant as a * compiler-supported) threading mechanism. * */ #ifdef HAVE_PTHREADS #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/t...
23.38
50
(translation_unit) "/*\n * $Header$\n * $Name$\n *\n *\n * A PTHREADS convenience wrapper intended primarily for use with\n * gcc/g77 which does not support an "automatic" (here, meant as a\n * compiler-supported) threading mechanism.\n *\n */\n\n#ifdef HAVE_PTHREADS\n\n#include <stdlib.h>\n#include <unistd.h>\n#i...
276
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 23.38, "nodes": 185, "errors": 0, "source_hash": "556a87a48821045390aad20dfb0b515fee3adf3dfb921a30a9753453cc2177a6", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
3,083
c
/*------------------------------------------------------------------------- * * hashscan.c * manage scans on hash tables * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /home/hj...
29.69
162
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * hashscan.c\n * manage scans on hash tables\n *\n * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\n *\n *\n * IDENTIFI...
901
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 29.69, "nodes": 576, "errors": 0, "source_hash": "4989d91ac2dfe45bf39da7cc5b96faaaba5ed2232c9e015ca39ba59c8c1e7c00", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,084
c
/* * Copyright (C) 2012-2015, <NAME> <http://juan.cl/> * All rights reserved. * * This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools * MultimediaTools is made available under the terms of the BSD 2-Clause License. */ #include "collection_util.h" struct MyVectorObj { void **ar...
29.84
147
(translation_unit) "/*\n * Copyright (C) 2012-2015, <NAME> <http://juan.cl/>\n * All rights reserved.\n *\n * This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools\n * MultimediaTools is made available under the terms of the BSD 2-Clause License.\n */\n\n#include "collection_util.h"\n\ns...
1,446
1
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 29.84, "nodes": 917, "errors": 0, "source_hash": "49acd15052a931b0b37f007725f34cc339e53d31533d8ddebdd5675742dac691", "categorized_nodes": 657}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,085
c
// SPDX-License-Identifier: GPL-2.0-or-later /* * k8temp.c - Linux kernel module for hardware monitoring * * Copyright (C) 2006 <NAME> <<EMAIL>> * * Inspired from the w83785 and amd756 drivers. */ #include <linux/module.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/pci.h> #include <linux/hwm...
29.07
182
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * k8temp.c - Linux kernel module for hardware monitoring\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n *\n * Inspired from the w83785 and amd756 drivers.\n */\n\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/slab.h>\n#include <...
1,398
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.07, "nodes": 861, "errors": 0, "source_hash": "e813939df67bef707e48a66ea5e67afd8cc78a025af6448f85814d5cd89aa9fd", "categorized_nodes": 665}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,086
c
#ifndef TINY_OS_KB_DRIVER_H #define TINY_OS_KB_DRIVER_H #include <kernel/sysmsg/sysmsg.h> /* 键盘驱动 */ struct PCB; /* 键盘驱动初始化 */ void init_kb_driver(); /* 订阅键盘消息 通常由进程自己调用 */ void subscribe_kb(struct PCB *pcb); /* 订阅字符输入消息 */ void subscribe_char(struct PCB *pcb); /* 查询某个按键的状态 */ bool kis_key_presse...
17.96
26
(translation_unit) "#ifndef TINY_OS_KB_DRIVER_H\n#define TINY_OS_KB_DRIVER_H\n\n#include <kernel/sysmsg/sysmsg.h>\n\n/*\n 键盘驱动\n*/\n\nstruct PCB;\n\n/* 键盘驱动初始化 */\nvoid init_kb_driver();\n\n/*\n 订阅键盘消息\n 通常由进程自己调用\n*/\nvoid subscribe_kb(struct PCB *pcb);\n\n/*\n 订阅字符输入消息\n*/\nvoid subscribe_char(struct PCB ...
86
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.96, "nodes": 61, "errors": 0, "source_hash": "a827e681e4d4a4657737681b819b44a8c54cdbe2f4f319761ecb82465dcd7002", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,087
c
/* * Copyright (C) 2018-2019 <NAME> */ #include "math.h" #include <math.h> #include <vtm/core/error.h> int vtm_math_size_add(size_t a, size_t b, size_t *r) { size_t res; res = a + b; if (res < a) return VTM_E_OVERFLOW; *r = res; return VTM_OK; } int vtm_math_size_mul(size_t a, size_t b, size_t *r) { siz...
17.44
32
(translation_unit) "/*\n * Copyright (C) 2018-2019 <NAME>\n */\n\n#include "math.h"\n\n#include <math.h>\n#include <vtm/core/error.h>\n\nint vtm_math_size_add(size_t a, size_t b, size_t *r)\n{\n size_t res;\n\n res = a + b;\n if (res < a)\n return VTM_E_OVERFLOW;\n\n *r = res;\n return VTM_OK;\n}\n\nint vtm_math_size_...
208
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 17.44, "nodes": 143, "errors": 0, "source_hash": "cdf1e1945d8419afd855781e6dce40295150347a349d00e5d1f11408a35440c8", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,088
c
// // ATTool2.h // ATToolDemo // // Created by 叶成泉 on 2017/11/3. // Copyright © 2017年 叶成泉. All rights reserved. // #import <Foundation/Foundation.h> @interface ATTool2 : NSObject + (NSString *)hello2; @end
18.09
11
(translation_unit) "//\n// ATTool2.h\n// ATToolDemo\n//\n// Created by 叶成泉 on 2017/11/3.\n// Copyright © 2017年 叶成泉. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ATTool2 : NSObject\n\n+ (NSString *)hello2;\n\n@end\n" (comment) "//" (comment) "// ATTool2.h" (comment) "// ATToolD...
37
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.09, "nodes": 21, "errors": 0, "source_hash": "8943927df9d1aa82b268c135c0cb37d23a6cb74a2fa35c219e03fbe8a86bf66c", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Foun...
3,089
c
// // EmbedlyTestViewController.h // EmbedlyTest // // Created by <NAME> on 2/16/11. // Copyright 2011 tboetig. All rights reserved. // #import <UIKit/UIKit.h> #import "Embedly.h" #import "MBProgressHUD.h" @interface EmbedlyTestViewController : UIViewController <MBProgressHUDDelegate, UITextFieldDelegate, Embedly...
33.62
29
(translation_unit) "//\n// EmbedlyTestViewController.h\n// EmbedlyTest\n//\n// Created by <NAME> on 2/16/11.\n// Copyright 2011 tboetig. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Embedly.h"\n#import "MBProgressHUD.h"\n\n@interface EmbedlyTestViewController : UIViewController <MBProgressHUDDelega...
232
20
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 33.62, "nodes": 164, "errors": 0, "source_hash": "d4effb70a90c2e72a0dac931dd718378e6e04b3175d46c2b213995b8979ea692", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
3,090
c
#pragma once #include <type_traits> #include <Core/Field.h> #include <DataTypes/DataTypeNumberBase.h> #include <DataTypes/Serializations/SerializationNumber.h> namespace DB { template <typename T> class DataTypeNumber final : public DataTypeNumberBase<T> { bool equals(const IDataType & rhs) const override { ret...
38.51
43
(translation_unit) "#pragma once\n\n#include <type_traits>\n#include <Core/Field.h>\n#include <DataTypes/DataTypeNumberBase.h>\n#include <DataTypes/Serializations/SerializationNumber.h>\n\n\nnamespace DB\n{\n\ntemplate <typename T>\nclass DataTypeNumber final : public DataTypeNumberBase<T>\n{\n bool equals(const IDa...
430
30
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 38.51, "nodes": 305, "errors": 0, "source_hash": "e6cf14d0297856920144064c296c6fafd1657b1cb75432eae7908c4dfa8dda32", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,091
c
#ifndef __ROTATION_H__ #define __ROTATION_H__ #include <cmath> #include <armadillo> #include "matrix/CrossProductPart.h" #include "matrix/CrossProductMatrixPart.h" /* class for rotation matrices built from axis-angle representations * */ class Rotation{ public: /*----------------------------------------------...
37.1
130
(translation_unit) "#ifndef __ROTATION_H__\n#define __ROTATION_H__\n\n#include <cmath>\n#include <armadillo>\n\n#include "matrix/CrossProductPart.h"\n#include "matrix/CrossProductMatrixPart.h"\n\n/* class for rotation matrices built from axis-angle representations\n *\n */\n\nclass Rotation{\n\npublic:\n\n /*---------...
1,326
27
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 37.1, "nodes": 847, "errors": 0, "source_hash": "d2305966dc62830f6f23492b1d29a057ebc7c572dea6f6df189cf3386b3411a1", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,092
c
#pragma once #include <Core/Block.h> #include <Formats/FormatSettings.h> #include <Processors/Formats/IRowOutputFormat.h> namespace DB { class WriteBuffer; class Context; /** Stream to output data in format "each value in separate row". * Usable to show few rows with many columns. */ class VerticalRowOutputFo...
39.85
39
(translation_unit) "#pragma once\n\n#include <Core/Block.h>\n#include <Formats/FormatSettings.h>\n#include <Processors/Formats/IRowOutputFormat.h>\n\n\nnamespace DB\n{\n\nclass WriteBuffer;\nclass Context;\n\n\n/** Stream to output data in format "each value in separate row".\n * Usable to show few rows with many colu...
331
19
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 39.85, "nodes": 192, "errors": 0, "source_hash": "924b1e020c798f17ae0a4a145cd369d409bcba73c1004129ff383548c9237c7b", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,093
c
/* ******************************************************************************* * * Copyright (C) 2001-2010, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: ucol_tok.h * encoding: ...
32.99
183
(translation_unit) "/*\n*******************************************************************************\n*\n* Copyright (C) 2001-2010, International Business Machines\n* Corporation and others. All Rights Reserved.\n*\n*******************************************************************************\n* file name: ...
901
8
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 32.99, "nodes": 653, "errors": 0, "source_hash": "bba9781c65d405ba892557d9001c135d0b4b9aa26ef2b659268108c0646fa54a", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,094
c
#pragma once #include "ApplicationEvents.h" #include "KeybordEvents.h" #include "MouseEvents.h"
23
4
(translation_unit) "#pragma once\n\n#include "ApplicationEvents.h"\n#include "KeybordEvents.h"\n#include "MouseEvents.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ApplicationEvents.h"\n" (#include) "#include" (string_literal) ""A...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 23.0, "nodes": 12, "errors": 0, "source_hash": "0af741f3db34e3a66ab980955594701410819ff12ebdc4f13a2a612c55012d81", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
3,095
c
// // RAContactViewController.h // Ride // // Created by <NAME> on 4/3/18. // Copyright © 2018 <EMAIL>. All rights reserved. // #import "BaseViewController.h" @interface RAContactViewController : BaseViewController @property (nonatomic, nonnull) NSString *driverFirstName; @property (nonatomic, nonnull, copy) void...
28
12
(translation_unit) "//\n// RAContactViewController.h\n// Ride\n//\n// Created by <NAME> on 4/3/18.\n// Copyright © 2018 <EMAIL>. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\n@interface RAContactViewController : BaseViewController\n@property (nonatomic, nonnull) NSString *driverFirstName;\n@property...
66
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.0, "nodes": 43, "errors": 0, "source_hash": "4af86e758371b98fb05b557aab2893ac8f57ac15702be5ad92d4e32f91675c39", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"B...
3,096
c
//------------------------------------------------------------------------------ // <copyright file="NuiAccelerometerStream.h" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ #pragma ...
30.82
39
(translation_unit) "//------------------------------------------------------------------------------\n// <copyright file="NuiAccelerometerStream.h" company="Microsoft">\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// </copyright>\n//----------------------------------------------------------------...
114
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.82, "nodes": 56, "errors": 0, "source_hash": "52d8a0b862cb9cd953233a9eebc69402f51a65bd3860a2beec2379daabcc6260", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,097
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKit/_UIProgressiveBlurPresentationController.h> @class UIView; @interface _TVMusicAddToPlaylistPresentationController : _UIProgressiveBlurPr...
43.11
18
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <UIKit/_UIProgressiveBlurPresentationController.h>\n\n@class UIView;\n\n@interface _TVMusicAddToPlaylistPresentationCon...
120
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 43.11, "nodes": 66, "errors": 0, "source_hash": "e3d3b7051ff241a5fb15accd8e255f6f8171cf45ec0c1de856e5b7f4cc8f4889", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,098
c
/* * Mesa 3-D graphics library * Version: 3.5 * * Copyright (C) 1999-2001 <NAME> All Rights Reserved. * * 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, inclu...
42.19
205
(translation_unit) "/*\n * Mesa 3-D graphics library\n * Version: 3.5\n *\n * Copyright (C) 1999-2001 <NAME> All Rights Reserved.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software...
2,051
4
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 42.19, "nodes": 1236, "errors": 0, "source_hash": "4f97cb04dee35b6577624f1aced853a9ea719f340c084f1a15d0cc8949351c10", "categorized_nodes": 991}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text"...
3,099