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
// Header file describing a pass/fail activity // found on page 902 // Header guards #ifndef PASSFAIL_H #define PASSFAIL_H #include "gradedActivityv3.h" class passFail : public gradedActivity { protected: double minPassingScore; // Minimum passing score for the activity public: // Default con...
23.47
34
(translation_unit) "// Header file describing a pass/fail activity\n// found on page 902\n\n// Header guards\n#ifndef PASSFAIL_H\n#define PASSFAIL_H\n\n#include "gradedActivityv3.h"\n\nclass passFail : public gradedActivity\n{\n protected:\n double minPassingScore; // Minimum passing score for the activity\n ...
138
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.47, "nodes": 70, "errors": 0, "source_hash": "fe7e07c71cabfa512cb0d53a8772e3210bf8506d83962b2e63fc7dc0cba789e6", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,500
c
#ifndef LUA_MATERIAL_H_ #define LUA_MATERIAL_H_ namespace gameplay { // Lua bindings for Material. int lua_Material__gc(lua_State* state); int lua_Material_addRef(lua_State* state); int lua_Material_getParameter(lua_State* state); int lua_Material_getRefCount(lua_State* state); int lua_Material_getStateBlo...
30.12
26
(translation_unit) "#ifndef LUA_MATERIAL_H_ \n#define LUA_MATERIAL_H_ \n \nnamespace gameplay \n{ \n \n// Lua bindings for Material. \nint lua_Material__gc(lua_State* state); \nint lua_Material_addRef(lua_State* state); \nint lua_Material_getParameter(lua_State* state); \nint lua_Material_getRefCount(lua_State* state);...
192
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.12, "nodes": 145, "errors": 0, "source_hash": "4cfd213744f4afe873f1705d56157532712e4ed43f2e3c1b587b675a58452007", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,501
c
#import <ObjFW/OFObject.h> #if defined(OF_HAVE_BLOCKS) const char * of_block_signature(id block); const char * of_block_to_imp_signature(const char * signature); const char * of_block_to_cfunction_signature(const char * signature); #endif const char * of_imp_to_cfunction_signature(const char * signature); const c...
47.08
12
(translation_unit) "#import <ObjFW/OFObject.h>\n\n#if defined(OF_HAVE_BLOCKS)\nconst char * of_block_signature(id block);\n\nconst char * of_block_to_imp_signature(const char * signature);\n\nconst char * of_block_to_cfunction_signature(const char * signature);\n\n#endif\n\nconst char * of_imp_to_cfunction_signature(co...
180
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 47.08, "nodes": 116, "errors": 0, "source_hash": "dff7c9cd62998c8a4f2ff03363f42f17272d12b0cc33892e3d6acf848c487473", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,502
c
// // NSFileManager+WAAdditions.h // Librelio // // Copyright (c) 2011 WidgetAvenue - Librelio. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NSBundle (WAAdditions) - (NSString *)stringForKey:(NSString *)key; - (NSString *) pathOfFileWithUrl:(NSString*)relativeUrl ; ...
42.29
17
(translation_unit) "//\n// NSFileManager+WAAdditions.h\n// Librelio\n//\n// Copyright (c) 2011 WidgetAvenue - Librelio. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface NSBundle (WAAdditions)\n\n- (NSString *)stringForKey:(NSString *)key;\n- (NSString *) pathOfFile...
157
16
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 42.29, "nodes": 98, "errors": 0, "source_hash": "288756ae1d5eae1a8355329776ef6b26ce3a8f03399662f9732d50e69093e00a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,503
c
#pragma once #include "Serum/UI/Internal/Drawable.h" #include "Serum/UI/Plugin/Pluginable.h" namespace Serum::UI { class WidgetContainer; class Widget : public Drawable, Pluginable { public: Widget(); virtual void Draw() override; void LinkTo(const Widget& widget); void...
28.59
27
(translation_unit) "#pragma once\n\n#include "Serum/UI/Internal/Drawable.h"\n#include "Serum/UI/Plugin/Pluginable.h"\n\nnamespace Serum::UI {\n class WidgetContainer;\n\n class Widget : public Drawable, Pluginable {\n public:\n Widget();\n\n virtual void Draw() override;\n\n void LinkTo(co...
203
11
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.59, "nodes": 125, "errors": 0, "source_hash": "f5fe8f56aa5e9f19ec932c3abe0894f3044b72c0d9772882b1cae8b424a38f0c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,504
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_SYSTEM_USER_USER_VIEW_H_ #define ASH_SYSTEM_USER_USER_VIEW_H_ #include <memory> #include "ash/public/cpp/session_types.h" #include "ash/syst...
38.45
69
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ASH_SYSTEM_USER_USER_VIEW_H_\n#define ASH_SYSTEM_USER_USER_VIEW_H_\n\n#include <memory>\n\n#include "ash/public/cpp/sessio...
450
18
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 38.45, "nodes": 266, "errors": 0, "source_hash": "897353b4383b8bdbc54805a118262eae4427d083504cf9b9c6188805376c7e3d", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,505
c
/* * Copyright (C) 2004-2006 Atmel Corporation * * Based on arch/i386/kernel/irq.c * Copyright (C) 1992, 1998 <NAME>, <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation....
29.77
64
(translation_unit) "/*\n * Copyright (C) 2004-2006 Atmel Corporation\n *\n * Based on arch/i386/kernel/irq.c\n * Copyright (C) 1992, 1998 <NAME>, <NAME>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by t...
405
3
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 29.77, "nodes": 238, "errors": 0, "source_hash": "868719b5846cc7fd4cbcc6e40a09bc2e9db732b78f03405810dc914087b144e5", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,506
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { FILE *file; char data[10]; while (1) { // wait two seconds sleep(2); file = fopen("test.txt", "r"); // open "test.txt" file with read mode // read a number from the opened file fgets(data, ...
22.14
22
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\nint main()\n{\n FILE *file;\n char data[10];\n\n while (1)\n {\n // wait two seconds\n sleep(2);\n file = fopen("test.txt", "r"); // open "test.txt" file with read mode\n\n // read a number from t...
134
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.14, "nodes": 69, "errors": 0, "source_hash": "299c22d51256bef181b5dc9e4f18ca96a820f5f23d4e45762f85880befddb9cf", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,507
c
#include<stdlib.h>//C standard library header #include<stdio.h>//C standard library I/O header #include<stdint.h>//C standard library integer type definitions #include<stddef.h>//C standard library type definitions #include<string.h>//C standard library memory handling functions header #include<sys/stat.h>//POSIX stat ...
28.38
71
(translation_unit) "#include<stdlib.h>//C standard library header\n#include<stdio.h>//C standard library I/O header\n#include<stdint.h>//C standard library integer type definitions\n#include<stddef.h>//C standard library type definitions\n#include<string.h>//C standard library memory handling functions header\n#include...
579
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 28.38, "nodes": 330, "errors": 0, "source_hash": "fab511841138040eac1cd14549ef38413da4781c1b81d73b93f28a2483064a8d", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,508
c
// // MSRecordModel.h // MStarReader // // Created by Jason on 27/06/2017. // Copyright © 2017 Jason. All rights reserved. // #import "JAModel.h" @interface MSRecordModel : JAModel @end
18.1
10
(translation_unit) "//\n// MSRecordModel.h\n// MStarReader\n//\n// Created by Jason on 27/06/2017.\n// Copyright © 2017 Jason. All rights reserved.\n//\n\n#import "JAModel.h"\n\n@interface MSRecordModel : JAModel \n\n@end\n" (comment) "//" (comment) "// MSRecordModel.h" (comment) "// MStarReader" (comment...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.1, "nodes": 9, "errors": 0, "source_hash": "63a61b0d77ed647796094fe3139f336e1dd9094c0cbc8e3395ad90d41ade66ed", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"JAM...
11,509
c
#include <stdio.h> int main() { int i,n; scanf("%d", &n); printf("Feliz nat"); for (i=1;i<=n;i++) { printf("a"); } printf("l!\n"); return 0; }
13.08
13
(translation_unit) "#include <stdio.h>\nint main()\n{\n int i,n;\n scanf("%d", &n);\n printf("Feliz nat");\n for (i=1;i<=n;i++)\n {\n printf("a");\n }\n printf("l!\n");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h...
93
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.08, "nodes": 45, "errors": 0, "source_hash": "8a54e910a459fed085d4e62d06d7dc164fd9922ee2f822594178cc597ee641ca", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,510
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @import Foundation; @class NSMapTable, NSString; @interface DVTMountedFileSystem : NSObject { int _deviceNumber; NSString *_mountPath; NSMapTable *_inodesToVNodes; } + (id)...
31.96
24
(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 Foundation;\n\n@class NSMapTable, NSString;\n\n@interface DVTMountedFileSystem : NSObject\n{\n int _deviceNumber;\n NSString *_mountPath;\n NSMa...
200
22
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.96, "nodes": 122, "errors": 0, "source_hash": "881ac1a15eda12404e2ffb7be44e4eefca7ab9eafef758a4e4f333fcf9a7412c", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
11,511
c
// // NCAutocompleteTextView.h // Example // // Created by <NAME> on 9/28/14. // Copyright (c) 2014 Null Creature. All rights reserved. // #import <Cocoa/Cocoa.h> @protocol NCRAutocompleteTableViewDelegate <NSObject> @optional - (NSImage *)textView:(NSTextView *)textView imageForCompletion:(NSString *)word; - (NS...
39.31
16
(translation_unit) "//\n// NCAutocompleteTextView.h\n// Example\n//\n// Created by <NAME> on 9/28/14.\n// Copyright (c) 2014 Null Creature. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@protocol NCRAutocompleteTableViewDelegate <NSObject>\n@optional\n- (NSImage *)textView:(NSTextView *)textView imageForCo...
139
19
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.31, "nodes": 93, "errors": 0, "source_hash": "ca1f85873b392a35d4568890c7b540922a722e467714c608a9a12351601f106f", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,512
c
// Retargets STDOUT to UART #include "retarget.h" #include <stdio.h> #include "retarget_cfg.h" #include "stm32f4xx.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_usart.h" static void prv_init_gpio(void) { RETARGET_CFG_UART_GPIO_ENABLE_CLK(); GPIO_PinAFConfig(RETARGET_CFG_UART_GPIO_PORT, RETARGET_CFG_UART_GPIO...
34.66
115
(translation_unit) "// Retargets STDOUT to UART\n#include "retarget.h"\n#include <stdio.h>\n#include "retarget_cfg.h"\n#include "stm32f4xx.h"\n#include "stm32f4xx_gpio.h"\n#include "stm32f4xx_usart.h"\n\nstatic void prv_init_gpio(void) {\n RETARGET_CFG_UART_GPIO_ENABLE_CLK();\n\n GPIO_PinAFConfig(RETARGET_CFG_UART_GP...
1,078
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 34.66, "nodes": 592, "errors": 0, "source_hash": "2406d47a9f0b1b1cffe987c769b2c6bfa57651bf89d58207dedd01eec9fdc4b1", "categorized_nodes": 385}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,513
c
#ifndef RSLB_QUEUE_H #define RSLB_QUEUE_H struct queue_item { void* data; struct queue_item* next; }; struct queue_root { struct queue_item* head; struct queue_item* tail; }; void init_queue(struct queue_root* queue); void enqueue(struct queue_root* queue, struct queue_item* item); struct queue_item* ...
24.71
14
(translation_unit) "#ifndef RSLB_QUEUE_H\n#define RSLB_QUEUE_H\n\nstruct queue_item {\n void* data;\n struct queue_item* next;\n};\nstruct queue_root {\n struct queue_item* head;\n struct queue_item* tail;\n};\n\nvoid init_queue(struct queue_root* queue);\nvoid enqueue(struct queue_root* queue, struct queue...
109
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.71, "nodes": 86, "errors": 0, "source_hash": "06ad37bc8f30b2d4331fe13219e416888e58db769d708c720c0ea1948e934209", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,514
c
#ifndef __NNUTIL_H__ #define __NNUTIL_H__ #include <Eigen/Eigen> using namespace Eigen; void shape(const char *msg, Matrix<float, Dynamic, Dynamic> in); Matrix<float, Dynamic, Dynamic> loge(Matrix<float, Dynamic, Dynamic> in); float cross_entropy(Matrix<float, Dynamic, Dynamic> output, Matrix<float, Dynamic, Dynamic...
43.12
8
(translation_unit) "#ifndef __NNUTIL_H__\n#define __NNUTIL_H__\n\n#include <Eigen/Eigen>\n\nusing namespace Eigen;\n\nvoid shape(const char *msg, Matrix<float, Dynamic, Dynamic> in);\nMatrix<float, Dynamic, Dynamic> loge(Matrix<float, Dynamic, Dynamic> in);\nfloat cross_entropy(Matrix<float, Dynamic, Dynamic> output, M...
112
6
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 43.12, "nodes": 85, "errors": 0, "source_hash": "c1cf08f54bd4d3d42f09be51e258a78e52cb2694d7126dc52e6407682ed559e0", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
11,515
c
#pragma once #include "RE/Bethesda/BSLock.h" #include "RE/Bethesda/BSPointerHandle.h" #include "RE/Bethesda/BSTArray.h" #include "RE/Bethesda/BSTHashMap.h" #include "RE/Bethesda/BSTSingleton.h" namespace RE { class BGSRegisteredStoryEvent; class BGSStoryEvent; class BGSStoryEventManager : public BSTSingletonImp...
30.31
59
(translation_unit) "#pragma once\n\n#include "RE/Bethesda/BSLock.h"\n#include "RE/Bethesda/BSPointerHandle.h"\n#include "RE/Bethesda/BSTArray.h"\n#include "RE/Bethesda/BSTHashMap.h"\n#include "RE/Bethesda/BSTSingleton.h"\n\nnamespace RE\n{\n class BGSRegisteredStoryEvent;\n class BGSStoryEvent;\n\n class BGSStoryEventM...
506
30
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 30.31, "nodes": 292, "errors": 0, "source_hash": "6bab1d519998962f3d14aebb5a5cc19837401886413003f530310c5d54f6be28", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,516
c
// // HUtilityTools.h // HHTemplate // // Created by <NAME> on 5/11/15. // Copyright (c) 2015 iMoveStudio-iFallen. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface HUtilityTools : NSObject +(void)showAAlertMessage:(NSString *)msg title:(NSString *)ti...
24.89
35
(ERROR) "//\n// HUtilityTools.h\n// HHTemplate\n//\n// Created by <NAME> on 5/11/15.\n// Copyright (c) 2015 iMoveStudio-iFallen. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface HUtilityTools : NSObject\n\n+(void)showAAlertMessage:(NSString *)msg\n ...
170
15
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 24.89, "nodes": 98, "errors": 0, "source_hash": "5ea9b16f24f50614bfe497744dbb327b2d7b35633c542566f4e5b58e6097fabf", "categorized_nodes": 54}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// HUtilityTools.h\n//...
11,517
c
/******************************************************************************* * File Name: Counter_3_PM.c * Version 3.0 * * Description: * This file provides the power management source code to API for the * Counter. * * Note: * None * *****************************************************...
29.38
164
(translation_unit) "/******************************************************************************* \n* File Name: Counter_3_PM.c \n* Version 3.0 \n* \n* Description: \n* This file provides the power management source code to API for the \n* Counter. \n* \n* Note: \n* None \n* \n**********************...
305
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 29.38, "nodes": 174, "errors": 0, "source_hash": "7879939b7db28ef086c27538a4b7c5d209922a0811f8a43844049e955fcfa42e", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,518
c
#ifndef canvas_Persistency_Provenance_ProductStatus_h #define canvas_Persistency_Provenance_ProductStatus_h namespace art { using ProductStatus = unsigned char; namespace productstatus { constexpr ProductStatus present() noexcept { return 0x0; } // Product was made successfully constexp...
25.32
72
(translation_unit) "#ifndef canvas_Persistency_Provenance_ProductStatus_h\n#define canvas_Persistency_Provenance_ProductStatus_h\n\nnamespace art {\n\n using ProductStatus = unsigned char;\n\n namespace productstatus {\n constexpr ProductStatus\n present() noexcept\n {\n return 0x0;\n } // Product wa...
318
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 25.32, "nodes": 189, "errors": 0, "source_hash": "cddd9805a1d4b864aec6e43040a3a8a2f5af699c47d5cdbb73e8aece67a8a5c9", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,519
c
#pragma once // Copyright 2017-2019 <NAME> // Copyright 2017 Leap Motion #include <hx/hatchling.h> struct hxTestRunner { public: enum TestState { TEST_STATE_NOTHING_ASSERTED, TEST_STATE_PASS, TEST_STATE_FAIL }; enum { TEST_MAX_FAIL_MESSAGES = 5, #if !defined(TEST_MAX_CASES) TEST_MAX_CASES = 256 #endif ...
34.09
116
(translation_unit) "#pragma once\n// Copyright 2017-2019 <NAME>\n// Copyright 2017 Leap Motion\n\n#include <hx/hatchling.h>\n\nstruct hxTestRunner {\npublic:\n enum TestState {\n TEST_STATE_NOTHING_ASSERTED,\n TEST_STATE_PASS,\n TEST_STATE_FAIL\n };\n\n enum {\n TEST_MAX_FAIL_MESSAGES = 5,\n#if !defined(TEST_MAX_CA...
1,099
24
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 34.09, "nodes": 617, "errors": 0, "source_hash": "26fdd5bf714850c1b42c1c79761736dc7e3e64d0b24de141ca2109bbee603800", "categorized_nodes": 429}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,520
c
/* * Multi2Sim * Copyright (C) 2012 <NAME> (<EMAIL>) * * 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.92
222
(translation_unit) "/*\n * Multi2Sim\n * Copyright (C) 2012 <NAME> (<EMAIL>)\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 opt...
1,141
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 31.92, "nodes": 673, "errors": 0, "source_hash": "1e0b5ccc1e092d362aefe6d95994473976042f4f22906a767503617864e47258", "categorized_nodes": 505}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,521
c
#include <stdio.h> /* Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the eve...
22.07
27
(translation_unit) "#include <stdio.h>\n\n/*\nEach new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:\n\n1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...\n\nBy considering the terms in the Fibonacci sequence whose values do not exceed four milli...
143
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.07, "nodes": 92, "errors": 0, "source_hash": "7d44623346940f37f7694f8cb04cf756f03559bb68a38f3f0cc897fc5be5e3d9", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,522
c
// // MARViewController.h // MARNetwork // // Created by Maru-zhang on 02/16/2017. // Copyright (c) 2017 Maru-zhang. All rights reserved. // @import UIKit; @interface MARViewController : UIViewController @end
20.3
10
(translation_unit) "//\n// MARViewController.h\n// MARNetwork\n//\n// Created by Maru-zhang on 02/16/2017.\n// Copyright (c) 2017 Maru-zhang. All rights reserved.\n//\n\n@import UIKit;\n\n@interface MARViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MARViewController.h" (comment) "/...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.3, "nodes": 10, "errors": 0, "source_hash": "d7ee07c3489b570429923c1da7a63959feca69af43665fd31e36c760080e4660", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
11,523
c
// // StencilSectionManager.h // StencilLayout // // Created by pcjbird on 2016/11/8. // Copyright © 2016年 Zero Status. All rights reserved. // #import <Foundation/Foundation.h> #import "StencilLayoutDefine.h" #import "StencilInfo.h" @interface StencilSectionManager : NSObject { NSMutableDictionary* sectionSt...
37.09
22
(translation_unit) "//\n// StencilSectionManager.h\n// StencilLayout\n//\n// Created by pcjbird on 2016/11/8.\n// Copyright © 2016年 Zero Status. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "StencilLayoutDefine.h"\n#import "StencilInfo.h"\n\n@interface StencilSectionManager : NSObject\n{\n...
200
21
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.09, "nodes": 129, "errors": 0, "source_hash": "55cdea166005f1bce03ccc1d1f5c0818b3eb5c4c0d8f2e1eed6ad50b06164117", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
11,524
c
// // HQLCodeView.h // HQLTableViewDemo // // Created by <NAME> on 2020/11/30. // Copyright © 2020 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /// 自定义验证码展示视图,由一个 Label 和一个下划线组成 @interface HQLCodeView : UIView @property (nonatomic, strong) NSString *text; @property (nonatomic,...
26.12
16
(translation_unit) "//\n// HQLCodeView.h\n// HQLTableViewDemo\n//\n// Created by <NAME> on 2020/11/30.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/// 自定义验证码展示视图,由一个 Label 和一个下划线组成\n@interface HQLCodeView : UIView\n\n@property (nonatomic, strong) NS...
83
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.12, "nodes": 53, "errors": 0, "source_hash": "0395b203a660de00128afe0b71f5526afe52281a3ceebd9e9f6d62c996ef2d52", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
11,525
c
// // ViewController.h // POD_TEST_APP // // Created by NetanelY on 06/01/2020. // Copyright © 2020 NetanelY. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.36
11
(translation_unit) "//\n// ViewController.h\n// POD_TEST_APP\n//\n// Created by NetanelY on 06/01/2020.\n// Copyright © 2020 NetanelY. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "/...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.36, "nodes": 11, "errors": 0, "source_hash": "f3db944441d3ca2e3928bdf2d7c10fe26b1b9b12638c462e45e877656ea8f9e6", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
11,526
c
#ifndef SDK_CONFIG_H #define SDK_CONFIG_H #ifndef NRF_LOG_ENABLED #define NRF_LOG_ENABLED 0 #endif #ifndef NRF_SDH_ENABLED #define NRF_SDH_ENABLED 1 #endif // </h> //========================================================== // <h> Clock - SoftDevice clock configuration //==========================================...
34.42
98
(translation_unit) "#ifndef SDK_CONFIG_H\n#define SDK_CONFIG_H\n\n#ifndef NRF_LOG_ENABLED\n#define NRF_LOG_ENABLED 0\n#endif\n\n#ifndef NRF_SDH_ENABLED\n#define NRF_SDH_ENABLED 1\n#endif\n\n// </h>\n//==========================================================\n\n// <h> Clock - SoftDevice clock configuration\n\n//======...
179
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 34.42, "nodes": 127, "errors": 0, "source_hash": "d2b4a03b43d0e88f26e13dc7936993ea21bdb426790b047287d71bd3311f8689", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,527
c
/* * Project: Implemente interpretu imperatívnío jazyka IFJ13 * File: common.h * Authors: * <NAME>, xkozub03 * * Created on 11.10.2013 */ #ifndef COMMON_H #define COMMON_H /* includy jsou dole - pralo se to pri prekladu */ /* textova reprezentace pro debug vypisy */ extern const char *tok_str[]; /* t...
28.33
94
(translation_unit) "/* \n * Project: Implemente interpretu imperatívnío jazyka IFJ13\n * File: common.h\n * Authors: \n * <NAME>, xkozub03\n *\n * Created on 11.10.2013\n */\n\n#ifndef COMMON_H\n#define COMMON_H\n\n/* includy jsou dole - pralo se to pri prekladu */\n\n/* textova reprezentace pro debug vypisy */\...
472
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 28.33, "nodes": 334, "errors": 0, "source_hash": "0ebe7f4e8de99c0a7dd5a20cd86285289590411f307301da46a7d38c878c08db", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
11,528
c
#pragma once //----------------------------------------------------------------------------- enum BaseLocationId { HUMAN_FORT, // 2-3 levels, no traps DWARF_FORT, // 2-4 levels, have traps MAGE_TOWER, // 3-5 round small level; 50% chance for mages, 25% for mages & golems BANDITS_HIDEOUT, // 2-3 level, traps at ent...
33.31
122
(translation_unit) "#pragma once\n\n//-----------------------------------------------------------------------------\nenum BaseLocationId\n{\n HUMAN_FORT, // 2-3 levels, no traps\n DWARF_FORT, // 2-4 levels, have traps\n MAGE_TOWER, // 3-5 round small level; 50% chance for mages, 25% for mages & golems\n BANDITS_HIDEOUT...
848
15
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 33.31, "nodes": 552, "errors": 0, "source_hash": "d81225f4d2e8a5bf23a76ae04527bfa31367b088f08071072057f623799809d7", "categorized_nodes": 429}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,529
c
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers // // This file is part of DCRS. // // DCRS is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the Licen...
33.45
84
(translation_unit) "// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers\n//\n// This file is part of DCRS.\n//\n// DCRS is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Lesser General Public License as published by\n// the Free Software Foundation, eit...
567
34
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 33.45, "nodes": 329, "errors": 0, "source_hash": "8a7254c8187ee4a22d9672f2c65da094fcd616fc74c86d8b315a4911dfef780c", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,530
c
#pragma once #include <SimpleMath.h> namespace trview { struct MeshVertex { DirectX::SimpleMath::Vector3 pos; DirectX::SimpleMath::Vector3 normal; DirectX::SimpleMath::Vector2 uv; DirectX::SimpleMath::Color colour; }; }
21
12
(translation_unit) "#pragma once\n\n#include <SimpleMath.h>\n\nnamespace trview\n{\n struct MeshVertex\n {\n DirectX::SimpleMath::Vector3 pos;\n DirectX::SimpleMath::Vector3 normal;\n DirectX::SimpleMath::Vector2 uv;\n DirectX::SimpleMath::Color colour;\n };\n}\n" (preproc_call) "...
72
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.0, "nodes": 40, "errors": 0, "source_hash": "9dbb443fe8685421a692e1c9646820f906fe0f6dc71bc486208d3c5e94b30752", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,531
c
//======================================= // Multi-level Host Dispatcher // // EECE 315 - Project 4 // Group 11 // // <NAME> // <NAME> // <NAME> // <NAME> //======================================= //======================================= // List.h //======================================= // Header...
17.89
71
(translation_unit) "//======================================= \n// Multi-level Host Dispatcher \n// \n// EECE 315 - Project 4 \n// Group 11 \n// \n// <NAME> \n// <NAME> \n// <NAME> \n// <NAME> \n//======================================= \n \n \n//======================================= \n// List.h \n//===============...
328
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 17.89, "nodes": 239, "errors": 0, "source_hash": "3d323341985427509cf2ae8ca1185572b933ef4018698c5c13b088d7d50202b2", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,532
c
// Copyright (c) 2015, myjfm(<EMAIL>). All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions...
33.14
91
(translation_unit) "// Copyright (c) 2015, myjfm(<EMAIL>). All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright notice,\n...
504
23
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 33.14, "nodes": 252, "errors": 0, "source_hash": "51ad9e7eb0217fc8691fda2102dfee99ad695312df0995a57a4769d15f7d4c3c", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,533
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* run_cpu.c :+: :+: :+: ...
29.04
123
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* run_cpu.c ...
1,331
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 29.04, "nodes": 848, "errors": 0, "source_hash": "13df8638480f96850fee1478595706f9d61a0876fb8d2ad22f8e26696f2ddb41", "categorized_nodes": 638}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,534
c
// DO NOT EDIT. This file is machine-generated and constantly overwritten. // Make changes to Employee.h instead. #import <CoreData/CoreData.h> #import "RHManagedObject.h" extern const struct EmployeeAttributes { __unsafe_unretained NSString *firstName; __unsafe_unretained NSString *lastName; } EmployeeAttributes; ...
41.54
26
(translation_unit) "// DO NOT EDIT. This file is machine-generated and constantly overwritten.\n// Make changes to Employee.h instead.\n\n#import <CoreData/CoreData.h>\n#import "RHManagedObject.h"\n\nextern const struct EmployeeAttributes {\n __unsafe_unretained NSString *firstName;\n __unsafe_unretained NSString *last...
255
29
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 41.54, "nodes": 165, "errors": 0, "source_hash": "65f16fc774dd76a62c5eb0ee0f2acd41223ed7eebe66b8d5204afeb5e907289e", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,535
c
#pragma once #ifdef _USRDLL #define DLLEXPORT extern "C" __declspec( dllexport ) #else #define DLLEXPORT extern "C" #endif #include "D2DMisc.h" struct D2DWin { HANDLE win; }; struct D2Ctrls { HANDLE ctrls; }; struct D2Ctrl { HANDLE ctrl; }; struct DDRowInfo { int row; bool is_selected_row; int float_row; ...
40.05
172
(translation_unit) "ragma once\n\n#ifdef _USRDLL\n#define DLLEXPORT extern "C" __declspec( dllexport )\n#else\n#define DLLEXPORT extern "C"\n#endif\n\n#include "D2DMisc.h"\n\n\nstruct D2DWin\n{\n HANDLE win;\n};\nstruct D2Ctrls\n{\n HANDLE ctrls;\n};\nstruct D2Ctrl\n{\n HANDLE ctrl;\n};\n\nstruct DDRowInfo\n{\n int row...
1,872
45
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 40.05, "nodes": 1333, "errors": 0, "source_hash": "ab92458157ffb06274b9c0f5e7fbc64a3c82a90357ac61c7bbddcd077c354e69", "categorized_nodes": 1089}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragm...
11,536
c
#include "condition.h" #include "execute.h" #include "loop_bind.h" #include "object.h" #include "symbol.h" #include "type_object.h" #include "type_parse.h" #include "type_subtypep.h" #include "type_table.h" #include "type_typep.h" /* * loop-bind */ static int loop_subtypep(Execute ptr, addr a, addr b, int *ret) { ...
20.88
189
(translation_unit) "#include "condition.h"\n#include "execute.h"\n#include "loop_bind.h"\n#include "object.h"\n#include "symbol.h"\n#include "type_object.h"\n#include "type_parse.h"\n#include "type_subtypep.h"\n#include "type_table.h"\n#include "type_typep.h"\n\n/*\n * loop-bind\n */\nstatic int loop_subtypep(Execute ...
1,564
3
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 20.88, "nodes": 847, "errors": 0, "source_hash": "aa4ad3707013ef1cbea7d4b90e64242d9d11aca9f91b56adf900f65e407ca0b2", "categorized_nodes": 698}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,537
c
#include <stdio.h> int main ( ) { int x, y, temp; int arr1[10]; int arr2[10]; int menu; while (menu != 4) { printf (" 1. Enter Numbers\n 2. Display Tables of Numbers\n 3. Exit\n"); scanf ("%d", &menu); if (menu == 1) { printf ("Enter ten integer...
28.35
43
(translation_unit) "#include <stdio.h> \n \nint main ( ) \n{ \n int x, y, temp; \n int arr1[10]; \n int arr2[10]; \n int menu; \n \n while (menu != 4) { \n \n printf (" 1. Enter Numbers\n 2. Display Tables of Numbers\n 3. Exit\n"); \n scanf ("%d", &menu); \n \n if (menu == 1) { \n ...
377
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.35, "nodes": 207, "errors": 0, "source_hash": "ec761a3264b689e75c5b8f1683cbfbe7ae2b94f6fa931c149ae7469844ba401f", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,538
c
/* * ========================= DyParam.h ========================== * -- tpr -- * CREATE -- 2019.08.25 * MODIFY -- * ---------------------------------------------------------- * fast dynamic param */ #ifndef T...
32.88
40
(translation_unit) "/*\n * ========================= DyParam.h ==========================\n * -- tpr --\n * CREATE -- 2019.08.25\n * MODIFY --\n * ----------------------------------------------------------\n * fast d...
276
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.88, "nodes": 172, "errors": 0, "source_hash": "b8811fe5b5ff21ea45fdd90c81a4d06c0ada39e14d3f0b962cbafe94c4d21c8b", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,539
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2016 Rockchip Electronics Co., Ltd */ #ifndef __EVB_RK3328_H #define __EVB_RK3328_H #include <configs/rk3328_common.h> #define SDRAM_BANK_SIZE (2UL << 30) #endif
24
9
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * (C) Copyright 2016 Rockchip Electronics Co., Ltd\n */\n\n#ifndef __EVB_RK3328_H\n#define __EVB_RK3328_H\n\n#include <configs/rk3328_common.h>\n\n#define SDRAM_BANK_SIZE (2UL << 30)\n\n#endif\n" (comment) "/* SPDX-License-Identifier: GPL-2.0+ */" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.0, "nodes": 14, "errors": 0, "source_hash": "c0c505311b241294d5a0c7df79ae38f1f5c6e168c9ded64221d6c605e24f8c66", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __E...
11,540
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <CalendarPersistence/CalAddressRecordWrapper.h> @interface CalAddressABGroupWrapper : CalAddressRecordWrapper { } - (id)email; - (id)attendeeURL; - (id)completionForSubstring:(i...
23.29
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <CalendarPersistence/CalAddressRecordWrapper.h>\n\n@interface CalAddressABGroupWrapper : CalAddressRecordWrapper\n{\n}\n\n- (id)email;\n- (id)attendeeURL...
107
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.29, "nodes": 60, "errors": 0, "source_hash": "6ee7792d8a834ab7d96ffe78b3850bfa258c6c020965310cb146091cb3b5b15d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,541
c
// // Arrival.h // TubeMapper // // Created by <NAME> on 18/11/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @class TubeStation; @interface Arrival : NSObject @property (nonatomic,assign,readonly) NSInteger timeToStation; @property (nonatomic,strong,readonly) TubeSt...
34.31
16
(translation_unit) "//\n// Arrival.h\n// TubeMapper\n//\n// Created by <NAME> on 18/11/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class TubeStation;\n\n@interface Arrival : NSObject\n\n@property (nonatomic,assign,readonly) NSInteger timeToStation;\n@property...
124
22
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.31, "nodes": 82, "errors": 0, "source_hash": "95ca53003232170ef19f84742ce9f28dee6fb536ed2c23adbc643bf587ee2619", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
11,542
c
/* c_adapter_pec.h * * Default Adapter PEC configuration */ /***************************************************************************** * Copyright (c) 2012-2013 INSIDE Secure B.V. All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
34.55
60
(translation_unit) "/* c_adapter_pec.h\n *\n * Default Adapter PEC configuration\n */\n\n/*****************************************************************************\n* Copyright (c) 2012-2013 INSIDE Secure B.V. All Rights Reserved.\n*\n* This program is free software: you can redistribute it and/or modify\n* it unde...
76
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 34.55, "nodes": 58, "errors": 0, "source_hash": "9ff0ef426e0283d55c012dba646e57d10e93998bd75e46546be667d195056a4b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,543
c
/* * KitController.h * * Created on: 19 Nov 2016 * Author: jeremy */ #ifndef SOURCE_CONTROLLERS_KITCONTROLLER_H_ #define SOURCE_CONTROLLERS_KITCONTROLLER_H_ #include "../Widgets/Fader.h" #include "../Widgets/VirtualPad.h" #include "../Widgets/TriggerIdAndLocation.h" #include "../Widgets/SoundTypeAndPath.h...
28.46
112
(translation_unit) "/*\n * KitController.h\n *\n * Created on: 19 Nov 2016\n * Author: jeremy\n */\n\n#ifndef SOURCE_CONTROLLERS_KITCONTROLLER_H_\n#define SOURCE_CONTROLLERS_KITCONTROLLER_H_\n\n\n#include "../Widgets/Fader.h"\n#include "../Widgets/VirtualPad.h"\n#include "../Widgets/TriggerIdAndLocation.h"\n#incl...
774
33
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 28.46, "nodes": 490, "errors": 0, "source_hash": "d76337d1af5370c6c8e3ecdd087ec4ad3b24b1b03d81e377699327c34269d15f", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,544
c
#include <stdio.h> /* Define architecture */ #if defined(__i386__) # define TRIPLET_ARCH "i386" #elif defined(__x86_64__) # define TRIPLET_ARCH "x86_64" #elif defined(__arm__) # define TRIPLET_ARCH "arm" #else # define TRIPLET_ARCH "unknown" #endif /* Define OS */ #if defined (__linux__) # define TRIPLET_OS "linux" #...
22.24
66
(translation_unit) "#include <stdio.h>\n\n/* Define architecture */\n#if defined(__i386__)\n# define TRIPLET_ARCH "i386"\n#elif defined(__x86_64__)\n# define TRIPLET_ARCH "x86_64"\n#elif defined(__arm__)\n# define TRIPLET_ARCH "arm"\n#else\n# define TRIPLET_ARCH "unknown"\n#endif\n\n/* Define OS */\n#if defined (__linu...
377
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 22.24, "nodes": 269, "errors": 0, "source_hash": "5685562380617dd7662d4c644bc637eedfb6fff6ad29e10b1779bcc3e4ce0d09", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,545
c
#include <am.h> #include <klib.h> #include "runtime.h" #define MEIP_BASE 0x40004000 #define PLIC_BASE 0x3c000000 #define PLIC_ENABLE (PLIC_BASE + 0x2000) #define PLIC_CLAIM (PLIC_BASE + 0x200004) int main() { uint32_t claim = inl(PLIC_CLAIM); assert(claim == 0); printf("enable meip\n"); outl(MEIP_BASE, 1); ...
24.97
33
(translation_unit) "#include <am.h>\n#include <klib.h>\n#include "runtime.h"\n\n#define MEIP_BASE 0x40004000\n#define PLIC_BASE 0x3c000000\n#define PLIC_ENABLE (PLIC_BASE + 0x2000)\n#define PLIC_CLAIM (PLIC_BASE + 0x200004)\n\nint main() {\n uint32_t claim = inl(PLIC_CLAIM);\n assert(claim == 0);\n\n printf("enable...
266
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.97, "nodes": 160, "errors": 0, "source_hash": "49a2a1402d864a629e5b05fce7979f208eb383a1be030017a116a2f73877c3ec", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,546
c
#include <stdio.h> #include "memory.h" #include "sheet.h" struct Shtctl *shtctl_init(struct MemMan *memman, unsigned char *vram, int xsize, int ysize) { struct Shtctl *ctl = (struct Shtctl *)memman_alloc_4k(memman, sizeof(struct Shtctl)); if (!ctl) { return NULL; } ctl->v...
27.16
154
(translation_unit) "#include <stdio.h>\n\n#include "memory.h"\n#include "sheet.h"\n\nstruct Shtctl *shtctl_init(struct MemMan *memman, unsigned char *vram,\n int xsize, int ysize) {\n struct Shtctl *ctl =\n (struct Shtctl *)memman_alloc_4k(memman, sizeof(struct Shtctl));\n if (!ctl) {\n...
1,614
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 27.16, "nodes": 1082, "errors": 0, "source_hash": "3ce7e44c96bf59748025e40e953e57d0b61b33d8e557f72d1324f0dd49ed9859", "categorized_nodes": 772}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
11,547
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "IDEDebugQueue.h" __attribute__((visibility("hidden"))) @interface DBGLLDBQueue : IDEDebugQueue { struct SBQueue _lldbQueue; unsigned long long _numPendingBlocks; BOO...
27.43
23
(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 "IDEDebugQueue.h"\n\n__attribute__((visibility("hidden")))\n@interface DBGLLDBQueue : IDEDebugQueue\n{\n struct SBQueue _lldbQueue;\n unsigned long...
171
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.43, "nodes": 101, "errors": 0, "source_hash": "fc266c685a89ec64541a996be1f64a57b55e02f4623bd0d3109c04beab5ff660", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,548
c
// Copyright <NAME>, SwampBits LLC 2014 // BSD License #ifndef CHAUDIERE_SOCKETSERVER_H #define CHAUDIERE_SOCKETSERVER_H #include <string> #include "KernelEventServer.h" #include "KeyValuePairs.h" namespace chaudiere { class RequestHandler; class ServerSocket; class Socket; class SocketRequest; clas...
31.15
186
(translation_unit) "// Copyright <NAME>, SwampBits LLC 2014\n// BSD License\n\n#ifndef CHAUDIERE_SOCKETSERVER_H\n#define CHAUDIERE_SOCKETSERVER_H\n\n#include <string>\n\n#include "KernelEventServer.h"\n#include "KeyValuePairs.h"\n\n\nnamespace chaudiere\n{\n class RequestHandler;\n class ServerSocket;\n class Soc...
575
32
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 31.15, "nodes": 321, "errors": 0, "source_hash": "742d0c29140066558d97bdc528b40bb2d5a987fdb1967512e62d03fa690ab860", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,549
c
return_type function_name( parameter list ) { body of the function }
17
4
(translation_unit) "return_type function_name( parameter list )\n{\n body of the function\n}" (function_definition) "return_type function_name( parameter list )\n{\n body of the function\n}" (type_identifier) "return_type" (function_declarator) "function_name( parameter list )" (identifier) "functio...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 17.0, "nodes": 13, "errors": 0, "source_hash": "748b7853dd55785cdeaaa055e784262024a648689a79edbc26011487e27252c7", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "retu...
11,550
c
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1987 <NAME> **********/ /* */ /* * This routine gives access to the internal device parameters * of Uniform distributed RC lines */ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" #include "ngspice/devdefs...
24.55
47
(translation_unit) "/**********\nCopyright 1990 Regents of the University of California. All rights reserved.\nAuthor: 1987 <NAME>\n**********/\n/*\n */\n\n\n/*\n * This routine gives access to the internal device parameters\n * of Uniform distributed RC lines\n */\n\n#include "ngspice/ngspice.h"\n#include "ngspice/ck...
251
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 24.55, "nodes": 149, "errors": 0, "source_hash": "1c77100a377b3e15ba9bd065364aaac303ecf77b0c533955bd80c258678ed1e4", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,551
c
/*- * Copyright (c) 2019 <NAME><<EMAIL>> * * Licensed under the BSD-3-Clause license, see LICENSE for full information. * */ #ifndef __CLOTHO_CLIENT_H__ #define __CLOTHO_CLIENT_H__ #include <string> #include <vector> #include <memory> #include <mutex> // 使用ZooKeeper客户端库和ZooKeeper Server通信的封装 // type forward ...
38.24
59
(translation_unit) "/*-\n * Copyright (c) 2019 <NAME><<EMAIL>>\n *\n * Licensed under the BSD-3-Clause license, see LICENSE for full information.\n *\n */\n\n\n#ifndef __CLOTHO_CLIENT_H__\n#define __CLOTHO_CLIENT_H__\n\n#include <string>\n#include <vector>\n\n#include <memory>\n#include <mutex>\n\n// 使用ZooKeeper客户端库和Zo...
680
24
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 38.24, "nodes": 476, "errors": 0, "source_hash": "3ef90abb5b8c3745f4d6c89af979d96be79b48339334adc2d7a9d6b6eecf8a0c", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,552
c
// // OKAPhotoModel.h // OKAPhotosDemo // // Created by XXL on 2017/9/5. // Copyright © 2017年 EasyMoveMobile. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> @class PHAsset; typedef NS_ENUM(NSUInteger, OKAPhotoModelType) { OKAPhotoModelT...
31.64
59
(translation_unit) "//\n// OKAPhotoModel.h\n// OKAPhotosDemo\n//\n// Created by XXL on 2017/9/5.\n// Copyright © 2017年 EasyMoveMobile. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import <AVFoundation/AVFoundation.h>\n@class PHAsset;\n\n\ntypedef NS_ENUM(NSUInteger, OKAPh...
462
53
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.64, "nodes": 295, "errors": 0, "source_hash": "8616ec10012cfa84a8b8649dcada058388e907c32a619e84a5c5741a78b2c0a2", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
11,553
c
#pragma once #include <Audio.h> extern const AudioSynthWavetable::sample_data flute_samples[1]; const uint8_t flute_ranges[] = {127, }; const AudioSynthWavetable::instrument_data flute = {1, flute_ranges, flute_samples }; extern const uint32_t sample_0_flute_flutec4[768];
38.14
7
(translation_unit) "#pragma once\n#include <Audio.h>\n\nextern const AudioSynthWavetable::sample_data flute_samples[1];\nconst uint8_t flute_ranges[] = {127, };\n\nconst AudioSynthWavetable::instrument_data flute = {1, flute_ranges, flute_samples };\n\n\nextern const uint32_t sample_0_flute_flutec4[768];\n" (preproc_...
71
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 38.14, "nodes": 41, "errors": 0, "source_hash": "d0e8d94bd089dfc9b27517a77e73218f83e6471fadcb83f33f3cbf29cfec5fd1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,554
c
#include "bsd_rand.h" #include <stdio.h> #include <stdlib.h> #if defined(__cplusplus) extern "C" { #endif /** BSD random var. */ static unsigned long bsd_rand_next = 2; int bsd_rand_actual(void) { /* * Compute x = (7^5 * x) mod (2^31 - 1) * without overflowing 31 bits: * (2^31 - 1) = 127773 * (7^5) ...
22.84
55
(translation_unit) "#include "bsd_rand.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#if defined(__cplusplus)\nextern "C"\n{\n#endif\n\n/** BSD random var. */\nstatic unsigned long bsd_rand_next = 2;\n\nint bsd_rand_actual(void)\n{\n /*\n * Compute x = (7^5 * x) mod (2^31 - 1)\n * without overflowing 31 bits:\n...
315
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 22.84, "nodes": 200, "errors": 0, "source_hash": "28e2ce9bca715e0f9986bf2c5ef5a54e7fb9f76280565f1644b44edee23e9821", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,555
c
/*! \file strong_distance.h \brief This program is a derrvied work of "Frechet distance decision problem 1.0." Defines functions used to compute Strong Frechet metric, distance and diagrams for two polynomial curves. Author: <NAME> <EMAIL> http://www.cs.tulane.edu/~carola/research/cod...
37.47
32
(translation_unit) "/*! \file strong_distance.h\n \brief\n This program is a derrvied work of "Frechet distance decision\n problem 1.0." Defines functions used to compute Strong Frechet metric,\n distance and diagrams for two polynomial curves.\n\n Author: <NAME>\n <EMAIL>\n http://www.cs.tul...
19
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 37.47, "nodes": 12, "errors": 0, "source_hash": "4d5ff70bb4675f8dc3728639990c1db3323089a80e89411f4002f86adfe49506", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
11,556
c
//<NAME> 2015 //956335 //September 29, 2014 //mod.c //Purpose: To learn about the % operator. #include <stdio.h> void main() { int a, b, result; printf("Enter 2 integers, a and b, seperated by a comma:\n"); scanf("%d,%d", &a, &b); result = a % b; printf("The result is: : %d", result); }
15.63
19
(translation_unit) "//<NAME> 2015 \n//956335 \n//September 29, 2014 \n//mod.c \n//Purpose: To learn about the % operator. \n \n#include <stdio.h> \n \nvoid main() \n{ \n int a, b, result; \n \n printf("Enter 2 integers, a and b, seperated by a comma:\n"); \n scanf("%d,%d", &a, &b); \n \n result = a % b; \n \n printf("T...
80
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 15.63, "nodes": 38, "errors": 0, "source_hash": "aa885f88b13810d8b90b22b73bbad6e68bf5a10bb225968995877508724464ea", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,557
c
// Author: <NAME> (<EMAIL>) // LeetCode - 84 #include <stdio.h> #include <stdlib.h> #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define DEBUG void stack_push(int *stack, int *i, int v) { stack[*i] = v; *i += 1; } int stack_pop(const int *stack, int *i) { int v = stack[*i - 1]; *i -= 1; return v; } int sta...
24.05
73
(translation_unit) "// Author: <NAME> (<EMAIL>)\n// LeetCode - 84\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#define MAX(a, b) ((a) > (b) ? (a) : (b))\n#define DEBUG\n\nvoid stack_push(int *stack, int *i, int v) {\n stack[*i] = v;\n *i += 1;\n}\n\nint stack_pop(const int *stack, int *i) {\n int v = stack[*i - 1];...
718
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 24.05, "nodes": 449, "errors": 0, "source_hash": "02be04acd9a39efd5e9ea51f4c07060b459e4fe7b309abbaf4bce4d27da14569", "categorized_nodes": 302}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,558
c
// // SoapNil.h // Giant // // Created by <NAME> on 7/2/09. // Copyright 2009 andCulture. All rights reserved. // #import <Foundation/Foundation.h> @interface SoapNil : NSObject { } @end
15
12
(translation_unit) "//\n// SoapNil.h\n// Giant\n//\n// Created by <NAME> on 7/2/09.\n// Copyright 2009 andCulture. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface SoapNil : NSObject {\n\n}\n\n@end\n" (comment) "//" (comment) "// SoapNil.h" (comment) "// Giant" (comment) "//" ...
27
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.0, "nodes": 12, "errors": 0, "source_hash": "ab47e2b62854ab1b080a16ef22504d0c6f7654099f7ce33d326d8881996ed193", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
11,559
c
/** * connection.h * * Conecctivity exporting functions * * @file This file describes the connection related functions. * @author <NAME> * @since 03.21.2021 */ #pragma once #include <stdio.h> #include <stdlib.h> #include <string.h> /** * Connects to the given IP and PORT. * * @function * @public * @p...
19.95
56
(translation_unit) "/**\n * connection.h\n * \n * Conecctivity exporting functions\n * \n * @file This file describes the connection related functions.\n * @author <NAME>\n * @since 03.21.2021\n */\n\n#pragma once\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/**\n * Connects to the given IP and PO...
83
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 19.95, "nodes": 59, "errors": 0, "source_hash": "65b5bcd74f576a484e41fb2c8438d8c8af78d903f04f9c5b11a4c886273da4de", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,560
c
// SudokuGame.h : Include file for standard system include files, // or project specific include files. #pragma once #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> // #include <allheaders.h> // #include <capi.h> // #include <gtk/gtk.h> // TODO: Reference additiona...
28.5
12
(translation_unit) " SudokuGame.h : Include file for standard system include files,\n// or project specific include files.\n\n#pragma once\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <time.h>\n\n// #include <allheaders.h>\n// #include <capi.h>\n\n// #include <gtk/gtk....
25
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.5, "nodes": 18, "errors": 0, "source_hash": "78bfafe3ac0f4efe7096a8b8d213736e2f6b3402aaf6ab74ff100ddeb568a037", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once...
11,561
c
// See LICENSE for license details. #include "femto.h" #include "plic.h" #define IRQ_UART0 (10) // qemu/include/hw/riscv/virt.h #define UART0_INTERRUPT_PRIO (7) auxval_t __auxv[] = { { UART0_CLOCK_FREQ, 1843200 }, { UART0_BAUD_RATE, 115200 }, { NS16550A_UART0_CTRL...
30.87
31
(translation_unit) "// See LICENSE for license details.\n\n#include "femto.h"\n#include "plic.h"\n\n#define IRQ_UART0 (10) // qemu/include/hw/riscv/virt.h\n#define UART0_INTERRUPT_PRIO (7)\n\nauxval_t __auxv[] = {\n { UART0_CLOCK_FREQ, 1843200 },\n { UART0_BAUD_RATE, 115200 ...
180
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.87, "nodes": 99, "errors": 0, "source_hash": "1f1c9e15d60cb3305fa97070c48c1fda72b9a77957f825603e1abc634e18d2aa", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,562
c
// // SecondViewController.h // VDNavigationController // // Created by <NAME> on 9/17/14. // // #import <UIKit/UIKit.h> @interface SecondViewController : UIViewController @end
17
10
(translation_unit) "//\n// SecondViewController.h\n// VDNavigationController\n//\n// Created by <NAME> on 9/17/14.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SecondViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// SecondViewController.h" (comment) "// VDNavigationController" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.0, "nodes": 9, "errors": 0, "source_hash": "520c4f00291458a363b4fca824c1aa45606122d88fa189b3bb7a4b77f79e6f69", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
11,563
c
/* * Copyright (c) 2007 <NAME> * * The license and distribution terms for this file may be * found in the file COPYING in this distribution or at * http://agnosent.com/wolfcms/open-source/sge2d/license.html */ #include <sge.h> int sgeDefaultSampleRate=44100; void sgeSetDefaultSampleRate(int rate) { sgeDefault...
22.52
61
(translation_unit) "/*\n * Copyright (c) 2007 <NAME>\n *\n * The license and distribution terms for this file may be\n * found in the file COPYING in this distribution or at\n * http://agnosent.com/wolfcms/open-source/sge2d/license.html\n */\n\n#include <sge.h>\n\nint sgeDefaultSampleRate=44100;\n\nvoid sgeSetDefaultSa...
471
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 22.52, "nodes": 282, "errors": 0, "source_hash": "21d79b405205e25056ec01c26cfc05e8204e78244287f8b9f694f3e3905ec22d", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,564
c
#ifndef __RXDLINKR_H__ #define __RXDLINKR_H__ #include "rxobject.h" #include "AdAChar.h" #include "..\inc\zrxdlinkr.h" #ifndef ACHAR #define ACHAR ZTCHAR #endif //#ifndef ACHAR #ifndef ACRX_DECLARE_MEMBERS #define ACRX_DECLARE_MEMBERS ZCRX_DECLARE_MEMBERS #endif //#ifndef ACRX_DECLARE_MEMBERS #...
21.87
67
(translation_unit) "#ifndef __RXDLINKR_H__ \n#define __RXDLINKR_H__ \n \n#include "rxobject.h" \n#include "AdAChar.h" \n \n#include "..\inc\zrxdlinkr.h" \n \n#ifndef ACHAR \n#define ACHAR ZTCHAR \n#endif //#ifndef ACHAR \n \n#ifndef ACRX_DECLARE_MEMBERS \n#define ACRX_DECLARE_MEMBERS ZCRX_DECLARE_MEMBERS \n#endif //#...
161
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 21.87, "nodes": 134, "errors": 0, "source_hash": "d4c5fbfa60c1de1254056211aa6de746fa72e96ed8e9a377d2013bab106c01a6", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,565
c
#ifndef _PHONEBOOK_H #define _PHONEBOOK_H #define MAX_LAST_NAME_SIZE 16 /* TODO: After modifying the original version, uncomment the following * line to set OPT properly */ #define OPT1 #include <stdlib.h> #include <assert.h> #include <ctype.h> typedef enum {MID,LEFT,RIGHT} Direction; typedef struct __PHONE_BOOK_ENTR...
26.15
55
(translation_unit) "#ifndef _PHONEBOOK_H\n#define _PHONEBOOK_H\n#define MAX_LAST_NAME_SIZE 16\n/* TODO: After modifying the original version, uncomment the following\n * line to set OPT properly */\n#define OPT1\n#include <stdlib.h>\n#include <assert.h>\n#include <ctype.h>\ntypedef enum {MID,LEFT,RIGHT} Direction;\n\nt...
482
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.15, "nodes": 360, "errors": 0, "source_hash": "eeafece3fc8317cf7583864537af30ae6f0e2b61d8b12dc2d879a8ffe0845f91", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,566
c
/* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/spinlock-llsc.h * * Copyright (C) 2002, 2003 <NAME> * Copyright (C) 2006, 2007 <NAME> */ #ifndef __ASM_SH_SPINLOCK_LLSC_H #define __ASM_SH_SPINLOCK_LLSC_H #include <asm/barrier.h> #include <asm/processor.h> /* * Your basic SMP spinlocks, allowing only a si...
22.78
173
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0\n *\n * include/asm-sh/spinlock-llsc.h\n *\n * Copyright (C) 2002, 2003 <NAME>\n * Copyright (C) 2006, 2007 <NAME>\n */\n#ifndef __ASM_SH_SPINLOCK_LLSC_H\n#define __ASM_SH_SPINLOCK_LLSC_H\n\n#include <asm/barrier.h>\n#include <asm/processor.h>\n\n/*\n * Your basic...
1,097
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 22.78, "nodes": 554, "errors": 0, "source_hash": "c23bd08b6b009cbb02c98612a34accc1f54b959bcf37d5ce2ca58a7586a83e80", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,567
c
#include <stdio.h> struct fun { int x, y; struct { int a, b; } z; } a = { 1, .z = { 33, 44 } }; int main(int argc, char **argv) { printf("hello world %d %d %d\n", a.x, a.y, a.z.b); return 0; }
27.14
7
(translation_unit) "#include <stdio.h>\n\nstruct fun { int x, y; struct { int a, b; } z; } a = { 1, .z = { 33, 44 } };\n\nint main(int argc, char **argv)\n{\n printf("hello world %d %d %d\n", a.x, a.y, a.z.b);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_strin...
106
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 27.14, "nodes": 64, "errors": 0, "source_hash": "8d70d72268eda658664c152b63e1fec75c82c604256672a9eb8aa7f2114c2a56", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,568
c
// // GoodsPrice+CoreDataClass.h // // // Created by Danyow.Ed on 2017/1/21. // // This file was automatically generated and should not be edited. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class Goods; NS_ASSUME_NONNULL_BEGIN @interface GoodsPrice : NSManagedObject @end NS_ASSUME_NO...
21.88
16
(translation_unit) "//\n// GoodsPrice+CoreDataClass.h\n// \n//\n// Created by Danyow.Ed on 2017/1/21.\n//\n// This file was automatically generated and should not be edited.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n@class Goods;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GoodsPrice :...
38
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.88, "nodes": 24, "errors": 0, "source_hash": "0dec127edec0dac7472721c4890c54876cbdac59d9bf07154b44b9ee50643104", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,569
c
id objc_msgForward(id object,SEL message,...); void objc_msgForward_stret(void *result,id object,SEL message,...);
56.5
2
(translation_unit) "id objc_msgForward(id object,SEL message,...);\nvoid objc_msgForward_stret(void *result,id object,SEL message,...);\n" (declaration) "id objc_msgForward(id object,SEL message,...);" (type_identifier) "id" (function_declarator) "objc_msgForward(id object,SEL message,...)" (identifier)...
43
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 56.5, "nodes": 27, "errors": 0, "source_hash": "49476961cc09b00e95998485c299369588eabb7baf76b97780bed7a5365f79c2", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "id objc_msgF...
11,570
c
#ifndef CLINIC_PRIVATE_H_ #define CLINIC_PRIVATE_H_ ////////////////////////////////// //////MACROS///////////////////// //////////////////////////////// #define MAX_PW_TRYING 3 #define ADMIN 1 #define USER 2 #define ADD_PRECORD 1 #define EDIT_PRECORD 2 #define RESERVE 3 #define CANCEL 4 #define PRINT_NODE 1 #defin...
24.35
46
(translation_unit) "#ifndef CLINIC_PRIVATE_H_\n#define CLINIC_PRIVATE_H_\n\n//////////////////////////////////\n//////MACROS/////////////////////\n////////////////////////////////\n#define MAX_PW_TRYING 3\n#define ADMIN 1\n#define USER 2\n#define ADD_PRECORD 1 \n#define EDIT_PRECORD 2\n#define RESERVE 3\n#define CANCEL...
163
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 24.35, "nodes": 134, "errors": 0, "source_hash": "656daca1d1c1e50f60bab25666eef5f8124e27c91fbdfac30c80d0a7ab59cbce", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,571
c
// succeeds int main() { int *p = 0; while (p); }
11.4
5
(translation_unit) "// succeeds\nint main() {\n int *p = 0;\n while (p);\n }\n" (comment) "// succeeds" (function_definition) "int main() {\n int *p = 0;\n while (p);\n }" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" ((...
29
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 11.4, "nodes": 16, "errors": 0, "source_hash": "ec84078e4f9c3fd9682e143040f2938b7247df732943e799a4af6d7d8690d620", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int m...
11,572
c
#ifndef ITERADORHECHIZOS_H #define ITERADORHECHIZOS_H #include "Especial.h" class IteradorHechizos { private: Hechizo * arreTopeIterator[MAX_HECHIZOS]; int tope; public: // Constructor Por Defecto IteradorHechizos(); ~IteradorHechizos(); void Insertar(Hec...
20.84
19
(translation_unit) "#ifndef ITERADORHECHIZOS_H\n#define ITERADORHECHIZOS_H \n\n#include "Especial.h"\n \nclass IteradorHechizos\n{\n private: \n \n Hechizo * arreTopeIterator[MAX_HECHIZOS]; \n int tope;\n\n public:\n // Constructor Por Defecto\n IteradorHechizos();\n ~IteradorHe...
90
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.84, "nodes": 53, "errors": 0, "source_hash": "1e5885ffc4cbca423269dec3bf4b0017c4608e42f2dda41fb925ed3ffcc25da3", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,573
c
/* SPDX-License-Identifier: MIT */ #ifndef __BOIDS_H__ #define __BOIDS_H__ #include <glib.h> #include <glib/gprintf.h> #include "vector.h" #define DEFAULT_WIDTH 1024 #define DEFAULT_HEIGHT 576 #define BG_COLOR_WHITE 0 #define BG_COLOR_REDDISH 1 #define BG_COLOR_GREENISH 2 #define BG_COLOR_BLUISH 3 #define BG...
31.14
139
(translation_unit) "/* SPDX-License-Identifier: MIT */\n#ifndef __BOIDS_H__\n#define __BOIDS_H__\n\n#include <glib.h>\n#include <glib/gprintf.h>\n\n#include "vector.h"\n\n#define DEFAULT_WIDTH 1024\n#define DEFAULT_HEIGHT 576\n\n#define BG_COLOR_WHITE 0\n#define BG_COLOR_REDDISH 1\n#define BG_COLOR_GREENISH 2\n#de...
956
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 31.14, "nodes": 734, "errors": 0, "source_hash": "dcbac953eb60d64d4a6314ba8c05ec9129eb80fd27dbcf357e2f979b0d43c501", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,574
c
#pragma once #include "Client/Client.h" #include "DisconnectReason.h" #include "Database/Database.h" #ifdef _WIN32 typedef WSAPOLLFD pollfd; #define poll WSAPoll #endif class Server { private: static const size_t DEFAULT_MAX_CLIENTS = 128U; static const size_t COMMAND_ERROR_COLOR = 0xB80000; static const size_t CO...
30.59
37
(translation_unit) "#pragma once\n#include "Client/Client.h"\n#include "DisconnectReason.h"\n#include "Database/Database.h"\n\n#ifdef _WIN32\ntypedef WSAPOLLFD pollfd;\n#define poll WSAPoll\n#endif\n\nclass Server\n{\nprivate:\n static const size_t DEFAULT_MAX_CLIENTS = 128U;\n static const size_t COMMAND_ERROR_COLOR =...
331
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 30.59, "nodes": 203, "errors": 0, "source_hash": "2afae7d72a6130afcc019d1432a0c2500dda6fec7d7590259b528d4ced5d75da", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,575
c
// RUN: %ocheck 0 %s typedef int tdef; main() { #include "../ocheck-init.c" // tdef: looks like a label, but we want to interpret it as a type int i = _Generic(5, tdef: 0); return i; }
19.89
9
(translation_unit) "// RUN: %ocheck 0 %s\n\ntypedef int tdef;\n\nmain()\n{\n#include "../ocheck-init.c"\n // tdef: looks like a label, but we want to interpret it as a type\n int i = _Generic(5, tdef: 0);\n\n return i;\n}\n" (comment) "// RUN: %ocheck 0 %s" (type_definition) "typedef int tdef;" (typedef) "typed...
44
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.89, "nodes": 23, "errors": 0, "source_hash": "6bbf8b8087ac80e3dac6f69a20ed8f87191732a472cf7e6d645c2f2d5a05fd44", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
11,576
c
#pragma once #include "session_base.h" #include "session_parameter.h" namespace og { namespace core { class session; class session_relation : public session_base { public: OG_COREAPI session_relation(session* _session, string _id, schema_relation_ptr _schm_rel); OG_COREAPI session_relation(sessi...
23.98
121
(translation_unit) "#pragma once \n#include "session_base.h" \n#include "session_parameter.h" \n \nnamespace og \n{ \nnamespace core \n{ \n \nclass session; \n \nclass session_relation : public session_base \n{ \n \npublic: \n OG_COREAPI session_relation(session* _session, string _id, schema_relation_ptr _schm_rel); \...
791
33
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 23.98, "nodes": 487, "errors": 0, "source_hash": "d2188e7e63976dee909e7d246fe6b6ee343124478bdb018221e9be9b7b14f4bb", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,577
c
#if !defined(AFX_DOCHOSTHTMLVIEW_H__37829C74_D5BD_43F0_9F7A_BAD0B87E4479__INCLUDED_) #define AFX_DOCHOSTHTMLVIEW_H__37829C74_D5BD_43F0_9F7A_BAD0B87E4479__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // DocHostHtmlView.h : header file // /////////////////////////////////////////////////////////...
29.19
95
(translation_unit) "#if !defined(AFX_DOCHOSTHTMLVIEW_H__37829C74_D5BD_43F0_9F7A_BAD0B87E4479__INCLUDED_)\n#define AFX_DOCHOSTHTMLVIEW_H__37829C74_D5BD_43F0_9F7A_BAD0B87E4479__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n// DocHostHtmlView.h : header file\n//\n\n////////////////////////////...
486
18
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 29.19, "nodes": 315, "errors": 0, "source_hash": "da6f46e382e3132c366324be320f4a7e2fe3c0289d672f2c8f5fe70028844d61", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
11,578
c
/* * Copyright 2010-2017 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 "license" fil...
35.55
172
(translation_unit) "\n* Copyright 2010-2017 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/apache2.0\n*\...
1,257
77
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 35.55, "nodes": 789, "errors": 0, "source_hash": "b2fabea046610685eaf694ce858ddddfe3bf56e0d406b77f0f08b9318aa7c046", "categorized_nodes": 487}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
11,579
c
/* ** ** $Filename: b3BaseTrans.h $ ** $Release: Dortmund 2005 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: <NAME> $ ** ** Blizzard III - Performing base transformation ** ** (C) Copyright 2005 <NAME> ** All Rights Reserved ** ** ** */ #pragma once #ifndef B3_RAYTRACE_BASETRANS_H #define B3_RAYTRACE_BASE...
30.04
72
(translation_unit) "/*\n**\n** $Filename: b3BaseTrans.h $\n** $Release: Dortmund 2005 $\n** $Revision$\n** $Date$\n** $Author$\n** $Developer: <NAME> $\n**\n** Blizzard III - Performing base transformation\n**\n** (C) Copyright 2005 <NAME>\n** All Rights Reserved\n**\n**\n**\n*/\n\n#pragma once\n\n#ifndef B3_RAYTR...
154
4
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 30.04, "nodes": 90, "errors": 0, "source_hash": "b97e00a73b6d2964f87fdc538fe40878d17a789197ca2862b9d27d71abcf89b1", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,580
c
#pragma once // portable defines for compiler intrinsics #define stdIsTriviallyCopyable __is_trivially_copyable #define stdIsBaseOf __is_base_of #define stdIsClass __is_class #define stdHasTrivialDestructor __has_trivial_destructor
37.67
6
(translation_unit) "#pragma once\n\n// portable defines for compiler intrinsics\n\n#define stdIsTriviallyCopyable __is_trivially_copyable\n#define stdIsBaseOf __is_base_of\n#define stdIsClass __is_class\n#define stdHasTrivialDestructor __has_trivial_destructor\n" (preproc_call) "#pragma once\n" (preproc_directive...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 37.67, "nodes": 19, "errors": 0, "source_hash": "a7067fe8a20bd89c4dc8692917f26cce3ef72a32247ffbdca18c445d41c3de90", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
11,581
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 "PBGeneratedMessage.h" @class NSURLResponse; @interface APPBGeneratedMessage : PBGeneratedMessage { NSURLResponse *_response; }...
35.67
21
(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 "PBGeneratedMessage.h"\n\n@class NSURLResponse;\n\n@interface APPBGeneratedMessage : PBGeneratedMessage\n{\...
199
17
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.67, "nodes": 115, "errors": 0, "source_hash": "d5893b5e03797d04525de236d207d1da0a154cce4af2c1853071f0bc18f69b01", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,582
c
class Star{ public: byte depth = 1; byte depth_countdown; byte x = 127; byte y = random(0, HEIGHT); bool star_exists = true; void position_update(){ if (x == 0) star_exists = false; if (arduboy.everyXFrames(depth) && timeGo && !gamePaused){ x--; } } void st...
20.39
31
(translation_unit) "class Star{\n public:\n byte depth = 1;\n byte depth_countdown;\n byte x = 127;\n byte y = random(0, HEIGHT);\n bool star_exists = true;\n\n void position_update(){\n if (x == 0) star_exists = false;\n if (arduboy.everyXFrames(depth) && timeGo && !gamePaused){\n x...
242
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.39, "nodes": 141, "errors": 0, "source_hash": "c349d3a43b6a281acc049a6c50d7cc0e3e06c44b2d0e8965fcac143afa8974cc", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
11,583
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 <objc/NSObject.h> #import "PBCoding-Protocol.h" @class NSString; @interface WCPayLQTEnteranceInfo : NSObject <PBCoding> { unsi...
36.61
49
(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 <objc/NSObject.h>\n\n#import "PBCoding-Protocol.h"\n\n@class NSString;\n\n@interface WCPayLQTEnteranceInfo ...
458
38
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.61, "nodes": 299, "errors": 0, "source_hash": "b20d0b08d22fca4f2dc13977e602b8568e9d2d96f2be33acafd2df7bac90a793", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
11,584
c
#ifndef SIDECAR_GUI_ASCOPE_CONFIGURATION_H // -*- C++ -*- #define SIDECAR_GUI_ASCOPE_CONFIGURATION_H #include "GUI/PresetManager.h" namespace SideCar { namespace GUI { class BoolSetting; class DoubleSetting; namespace AScope { class ConfigurationWindow; class DefaultViewSettings; class HistorySettings; class PeakB...
31.17
30
(translation_unit) "#ifndef SIDECAR_GUI_ASCOPE_CONFIGURATION_H // -*- C++ -*-\n#define SIDECAR_GUI_ASCOPE_CONFIGURATION_H\n\n#include "GUI/PresetManager.h"\n\nnamespace SideCar {\nnamespace GUI {\n\nclass BoolSetting;\nclass DoubleSetting;\n\nnamespace AScope {\n\nclass ConfigurationWindow;\nclass DefaultViewSettings;\...
177
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.17, "nodes": 99, "errors": 0, "source_hash": "791d04492c2cbb771f10ef1715c6e8228f2e64e17841b9af758d53a562f6c46c", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,585
c
/* * * Copyright (C) 2004-2006 NERC DataGrid * This software may be distributed under the terms of the * CCLRC Licence for CCLRC Software * <CDATDIR>/External_License/CCLRC_CDAT_License.txt * */ #ifdef HAVE_PP #include "cdunifpp.h" /* * Attributes: * * functions which create attributes during pr...
30.62
110
(translation_unit) "/*\n *\n * Copyright (C) 2004-2006 NERC DataGrid\n * This software may be distributed under the terms of the\n * CCLRC Licence for CCLRC Software\n * <CDATDIR>/External_License/CCLRC_CDAT_License.txt \n *\n */\n#ifdef HAVE_PP\n#include "cdunifpp.h"\n\n/*\n * Attributes:\n *\n * functions...
827
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 30.62, "nodes": 488, "errors": 0, "source_hash": "9eb916d677d8ddc097fdf92456867c7a28eb6d203d0f3653faf2e4a0fd05d9a8", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
11,586
c
/* * ADL_main.c * * Created on: 2020. 8. 13. * Author: YJPark */ #include <ubinos.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <ubinos.h> #include "malloc.h" // nrf library #include "app_timer.h" #include "app_uart.h" #include "nrf_sdm.h" #include "nrf_drv_gpiote.h" //applicati...
27.88
128
(translation_unit) "/*\n * ADL_main.c\n *\n * Created on: 2020. 8. 13.\n * Author: YJPark\n */\n\n#include <ubinos.h>\n\n#include <stdio.h>\n#include <stdint.h>\n#include <string.h>\n#include <ubinos.h>\n\n#include "malloc.h"\n\n// nrf library\n#include "app_timer.h"\n#include "app_uart.h"\n#include "nrf_sdm.h"\n...
840
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 27.88, "nodes": 489, "errors": 0, "source_hash": "57aa57e383ba1e1fea47ea1780aeed9fa7c6c9dc971d2d9d3be562f4767d23b4", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,587
c
/* * File opening modal */ typedef struct File_Open_State_s { const char *title; const char *regex; bool path_cached; void (*callback) (const char *path); } File_Open_State; /* Change the regex used to filter files to open. */ void snepulator_set_open_regex (const char *regex); /* Rendering functio...
28.46
13
(translation_unit) "/*\n * File opening modal\n */\n\ntypedef struct File_Open_State_s {\n const char *title;\n const char *regex;\n bool path_cached;\n void (*callback) (const char *path);\n} File_Open_State;\n\n/* Change the regex used to filter files to open. */\nvoid snepulator_set_open_regex (const cha...
79
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.46, "nodes": 49, "errors": 0, "source_hash": "94b82e934f48ebcde11e3003297af2515eac2e3132355a40678634ae2dd495f6", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
11,588
c
// // Macro.h // SDK // // Created by <NAME> on 13-2-21. // Copyright (c) 2013年 Mobile Co. Ltd. All rights reserved. // // 宏定义,用于Log输出,以及其它 #define XOR_KEY 0xBB //extern void OPSmixString(unsigned char *str, unsigned char key); #ifndef SDK_Macro_h #define SDK_Macro_h //*** begin Debug Utils // 无论什么情况, 错误都打印出来 ...
35.98
62
(translation_unit) "//\n// Macro.h\n// SDK\n//\n// Created by <NAME> on 13-2-21.\n// Copyright (c) 2013年 Mobile Co. Ltd. All rights reserved.\n//\n// 宏定义,用于Log输出,以及其它\n#define XOR_KEY 0xBB\n//extern void OPSmixString(unsigned char *str, unsigned char key);\n\n#ifndef SDK_Macro_h\n#define SDK_Macro_h\n\n//*** begi...
245
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 35.98, "nodes": 170, "errors": 0, "source_hash": "6a2734d8ef93b8bc43dbf937209881123e9ac4afa3611b2581c1b0e44d9ed779", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "n void OP...
11,589
c
#pragma once #include "basic_types.h" #include "string_slice.h" class NcString : public NcObject, public StringSlice { public: /** * Create a string by C string. |str| must ends with \0. */ static sp<NcString> allocWithCString(const char* str) { return allocWithBytes(str, strlen(str)); } /** * Create...
39.14
96
(translation_unit) "#pragma once\n\n#include "basic_types.h"\n#include "string_slice.h"\n\nclass NcString : public NcObject, public StringSlice {\npublic:\n\n /**\n * Create a string by C string. |str| must ends with \0.\n */\n static sp<NcString> allocWithCString(const char* str) { return allocWithBytes(str, str...
956
40
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 39.14, "nodes": 576, "errors": 0, "source_hash": "728401f866268dde8747d7a2600c642e983cd9a6129277c424c9e3531ae305d4", "categorized_nodes": 386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,590
c
// // QPLConfiguration.h // QPLive // // Created by LYZ on 16/7/23. // Copyright © 2016年 lyle. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreGraphics/CoreGraphics.h> #import <AVFoundation/AVFoundation.h> typedef NS_ENUM(NSInteger, QP_LCONNECT_STATUS) { QPLConnectStatusNone, QPLCon...
19.97
181
(translation_unit) "//\n// QPLConfiguration.h\n// QPLive\n//\n// Created by LYZ on 16/7/23.\n// Copyright © 2016年 lyle. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreGraphics/CoreGraphics.h>\n#import <AVFoundation/AVFoundation.h>\n\ntypedef NS_ENUM(NSInteger, QP_LCONNECT_STATUS) {\n ...
677
88
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 19.97, "nodes": 419, "errors": 0, "source_hash": "1df05c9f2896b2d5d03c303ae2c1922e814186fe7f658462d54a6aa558b4254f", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
11,591
c
/* A Qt-based Accelerometer application * Written by <NAME> for the book "Exploring BeagleBone: Tools and * Techniques for Building with Embedded Linux" by <NAME> & Sons, 2014 * ISBN 9781118935125. Please see the file README.md in the repository root * directory for copyright and GNU GPLv3 license information. ...
38.49
43
(translation_unit) "/* A Qt-based Accelerometer application\n* Written by <NAME> for the book "Exploring BeagleBone: Tools and \n* Techniques for Building with Embedded Linux" by <NAME> & Sons, 2014\n* ISBN 9781118935125. Please see the file README.md in the repository root \n* directory for copyright and GNU GPLv3 lic...
106
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 38.49, "nodes": 67, "errors": 0, "source_hash": "1e91d20e584361ce2661877e908528afe6bc54a32d5e04a1ca37255538efa8d9", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ACCELERO...
11,592
c
#include "solucion.h" int calculadora(char especie_retadora, int cantidad_a_vencer, char especie_a_vencer){ //Acá va el código }
32.25
4
(translation_unit) "#include "solucion.h"\nint calculadora(char especie_retadora, int cantidad_a_vencer, char especie_a_vencer){\n //Acá va el código\n}" (preproc_include) "#include "solucion.h"\n" (#include) "#include" (string_literal) ""solucion.h"" (") """ (string_content) "solucion.h" ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.25, "nodes": 17, "errors": 0, "source_hash": "f0f2ae2a76e19bbbb57303d1f056449f04798300d68eb95874827a3b9398633a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,593
c
// // JZCheckVersionAndOtherInfo_c.h // Text01 // // Created by 杨珺舟 on 15-1-30. // Copyright (c) 2015年 Allen. All rights reserved. // #import "JZGetValueInDictionary.h" @interface JZCheckVersionAndOtherInfo_c : JZGetValueInDictionary { @private NSString* p; NSString* UserID; NSString* UploadTime; ...
24.28
39
(translation_unit) "//\n// JZCheckVersionAndOtherInfo_c.h\n// Text01\n//\n// Created by 杨珺舟 on 15-1-30.\n// Copyright (c) 2015年 Allen. All rights reserved.\n//\n\n#import "JZGetValueInDictionary.h"\n\n@interface JZCheckVersionAndOtherInfo_c : JZGetValueInDictionary\n{\n@private\n NSString* p;\n NSString* User...
263
32
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.28, "nodes": 176, "errors": 0, "source_hash": "4fb89cedea872065e3f67eb7b0d49662dc0a4d4faf8fac9ba0ba425d828b4666", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\"JZGetV...
11,594
c
#if !defined(BOARD_DEFS_H) #define BOARD_DEFS_H #include <inttypes.h> #define _USB #ifndef _TIMER_1_IRQ #define _TIMER_1_IRQ _TIMER_1_VECTOR #endif #undef digitalPinToAnalog #define digitalPinToAnalog(P) (((P) < NUM_ANALOG_PINS) ? (P) : (digital_pin_to_analog_PGM[P])) #undef analogInPinToChannel #de...
32.19
268
(translation_unit) "#if !defined(BOARD_DEFS_H) \n#define BOARD_DEFS_H \n \n#include <inttypes.h> \n#define _USB \n \n#ifndef _TIMER_1_IRQ \n#define _TIMER_1_IRQ _TIMER_1_VECTOR \n#endif \n \n \n#undef digitalPinToAnalog \n#define digitalPinToAnalog(P) (((P) < NUM_ANALOG_PINS) ? (P) : (digital_pin_to_analog_PGM[P])) \n ...
1,150
0
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 32.19, "nodes": 972, "errors": 0, "source_hash": "f1512f975c413ac869e333d3b17e02e25f7ef804311971bfde401039eba2cf46", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
11,595
c
#ifndef TINYNDARRAY_TIMER_H #define TINYNDARRAY_TIMER_H #include <chrono> class Timer { public: Timer() {} void start() { m_start = std::chrono::system_clock::now(); } void end() { m_end = std::chrono::system_clock::now(); } float getElapsedMsec() const { using names...
24.95
22
(translation_unit) "#ifndef TINYNDARRAY_TIMER_H\n#define TINYNDARRAY_TIMER_H\n\n#include <chrono>\n\nclass Timer {\npublic:\n Timer() {}\n\n void start() {\n m_start = std::chrono::system_clock::now();\n }\n\n void end() {\n m_end = std::chrono::system_clock::now();\n }\n\n float getElap...
170
15
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.95, "nodes": 88, "errors": 0, "source_hash": "7904533bb7c964a90c8beafc14f9165e2991aa3f0e11ca0a5cf8d2acfdb0413e", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,596
c
#ifndef SMVIEW_H #define SMVIEW_H #include <QWidget> #include <QtWidgets> class SMView : public QGraphicsView { Q_OBJECT public: const static int POSITION_FULL = 0; const static int POSITION_TOP_LEFT = 1; const static int POSITION_TOP_RIGHT = 2; const static int POSITION_BOTTOM_L...
25.21
24
(translation_unit) "#ifndef SMVIEW_H\n#define SMVIEW_H\n\n#include <QWidget>\n#include <QtWidgets>\n\n\n\nclass SMView : public QGraphicsView\n{\n Q_OBJECT\n\npublic:\n const static int POSITION_FULL = 0;\n const static int POSITION_TOP_LEFT = 1;\n const static int POSITION_TOP_RIGHT = 2;\n ...
163
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 25.21, "nodes": 104, "errors": 0, "source_hash": "470b09e067193d18d38cfcc6982164371fe6e144dc4326021b64da28f4d8c875", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,597
c
/* * Description: * History: <EMAIL>, 2017/04/28, create */ # include "aw_config.h" # include "aw_deals.h" # include "aw_server.h" static nw_timer timer; static dict_t *dict_market; static rpc_clt *marketprice; static nw_state *state_context; struct state_data { char market[MARKET_NAME_MAX_LEN]; }; stru...
32.29
284
(translation_unit) "/*\n * Description: \n * History: <EMAIL>, 2017/04/28, create\n */\n\n# include "aw_config.h"\n# include "aw_deals.h"\n# include "aw_server.h"\n\nstatic nw_timer timer;\nstatic dict_t *dict_market;\nstatic rpc_clt *marketprice;\nstatic nw_state *state_context;\n\nstruct state_data {\n char ma...
2,899
0
{"language": "c", "success": true, "metadata": {"lines": 284, "avg_line_length": 32.29, "nodes": 1766, "errors": 0, "source_hash": "64ad95c1a4685c11c49750e57717496791bf04e3652e73274a7fe8a7f9645ea1", "categorized_nodes": 1246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
11,598
c
#ifndef HTTP_SERVER_H #define HTTP_SERVER_H struct http_server_options { char* address; char* server_root; }; typedef struct http_server_options http_server_options; int start_http_server(const http_server_options* const options); #endif
24.2
10
(translation_unit) "#ifndef HTTP_SERVER_H\n#define HTTP_SERVER_H\n\nstruct http_server_options {\n char* address;\n char* server_root;\n};\n\ntypedef struct http_server_options http_server_options;\n\nint start_http_server(const http_server_options* const options);\n \n#endif\n" (preproc_ifdef) "#ifndef HTT...
51
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.2, "nodes": 36, "errors": 0, "source_hash": "7ab886e2cda338913cf7f4bfde4e5eb3871b0367b60791d335ec3eaae2e20ea3", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
11,599