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
#ifndef __cy_output_h #define __cy_output_h typedef struct { int a; }cy_output_type; extern cy_output_type cy_output_; void cy_output_init(void); void cy_output_polling(void); #endif //__cy_output_h
6.82
28
(translation_unit) "#ifndef __cy_output_h\n#define __cy_output_h\n\n\n\n\n\n\n\n\n\n\n\n\ntypedef struct {\n\n int a;\n}cy_output_type;\n\n\n\n\n\n\n\n\n\nextern cy_output_type cy_output_;\n\n\n\n\n\n\n\n\n\n\n\nvoid cy_output_init(void);\nvoid cy_output_polling(void);\n\n\n\n\n\n\n\n\n#endif //__cy_output_h\n" (prep...
48
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 6.82, "nodes": 34, "errors": 0, "source_hash": "30b376b49d901a1edfbfd493372b09e3cf331fcb499f7e0ddd0da8e5d5a7bfa1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
12,600
c
#include "../../../src/svg/qsvgfont_p.h"
40
1
(translation_unit) "#include "../../../src/svg/qsvgfont_p.h" \n" (preproc_include) "#include "../../../src/svg/qsvgfont_p.h" \n" (#include) "#include" (string_literal) ""../../../src/svg/qsvgfont_p.h"" (") """ (string_content) "../../../src/svg/qsvgfont_p.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 40.0, "nodes": 3, "errors": 0, "source_hash": "97a47b198a4120d2cda4441347a0bebde37db6c10a2d9674b29d9949fc7fa947", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
12,601
c
#ifndef INTEGERVARIABLE_H #define INTEGERVARIABLE_H #include <Engine/Core/Parser/Variable/Variable.h> template<> class Variable<int32>: public AbstractVariable { public: enum: int64 { INTEGER_VARIABLE_CLASS = 512 }; public: enum { CHANGE_INTEGER_RANGE_MESSAGE = 275 }; friend class AbstractVariable; private...
30.67
39
(translation_unit) "#ifndef INTEGERVARIABLE_H\n#define INTEGERVARIABLE_H\n#include <Engine/Core/Parser/Variable/Variable.h>\ntemplate<>\nclass Variable<int32>: public AbstractVariable\n{\n public: enum: int64 \n {\n INTEGER_VARIABLE_CLASS = 512\n };\n public: enum\n {\n CHANGE_INTEGER_RANGE_MESSAGE = 275\n };\n frien...
386
20
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.67, "nodes": 235, "errors": 0, "source_hash": "4db44262b7736a8b593986d6401121d210cce2736ed32efc554b087b252b4243", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,602
c
// // FiltersViewController.h // test // // Created by <NAME> on 06.07.14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @protocol FiltersViewControllerProtocol <NSObject> - (void)filtersSelected:(NSSet *)filters; - (void)filterSelectionCancelled; @end @interface FiltersViewCont...
29.87
15
(translation_unit) "//\n// FiltersViewController.h\n// test\n//\n// Created by <NAME> on 06.07.14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol FiltersViewControllerProtocol <NSObject>\n\n- (void)filtersSelected:(NSSet *)filters;\n- (void)filterSelectionCancelled;\...
90
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.87, "nodes": 58, "errors": 0, "source_hash": "8be86a97939f321b35dee385351fb2cc1876979448afaed8c74179494ae1d168", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,603
c
#pragma once #include "paintbrush.h" class PaintBrushOval : public PaintBrush { public: PaintBrushOval(void); virtual ~PaintBrushOval(void); public: virtual int GetSteps() const { return 5; } virtual CString GetID() const { return _T("Oval Brush"); } public: virtual void Paint(CPoint& ptStart, CPoint& ptEnd, M...
25.62
16
(translation_unit) "#pragma once\n#include "paintbrush.h"\n\nclass PaintBrushOval :\n public PaintBrush\n{\npublic:\n PaintBrushOval(void);\n virtual ~PaintBrushOval(void);\n\npublic:\n virtual int GetSteps() const { return 5; }\n virtual CString GetID() const { return _T("Oval Brush"); }\n\npublic:\n virtual void Pain...
154
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.62, "nodes": 89, "errors": 0, "source_hash": "efbb1dd515ff58702197d81db4d0f861ec77bfee58d0d7dfc3ec6c9b397b13c7", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,604
c
#ifndef TYPES_H #define TYPES_H #include <Support/Map.h> #include <Support/Stack.h> #include <Support/String.h> typedef enum Type_ID { TYPE_INTEGER, TYPE_FLOAT, TYPE_ARRAY, TYPE_POINTER, TYPE_TUPLE, TYPE_STRUCT, TYPE_FUNCTION, } Type_ID; typedef struct Type { Type_ID type_id; } Type; ...
19.44
88
(translation_unit) "#ifndef TYPES_H\n#define TYPES_H\n\n#include <Support/Map.h>\n#include <Support/Stack.h>\n#include <Support/String.h>\n\ntypedef enum Type_ID\n{\n TYPE_INTEGER,\n TYPE_FLOAT,\n TYPE_ARRAY,\n TYPE_POINTER,\n TYPE_TUPLE,\n TYPE_STRUCT,\n TYPE_FUNCTION,\n} Type_ID;\n\ntypedef struc...
489
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 19.44, "nodes": 365, "errors": 0, "source_hash": "e9bd0b01471e57e30132bf0568d1fa0806d0ba2bdd2f49b510c8c8f8b6525080", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,605
c
#ifndef lint static const char RCSid[] = "$Id: mgfilt.c,v 2.1 2011/02/18 00:40:25 greg Exp $"; #endif /* * Filter MGF stream, removing entities that won't be understood */ #include <stdio.h> #include <stdlib.h> #include "mgf_parser.h" /* Number of entities for major versions */ short nentlist[MG_VMAJOR] = MG_NE...
19.47
88
(translation_unit) "#ifndef lint\nstatic const char RCSid[] = "$Id: mgfilt.c,v 2.1 2011/02/18 00:40:25 greg Exp $";\n#endif\n/*\n * Filter MGF stream, removing entities that won't be understood\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "mgf_parser.h"\n\n /* Number of entities for major versions */\ns...
661
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 19.47, "nodes": 376, "errors": 0, "source_hash": "00cdfa315e8509f76585d038648c5368406b6a037396cf96a6e4140dfefe79f6", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,606
c
#ifndef STREAM_MANAGERINFO_H_ #define STREAM_MANAGERINFO_H_ #include <string> #include <vector> #include "streaminfo.h" namespace stream { struct ManagerInfo : public StreamData { ManagerInfo() :StreamData(DATATYPE::TYPE_MANAGERINFO) {} std::string id; /// < manager id std::vector<Str...
23.87
15
(translation_unit) "#ifndef STREAM_MANAGERINFO_H_\n#define STREAM_MANAGERINFO_H_\n\n#include <string>\n#include <vector>\n#include "streaminfo.h"\n\nnamespace stream\n{\n struct ManagerInfo : public StreamData\n {\n ManagerInfo() :StreamData(DATATYPE::TYPE_MANAGERINFO) {}\n std::string id; /// < ma...
85
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.87, "nodes": 50, "errors": 0, "source_hash": "c6877baac30c983f30f22a4e04b2df411b90442054648116c3f1d76ebe014904", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,607
c
/** * @file Compiler.h * @brief Information about the compiler used. */ #if !defined(DETECTIVE_COMPILER_H) #define DETECTIVE_COMPILER_H #include "Types.h" /** * @def DETECTIVE_COMPILER * @brief Describes the compiler used. * @see Detective::Compiler */ /** * @def DETECTIVE_COMPILER_VERSION * @brief Describes...
29.51
218
(translation_unit) "/**\n * @file Compiler.h\n * @brief Information about the compiler used.\n*/\n\n#if !defined(DETECTIVE_COMPILER_H)\n#define DETECTIVE_COMPILER_H\n\n#include "Types.h"\n\n/**\n * @def DETECTIVE_COMPILER\n * @brief Describes the compiler used.\n * @see Detective::Compiler\n*/\n\n/**\n * @def DETECTIVE...
604
2
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 29.51, "nodes": 455, "errors": 0, "source_hash": "6106f5b48593256bf6b0939ea09b342714eba40e04fa2c08c1cfa35a8e2a2e11", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if !defined(...
12,608
c
#include "filter.h" #define COLORIZE(pixel,blend_percentage,colorize) \ (((pixel)*(100.0-(blend_percentage))+(colorize)*(blend_percentage))/100.0) static PyObject* _colorize_apply(PyObject *self, PyObject *args) { PyObject *image_mode = NULL, *red_pct = NULL, *green_pct = NULL, *blue_pct = NULL, *...
42.21
43
(translation_unit) "#include "filter.h"\n\n#define COLORIZE(pixel,blend_percentage,colorize) \\n (((pixel)*(100.0-(blend_percentage))+(colorize)*(blend_percentage))/100.0)\n\nstatic PyObject*\n_colorize_apply(PyObject *self, PyObject *args)\n{\n PyObject *image_mode = NULL, *red_pct = NULL, *green_pct = NULL, *blu...
571
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 42.21, "nodes": 383, "errors": 0, "source_hash": "df2e8a4266a8511a0402289dd186dc29ac8a587d456005f40cad26da455cf48d", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,609
c
// // WYAppDelegate+myGT.h // WYModule // // Created by hero on 2018/11/15. // #import "WYAppDelegate.h" #import <GTSDK/GeTuiSdk.h> // iOS10 及以上需导入 UserNotifications.framework #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 #import <UserNotifications/UserNotifications.h> #endif NS_ASSUME_NONNULL_BEGIN /// ...
28.11
19
(translation_unit) "//\n// WYAppDelegate+myGT.h\n// WYModule\n//\n// Created by hero on 2018/11/15.\n//\n\n#import "WYAppDelegate.h"\n#import <GTSDK/GeTuiSdk.h>\n\n// iOS10 及以上需导入 UserNotifications.framework\n#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0\n#import <UserNotifications/UserNotifications.h>\n#endi...
48
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.11, "nodes": 35, "errors": 0, "source_hash": "6f6031a8b758a20e2550bdde2379a93f8f1b8199ffc78e86bfde3809c106447f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,610
c
#pragma once #include "global.h" #include "c_pipeline.h" #include "c_view.h" #include "c_device.h" #include "c_instance.h" class c_vk_render_agent { };
18
8
(translation_unit) "#pragma once\n#include "global.h"\n#include "c_pipeline.h"\n#include "c_view.h"\n#include "c_device.h"\n#include "c_instance.h"\n\nclass c_vk_render_agent {\n\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "global.h...
42
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.0, "nodes": 20, "errors": 0, "source_hash": "7b89f7010704fd55f11d41688396fe65a2d37fa23286d067555e22ab12536e56", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
12,611
c
// // Header.h // VFCalendarView-Demo // // Created by HS on 4/14/16. // Copyright © 2016 Vincent. All rights reserved. // #ifndef Header_h #define Header_h /// Output log to console in DEBUG mode. #ifndef DebugLog #if DEBUG #define DebugLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, #...
21.39
18
(translation_unit) "//\n// Header.h\n// VFCalendarView-Demo\n//\n// Created by HS on 4/14/16.\n// Copyright © 2016 Vincent. All rights reserved.\n//\n\n#ifndef Header_h\n#define Header_h\n\n/// Output log to console in DEBUG mode.\n#ifndef DebugLog\n#if DEBUG\n#define DebugLog(fmt, ...) NSLog((@"%s [Line %d] " fmt)...
47
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.39, "nodes": 29, "errors": 0, "source_hash": "6134320cabfd303338bb5c5af96695fff526f6ad350da8f2c53d4e3c22b3c5a4", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef H...
12,612
c
///////////////////////////////////////////////////////////////////////////// // Name: cpp/wxapi.h // Purpose: Magic to be included to get access to wxPerl API // Author: <NAME> // Modified by: // Created: 21/09/2002 // RCS-ID: $Id: wxapi.h 3532 2015-03-11 01:27:54Z mdootson $ // Copyright: (...
24.07
145
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Name: cpp/wxapi.h\n// Purpose: Magic to be included to get access to wxPerl API\n// Author: <NAME>\n// Modified by:\n// Created: 21/09/2002\n// RCS-ID: $Id: wxapi.h 3532 2015-03-11 01:27:54Z md...
638
1
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 24.07, "nodes": 507, "errors": 0, "source_hash": "7f03ee14fc2cd0f6d44f5c64f4bda15fdfa8d1f3861471e1d8040f99250ea542", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
12,613
c
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "cfg.h" namespace slobrok::api { /** * @brief List of connection specs for service location brokers **/ class SlobrokList : public Configurable { public: /** * @brie...
33.51
41
(translation_unit) "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#pragma once\n\n#include "cfg.h"\n\nnamespace slobrok::api {\n\n/**\n * @brief List of connection specs for service location brokers\n **/\nclass SlobrokList : public Configurable ...
204
11
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 33.51, "nodes": 105, "errors": 0, "source_hash": "cb803991e98a34d3ba2149bfe5b35587cd4d31f07df4611ba14c20f1ea8519cc", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,614
c
// Copyright 2017 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 BASE_NUMERICS_RANGES_H_ #define BASE_NUMERICS_RANGES_H_ #include <cmath> #include <type_traits> namespace base { template <typename T> constexp...
35.8
15
(translation_unit) "// Copyright 2017 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 BASE_NUMERICS_RANGES_H_\n#define BASE_NUMERICS_RANGES_H_\n\n#include <cmath>\n#include <type_traits>\n\nnamespace base {\n...
102
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.8, "nodes": 65, "errors": 0, "source_hash": "4e8c947e84bb259c21d629d8a1cc2560e49eb71792078ffe4e73e36257a3d41e", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
12,615
c
#pragma once #include <eigen/Dense> namespace SG { typedef Eigen::Quaternion<float> Quaternion; }
15.5
6
(translation_unit) "#pragma once\n\n#include <eigen/Dense>\n\nnamespace SG\n{\n\n typedef Eigen::Quaternion<float> Quaternion;\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <eigen/Dense>\n" (#include) "#include" (system_lib_strin...
25
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 15.5, "nodes": 18, "errors": 0, "source_hash": "59dccd8daed1c80a8f4d1abb54e558dedcfa4216da9c4dced875ad4e342dbd2d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
12,616
c
/* ** EPITECH PROJECT, 2017 ** destroy_variable ** File description: ** destroy_variable */ #include "variable.h" void destroy_variable(variable_t *var) { if (var == NULL) return; if (var->name != NULL) free(var->name); if (var->data != NULL) free(var->data); free(var); }
15.65
17
(translation_unit) "/*\n** EPITECH PROJECT, 2017\n** destroy_variable\n** File description:\n** destroy_variable\n*/\n\n#include "variable.h"\n\nvoid destroy_variable(variable_t *var)\n{\n if (var == NULL)\n return;\n if (var->name != NULL)\n free(var->name);\n if (var->data != NULL)\n free(var->data);\n free(var);\...
92
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.65, "nodes": 48, "errors": 0, "source_hash": "0fd2d857eb643ef4506c1523c6bd67393e61e8daf803b66ba9d6006e9e8872bf", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,617
c
#include <stdio.h> typedef struct { int **y; int *x; } _inner; typedef _inner inner; typedef struct { int *g; inner in[3]; } outer; void traverse(outer *o) { static int sss = 5; inner *in = &(o->in[0]); for (size_t i = 0; i < 3; i++) { in->x = &sss; in++; sss +=...
15.4
25
(translation_unit) "#include <stdio.h>\n\ntypedef struct {\n int **y;\n int *x;\n} _inner;\n\ntypedef _inner inner;\n\ntypedef struct {\n int *g;\n inner in[3];\n} outer;\n\nvoid traverse(outer *o) {\n static int sss = 5;\n\n inner *in = &(o->in[0]);\n\n for (size_t i = 0; i < 3; i++) {\n in...
184
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 15.4, "nodes": 121, "errors": 0, "source_hash": "9ff9e4ac796ce2a159ca5b1a0ef096b89d870ae5d178faded9058f2520b295b9", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,618
c
#pragma once enum ConfigMenuNameIndex { mShow, mHide, mEnable, mDisable, mRestart, mRunAsAdministrator, }; enum GloabalMenuNameIndx { mDisableAll, // order is important, commandtrayhost marked word: 4bfsza3ay mEnableAll, mHideAll, mShowall, mRestartALL, mElevate, mExit, mAll, mStartOnBoot, mHome, mA...
31.36
72
(translation_unit) "ragma once\n\nenum ConfigMenuNameIndex\n{\n mShow,\n mHide,\n mEnable,\n mDisable,\n mRestart,\n mRunAsAdministrator,\n};\nenum GloabalMenuNameIndx\n{\n mDisableAll, // order is important, commandtrayhost marked word: 4bfsza3ay\n mEnableAll,\n mHideAll,\n mShowall,\n mRestartALL,\n mElevate,\n mExit...
475
20
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.36, "nodes": 298, "errors": 0, "source_hash": "3016cf23f8e7a603ed50a55849977e33421d26b4da5bb8ed908042b84b182357", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
12,619
c
// Copyright (c) 2015 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BullshitBucks_TEST_TEST_BullshitBucks_H #define BullshitBucks_TEST_TEST_BullshitBucks_H #include "txdb.h" #include <boost/filesy...
32.21
28
(translation_unit) "// Copyright (c) 2015 The PIVX developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef BullshitBucks_TEST_TEST_BullshitBucks_H\n#define BullshitBucks_TEST_TEST_BullshitBucks_H\n\n#include "txdb...
112
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.21, "nodes": 65, "errors": 0, "source_hash": "a40da11504368d917a241e6c305dfa82b19565dc2ddaaba9690345534c2677e7", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,620
c
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_POLICY_APPLICATIONSECURITYINFO_H #define __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_POLICY_APPLICATIONSECURITYINFO_H #include <mscorlib/System/mscorlib_System_Object.h> #include <mscorlib/System/mscorlib_System_ActivationContext.h> namespace mscorlib { namespace System { ...
31.17
111
(translation_unit) "#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_POLICY_APPLICATIONSECURITYINFO_H\n#define __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_POLICY_APPLICATIONSECURITYINFO_H\n\n#include <mscorlib/System/mscorlib_System_Object.h>\n#include <mscorlib/System/mscorlib_System_ActivationContext.h>\n\nnamespace mscorli...
817
47
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 31.17, "nodes": 418, "errors": 0, "source_hash": "1701c5ae566e4678dd244dc130307ff6c3661c97795c9a555216367dcca72c83", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,621
c
// // XBAppDelegate.h // XBExtension // // Created by CocoaPods on 08/02/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface XBAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
24.18
11
(translation_unit) "//\n// XBAppDelegate.h\n// XBExtension\n//\n// Created by CocoaPods on 08/02/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XBAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" ...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.18, "nodes": 25, "errors": 0, "source_hash": "21f782be00398000e44717da1e0f671a8beecfca98140d0d7fbe15af985141ee", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,622
c
#pragma once #include <array> #include <cstdint> namespace Halley { namespace UIGamepadInput { enum class Button { Accept, Cancel, Next, Prev, Hold, NumberOfButtons }; enum class Axis { X, Y, NumberOfAxes }; enum class Priority { None, Lowest, Normal, Focused }; ...
25.8
61
(translation_unit) "#pragma once\n\n#include <array>\n#include <cstdint>\n\nnamespace Halley {\n namespace UIGamepadInput {\n enum class Button {\n Accept,\n Cancel,\n Next,\n Prev,\n Hold,\n NumberOfButtons\n };\n\n enum class Axis {\n X,\n Y,\n NumberOfAxes\n };\n\n enum class Priority {\n No...
496
26
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.8, "nodes": 314, "errors": 0, "source_hash": "6860bafd3b512678991018cd0ba25e178c35843baa12f2d99f9eae4638f539df", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,623
c
// // HSYUserDefaultTools.h // HSYManagerKit // // Created by anmin on 2019/10/18. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class JSONModel; @interface HSYUserDefaultTools : NSObject + (instancetype)shareInstance; #pragma mark - NSUserDefaults /** NSUserDefaults获取缓存内容 @param key key @...
17.88
116
(ERROR) "//\n// HSYUserDefaultTools.h\n// HSYManagerKit\n//\n// Created by anmin on 2019/10/18.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class JSONModel;\n@interface HSYUserDefaultTools : NSObject\n\n+ (instancetype)shareInstance;\n\n#pragma mark - NSUserDefaults\n\n/**\n NSUserDefault...
389
35
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 17.88, "nodes": 244, "errors": 0, "source_hash": "9c63e792f438682212e625cabc63d53acb84f62ddcac321e4276f70a193127c4", "categorized_nodes": 130}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// HSYUserDefaultTo...
12,624
c
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fizz/crypto/hpke/Types.h> #include <fizz/crypto/aead/Aead.h> #include <fizz/cr...
32.63
150
(translation_unit) "/*\n * Copyright (c) 2018-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <fizz/crypto/hpke/Types.h>\n\n#include <fizz/crypt...
210
7
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 32.63, "nodes": 138, "errors": 0, "source_hash": "ff58eef04b1144c5d2c1839a7bc2bbf220972136eb9e816de761a21691dac70b", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,625
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:50:06 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/PhotosImagingFoundation.framework/PhotosImagingFoundation * classdump-dyld is licensed under GPLv3, Co...
35.71
21
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:50:06 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/PrivateFrameworks/PhotosImagingFoundation.framework/PhotosImagingFoundation\n* classdump-dyld is...
121
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.71, "nodes": 68, "errors": 0, "source_hash": "dc14b1ac1c0dbfa7151635cbb7922f0d6c2a3d427538fbf072a0dc0a23ef88f5", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <P...
12,626
c
#ifndef FONTSAMPLER_TTF_STRUCTS_H_ #define FONTSAMPLER_TTF_STRUCTS_H_ #include <cstdint> #include <vector> /* -------------------------------------------------------------------------- */ /* Type description from Apple TrueType Reference. */ typedef int32_t Fixed; typedef int16_t FWord; typedef uint16_t UFWord;...
28.3
188
(translation_unit) "#ifndef FONTSAMPLER_TTF_STRUCTS_H_\n#define FONTSAMPLER_TTF_STRUCTS_H_\n\n#include <cstdint>\n#include <vector>\n\n/* -------------------------------------------------------------------------- */\n\n/* Type description from Apple TrueType Reference. */\ntypedef int32_t Fixed;\ntypedef int16_t FW...
1,130
5
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 28.3, "nodes": 744, "errors": 0, "source_hash": "8573783fca94e20a2f59213462fadb6ebdc147aa6026c745135df9486d162032", "categorized_nodes": 536}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef FONTSA...
12,627
c
/** * Implementation of Pearson's correlation coefficient between two time * series. * * Author: <NAME> <<EMAIL>> */ #include <math.h> #include <stdint.h> #include "timeseries/correlation.h" double pearson(double *x, double *y, uint32_t len) { double sumx; double sumy; double sumxy; double sumx...
19.44
39
(translation_unit) "/**\n * Implementation of Pearson's correlation coefficient between two time\n * series.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#include <math.h>\n#include <stdint.h>\n\n#include "timeseries/correlation.h"\n\ndouble pearson(double *x, double *y, uint32_t len) {\n\n double sumx;\n double sumy...
278
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 19.44, "nodes": 189, "errors": 0, "source_hash": "388daa3eb4f2d670aadee6e2768bfd3909b163ec67fca63020927685a800de56", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,628
c
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2010 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) ...
28.13
68
(translation_unit) "/*\n SDL - Simple DirectMedia Layer\n Copyright (C) 1997-2010 <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the Li...
306
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 28.13, "nodes": 172, "errors": 0, "source_hash": "fc1b4b360d5902b5809741ae63883c06fb22704d5a3cc7ce8f48acfe32620360", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,629
c
/* * Copyright (c) 2017 Pantacor Ltd. * * 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, publi...
29.13
149
(translation_unit) "/*\n * Copyright (c) 2017 Pantacor Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, ...
1,191
4
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 29.13, "nodes": 745, "errors": 0, "source_hash": "90168413f6c37853d685fff82a4caffed374bbd10665322115c32cb1661d1d10", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,630
c
/* * Known bugs: * * suspending the uart listener task while it's in the linenoise function causes a deadlock on UART. Internally, * linenoise calls fread which takes the uart_read_lock mutex. Need an elegant way of releasing that mutex if taken on * suspend. Current workaround: suspending the CLI in advanced f...
35.29
105
(translation_unit) "/*\n * Known bugs:\n * * suspending the uart listener task while it's in the linenoise function causes a deadlock on UART. Internally,\n * linenoise calls fread which takes the uart_read_lock mutex. Need an elegant way of releasing that mutex if taken on\n * suspend. Current workaround: suspendi...
650
2
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 35.29, "nodes": 334, "errors": 0, "source_hash": "b1a05d41b8ec6bdfab2839a07ee00a7e3d5937c4223481b76fff17c892d12522", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,631
c
#include "strerr.h" #include "substdio.h" #include "lock.h" #include "open.h" #include "readwrite.h" #include "auto_qmail.h" #include "exit.h" #define FATAL "qmail-tcpok: fatal: " char buf[1024]; /* XXX: must match size in tcpto_clean.c, tcpto.c */ substdio ss; void main() { int fd; int i; if (chdir(auto_qmai...
32.66
29
(translation_unit) "#include "strerr.h"\n#include "substdio.h"\n#include "lock.h"\n#include "open.h"\n#include "readwrite.h"\n#include "auto_qmail.h"\n#include "exit.h"\n\n#define FATAL "qmail-tcpok: fatal: "\n\nchar buf[1024]; /* XXX: must match size in tcpto_clean.c, tcpto.c */\nsubstdio ss;\n\nvoid main()\n{\n int ...
335
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.66, "nodes": 168, "errors": 0, "source_hash": "5ef7824c20b1b82140efd78c8ac728f795abbf41ee05c459c23ed08820a6fc1a", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,632
c
// // OWFullscreenObserver.h // electronoverlaywindow // // Thin wrapper to allow for registering an observer for when the window // becomes full-screen. // // Created by <NAME> on 5/27/21. // #import <Foundation/Foundation.h> typedef void (^FullscreenBlock)(void); NS_ASSUME_NONNULL_BEGIN @interface OWFullscre...
26.35
17
(translation_unit) "//\n// OWFullscreenObserver.h\n// electronoverlaywindow\n//\n// Thin wrapper to allow for registering an observer for when the window\n// becomes full-screen.\n//\n// Created by <NAME> on 5/27/21.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef void (^FullscreenBlock)(void);\n\nNS_ASSUME_NO...
76
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.35, "nodes": 47, "errors": 0, "source_hash": "f7cb16b67247952f402f8d63185680c836a5f9183cd47a47b1971d904cc27cd7", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,633
c
#include<stdio.h> int main() { int cp=1400,sp,lp; lp=(cp/100)*15; sp=cp-lp; printf("%d",sp); }
11
9
(translation_unit) "#include<stdio.h> \nint main() \n{ \n int cp=1400,sp,lp; \n lp=(cp/100)*15; \n sp=cp-lp; \n printf("%d",sp); \n \n} \n" (preproc_include) "#include<stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() \n{ \n int cp=1400,sp,lp; \n lp=(cp/100...
62
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 11.0, "nodes": 39, "errors": 0, "source_hash": "bb249d8ec84148ee386e2af6069b86dc276dc309fa565f5c68625aa5f9820ef8", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,634
c
// resource.h --- resource header for MsgCrack -*- C++ -*- ////////////////////////////////////////////////////////////////////////////// //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by MsgCrack.rc #define ID_UP 1000 #define ID_DOWN 1001 #def...
30.88
32
(translation_unit) "// resource.h --- resource header for MsgCrack -*- C++ -*- \n////////////////////////////////////////////////////////////////////////////// \n \n//{{NO_DEPENDENCIES}} \n// Microsoft Visual C++ generated include file. \n// Used by MsgCrack.rc \n \n#define ID_UP 1000 \n#define ID...
65
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.88, "nodes": 56, "errors": 0, "source_hash": "b0434e6b7e5a0fae93beb2c10cee5bbf74cb29945401fab8db3dbe6f85390555", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ID...
12,635
c
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pra...
32.98
52
(translation_unit) "/*\n * Copyright (c) 2004-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the s...
337
21
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.98, "nodes": 177, "errors": 0, "source_hash": "9865003386957f20616e24239588f4f0998228c05651a94056fa62e67b72e450", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,636
c
/*First copy the main. c from my repository, then create 6 new files with their respective names as I have them in my repository: registration.h ,input.txt,output.txt,registration.txt,report.txt and additional.txt .Only copies and paste the code or text of each of those files.please leave a blank line after copying t...
30.03
307
(translation_unit) "/*First copy the main. c from my repository, then create 6 new \nfiles with their respective names as I have them in my repository:\nregistration.h ,input.txt,output.txt,registration.txt,report.txt \nand additional.txt .Only copies and paste the code or text of each\nof those files.please leave a bl...
2,953
0
{"language": "c", "success": true, "metadata": {"lines": 307, "avg_line_length": 30.03, "nodes": 1650, "errors": 0, "source_hash": "b619b9dc9b321baba399fad7443cb8eaafb4b085bb9d28a538ef18c8c412595e", "categorized_nodes": 1153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,637
c
#ifndef BHJL_HEADER #define BHJL_HEADER int bhjl_encrypt(mpz_t c,const mpz_t m, const mpz_t n,const mpz_t y, const int k, const mpz_t _2k, gmp_randstate_t gmpRandState); int bhjl_decrypt(mpz_t m,const mpz_t c, const mpz_t p,const mpz_t D,const int k, ...
38.19
16
(translation_unit) "#ifndef BHJL_HEADER\n#define BHJL_HEADER\n\nint bhjl_encrypt(mpz_t c,const mpz_t m,\n const mpz_t n,const mpz_t y, const int k,\n const mpz_t _2k, \n gmp_randstate_t gmpRandState);\n\nint bhjl_decrypt(mpz_t m,const mpz_t c,\n const mpz_t p,const mp...
187
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 38.19, "nodes": 110, "errors": 0, "source_hash": "ee5bb39088e897cf39ddae0d7983fc5d3f56e63b4e86473e40781029f9442ecb", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,638
c
inherit NPC; inherit F_MASTER; inherit F_GUARDER; #include <ansi.h> #include "xuedao.h" mixed ask_skill1(); void create() { set_name("宝象", ({ "<NAME>", "bao", "xiang" })); set("long", @LONG 一个极高极瘦的僧人,俩眼凶芒四射。此人在 血刀老祖门下,最是心狠手辣。 LONG); set("gender", "男性"); set("age", 35); set("at...
33.22
139
(translation_unit) "inherit NPC;\ninherit F_MASTER;\ninherit F_GUARDER;\n\n#include <ansi.h>\n#include "xuedao.h"\n\nmixed ask_skill1();\n\nvoid create()\n{\n set_name("宝象", ({ "<NAME>", "bao", "xiang" }));\n set("long", @LONG\n一个极高极瘦的僧人,俩眼凶芒四射。此人在\n血刀老祖门下,最是心狠手辣。\nLONG);\n set("gender", "男性");\n ...
1,628
30
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 33.22, "nodes": 690, "errors": 0, "source_hash": "60bc3c9a7e024d1a6b0da038d800081993b43a9f09cbec92b49bbf7e603a57fd", "categorized_nodes": 519}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit...
12,639
c
#include "mqqsig.h" #define crypto_sign_mqqsig160_ref_SECRETKEYBYTES (N*2+9*9) #define crypto_sign_mqqsig160_ref_PUBLICKEYBYTES (PUBLICKEY_SIZE_L*PUBLICKEY_SIZE_S) #define crypto_sign_mqqsig160_ref_BYTES (N/8) #define crypto_sign_mqqsig160_ref_VERSION "1.00"
42.33
6
(translation_unit) "#include "mqqsig.h"\n\n\n#define crypto_sign_mqqsig160_ref_SECRETKEYBYTES (N*2+9*9)\n#define crypto_sign_mqqsig160_ref_PUBLICKEYBYTES (PUBLICKEY_SIZE_L*PUBLICKEY_SIZE_S)\n#define crypto_sign_mqqsig160_ref_BYTES (N/8)\n#define crypto_sign_mqqsig160_ref_VERSION "1.00"\n\n" (preproc_include) "#includ...
23
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 42.33, "nodes": 19, "errors": 0, "source_hash": "53e866e875a267d8d3d33d40467985f94553f53fc0f5ec6861cc8341f41ddf02", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,640
c
#ifndef OSAL_BUNDLE_INFO_H #define OSAL_BUNDLE_INFO_H #include <string> #include <vector> namespace osal { class BundleInfo { public: std::string mBundleName_; std::vector<std::string> signatures_; std::vector<std::string> permissions_; }; } // namespace osal #endif // !OSAL_BUNDLE_INFO_H
22.38
13
(translation_unit) "#ifndef OSAL_BUNDLE_INFO_H\n#define OSAL_BUNDLE_INFO_H\n\n#include <string>\n#include <vector>\n\nnamespace osal {\nclass BundleInfo {\npublic:\n std::string mBundleName_;\n std::vector<std::string> signatures_;\n std::vector<std::string> permissions_;\n};\n} // namespace osal\n\n#endif /...
76
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.38, "nodes": 46, "errors": 0, "source_hash": "624ad7d01021b49042ab36e46975fb93816af9f49ce628b175431151e864baba", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,641
c
/* * Copyright (c) 2018-present, <EMAIL>. * * This source code is licensed under the GPL license found in the * LICENSE file in the root directory of this source tree. */ #ifndef HWVC_ANDROID_ALWEBPDECODER_H #define HWVC_ANDROID_ALWEBPDECODER_H #include "AlAbsDecoder.h" #include "encode.h" #include "decode.h" #i...
27.6
25
(translation_unit) "/*\n * Copyright (c) 2018-present, <EMAIL>.\n *\n * This source code is licensed under the GPL license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#ifndef HWVC_ANDROID_ALWEBPDECODER_H\n#define HWVC_ANDROID_ALWEBPDECODER_H\n\n#include "AlAbsDecoder.h"\n#include "e...
148
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.6, "nodes": 88, "errors": 0, "source_hash": "0b54d4b1100361d83e93749172824ad5385a1f3d9e57b3908c7d5033dda9cbb6", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
12,642
c
#ifndef _MEGA32U4_UART_H_ #define _MEGA32U4_UART_H_ #ifndef __AVR_ATmega32U4__ #define __AVR_ATmega32U4__ #endif // not needed when compile but needed when auto-complete of VSCode #define BAUD_REG 0 // 16MHz, 2000000bps(when U2Xn=0) #define STRING_MAX_BYTES 160 #include <avr/io.h> #include <avr/interrupt.h> void in...
29.65
17
(translation_unit) "#ifndef _MEGA32U4_UART_H_\n#define _MEGA32U4_UART_H_\n\n#ifndef __AVR_ATmega32U4__\n#define __AVR_ATmega32U4__\n#endif // not needed when compile but needed when auto-complete of VSCode\n\n#define BAUD_REG 0 // 16MHz, 2000000bps(when U2Xn=0)\n#define STRING_MAX_BYTES 160\n\n#include <avr/io.h>\n#inc...
109
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.65, "nodes": 85, "errors": 0, "source_hash": "fc9cea996d92289ee2e8b8fd350d8d10870371c40c9ae6e7f6cff8546b057316", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,643
c
#pragma once #include "mfast_sqlite3_export.h" #include "../mfast_export.h" #include <sqlite3.h> #include <boost/exception/errinfo_api_function.hpp> #include <boost/exception/errinfo_at_line.hpp> #include <boost/exception/errinfo_errno.hpp> #include <boost/exception/errinfo_file_handle.hpp> #include <boost/exception/...
39.44
48
(translation_unit) "#pragma once\n\n#include "mfast_sqlite3_export.h"\n#include "../mfast_export.h"\n\n#include <sqlite3.h>\n#include <boost/exception/errinfo_api_function.hpp>\n#include <boost/exception/errinfo_at_line.hpp>\n#include <boost/exception/errinfo_errno.hpp>\n#include <boost/exception/errinfo_file_handle.hp...
357
22
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 39.44, "nodes": 227, "errors": 0, "source_hash": "6a7ac9a5106d049395bc6083322f343f703d967d32550825d5a84a661624f2f0", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,644
c
// // FeeTypeEntity.h // PsyTrack Clinician Tools // Version: 1.5.4 // // Created by <NAME> on 1/1/13. // Copyright (c) 2013 PsycheWeb LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class FeeEntity; @interface FeeTypeEntity : NSManagedObject @property (nonatomic, ...
28.86
22
(translation_unit) "//\n// FeeTypeEntity.h\n// PsyTrack Clinician Tools\n// Version: 1.5.4\n//\n// Created by <NAME> on 1/1/13.\n// Copyright (c) 2013 PsycheWeb LLC. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n@class FeeEntity;\n\n@interface FeeTypeEntity : NSMan...
166
31
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.86, "nodes": 114, "errors": 0, "source_hash": "8ce8c6004e878ea21e8fbdf1742c618e200185d2367b8540c0c2930579e0aae9", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,645
c
// // WAAppDelegate.h // WWDCAlert // // Created by <NAME> on 3/19/13. // Copyright (c) 2013 RMatta. All rights reserved. // #import <UIKit/UIKit.h> #import "WARefreshViewController.h" @interface WAAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (stro...
27.92
13
(translation_unit) "//\n// WAAppDelegate.h\n// WWDCAlert\n//\n// Created by <NAME> on 3/19/13.\n// Copyright (c) 2013 RMatta. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "WARefreshViewController.h"\n\n@interface WAAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) ...
61
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.92, "nodes": 43, "errors": 0, "source_hash": "46d0966911af5bf66e7c149ad48a0fe32afebad98df9f7723a8e0512e10a1df8", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,646
c
extern int printf(char *, ...); typedef struct { float re; float im; } complex; void init (complex *c, float x, float y) { c -> re = x; c -> im = y; } void print (complex *c) { printf("%f+%fi.\n", c -> re, c -> im); } main () { complex c, d; c.re = 0; init(&c, 1, 4); init(&d, 2, 2); c = d; d.i...
16.09
22
(translation_unit) "extern int printf(char *, ...);\n\ntypedef struct {\n float re;\n float im;\n} complex;\n\nvoid init (complex *c, float x, float y) {\n c -> re = x;\n c -> im = y;\n}\n\nvoid print (complex *c) {\n printf("%f+%fi.\n", c -> re, c -> im);\n}\n\nmain () {\n complex c, d;\n c.re = 0;\n init(&c, ...
206
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 16.09, "nodes": 122, "errors": 0, "source_hash": "9dde0d9ca6589fdaa95b2f4a5413083f9337f8673952f39c91f8d90ba421b927", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern in...
12,647
c
#include <linux/kernel.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/hid.h> #include <linux/mutex.h> #include <linux/input.h> #include <linux/input/mt.h> #include "hid-ids.h" #define MAX_NUM_OF_FINGERS 5 #define FINGER_DATA_SIZE 8 #define DEFA...
32.39
305
(translation_unit) "#include <linux/kernel.h>\n#include <linux/errno.h>\n#include <linux/init.h>\n#include <linux/slab.h>\n#include <linux/module.h>\n#include <linux/hid.h>\n#include <linux/mutex.h>\n#include <linux/input.h>\n#include <linux/input/mt.h>\n\n#include "hid-ids.h"\n\n#define MAX_NUM_OF_FINGERS 5\n#define...
2,817
2
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 32.39, "nodes": 1652, "errors": 0, "source_hash": "c0ca1a4fb82522590fd3b0ecf4036e7f446c1876dd4a5fb72e11bc7a5af1cf12", "categorized_nodes": 1241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,648
c
/* ** This source file is part of AGE ** ** For the latest info, see http://code.google.com/p/ascii-game-engine/ ** ** Copyright (c) 2011 Tony & Tony's Toy Game Development Team ** ** Permission is hereby granted, free of charge, to any person obtaining a copy of ** this software and associated documentation fi...
23.6
249
(translation_unit) "/* \n** This source file is part of AGE \n** \n** For the latest info, see http://code.google.com/p/ascii-game-engine/ \n** \n** Copyright (c) 2011 Tony & Tony's Toy Game Development Team \n** \n** Permission is hereby granted, free of charge, to any person obtaining a copy of \n** this software and...
1,642
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 23.6, "nodes": 1034, "errors": 0, "source_hash": "e0704d83bd3da79c2571b642b41c4983ac89a073853252e81400f49dc7812a8e", "categorized_nodes": 801}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,649
c
#ifndef OGL_RENDERSYSTEM_INCLUDED #define OGL_RENDERSYSTEM_INCLUDED #include "GLSim/core/System.h" #include "GL/glew.h" #include "GLSim/core/shadermanager.h" #include "GLSim/core/window.h" #include "GLSim/core/Object.h" #include "GLSim/core/Light.h" namespace ogl { class RenderSystem; } class RenderSystem : public Sy...
24.81
27
(translation_unit) "#ifndef OGL_RENDERSYSTEM_INCLUDED\n#define OGL_RENDERSYSTEM_INCLUDED\n\n#include "GLSim/core/System.h"\n#include "GL/glew.h"\n#include "GLSim/core/shadermanager.h"\n#include "GLSim/core/window.h"\n#include "GLSim/core/Object.h"\n#include "GLSim/core/Light.h"\n\nnamespace ogl { class RenderSystem; }\...
201
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.81, "nodes": 127, "errors": 0, "source_hash": "455befdd0087ae58f64056c929f4839c07d08563cf0f6baa4c7f69244f82dc4a", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,650
c
/** Copyright (c) 2016 <NAME> <<EMAIL>> 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, distribut...
40.8
88
(translation_unit) "/**\nCopyright (c) 2016 <NAME> <<EMAIL>>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify,...
731
53
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 40.8, "nodes": 494, "errors": 0, "source_hash": "05eff20e3dec5bda3438dca7baf9c8d983da150d4751173e8396734ddb0eb52d", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,651
c
// // CustomItemTableViewCell.h // MercadoPagoSDKExamplesObjectiveC // // Created by <NAME> on 2/15/17. // Copyright © 2017 MercadoPago. All rights reserved. // #import <UIKit/UIKit.h> @import MercadoPagoSDKV4; @interface CustomItemTableViewCell : UITableViewCell<MPCellContentProvider> @property (weak, nonatomi...
28.42
12
(translation_unit) "//\n// CustomItemTableViewCell.h\n// MercadoPagoSDKExamplesObjectiveC\n//\n// Created by <NAME> on 2/15/17.\n// Copyright © 2017 MercadoPago. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@import MercadoPagoSDKV4;\n\n@interface CustomItemTableViewCell : UITableViewCell<MPCellContentProv...
47
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.42, "nodes": 32, "errors": 0, "source_hash": "9a85c10f624d669b7ccf863ae788253fd0e69a457b1a4b82076696b367d5958b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,652
c
/* * Copyright 2022 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ // Stub implementation of the proxying queue API that does...
36.89
37
(translation_unit) "/*\n * Copyright 2022 The Emscripten Authors. All rights reserved.\n * Emscripten is available under two separate licenses, the MIT license and the\n * University of Illinois/NCSA Open Source License. Both these licenses can be\n * found in the LICENSE file.\n */\n\n// Stub implementation of the p...
255
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.89, "nodes": 165, "errors": 0, "source_hash": "f0bb90acec50c876ee0a98d32d3ad1937c9f63b47638f79d396093b9a9ceb6e6", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,653
c
#include <stdio.h> int main() { printf("Digite três caracteres:\n"); char chars[4]; scanf("%3s", chars); printf("Primeiro caractere: %c\nSegundo caractere: %c\nTerceiro caractere: %c\n", chars[0], chars[1], chars[2]); } //https://pt.stackoverflow.com/q/452177/101
34
8
(translation_unit) "#include <stdio.h>\n\nint main() {\n printf("Digite três caracteres:\n");\n char chars[4];\n scanf("%3s", chars);\n printf("Primeiro caractere: %c\nSegundo caractere: %c\nTerceiro caractere: %c\n", chars[0], chars[1], chars[2]);\n}\n\n//https://pt.stackoverflow.com/q/452177/101\n" (pre...
82
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 34.0, "nodes": 35, "errors": 0, "source_hash": "1c28f195c8dee7885a6affef19e648f5dd55fdca13fc89c2c411fabc48b4bf61", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,654
c
// ======================================================================== // // Copyright 2015-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
31.79
120
(translation_unit) "// ======================================================================== //\n// Copyright 2015-2018 Intel Corporation //\n// //\n// Licensed under the Apache License, Version 2.0 (the "Lice...
1,060
46
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 31.79, "nodes": 587, "errors": 0, "source_hash": "c6207ec485ac1b65bb9ceab8552f55acdd129363324fc5c20e1986bb906c628f", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,655
c
/* * exception.h * * Created on: 04.02.2015 * Author: richard */ #ifndef WINDOWS_EXCEPTION_H_ #define WINDOWS_EXCEPTION_H_ #include <windows.h> #include <exception> #include <string> namespace Windows { class Exception : public std::exception { public: Exception(DWORD error_code); Exception(HRESULT e...
28.5
32
(translation_unit) "/*\n * exception.h\n *\n * Created on: 04.02.2015\n * Author: richard\n */\n\n#ifndef WINDOWS_EXCEPTION_H_\n#define WINDOWS_EXCEPTION_H_\n\n#include <windows.h>\n#include <exception>\n#include <string>\n\nnamespace Windows {\n\nclass Exception : public std::exception {\npublic:\n Exception(DW...
240
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 28.5, "nodes": 139, "errors": 0, "source_hash": "a5ec8311d08026e535ea63216e650163e883a03a30b75a49bc9d97a9d2b04c6a", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,656
c
/* * World.h * * Created on: 19.11.2013 * Author: baudenri_local */ #pragma once #include <OgreSceneManager.h> #include <World/Scene.h> namespace X3D { /** * World is the starting class for building a Scene. * It contains the Root-Node and the SceneManager */ struct World { Scene* const _scene; ...
18.34
32
(translation_unit) "/*\n * World.h\n *\n * Created on: 19.11.2013\n * Author: baudenri_local\n */\n\n#pragma once\n\n#include <OgreSceneManager.h>\n#include <World/Scene.h>\n\nnamespace X3D {\n\n/**\n * World is the starting class for building a Scene.\n * It contains the Root-Node and the SceneManager\n */\nstru...
85
4
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.34, "nodes": 47, "errors": 0, "source_hash": "de686e87d1387c3d03c787313c70f1d4879830fe29894be6b10cef699c2140a1", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,657
c
#ifndef TIR_MODEL__H #define TIR_MODEL__H #define USB_IMPL_ONLY #include "usb_ifc.h" #ifdef __cplusplus extern "C" { #endif bool init_model(char fname[], int type); void fakeusb_send(int ep, unsigned char data[], size_t length); void fakeusb_receive(int ep, unsigned char data[], size_t length, size_t *read,...
26.53
116
(translation_unit) "#ifndef TIR_MODEL__H\n#define TIR_MODEL__H\n\n#define USB_IMPL_ONLY\n#include "usb_ifc.h"\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n \n bool init_model(char fname[], int type);\n void fakeusb_send(int ep, unsigned char data[], size_t length);\n void fakeusb_receive(int ep, unsigned char dat...
1,056
51
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 26.53, "nodes": 652, "errors": 0, "source_hash": "fb4ccf6be382dbad885f48f38a91ca042c08fe7a5d099816c11dbeef2e073765", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TIR_M...
12,658
c
/****************************************************************************** * @file main.c * @version V3.00 * $Revision: 7 $ * $Date: 18/07/16 3:49p $ * @brief Demonstrate how to use LXT to trim HIRC * * @note * SPDX-License-Identifier: Apache-2.0 * Copyright (C) 2018 Nuvoton Technology Corp. All rights res...
37
122
(translation_unit) "/******************************************************************************\n* @file main.c\n* @version V3.00\n* $Revision: 7 $\n* $Date: 18/07/16 3:49p $\n* @brief Demonstrate how to use LXT to trim HIRC\n*\n* @note\n* SPDX-License-Identifier: Apache-2.0\n* Copyright (C) 2018 Nuvoton Te...
592
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 37.0, "nodes": 316, "errors": 0, "source_hash": "bcaaea8d8011b4d4716028c8e664791879b14c8405ad599b3300ec7ff7a4fde3", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,659
c
/* Print a copyright notice suitable for the current locale. Copyright (C) 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at you...
36.58
40
(translation_unit) "/* Print a copyright notice suitable for the current locale.\n Copyright (C) 2001 Free Software Foundation, Inc.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; eit...
143
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 36.58, "nodes": 84, "errors": 0, "source_hash": "035e9f53d405b6c243cd170e30e13c56593e9a0d6968bdadc66bff56cebcecd6", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if HAVE_CO...
12,660
c
// // SentenceNode.h // zDesignPattern-OC // // Created by zyh on 17/4/25. // Copyright © 2017年 zyh. All rights reserved. // #import "AbstractNode.h" /** 简单句子解释:非终结符表达式 */ @interface SentenceNode : AbstractNode - (instancetype)initWithDirection:(AbstractNode *)direction action:(Abstr...
23.94
16
(translation_unit) "//\n// SentenceNode.h\n// zDesignPattern-OC\n//\n// Created by zyh on 17/4/25.\n// Copyright © 2017年 zyh. All rights reserved.\n//\n\n#import "AbstractNode.h"\n\n/**\n 简单句子解释:非终结符表达式\n */\n@interface SentenceNode : AbstractNode\n\n- (instancetype)initWithDirection:(AbstractNode *)direction\n ...
60
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.94, "nodes": 35, "errors": 0, "source_hash": "d71650937febb80eb991b56b5a187c0c12002f9421775f8e21e31465e47ca9ed", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ab...
12,661
c
#pragma once #include <Windows.h> #include <string>
17
3
(translation_unit) "#pragma once \n#include <Windows.h> \n#include <string> \n \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include <Windows.h> \n" (#include) "#include" (system_lib_string) "<Windows.h>" (preproc_include) "#include <s...
10
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 17.0, "nodes": 9, "errors": 0, "source_hash": "cbfcf5010f8c300276ba945b8f09ef981c24065cc5a90b2a5fb55ba1f59b2c76", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
12,662
c
// // GSTouchesShowingController.h // FlurryPodExperiment // // Created by <NAME> on 6/8/17. // Copyright © 2017 Glimsoft. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface GSTouchesShowingController : NSObject // The view parameter is the upmost view (either UIWindow,...
32.88
16
(translation_unit) "//\n// GSTouchesShowingController.h\n// FlurryPodExperiment\n//\n// Created by <NAME> on 6/8/17.\n// Copyright © 2017 Glimsoft. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n\n@interface GSTouchesShowingController : NSObject\n\n// The view parameter is...
110
18
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.88, "nodes": 65, "errors": 0, "source_hash": "0f5a083660716836714297761f6984abeb7d50650e823be247c6638dba125ba6", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
12,663
c
/* $OpenBSD: com_oct.c,v 1.2 2010/10/01 16:13:59 syuu Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of...
31.17
173
(translation_unit) "/* $OpenBSD: com_oct.c,v 1.2 2010/10/01 16:13:59 syuu Exp $ */\n\n/*\n * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are me...
1,132
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 31.17, "nodes": 757, "errors": 0, "source_hash": "f18569db55a7e777255ff8ffb94c4e7aa56f43c1fd21b5577c90d21aaa52bdf3", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,664
c
// // TM & (c) 2020 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd. // All rights reserved. See LICENSE.txt for license. // #ifndef MATERIALX_PVTCREATEPRIMCMD_H #define MATERIALX_PVTCREATEPRIMCMD_H #include <MaterialXRuntime/Private/PvtCommand.h> #include <MaterialXRuntime/RtStage.h> #include <MaterialXRunt...
30.97
34
(translation_unit) "//\n// TM & (c) 2020 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.\n// All rights reserved. See LICENSE.txt for license.\n//\n\n#ifndef MATERIALX_PVTCREATEPRIMCMD_H\n#define MATERIALX_PVTCREATEPRIMCMD_H\n\n#include <MaterialXRuntime/Private/PvtCommand.h>\n\n#include <MaterialXRuntime/RtSt...
214
14
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 30.97, "nodes": 122, "errors": 0, "source_hash": "933ecca2f7abb3a44ee4116d8fe688092e2cfb1d318fc22fdc0a687f98b4058e", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,665
c
# include <stdio.h> # include <stdlib.h> /* malloc */ # include <string.h> /* strchr */ # include <ctype.h> #include "hstcal.h" # include "hstio.h" # include "wf3.h" # include "wf3info.h" # include "hstcalerr.h" char * replace_str(char *, char *, char *); static void Phot2Obs (char *, char *); /* This routine ...
38.44
232
(translation_unit) "# include <stdio.h>\n# include <stdlib.h> /* malloc */\n# include <string.h> /* strchr */\n# include <ctype.h>\n\n#include "hstcal.h"\n# include "hstio.h"\n\n# include "wf3.h"\n# include "wf3info.h"\n# include "hstcalerr.h"\n\nchar * replace_str(char *, char *, char *);\n\nstatic void Phot2Obs (...
1,809
0
{"language": "c", "success": true, "metadata": {"lines": 232, "avg_line_length": 38.44, "nodes": 945, "errors": 0, "source_hash": "65d27fba73cb6f350e54593306c907a471429365d56e4db5a52304e2ea60c673", "categorized_nodes": 744}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# i...
12,666
c
return TCL_OK; #undef ip } #ifdef __cplusplus } #endif
8.17
6
(translation_unit) "return TCL_OK;\n#undef ip\n}\n#ifdef __cplusplus\n}\n#endif\n" (return_statement) "return TCL_OK;" (return) "return" (identifier) "TCL_OK" (;) ";" (preproc_call) "#undef ip\n" (preproc_directive) "#undef" (preproc_arg) "ip" (ERROR) "}" (}) "}" (preproc_ifdef) "#ifdef ...
16
2
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 8.17, "nodes": 9, "errors": 0, "source_hash": "12ffc0bc4fc049b539aeb8e9ea8be3b0667cdb9569b791825e58b2757a522e23", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "return_statement", "text": "return TC...
12,667
c
/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #ifndef AVOGADRO_QTPLUGINS_...
33.64
76
(translation_unit) "/******************************************************************************\n This source file is part of the Avogadro project.\n This source code is released under the 3-Clause BSD License, (see "LICENSE").\n******************************************************************************/\n\n#i...
668
43
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 33.64, "nodes": 405, "errors": 0, "source_hash": "95ef3373c1f7dd20b6bfdd10aedf4ac2fe8785d3c4f658679c4b39281dc9a92d", "categorized_nodes": 283}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,668
c
// Copyright (c) 2022 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef physics_hpp #define physics_hpp #include "vector3.h" #include <PxPhysicsAPI.h> #include <memor...
22.78
36
(translation_unit) "// Copyright (c) 2022 <NAME>\n//\n// I am making my contributions/submissions to this project solely in my\n// personal capacity and am not conveying any rights to any intellectual\n// property of any third parties.\n\n#ifndef physics_hpp\n#define physics_hpp\n\n#include "vector3.h"\n#include <P...
135
3
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.78, "nodes": 79, "errors": 0, "source_hash": "f133347530ce2c6b7d030494ccbc930255c2bc9a9339b6760b83d61cbd09a66f", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,669
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" @class NSData; @interface NFDSessionInfo : NSObject { unsigned int _sessionID; NSData *_cookie; } + (id)sessionInfoWithID:(int)arg1 cookie:(id)arg2; - (voi...
28.18
17
(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@class NSData;\n\n@interface NFDSessionInfo : NSObject\n{\n unsigned int _sessionID;\n NSData *_cookie;\n}\n\n+ (id)sessionInfoWith...
113
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 28.18, "nodes": 69, "errors": 0, "source_hash": "4d96883ff2fcbfc16f01fd0ef1e9de43df8cdd463c70c80fe916a5680c0346b4", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,670
c
#include <tamtypes.h> #include "gamesettings.h" #include "math.h" #include "help.h" /* * Points to the active game settings. */ #define GLOBAL_GAMESETTINGS ((GameSettings*)(*(u32*)0x0021DFE8)) /* * Points to the active game options. */ #define GLOBAL_GAMEOPTIONS ((Game...
25.09
82
(translation_unit) "#include <tamtypes.h> \n#include "gamesettings.h" \n#include "math.h" \n#include "help.h" \n \n \n/* \n * Points to the active game settings. \n */ \n#define GLOBAL_GAMESETTINGS ((GameSettings*)(*(u32*)0x0021DFE8)) \n \n \n/* \n * Points to the active game options. \n */ \n#define GLOB...
252
2
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 25.09, "nodes": 149, "errors": 0, "source_hash": "1455e9335d1f0803d4f24ef218f8c5e131559ed0fd6406c1a21f4ebfe3c6fd93", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,671
c
#ifndef _UNISTD_H_ #define _UNISTD_H_ #define strdup _strdup #endif
16
4
(translation_unit) "#ifndef _UNISTD_H_\n#define _UNISTD_H_\n\n#define strdup _strdup\n\n#endif" (preproc_ifdef) "#ifndef _UNISTD_H_\n#define _UNISTD_H_\n\n#define strdup _strdup\n\n#endif" (#ifndef) "#ifndef" (identifier) "_UNISTD_H_" (preproc_def) "#define _UNISTD_H_\n" (#define) "#define" (i...
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 16.0, "nodes": 11, "errors": 0, "source_hash": "41c543b0d8e742b25c624c66433ff994e6b1d7692feac6f9600b568714e1d6dd", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _UN...
12,672
c
// Handle parsing debug information from C files // In this case it's adb information as per sdcc #include "ticks.h" #include <ctype.h> #include <stdio.h> typedef struct cfile_s cfile; typedef struct { int line; int address; cfile *file; UT_hash_handle hh; } cline;...
24.34
130
(translation_unit) "// Handle parsing debug information from C files\n// In this case it's adb information as per sdcc\n\n\n#include "ticks.h"\n#include <ctype.h>\n#include <stdio.h>\n\n\ntypedef struct cfile_s cfile;\n\ntypedef struct {\n int line;\n int address;\n cfile *file...
984
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 24.34, "nodes": 621, "errors": 0, "source_hash": "d31d28390afd181e202161df7f4cfda49eea5f74722eb9fb3ed7bb55d4718ed7", "categorized_nodes": 405}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,673
c
#ifndef __GoalRoad_H__ #define __GoalRoad_H__ 1 class CityAgent; struct MapPointData; #include "GoalInst.h" class GoalRoad : public GoalInstallation { CityAgent *m_start; CityAgent *m_dest; sint32 m_bufSize; MapPointData *m_buffer; sint32 m_nPoints; sint32 m_road_type; sint32...
27.2
25
(translation_unit) "#ifndef __GoalRoad_H__\n#define __GoalRoad_H__ 1\n\nclass CityAgent; \nstruct MapPointData; \n\n#include "GoalInst.h"\n\nclass GoalRoad : public GoalInstallation { \n\n CityAgent *m_start; \n CityAgent *m_dest; \n\n sint32 m_bufSize; \n MapPointData *m_buffer; \n sint32 m_nPoints;\n ...
183
10
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.2, "nodes": 122, "errors": 0, "source_hash": "045875eacb1f6ec864cdd51f3d97041ad8de233a33b2857c032d349421b09583", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __GoalRo...
12,674
c
#ifndef REGISTER_ATLAS_TYPES_H #define REGISTER_ATLAS_TYPES_H void register_atlas_types(); void unregister_atlas_types(); #endif
24.8
5
(translation_unit) "#ifndef REGISTER_ATLAS_TYPES_H\n#define REGISTER_ATLAS_TYPES_H\n\nvoid register_atlas_types();\nvoid unregister_atlas_types();\n\n#endif" (preproc_ifdef) "#ifndef REGISTER_ATLAS_TYPES_H\n#define REGISTER_ATLAS_TYPES_H\n\nvoid register_atlas_types();\nvoid unregister_atlas_types();\n\n#endif" (...
24
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 24.8, "nodes": 17, "errors": 0, "source_hash": "25496cc3afcc2437d8f5ee0ecc57494a2b142a3664a5b42489b2484841b5ccce", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef RE...
12,675
c
/* module : do_enconcat.c version : 1.2 date : 10/26/20 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include "data.h" #include "ident.h" #include "set32.h" /* enconcat : X S T -> U Sequence U is the concatenation of sequences S and T with X inserted between S a...
21.18
79
(translation_unit) "/*\n module : do_enconcat.c\n version : 1.2\n date : 10/26/20\n*/\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <assert.h>\n#include "data.h"\n#include "ident.h"\n#include "set32.h"\n\n/*\nenconcat : X S T -> U\nSequence U is the concatenation of sequences ...
716
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 21.18, "nodes": 478, "errors": 0, "source_hash": "2e951ff010d85c0e01b360a09ae75b1b471ea29eb034cd329a69ebc1063d8234", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,676
c
// // HomeModarDetailController.h // 08_ForceOrientation // // Created by Fengtf on 2017/2/17. // Copyright © 2017年 ftf. All rights reserved. // #import <UIKit/UIKit.h> @interface HomeModarDetailController : UIViewController @end
22.4
10
(translation_unit) "//\n// HomeModarDetailController.h\n// 08_ForceOrientation\n//\n// Created by Fengtf on 2017/2/17.\n// Copyright © 2017年 ftf. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HomeModarDetailController : UIViewController\n\n@end\n" (comment) "//" (comment) "// HomeModarDetai...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 10, "errors": 0, "source_hash": "e2901b3124bc72c14dbc7d6d83f02480418932a76fda5cf850f3914745393275", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
12,677
c
#ifndef SPH_H #define SPH_H #ifdef _OPENMP #include <omp.h> #endif #include "MathTool.h" #include "Mesh.h" #include "GLTool.h" #define MAX_NUM_INDEX 1000 #define SPH_GRAVITY -9806.65 //[mm/s^2] typedef struct{ Vec3d position; Vec3d velocity; Vec3d force; double rho; double pres...
21.99
75
(translation_unit) "#ifndef SPH_H \n#define SPH_H \n \n#ifdef _OPENMP \n#include <omp.h> \n#endif \n \n#include "MathTool.h" \n#include "Mesh.h" \n#include "GLTool.h" \n \n#define MAX_NUM_INDEX 1000 \n#define SPH_GRAVITY -9806.65 //[mm/s^2] \n \ntypedef struct{ \n Vec3d position; \n Vec3d velocity; \n Vec3d ...
378
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 21.99, "nodes": 273, "errors": 0, "source_hash": "3d69ee34ba297918ad7e23118eb32ac719711d99b54d7f1a191dafa75f35d8f8", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,678
c
/* zoltanParams.h prototypes for Zoltan parameters from a file, call Zoltan to set the parameters zoltanParams library <NAME> Department of Computer Science Williams College and Computer Science Research Institute Sandia National Laboratories $Id: zoltanParams....
24.04
56
(translation_unit) "/* \n zoltanParams.h \n \n prototypes for Zoltan parameters from a file, call Zoltan to set \n the parameters \n \n zoltanParams library \n \n <NAME> \n \n Department of Computer Science \n Williams College \n \n and \n \n Computer Science Research Institute \n Sandia National L...
197
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 24.04, "nodes": 146, "errors": 0, "source_hash": "509a32bf4ec5a4e9587b44c76844f37dfc4c299675a9320a4d0c9ea72aa78f44", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,679
c
#pragma once #include <QObject> #include "graph/watchers.h" class RenderProxy; class Viewport; class RenderWorker : public QObject, DatumWatcher { Q_OBJECT public: explicit RenderWorker(Datum* datum); void trigger(const DatumState& state) override; static bool accepts(Datum* d); signals: void c...
20.5
18
(translation_unit) "#pragma once\n\n#include <QObject>\n\n#include "graph/watchers.h"\n\nclass RenderProxy;\nclass Viewport;\n\nclass RenderWorker : public QObject, DatumWatcher\n{\n Q_OBJECT\npublic:\n explicit RenderWorker(Datum* datum);\n void trigger(const DatumState& state) override;\n\n static bool ac...
109
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.5, "nodes": 64, "errors": 0, "source_hash": "0094dc7816d7295d2a5301153f38a53d18fa968ec1c7d5c1374ca1fb4028bfdd", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,680
c
#ifndef GAMEAPP_H #define GAMEAPP_H #include <random> #include "d3dApp.h" #include "Camera.h" #include "GameObject.h" #include "ObjReader.h" #include "Collision.h" #include "BlurFilter.h" #include "SobelFilter.h" #include "OITRender.h" #include "TextureRender.h" #include "WavesRender.h" class GameApp : public D3DApp {...
32.46
61
(translation_unit) "#ifndef GAMEAPP_H\n#define GAMEAPP_H\n\n#include <random>\n#include "d3dApp.h"\n#include "Camera.h"\n#include "GameObject.h"\n#include "ObjReader.h"\n#include "Collision.h"\n#include "BlurFilter.h"\n#include "SobelFilter.h"\n#include "OITRender.h"\n#include "TextureRender.h"\n#include "WavesRender.h...
434
15
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 32.46, "nodes": 266, "errors": 0, "source_hash": "e5c6b4a65a27932be91578d7cd34d8f55d2a65f3e755cb4e0a54003634a24d0e", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,681
c
#pragma once using namespace System; using namespace System::Runtime::InteropServices; using namespace WebKit::JSCore; namespace WebKit { namespace JSCore { class JSCoreMarshal { private: JSCoreMarshal() {} public: static JSStringRef StringToJSString(String ^ value); ...
22.89
18
(translation_unit) "#pragma once\n\nusing namespace System;\nusing namespace System::Runtime::InteropServices;\nusing namespace WebKit::JSCore;\n\nnamespace WebKit {\nnamespace JSCore {\n \n class JSCoreMarshal\n {\n private:\n \n JSCoreMarshal() {}\n\n public:\n\n static JSStringRef...
106
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.89, "nodes": 55, "errors": 0, "source_hash": "1669f1f6851fc2b9cd6743fb088cbebdd27b7f6f92a75b5f3107c3514ef730f8", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,682
c
/* * This file is part of the Simutrans-Extended project under the Artistic License. * (see LICENSE.txt) */ #ifndef GUI_SIGNAL_CONNECTOR_GUI_H #define GUI_SIGNAL_CONNECTOR_GUI_H #include "gui_frame.h" #include "components/gui_label.h" #include "components/gui_button.h" #include "components/action_listener.h" #inc...
28.61
51
(translation_unit) "/*\n * This file is part of the Simutrans-Extended project under the Artistic License.\n * (see LICENSE.txt)\n */\n\n#ifndef GUI_SIGNAL_CONNECTOR_GUI_H\n#define GUI_SIGNAL_CONNECTOR_GUI_H\n\n\n#include "gui_frame.h"\n#include "components/gui_label.h"\n#include "components/gui_button.h"\n#include "co...
304
8
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.61, "nodes": 192, "errors": 0, "source_hash": "1c00b3185a41eecc0b3fa851e56f3f73d03bef071805bc3b3a04c568d2c8add7", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,683
c
#import "GeneratedPluginRegistrant.h" #import "SNGetApiUrlsTool.h" #import "SNGlobalShare.h" #import "KYApiHttpTool.h"
28.75
4
(translation_unit) "#import "GeneratedPluginRegistrant.h"\n#import "SNGetApiUrlsTool.h"\n#import "SNGlobalShare.h"\n#import "KYApiHttpTool.h"\n" (preproc_call) "#import "GeneratedPluginRegistrant.h"\n" (preproc_directive) "#import" (preproc_arg) ""GeneratedPluginRegistrant.h"" (preproc_call) "#import "SNGet...
13
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 28.75, "nodes": 12, "errors": 0, "source_hash": "0c0258b57470b192750306640694d66f247e1175735a6f532d4b927ae58a9ff9", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"G...
12,684
c
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gauge.h // Purpose: wxGauge interface // Author: <NAME> // Modified by: // Created: 20.02.01 // RCS-ID: $Id: gauge.h,v 1.11 2002/08/31 11:29:10 GD Exp $ // Copyright: (c) 1996-2001 wxWindows team // Li...
32.66
79
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// Name: wx/gauge.h\n// Purpose: wxGauge interface\n// Author: <NAME>\n// Modified by:\n// Created: 20.02.01\n// RCS-ID: $Id: gauge.h,v 1.11 2002/08/31 11:29:10 GD Exp $\n// Copyright: (c) 199...
431
16
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 32.66, "nodes": 275, "errors": 0, "source_hash": "f049d017309606f22dac72f62038497c35c14d76319e86c2b432deaa2fb3f91d", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,685
c
/* * Copyright © 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distr...
36.67
84
(translation_unit) "/*\n * Copyright © 2014 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, copy, mod...
534
2
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 36.67, "nodes": 327, "errors": 0, "source_hash": "75436226db6ef41ad78e9a10e89f1ec3f97550d5da5bb8de65a9fdd4c7a69ef6", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
12,686
c
#ifndef __BUTTON_H #define __BUTTON_H #include "sys.h" void BUTTON_Init(void); u8 BT_1 (void ) ; u8 BT_2 (void ) ; u8 BT_3 (void ) ; u8 BT_4 (void ) ; u8 BT_5 (void ) ; u8 BT_6 (void ) ; u8 BT_7 (void ) ; u8 BT_8 (void ) ; u8 BT_9 (void ) ; u8 BT_10(void ); u8 BT_11(void ); u8 BT_12(void ); u8 BT_13(void ); u8 BT_14(...
16
22
(translation_unit) "#ifndef __BUTTON_H\n#define __BUTTON_H\n#include "sys.h" \n\nvoid BUTTON_Init(void);\nu8 BT_1 (void ) ;\nu8 BT_2 (void ) ;\nu8 BT_3 (void ) ;\nu8 BT_4 (void ) ;\nu8 BT_5 (void ) ;\nu8 BT_6 (void ) ;\nu8 BT_7 (void ) ;\nu8 BT_8 (void ) ;\nu8 BT_9 (void ) ;\nu8 BT_10(void );\nu8 BT_11(void );\nu8 BT_1...
184
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 16.0, "nodes": 129, "errors": 0, "source_hash": "b60eda1be82fbf7e75652e5c363240789d09ab7d257f448d3d54a2b4dc609202", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,687
c
#pragma once #include "Component.h" #include "OutputPin.h" #include "InputPin.h" class SWITCH : public Component { pincoor outp; OutputPin m_OutputPin; public: SWITCH(const GraphicsInfo &r_GfxInfo, int r_FanOut); virtual void Operate(); //Calculates the output according to the inputs virtual void Draw(Output* pOu...
36.41
37
(translation_unit) "#pragma once\n#include "Component.h"\n#include "OutputPin.h"\n#include "InputPin.h"\n\nclass SWITCH : public Component\n{\n pincoor outp;\n OutputPin m_OutputPin;\npublic:\n SWITCH(const GraphicsInfo &r_GfxInfo, int r_FanOut);\n virtual void Operate(); //Calculates the output according to the inputs...
318
15
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.41, "nodes": 204, "errors": 0, "source_hash": "c3d57c7c6aa198e679d3d7c9859ba97832223fd86cbbed03c53a587956a126c6", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,688
c
/* * author: <NAME> <EMAIL> * date: 20/04/2020 */ #ifndef GRAVITY2D_Vector2_H_ #define GRAVITY2D_Vector2_H_ template<typename T = double> class Vector2 { public: // Fields T x, y; // Constructors Vector2(); Vector2(T xInit, T yInit); Vector2(const Vector2& base); // Operators bool operator==(c...
24.53
45
(translation_unit) "/*\n * author: <NAME> <EMAIL>\n * date: 20/04/2020\n */\n\n#ifndef GRAVITY2D_Vector2_H_\n#define GRAVITY2D_Vector2_H_\n\ntemplate<typename T = double>\nclass Vector2 {\n\npublic:\n // Fields\n T x, y;\n\n // Constructors\n Vector2();\n\n Vector2(T xInit, T yInit);\n\n Vector2(const Vector2& ba...
350
23
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.53, "nodes": 228, "errors": 0, "source_hash": "0c9e372437e5b9e0c76317e67ec0bcd0cab26a43c36bec4fbe279fcc5639b709", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,689
c
/* Copyright 2001, 2002, 2003 <NAME> and <NAME> */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your...
28.12
313
(translation_unit) "/* Copyright 2001, 2002, 2003 <NAME> and <NAME> */\n\n/* This program is free software; you can redistribute it and/or modify */\n/* it under the terms of the GNU General Public License as published by */\n/* the Free Software Foundation; either version 2 of the License, or...
2,675
0
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 28.12, "nodes": 1686, "errors": 0, "source_hash": "9d8c37aba2ad2dcea6d337ee53010e8d3dd3c35f9c02f3909c555896efe267c1", "categorized_nodes": 1249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,690
c
/* This program is used to demonstrate dynamic memory allocation: 1. malloc() 2. calloc() 3. realloc() 4. free() */ #include <stdio.h> int main() { int *arr1 = NULL; int n, i; n = 5; arr1 = (int *)malloc(n * sizeof(int)); //dynamically created array using 'malloc' for (i = 0; i < n; ++i) { ...
25.65
34
(translation_unit) "/*\nThis program is used to demonstrate dynamic memory allocation:\n1. malloc()\n2. calloc()\n3. realloc()\n4. free()\n*/\n#include <stdio.h>\n\nint main()\n{\n\n int *arr1 = NULL;\n int n, i;\n n = 5;\n\n arr1 = (int *)malloc(n * sizeof(int)); //dynamically created array using 'malloc'\...
325
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.65, "nodes": 197, "errors": 0, "source_hash": "db829bf9cd738721b92aa1adeafc0cb3fc0814018c823628b845b888efc4040d", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,691
c
# Add closefrom(2) support # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 # https://bugs.python.org/issue38061 # TODO: Upstream --- Modules/_posixsubprocess.c.orig 2019-10-14 22:32:36 UTC +++ Modules/_posixsubprocess.c @@ -236,8 +236,15 @@ _close_fds_by_brute_force(long start_fd, PyObject *py_ sta...
29.79
24
(translation_unit) "# Add closefrom(2) support\n# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274\n# https://bugs.python.org/issue38061\n# TODO: Upstream\n\n--- Modules/_posixsubprocess.c.orig 2019-10-14 22:32:36 UTC\n+++ Modules/_posixsubprocess.c\n@@ -236,8 +236,15 @@ _close_fds_by_brute_force(long start_fd,...
222
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.79, "nodes": 159, "errors": 0, "source_hash": "535a5e7056adf65a582ff22e89f033db416031e3bfcd714e8b27ca9f7b2ccbf5", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "# Add cl...
12,692
c
/* This file is part of GNUnet. Copyright (C) 2013 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. G...
27.99
206
(translation_unit) "/*\n This file is part of GNUnet.\n Copyright (C) 2013 GNUnet e.V.\n\n GNUnet is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published\n by the Free Software Foundation; either version 3, or (at your\n option)...
450
3
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 27.99, "nodes": 328, "errors": 0, "source_hash": "b8f6bad190923b3f7d2b191c71b8449b1478b8f71745e58f66d3edf330bd1726", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef GNUNE...
12,693
c
#pragma once #include <stdint.h> struct init_result { char* heap_pointer; char* heap_limit; }; struct init_result init_garbage_collector(); struct heap_alloc_result { uintptr_t result; char* heap_pointer; char* heap_limit; }; struct shadow_stack_frame_entry { uintptr_t size; char* data; }; struct sh...
30.67
27
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\nstruct init_result {\n char* heap_pointer;\n char* heap_limit;\n};\n\nstruct init_result init_garbage_collector();\n\nstruct heap_alloc_result {\n uintptr_t result;\n char* heap_pointer;\n char* heap_limit;\n};\n\nstruct shadow_stack_frame_entry {\n uintp...
208
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.67, "nodes": 150, "errors": 0, "source_hash": "27e276e610ab6e5366d56db31f1c831e6919650ae2589604ddd2b9db899b9b88", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,694
c
/* eclean-kernel2 * (c) 2016 <NAME> * 2-clause BSD license */ #pragma once #ifndef EK2_LAYOUTS_STD_H #define EK2_LAYOUTS_STD_H 1 #include "ek2/fileset.h" #include "ek2/layout.h" #include "ek2/options.h" #include "ek2/util/directorystream.h" #include <memory> #include <unordered_map> #include <vector> // Standar...
27.26
31
(translation_unit) "/* eclean-kernel2\n * (c) 2016 <NAME>\n * 2-clause BSD license\n */\n\n#pragma once\n\n#ifndef EK2_LAYOUTS_STD_H\n#define EK2_LAYOUTS_STD_H 1\n\n#include "ek2/fileset.h"\n#include "ek2/layout.h"\n#include "ek2/options.h"\n#include "ek2/util/directorystream.h"\n\n#include <memory>\n#include <unordere...
195
11
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.26, "nodes": 114, "errors": 0, "source_hash": "b7792e93a35c6c4baae6d810285970f457b81ba4eadc66c46ae9c6765da69c25", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,695
c
// // Created by Guest1 on 26/06/20. // #ifndef TICKETINGSYSTEM_TICKETQUEUE_H #define TICKETINGSYSTEM_TICKETQUEUE_H #pragma once #include<iostream> #include<climits> #include "Ticket.h" using namespace std; void swap(Ticket *x, Ticket *y); class TicketQueue { private: Ticket *harr; int capacity; int h...
25.44
36
(translation_unit) "//\n// Created by Guest1 on 26/06/20.\n//\n\n#ifndef TICKETINGSYSTEM_TICKETQUEUE_H\n#define TICKETINGSYSTEM_TICKETQUEUE_H\n#pragma once\n\n#include<iostream>\n#include<climits>\n\n#include "Ticket.h"\n\nusing namespace std;\n\nvoid swap(Ticket *x, Ticket *y);\n\nclass TicketQueue\n{\nprivate:\n T...
288
2
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.44, "nodes": 189, "errors": 0, "source_hash": "4041f1767a8c7e2d2d602cd91635a6250bc4e8387afdaa908e711800f7f6842b", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,696
c
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2017 - <NAME> * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the Licen...
33.43
164
(translation_unit) "/* RetroArch - A frontend for libretro.\n * Copyright (C) 2010-2014 - <NAME>\n * Copyright (C) 2011-2017 - <NAME>\n *\n * RetroArch is free software: you can redistribute it and/or modify it under the terms\n * of the GNU General Public License as published by the Free Software Found-\n * ation, eit...
1,183
1
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 33.43, "nodes": 685, "errors": 0, "source_hash": "2d1c412bc1eb48e9ddfb76c5ce7dd8ccbb038bb1266a14333dac7c5b67cdbde8", "categorized_nodes": 469}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,697
c
#ifndef _LEVEL_DEFINITIONS_H_ #define _LEVEL_DEFINITIONS_H_ #include <woopsiarray.h> #include "leveldefinitionbase.h" class LevelDefinitions { public: static const WoopsiArray<LevelDefinitionBase*>& getDefinitions(); static void loadCustomLevels(); private: static WoopsiArray<LevelDefinitionBa...
17.84
19
(translation_unit) "#ifndef _LEVEL_DEFINITIONS_H_ \n#define _LEVEL_DEFINITIONS_H_ \n \n#include <woopsiarray.h> \n \n#include "leveldefinitionbase.h" \n \nclass LevelDefinitions { \npublic: \n \n static const WoopsiArray<LevelDefinitionBase*>& getDefinitions(); \n \n static void loadCustomLevels(); \n \nprivate: \n s...
75
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.84, "nodes": 43, "errors": 0, "source_hash": "8704e68df1fc4cd6370ceb09800efe0fb78bca9668f508e8ff9164eb8ea1629f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,698
c
/* -*- C -*- */ /* * Copyright (c) 2017-2020 Seagate Technology LLC and/or its Affiliates * * 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...
28.88
160
(translation_unit) "/* -*- C -*- */\n/*\n * Copyright (c) 2017-2020 Seagate Technology LLC and/or its Affiliates\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...
1,060
2
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 28.88, "nodes": 696, "errors": 0, "source_hash": "ea7b8f629e1153a57faf01d453453a4ce13b23145333db28e88bfc0cd7ee234a", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
12,699