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
/* * z88dk RS232 Function * * ZX Spectrum (interface 1) version * * unsigned char rs232_init() * * Initialise the serial interface * * $Id: rs232_init.c,v 1.3 2008/06/06 16:07:33 stefano Exp $ */ #include <rs232.h> u8_t rs232_init() { #asm rst 8 defb $31 ...
22.69
26
(translation_unit) "/*\n * z88dk RS232 Function\n *\n * ZX Spectrum (interface 1) version\n *\n * unsigned char rs232_init()\n *\n * Initialise the serial interface\n *\n * $Id: rs232_init.c,v 1.3 2008/06/06 16:07:33 stefano Exp $\n */\n\n\n#include <rs232.h>\n\n\nu8_t rs232_init()\n{\n#asm\n ...
117
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.69, "nodes": 80, "errors": 0, "source_hash": "190204a6e777002a0276c1b670a983f8fafcbbfa48abd8af5745d297dbf281e8", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,200
c
#include "uls.h" /* * DONE * Функция сортирует связанный список по ASCII */ void mx_sort_dirs_ascii(t_list *lst, int *flags) { void *tmp; if (!flags[mx_get_char_index(FLAGS, 'r')]) { for (t_list *i = lst; i->next; i = i->next) for (t_list *j = i->next; j; j = j->next) if (...
30.65
26
(translation_unit) "#include "uls.h"\n\n/*\n * DONE\n * Функция сортирует связанный список по ASCII\n */\n\nvoid mx_sort_dirs_ascii(t_list *lst, int *flags) {\n void *tmp;\n\n if (!flags[mx_get_char_index(FLAGS, 'r')]) {\n for (t_list *i = lst; i->next; i = i->next)\n for (t_list *j = i->next; j; j...
293
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.65, "nodes": 202, "errors": 0, "source_hash": "d211291480caa4848ea47cdba111f5f7f22845f45ba73896234d87b56df7143c", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,201
c
/* * * Copyright (c) 2020 The University of Waikato, Hamilton, New Zealand. * * This file is part of netstinky-ids. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/BSD-2-Clause * * */ #include <sys/socket.h> #inclu...
24.73
101
(translation_unit) "/*\n *\n * Copyright (c) 2020 The University of Waikato, Hamilton, New Zealand.\n *\n * This file is part of netstinky-ids.\n *\n * Use of this source code is governed by a BSD-style\n * license that can be found in the LICENSE file or at\n * https://opensource.org/licenses/BSD-2-Clause\n *\n *\n */...
645
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 24.73, "nodes": 416, "errors": 0, "source_hash": "14edd4bceb6b325a6120d2ef41a4e05ba10bf3bf10131ce437c3599711259409", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,202
c
/* Copyright <2017> <Scaleable and Concurrent Systems Lab; Thayer School of Engineering at Dartmouth College> 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 restr...
30.25
65
(translation_unit) "/*\n Copyright <2017> <Scaleable and Concurrent Systems Lab; \n Thayer School of Engineering at Dartmouth College>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy \n of this software and associated documentation files (the "Software"), to deal\n in ...
322
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 30.25, "nodes": 201, "errors": 0, "source_hash": "a24abb00981be603dda07cef627cbbec25d4beb7c5b9ed466367022adc9d1670", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,203
c
#import <Cocoa/Cocoa.h> @interface SBookModalPanel3 : NSPanel { IBOutlet id okButton; BOOL runningAsSheet; BOOL sendSelectorAfterOrderOut; } - (IBAction)cancel:(id)sender; - (IBAction)proceed:(id)sender; - (int)run; - (void)setSendSelectorAfterOrderOut:(BOOL)aFlag; - (void)runAsSheet:(NSWindow *)baseWindow...
32.2
20
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n@interface SBookModalPanel3 : NSPanel\n{\n IBOutlet id okButton;\n BOOL runningAsSheet;\n BOOL sendSelectorAfterOrderOut;\n}\n- (IBAction)cancel:(id)sender;\n- (IBAction)proceed:(id)sender;\n- (int)run;\n- (void)setSendSelectorAfterOrderOut:(BOOL)aFlag;\n- (void)r...
134
13
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.2, "nodes": 81, "errors": 0, "source_hash": "9763c022cb08fd83d9c3ef9a7ae37d695d3dcf1d37d12effb8155ca4c45d9d28", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <C...
5,204
c
#ifndef COMPILER_H_ #define COMPILER_H_ #include <stdbool.h> bool compile_program(char* program, unsigned int length, char* output_path); #endif // COMPILER_H_
31
5
(translation_unit) "#ifndef COMPILER_H_\n#define COMPILER_H_\n\n#include <stdbool.h>\n\nbool compile_program(char* program, unsigned int length, char* output_path);\n\n#endif // COMPILER_H_" (preproc_ifdef) "#ifndef COMPILER_H_\n#define COMPILER_H_\n\n#include <stdbool.h>\n\nbool compile_program(char* program, unsign...
37
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 31.0, "nodes": 30, "errors": 0, "source_hash": "387622e5e3a955a1bcb33ffba56b2c181e53f01081d2b3303f8919c8eb80d9bb", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CO...
5,205
c
// Filename: physxActorDesc.h // Created by: enn0x (05Sep09) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You shou...
31.67
49
(translation_unit) "// Filename: physxActorDesc.h\n// Created by: enn0x (05Sep09)\n//\n////////////////////////////////////////////////////////////////////\n//\n// PANDA 3D SOFTWARE\n// Copyright (c) Carnegie Mellon University. All rights reserved.\n//\n// All use of this software is subject to the terms of the revis...
270
13
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.67, "nodes": 150, "errors": 0, "source_hash": "59d915ca8b4a21d16c3b7fc86a3dfcebb825a7cabc4cc34847b9ada1a34cc95b", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,206
c
// // UserDataEvent.h // iVerb // // Created by Max on 20/04/2017. // // @import Foundation; #import "Verb.h" #import "Playlist.h" NS_ASSUME_NONNULL_BEGIN @interface UserDataEvent : NSObject <NSSecureCoding> @property (nonatomic, strong, readonly) NSDate * timestamp; @end @interface /* abstract */ UDPlaylist...
33.69
48
(translation_unit) "//\n// UserDataEvent.h\n// iVerb\n//\n// Created by Max on 20/04/2017.\n//\n//\n\n@import Foundation;\n\n#import "Verb.h"\n#import "Playlist.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UserDataEvent : NSObject <NSSecureCoding>\n\n@property (nonatomic, strong, readonly) NSDate * timestamp;\n\n@end...
351
62
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 33.69, "nodes": 250, "errors": 0, "source_hash": "e5f5ffd1553993535f11b89c6ab674feabcb8bbf1dbdc47a89ff226baa1496f3", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
5,207
c
#include "forest.h" inherit "/d/shadow/room/forest/road1"; int found = 0; void create(){ ::create(); set_terrain(LIGHT_FOREST); set_travel(DIRT_ROAD); set_property("light" , 2); set_property("indoors" , 0); set_short("%^RESET%^%^GREEN%^On the Quiet %^BOLD%^%^GREEN%^Fo%^RESET%^%^GREEN%^r%^GREEN%...
24.16
64
(translation_unit) "#include "forest.h"\ninherit "/d/shadow/room/forest/road1";\n\nint found = 0;\n\n\nvoid create(){\n ::create();\n set_terrain(LIGHT_FOREST);\n set_travel(DIRT_ROAD);\n set_property("light" , 2);\n set_property("indoors" , 0);\n set_short("%^RESET%^%^GREEN%^On the Quiet %^BOLD%^%^GREE...
444
8
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 24.16, "nodes": 185, "errors": 0, "source_hash": "c1ab54f93615d607f176f9de3ef36014edda7c70fe0db0a8023ca1f69a0982c8", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,208
c
#pragma once #include "SceneObject.h" #include "StepTimer.h" #include "RenderSystemDecl.h" #include <Textures.h> #include <mutex> #include <vector> #include "SmartPointers.h" #include <SimpleMathExtend.h> namespace DirectX { class StepTimer; } namespace Causality { class Frame; class ICamera; class IVisual; clas...
33.25
155
(translation_unit) "#pragma once\n#include "SceneObject.h"\n#include "StepTimer.h"\n#include "RenderSystemDecl.h"\n#include <Textures.h>\n#include <mutex>\n#include <vector>\n#include "SmartPointers.h"\n#include <SimpleMathExtend.h>\n\nnamespace DirectX\n{\n class StepTimer;\n}\n\nnamespace Causality\n{\n class Frame;\...
1,457
63
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 33.25, "nodes": 909, "errors": 0, "source_hash": "086c84b0c159a4da9956b4243e8db232c42d25a2b214bceecb887ceaca11cf01", "categorized_nodes": 610}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,209
c
#ifndef INTERRUPTION_H #define INTERRUPTION_H void InitSignals(); bool InterruptRequested(); #endif
19
5
(translation_unit) "#ifndef INTERRUPTION_H\n#define INTERRUPTION_H\n\nvoid InitSignals();\n\nbool InterruptRequested();\n\n#endif\n" (preproc_ifdef) "#ifndef INTERRUPTION_H\n#define INTERRUPTION_H\n\nvoid InitSignals();\n\nbool InterruptRequested();\n\n#endif" (#ifndef) "#ifndef" (identifier) "INTERRUPTION_H"...
24
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 19.0, "nodes": 17, "errors": 0, "source_hash": "355071708bc27119dff8f88d7ca344faca27476423ae4f4ac117f5831b752707", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IN...
5,210
c
/** * @file options_description.h * @brief OptionsDescription Class. * @author <NAME> (<EMAIL>) * @version 1.0.0 * @date 2011-08-07 */ #ifndef __MISC_OPTIONS_DESCRIPTION_H_ #define __MISC_OPTIONS_DESCRIPTION_H_ #include <ostream> #include <string> #include <vector> /** * @brief It is a class used to store a...
39.33
52
(translation_unit) "/**\n * @file options_description.h\n * @brief OptionsDescription Class.\n * @author <NAME> (<EMAIL>)\n * @version 1.0.0\n * @date 2011-08-07\n */\n\n#ifndef __MISC_OPTIONS_DESCRIPTION_H_\n\n#define __MISC_OPTIONS_DESCRIPTION_H_\n\n#include <ostream>\n#include <string>\n#include <vector>\n\n\n/**\n ...
560
43
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.33, "nodes": 312, "errors": 0, "source_hash": "41b38e98fa46b50b5782077860eac5e9b329ab9cfaeb091565c78e5458cd9c94", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,211
c
// Copyright (c) 2021, WNProject Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #ifndef __WN_FUNCTIONAL_UNIQUE_FUNCTION_H__ #define __WN_FUNCTIONAL_UNIQUE_FUNCTION_H__ #include "WNMemory/inc/allocation.h" #include "co...
35.27
144
(translation_unit) "// Copyright (c) 2021, WNProject 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#pragma once\n\n#ifndef __WN_FUNCTIONAL_UNIQUE_FUNCTION_H__\n#define __WN_FUNCTIONAL_UNIQUE_FUNCTION_H__\n\n#include "WNMemory/i...
1,861
133
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 35.27, "nodes": 1147, "errors": 0, "source_hash": "72772a3b5affd4ca253e334f2232ed08062a094bce2fe5586328e0b2e299e7bb", "categorized_nodes": 737}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
5,212
c
#include <assert.h> #include <stdbool.h> #include <rtems.h> #include <rtems/score/percpudata.h> #include <bsp/hpsc-wdt.h> #include "watchdog-cpu.h" #define WDT_TASK_EXIT RTEMS_EVENT_0 struct watchdog_task_ctx { struct HPSC_WDT_Config *wdt; rtems_id tid; rtems_interval ticks; rtems_interrupt_handler ...
30.47
92
(translation_unit) "#include <assert.h>\n#include <stdbool.h>\n\n#include <rtems.h>\n#include <rtems/score/percpudata.h>\n#include <bsp/hpsc-wdt.h>\n\n#include "watchdog-cpu.h"\n\n#define WDT_TASK_EXIT RTEMS_EVENT_0\n\nstruct watchdog_task_ctx {\n struct HPSC_WDT_Config *wdt;\n rtems_id tid;\n rtems_interval t...
606
2
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 30.47, "nodes": 383, "errors": 0, "source_hash": "1a8124df063b2af14cd63a61d3757d806293e9175b998e3e23d770e0c3c6c606", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,213
c
#ifndef OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if defined(_MSC_VER) || \ (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ (__GNUC__ >= 4)) // GCC supports "pragma once" ...
32.25
60
(translation_unit) "#ifndef OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66\n#define OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66\n\n#if defined(_MSC_VER) || \\n (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \\n (__GNUC__ >= 4)) // GC...
600
22
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 32.25, "nodes": 345, "errors": 0, "source_hash": "43bd5094bdf5fb1bd64a3081e372336b2ea410effd86fd910fd5d96b91f586c6", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,214
c
// Copyright (c) OpenMMLab. All rights reserved. #include <torch/script.h> namespace mmdeploy { using torch::jit::script::Module; Module optimize_for_torchscript(const Module &model); Module optimize_for_onnx(const Module &model); } // namespace mmdeploy
35.57
7
(translation_unit) "// Copyright (c) OpenMMLab. All rights reserved.\n#include <torch/script.h>\n\nnamespace mmdeploy {\nusing torch::jit::script::Module;\n\nModule optimize_for_torchscript(const Module &model);\n\nModule optimize_for_onnx(const Module &model);\n} // namespace mmdeploy\n" (comment) "// Copyright (c)...
56
3
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 35.57, "nodes": 29, "errors": 0, "source_hash": "7df0dcada994ad56f192cc483691fd724a78a71f7b002966125b9c95fed2f305", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,215
c
// // Created by straydragon on 18-10-13. // #ifndef DATASTRUCTURE_ALGORITHM_CPP_NODE_H #define DATASTRUCTURE_ALGORITHM_CPP_NODE_H /** * @brief 结点POCO(Plain Ordinary Cpp Object)类 * * @tparam E 元素类型 */ template <typename E> class Node { private: E _element; Node<E>* _next; public: Node() : _next(nullptr){...
27.6
25
(translation_unit) "//\n// Created by straydragon on 18-10-13.\n//\n\n#ifndef DATASTRUCTURE_ALGORITHM_CPP_NODE_H\n#define DATASTRUCTURE_ALGORITHM_CPP_NODE_H\n\n/**\n * @brief 结点POCO(Plain Ordinary Cpp Object)类\n *\n * @tparam E 元素类型\n */\ntemplate <typename E>\nclass Node {\n private:\n E _element;\n Node<E>* _next;\...
231
12
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.6, "nodes": 144, "errors": 0, "source_hash": "bc8ab5df0eeef8f4dbbd9164c7a03032bb69b78abc0f349fa6e83d6dc38632b4", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,216
c
#pragma once // Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost // symbols as part of the module that uses it #include "dependencies/pugixml/src/pugixml.hpp" #include <fstream> #include <iostream> #include <list> #include <vector> #include <boost/program_options.hpp> #i...
21.37
52
(translation_unit) "#pragma once\n// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost\n// symbols as part of the module that uses it\n#include "dependencies/pugixml/src/pugixml.hpp"\n#include <fstream>\n#include <iostream>\n#include <list>\n#include <vector>\n\n#include <...
315
16
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 21.37, "nodes": 191, "errors": 0, "source_hash": "03c17ce79e1715d1c02720dd29c4778e6fa43d2c1b8b3f1096a01f7e37a3b44d", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,217
c
/* File: CADebugPrintf.h Abstract: Part of CoreAudio Utility Classes Version: 1.1 */ #if !defined(__CADebugPrintf_h__) #define __CADebugPrintf_h__ //============================================================================= // Includes //=====================================================================...
31.4
67
(translation_unit) "/*\n File: CADebugPrintf.h\n Abstract: Part of CoreAudio Utility Classes\n Version: 1.1\n\n*/\n#if !defined(__CADebugPrintf_h__)\n#define __CADebugPrintf_h__\n\n//=============================================================================\n// Includes\n//======================================...
238
3
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 31.4, "nodes": 191, "errors": 0, "source_hash": "51e05a0375fc33334aeab25990f9c048c1446aac04a4181e0e4b548fcfa0d0ba", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if !defined(__C...
5,218
c
/*========================================================================= Program: Visualization Toolkit Module: vtkAbstractPolyDataReader.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribu...
35.9
49
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkAbstractPolyDataReader.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n ...
144
4
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 35.9, "nodes": 74, "errors": 0, "source_hash": "93f1b0ee5fd60eb6bcdcaf5dfd4ea8fcf245694b3c1c2a359ad53829e1801227", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef v...
5,219
c
// Measure the entropy level of an input sample. #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define INM_MIN_DATA 80000 #define INM_MIN_SAMPLE_SIZE 100 #define INM_MAX_COUNT (1 << 14) static uint8_t inmN; static uint8_t inmNu...
31.23
222
(translation_unit) "// Measure the entropy level of an input sample.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n\n#define INM_MIN_DATA 80000\n#define INM_MIN_SAMPLE_SIZE 100\n#define INM_MAX_COUNT (1 << 14)\n\nstatic ...
1,658
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 31.23, "nodes": 946, "errors": 0, "source_hash": "0295e525b06950c1c66d151fe49add020dae04093083b6c7bbb217d790e05324", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,220
c
// // ZJGLMonitor.h // ZJMediaPlayer // // Created by eafy on 2020/10/14. // Copyright © 2020 ZJ<<EMAIL>>. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreVideo/CVPixelBuffer.h> #import <UIKit/UIImage.h> #import <GLKit/GLKit.h> NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { ZJGLMo...
30.55
38
(translation_unit) "//\n// ZJGLMonitor.h\n// ZJMediaPlayer\n//\n// Created by eafy on 2020/10/14.\n// Copyright © 2020 ZJ<<EMAIL>>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreVideo/CVPixelBuffer.h>\n#import <UIKit/UIImage.h>\n#import <GLKit/GLKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntyp...
189
24
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 30.55, "nodes": 113, "errors": 0, "source_hash": "afe2e8ddfb48450880f6ef22827d67931725d86e0bf0d253c27f361b684d2bdf", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
5,221
c
/* * Phoenix-RTOS * * Operating system kernel * * File descriptor passing * * Copyright 2021 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #ifndef _POSIX_FDPASS_H_ #define _POSIX_FDPASS_H_ #include "posix_private.h" #define MAX_MSG_CONTROLLEN 256 /* NOTE: fi...
20.15
33
(translation_unit) "/*\n * Phoenix-RTOS\n *\n * Operating system kernel\n *\n * File descriptor passing\n *\n * Copyright 2021 Phoenix Systems\n * Author: <NAME>\n *\n * This file is part of Phoenix-RTOS.\n *\n * %LICENSE%\n */\n\n#ifndef _POSIX_FDPASS_H_\n#define _POSIX_FDPASS_H_\n\n#include "posix_private.h"\n\n\n#de...
132
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.15, "nodes": 100, "errors": 0, "source_hash": "ee7a42d6f5c994eae5f3ac4b6ebbc87836429fb40b22da7064b2cf864c76fb45", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,222
c
/* test the trylock interface */ #include <stddef.h> #include "kernel.h" #include "pthread.h" #include "unit.h" int main(void) { pthread_mutex_t lock; pthread_mutex_init(&lock, NULL); if (pthread_mutex_lock(&lock)) TEST_EXIT(1); printk("mutex is now locked...\n"); if (!pthread_mutex_try...
26.14
22
(translation_unit) "/* test the trylock interface */\n\n#include <stddef.h>\n\n#include "kernel.h"\n#include "pthread.h"\n#include "unit.h"\n\nint main(void)\n{\n pthread_mutex_t lock;\n\n pthread_mutex_init(&lock, NULL);\n\n if (pthread_mutex_lock(&lock))\n TEST_EXIT(1);\n printk("mutex is now locke...
182
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.14, "nodes": 94, "errors": 0, "source_hash": "d5768ab969e557a2f2f9cb91020196d47626b225ce2c79b680fa691537e80abf", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,223
c
#ifndef SCRATCH_H #define SCRATCH_H #include "PhysicSkill.h" class Scratch : public PhysicSkill { public: enum { DMGS = 10, MANA = 5, RANGE = 1, CC = 5 }; //Constructor Scratch(int lvl); //Other methods virtual void use(LivingBeeing *t, LivingBeeing *u = 0) const; private: }; #endif /...
16.42
19
(translation_unit) "#ifndef SCRATCH_H\n#define SCRATCH_H\n\n#include "PhysicSkill.h"\n\nclass Scratch : public PhysicSkill {\npublic:\n enum \n {\n DMGS = 10,\n MANA = 5,\n RANGE = 1,\n CC = 5\n };\n //Constructor\n Scratch(int lvl);\n //Other methods\n virtual void use(LivingBeeing *t, LivingBeeing ...
98
3
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.42, "nodes": 59, "errors": 0, "source_hash": "ee8698429f3040609dbb3f2e6aef3385625ff72c305825bc989e6d0b33f3f07e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,224
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "StabsSource.h" #import "SymbolSource.h" @class MemoryCache, NSMachOImage; @interface NSBinaryHeader : NSObject <SymbolSource, StabsSource> { NSMachOIm...
34.79
34
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "StabsSource.h"\n#import "SymbolSource.h"\n\n@class MemoryCache, NSMachOImage;\n\n@interface NSBinaryHeader : NSObject <SymbolSou...
396
27
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.79, "nodes": 248, "errors": 0, "source_hash": "4f427c8648131cff1e65206b0d1052cea4aaef5e28058e076f1d6ae1b631309d", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
5,225
c
#ifndef PROJECT_H #define PROJECT_H class Project { private: string name; string description; public: Project(); string getDescription() const; void setDescription(const string &value); string getName() const; void setName(const string &value); }; #endif // PROJECT_H
18.73
15
(translation_unit) "#ifndef PROJECT_H\n#define PROJECT_H\n\nclass Project\n{\nprivate:\n string name;\n string description;\n\npublic:\n Project();\n\n string getDescription() const;\n void setDescription(const string &value);\n string getName() const;\n void setName(const string &value);\n\n};\n\n...
88
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.73, "nodes": 46, "errors": 0, "source_hash": "86b4f04b6dc72189218d59a14f2150f692cfe1629caefffb105ca88ab79e5f25", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,226
c
// wrapTutorial.h // This file is generated by Shroud nowrite-version. Do not edit. // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Shroud Project Developers. // See the top-level COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) // /** * \file wrapTutorial.h ...
34.92
72
(translation_unit) "// wrapTutorial.h\n// This file is generated by Shroud nowrite-version. Do not edit.\n// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and\n// other Shroud Project Developers.\n// See the top-level COPYRIGHT file for details.\n//\n// SPDX-License-Identifier: (BSD-3-Clause)\n//\n...
532
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.92, "nodes": 377, "errors": 0, "source_hash": "aed3cbf494a19aebea953e1b320162897d6c1f727a64f581e57a3b578c8e3bfa", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,227
c
#pragma once __attribute__((visibility("default"))) int bar();
30.5
2
(translation_unit) "#pragma once\n__attribute__((visibility("default"))) int bar();\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "__attribute__((visibility("default"))) int bar();" (attribute_specifier) "__attribute__((visibility("default")))" ...
28
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 30.5, "nodes": 15, "errors": 0, "source_hash": "b18cb10562556c304a8f05de1bcfe611548112dd19489c7f11d1f4fec271f461", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
5,228
c
// // WAROtherJournalListViewController.h // AFNetworking // // Created by 卧岚科技 on 2018/6/12. // #import "WARBaseUserDiaryViewController.h" @interface WAROtherJournalListViewController : WARBaseUserDiaryViewController - (instancetype)initWithFriendId:(NSString *)friendId; @property (nonatomic, strong) UITableVie...
29.45
11
(translation_unit) "//\n// WAROtherJournalListViewController.h\n// AFNetworking\n//\n// Created by 卧岚科技 on 2018/6/12.\n//\n\n#import "WARBaseUserDiaryViewController.h"\n\n@interface WAROtherJournalListViewController : WARBaseUserDiaryViewController\n\n- (instancetype)initWithFriendId:(NSString *)friendId;\n\n@proper...
57
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.45, "nodes": 34, "errors": 0, "source_hash": "0ca3f3154a1c79bdf73645acbf83a42104515a3ca4a1ac854d8d8b6cbb980907", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\"WARBase...
5,229
c
/* Check that zero-displacement branches are used instead of branch-free execution patterns. This is usually handled by the *cset_zero patterns. */ /* { dg-do compile } */ /* { dg-options "-O1 -mzdcbranch" } */ /* { dg-final { scan-assembler-not "subc|and|bra" } } */ /* { dg-final { scan-assembler-times "bf\t...
22.12
24
(translation_unit) "/* Check that zero-displacement branches are used instead of branch-free\n execution patterns.\n This is usually handled by the *cset_zero patterns. */\n/* { dg-do compile } */\n/* { dg-options "-O1 -mzdcbranch" } */\n/* { dg-final { scan-assembler-not "subc|and|bra" } } */\n/* { dg-final { ...
109
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.12, "nodes": 64, "errors": 0, "source_hash": "eb3bf9ac1d06b2be7cc1d08736adca6c5f66a56097c9267cfb7187730fcc2c7f", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
5,230
c
#pragma once #include "R3D/Common/Common.h" #include "R3D/RigidBodyEngine/CollisionDetection/IBroadPhaseFilter.h" #include "R3D/RigidBodyEngine/CollisionDetection/Octree.h" namespace r3 { class R3D_DECLSPEC OctreeBroadPhaseFilter : public IBroadPhaseFilter { public: explicit OctreeBroadPhaseFilter() = default; ...
29.68
19
(translation_unit) "#pragma once\n#include "R3D/Common/Common.h"\n#include "R3D/RigidBodyEngine/CollisionDetection/IBroadPhaseFilter.h"\n#include "R3D/RigidBodyEngine/CollisionDetection/Octree.h"\n\nnamespace r3\n{\n class R3D_DECLSPEC OctreeBroadPhaseFilter : public IBroadPhaseFilter\n {\n public:\n explicit OctreeBr...
131
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.68, "nodes": 78, "errors": 0, "source_hash": "59734bf0f28f40a28d64f3d98294bd94ac9c364a99e77897c9ac526eec86845b", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,231
c
#ifndef HAMPEL_H #define HAMPEL_H #include <algorithm> #include <vector> namespace Hampel { template <class RandomAccessIterator, class T = typename RandomAccessIterator::value_type> T Hampel (RandomAccessIterator first, RandomAccessIterator last, T n = 5.2) { // Make a copy of the original data and perform so...
36.27
30
(translation_unit) "#ifndef HAMPEL_H\n#define HAMPEL_H\n\n#include <algorithm>\n#include <vector>\n\n\n\nnamespace Hampel\n{\n\ntemplate <class RandomAccessIterator, class T = typename RandomAccessIterator::value_type>\nT Hampel (RandomAccessIterator first, RandomAccessIterator last, T n = 5.2)\n{\n // Make a copy o...
342
16
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 36.27, "nodes": 210, "errors": 0, "source_hash": "74473d481b32c6fb350412997d20ac07ea41731ecd5eaf9d4e75414512a5c10f", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,232
c
#pragma once #include "../Action.h" namespace ai { class TellMasterAction : public Action { public: TellMasterAction(PlayerbotAI* ai, string text) : Action(ai, "tell master"), text(text) {} virtual bool Execute(Event event) { ai->TellMaster(text); return true; ...
27.29
31
(translation_unit) "#pragma once\n\n#include "../Action.h"\n\nnamespace ai\n{\n class TellMasterAction : public Action {\n public:\n TellMasterAction(PlayerbotAI* ai, string text) : Action(ai, "tell master"), text(text) {}\n\n virtual bool Execute(Event event)\n {\n ai->TellMaster(...
229
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.29, "nodes": 121, "errors": 0, "source_hash": "a6241e589373eaa292e1154f3116fc4cbec7bf41ba547d537ee0d90b5ed6efa5", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,233
c
#include <stdio.h> #include "GLEStrace.h" static char s_strbuf[512]; // [FIXME] thread safe static char * get_target_str (GLenum target) { switch (target) { case GL_TEXTURE_2D : return "GL_TEXTURE_2D"; case GL_TEXTURE_CUBE_MAP : return "GL_TEXTURE_CUBE_MAP"; } snp...
27.85
27
(translation_unit) "#include <stdio.h>\n#include "GLEStrace.h"\n\n\nstatic char s_strbuf[512]; // [FIXME] thread safe\n\nstatic char *\nget_target_str (GLenum target)\n{\n switch (target)\n {\n case GL_TEXTURE_2D : return "GL_TEXTURE_2D";\n case GL_TEXTURE_CUBE_MAP : return "GL_...
160
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.85, "nodes": 83, "errors": 0, "source_hash": "7c76c54f6224bb17a0451d45d155d1eb78a942ee863bc467ffb9a0605a8c28a5", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,234
c
// // VGInput.c // example_gl3 // // Created by Isaac on 2018/5/8. // #include "VGInput.h" #include "VGLayerInternal.h" #include "VGContext.h" #include "VGGradient.h" #include "VGFont.h" #include <GLFW/glfw3.h> #include <stdio.h> struct VGInput { struct VGLayer base; const char *placeHolder; const char...
32.63
165
(translation_unit) "//\n// VGInput.c\n// example_gl3\n//\n// Created by Isaac on 2018/5/8.\n//\n\n#include "VGInput.h"\n#include "VGLayerInternal.h"\n#include "VGContext.h"\n#include "VGGradient.h"\n#include "VGFont.h"\n#include <GLFW/glfw3.h>\n#include <stdio.h>\n\nstruct VGInput {\n struct VGLayer base;\n co...
1,635
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 32.63, "nodes": 1014, "errors": 0, "source_hash": "2fb429c4108d2280c16b8cb7e99137a6bc74e112d634377ad36fefe4c49c5c00", "categorized_nodes": 712}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,235
c
/* * The Compound module for linguistic transformations * Copyright (c) 2017 Pertimm by <NAME> * Dev: January 2017 * Version 1.0 */ #include <logltras.h> #include <logltrap.h> #define DOgLtrasCompoundMaxDictionariesNumber 10 #define DOgLtrasCompoundMaxNbCandidates 100 #define DOgLtrasCompoundMaxNbSolutions 1...
39.18
113
(translation_unit) "/*\n * The Compound module for linguistic transformations\n * Copyright (c) 2017 Pertimm by <NAME>\n * Dev: January 2017\n * Version 1.0\n */\n\n#include <logltras.h>\n#include <logltrap.h>\n\n#define DOgLtrasCompoundMaxDictionariesNumber 10\n#define DOgLtrasCompoundMaxNbCandidates 100\n#define ...
1,145
5
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 39.18, "nodes": 739, "errors": 0, "source_hash": "1ae786e10f8e007b67475091f7d534e3193301d55bd5922d329e468281df9c50", "categorized_nodes": 559}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,236
c
/** [PROGRAM] : Credit Card Validation (Luhn’s Algorithm) [AUTHOR] : <NAME> [Email] : <<EMAIL>> CS50X 2020 Problem Set 1 Credit Card Program Implementation Link to the Week 1 lecture CS50 2019 - Lecture 1 - C https://youtu.be/e9Eds2Rc_x8 Link to the Problem Set https://...
32.46
155
(translation_unit) "/**\n [PROGRAM] : Credit Card Validation (Luhn’s Algorithm)\n [AUTHOR] : <NAME>\n [Email] : <<EMAIL>>\n\n CS50X 2020 Problem Set 1 Credit Card Program Implementation\n \n Link to the Week 1 lecture\n CS50 2019 - Lecture 1 - C\n https://youtu.be/e9Eds2Rc_x8\n\n Link t...
752
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 32.46, "nodes": 452, "errors": 0, "source_hash": "396a0fc6af8fcdd9ee3ac0333a8093b3fcb15811f57090a862748300d6a82ee8", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
5,237
c
/* * mybehavior.h * * Created on: Apr 20, 2013 * Author: okan */ #ifndef MYBEHAVIOR_H_ #define MYBEHAVIOR_H_ #include "myaction.h" #include "../general_sensor_helper.h" class MyBehavior { protected: MyAction action; GeneralSensorHelper* generalSensorHelper; bool subsumption; public: MyBehavior(); vi...
20.4
25
(translation_unit) "/*\n * mybehavior.h\n *\n * Created on: Apr 20, 2013\n * Author: okan\n */\n\n#ifndef MYBEHAVIOR_H_\n#define MYBEHAVIOR_H_\n\n#include "myaction.h"\n#include "../general_sensor_helper.h"\n\nclass MyBehavior {\nprotected:\n MyAction action;\n GeneralSensorHelper* generalSensorHelper;\n bool sub...
122
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.4, "nodes": 78, "errors": 0, "source_hash": "f1fad72878785b1513f6656aa3dd99da851f7ab16b3aeff32fa52fcc3daaf73c", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
5,238
c
// Copyright 2018 The Fuchsia 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 LIB_FIDL_LLCPP_ENCODED_MESSAGE_H_ #define LIB_FIDL_LLCPP_ENCODED_MESSAGE_H_ #include <algorithm> #include <cstdint> #include <iterator> #include <...
38.75
115
(translation_unit) "// Copyright 2018 The Fuchsia 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 LIB_FIDL_LLCPP_ENCODED_MESSAGE_H_\n#define LIB_FIDL_LLCPP_ENCODED_MESSAGE_H_\n\n#include <algorithm>\n#include <cstdint>\n#...
803
34
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 38.75, "nodes": 448, "errors": 0, "source_hash": "9d67c193397e1e68d11c2e4e3614caa356cee9718546a52ae9a9426b16179913", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,239
c
/* Check that the main thread's stack, on Linux, is automatically extended down to the lowest valid address when a syscall happens. Failure to do so was causing this test to fail on Linux amd64. */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sys/syscall.h> #include ...
26.81
48
(translation_unit) "/* Check that the main thread's stack, on Linux, is automatically\n extended down to the lowest valid address when a syscall happens.\n Failure to do so was causing this test to fail on Linux amd64. */\n\n#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\n#inclu...
326
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 26.81, "nodes": 189, "errors": 0, "source_hash": "c108550d6fe76039ecc923be03a53ba5e5fcf88acee1c6047ccf3a23ffc27270", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,240
c
#include<stdio.h> #include"headers.h" int main() { int a = NUMBER; printf("a=%d\n", a); return 0; }
15
7
(translation_unit) "#include<stdio.h>\n#include"headers.h"\n\nint main() {\n\n int a = NUMBER;\n\n printf("a=%d\n", a);\n\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include"headers.h"\n" (#include) "#includ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.0, "nodes": 25, "errors": 0, "source_hash": "77b9cd92be6ef9eb7aaf2bfc4f7e9bad3476c09d28b10119c9b645311c9a786e", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
5,241
c
/** StackMatGen4TimerTeensy - Teensy LC StackMat Display - LED version */ /** MIT License Copyright (c) 2020 <NAME> https://github.com/m9aertner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
30.13
61
(translation_unit) "/** \n \n StackMatGen4TimerTeensy - Teensy LC StackMat Display - LED version \n \n*/ \n \n/** \n \n MIT License \n \n Copyright (c) 2020 <NAME> https://github.com/m9aertner \n \n Permission is hereby granted, free of charge, to any person obtaining a copy \n of this software and associated docu...
113
4
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.13, "nodes": 64, "errors": 0, "source_hash": "7567c72276c40cc192b76fb47e75f90d07cf50f5c44657686fff06ddd4cf4003", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,242
c
// // Created by elnsa on 2020-01-29. // #ifndef PROJECT_CODE_INVERSESCANNER_H #define PROJECT_CODE_INVERSESCANNER_H #include "../HPicture.h" class InverseScanner { public: static void performInverseScan(HPicture *picture, bool alternate_scan); static void performInverseScanHelper(Block *block); stati...
24.27
15
(translation_unit) "//\n// Created by elnsa on 2020-01-29.\n//\n\n#ifndef PROJECT_CODE_INVERSESCANNER_H\n#define PROJECT_CODE_INVERSESCANNER_H\n\n\n#include "../HPicture.h"\n\nclass InverseScanner {\npublic:\n static void performInverseScan(HPicture *picture, bool alternate_scan);\n\n static void performInverseSc...
77
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.27, "nodes": 43, "errors": 0, "source_hash": "032458f0c419cfb48e7c154d842af64074303b7c1280410b920917471479cdea", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,243
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <glwidget.h> class ApplicationControl; class UIControl; class QGroupsListWidget; class QTreeWidget; class QTreeWidgetItem; class SGQtWidgetManager; namespace Ui { class MainWindow; } // The main window of the application. // // Files can be ...
33.27
59
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n\n#include <glwidget.h>\n\nclass ApplicationControl;\nclass UIControl;\nclass QGroupsListWidget;\nclass QTreeWidget;\nclass QTreeWidgetItem;\nclass SGQtWidgetManager;\n\nnamespace Ui {\nclass MainWindow;\n}\n\n// The main window o...
441
11
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.27, "nodes": 306, "errors": 0, "source_hash": "7550fce58ccddb944f7e01fe4f63687669d3fa322124bdd29885a080e137747d", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,244
c
#import <Cocoa/Cocoa.h> #import "SyntaxKit.h" FOUNDATION_EXPORT double SyntaxKitVersionNumber; FOUNDATION_EXPORT const unsigned char SyntaxKitVersionString[];
38.75
4
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n#import "SyntaxKit.h"\n\nFOUNDATION_EXPORT double SyntaxKitVersionNumber;\nFOUNDATION_EXPORT const unsigned char SyntaxKitVersionString[];\n\n" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (preproc_cal...
26
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 38.75, "nodes": 18, "errors": 0, "source_hash": "632a783721d4eedd5abdb09e643fdd819f7b7c758e7d8c8ca4b4a041ba410885", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <C...
5,245
c
#include <arch/keyboard.h> int shift = 0; int capslock = 0; char keyboard_to_scan[] = { 0, // 0 27, // ESCAPE '1', // 1 '2', // 2 '3', // 3 '4', // 4 '5', // 5 '6', // 6 '7', // 7 '8', // 8 '9', // 9 '0', // 0 '-', // - '=', // = '\b', // Backspace '\t', // Tab 'q', // q 'w', //...
13.38
207
(translation_unit) "#include <arch/keyboard.h>\n\nint shift = 0;\nint capslock = 0;\n\nchar keyboard_to_scan[] = {\n 0, // 0\n 27, // ESCAPE\n '1', // 1\n '2', // 2\n '3', // 3\n '4', // 4\n '5', // 5\n '6', // 6\n '7', // 7\n '8', // 8\n '9', // 9\n '0', // 0\n '-', // -\n '=', // =\n '\b', // Backsp...
1,223
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 13.38, "nodes": 729, "errors": 0, "source_hash": "73882d73b42467615095a1cd36baebcc2920a897097b04cc63b8997be82bba16", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,246
c
// dailyprogrammer 239 easy // https://github.com/vesche #include <stdio.h> void main() { int n; scanf("%d", &n); while (n != 1) { int x = n % 3; if (x == 0) { printf("%d 0\n", n); } else if (x == 1) { printf("%d -1\n", n); n--; ...
16.48
25
(translation_unit) "// dailyprogrammer 239 easy\n// https://github.com/vesche\n\n#include <stdio.h>\n\nvoid\nmain()\n{\n int n;\n scanf("%d", &n);\n\n while (n != 1) {\n int x = n % 3;\n\n if (x == 0) {\n printf("%d 0\n", n);\n }\n else if (x == 1) {\n printf("...
158
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.48, "nodes": 79, "errors": 0, "source_hash": "6341979fe41da3aee3630a71f3c5896067bbe08473a88d23e92d41fdc81145c8", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,247
c
extern int __VERIFIER_nondet_int(void); int test_fun(int x, int y) { while ((x > 0) && (y > 0)) { if (x > y) { while (x > 0) { x = x - 1; } } else { while (y > 0) { y = y - 1; } } } return x + y; } int ...
20.05
19
(translation_unit) "extern int __VERIFIER_nondet_int(void);\n\nint test_fun(int x, int y)\n{\n while ((x > 0) && (y > 0)) {\n if (x > y) {\n while (x > 0) {\n x = x - 1;\n }\n } else {\n while (y > 0) {\n y = y - 1;\n }\n ...
149
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.05, "nodes": 87, "errors": 0, "source_hash": "99d118347d12defd4f7bcfeec9977bc5b46afa3031b65580fdff3a61a78995d4", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int...
5,248
c
#pragma once #include "MoreLikeThisToken.h" #include "MoreLikeThisOptions.h" namespace ravendb::client::documents::queries::more_like_this { class MoreLikeThisScope { private: std::shared_ptr<session::tokens::MoreLikeThisToken> _token{}; const std::function<std::string(nlohmann::json)> _add_query_parameter; ...
35.8
20
(translation_unit) "ragma once\n#include "MoreLikeThisToken.h"\n#include "MoreLikeThisOptions.h"\n\nnamespace ravendb::client::documents::queries::more_like_this\n{\n class MoreLikeThisScope\n {\n private:\n std::shared_ptr<session::tokens::MoreLikeThisToken> _token{};\n const std::function<std::string(nlohmann::json...
238
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.8, "nodes": 141, "errors": 0, "source_hash": "e0f91915b9a10d95a2c9de6c92290f0ff90052befda03f3e16c0ddb636fd8849", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
5,249
c
#define arch_get_syscall_args s390_get_syscall_args #define ARCH_REGSET s390_regset #include "../s390/get_syscall_args.c" #undef ARCH_REGSET #undef arch_get_syscall_args #define arch_get_syscall_args s390x_get_syscall_args #define ARCH_REGSET s390x_regset #include "../s390/get_syscall_args.c" #undef ARCH_REGSET #undef...
28.21
19
(translation_unit) "#define arch_get_syscall_args s390_get_syscall_args\n#define ARCH_REGSET s390_regset\n#include "../s390/get_syscall_args.c"\n#undef ARCH_REGSET\n#undef arch_get_syscall_args\n\n#define arch_get_syscall_args s390x_get_syscall_args\n#define ARCH_REGSET s390x_regset\n#include "../s390/get_syscall_args....
93
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.21, "nodes": 65, "errors": 0, "source_hash": "efc7a6fd02922a092a8846fc18895b8f563114b17a8531d7d65d25dbbd73de5a", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ar...
5,250
c
// // CYloginRegisterViewController.h // 聪颖不聪颖 // // Created by 葛聪颖 on 15/9/27. // Copyright © 2015年 gecongying. All rights reserved. // #import <UIKit/UIKit.h> @interface CYloginRegisterViewController : UIViewController @end
22
10
(translation_unit) "//\n// CYloginRegisterViewController.h\n// 聪颖不聪颖\n//\n// Created by 葛聪颖 on 15/9/27.\n// Copyright © 2015年 gecongying. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CYloginRegisterViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// CYloginRegisterVie...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.0, "nodes": 9, "errors": 0, "source_hash": "d2c02f8fe81023ae30cbd00969dc6706513f22278815282e3400d0ab38c5ad18", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t.h>\n\n@int...
5,251
c
#ifndef FENVINCLUDE_H #define FENVINCLUDE_H #ifndef _MSC_VER //if not Windows, include the standard fenv.v.h #include <fenv.h> #else //on Windows, cook up the functions we need #include <float.h> #include <stdio.h> #include <errno.h> //#pragma fenv_access(on) //define the functions we need. I hate Microsoft! Ju...
24.97
30
(translation_unit) "#ifndef FENVINCLUDE_H\n#define FENVINCLUDE_H\n\n#ifndef _MSC_VER\n\n//if not Windows, include the standard fenv.v.h\n#include <fenv.h>\n\n#else \n\n//on Windows, cook up the functions we need\n#include <float.h>\n#include <stdio.h>\n#include <errno.h>\n\n//#pragma fenv_access(on)\n\n\n//define the f...
144
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.97, "nodes": 108, "errors": 0, "source_hash": "a8069d7a1d393737ea5868df8e47ede2f4f43a957278625e0c49be45012fb426", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,252
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //============================================================================= #ifndef DMVAR_H #define DMVAR_H #ifdef _WIN32 #pragma once #endif class CDmAttribute; //-------------------------------------...
25.24
93
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============// \n// \n// Purpose: \n// \n//============================================================================= \n \n#ifndef DMVAR_H \n#define DMVAR_H \n#ifdef _WIN32 \n#pragma once \n#endif \n \n \nclass CDmAttribute; \n \n//--...
601
47
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 25.24, "nodes": 318, "errors": 0, "source_hash": "68211baef7a408a61341f6d610dc276908dc0a239fb1bbf7c37d5aaca888dd92", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef DMVAR_...
5,253
c
// // PasswordView.h // ChaoPai // // Created by macbook v5 on 2018/8/31. // Copyright © 2018年 LinkStart. All rights reserved. // #import <UIKit/UIKit.h> @protocol PasswordViewDelegate <NSObject> ///密文状态下输入的字符串 - (void)secureTextEntryTextString:(NSString *)string; @end ///密码 @interface PasswordView : UIView /...
22.08
24
(translation_unit) "//\n// PasswordView.h\n// ChaoPai\n//\n// Created by macbook v5 on 2018/8/31.\n// Copyright © 2018年 LinkStart. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol PasswordViewDelegate <NSObject>\n\n///密文状态下输入的字符串\n- (void)secureTextEntryTextString:(NSString *)string;\n\n@end\n\n///密...
123
23
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.08, "nodes": 87, "errors": 0, "source_hash": "e3b9b8f19bc6e9e28bec6b44c30dad46ce64ce80068e13047339dde2eb7f8bac", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,254
c
/** * @file armstrong.c * @brief Check if a number is Armstrong or not. * Eg: 153 is an armstrong number */ #include "stdio.h" int main(){ int n,k,d,sum=0; printf("Enter the number: "); scanf("%d",&n); k=n; while(n){ d=n%10; n=n/10; sum+=d*d*d; } if (sum==k) ...
16.92
25
(translation_unit) "/**\n * @file armstrong.c\n * @brief Check if a number is Armstrong or not.\n * Eg: 153 is an armstrong number\n */\n#include "stdio.h"\n\nint main(){\n int n,k,d,sum=0;\n printf("Enter the number: ");\n scanf("%d",&n);\n k=n;\n while(n){\n d=n%10;\n n=n/10;\n sum...
145
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.92, "nodes": 75, "errors": 0, "source_hash": "5afda4ed2cbe80de52805e10dadbfeffa50106ff6d2b8b60d0048cb2827212ab", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,255
c
#ifndef ENEMYSHOTS_H #define ENEMYSHOTS_H #include "game/components.h" #include "core/babyecs.h" #include "core/collisions/rect.h" #include "game/factory.h" #include "core/audio/audiosystem.h" void updateEnemyShots(GameData &playerInfo) { Eid playerId = BabyECS::getFirst(GroupMask({Component::Position},{Tag::Padd...
34.71
38
(ERROR) "#ifndef ENEMYSHOTS_H\n#define ENEMYSHOTS_H\n\n#include "game/components.h"\n#include "core/babyecs.h"\n#include "core/collisions/rect.h"\n#include "game/factory.h"\n#include "core/audio/audiosystem.h"\n\nvoid updateEnemyShots(GameData &playerInfo) {\n Eid playerId = BabyECS::getFirst(GroupMask({Component::P...
464
23
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.71, "nodes": 262, "errors": 0, "source_hash": "f2c49d6fbad542d1d158ea45b4973c9c66484a58a66f05c4221ae8d9b008ff5d", "categorized_nodes": 199}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ENEMYSHOTS_H\n#de...
5,256
c
#ifndef _CYCLIC_H #define _CYCLIC_H #include "globals.h" #include "senddata.h" void doHousekeeping(void); uint64_t uptime(void); void reset_counters(void); int redirect_log(const char *fmt, va_list args); #endif
22.56
9
(translation_unit) "#ifndef _CYCLIC_H\n#define _CYCLIC_H\n\n#include "globals.h"\n#include "senddata.h"\n\nvoid doHousekeeping(void);\nuint64_t uptime(void);\nvoid reset_counters(void);\nint redirect_log(const char *fmt, va_list args);\n\n#endif" (preproc_ifdef) "#ifndef _CYCLIC_H\n#define _CYCLIC_H\n\n#include "glob...
69
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.56, "nodes": 47, "errors": 0, "source_hash": "905fdbabf1037e39c65c64af56eaaa3c15094b0c52d5264a486ba4400ac2e689", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,257
c
#ifndef PHYSICS2D_BROADPHASE_DBVT_H #define PHYSICS2D_BROADPHASE_DBVT_H #include "aabb.h" namespace Physics2D { /// <summary> /// Dynamic Bounding Volume Tree /// This is implemented by dynamic array-arranged. /// </summary> class Tree { public: struct Node { Body* body = nullptr; AABB aabb; int p...
29.51
67
(translation_unit) "#ifndef PHYSICS2D_BROADPHASE_DBVT_H\n#define PHYSICS2D_BROADPHASE_DBVT_H\n\n#include "aabb.h"\n\nnamespace Physics2D\n{\n /// <summary>\n /// Dynamic Bounding Volume Tree\n /// This is implemented by dynamic array-arranged.\n /// </summary>\n class Tree\n {\n public:\n struct Node\n {\n Body* bo...
741
37
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 29.51, "nodes": 491, "errors": 0, "source_hash": "dac3ef3144c958e20d5988b5545c1b422be3ff25557d156603b9ad966d60b5a0", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,258
c
// // OMGParticles.h // OCD3 // // Created by <NAME> on 3/12/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "OCD3.h" @interface OMGParticles : UIView @end
17.36
11
(translation_unit) "//\n// OMGParticles.h\n// OCD3\n//\n// Created by <NAME> on 3/12/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "OCD3.h"\n\n@interface OMGParticles : UIView\n@end\n" (comment) "//" (comment) "// OMGParticles.h" (comment) "// OCD3" (com...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.36, "nodes": 12, "errors": 0, "source_hash": "ff395b385e382638aeb994a56f434528302b77957249ebd24ecefb84279a9c9c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
5,259
c
///! ///! Copyright (C) <NAME> 2021 ///! ///! pipe.h -- Pipe based IPC ///! ///! /PROJECT - Aurora's Xeneva ///! /AUTHOR - <NAME> ///! ///!============================================= #ifndef __PIPE_H__ #define __PIPE_H__ #include <utils\circ_buf.h> #include <fs\vfs.h> typedef struct _pipe_ { circ_buf_t *buf;...
25.26
23
(translation_unit) "///!\n///! Copyright (C) <NAME> 2021\n///!\n///! pipe.h -- Pipe based IPC\n///!\n///! /PROJECT - Aurora's Xeneva\n///! /AUTHOR - <NAME>\n///!\n///!=============================================\n\n#ifndef __PIPE_H__\n#define __PIPE_H__\n\n#include <utils\circ_buf.h>\n#include <fs\vfs.h>\n\ntyped...
130
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.26, "nodes": 96, "errors": 0, "source_hash": "7c5fa99af1119679ef2a3711c80b31937b8cfbdf346ca2605bd8f47dae682a85", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,260
c
#pragma once #include <functional> namespace SDL { class Guard final { public: inline Guard(std::function<void()> unlock) : unlock_(unlock) {} inline ~Guard() { unlock_(); } private: std::function<void()> unlock_; }; }
11.89
19
(translation_unit) "#pragma once\n#include <functional>\n\nnamespace SDL\n{\n class Guard final\n {\n public:\n inline Guard(std::function<void()> unlock)\n :\n unlock_(unlock)\n {}\n\n inline ~Guard()\n {\n unlock_();\n }\n\n private:\n std::function<void()> unlock_;\n };\n}" (preproc_call) "#pragma once...
97
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 11.89, "nodes": 55, "errors": 0, "source_hash": "196693f3563c51e0ce6563cb41704707d6a7d119f42b42d9aca055ad1776f174", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,261
c
#pragma once #include "GES.h" #if !defined(GES_BYPASS_VENDOR_HEADERS) #include <glm/glm.hpp> #endif namespace FloatyRocket { struct ParticleProps { glm::vec2 Position; glm::vec2 Velocity, VelocityVariation; r32 Rotation, RotationVariation; r32 RotationSpeed, RotationSpeedVariation; glm::vec4 Color1, Colo...
20.11
18
(translation_unit) "#pragma once\n#include "GES.h"\n\n#if !defined(GES_BYPASS_VENDOR_HEADERS)\n #include <glm/glm.hpp>\n#endif\n\nnamespace FloatyRocket\n{\n struct ParticleProps\n {\n glm::vec2 Position;\n glm::vec2 Velocity, VelocityVariation;\n r32 Rotation, RotationVariation;\n r32 RotationSpeed, RotationSpeedV...
89
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.11, "nodes": 57, "errors": 0, "source_hash": "ad82e7d632a84052d7282032016c57445e6df720a4a8332f4b43619aa8d704da", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,262
c
// // UITagView.h // ZPApp // // Created by Jekity on 2018/8/14. // Copyright © 2018年 Jekity. All rights reserved. // #import <UIKit/UIKit.h> @interface MUTagView : UIView /** array 如果不是字符串数组,则需要手动在configuredLabel进行类型转换并给label赋值 */ - (instancetype)initWithFrame:(CGRect)frame withAarray:(NSArray *)array itemHeig...
28.3
27
(translation_unit) "//\n// UITagView.h\n// ZPApp\n//\n// Created by Jekity on 2018/8/14.\n// Copyright © 2018年 Jekity. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MUTagView : UIView\n/**\n array 如果不是字符串数组,则需要手动在configuredLabel进行类型转换并给label赋值\n */\n- (instancetype)initWithFrame:(CGRect)frame wi...
170
22
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.3, "nodes": 104, "errors": 0, "source_hash": "c3f14de78e3641c73a0364d425406db0998ac50aa8d5cb9fa1636c1f5914c78c", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,263
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/snowball/Snowball_EXPORTS.h> #include <aws/snowball/model/ShippingLabelStatus.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceRes...
33.28
61
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/snowball/Snowball_EXPORTS.h>\n#include <aws/snowball/model/ShippingLabelStatus.h>\n#include <utility>\n\nnamespace Aws\n{\ntemplate<typename RESULT_TY...
327
27
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 33.28, "nodes": 214, "errors": 0, "source_hash": "48e9152a7afafd195700b914015dfc24ed746d25bd0242b1d85f19471f7b416b", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
5,264
c
/* This file is part of the UrgBenri application. Copyright (c) 2016 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyrig...
30.86
192
(translation_unit) "/* \n This file is part of the UrgBenri application. \n \n Copyright (c) 2016 <NAME>. \n All rights reserved. \n \n Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \n \n 1. Redistributions of source code m...
1,091
29
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 30.86, "nodes": 659, "errors": 0, "source_hash": "13270dfb1d4aa50967b1da67ab329d67a9dc7f8cb3d663ee8e372fcf4504df23", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,265
c
#include "room.h" #undef EXTRA_RESET #define EXTRA_RESET\ extra_reset(); extra_reset() { items = allocate(2); items[0] = "pool"; items[1] = "It seems you can teleport to the inn by this pool"; } TWO_EXIT("wizards/nalle/area/darvroom","west", "wizards/nalle/area/inn","chamron", "Western part of Darvox...
34.07
14
(translation_unit) "#include "room.h"\n\n#undef EXTRA_RESET\n#define EXTRA_RESET\\n extra_reset();\n\nextra_reset() {\n items = allocate(2);\n items[0] = "pool";\n items[1] = "It seems you can teleport to the inn by this pool";\n}\n\nTWO_EXIT("wizards/nalle/area/darvroom","west",\n"wizards/nalle/area/inn","...
114
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.07, "nodes": 51, "errors": 0, "source_hash": "911a996a85e1eb6d429f5088d1338eb1297b7f0fab277624bad63baf671174cd", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,266
c
/***************************************************************************** * filter.h * * Abstract FIR Filter interface * * (c) 2000 <NAME>, GFZ Potsdam * * 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...
25.86
44
(translation_unit) "/*****************************************************************************\n * filter.h\n *\n * Abstract FIR Filter interface\n *\n * (c) 2000 <NAME>, GFZ Potsdam\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...
191
7
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 25.86, "nodes": 110, "errors": 0, "source_hash": "c3de1c36249333a07de55f912a77a02dd80791b86fc7b30913d7e11d41134d87", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,267
c
/* * Copyright (c) 2014 ARM Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
33.01
161
(translation_unit) "/*\n * Copyright (c) 2014 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notic...
460
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 33.01, "nodes": 423, "errors": 0, "source_hash": "49317725ad9d25acec0e9cbc217446332f13a235d8fceb481d2ea5ac84d058eb", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,268
c
/* * Hackish way to implement setjmp/longjmp in pure MVP wasm using Binaryen's * Asyncify feature. * * Background: Setjmp/longjmp works in Emscripten (on the Web, in Node.js, in * wasmer, etc.) but it depends on JS support (or on the runtime to support * the special invoke/dynCall imports). This file shows how to...
30.27
189
(translation_unit) "/*\n * Hackish way to implement setjmp/longjmp in pure MVP wasm using Binaryen's\n * Asyncify feature.\n *\n * Background: Setjmp/longjmp works in Emscripten (on the Web, in Node.js, in\n * wasmer, etc.) but it depends on JS support (or on the runtime to support\n * the special invoke/dynCall import...
1,029
15
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 30.27, "nodes": 602, "errors": 0, "source_hash": "b7dea7d34dcd85ff6f938cb7393c215043fec30d4652b77d720a3307f83d988a", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
5,269
c
#ifndef SJF_LIB_H #define SJF_LIB_H #include "schedule.h" struct task_struct * Sjf_algo (); double calc_waiting_time_in_rq(struct task_struct *current); double calc_burst(struct task_struct *current); double calc_exp_burst(struct task_struct *current); void calc_goodness(); double start_time(); void min_burst_max_w...
34.09
11
(translation_unit) "#ifndef SJF_LIB_H\n#define SJF_LIB_H\n\n#include "schedule.h"\n\nstruct task_struct * Sjf_algo ();\n\ndouble calc_waiting_time_in_rq(struct task_struct *current);\ndouble calc_burst(struct task_struct *current);\ndouble calc_exp_burst(struct task_struct *current);\nvoid calc_goodness();\ndouble star...
106
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 34.09, "nodes": 80, "errors": 0, "source_hash": "31cb2daa697a62598775a31a55cc71388407eac7fc545a0c4c88c62bdbbf03b7", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,270
c
// Copyright 2017-2019 VMware, Inc. // SPDX-License-Identifier: BSD-2-Clause // // The BSD-2 license (the License) set forth below applies to all parts of the // Cascade project. You may not use this file except in compliance with the // License. // // BSD-2 License // // Redistribution and use in source and binary fo...
38.78
197
(translation_unit) "// Copyright 2017-2019 VMware, Inc.\n// SPDX-License-Identifier: BSD-2-Clause\n//\n// The BSD-2 license (the License) set forth below applies to all parts of the\n// Cascade project. You may not use this file except in compliance with the\n// License.\n//\n// BSD-2 License\n//\n// Redistribution an...
2,828
128
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 38.78, "nodes": 1664, "errors": 0, "source_hash": "6d06fec79d9156bc8c17817759058488c6ee636d049c1e31ea47fb3c805ad668", "categorized_nodes": 1153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CAS...
5,271
c
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
30.69
32
(translation_unit) "// ==++==\n// \n// \n// Copyright (c) 2006 Microsoft Corporation. All rights reserved.\n// \n// The use and distribution terms for this software are contained in the file\n// named license.txt, which can be found in the root of this distribution.\n// By using this software in any fa...
73
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.69, "nodes": 39, "errors": 0, "source_hash": "5cdcc598bf65aede2a36a829ae2164af7a7da0cb44faf6079e14603bcbf1014e", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,272
c
#include<stdio.h> #include<stdlib.h> int mutex=1,full=0,empty=3,x=0; int main(){ int n; void producer(); void consumer(); int wait(int); int signal(int); printf("\n 1.producer \n 2.consumer \n 3.Exit"); while(1){ printf("\n enter your choice:"); scanf("%d",&n); switch(n){ case 1: if((...
16.75
56
(translation_unit) "#include<stdio.h> \n#include<stdlib.h> \nint mutex=1,full=0,empty=3,x=0; \nint main(){ \n int n; \n void producer(); \n void consumer(); \n int wait(int); \n int signal(int); \n printf("\n 1.producer \n 2.consumer \n 3.Exit"); \n while(1){ \n printf("\n enter your choice:"); \n scanf("%d",&n); \n ...
450
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 16.75, "nodes": 259, "errors": 0, "source_hash": "2e4220c414163ef699e42c86927fbd8a258e0e4405ac0da66c971017bce7b029", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,273
c
#include "linearwaves.h" #include <ctype.h> #define PRINT_DOUBLE(NAME,VAL) printf("\t%s = %lg\n",NAME,VAL) #define PRINT_INT(NAME,VAL) printf("\t%s = %d\n",NAME,VAL) #define PRINT_STR(NAME,VAL) printf("\t%s = %s\n",NAME,VAL) #define FPRINT_DOUBLE(F,NAME,VAL) fprintf(f,"%s = %lg\n",NAME,VAL) #define FPRINT_INT(F,NAME,V...
30.08
209
(translation_unit) "#include "linearwaves.h"\n#include <ctype.h>\n\n#define PRINT_DOUBLE(NAME,VAL) printf("\t%s = %lg\n",NAME,VAL)\n#define PRINT_INT(NAME,VAL) printf("\t%s = %d\n",NAME,VAL)\n#define PRINT_STR(NAME,VAL) printf("\t%s = %s\n",NAME,VAL)\n#define FPRINT_DOUBLE(F,NAME,VAL) fprintf(f,"%s = %lg\n",NAME,VAL)\n...
2,278
0
{"language": "c", "success": true, "metadata": {"lines": 209, "avg_line_length": 30.08, "nodes": 1271, "errors": 0, "source_hash": "cdd9dc13aa7ce1f1d183bc9f99754ee6ff58fd1e33d400eb0350d70648d80580", "categorized_nodes": 937}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,274
c
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "licen...
32.54
52
(translation_unit) "/*\n * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License").\n * You may not use this file except in compliance with the License.\n * A copy of the License is located at\n *\n * http://aws.amazon.com/apache...
117
7
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.54, "nodes": 71, "errors": 0, "source_hash": "2900058c13e2b04cd246fc0a616115247ba9186a9cb47f6dc7866d0b5e650dae", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,275
c
// // ChatInputMicButton.h // Connect // // Created by MoHuilin on 16/6/14. // Copyright © 2016年 Connect. All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCChatInputConst.h" @class ChatInputMicButton; typedef void (^GJGCChatInputTextViewRecordActionChangeBlock)(GJGCChatInputTextViewRecordActionType ac...
34
37
(translation_unit) "//\n// ChatInputMicButton.h\n// Connect\n//\n// Created by MoHuilin on 16/6/14.\n// Copyright © 2016年 Connect. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "GJGCChatInputConst.h"\n\n@class ChatInputMicButton;\n\ntypedef void (^GJGCChatInputTextViewRecordActionChangeBlock)(GJGCCha...
285
30
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.0, "nodes": 187, "errors": 0, "source_hash": "8b1d3c7f0c2b2d5640af375c00cf026992d960a929fe29888b589ffae96daf95", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
5,276
c
#ifndef MODEREMOVEBUDDYGROUP_H #define MODEREMOVEBUDDYGROUP_H #include <common/Common.h> #include <modes/Mode.h> #include <program/Program.h> class ModeRemoveBuddyGroup : public Mode { public: virtual int execute(); static void printHelp(); private: FhgfsOpsErr removeGroup(const uint16_t gro...
25.93
15
(translation_unit) "#ifndef MODEREMOVEBUDDYGROUP_H\n#define MODEREMOVEBUDDYGROUP_H\n\n#include <common/Common.h>\n#include <modes/Mode.h>\n#include <program/Program.h>\n\nclass ModeRemoveBuddyGroup : public Mode\n{\n public:\n virtual int execute();\n\n static void printHelp();\n\n private:\n FhgfsOp...
81
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.93, "nodes": 48, "errors": 0, "source_hash": "b70a82d0821fbef1ef7d7c1ace241b7ba52e879385d7afbe55ac07a774aed0c1", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,277
c
#pragma once #include <torch/data/samplers/base.h> #include <torch/serialize/archive.h> namespace torch { namespace data { namespace samplers { /// Serializes a `Sampler` into an `OutputArchive`. template <typename BatchRequest> serialize::OutputArchive& operator<<( serialize::OutputArchive& archive, const Sa...
27.16
25
(translation_unit) "#pragma once\n\n#include <torch/data/samplers/base.h>\n#include <torch/serialize/archive.h>\n\nnamespace torch {\nnamespace data {\nnamespace samplers {\n/// Serializes a `Sampler` into an `OutputArchive`.\ntemplate <typename BatchRequest>\nserialize::OutputArchive& operator<<(\n serialize::Outpu...
155
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.16, "nodes": 94, "errors": 0, "source_hash": "5f38ad86cf988f017f199e3c9110b6c2823e32add3e459cf6aa6ffacdd4377b0", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,278
c
/** **************************************************************************************** * * @file user_proxr.c * * @brief Proximity reporter project source code. * * Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary Information and is...
30.39
150
(translation_unit) "/**\n ****************************************************************************************\n *\n * @file user_proxr.c\n *\n * @brief Proximity reporter project source code.\n *\n * Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer\n * program includes Confidential, Pr...
577
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 30.39, "nodes": 302, "errors": 0, "source_hash": "392c7af60b6542c87e2dcd87134b6d865012e3bc282859814bae6d148b349632", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,279
c
#ifndef __FEEDER_SYNC_PTHREADS__ #define __FEEDER_SYNC_PTHREADS__ extern KNOB<BOOL> KnobPthreads; extern VOID AddPthreadsCallbacks(IMG img); #endif /* __FEEDER_SYNC_PTHREADS__ */
34.8
5
(translation_unit) "#ifndef __FEEDER_SYNC_PTHREADS__\n#define __FEEDER_SYNC_PTHREADS__\n\nextern KNOB<BOOL> KnobPthreads;\n\nextern VOID AddPthreadsCallbacks(IMG img);\n\n#endif /* __FEEDER_SYNC_PTHREADS__ */\n" (preproc_ifdef) "#ifndef __FEEDER_SYNC_PTHREADS__\n#define __FEEDER_SYNC_PTHREADS__\n\nextern KNOB<BOOL> K...
32
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 34.8, "nodes": 26, "errors": 0, "source_hash": "46691e3f357616e9c14e674f1bde4d98c28057040afa958e795ed5d37a9a762d", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
5,280
c
/** * @file epub.c * @brief implementation of the epub library */ #include "../inc/epub.h" #include <string.h> /* internal functions - not to be exposed to the user */ static long int _get_fsize(struct zip *z, const char *fname) { struct zip_stat zs; for (int i = 0; i < zip_get_num_entries(z, ZIP_F...
32.38
134
(translation_unit) "/**\n * @file epub.c\n * @brief implementation of the epub library\n */\n\n#include "../inc/epub.h"\n#include <string.h>\n\n/* internal functions - not to be exposed to the user */\nstatic long int _get_fsize(struct zip *z, const char *fname)\n{\n struct zip_stat zs;\n for (int i = 0; ...
935
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 32.38, "nodes": 588, "errors": 0, "source_hash": "9be49fa8cc7ab94db209384b01ff77e77c5648dd626d6b40937bdf21895dbdda", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,281
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "WAReportBaseItem.h" @class NSString; @interface WAReportForwardMessageItem : WAReportBaseItem { NSString *_currentTitle; N...
40.19
27
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "WAReportBaseItem.h"\n\n@class NSString;\n\n@interface WAReportForwardMessageItem : WAReportBaseItem\n{\n ...
226
22
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 40.19, "nodes": 147, "errors": 0, "source_hash": "95d0cc9d835523c4bd6597a34bff367ff78e444ece28cf19a2d389ad6d5e5367", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,282
c
/* GsTL: the Geostatistics Template Library * * Author: <NAME> * Copyright (c) 2000 The Board of Trustees of the Leland Stanford Junior University * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditi...
29.35
172
(translation_unit) "/* GsTL: the Geostatistics Template Library\n * \n * Author: <NAME>\n * Copyright (c) 2000 The Board of Trustees of the Leland Stanford Junior University\n * \n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without modification, \n * are permitted provide...
1,114
78
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 29.35, "nodes": 708, "errors": 0, "source_hash": "8633f42300aee49b338c64db8e0ce6f5e8409143478467ffc202bc4b7283b468", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,283
c
#ifndef GTCAMERA_H #define GTCAMERA_H #include "SharedModule/flags.h" #include "SharedGuiModule/decl.h" #include "SharedModule/external/external.hpp" class GtCameraState { protected: GtCameraState(); enum StateFlags{ State_ChangedWorld = 0x1, State_ChangedProjection = 0x2, State_Chang...
36.77
106
(translation_unit) "#ifndef GTCAMERA_H\n#define GTCAMERA_H\n\n#include "SharedModule/flags.h"\n#include "SharedGuiModule/decl.h"\n\n#include "SharedModule/external/external.hpp"\n\nclass GtCameraState\n{\nprotected:\n GtCameraState();\n enum StateFlags{\n State_ChangedWorld = 0x1,\n State_ChangedPro...
1,131
37
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 36.77, "nodes": 667, "errors": 0, "source_hash": "d0639bf12506cb4b677bcf05aa095be638cbcdf945a6310fec09d236af4c5ad9", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,284
c
// // WheelEvent.h // script-engine/src // // Created by <NAME> on 2014-10-27. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // /// @addtogroup ScriptEngine /// @{ #ifndef hif...
26.21
42
(translation_unit) "//\n// WheelEvent.h\n// script-engine/src\n//\n// Created by <NAME> on 2014-10-27.\n// Copyright 2014 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n/// @addtogroup S...
164
4
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.21, "nodes": 90, "errors": 0, "source_hash": "b8265bc8aadaaa93932c518954f911ad33293a485e231115cb2aea8d6ec34904", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,285
c
/* MIT License - Copyright (c) 2019-2021 <NAME> For full license information read the LICENSE file in the project folder */ #ifndef HASP_GT911_TOUCH_DRIVER_H #define HASP_GT911_TOUCH_DRIVER_H #ifdef ARDUINO #include "hasp_conf.h" #include "Arduino.h" #include <Wire.h> #include "Goodix.h" #include "ArduinoLog.h" ...
34.53
81
(translation_unit) "/* MIT License - Copyright (c) 2019-2021 <NAME>\n For full license information read the LICENSE file in the project folder */\n\n#ifndef HASP_GT911_TOUCH_DRIVER_H\n#define HASP_GT911_TOUCH_DRIVER_H\n\n#ifdef ARDUINO\n#include "hasp_conf.h"\n\n#include "Arduino.h"\n#include <Wire.h>\n#include "Good...
516
7
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 34.53, "nodes": 281, "errors": 0, "source_hash": "785cf7adbfeb266dbc62e6d03ac579fb37f080751de93ec0f45264ff77d82566", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,286
c
/** @file MODULE : IntraLastRunLevH263Impl TAG : ILRLH263I FILE NAME : IntraLastRunLevH263Impl.h DESCRIPTION : A class to implement a last-run-level codec on the 2-D quantised dct coeffs of an Intra coded 8x8 block as defined in the H.263 standard. It implements th...
27.49
91
(translation_unit) "/** @file \n \nMODULE : IntraLastRunLevH263Impl \n \nTAG : ILRLH263I \n \nFILE NAME : IntraLastRunLevH263Impl.h \n \nDESCRIPTION : A class to implement a last-run-level codec on the \n 2-D quantised dct coeffs of an Intra coded 8x8 block \n as defined in the H....
235
2
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.49, "nodes": 130, "errors": 0, "source_hash": "a28867a5b7f85c36f7857fbc8863145502c7c0661aff95826be6f6e08f2feff2", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,287
c
#pragma once struct texture_t; struct renderContext_t; class MaterialManager; #include <Engine/Graphics/Mesh.h> class Skybox { public: Skybox(); Skybox( Skybox& ) = delete; ~Skybox() = default; void Destroy(); const int Create( const renderContext_t* context, MaterialManager* matMan, ID3D11Device* d...
30.35
23
(translation_unit) "#pragma once\n\nstruct texture_t;\nstruct renderContext_t;\nclass MaterialManager;\n\n#include <Engine/Graphics/Mesh.h>\n\nclass Skybox\n{\npublic:\n Skybox();\n Skybox( Skybox& ) = delete;\n ~Skybox() = default;\n\n void Destroy();\n const int Create( const renderContext_t* context, Mate...
189
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.35, "nodes": 125, "errors": 0, "source_hash": "1bcaec966bc336138e139961e1990000bbc063b6ff55c64d30ea0ee210ac86b9", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,288
c
#pragma once #include "ofTexture.h" namespace Cog { /** * Texture with the contents of various files * Can consist of many images, combined into a single sprite texture */ class SpriteSheetTexture : public ofTexture { public: ~SpriteSheetTexture(); /** * Allocates memory * @param w texture width ...
28.17
72
(translation_unit) "#pragma once\n\n#include "ofTexture.h"\n\nnamespace Cog {\n\n /**\n * Texture with the contents of various files\n * Can consist of many images, combined into a single sprite texture\n */\n class SpriteSheetTexture : public ofTexture\n {\n\n public:\n\n ~SpriteSheetTexture();\n\n /**\n * Allocate...
247
5
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 28.17, "nodes": 168, "errors": 0, "source_hash": "b30b38907646477527d7aceb3a50c48146d31f1c48a07da3472fc2dc6da4ca58", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,289
c
// Copyright 2021 the V8 project 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 V8_BASELINE_BASELINE_OSR_INL_H_ #define V8_BASELINE_BASELINE_OSR_INL_H_ #include "src/baseline/baseline-batch-compiler.h" #include "src/execu...
36.65
46
(translation_unit) "// Copyright 2021 the V8 project 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 V8_BASELINE_BASELINE_OSR_INL_H_\n#define V8_BASELINE_BASELINE_OSR_INL_H_\n\n#include "src/baseline/baseline-batch-comp...
309
8
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.65, "nodes": 170, "errors": 0, "source_hash": "03b04d624478dd73539149fcc4e8c0ce868b0c578075677c83ee5c60b9875bfc", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,290
c
#include "io.h" int main(void) { long long rs, rt, dspreg, dspresult; rs = 0x123456789ABCDEF0; rt = 0x123456789ABCDEFF; dspresult = 0xFF; __asm ("cmpu.le.ob %1, %2\n\t" "rddsp %0" : "=r"(dspreg) : "r"(rs), "r"(rt) ); dspreg = dspreg >> 24; if (d...
20.88
34
(translation_unit) "#include "io.h"\n\nint main(void)\n{\n long long rs, rt, dspreg, dspresult;\n\n rs = 0x123456789ABCDEF0;\n rt = 0x123456789ABCDEFF;\n dspresult = 0xFF;\n\n __asm\n ("cmpu.le.ob %1, %2\n\t"\n "rddsp %0"\n : "=r"(dspreg)\n : "r"(rs), "r"(rt)\n );\n\...
237
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 20.88, "nodes": 120, "errors": 0, "source_hash": "72ebfd6b8682a0fcad66531bfea5178f58831fc9cbad09a07a535de8ef9f8607", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,291
c
#pragma once #include <stddef.h> #include <atomic> /** Implements global counters for various events happening in the application * - for high level profiling. * See .cpp for list of events. */ namespace ProfileEvents { /// Event identifier (index in array). using Event = size_t; using Count = si...
30.32
25
(translation_unit) "#pragma once\n\n#include <stddef.h>\n#include <atomic>\n\n\n/** Implements global counters for various events happening in the application\n * - for high level profiling.\n * See .cpp for list of events.\n */\n\nnamespace ProfileEvents\n{\n /// Event identifier (index in array).\n using Ev...
110
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.32, "nodes": 73, "errors": 0, "source_hash": "134f6e5dfb40548cd23ae91e871668cf730275aee66c5bda1d160bae9254e3f9", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,292
c
#include "ps2.h" struct ps2_info pi = { VIA1_PB0, VIA1_PB1, { VIA2_PB0, VIA2_PB1, VIA2_PB2, VIA2_PB3, VIA2_PB4, VIA2_PB5, VIA2_PB6, VIA2_PB7, }, }; u8 ps2_read() { u8 i; u8 data = 0; gpio_write(pi.ctrl, PC_READ); mdelay...
16.55
67
(translation_unit) "#include "ps2.h"\n\nstruct ps2_info pi = {\n VIA1_PB0,\n VIA1_PB1,\n {\n VIA2_PB0,\n VIA2_PB1,\n VIA2_PB2,\n VIA2_PB3,\n VIA2_PB4,\n VIA2_PB5,\n VIA2_PB6,\n VIA2_PB7,\n },\n\n};\n\nu8 ps2_read()\n{\n u8 i;\n u8 data = 0;\n\n ...
416
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 16.55, "nodes": 222, "errors": 0, "source_hash": "ebd68de5a3aea57d5046e45770f6c1a026c89b85a081a01e6ce0c2ef73dfb9d5", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,293
c
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------------...
37
82
(translation_unit) "/* ----------------------------------------------------------------------------\n\n* GTSAM Copyright 2010, Georgia Tech Research Corporation,\n* Atlanta, Georgia 30332-0415\n* All Rights Reserved\n* Authors: <NAME>, et al. (see THANKS for the full author list)\n\n* See LICENSE for the license inform...
570
33
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 37.0, "nodes": 354, "errors": 0, "source_hash": "411400cb037bd7a4d23d24f1a45cf27ea26daf26b9c07f74da3e6f9e352e700b", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,294
c
// Copyright & License details are available under JXCORE_LICENSE file #ifndef SRC_JX_JOB_STORE_H_ #define SRC_JX_JOB_STORE_H_ #include <stdlib.h> #include <queue> namespace jxcore { class Job { public: static void getTasks(std::queue<int> *tasks, int threadId); static int getNewThreadId(); static void fil...
27.41
32
(translation_unit) "// Copyright & License details are available under JXCORE_LICENSE file\n\n#ifndef SRC_JX_JOB_STORE_H_\n#define SRC_JX_JOB_STORE_H_\n\n#include <stdlib.h>\n#include <queue>\n\nnamespace jxcore {\n\nclass Job {\n public:\n static void getTasks(std::queue<int> *tasks, int threadId);\n\n static int ge...
269
7
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.41, "nodes": 173, "errors": 0, "source_hash": "a86943b30d9cf632513ac772e25ff01cd5d8450fdecedbed9a56a0903e728d43", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,295
c
#ifndef CYCQUEUE_H #define CYCQUEUE_H #include "stm32f10x.h" #define MAXSIZE 255 //define the length of the queue //queue manager typedef struct { uint8_t data[MAXSIZE]; uint8_t head; uint8_t rear; uint8_t count; }CycQueue; CycQueue *CycQueueInit(uint16_t size); void CycQueueFree(CycQueue *q); uint8_t CycQue...
24.43
21
(translation_unit) "#ifndef CYCQUEUE_H\n#define CYCQUEUE_H\n\n#include "stm32f10x.h"\n\n#define MAXSIZE 255 //define the length of the queue\n\n\n//queue manager\ntypedef struct {\n uint8_t data[MAXSIZE];\n uint8_t head;\n uint8_t rear;\n uint8_t count;\n}CycQueue;\n\nCycQueue *CycQueueInit(uint16_t size);\nvoid CycQ...
156
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.43, "nodes": 116, "errors": 0, "source_hash": "f701f3b1d68d89efcd44fbde5d8bdb397fd1686641c76e355691e14e54900d83", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,296
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:42:48 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration * classdump-dyld is licensed under GPLv3, Copyrig...
38.06
16
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:42:48 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration\n* classdump-dyld is lice...
85
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 38.06, "nodes": 44, "errors": 0, "source_hash": "505782377007013117eded85ad503a543b812d8c6633e073d355cab8fc147051", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "interface MCBatt...
5,297
c
#pragma once //------------------------------------------------------------------------------ /** @class OpenGL4::OGL4RenderDevice OGL4 implementation of RenderTarget. (C) 2007 Radon Labs GmbH (C) 2013-2016 Individual contributors, see AUTHORS file */ #include "coregraphics/base/rendertargetbas...
27.1
92
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n/**\n @class OpenGL4::OGL4RenderDevice\n \n OGL4 implementation of RenderTarget.\n \n (C) 2007 Radon Labs GmbH\n (C) 2013-2016 Individual contributors, see AUTHORS file\n*/ \n#include "cor...
379
16
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 27.1, "nodes": 207, "errors": 0, "source_hash": "66d0966d7a1766ee9341253c9b04f5b254454d4ccb5ee794ea706128ff9be214", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,298
c
/* * Copyright (C) 2010 - 2012 Arkania <http://www.arkania.net/> * * 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 version....
31.39
54
(translation_unit) "/*\n * Copyright (C) 2010 - 2012 Arkania <http://www.arkania.net/>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your ...
278
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.39, "nodes": 168, "errors": 0, "source_hash": "f233410c85ddaf98bf89a14dd3a65788e1f2ef2601efbddef631f67f8eaeb3f0", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,299