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
#include <stdio.h> #include <stdlib.h> #define QL printf("\n") main(){ float num1, num2; char c, op; do{ printf("\nDigite: numero OP numero\n"); scanf("%f %c %f", &num1, &op, &num2); switch(op) { case'+':{ printf("...
33.5
26
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#define QL printf("\n") \nmain(){ \n float num1, num2; \n char c, op; \n do{ \n printf("\nDigite: numero OP numero\n"); \n scanf("%f %c %f", &num1, &op, &num2); \n switch(op) \n { \n case'+':{ \n...
324
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.5, "nodes": 179, "errors": 0, "source_hash": "4b0343163f7b0adc4cf94dd77b7c4c587e9478b9e628e2703ac42c31a66786df", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,700
c
#ifdef CONFIG_SUPERH32 # include <asm/string_32.h> #else # include <asm/string_64.h> #endif
17.4
5
(translation_unit) "#ifdef CONFIG_SUPERH32\n# include <asm/string_32.h>\n#else\n# include <asm/string_64.h>\n#endif\n" (preproc_ifdef) "#ifdef CONFIG_SUPERH32\n# include <asm/string_32.h>\n#else\n# include <asm/string_64.h>\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SUPERH32" (preproc_include) "# inc...
13
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.4, "nodes": 12, "errors": 0, "source_hash": "582ea4183336ba83ab0ebdb4c04a5bb76bf8c670236ff225a30e9bf782628903", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef CON...
3,701
c
#pragma once #include "json/JSONIterator.h" namespace rho { namespace apiGenerator { typedef rho::String (*Func_JS)(const String& strObjID, rho::json::CJSONArray& argv, const String& strCallbackID, const String& strJsVmID); void js_define_method(const char* szMethodPath, Func_JS pFunc ); rho::String js_entry_point(...
33.08
12
(translation_unit) "#pragma once\n\n#include "json/JSONIterator.h"\n\nnamespace rho\n{\nnamespace apiGenerator\n{\n\ntypedef rho::String (*Func_JS)(const String& strObjID, rho::json::CJSONArray& argv, const String& strCallbackID, const String& strJsVmID);\n\nvoid js_define_method(const char* szMethodPath, Func_JS pFunc...
139
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.08, "nodes": 79, "errors": 0, "source_hash": "a4f0a35a6b2853d1df4b3192fe40dbd9a50e08f8ec2aec1da3d2c30864b13417", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,702
c
/* * Copyright (c) 2019 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * This code uses concepts and configuration based on 'synth', by * <NAME> <<EMAIL>>, which was written in ada. * * Redistribution and use in s...
27.09
247
(translation_unit) "/*\n * Copyright (c) 2019 The DragonFly Project. All rights reserved.\n *\n * This code is derived from software contributed to The DragonFly Project\n * by <NAME> <<EMAIL>>\n *\n * This code uses concepts and configuration based on 'synth', by\n * <NAME> <<EMAIL>>, which was written in ada.\n *\n ...
1,586
1
{"language": "c", "success": true, "metadata": {"lines": 247, "avg_line_length": 27.09, "nodes": 880, "errors": 0, "source_hash": "2b1a6bba8cb22f600136322597966a686c4be42a2cd9faf78414aa08021363dd", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,703
c
//$$CDS-header$$ #ifndef __CDS_COMPILER_GCC_X86_BACKOFF_H #define __CDS_COMPILER_GCC_X86_BACKOFF_H //@cond none namespace cds { namespace backoff { namespace gcc { namespace x86 { # define CDS_backoff_pause_defined static inline void backoff_pause( unsigned int nLoop = 0x000003FF ) { ...
29.48
31
(translation_unit) "//$$CDS-header$$\n\n#ifndef __CDS_COMPILER_GCC_X86_BACKOFF_H\n#define __CDS_COMPILER_GCC_X86_BACKOFF_H\n\n//@cond none\n\nnamespace cds { namespace backoff {\n namespace gcc { namespace x86 {\n\n# define CDS_backoff_pause_defined\n static inline void backoff_pause( unsigned int nLoop...
171
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.48, "nodes": 86, "errors": 0, "source_hash": "632c459da89ec3270c3758fa68055a0b04f8aa1a900182a4a77d29f041712a28", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,704
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/GameCenterPrivateUI.framework/GameCenterPrivateUI */ @interface GKDetailViewController : GKDashboardCollectionViewController { GKHorizontalBubbleControlsView * _bubbleView; } @property (nonatomic) GKHorizontalBubbleControlsView *bubbleVie...
38.58
24
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/GameCenterPrivateUI.framework/GameCenterPrivateUI\n */\n\n@interface GKDetailViewController : GKDashboardCollectionViewController {\n GKHorizontalBubbleControlsView * _bubbleView;\n}\n\n@property (nonatomic) GKHorizontalB...
321
22
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 38.58, "nodes": 188, "errors": 0, "source_hash": "ee247be4bdded510f451a4a5e9daade9964f2e44b934a365713c3dec97aec427", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
3,705
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ProactiveSupport.framework/ProactiveSupport */ @interface _PASStringPairs : NSObject { NSArray * _keys; NSArray * _values; } @property (nonatomic, readonly) unsigned long long count; @property (nonatomic, readonly) NSArray *keys; @pro...
30.11
19
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/ProactiveSupport.framework/ProactiveSupport\n */\n\n@interface _PASStringPairs : NSObject {\n NSArray * _keys;\n NSArray * _values;\n}\n\n@property (nonatomic, readonly) unsigned long long count;\n@property (nonatomic,...
201
18
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.11, "nodes": 129, "errors": 0, "source_hash": "77f431d1fcf74068ff011577461f39f88264a242182c60e83c5d2b8dd930761f", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
3,706
c
// // PYIMModeMedia.h // PYIMAV // // Created by <NAME> on 2018/4/26. // Copyright © 2018年 Ponyo. All rights reserved. // #import <Foundation/Foundation.h> #import "PYIMModeAudio.h" //系统错误 #define EVENT_ERROR -1 //p2p连接失败 #define EVENT_P2P_DISCONNECT -2 //发送请求超时 #define EVENT_REQUEST_TIMEOUT -3 //摄像头错误,打不开 #...
35.82
141
(translation_unit) "//\n// PYIMModeMedia.h\n// PYIMAV\n//\n// Created by <NAME> on 2018/4/26.\n// Copyright © 2018年 Ponyo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PYIMModeAudio.h"\n\n//系统错误\n#define EVENT_ERROR -1\n//p2p连接失败\n#define EVENT_P2P_DISCONNECT -2\n//发送请求超时\n#define EV...
1,070
118
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 35.82, "nodes": 726, "errors": 0, "source_hash": "a9396be8f5fef8b982fda88db3cd35d636850eac70f14bd4a92432d2cc152e1f", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
3,707
c
/* ***************************************************************************** * * Name: frame.h * Author: <NAME> * Email: <EMAIL> * License: The MIT License (MIT) * * Description: Display the login frame. * * Notes: None. * * **********************************************************************...
23.09
22
(translation_unit) "/* *****************************************************************************\n * \n * Name: frame.h\n * Author: <NAME>\n * Email: <EMAIL>\n * License: The MIT License (MIT)\n * \n * Description: Display the login frame.\n * \n * Notes: None.\n * \n * ***************************************...
37
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.09, "nodes": 22, "errors": 0, "source_hash": "9ede2be5a32d9021ec411da49b64c2787255156eda298e8441c1dd569617b239", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,708
c
// // UINavigationController+Extended.h // CSCategory // // Created by mac on 2017/7/5. // Copyright © 2017年 mac. All rights reserved. // #import <UIKit/UIKit.h> @interface UINavigationController (Extended) <UIGestureRecognizerDelegate> /** * @brief 寻找Navigation中的某个viewcontroler对象 * * @param className view...
26.28
57
(translation_unit) "//\n// UINavigationController+Extended.h\n// CSCategory\n//\n// Created by mac on 2017/7/5.\n// Copyright © 2017年 mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UINavigationController (Extended)\n<UIGestureRecognizerDelegate>\n\n/**\n * @brief 寻找Navigation中的某个viewcontro...
161
13
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.28, "nodes": 89, "errors": 0, "source_hash": "011ac76f8c02851bce66abeab025cc8aea84c1b19a462f61d83f0e62e7190308", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
3,709
c
#ifndef __SCYTHE_LABEL_H__ #define __SCYTHE_LABEL_H__ #include "widget.h" #include "graphics/renderer.h" #include "graphics/text.h" namespace scythe { //! Label class, holds DynamicText object class Label : public Widget { public: Label(Renderer * renderer, Shader * shader, Font * font, const Vector4& colo...
25.19
32
(translation_unit) "#ifndef __SCYTHE_LABEL_H__\n#define __SCYTHE_LABEL_H__\n\n#include "widget.h"\n#include "graphics/renderer.h"\n#include "graphics/text.h"\n\nnamespace scythe {\n\n //! Label class, holds DynamicText object\n class Label : public Widget {\n public:\n Label(Renderer * renderer, Shader * shader,\n ...
215
11
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.19, "nodes": 140, "errors": 0, "source_hash": "11d2a9bc4bf0dbf95fbc8afbf1c37c3d8acf6a0bc2f3bf3e112d8b286008c0c7", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,710
c
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2021 YADRO * * Authors: * <NAME> <<EMAIL>> */ #ifndef __I2C_H__ #define __I2C_H__ #include <sbi/sbi_types.h> #include <sbi/sbi_list.h> /** Representation of a I2C adapter */ struct i2c_adapter { /** Pointer to I2C driver owning this I2C adapter *...
28.01
67
(translation_unit) "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2021 YADRO\n *\n * Authors:\n * <NAME> <<EMAIL>>\n */\n\n#ifndef __I2C_H__\n#define __I2C_H__\n\n#include <sbi/sbi_types.h>\n#include <sbi/sbi_list.h>\n\n/** Representation of a I2C adapter */\nstruct i2c_adapter {\n /** Pointer to...
411
1
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 28.01, "nodes": 290, "errors": 0, "source_hash": "9df92fd63f3a5436cf7be1f5c05ffb98c51e50aea3137388260860e8d0574313", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,711
c
#pragma once #include "vec.h" #include "maths.h" namespace OpenApoc { template <typename T> class Angle { private: T curAngle; public: Angle( T Degrees = 0 ); void Add( T Degrees ); void Set( T Degrees ); T ToDegrees(); T ToRadians(); T ShortestAngleTo( const Angle<T> DestinationAngle ); T Sho...
19.77
120
(translation_unit) "#pragma once\n\n#include "vec.h"\n#include "maths.h"\n\nnamespace OpenApoc {\n\ntemplate <typename T>\nclass Angle\n{\n private:\n T curAngle;\n\n public:\n Angle( T Degrees = 0 );\n\n void Add( T Degrees );\n void Set( T Degrees );\n\n T ToDegrees();\n T ToRadians();\n\n T ShortestAngleTo( c...
1,003
74
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 19.77, "nodes": 674, "errors": 0, "source_hash": "1b09c8c56ab0f3c7e583aaad56f392573970492d08804e4e9553a6666ee1f0bf", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,712
c
// // KJVideoEditViewController.h // <NAME> // // Created by <NAME> on 16/05/2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import "QuickDialogController.h" #import <Parse/Parse.h> // ENUM for item type: either an existing item or we're creating a new one typedef NS_ENUM(NSUInteger, KJVideoEditItemT...
29.18
22
(translation_unit) "//\n// KJVideoEditViewController.h\n// <NAME>\n//\n// Created by <NAME> on 16/05/2015.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import "QuickDialogController.h"\n#import <Parse/Parse.h>\n\n// ENUM for item type: either an existing item or we're creating a new one\ntypedef NS_E...
99
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.18, "nodes": 57, "errors": 0, "source_hash": "28e02da3d581ad2166143a8908c0a7f4f77d012b5c1462da062d7a03b9f39784", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3,713
c
#pragma once #include <vector> #include "gfx/texture.h" #include "gfx/vertex.h" #include "utils/matrix.h" #include "utils/span.h" namespace gfx { struct SubDrawList { SubDrawList(TextureView texture); TextureView texture() const; utils::Span<const Vertex> vertices() const; utils::Span<const Vertex:...
35.9
39
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include "gfx/texture.h"\n#include "gfx/vertex.h"\n#include "utils/matrix.h"\n#include "utils/span.h"\n\nnamespace gfx {\n\nstruct SubDrawList {\n SubDrawList(TextureView texture);\n\n TextureView texture() const;\n utils::Span<const Vertex> vertices() c...
494
44
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.9, "nodes": 278, "errors": 0, "source_hash": "d06458bf38a1959109acf8a8014bdb4726bec8f61e1b0091720bca6dbcc99d0c", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,714
c
/* DecodingTable.h * Copyright (C) 2014, <NAME> & <NAME> & <NAME> * all rights reserved. * * This class implements a compact table for decoding prefix-based codes. It * comprises two main structures: * * 1) The decoding table (of 2^k entries) implemented as a sequence of log(x) * bits per entry. * 2) A byt...
34.78
258
(translation_unit) "/* DecodingTable.h\n * Copyright (C) 2014, <NAME> & <NAME> & <NAME>\n * all rights reserved.\n *\n * This class implements a compact table for decoding prefix-based codes. It \n * comprises two main structures:\n *\n * 1) The decoding table (of 2^k entries) implemented as a sequence of log(x)\n * ...
1,076
14
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 34.78, "nodes": 681, "errors": 0, "source_hash": "93631d5a113c1b31e1f46be16aea34f67543a15fff3d84d4f53d1f57f85bb3ed", "categorized_nodes": 511}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,715
c
#pragma once #include "gl_engine.h" namespace gl_demo { static void first_scene() { // Set up the Window GLuint width = 800u; GLuint height = 600u; glen::Window window{ "First Window", width, height }; // Set up the camera glen::TargetCamera targetCam{}; glen::CameraNode targetCam_node{ "Target Camer...
32.98
50
(ERROR) "#pragma once\n\n#include "gl_engine.h"\n\nnamespace gl_demo\n{\n static void first_scene()\n {\n // Set up the Window\n GLuint width = 800u;\n GLuint height = 600u;\n glen::Window window{ "First Window", width, height };\n\n // Set up the camera\n glen::TargetCamera targetCam{};\n glen::CameraNode targe...
532
28
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 32.98, "nodes": 250, "errors": 0, "source_hash": "5457da2061c7250270f11d8a88697c4cd962ed6da126ce3331162ce7c9fc58cc", "categorized_nodes": 203}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
3,716
c
// // TracklyticsViewController.h // Tracklytics // // Created by Stefvg on 03/31/2016. // Copyright (c) 2016 Stefvg. All rights reserved. // @import UIKit; #import "MeterInterface.h" @interface TracklyticsViewController : UIViewController <MeterInterface> @end
23.18
11
(translation_unit) "//\n// TracklyticsViewController.h\n// Tracklytics\n//\n// Created by Stefvg on 03/31/2016.\n// Copyright (c) 2016 Stefvg. All rights reserved.\n//\n\n@import UIKit;\n\n#import "MeterInterface.h"\n@interface TracklyticsViewController : UIViewController <MeterInterface>\n\n@end\n" (comment) "//...
28
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.18, "nodes": 16, "errors": 0, "source_hash": "e763532901654338ff87c821755f24baf1ede95e143eee647fa133306eeb4099", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
3,717
c
/* ** EPITECH PROJECT, 2020 ** matchstick ** File description: ** function */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "../include/match.h" #include "../include/my.h" int is_empty_map(input_t *input, int *stick) { int i = 0; for (i = 0; i != input->line; i++) { ...
23.03
72
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** matchstick\n** File description:\n** function\n*/\n\n#include <unistd.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include "../include/match.h"\n#include "../include/my.h"\n\nint is_empty_map(input_t *input, int *stick)\n{\n int i = 0;\n\n ...
639
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.03, "nodes": 396, "errors": 0, "source_hash": "25c5c2c6e1037ed2f17e15a1794ae2ea33744b6e49a240e196ca9a86143ce90c", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,718
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <QuartzCore/CALayer.h> @class NSColor; @interface _PAEFTCurveColorPickerBorderLayer : CALayer { NSColor *_color; } - (void)drawInContext:(struct CGContext *)arg1; - (do...
22.61
18
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <QuartzCore/CALayer.h>\n\n@class NSColor;\n\n@interface _PAEFTCurveColorPickerBorderLayer : CALayer\n{\n NSColor *_color;\n}\n\n- (void)drawInCont...
120
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.61, "nodes": 71, "errors": 0, "source_hash": "08a611203b9c32b62edc972c743bf6ba70fe82f7c85719022222b06e731c46d0", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,719
c
// // HXPreviewLivePhotoView.h // HXPhotoPickerExample // // Created by Silence on 2019/11/15. // Copyright © 2019 Silence. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class HXPhotoModel; @interface HXPreviewLivePhotoView : UIView @property (assign, nonatomic) BOOL stopCancel; @proper...
27.59
17
(translation_unit) "//\n// HXPreviewLivePhotoView.h\n// HXPhotoPickerExample\n//\n// Created by Silence on 2019/11/15.\n// Copyright © 2019 Silence. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@class HXPhotoModel;\n@interface HXPreviewLivePhotoView : UIView\n@property (assign, no...
102
16
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.59, "nodes": 69, "errors": 0, "source_hash": "a9833dacdfa8f4ae6421118a11c9f773bf32a277b2844f83c0f9343fe80f2970", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,720
c
#ifndef __INTERLOCUPDATE_H__ #define __INTERLOCUPDATE_H__ #include <cstdint> #include <optional> struct InterlocUpdate { uint16_t m_robotId{}; /** * @brief Distance in meters */ std::optional<float> m_distance; /** * @brief Angle of the distant agent in the frame of the current agent ...
25.82
17
(translation_unit) "#ifndef __INTERLOCUPDATE_H__\n#define __INTERLOCUPDATE_H__\n\n#include <cstdint>\n#include <optional>\n\nstruct InterlocUpdate {\n uint16_t m_robotId{};\n\n /**\n * @brief Distance in meters\n */\n std::optional<float> m_distance;\n\n /**\n * @brief Angle of the distant agent...
74
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.82, "nodes": 46, "errors": 0, "source_hash": "97fa6d1f1ccebaa270a82a2a85f75f2f31468d0fec430ef32acc4971f3673836", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,721
c
/*************************************************************************** * Copyright 2012 - 2013 Advanced Micro Devices, Inc. * * 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 * * ...
41.01
130
(translation_unit) "/***************************************************************************\n* Copyright 2012 - 2013 Advanced Micro Devices, Inc.\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 cop...
1,079
34
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 41.01, "nodes": 690, "errors": 0, "source_hash": "bd64bac8c6d67005724b47f39539858e7ad898f3ea9bca5149c4fe5c4a070668", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
3,722
c
/* * winetest definitions * * Copyright 2003 <NAME> * Copyright 2003 <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 opt...
28.11
66
(translation_unit) "/*\n * winetest definitions\n *\n * Copyright 2003 <NAME>\n * Copyright 2003 <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...
361
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 28.11, "nodes": 259, "errors": 0, "source_hash": "d679405cfe640b599265560fad1b2bf5a9806578f69f0c6bd5da158892c205ed", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,723
c
#include <stdio.h> #define SIZE 4 int main(void) { int some_data[SIZE] = {1492, 1066}; int i; printf("%2s%14s\n", "i", "some_data[i]"); for (i = 0; i < SIZE; i++) { printf("%2d%14d\n", i, some_data[i]); } return 0; }
20.18
11
(translation_unit) "#include <stdio.h>\n\n#define SIZE 4\n\nint main(void) {\n int some_data[SIZE] = {1492, 1066};\n\n int i;\n\n printf("%2s%14s\n", "i", "some_data[i]");\n\n for (i = 0; i < SIZE; i++) {\n printf("%2d%14d\n", i, some_data[i]);\n }\n\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" ...
106
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.18, "nodes": 57, "errors": 0, "source_hash": "4981ef30f32352f99240c751be56f04b08e569a3943a478586e374342a9da50b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,724
c
/* This file is part of the software similarity tester SIM. Written by <NAME>, Vrije Universiteit, Amsterdam. $Id: lang.c,v 2.6 2012-09-30 11:55:19 Gebruiker Exp $ */ /* This is a dummy implementation of the module 'lang'. Its actual implementation derives from one of the *lang.l files. */ #include <stdio.h> #in...
19.73
26
(translation_unit) "/* This file is part of the software similarity tester SIM.\n Written by <NAME>, Vrije Universiteit, Amsterdam.\n $Id: lang.c,v 2.6 2012-09-30 11:55:19 Gebruiker Exp $\n*/\n\n/*\n This is a dummy implementation of the module 'lang'.\n Its actual implementation derives from one of the *lang.l files....
85
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.73, "nodes": 51, "errors": 0, "source_hash": "f11617f412ab0141d575a420a95b9b4e6637efde2b911ea9f38defaf42874dc4", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,725
c
// // FileUploader.h // // Created by <NAME> on 14/01/2011. // Copyright 2011 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #ifdef CORDOVA_FRAMEWORK #import <CORDOVA/CDVPlugin.h> #else #import "CORDOVA/CDVPlugin.h" #endif @interface FileUploader : CDVPlugin { } - (void) upload:(NSMutableArray*...
37.16
32
(ERROR) "//\n// FileUploader.h\n//\n// Created by <NAME> on 14/01/2011.\n// Copyright 2011 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#ifdef CORDOVA_FRAMEWORK\n#import <CORDOVA/CDVPlugin.h>\n#else\n#import "CORDOVA/CDVPlugin.h"\n#endif\n\n@interface FileUploader : CDVPlugin {\n\n}\n- (voi...
263
32
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 37.16, "nodes": 167, "errors": 0, "source_hash": "fe380d79fd4c6de79458d090ae4cad9e8c90e75c160cbeef1085e83dceeb42da", "categorized_nodes": 102}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// FileUploader.h\n/...
3,726
c
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */ /* #undef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */ /* Define to 1 if `sa_len' is member of `struct sockaddr'. */ /* #undef HAVE_STRUCT_...
43.85
20
(translation_unit) "/* config.h. Generated from config.h.in by configure. */\n/* config.h.in. Generated from configure.ac by autoheader. */\n\n/* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */\n/* #undef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */\n\n/* Define to 1 if `sa_len' is member of `struct sockaddr'....
42
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 43.85, "nodes": 28, "errors": 0, "source_hash": "cdf115a80020b3abdffcc905028d0a2186f90d0e1b5f4a4f9cb4115b46af936f", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define PAC...
3,727
c
/**************************************************************** The author of this software is <NAME>. Copyright (C) 1998, 2000 by Lucent Technologies All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, ...
25.28
183
(translation_unit) "/**************************************************************** \n \nThe author of this software is <NAME>. \n \nCopyright (C) 1998, 2000 by Lucent Technologies \nAll Rights Reserved \n \nPermission to use, copy, modify, and distribute this software and \nits documentation for any purpose and with...
1,840
5
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 25.28, "nodes": 1183, "errors": 0, "source_hash": "ae972ebd05db74208bb9f5f588cc5ffb399cf246caa006416375321e214be9ec", "categorized_nodes": 933}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,728
c
#ifndef sprite_block_interaction_h #define sprite_block_interaction_h #include <stdint.h> #include <stdbool.h> #include "sprite_block_interaction_types.h" #include "sprite_actor.h" #include "block.h" struct SpriteBlockPositionedInteraction { uint32_t x, y; BlockInteractionAttributes attributes; }; struct Sp...
45
25
(translation_unit) "#ifndef sprite_block_interaction_h\n#define sprite_block_interaction_h\n\n#include <stdint.h>\n#include <stdbool.h>\n\n#include "sprite_block_interaction_types.h"\n#include "sprite_actor.h"\n#include "block.h"\n\nstruct SpriteBlockPositionedInteraction {\n uint32_t x, y;\n BlockInteractionAttr...
193
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 45.0, "nodes": 129, "errors": 0, "source_hash": "8db62dd7ff19046c8e1e3b7cd5d5b6a2bb897b8a77f0677917924a36c15aa661", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,729
c
/* * Copyright (C) 2008 <NAME> * Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later vers...
29.37
41
(translation_unit) "/*\n * Copyright (C) 2008 <NAME>\n * Hochschule fuer Technik Rapperswil\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of the License, or (at your...
75
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.37, "nodes": 50, "errors": 0, "source_hash": "ac679aa5e407f3080e04e9e63fa4ad9177ae9f13970abface1ca20867b068ace", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,730
c
#include <stdio.h> #include <stdlib.h> typedef struct list { struct node *head; struct node *tail; } list; typedef struct node { int value; struct node *next; struct node *prev; } node; //инициализация static init(list* l) { l->head = NULL; l->tail = l->head; } //очистить void clear(list* l) { node* tmp = l...
14.48
279
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct list\n{\n struct node *head;\n struct node *tail;\n} list;\n\ntypedef struct node\n{\n int value;\n struct node *next;\n struct node *prev;\n} node;\n\n//инициализация\nstatic init(list* l)\n{\n l->head = NULL;\n l->tail = l->head;\n}\n\n//оч...
2,090
1
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 14.48, "nodes": 1269, "errors": 0, "source_hash": "aed9c0f9ea6a3dcb380a9db75c9d1924e19d73fc8480c1c590e385b712bc9c65", "categorized_nodes": 853}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,731
c
#include <windows.h> #include "resource.h" HWND hWnd, Input_hWnd, Output_hWnd; char input[8192], output[65536]; BOOL CALLBACK DialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); void ToBinary(unsigned char *input, unsigned char *output, int size); void FromBinary(unsigned char *input, unsigned char *ou...
19.59
205
(translation_unit) "#include <windows.h>\n#include "resource.h"\n\nHWND hWnd, Input_hWnd, Output_hWnd;\nchar input[8192], output[65536];\n\nBOOL CALLBACK DialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\nvoid ToBinary(unsigned char *input, unsigned char *output, int size);\nvoid FromBinary(unsigned ch...
1,982
3
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 19.59, "nodes": 1322, "errors": 0, "source_hash": "0bc8cc8a14d46a17431d166b62d5770c3cfbf84e75ec8503658f83a9a42cd97f", "categorized_nodes": 925}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,732
c
#ifndef LIGHT_H #define LIGHT_H #include "Transform.h" #include "Color.h" enum LightType { OMNI, SPOT, DIRECTIONAL }; class Light : public Transform { public: // Constructors Light(); // Getters & Setters __host__ __device__ float GetIntensity() const { return this->_intensity; } __host__ __device__ LightTy...
25.25
28
(translation_unit) "#ifndef LIGHT_H\n#define LIGHT_H\n\n#include "Transform.h"\n#include "Color.h"\n\nenum LightType\n{\n OMNI,\n SPOT,\n DIRECTIONAL\n};\n\nclass Light : public Transform\n{\npublic:\n // Constructors\n Light();\n\n // Getters & Setters\n __host__ __device__ float GetIntensity() const { return this->_i...
215
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.25, "nodes": 119, "errors": 0, "source_hash": "07eefa8c710d33321c844677de13448c6237073da1d7dca1b9b603376bed794f", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,733
c
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class TMySQLServer; #pragma link C++ class TMySQLResult; #pragma link C++ class TMySQLRow; #pragma link C++ class TMySQLStatement; #endif
28.22
9
(translation_unit) "#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ class TMySQLServer;\n#pragma link C++ class TMySQLResult;\n#pragma link C++ class TMySQLRow;\n#pragma link C++ class TMySQLStatement;\n\n#endif\n" (preproc_ifdef) "#...
26
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.22, "nodes": 25, "errors": 0, "source_hash": "bb32b4680a2f3b0cebe0de8063e1b82268a53212487edcb747b764c562795c0c", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
3,734
c
#ifndef DOWNLOADER_URL_DOWNLOADER_H_ #define DOWNLOADER_URL_DOWNLOADER_H_ #include <memory> #include <vector> #include "base/basictypes.h" #include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "base/threading/thread_checker.h" #include "net/base/io_buffer.h" #include "net/url_request/url_req...
39.7
56
(translation_unit) "#ifndef DOWNLOADER_URL_DOWNLOADER_H_\n#define DOWNLOADER_URL_DOWNLOADER_H_\n\n#include <memory>\n#include <vector>\n\n#include "base/basictypes.h"\n#include "base/files/file_path.h"\n#include "base/memory/ref_counted.h"\n#include "base/threading/thread_checker.h"\n#include "net/base/io_buffer.h"\n#i...
384
18
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 39.7, "nodes": 222, "errors": 0, "source_hash": "aee625de6ddef5df49b804790bb2b2fdb16b6e8f0c20edc24893fea2e61b090f", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,735
c
// // get.c // // copyright (c) 2013 <NAME> <<EMAIL>> // #include <stddef.h> #include <string.h> #include "get.h" char * sphia_get (sphia_t *sphia, const char *key) { size_t size = strlen(key) + 1; size_t vsize; char *value; int rc; rc = sp_get(sphia->db, key, size, (void *) &value, &vsize); if (1 == rc...
18.52
21
(translation_unit) "//\n// get.c\n//\n// copyright (c) 2013 <NAME> <<EMAIL>>\n//\n\n#include <stddef.h>\n#include <string.h>\n#include "get.h"\n\nchar *\nsphia_get (sphia_t *sphia, const char *key) {\n size_t size = strlen(key) + 1;\n size_t vsize;\n char *value;\n int rc;\n\n rc = sp_get(sphia->db, key, size, (vo...
155
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.52, "nodes": 100, "errors": 0, "source_hash": "129def0f5627f04685adb5571e1cba73fdfe5c28b62effd0a04c3ac8b291d716", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,736
c
// Copyright 2009 <NAME> (<EMAIL>) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
30.88
42
(translation_unit) "// Copyright 2009 <NAME> (<EMAIL>)\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required b...
131
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.88, "nodes": 63, "errors": 0, "source_hash": "bf6aba83a467e888195e996e523db5a354a2e05febc97722abe8b908124c8544", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,737
c
/* =========================================================================== * * This file is part of HISE. * Copyright 2016 <NAME> * * HISE 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, ...
28.62
108
(translation_unit) "/* ===========================================================================\n *\n * This file is part of HISE.\n * Copyright 2016 <NAME>\n *\n * HISE 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...
561
25
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 28.62, "nodes": 318, "errors": 0, "source_hash": "2a9a9bf9c26a3a7a13603fca0cb1bbaa20d78ddcd4a148a5f27f4782a0c5f903", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,738
c
#pragma once class String { public: static constexpr size_t kInvalidPos = (size_t)-1; static const String kEmptyString; String(const char* pStr, size_t numChars); template<size_t SIZE> String(const char(&str)[SIZE]) : String(str, SIZE - 1) { } template<size_t SIZE> String(const char8_t(&str)[SIZE]) : S...
31.24
59
(translation_unit) "#pragma once\n\nclass String\n{\npublic:\n static constexpr size_t kInvalidPos = (size_t)-1;\n static const String kEmptyString;\n\n String(const char* pStr, size_t numChars);\n\n template<size_t SIZE>\n String(const char(&str)[SIZE])\n : String(str, SIZE - 1)\n {\n }\n\n template<size_t SIZE>\n St...
567
31
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.24, "nodes": 311, "errors": 0, "source_hash": "21435b8a90a804f23d90239408ba0e8b43c40e77961d8445a8e38f18778b2acf", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,739
c
/****************************************************************************** * * Copyright (C) 1999-2012 Broadcom Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * ...
34.99
166
(translation_unit) "/******************************************************************************\n *\n * Copyright (C) 1999-2012 Broadcom Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a c...
452
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 34.99, "nodes": 366, "errors": 0, "source_hash": "1e71bd572e560ec43c687092606d415879b4a41319a1dbfce6f8ee926c03916e", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,740
c
/* * * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * The contents of this file are provided under the Software License * Agreement that you accepted before downloading this file. * * This source forms part of the Software and can be used for educational, * training, and demonstration purpos...
33.87
82
(translation_unit) "/*\n *\n * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com\n *\n * The contents of this file are provided under the Software License\n * Agreement that you accepted before downloading this file.\n *\n * This source forms part of the Software and can be used for educational,\n * traini...
604
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.87, "nodes": 467, "errors": 0, "source_hash": "6a2ad148e36dc0f53eeb76e2299817966e6136a1160414dd3867873f2d302877", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,741
c
#pragma once #include <brutal/base.h> #define ELF_HEADER_MAGIC "\177ELF" enum elf_class { ELF_CLASS_INVALID = 0, ELF_CLASS_32 = 1, ELF_CLASS_64 = 2, }; enum elf_data_encoding { ELF_ENCODING_INVALID = 0, ELF_ENCODING_LITTLE_ENDIAN = 1, ELF_ENCODING_BIG_ENDIAN = 2, }; enum elf_type { ELF_...
24.49
77
(translation_unit) "#pragma once\n\n#include <brutal/base.h>\n\n#define ELF_HEADER_MAGIC "\177ELF"\n\nenum elf_class\n{\n ELF_CLASS_INVALID = 0,\n ELF_CLASS_32 = 1,\n ELF_CLASS_64 = 2,\n};\n\nenum elf_data_encoding\n{\n ELF_ENCODING_INVALID = 0,\n ELF_ENCODING_LITTLE_ENDIAN = 1,\n ELF_ENCODING_BIG_END...
341
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 24.49, "nodes": 244, "errors": 0, "source_hash": "abac8528b2921aefcad9d5684d3859cf419626fd3e6b4105285e091eb6126bd1", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,742
c
// this files contains all the application independent little // functions and macros used for the optimizer. // In particular Peters debug macros and Dags stuff // from dbasic.h cdefs, random,... //////////////// stuff originally from debug.h /////////////////////////////// // (c) 1997 <NAME> // some little utilities...
24.95
100
(translation_unit) "// this files contains all the application independent little\n// functions and macros used for the optimizer.\n// In particular Peters debug macros and Dags stuff\n// from dbasic.h cdefs, random,...\n\n//////////////// stuff originally from debug.h ///////////////////////////////\n// (c) 1997 <NAME...
413
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 24.95, "nodes": 307, "errors": 0, "source_hash": "75e31ef8b4962260fc7fc538317d9f05c9214f0f8b8bb436c044c4b309fe9878", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,743
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <math.h> int main(){ char words[100] = "I "; // Appending to existing string/char variable (append limit upto 100). strcat(words, "Love "); strcat(words, "To "); strcat(words, "Eat "); strcat(words, "Apple...
24.09
22
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n#include <math.h>\n\n\nint main(){\n\n char words[100] = "I ";\n\n // Appending to existing string/char variable (append limit upto 100).\n strcat(words, "Love ");\n strcat(words, "To ");\n strcat(words,...
141
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.09, "nodes": 67, "errors": 0, "source_hash": "ed38185530c9d1ef1f1c3960a04ee5bbb136347f5a45a0f2c6db76de81bd8333", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,744
c
#include <stdlib.h> #include <stdio.h> #include <signal.h> int main(int argc, char* argv[]) { int pid, res, sig=0; if(argc < 2) { printf("Usage: kill <pid> {sig}.\n"); return -1; } pid = atoi(argv[1]); if(argc > 2) sig = atoi(argv[2]); res = kill(pid, sig); if(res != 0) { printf("Error, can not kill ...
18.26
19
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <signal.h>\n\nint main(int argc, char* argv[]) {\n int pid, res, sig=0;\n if(argc < 2) {\n printf("Usage: kill <pid> {sig}.\n");\n return -1;\n }\n\n pid = atoi(argv[1]);\n if(argc > 2) \n sig = atoi(argv[2]);\n\n res = kill(pid, sig);\n if(res !=...
157
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 18.26, "nodes": 92, "errors": 0, "source_hash": "5de17fe9b6367babb9815c8054816cdd362a49f4c0dd9854c6d0e030e8725a0a", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,745
c
#if __has_include("libv_vizh.h") #include "libv_vizh.h" #endif #include <stdint.h> #define TAPE_SIZE 4096 typedef struct { size_t n_tapes; size_t capacity; uint8_t** tapes; uint8_t** to_free; } vizh_tapes_t; void readin(uint8_t* c); void print(uint8_t* c); // Calls to newtape and freetape are ...
26.5
16
(translation_unit) "#if __has_include("libv_vizh.h")\n #include "libv_vizh.h"\n#endif\n#include <stdint.h>\n\n#define TAPE_SIZE 4096\n\ntypedef struct {\n size_t n_tapes; \n size_t capacity; \n uint8_t** tapes;\n uint8_t** to_free;\n} vizh_tapes_t;\n\nvoid readin(uint8_t* c);\nvoid print(uint8_t* c);\n\n...
111
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.5, "nodes": 81, "errors": 0, "source_hash": "c2d28942ba47ac5e14f7ccf90c29e6b0fdbb2759142987096eecaece5d773d35", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if __has_include...
3,746
c
#pragma once #include <ntddk.h> #include <ntstrsafe.h> #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #ifndef KIWI_NameToFunc #define KIWI_NameToFunc(Name, Function) if(taillFunc == sizeof(Name) - sizeof(WCHAR)) if(RtlCompareMemory(Name, buffer, taillFunc) == taillF...
23.39
49
(translation_unit) "#pragma once \n#include <ntddk.h> \n#include <ntstrsafe.h> \n \n#define MIN(a, b) (((a) < (b)) ? (a) : (b)) \n#define MAX(a, b) (((a) > (b)) ? (a) : (b)) \n \n#ifndef KIWI_NameToFunc \n#define KIWI_NameToFunc(Name, Function) if(taillFunc == sizeof(Name) - sizeof(WCHAR)) if(RtlCompareMemory(Name, ...
195
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 23.39, "nodes": 163, "errors": 0, "source_hash": "5e1b915d5256ea135abfdd94ddede5151333f5b4befc9dd5f13af9f14bb01fde", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,747
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* map_helper.c :+: :+: :+: ...
29.87
52
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* map_helper.c ...
339
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 29.87, "nodes": 216, "errors": 0, "source_hash": "9a33b35418ab1f5fe34845439bab164ec988b558981195a2e9ee6a2f7068fd31", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,748
c
/* * This file Copyright (C) Mnemosyne LLC * * This file is licensed by the GPL version 2. Works owned by the * Transmission project are granted a special exemption to clause 2 (b) * so that the bulk of its code can remain under the MIT license. * This exemption does not extend to derived works not owned by * th...
50.89
46
(translation_unit) "/*\n * This file Copyright (C) Mnemosyne LLC\n *\n * This file is licensed by the GPL version 2. Works owned by the\n * Transmission project are granted a special exemption to clause 2 (b)\n * so that the bulk of its code can remain under the MIT license.\n * This exemption does not extend to derive...
403
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 50.89, "nodes": 286, "errors": 0, "source_hash": "30b2f47008cb84b1e820a6383f5922509eedf13cc869c36b71e4e30c95652a9f", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,749
c
// // RDMLAppDelegate.h // RDMLDropboxBookImporter // // Created by <NAME> on 04/03/14. // Copyright (c) 2014 Readmill. All rights reserved. // #import <UIKit/UIKit.h> @interface RDMLAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
25.36
11
(translation_unit) "//\n// RDMLAppDelegate.h\n// RDMLDropboxBookImporter\n//\n// Created by <NAME> on 04/03/14.\n// Copyright (c) 2014 Readmill. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RDMLAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.36, "nodes": 25, "errors": 0, "source_hash": "68fc9f82ec16b96b8b2bd474a57ca20df0323327d6ad726f9fbffbb8c349faea", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,750
c
#pragma once #include "videoinfo.h" class CAdvancedVideoInfo : public CVideoInfo { public: CAdvancedVideoInfo(void); ~CAdvancedVideoInfo(void); public: CString mStrCorrectness; CString mStrWastedClicks; CString mStrWastedLeftClicks; CString mStrWastedRightClicks; CString mStrWastedDoubleClicks; CString mStrOn...
20.7
20
(translation_unit) "#pragma once\n#include "videoinfo.h"\nclass CAdvancedVideoInfo :\n public CVideoInfo\n{\npublic:\n CAdvancedVideoInfo(void);\n ~CAdvancedVideoInfo(void);\n\npublic:\n CString mStrCorrectness;\n CString mStrWastedClicks;\n CString mStrWastedLeftClicks;\n CString mStrWastedRightClicks;\n CString mStrW...
86
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.7, "nodes": 52, "errors": 0, "source_hash": "faa290294dcc117bd5de3d508a37183ea4cbefd200471352ce1aea85a169d3b5", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,751
c
/* Copyright (c) 2021 <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, distribute...
37.86
57
(translation_unit) "/*\nCopyright (c) 2021 <NAME> <<EMAIL>>\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the "Software"), to deal in the Software without restriction,\nincluding without limitation the rights to use, copy, modify, ...
268
17
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 37.86, "nodes": 179, "errors": 0, "source_hash": "bcbb54c2a41c9f4747f548a7be8ea80978d43f728506ecd1696f878a91e0e060", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,752
c
/* C-REST-Engine * * Copyright (c) 2017 VMware, Inc. All Rights Reserved. * * This product is licensed to you under the Apache 2.0 license (the "License"). * You may not use this product except in compliance with the Apache 2.0 License. * * This product may include a number of subcomponents with separate copyright ...
32.11
36
(translation_unit) "/* C-REST-Engine\n*\n* Copyright (c) 2017 VMware, Inc. All Rights Reserved. \n*\n* This product is licensed to you under the Apache 2.0 license (the "License").\n* You may not use this product except in compliance with the Apache 2.0 License. \n*\n* This product may include a number of subcomponent...
92
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.11, "nodes": 70, "errors": 0, "source_hash": "9473e63d3a29a20863443f39dd9d66a49afc91ebac042f1f14510b1401b18774", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "uint32_t\n...
3,753
c
template<class T> int max_element(T arr[], int len) { int max = 0; for (int i = 1; i < len; ++i) { if (arr[i] > arr[max]) max = i; } return max; }
16
11
(translation_unit) "template<class T>\nint max_element(T arr[], int len)\n{\n int max = 0;\n\n for (int i = 1; i < len; ++i)\n {\n if (arr[i] > arr[max])\n max = i;\n }\n\n return max;\n}\n" (ERROR) "template<class T>\nint max_element(T arr[], int len)" (binary_expression) "templa...
87
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.0, "nodes": 57, "errors": 0, "source_hash": "de7906394509cd2e4b5f64b36c82340df34f8c0d5cb140243c80ff93bcf0a8c7", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "template<class T>...
3,754
c
#include "listnode.h" class Solution { public: bool hasCycle(ListNode *head) { ListNode *fast=head, *slow=head; while(fast!=nullptr && fast->next!=nullptr){ fast = fast->next->next; slow = slow->next; if(slow == fast) return true; } ...
25.28
29
(translation_unit) "#include "listnode.h"\nclass Solution {\npublic:\n bool hasCycle(ListNode *head) {\n ListNode *fast=head, *slow=head;\n while(fast!=nullptr && fast->next!=nullptr){\n fast = fast->next->next;\n slow = slow->next;\n if(slow == fast)\n r...
328
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.28, "nodes": 195, "errors": 0, "source_hash": "09fa569ae27489954c09648a4f2a59d990b3359479e02f070071681a4818b778", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,755
c
// // SLPopViewController.h // SLTransitioning_Example // // Created by <NAME> on 2020/10/15. // Copyright © 2020 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "SLTransitioning.h" NS_ASSUME_NONNULL_BEGIN @interface SLPopViewController : UIViewController @property (nonatomic, assign) SLPanDirec...
29.31
16
(translation_unit) "//\n// SLPopViewController.h\n// SLTransitioning_Example\n//\n// Created by <NAME> on 2020/10/15.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "SLTransitioning.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SLPopViewController : UIViewController\n\n@prop...
72
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.31, "nodes": 47, "errors": 0, "source_hash": "0c807e179d5f65ba00612b93309e8f1c69b4380332da626ca46dc7908a0332b1", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,756
c
#pragma once // For type aliases #include <memory> #include <string> #include <vector> #include <map> #include <unordered_map> #include <unordered_set> // For Assertion #include "OverEngine/Core/Log.h" // For mathematical stuff #include "OverEngine/Core/Math/Math.h" // Platform detection using predefined macros #i...
34.28
182
(translation_unit) "#pragma once\n\n// For type aliases\n#include <memory>\n#include <string>\n\n#include <vector>\n#include <map>\n#include <unordered_map>\n#include <unordered_set>\n\n// For Assertion\n#include "OverEngine/Core/Log.h"\n\n// For mathematical stuff\n#include "OverEngine/Core/Math/Math.h"\n\n// Platform...
1,279
79
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 34.28, "nodes": 897, "errors": 0, "source_hash": "4b2c93ec52c088fae58174f42fa0f4e351f11e9c41d164ab6c7ea2b93210eb8a", "categorized_nodes": 548}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,757
c
#pragma once #include "BaseComponent.h" #include "AIProtoManager.h" #include "AICommands.h" class BaseAICommand; /* Some data copied from Physic component for use by AI. */ struct SAIData { float m_x; float m_y; float m_angle; }; /* Component that is used to control object's behaviour, either ...
19.37
65
(translation_unit) "#pragma once \n#include "BaseComponent.h" \n#include "AIProtoManager.h" \n#include "AICommands.h" \n \nclass BaseAICommand; \n \n/* \n Some data copied from Physic component for use by AI. \n*/ \nstruct SAIData \n{ \n float m_x; \n float m_y; \n float m_angle; \n}; \n \n/* \n Component that is used ...
217
14
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 19.37, "nodes": 122, "errors": 0, "source_hash": "2fadab7c0ed452f5ea7f9cdb9f0b42b31c84813c8bb46ece9506c19a65154593", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,758
c
#pragma once enum OpType { None, Load, Broadcast, BroadcastZero, ScalarStore, Store, HAdd, Add, Sub, Mul, Div, Extract };
10.33
15
(translation_unit) "#pragma once\n\nenum OpType {\n None,\n Load,\n Broadcast,\n BroadcastZero,\n ScalarStore,\n Store,\n HAdd,\n Add,\n Sub,\n Mul,\n Div,\n Extract\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (enum_specifie...
46
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 10.33, "nodes": 31, "errors": 0, "source_hash": "3571313759c925ec3bf515c076dbb9b0b1da08b3f3f4b62c17e1567fa43fc396", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,759
c
/* ** irfunc.c | Cheshire Backend | IR Function code. ** https://github.com/cheshire-lang/cheshire-backend */ #include "../h/backend.h" size_t irunit_func(IrUnit *unit, uint8_t kind, Slice name, uint8_t argc, IrDef *args) { seq_push( unit->funcs, (&(IrFunc) { .nodes = seq_alloc(IrNode, 1), .defs...
27.7
23
(translation_unit) "/*\n** irfunc.c | Cheshire Backend | IR Function code.\n** https://github.com/cheshire-lang/cheshire-backend\n*/\n\n#include "../h/backend.h"\n\nsize_t irunit_func(IrUnit *unit, uint8_t kind, Slice name, uint8_t argc, IrDef *args) {\n seq_push(\n unit->funcs,\n (&(IrFunc) {\n .nodes = se...
225
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.7, "nodes": 140, "errors": 0, "source_hash": "6c73f0f531e662d6499f915ed547bdbe9b7697ff0978cd43b53142753dd39075", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,760
c
/* $Source: bitbucket.org:berkeleylab/gasnet.git/other/kinds/gasnet_kinds_internal.h $ * Description: GASNet Memory Kinds Internal Header * Copyright (c) 2020, The Regents of the University of California * Terms of use are as specified in license.txt */ #ifndef _GASNET_KINDS_INTERNAL_H #define _GASNET_KINDS_INTE...
43.77
53
(translation_unit) "/* $Source: bitbucket.org:berkeleylab/gasnet.git/other/kinds/gasnet_kinds_internal.h $\n * Description: GASNet Memory Kinds Internal Header\n * Copyright (c) 2020, The Regents of the University of California\n * Terms of use are as specified in license.txt\n */\n\n#ifndef _GASNET_KINDS_INTERNAL_H\...
164
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 43.77, "nodes": 102, "errors": 0, "source_hash": "85ea6282e9264db4800609dc83b025f370f7fa82b95df5159850fc4d198ed08a", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,761
c
/* * Acess2 Networking Test Suite (NetTest) * - By <NAME> (thePowersGang) * * tcpserver.c * - TCP Client tester */ #define DEBUG 1 #include <vfs.h> #include <vfs_ext.h> #include <nettest.h> #include "tcpserver.h" #define MAX_CLIENTS 4 struct sNetTest_TCPServer { int ServerFD; int nClients; struct sClient {...
23.09
98
(translation_unit) "/*\n * Acess2 Networking Test Suite (NetTest)\n * - By <NAME> (thePowersGang)\n *\n * tcpserver.c\n * - TCP Client tester\n */\n#define DEBUG 1\n#include <vfs.h>\n#include <vfs_ext.h>\n#include <nettest.h>\n#include "tcpserver.h"\n\n#define MAX_CLIENTS 4\n\nstruct sNetTest_TCPServer\n{\n int Server...
803
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 23.09, "nodes": 480, "errors": 0, "source_hash": "8969114394bda6577d3eaa5d775ec7e0f632ae8b3b07e076ba0d16cb142ae70c", "categorized_nodes": 362}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
3,762
c
#ifndef NESPALETTE_EXT_H #define NESPALETTE_EXT_H /* * Palette based on Typical Famicom NES (Dendy) Palette. * Consist of 80 colors (actually 75; 5 transparent colors 0x0F-0x4F). * * 8 Gray colors 0x0D-0x3D; 0x1E-0x4E * * 0x0E pure black. * 0x4D pure white. * Suggest to use 0x0F-0x4F section for tra...
30.12
42
(translation_unit) "#ifndef NESPALETTE_EXT_H \n#define NESPALETTE_EXT_H \n \n/* \n * Palette based on Typical Famicom NES (Dendy) Palette. \n * Consist of 80 colors (actually 75; 5 transparent colors 0x0F-0x4F). \n * \n * 8 Gray colors 0x0D-0x3D; 0x1E-0x4E \n * \n * 0x0E pure black. \n * 0x4D pure white. \n * Suggest t...
192
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.12, "nodes": 94, "errors": 0, "source_hash": "0e75b96dfd2462c4a5e407b148ef6ee182a277dd89448af5f3024bb90b793a68", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,763
c
// // MLHelpViewController.h // Medallia Survey iOS // // Created by <NAME> on 7/24/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "MLHelpPageContentViewController.h" @interface MLHelpViewController : UIViewController <UIPageViewControllerDataSource> - (IBAction)startW...
29.59
17
(translation_unit) "//\n// MLHelpViewController.h\n// Medallia Survey iOS\n//\n// Created by <NAME> on 7/24/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MLHelpPageContentViewController.h"\n\n\n@interface MLHelpViewController : UIViewController <UIPageViewControlle...
99
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.59, "nodes": 62, "errors": 0, "source_hash": "b48094f087ffaa51dea5e4008dc8e6125879cf8dab62f469decfc679effa0d29", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,764
c
/** * @file * @brief * * @date 28.02.13 * @author <NAME> */ #include <embox/test.h> #include <stdlib.h> #include <unistd.h> EMBOX_TEST_SUITE("stdlib/environ api"); TEST_SETUP(case_setup); TEST_TEARDOWN(case_teardown); #define ENV_NAME "foo" #define BAD_NAME "qux" #define ENV_VAL1 "bar" #define ENV_VAL2 "baz...
27.64
64
(translation_unit) "/**\n * @file\n * @brief\n *\n * @date 28.02.13\n * @author <NAME>\n */\n\n#include <embox/test.h>\n#include <stdlib.h>\n#include <unistd.h>\n\nEMBOX_TEST_SUITE("stdlib/environ api");\n\nTEST_SETUP(case_setup);\nTEST_TEARDOWN(case_teardown);\n\n#define ENV_NAME "foo"\n#define BAD_NAME "qux"\n#define...
479
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 27.64, "nodes": 231, "errors": 0, "source_hash": "60caf0c5c049b85a8a28b1345da7583a820265e2f9fc603ecfbd09af9faf55ca", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,765
c
/*ident "@(#)cls4:incl-master/const-headers/fstream.h 1.1" */ /******************************************************************************* C++ source for the C++ Language System, Release 3.0. This product is a new release of the original cfront developed in the computer science research center of AT&T Bell Labor...
28.51
107
(translation_unit) "/*ident "@(#)cls4:incl-master/const-headers/fstream.h 1.1" */\n/*******************************************************************************\n \nC++ source for the C++ Language System, Release 3.0. This product\nis a new release of the original cfront developed in the computer\nscience research ...
959
62
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 28.51, "nodes": 586, "errors": 0, "source_hash": "c82f328d3c2e481944d696cbc660013dc2b8a4cc8f5061ddc6025f2921438c75", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,766
c
/** * cfg.h * * @file API de configuraciones * @author <NAME> * @since 09.11.2021 */ #pragma once #include <string.h> #include "lib.h" // ============================================================================================================ // ***** Funciones Públicas ...
26.84
57
(translation_unit) "/**\n * cfg.h\n *\n * @file API de configuraciones\n * @author <NAME>\n * @since 09.11.2021\n */\n\n#pragma once\n\n#include <string.h>\n#include "lib.h"\n\n// ============================================================================================================\n// ...
101
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.84, "nodes": 60, "errors": 0, "source_hash": "cee7181ac8c128ffde128126b48834afae8e5dab63a26709bd41d276ac9bc571", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,767
c
#ifndef FILE_READER_H_ #define FILE_READER_H_ #include <string> struct Mmap { int fd; void* data; size_t length; }; class FileReader { public: FileReader(std::string file_name); ~FileReader(); int IsOK(); public: Mmap* buff; }; #endif
12.89
19
(translation_unit) "#ifndef FILE_READER_H_\n#define FILE_READER_H_ \n\n#include <string>\n\nstruct Mmap\n{\n int fd;\n void* data;\n size_t length;\n};\n\nclass FileReader\n{\npublic:\n FileReader(std::string file_name);\n ~FileReader();\n int IsOK();\npublic:\n Mmap* buff;\n};\n\n#endif" (prepro...
81
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 12.89, "nodes": 49, "errors": 0, "source_hash": "cf21066d51519abdbe20803637da07893a7d518784fd0d442915b2393a72ebb0", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,768
c
#ifndef LOCALISATION_H #define LOCALISATION_H #include <map> #include <memory> #include <mutex> enum class Language : long { de, en }; class Localisation { public: static Localisation &Instance() { static Localisation instance; return instance; } void loadLanguage(const Langu...
24.91
35
(translation_unit) "#ifndef LOCALISATION_H\n#define LOCALISATION_H\n\n#include <map>\n#include <memory>\n#include <mutex>\n\nenum class Language : long\n{\n de,\n en\n};\n\nclass Localisation\n{\npublic:\n static Localisation &Instance()\n {\n static Localisation instance;\n return instance;\n...
278
17
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 24.91, "nodes": 151, "errors": 0, "source_hash": "de7818ca6d212ea4e0d8af5c6e1be63392ada27156a5d2e3533e9d0c8c550dd1", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,769
c
#pragma once #include "globalincs/pstypes.h" #include <mutex> namespace executor { /** * @brief A class that collects work that should be executed repeatedly. * * The intention behind this is that the engine code creates executor objects and then calls process() on them at * specific points of the engine code. ...
33.09
43
(translation_unit) "#pragma once\n\n#include "globalincs/pstypes.h"\n\n#include <mutex>\n\nnamespace executor {\n\n/**\n * @brief A class that collects work that should be executed repeatedly.\n *\n * The intention behind this is that the engine code creates executor objects and then calls process() on them at\n * spec...
138
6
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.09, "nodes": 82, "errors": 0, "source_hash": "3e568447c6391415418d0bdaddf166872f836f6ef6ade7ab830b716842400e34", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,770
c
/* Copyright (C) 2020 MariaDB Corporation 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; version 2 of the License. This program is distributed in the hope that it will be useful, ...
32.44
84
(translation_unit) "/* Copyright (C) 2020 MariaDB Corporation\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License\n as published by the Free Software Foundation; version 2 of\n the License.\n\n This program is distributed in the hope ...
719
36
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 32.44, "nodes": 391, "errors": 0, "source_hash": "42bcd9d3a8dd762359e61fa503417b08904a19f4b7894546ccaa949387658394", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,771
c
/******************************************************************************* * This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine) * Copyright (C) 2015-2020 <NAME> * For latest info, see https://github.com/answerear/Tiny3D * * This program is free software: you can redistribute it and/or modify *...
35.32
108
(translation_unit) "******************************************************************************\n * This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)\n * Copyright (C) 2015-2020 <NAME>\n * For latest info, see https://github.com/answerear/Tiny3D\n *\n * This program is free software: you can redistribu...
270
20
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 35.32, "nodes": 174, "errors": 0, "source_hash": "5edd57c66e4732b31ad3cbfdd73389f6019f181fece9077378dd56c838705697", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
3,772
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CompanionSync.framework/CompanionSync */ @interface SYStartSyncSessionResponse : PBCodable <NSCopying> { bool _accepted; SYErrorInfo * _error; SYMessageHeader * _header; NSData * _metadata; NSString * _sessionID; bool ...
29.75
48
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CompanionSync.framework/CompanionSync\n */\n\n@interface SYStartSyncSessionResponse : PBCodable <NSCopying> {\n bool _accepted;\n SYErrorInfo * _error;\n SYMessageHeader * _header;\n NSData * _metadata;\n NSS...
547
41
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.75, "nodes": 340, "errors": 0, "source_hash": "b54febe33e50087b64fd01129ee228950dcf74321ab34d35d3dd90727c94790c", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
3,773
c
#include <stdlib.h> #include <errno.h> #include "util.h" /* * Safer wrapper of strtoll. Return 0 on success, otherwise -1. * Idea from corosync-qdevice project */ int util_strtonum(const char *str, long long int min_val, long long int max_val, long long int *res) { long long int tmp_ll; char *e...
24.22
27
(translation_unit) "#include <stdlib.h>\n#include <errno.h>\n\n#include "util.h"\n\n/*\n * Safer wrapper of strtoll. Return 0 on success, otherwise -1.\n * Idea from corosync-qdevice project\n */\nint\nutil_strtonum(const char *str, long long int min_val, long long int max_val,\n long long int *res)\n{\n long...
185
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.22, "nodes": 123, "errors": 0, "source_hash": "29d5ab406c548121ab18cf67b4b9b45486c20d3a9142289cec563687d235fb1c", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,774
c
#include<stdio.h> #include<math.h> #define DELTA 1e-6 #define F(x) (2*(x)*(x)*(x)-4*(x)*(x)+3*(x)-6) int main(void) { double x_min=-10, x_max=10, f1, f2, fc, x_center; int i = 0; printf("[No.]%15s%15s%15s%15s%15s%15s%15s\n", "x_min","f(x_min)","x_center","f(x_center)", ...
28.1
31
(translation_unit) "#include<stdio.h> \n#include<math.h> \n#define DELTA 1e-6 \n#define F(x) (2*(x)*(x)*(x)-4*(x)*(x)+3*(x)-6) \n \nint main(void) \n{ \n double x_min=-10, x_max=10, f1, f2, fc, x_center; \n int i = 0; \n \n printf("[No.]%15s%15s%15s%15s%15s%15s%15s\n", \n "x_min","f(x_min)","x_cen...
242
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.1, "nodes": 131, "errors": 0, "source_hash": "c43ce6e1aafbe8aaf93ed69a2e4803aa4c2b6261fb23b3a55707e0cb058a4e6f", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,775
c
#pragma once #include "pch.h" namespace FunInjector { class ProcessInjectorBase { public: ProcessInjectorBase( const DWORD ProcId, const std::wstring& DllPath ) : DllToInject(DllPath), ProcessId( ProcId ) {} ProcessInjectorBase(wil::shared_handle ProcHandle, const std::wstring& DllPath) : DllToInject...
34.86
29
(translation_unit) "#pragma once\n\n#include "pch.h"\n\nnamespace FunInjector\n{\n class ProcessInjectorBase\n {\n\n public:\n ProcessInjectorBase( const DWORD ProcId, const std::wstring& DllPath )\n : DllToInject(DllPath), ProcessId( ProcId )\n {}\n\n ProcessInjectorBase(wil::shared_handle ProcHandle, const std::...
177
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.86, "nodes": 98, "errors": 0, "source_hash": "fdc2f95d65614712efae7706686a50ad17e122d975b501ab8c704deb311fe903", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,776
c
/********************** simple C-project without Arduino-like initialization and setup()/loop(). No assumption is made, no interrupts used. Can be used as starting point for projects with extreme memory limitations or real-time requirements. Functionality: - init FCPU to 16MHz - configure LED pin ...
27.32
44
(translation_unit) "/********************** \n simple C-project without Arduino-like initialization and \n setup()/loop(). No assumption is made, no interrupts used. \n Can be used as starting point for projects with extreme \n memory limitations or real-time requirements. \n Functionality: \n - init FCPU to 16M...
106
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.32, "nodes": 48, "errors": 0, "source_hash": "d09f25266dd07d007027ca13745b4ee64d749ba6fb18c12cb4dbd35151a2ca8d", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,777
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 CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_ #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_ ...
47.65
26
(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 CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_\n#define CONTENT_RENDERER_PRESENTATION_PRESENTATION_C...
208
9
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 47.65, "nodes": 115, "errors": 0, "source_hash": "c983cf59b1e58ff9898e37e738fcf218846595e11bef1a29982f3c6480352b6a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,778
c
#pragma once #include <stk/cuda/cuda.h> #include "types.h" #include "float3.h" inline CUDA_HOST_DEVICE Matrix3x3f operator+(const Matrix3x3f& left, const Matrix3x3f& right) { return Matrix3x3f {{ left._rows[0] + right._rows[0], left._rows[1] + right._rows[1], left._rows[2] + right._rows[2...
31.12
25
(translation_unit) "#pragma once\n\n#include <stk/cuda/cuda.h>\n\n#include "types.h"\n#include "float3.h"\n\ninline CUDA_HOST_DEVICE Matrix3x3f operator+(const Matrix3x3f& left, const Matrix3x3f& right) {\n return Matrix3x3f {{\n left._rows[0] + right._rows[0],\n left._rows[1] + right._rows[1],\n ...
319
9
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.12, "nodes": 182, "errors": 0, "source_hash": "a4516ace282470a8dff027ffe6ac7d4c775dc2ceb8ae40c205da3b16702b6be1", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,779
c
/*++ Copyright (c) 1990-2003 Microsoft Corporation Module Name: escape.c Abstract: This module contains the code to implement the DrvEscape() driver call Author: 15:30 on Mon 06 Dec 1993 Created it [Environment:] GDI Device Driver - Plotter. [Notes:...
21.3
279
(translation_unit) "/*++ \n \nCopyright (c) 1990-2003 Microsoft Corporation \n \n \nModule Name: \n \n escape.c \n \n \nAbstract: \n \n This module contains the code to implement the DrvEscape() driver call \n \n \nAuthor: \n \n 15:30 on Mon 06 Dec 1993 \n Created it \n \n \n[Environment:] \n \n ...
893
0
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 21.3, "nodes": 478, "errors": 0, "source_hash": "c14624bd2cbfba6ed591f0a1f75b7011edfb11ecdd60882cdffbe4a5fcaf6e8c", "categorized_nodes": 374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,780
c
#ifndef LOGGER_H #define LOGGER_H #include <QObject> #include <QPlainTextEdit> #include <QFile> #include <QTextStream> #include <QDateTime> class Logger : public QObject { Q_OBJECT public: enum Level { DEBUG, INFO, WARNING, ERROR, CRITICAL }; explicit Logger...
20.03
39
(translation_unit) "#ifndef LOGGER_H\n#define LOGGER_H\n\n#include <QObject>\n#include <QPlainTextEdit>\n#include <QFile>\n#include <QTextStream>\n#include <QDateTime>\n\nclass Logger : public QObject\n{\n Q_OBJECT\npublic:\n enum Level\n {\n DEBUG,\n INFO,\n WARNING,\n ERROR,\n ...
218
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 20.03, "nodes": 143, "errors": 0, "source_hash": "65141fb25b36ec4ce6dddf48f4f971c522ac67235cb24051400ec94b7ec5d475", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,781
c
#ifndef PARSE_H #define PARSE_H #include <stdbool.h> #include "atom.h" typedef enum { parse_state_main, parse_state_functiondeclaration_parameters, parse_state_functiondeclaration_body, parse_state_struct_fields } parse_state; AtomList *parse(const char *source); #endif
21.15
13
(translation_unit) "#ifndef PARSE_H\n#define PARSE_H\n\n#include <stdbool.h>\n#include "atom.h"\n\n\ntypedef enum {\n parse_state_main,\n parse_state_functiondeclaration_parameters,\n parse_state_functiondeclaration_body,\n parse_state_struct_fields\n} parse_state;\n\nAtomList *parse(const char *source);\n\...
54
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.15, "nodes": 39, "errors": 0, "source_hash": "88423664621ce8fc01205836db1c79780a8105220539e596cdf1359e4be4f080", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,782
c
#pragma once #include <QWidget> #include <QPointer> namespace DAVA { class ColorCell; class MouseHelper; class CustomPalette : public QWidget { Q_OBJECT public: typedef QVector<QColor> Colors; signals: void selected(const QColor& c); public: explicit CustomPalette(QWidget* parent = NULL); void...
20.84
32
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include <QPointer>\n\nnamespace DAVA\n{\nclass ColorCell;\nclass MouseHelper;\nclass CustomPalette : public QWidget\n{\n Q_OBJECT\n\npublic:\n typedef QVector<QColor> Colors;\n\nsignals:\n void selected(const QColor& c);\n\npublic:\n explicit CustomPa...
213
10
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.84, "nodes": 133, "errors": 0, "source_hash": "044016f905bb444741bf28aa7bee9ff9cbb25fac7ee731128de425ad1c1cd078", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,783
c
/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ #include <zephyr.h> #include <bluetooth/gatt.h> #include <bluetooth/hci.h> #include <bluetooth/uuid.h> #include <bluetooth/services/nus.h> #include <logging/log.h> #include <settings/settings.h> #include "nu...
30
173
(translation_unit) "/*\n * Copyright (c) 2020 Nordic Semiconductor ASA\n *\n * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause\n */\n#include <zephyr.h>\n#include <bluetooth/gatt.h>\n#include <bluetooth/hci.h>\n#include <bluetooth/uuid.h>\n#include <bluetooth/services/nus.h>\n#include <logging/log.h>\n#include <set...
1,553
1
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 30.0, "nodes": 915, "errors": 0, "source_hash": "c603a01c4fcdcb355ed9cbdd591aa53fcfa0e21ab2a3676ffeae2d929e0768eb", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,784
c
// // Created by smackem on 24.03.21. // #ifndef ZLN_VM_H #define ZLN_VM_H #include <stdio.h> #include "cpu.h" #define BYTE_CODE_MAJOR_VERSION 0 #define BYTE_CODE_MINOR_VERSION 1 /** * Gets the name of the given op code. */ const char *opcode_name(OpCode opc); /** * Gets the name of the given type. */ const ch...
26.64
39
(translation_unit) "//\n// Created by smackem on 24.03.21.\n//\n\n#ifndef ZLN_VM_H\n#define ZLN_VM_H\n\n#include <stdio.h>\n#include "cpu.h"\n\n#define BYTE_CODE_MAJOR_VERSION 0\n#define BYTE_CODE_MINOR_VERSION 1\n\n/**\n * Gets the name of the given op code.\n */\nconst char *opcode_name(OpCode opc);\n\n/**\n * Gets t...
179
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 26.64, "nodes": 121, "errors": 0, "source_hash": "4fe9afa97d0f483c3cd38a9a593641cf83f62e98dcccc86daf5e6b86dfae5617", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,785
c
// // Created by akela on 29-07-2016. // #include <stdio.h> #include <conio.h> void print() { int i, n, z = 0; printf("please input any digit: "); scanf("%d", &i); while (i != 0) { n = i % 10; z = z * 10 + n; i = i / 10; } printf("Your digit is"); while (z != 0) {...
20.98
54
(translation_unit) "//\n// Created by akela on 29-07-2016.\n//\n\n#include <stdio.h>\n#include <conio.h>\n\nvoid print() {\n int i, n, z = 0;\n printf("please input any digit: ");\n scanf("%d", &i);\n\n while (i != 0) {\n n = i % 10;\n z = z * 10 + n;\n i = i / 10;\n }\n\n printf(...
346
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 20.98, "nodes": 183, "errors": 0, "source_hash": "33413ba5b16512cad641f6075434930d03487cf7aff1d981c11c198c7515f6e8", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,786
c
// Copyright 2022 PingCAP, Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
35.21
207
(translation_unit) "// Copyright 2022 PingCAP, Ltd.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by a...
1,564
100
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 35.21, "nodes": 937, "errors": 0, "source_hash": "4a8f640e3003ad123de0044d0367e54ac6ce2597981dfb0d91c7327bb69532a3", "categorized_nodes": 633}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,787
c
#ifndef _NEO_CPU_H #define _NEO_CPU_H #include "cyclone.h" typedef struct Cyclone TCycloneContext; typedef u8 (*TRead8Func)(u32 a); typedef u16 (*TRead16Func)(u32 a); typedef u32 (*TRead32Func)(u32 a); typedef void (*TWrite8Func)(u32 a, u8 d); typedef void (*TWrite16Func)(u32 a, u16 d); typedef void (*TWrite32Func)...
25.82
38
(translation_unit) "#ifndef _NEO_CPU_H\n#define _NEO_CPU_H\n\n#include "cyclone.h"\n\ntypedef struct Cyclone TCycloneContext;\n\ntypedef u8 (*TRead8Func)(u32 a);\ntypedef u16 (*TRead16Func)(u32 a);\ntypedef u32 (*TRead32Func)(u32 a);\n\ntypedef void (*TWrite8Func)(u32 a, u8 d);\ntypedef void (*TWrite16Func)(u32 a, u16 ...
367
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.82, "nodes": 260, "errors": 0, "source_hash": "ce44acf9be1aa6dcf4c860aeabbd9c4737cfa13763f549388a32bbf3ce9319f2", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,788
c
// Copyright (c) 2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef MASSGRID_CONSENSUS_VERSIONBITS #define MASSGRID_CONSENSUS_VERSIONBITS #include "chain.h" #include <map> static const int...
38.56
9
(translation_unit) "// Copyright (c) 2016 The Bitcoin Core 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 MASSGRID_CONSENSUS_VERSIONBITS\n#define MASSGRID_CONSENSUS_VERSIONBITS\n\n#include "chain.h"\n#inc...
32
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 38.56, "nodes": 19, "errors": 0, "source_hash": "e5a86118e163c4856503f105d083c324f8d4cfc100fe556afa7105aea848e187", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
3,789
c
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
28.86
126
(translation_unit) "/*\n * This file belongs to the Galois project, a C++ library for exploiting\n * parallelism. The code is being released under the terms of the 3-Clause BSD\n * License (a copy is located in LICENSE.txt at the top-level directory).\n *\n * Copyright (C) 2018, The University of Texas at Austin. All r...
426
9
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 28.86, "nodes": 271, "errors": 0, "source_hash": "c8f451034ff29ecb171b56c2955a386601476d2c6391968979948ff44dc535cd", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,790
c
#ifndef EFFECT_H #define EFFECT_H #include "FastLED.h" #define FRAMES_PER_SECOND 50 #define NUM_CANDLES (100) // number of different candles used in simulation NUM_CANDLES <= 255 #define MAX_LED_NUM 200 // number of leds in the strip #define NUM_SPARK 1 // number of sparks per frame #define LUMU_MAX_PHASE_BITS ...
25.2
157
(translation_unit) "#ifndef EFFECT_H\n#define EFFECT_H\n\n#include "FastLED.h"\n\n#define FRAMES_PER_SECOND 50\n#define NUM_CANDLES (100) // number of different candles used in simulation NUM_CANDLES <= 255\n#define MAX_LED_NUM 200 // number of leds in the strip\n#define NUM_SPARK 1 // number of sparks per frame\...
810
3
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 25.2, "nodes": 553, "errors": 0, "source_hash": "f297e2a17c0ff12d3ea8e3b23296f31527d37e65bdf6eee46143677c853aaba6", "categorized_nodes": 408}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,791
c
// // AchievementReporter.h // CloseUp // // Created by <NAME> on 9/5/12. // Copyright (c) 2012 FLL. All rights reserved. // #import <Foundation/Foundation.h> #import "Achievement.h" @class Achievement; @interface AchievementReporter : NSObject + (void)reportAchievement:(Achievement *)achievement; @end
22.69
13
(translation_unit) "//\n// AchievementReporter.h\n// CloseUp\n//\n// Created by <NAME> on 9/5/12.\n// Copyright (c) 2012 FLL. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Achievement.h"\n\n@class Achievement;\n\n@interface AchievementReporter : NSObject\n\n+ (void)reportAchievement:(Achie...
49
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.69, "nodes": 27, "errors": 0, "source_hash": "1236eac02449c76ce0f8a2cb4b52a5c510a88cb84c96fd61b5f6aef714c907dc", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,792
c
/* Copyright (C) 2015-2017 <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) any later version. This library is distributed...
25.54
136
(translation_unit) "/*\n Copyright (C) 2015-2017 <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 License, or (at your option) any later version.\n \n...
650
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 25.54, "nodes": 416, "errors": 0, "source_hash": "ae0270f8200ee53ee2d950f462e2dcc800f3a04e4ea2ac3b551e4892c6ac2bec", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,793
c
// Generated by Haxe 3.3.0 #ifndef INCLUDED_FuelCellGet #define INCLUDED_FuelCellGet #ifndef HXCPP_H #include <hxcpp.h> #endif #ifndef INCLUDED_flixel_FlxSubState #include <flixel/FlxSubState.h> #endif HX_DECLARE_CLASS0(FuelCellGet) HX_DECLARE_CLASS1(flixel,FlxBasic) HX_DECLARE_CLASS1(flixel,FlxObject) HX_DECLARE_CLA...
35.2
54
(translation_unit) "// Generated by Haxe 3.3.0\n#ifndef INCLUDED_FuelCellGet\n#define INCLUDED_FuelCellGet\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\n#ifndef INCLUDED_flixel_FlxSubState\n#include <flixel/FlxSubState.h>\n#endif\nHX_DECLARE_CLASS0(FuelCellGet)\nHX_DECLARE_CLASS1(flixel,FlxBasic)\nHX_DECLARE_CLASS1...
588
40
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 35.2, "nodes": 323, "errors": 0, "source_hash": "c6f4d0ec8d406c24ea596abc19bde5afd7c89fa15267ea1333e40d167ae0d4eb", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,794
c
/* libparted - a library for manipulating disk partitions 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 of the...
45.41
32
(translation_unit) "/*\n libparted - a library for manipulating disk partitions\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 Foundatio...
74
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 45.41, "nodes": 57, "errors": 0, "source_hash": "7ccbe8191a17d56aadbb947a6c64e9dd821ef35c9110ec374d404309902fc798", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,795
c
#pragma once #include "menu_item.h" namespace winp::menu{ class action_item : public item{ public: action_item(); explicit action_item(ui::tree &parent); action_item(ui::tree &parent, std::size_t index); virtual ~action_item(); virtual utility::error_code set_text(const std::wstring &value, const std:...
36.79
28
(translation_unit) "#pragma once\n\n#include "menu_item.h"\n\nnamespace winp::menu{\n class action_item : public item{\n public:\n action_item();\n\n explicit action_item(ui::tree &parent);\n\n action_item(ui::tree &parent, std::size_t index);\n\n virtual ~action_item();\n\n virtual utility::error_code set_text(co...
351
32
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 36.79, "nodes": 190, "errors": 0, "source_hash": "087315da06bf5f8bd3b9b92975dc1505a0c0ff269abc69ec29c4f3e1239f04c2", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,796
c
#ifndef COMMANDMODEL_H #define COMMANDMODEL_H class QVTKFramebufferObjectRenderer; class CommandModel { public: CommandModel(){} virtual ~CommandModel(){} virtual bool isReady() const = 0; virtual void execute() = 0; protected: QVTKFramebufferObjectRenderer *m_vtkFboRenderer; }; #endif // COMMANDMODEL_H
19.73
15
(translation_unit) "#ifndef COMMANDMODEL_H\n#define COMMANDMODEL_H\n\n\nclass QVTKFramebufferObjectRenderer;\n\nclass CommandModel\n{\npublic:\n CommandModel(){}\n virtual ~CommandModel(){}\n\n virtual bool isReady() const = 0;\n virtual void execute() = 0;\n\nprotected:\n QVTKFramebufferObjectRenderer *m_vtkFboRendere...
83
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.73, "nodes": 48, "errors": 0, "source_hash": "f7c922f24cf50c4e7a067939b8e442df3461dc494f0759e6fed8429a5785e772", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,797
c
#include <lcd.h> void main(void){ LCD_INIT(); LCD_WRITE("<NAME>",0,0); LCD_WRITE("19BCS061",1,0); while(1); }
14.12
8
(translation_unit) "#include <lcd.h>\n \n void main(void){\n LCD_INIT();\n LCD_WRITE("<NAME>",0,0);\n LCD_WRITE("19BCS061",1,0);\n while(1);\n}" (preproc_include) "#include <lcd.h>\n" (#include) "#include" (system_lib_string) "<lcd.h>" (function_definition) "void main(void){\n LCD_INIT();\n LCD_WRITE(...
61
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 14.12, "nodes": 28, "errors": 0, "source_hash": "f967868962a1ebc97f2f7b47e8dd97b6f4f8c9bcaf2fed0edc18235eda3aa107", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,798
c
/* ----------------------------------------------------------------------------- This source file is part of ogre-procedural For the latest info, see http://code.google.com/p/ogre-procedural/ Copyright (c) 2010 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and a...
33.07
118
(translation_unit) "/*\n-----------------------------------------------------------------------------\nThis source file is part of ogre-procedural\n\nFor the latest info, see http://code.google.com/p/ogre-procedural/\n\nCopyright (c) 2010 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a...
493
22
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 33.07, "nodes": 294, "errors": 0, "source_hash": "6f4403630caf4cb00122203f1d6710ef0750859c9659db6107b59e35718b6bb1", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,799