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
// // ZZQPayAddressTableViewCell.h // FItBodyUser // // Created by ben on 17/5/3. // Copyright © 2017年 张增强. All rights reserved. // #import <UIKit/UIKit.h> @class ZZQAddress; @interface ZZQPayAddressTableViewCell : UITableViewCell /**付款方式字符串*/ @property(nonatomic, copy)void(^payWayBlock)(NSString * payWay); - (...
27.31
16
(translation_unit) "//\n// ZZQPayAddressTableViewCell.h\n// FItBodyUser\n//\n// Created by ben on 17/5/3.\n// Copyright © 2017年 张增强. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class ZZQAddress;\n\n@interface ZZQPayAddressTableViewCell : UITableViewCell\n\n/**付款方式字符串*/\n@property(nonatomic, copy)void(^pay...
102
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.31, "nodes": 66, "errors": 0, "source_hash": "85f85ffbcd41cb85e8c0f8b0ae6139bc788eff35d19cf725917c595bd0d9577c", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
14,400
c
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>. */ #import "NSObject.h" @class NSString; @protocol IDERunDestinationFallbackSelectorDeviceInfo <NSObject> @property(readonly, nonatomic) NSString *ide_fallbackSelectorDeviceGroupingFamily...
35.27
11
(translation_unit) "/*\n * Generated by class-dump 3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>.\n */\n\n#import "NSObject.h"\n\n@class NSString;\n\n@protocol IDERunDestinationFallbackSelectorDeviceInfo <NSObject>\n@property(readonly, nonatomic) NSString *ide_fallb...
54
12
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.27, "nodes": 41, "errors": 0, "source_hash": "8d4732d30f93b57294aa61be79f83a10953f054925186361ca71d4bc7f7801ff", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
14,401
c
/****************************************************************************** * @author <NAME> * @copyright Copyright (c) 2020 Makers For Life * @file mass_flow_meter.h * @brief Mass flow meter management *****************************************************************************/ #pragma once #include <Ardu...
31.39
77
(translation_unit) "/******************************************************************************\n * @author <NAME>\n * @copyright Copyright (c) 2020 Makers For Life\n * @file mass_flow_meter.h\n * @brief Mass flow meter management\n *****************************************************************************/\n\n#...
165
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 31.39, "nodes": 121, "errors": 0, "source_hash": "ff9e9b205baeb9d1a6721188f20d6553f84657ccc34bb8b29789f1063495baff", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,402
c
typedef enum ElementType { BE_STATUS, BE_ALL_TAGS, BE_CURR_TAGS, BE_ALL_LAYOUT, BE_CURR_LAYOUT, BE_TITLE, BE_SEP, BE_END, }ElementType; typedef enum VPos { VPOS_TOP, VPOS_MIDDLE, VPOS_BOTTOM, }VPos; typedef enum HPos { HPOS_RIGHT, HPOS_MIDDLE, HPOS_LEFT, }HPos;...
20.12
82
(translation_unit) "typedef enum ElementType\n{\n BE_STATUS,\n BE_ALL_TAGS,\n BE_CURR_TAGS,\n BE_ALL_LAYOUT,\n BE_CURR_LAYOUT,\n BE_TITLE,\n BE_SEP,\n BE_END,\n}ElementType;\n\ntypedef enum VPos\n{\n VPOS_TOP,\n VPOS_MIDDLE,\n VPOS_BOTTOM, \n}VPos;\n\ntypedef enum HPos\n{\n HPOS_RIGH...
434
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 20.12, "nodes": 286, "errors": 0, "source_hash": "02e9c5cd4ffa2e58e5773b4201713defe56e4586cd587dd7b3c410e30f72ff53", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
14,403
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <CalendarAgentLink/CalStoreRemoteManagedAccount.h> @interface CalStoreRemoteManagedCalDAVAccount : CalStoreRemoteManagedAccount { BOOL _useKerberos; } + (BOOL)supportsSecure...
29.59
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 <CalendarAgentLink/CalStoreRemoteManagedAccount.h>\n\n@interface CalStoreRemoteManagedCalDAVAccount : CalStoreRemoteManagedAccount\n{\n BOOL _useKerbe...
111
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.59, "nodes": 64, "errors": 0, "source_hash": "f5d5f944c7c5449278d577d5d97e0fc925ddd8ccb1a85aac238e7c149f1b4789", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,404
c
// // Gameplay.h // PeevedPenguins // // Created by <NAME> on 3/12/14. // Copyright (c) 2014 Apportable. All rights reserved. // #import "CCNode.h" @interface Gameplay : CCNode <CCPhysicsCollisionDelegate> @end
20.5
10
(translation_unit) "//\n// Gameplay.h\n// PeevedPenguins\n//\n// Created by <NAME> on 3/12/14.\n// Copyright (c) 2014 Apportable. All rights reserved.\n//\n\n#import "CCNode.h"\n\n@interface Gameplay : CCNode <CCPhysicsCollisionDelegate>\n\n@end\n" (comment) "//" (comment) "// Gameplay.h" (comment) "// Peev...
25
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.5, "nodes": 14, "errors": 0, "source_hash": "fa66e25f24d983ef5bb352bdc73c6448833620034400b13ee8df47cf286212b0", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"C...
14,405
c
#ifndef ZHE_BITSET_H #define ZHE_BITSET_H #include <stdint.h> #include <stdbool.h> #define DECL_BITSET(name_, size_) uint8_t name_[((size_)+7)/8] void zhe_bitset_set(uint8_t *s, unsigned idx); void zhe_bitset_clear(uint8_t *s, unsigned idx); void zhe_bitset_andnot(uint8_t *d, const uint8_t *s, unsigned size); int zh...
39.47
19
(translation_unit) "#ifndef ZHE_BITSET_H\n#define ZHE_BITSET_H\n\n#include <stdint.h>\n#include <stdbool.h>\n\n#define DECL_BITSET(name_, size_) uint8_t name_[((size_)+7)/8]\n\nvoid zhe_bitset_set(uint8_t *s, unsigned idx);\nvoid zhe_bitset_clear(uint8_t *s, unsigned idx);\nvoid zhe_bitset_andnot(uint8_t *d, const uint...
229
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.47, "nodes": 170, "errors": 0, "source_hash": "4b948b02f3f3d9206935815896a4711bafba93978f90fbcd57929e7e4fd25ad8", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,406
c
/** * FreeRDP: A Remote Desktop Protocol Implementation * FreeRDP Proxy Server * * Copyright 2021 <NAME> <<EMAIL>> * * Copyright 2021 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
26.54
84
(translation_unit) "/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * FreeRDP Proxy Server\n *\n * Copyright 2021 <NAME> <<EMAIL>>\n * * Copyright 2021 Thincast Technologies GmbH\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with t...
403
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 26.54, "nodes": 233, "errors": 0, "source_hash": "553ad2ad81aef648e05e01469b0379bcdb575c59c9e01785942d91b6bd31bdc0", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,407
c
#ifndef __AIPU_H__ #define __AIPU_H__ #include <stdint.h> #include <memory> #define TSM_CMD_SCHED_ADDR_HI 0x8 #define TSM_CMD_SCHED_ADDR_LO 0xC #define TSM_CMD_SCHED_CTRL 0x0 #define CREATE_CMD_POOL 0x1 #define DESTROY_CMD_POOL 0x2 #define DISPATCH_CMD_POOL 0x4 #define CMD_POOL0_ST...
28.31
35
(translation_unit) "#ifndef __AIPU_H__\n#define __AIPU_H__\n\n#include <stdint.h>\n#include <memory>\n\n#define TSM_CMD_SCHED_ADDR_HI 0x8\n#define TSM_CMD_SCHED_ADDR_LO 0xC\n#define TSM_CMD_SCHED_CTRL 0x0\n#define CREATE_CMD_POOL 0x1\n#define DESTROY_CMD_POOL 0x2\n#define DISPATCH_CMD_POOL ...
229
9
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.31, "nodes": 150, "errors": 0, "source_hash": "aec1c1058ef0628b6da7e81c18add361d708293956540c3e5758d222fea1201a", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,408
c
/* ==================================== *\ * Draw circle with high I/O throughput * \* ==================================== */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <limits.h> typedef long long int num_t; #define func(x, size) (sqrt((size)*(size) - (x)*(x))) int main...
29.79
47
(translation_unit) "/* ==================================== *\\n * Draw circle with high I/O throughput *\n\* ==================================== */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n#include <limits.h>\n\ntypedef long long int num_t;\n\n#define func(x, size) (sqrt((si...
439
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.79, "nodes": 305, "errors": 0, "source_hash": "881a556fc4ec87ad2a98bb7908f699c8be941a6c2a69f94ac5f19b1f6782e01b", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,409
c
/* w_jnf.c -- float version of w_jn.c. * Conversion to float by <NAME>, Cygnus Support, <EMAIL>. */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy,...
27.24
59
(translation_unit) "/* w_jnf.c -- float version of w_jn.c.\n * Conversion to float by <NAME>, Cygnus Support, <EMAIL>.\n */\n\n/*\n * ====================================================\n * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.\n *\n * Developed at SunPro, a Sun Microsystems, Inc. business....
393
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.24, "nodes": 233, "errors": 0, "source_hash": "e59678b310b7467bc1ce6ce96b527a8bef385716358c7b70249950a4c75f6482", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,410
c
#pragma once #include "CoreMinimal.h" #include "ECustomUsableType.h" #include "CustomUsable.generated.h" class UUsableComponentBase; USTRUCT(BlueprintType) struct FCustomUsable { GENERATED_BODY() public: UPROPERTY(BlueprintReadWrite, EditAnywhere, Export, meta=(AllowPrivateAccess=true)) UUsableComponentBa...
27.88
17
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "ECustomUsableType.h"\n#include "CustomUsable.generated.h"\n\nclass UUsableComponentBase;\n\nUSTRUCT(BlueprintType)\nstruct FCustomUsable {\n GENERATED_BODY()\npublic:\n UPROPERTY(BlueprintReadWrite, EditAnywhere, Export, meta=(AllowPrivateAcces...
113
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.88, "nodes": 66, "errors": 0, "source_hash": "c8bd99244a64788129afe014021b930787e2124077ca82e0b92431d61f5dd00a", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,411
c
#include "search_tree.h" #include <stdio.h> #include <stdlib.h> #include <string.h> int initialize(struct tree *t) { int ret; t->root = NULL; ret = pthread_mutex_init(&(t->mutex), NULL); return ret; } /* * return 0 on succeed * return -1 on onflict * retrun a positive value indicating the errno */ int a...
20.24
116
(translation_unit) "#include "search_tree.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint initialize(struct tree *t) {\n int ret;\n t->root = NULL;\n ret = pthread_mutex_init(&(t->mutex), NULL);\n return ret;\n}\n\n/*\n * return 0 on succeed\n * return -1 on onflict\n * retrun a positive ...
1,128
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 20.24, "nodes": 708, "errors": 0, "source_hash": "b133da20bb2038467ec3906504f4e16826414638244a721f770c0efb0fa6d7da", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,412
c
#include "quakedef.h" #ifdef SWQUAKE #include "sw.h" void SW_NukeAlpha(swimage_t *img) { int x, y; unsigned int *d = img->data; for (y = 0; y < img->pheight; y++) { for (x = 0; x < img->pwidth; x++) { d[x] |= 0xff000000; } d += img->pitch; } } void SW_DestroyTexture(texid_t tex) { ...
18.96
114
(translation_unit) "#include "quakedef.h" \n#ifdef SWQUAKE \n#include "sw.h" \n \nvoid SW_NukeAlpha(swimage_t *img) \n{ \n int x, y; \n unsigned int *d = img->data; \n for (y = 0; y < img->pheight; y++) \n { \n for (x = 0; x < img->pwidth; x++) \n { \n d[x] |= 0xff000000; \n } \n d += img->pitch; \n } \n} \n \nvo...
835
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 18.96, "nodes": 553, "errors": 0, "source_hash": "75b42dd218c5a6aa0179376ed34cce80f32b8b133bbd13f0aae06151e74ab31c", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,413
c
/* * message_service.h - Communication constants * * Created on: Mar 3, 2018 * Created by: <NAME> */ #pragma once #include <chrono> #include <string> namespace Devcash { namespace io { namespace constants { // the default I/O read timeout in milliseconds static constexpr std::chrono::milliseconds kReadTim...
20.82
17
(translation_unit) "/*\n * message_service.h - Communication constants\n *\n * Created on: Mar 3, 2018\n * Created by: <NAME>\n */\n#pragma once\n\n#include <chrono>\n#include <string>\n\nnamespace Devcash {\nnamespace io {\n\nnamespace constants {\n // the default I/O read timeout in milliseconds\n static constexp...
53
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.82, "nodes": 28, "errors": 0, "source_hash": "49652d06f55664eda4a95190351e54e37f01a391d78e0bcfca721fcdf3bb9b1d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,414
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 "WCPayBaseViewController.h" @class MMScrollView; @protocol WCPayGPIntroViewControllerDelegate; @interface WCPayGPIntroViewControlle...
34.46
24
(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 "WCPayBaseViewController.h"\n\n@class MMScrollView;\n@protocol WCPayGPIntroViewControllerDelegate;\n\n@inte...
179
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 34.46, "nodes": 111, "errors": 0, "source_hash": "beeb6063fd73b87abcc272bf0cc649adcd5c4a06c76e0f63105466d4bfdf8182", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,415
c
#pragma once #include <projectexplorer/ioutputparser.h> #include <QDir> namespace MesonProjectManager { class FixDirectoryParser : public ProjectExplorer::IOutputParser { Q_OBJECT public: explicit FixDirectoryParser(); private: void setWorkingDirectory(const QString &workingDirectory); void taskAd...
29.2
15
(translation_unit) "#pragma once\n\n#include <projectexplorer/ioutputparser.h>\n\n#include <QDir>\n\nnamespace MesonProjectManager {\n\nclass FixDirectoryParser : public ProjectExplorer::IOutputParser\n{\n Q_OBJECT\n\npublic:\n explicit FixDirectoryParser();\n\nprivate:\n void setWorkingDirectory(const QString...
92
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.2, "nodes": 52, "errors": 0, "source_hash": "7a0c447a9d5176ad0c29635a03ad57f97dba757b0bc9286f058f64bc445a98a1", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,416
c
// // Hello.h // MyCustomLibrary01 // // Created by lizelu on 2017/11/23. // #import <Foundation/Foundation.h> @interface Hello : NSObject - (void)display; @end
15.4
10
(translation_unit) "//\n// Hello.h\n// MyCustomLibrary01\n//\n// Created by lizelu on 2017/11/23.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Hello : NSObject\n\n- (void)display;\n\n@end\n" (comment) "//" (comment) "// Hello.h" (comment) "// MyCustomLibrary01" (comment) "//" (comment) "// Cre...
34
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.4, "nodes": 18, "errors": 0, "source_hash": "ed928490e99b5f3608ee3df3837d085201366b33c9f378e3e5bac83d84963a4f", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
14,417
c
// 1 - Receber um nome e imprimir as 4 primeiras letras do nome. #include <stdio.h> #include <string.h> int main(void) { char nome[20]; printf("Digite o seu nome: "); scanf("%s", nome); getchar(); for (int i = 0; i < 4; i++) { printf("%c", nome[i]); } return 0; }
22.08
13
(translation_unit) "// 1 - Receber um nome e imprimir as 4 primeiras letras do nome.\n\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n char nome[20];\n\n printf("Digite o seu nome: ");\n scanf("%s", nome);\n getchar();\n\n for (int i = 0; i < 4; i++) {\n printf("%c", nome[i]);\n ...
102
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.08, "nodes": 53, "errors": 0, "source_hash": "071cb29a701e0cb9c2daae3a449084d60f9427bdefa9479537c0151f401f758f", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,418
c
#pragma once #include "DeviceResources.h" #include "StepTimer.h" #include <tuple> #include "StateManager.h" namespace DX { class GameComponent; class MouseComponent; class KeyboardComponent; class GamePadComponent; class FpsComponent; class OrthographicCamera; } namespace DirectXGame { class SpriteDemoManager...
35.89
71
(translation_unit) "#pragma once\n\n#include "DeviceResources.h"\n#include "StepTimer.h"\n#include <tuple>\n#include "StateManager.h"\n\nnamespace DX\n{\n class GameComponent;\n class MouseComponent;\n class KeyboardComponent;\n class GamePadComponent;\n class FpsComponent;\n class OrthographicCamera;\n}\n\nnamespace D...
653
41
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 35.89, "nodes": 416, "errors": 0, "source_hash": "7bff2ce866f96ac746e4dfe99f33debdfebfced86b29104eefd2ca2c01e3a39e", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,419
c
// // UITextField+LLReaction.h // LLCommonStatic // // Created by WangZhaomeng on 2019/6/25. // Copyright © 2019 WangZhaomeng. All rights reserved. // #import <UIKit/UIKit.h> #import "LLReactionManager.h" @interface UITextField (LLReaction) ///开始、结束、编辑 - (void)ll_executeInput:(textFieldInputAction)action; ///是否...
27.35
17
(translation_unit) "//\n// UITextField+LLReaction.h\n// LLCommonStatic\n//\n// Created by WangZhaomeng on 2019/6/25.\n// Copyright © 2019 WangZhaomeng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "LLReactionManager.h"\n\n@interface UITextField (LLReaction)\n\n///开始、结束、编辑\n- (void)ll_executeInput:(t...
79
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.35, "nodes": 41, "errors": 0, "source_hash": "d91c4262c74911947b3daaf185f1be543fdc802eda72ddd4fe3605234ba77de6", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
14,420
c
// // Copyright (C) 2020 <NAME>, Glysade LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #ifndef RGROUPDECOMPGA_H_ #define RGROUPDECO...
37.08
117
(ERROR) "//\n// Copyright (C) 2020 <NAME>, Glysade LLC\n//\n// @@ All Rights Reserved @@\n// This file is part of the RDKit.\n// The contents are covered by the terms of the BSD license\n// which is included in the file license.txt, found at the root\n// of the RDKit source tree.\n//\n\n#ifndef RGROUPDECOMPGA_H_...
946
51
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 37.08, "nodes": 527, "errors": 0, "source_hash": "fab176921d979dfb88e467535f2c6e0bde315bc37bcc6d9180d9769b2dd1ecc2", "categorized_nodes": 362}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Copyright (C) 20...
14,421
c
#ifndef OFXPENNERANIMATIONPOINT_H #define OFXPENNERANIMATIONPOINT_H #include "ofxPennerAnimation.h" #include <array> class ofxPennerAnimationPoint { public: ofxPennerAnimationPoint() { m_Animations[0] = new ofxPennerAnimation(); m_Animations[1] = new ofxPennerAnimation(); m_Animations[2...
26.56
132
(translation_unit) "#ifndef OFXPENNERANIMATIONPOINT_H\n#define OFXPENNERANIMATIONPOINT_H\n#include "ofxPennerAnimation.h"\n#include <array>\n\nclass ofxPennerAnimationPoint\n{\npublic:\n ofxPennerAnimationPoint()\n {\n m_Animations[0] = new ofxPennerAnimation();\n m_Animations[1] = new ofxPennerAnim...
1,013
37
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 26.56, "nodes": 552, "errors": 0, "source_hash": "7de281994bb461a15c19c7f8c2a92fc8349ba2a211d06502a4e558f86e78cf9e", "categorized_nodes": 410}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,422
c
#ifndef door_h #define door_h #include "Arduino.h" #include <Servo.h> class door { public: door(int doorPin); //Setter void switchDoor(); void lockTheDoor(); void unlockTheDoor(); //Getter String doorMessage(); private: int _doorPin; bool _doorLocked; String beginning = "The door is "; Servo _...
15.81
21
(translation_unit) "#ifndef door_h\n#define door_h\n\n#include "Arduino.h"\n#include <Servo.h>\nclass door {\npublic:\n door(int doorPin);\n\n //Setter\n void switchDoor();\n void lockTheDoor();\n void unlockTheDoor();\n\n //Getter\n String doorMessage();\n\nprivate:\n int _doorPin;\n bool _doorLocked;\n Stri...
102
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.81, "nodes": 63, "errors": 0, "source_hash": "ef15c7b7d26c4edfc80f72da5ff7cfba93672b9c18ed9581e3b124c33ad7e5c1", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,423
c
#include <linux/module.h> #include <linux/device.h> #include <linux/kernel.h> /* Needed for KERN_INFO */ MODULE_AUTHOR("<NAME> <<EMAIL>>"); MODULE_LICENSE("Dual BSD/GPL"); MODULE_VERSION("1.0"); MODULE_DESCRIPTION("hello world"); static int __init my_module_init(void) { printk(KERN_INFO "Hello, World!\n"); retur...
22.3
20
(translation_unit) "#include <linux/module.h>\n#include <linux/device.h>\n#include <linux/kernel.h> /* Needed for KERN_INFO */\n\n\nMODULE_AUTHOR("<NAME> <<EMAIL>>");\nMODULE_LICENSE("Dual BSD/GPL");\nMODULE_VERSION("1.0");\nMODULE_DESCRIPTION("hello world");\n\n\nstatic int __init my_module_init(void)\n{\n printk(KERN...
135
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.3, "nodes": 67, "errors": 0, "source_hash": "7bd89195416b1afc0e685f8410c580e4b04183f12987515a3edb23ad07335b35", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,424
c
#include "param.h" #include "types.h" #include "defs.h" #include "x86.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "spinlock.h" const uint SHM_TABLE_SIZE = 64;//cs153 Initialize table size struct { struct spinlock lock; struct shm_page { uint id; char *frame; int refcnt; } s...
29.43
90
(translation_unit) "#include "param.h"\n#include "types.h"\n#include "defs.h"\n#include "x86.h"\n#include "memlayout.h"\n#include "mmu.h"\n#include "proc.h"\n#include "spinlock.h"\n\nconst uint SHM_TABLE_SIZE = 64;//cs153 Initialize table size\n\nstruct {\n struct spinlock lock;\n struct shm_page {\n uint id;\n ...
1,007
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 29.43, "nodes": 573, "errors": 0, "source_hash": "c405a2a792afaf99b0126e0fb0fe81cc147574062ccaaa2ddbd8fc0e8963c8b6", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,425
c
/* ** my_realloc.c for malloc in ** /home/andriat/svn-repo/TIC-DEVC4/malloc/andria_t ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Fri Feb 23 07:34:31 2018 <NAME> ** Last update Sat Feb 24 11:41:30 2018 <NAME> */ #include "my_realloc.h" static void m_cpy(char *src, char *dest, size_t size) { unsigned ...
19.05
43
(translation_unit) "/*\n** my_realloc.c for malloc in\n** /home/andriat/svn-repo/TIC-DEVC4/malloc/andria_t\n**\n** Made by <NAME>\n** Login <<EMAIL>>\n**\n** Started on Fri Feb 23 07:34:31 2018 <NAME>\n** Last update Sat Feb 24 11:41:30 2018 <NAME>\n*/\n\n#include "my_realloc.h"\n\nstatic void m_cpy(char *src, char ...
248
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 19.05, "nodes": 154, "errors": 0, "source_hash": "ab1fb39efc135cd23eee967f37d7eafebcece0b1d686700377bec55b5b0a9027", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,426
c
/* The MIT License Copyright (c) 2009 UCSC Autonomous Systems Lab Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
36.4
67
(translation_unit) "/*\nThe MIT License\n\nCopyright (c) 2009 UCSC Autonomous Systems Lab\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the ...
382
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 36.4, "nodes": 284, "errors": 0, "source_hash": "910b5a1efca893db3382d756c3efdfce3d59856e034718d9d9744d369e9d9357", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,427
c
#import <UIKit/UIKit.h> #import "ImageEffects.h" FOUNDATION_EXPORT double ImageEffectsVersionNumber; FOUNDATION_EXPORT const unsigned char ImageEffectsVersionString[];
41
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n#import "ImageEffects.h"\n\nFOUNDATION_EXPORT double ImageEffectsVersionNumber;\nFOUNDATION_EXPORT const unsigned char ImageEffectsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (pr...
26
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 41.0, "nodes": 18, "errors": 0, "source_hash": "7b1bc7a729ce1db934f0d1d60e310d0089554ed5ea8cfc1889e04401457a82ca", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
14,428
c
#include <stdio.h> int main(int argc, char const *argv[]) { int a, i, aa[4], t; printf("Please enter a number with 4 numbers: "); scanf("%d", &a); aa[0] = a % 10; aa[1] = a % 100 / 10; aa[2] = a % 1000 / 100; aa[3] = a / 1000; for (i = 0; i <= 3; i++) { aa[i] += 5; ...
19.64
28
(translation_unit) "#include <stdio.h>\n\nint main(int argc, char const *argv[])\n{\n int a, i, aa[4], t;\n\n printf("Please enter a number with 4 numbers: ");\n scanf("%d", &a);\n aa[0] = a % 10;\n aa[1] = a % 100 / 10;\n aa[2] = a % 1000 / 100;\n aa[3] = a / 1000;\n \n for (i = 0; i <= 3; i...
289
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.64, "nodes": 172, "errors": 0, "source_hash": "290264e93a90c311c1d817f2fe5a11fb30908924b3347689a3e370a12688e8a5", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,429
c
#pragma once #include <gtest/gtest.h> #include <string> #include <string_view> #include <tuple> #include <utility> #include <vector> #include "cinn/backends/llvm/execution_engine.h" #include "cinn/backends/llvm/simple_jit.h" #include "cinn/cinn.h" #include "cinn/optim/optimize.h" namespace cinn { namespace tests {...
40.76
180
(ERROR) "#pragma once\n\n#include <gtest/gtest.h>\n\n#include <string>\n#include <string_view>\n#include <tuple>\n#include <utility>\n#include <vector>\n\n#include "cinn/backends/llvm/execution_engine.h"\n#include "cinn/backends/llvm/simple_jit.h"\n#include "cinn/cinn.h"\n#include "cinn/optim/optimize.h"\n\nnamespace c...
3,616
216
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 40.76, "nodes": 1982, "errors": 0, "source_hash": "fdeea2dd27ba507919e78d556da750eac0089836b7b82b7a842bd6baefa5620b", "categorized_nodes": 1464}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#inclu...
14,430
c
// // RRFFriendCircleModel.h // Puzzle // // Created by huipay on 2016/11/8. // Copyright © 2016年 HuiBei. All rights reserved. // #import <Foundation/Foundation.h> @class BonusPaperModel; @interface CommentModel:NSObject @property(nonatomic,strong)NSString *content; @property(nonatomic,strong)NSArray *contentImage...
36.07
202
(translation_unit) "//\n// RRFFriendCircleModel.h\n// Puzzle\n//\n// Created by huipay on 2016/11/8.\n// Copyright © 2016年 HuiBei. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class BonusPaperModel;\n@interface CommentModel:NSObject\n@property(nonatomic,strong)NSString *content;\n@property(nonato...
1,564
316
{"language": "c", "success": true, "metadata": {"lines": 202, "avg_line_length": 36.07, "nodes": 1120, "errors": 0, "source_hash": "de7a39e1bfea48ec92693dbc38764fc5cf518e194c5d92ed0130de7d85109fb3", "categorized_nodes": 620}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port ...
14,431
c
#pragma once #include "JsonHandler.h" #include "Library.h" #include <cassert> #include <cmath> namespace CesiumJsonReader { template <typename T> class CESIUMJSONREADER_API IntegerJsonHandler : public JsonHandler { public: IntegerJsonHandler() noexcept : JsonHandler() {} void reset(IJsonHandler* pParent, T* pIn...
29.6
55
(translation_unit) "#pragma once\n\n#include "JsonHandler.h"\n#include "Library.h"\n\n#include <cassert>\n#include <cmath>\n\nnamespace CesiumJsonReader {\ntemplate <typename T>\nclass CESIUMJSONREADER_API IntegerJsonHandler : public JsonHandler {\npublic:\n IntegerJsonHandler() noexcept : JsonHandler() {}\n\n void r...
580
14
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 29.6, "nodes": 362, "errors": 0, "source_hash": "751784ea072ef6cfe3d84ee438439599c94377b91e0eed0f8a59edb10c1e352f", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,432
c
#pragma once #include "console.h" #include "input.h" #include "Types/Menu.h" #include "Types/Range.h"
20.2
5
(translation_unit) "#pragma once \n#include "console.h" \n#include "input.h" \n#include "Types/Menu.h" \n#include "Types/Range.h"" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "console.h" \n" (#include) "#include" (string_literal) "...
28
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.2, "nodes": 15, "errors": 0, "source_hash": "c26b7d29a2166fc23c89b435701ca3c748271124d6edbc69e81ce147c73c6580", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
14,433
c
/*! @par Revision history: - 31.03.2008, c */ #ifndef _TERMSBIOT_H_ #define _TERMSBIOT_H_ #include "common.h" BEGIN_C_DECLS #include "fmfield.h" #include "refmaps.h" int32 dw_biot_grad( FMField *out, float64 coef, FMField *pressure_qp, FMField *mtxD, Mapping *svg, Mapping *vvg, int32 isDiff ); int32...
29.15
20
(translation_unit) "/*!\n @par Revision history:\n - 31.03.2008, c\n*/\n#ifndef _TERMSBIOT_H_\n#define _TERMSBIOT_H_\n\n#include "common.h"\nBEGIN_C_DECLS\n\n#include "fmfield.h"\n#include "refmaps.h"\n\nint32 dw_biot_grad( FMField *out, float64 coef, FMField *pressure_qp,\n FMField *mtxD, Mapping *svg, Mapping ...
163
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.15, "nodes": 123, "errors": 0, "source_hash": "b308a8bc5c4723bcf1e51c55664a233c9f4f2c9514a2ad1799d36aa96c2839f7", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,434
c
// Copyright 2015-2021 Mail.Ru Group. All Rights Reserved. #pragma once #if !WITH_CIVET #error "Civet is not supported" #endif #include "CivetServer.h" #include "CoreMinimal.h" namespace PsWebServerUtils { /** Read post data from the connection */ FString GetPostData(mg_connection* RequestConnection); } // names...
26.92
12
(translation_unit) "// Copyright 2015-2021 Mail.Ru Group. All Rights Reserved.\n\n#pragma once\n\n#if !WITH_CIVET\n#error "Civet is not supported"\n#endif\n\n#include "CivetServer.h"\n\n#include "CoreMinimal.h"\n\nnamespace PsWebServerUtils\n{\n\n/** Read post data from the connection */\nFString GetPostData(mg_connect...
48
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.92, "nodes": 32, "errors": 0, "source_hash": "f58ca3bfe9b844fb8164f56d1e98fd42692416bee40ec19c8ac57aceb451619a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,435
c
#pragma once #include <SDKDDKVer.h> #define WIN32_LEAN_AND_MEAN #include <windows.h>
20.25
4
(translation_unit) "#pragma once\n#include <SDKDDKVer.h>\n#define WIN32_LEAN_AND_MEAN\n#include <windows.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <SDKDDKVer.h>\n" (#include) "#include" (system_lib_string) "<SDKDDKVer.h>" (...
13
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.25, "nodes": 12, "errors": 0, "source_hash": "016bfd47e7359f10335704a07e69a644f372de9728b7b2b7c7f69ec6e1bfa84d", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
14,436
c
#ifndef _MULTILABEL_INFERENCE_DATA_VIEW_H_ #define _MULTILABEL_INFERENCE_DATA_VIEW_H_ #include "Generic/common/bsp_declare.h" #include "DataView.h" BSP_DECLARE(MultilabelInferenceDataView) class MultilabelInferenceDataView : public InferenceDataView { public: MultilabelInferenceDataView(unsigned int nInst...
28.89
19
(translation_unit) "#ifndef _MULTILABEL_INFERENCE_DATA_VIEW_H_ \n#define _MULTILABEL_INFERENCE_DATA_VIEW_H_ \n \n#include "Generic/common/bsp_declare.h" \n#include "DataView.h" \n \nBSP_DECLARE(MultilabelInferenceDataView) \n \nclass MultilabelInferenceDataView : public InferenceDataView { \npublic: \n MultilabelInfere...
131
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.89, "nodes": 83, "errors": 0, "source_hash": "05f632716bc9b69291156829c496210371967ffa0a029bbd4d8cdfbb4f5c3bcc", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,437
c
/* _________________________________________________________________________ * * UTILIB: A utility library for developing portable C++ codes. * Copyright (c) 2008 Sandia Corporation. * This software is distributed under the BSD License. * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, ...
23.31
42
(translation_unit) "/* _________________________________________________________________________\n *\n * UTILIB: A utility library for developing portable C++ codes.\n * Copyright (c) 2008 Sandia Corporation.\n * This software is distributed under the BSD License.\n * Under the terms of Contract DE-AC04-94AL85000 ...
213
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.31, "nodes": 137, "errors": 0, "source_hash": "7bf264724a8dce53dfb05ab11376868271ad5e0316d35a24992412ba8d7d84fa", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,438
c
/** * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #ifndef INVOKER_H #define INVOKER_H typedef std::function<void()> InvokerFunc; class Invoker: public QObject { Q_OBJECT public: ...
26.24
42
(translation_unit) "/**\n * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n\n#ifndef INVOKER_H\n#define INVOKER_H\n\ntypedef std::function<void()> InvokerFunc;\n\nclass Invoker: public QObj...
262
15
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.24, "nodes": 138, "errors": 0, "source_hash": "fe285bd3d4a702a9a2d3dc682f1c0d1c1be5f922c81786f62919297e512630b1", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,439
c
#pragma once #include <SDL.h> struct host_ui_surface { SDL_Window *sdl_window; };
13.33
6
(translation_unit) "#pragma once\n\n#include <SDL.h>\n\nstruct host_ui_surface\n{\n SDL_Window *sdl_window;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <SDL.h>\n" (#include) "#include" (system_lib_string) "<SDL.h>" (struc...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 13.33, "nodes": 14, "errors": 0, "source_hash": "42131f121485189e618f0ebd3cc97b0e848b4381c5a438218b39d1856addcac3", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,440
c
// // The MIT License(MIT) // // Copyright(c) 2014 Demonsaw LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, c...
39.23
52
(translation_unit) "//\n// The MIT License(MIT)\n//\n// Copyright(c) 2014 Demonsaw LLC\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitat...
321
10
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.23, "nodes": 166, "errors": 0, "source_hash": "79c92e3cb03667f0380b406f938453c30f55c0bb1445ecaed575efb83618b220", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,441
c
#pragma once #include <diesel.h> enum SpriteIndex { Test, Sprite1, }; const ds::vec4 SPRITES[] = { ds::vec4(75,0,26,26), ds::vec4(0,0,256,256), };
14.1
10
(translation_unit) "#pragma once\n#include <diesel.h>\n\nenum SpriteIndex {\n Test,\n Sprite1,\n\n};\n\nconst ds::vec4 SPRITES[] = {\n ds::vec4(75,0,26,26),\n ds::vec4(0,0,256,256),\n\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <diese...
74
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.1, "nodes": 41, "errors": 0, "source_hash": "faceb06f17766acba4975454dbd3e6e3ac216f8bf6cc7261532463c4a6306feb", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,442
c
double sinyy (double d) { double (*y)(double) = 0x0; return y(d); }
16.5
4
(translation_unit) "double sinyy (double d) {\n double (*y)(double) = 0x0;\n return y(d);\n}\n\n\n" (function_definition) "double sinyy (double d) {\n double (*y)(double) = 0x0;\n return y(d);\n}" (primitive_type) "double" (function_declarator) "sinyy (double d)" (identifier) "sinyy" (parameter_li...
41
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 16.5, "nodes": 26, "errors": 0, "source_hash": "e3ad8d32f03099941b2c31ab8407ecc41334a33fee214f421ca794868a388cf4", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "doub...
14,443
c
// // LLNativeAd.h // NativeAdmobDemo // // Created by ZHK on 2020/8/31. // Copyright © 2020 ZHK. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class GADUnifiedNativeAd; @protocol LLNativeAdDelegate <NSObject> - (void)didReceiveNativeAd:(nullable GADUnifiedNativeAd *)nativeA...
28.58
19
(translation_unit) "//\n// LLNativeAd.h\n// NativeAdmobDemo\n//\n// Created by ZHK on 2020/8/31.\n// Copyright © 2020 ZHK. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class GADUnifiedNativeAd;\n@protocol LLNativeAdDelegate <NSObject>\n\n- (void)didReceiveNativeAd:(nu...
122
17
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.58, "nodes": 81, "errors": 0, "source_hash": "4c62b5d4133fa986c681e3e6cd15f22b5a5ad145075561043dc38b44d4b057dd", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,444
c
/* Generated file -- do not edit. */ /** * @file include/stdio_internal.h */ #ifndef __STDIO_INTERNAL_H #define __STDIO_INTERNAL_H #define BUFSIZ 8192 #define _IOFBF 0 #define _IOLBF 1 #define _IONBF 2 #define L_ctermid 9 #define L_tmpnam 20 typedef struct __fsc_attribute__((named "stdlib_fpos_t")) __fpos_t { c...
20.81
16
(translation_unit) "/* Generated file -- do not edit. */\n/**\n * @file include/stdio_internal.h\n */\n#ifndef __STDIO_INTERNAL_H\n#define __STDIO_INTERNAL_H\n\n#define BUFSIZ 8192\n\n#define _IOFBF 0\n#define _IOLBF 1\n#define _IONBF 2\n\n#define L_ctermid 9\n#define L_tmpnam 20\n\ntypedef struct __fsc_attribute__((na...
63
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.81, "nodes": 45, "errors": 0, "source_hash": "abe89e331cb934158e3c20ec85c7805ff98b44a5f93bbce2b2c37d177a07c0ad", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,445
c
#include <stdlib.h> #include "i2cMaster.h" #include "i2cMasterSetup.h" #include "i2cMasterOutputStream.h" #include "../../../common/i2c/i2cCommon.h" #include "../../../common/i2c/i2cDebug.h" #include "../../../common/io/buffer.h" #include "../../../common/io/inputStream.h" #include "../../../common/io/out...
29.3
108
(translation_unit) "#include <stdlib.h> \n \n#include "i2cMaster.h" \n#include "i2cMasterSetup.h" \n#include "i2cMasterOutputStream.h" \n \n#include "../../../common/i2c/i2cCommon.h" \n#include "../../../common/i2c/i2cDebug.h" \n \n#include "../../../common/io/buffer.h" \n#include "../../../common/io/inputStream.h" \n#...
553
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 29.3, "nodes": 368, "errors": 0, "source_hash": "35236724f3997232d57c8d82ff355fdad0dce5b76fa6a736d1443b671c512f6d", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,446
c
/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ #include <assert.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef WIN32 #include "vc_compat.h" #endif #include "lsquic_int_types.h" #include "lsquic_rechist.h" #include "lsquic_util.h" static void tes...
34.49
297
(translation_unit) "/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */\n#include <assert.h>\n#include <inttypes.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#ifdef WIN32\n#include "vc_compat.h"\n#endif\n\n#include "lsquic_int_types.h"\n#include "lsquic_rechist.h"\n#include ...
3,431
0
{"language": "c", "success": true, "metadata": {"lines": 297, "avg_line_length": 34.49, "nodes": 1971, "errors": 0, "source_hash": "bb00ef0ab6160f4920859bdc086dba6f40284ef99dc6e1becbea7650df4d924c", "categorized_nodes": 1544}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,447
c
/* * spi_v2.c * * Created on: Apr 16, 2018 * Author: Brandon */ #include <xparameters.h> #include "spi_v2.h" #ifdef XPAR_XSPI_NUM_INSTANCES #include "xspi_l.h" #include "xspi.h" static XSpi xspi[XPAR_XSPI_NUM_INSTANCES]; XSpi* xspi_ptr = &xspi[0]; extern XSpi_Config XSpi_ConfigTable[]; /*******************...
29.57
153
(translation_unit) "/*\n * spi_v2.c\n *\n * Created on: Apr 16, 2018\n * Author: Brandon\n */\n\n#include <xparameters.h>\n#include "spi_v2.h"\n\n#ifdef XPAR_XSPI_NUM_INSTANCES\n#include "xspi_l.h"\n#include "xspi.h"\nstatic XSpi xspi[XPAR_XSPI_NUM_INSTANCES];\nXSpi* xspi_ptr = &xspi[0];\nextern XSpi_Config XSpi_...
1,167
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 29.57, "nodes": 704, "errors": 0, "source_hash": "efebca8b450ab519bf840f7279ad65bc69891f6ce2b543b29f4b77f689c6adbc", "categorized_nodes": 525}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,448
c
#include <stdio.h> #include "account/account.h" #include "tax/tax.h" #include "product/product.h" #include "invoice/invoice.h" #include "printer/printer.h" #include "move/move.h" int main() { Account customer_account = { .code = "411", .name = "Customer" }; Account product_account = { .code = "701", .name = "Produ...
29.82
39
(translation_unit) "#include <stdio.h>\n#include "account/account.h"\n#include "tax/tax.h"\n#include "product/product.h"\n#include "invoice/invoice.h"\n#include "printer/printer.h"\n#include "move/move.h"\n\nint main() {\n Account customer_account = { .code = "411", .name = "Customer" };\n Account product_account = {...
376
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.82, "nodes": 224, "errors": 0, "source_hash": "0a2b484c4a690e06ad503d39bfc227b6567a86ca2eccac0d753725abc98c27e7", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,449
c
#ifndef VIDEORENDERWIDGET_H #define VIDEORENDERWIDGET_H #include <QWidget> #include "lymvideoplayer.h" class QImage; class QRect; class videoRenderWidget : public QWidget { Q_OBJECT public: explicit videoRenderWidget(QWidget *parent = nullptr); ~videoRenderWidget(); public slots: void onPlayerFrameDe...
26.26
23
(translation_unit) "#ifndef VIDEORENDERWIDGET_H\n#define VIDEORENDERWIDGET_H\n\n#include <QWidget>\n#include "lymvideoplayer.h"\n\nclass QImage;\nclass QRect;\n\nclass videoRenderWidget : public QWidget\n{\n Q_OBJECT\npublic:\n explicit videoRenderWidget(QWidget *parent = nullptr);\n ~videoRenderWidget();\npub...
160
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.26, "nodes": 105, "errors": 0, "source_hash": "7200d0653df7b8876f055958e1ac307c637dc27e6907e9481e35f1c7201a14ae", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,450
c
/* Copyright (c) 2014 Mellanox Technologies, Inc. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef OPAL_DSTORE_SM_H #define OPAL_DSTORE_SM_H #include "opal/mca/dstore/dstore.h" #include "opal/mca/shmem/shmem_types.h" BEGIN_C_DECLS ...
24.74
39
(translation_unit) "/* Copyright (c) 2014 Mellanox Technologies, Inc.\n * All rights reserved.\n * $COPYRIGHT$\n *\n * Additional copyrights may follow\n *\n * $HEADER$\n */\n\n#ifndef OPAL_DSTORE_SM_H\n#define OPAL_DSTORE_SM_H\n\n#include "opal/mca/dstore/dstore.h"\n#include "opal/mca/shme...
145
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.74, "nodes": 96, "errors": 0, "source_hash": "97633a560f6e245cc08b742b968d6b26dce9a22089d0b0a321b931338cdd038c", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,451
c
/*! \file auto.h Manages autonomous mode objectives */ #ifndef AUTO_H_ #define AUTO_H_ #include <WPILib.h> #include "../drivetrain/drivetrain.h" /*! \brief Paste mapper-generated code in here. */ void auto_run(frc::RobotBase *robot, drivetrain::differential_drive& drive, Encoder& left, Encoder& right, double axle_...
40.27
11
(translation_unit) "/*! \file auto.h Manages autonomous mode objectives\n */\n\n#ifndef AUTO_H_\n#define AUTO_H_\n\n#include <WPILib.h>\n#include "../drivetrain/drivetrain.h"\n\n/*! \brief Paste mapper-generated code in here.\n */\nvoid auto_run(frc::RobotBase *robot, drivetrain::differential_drive& drive, Encoder& lef...
113
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 40.27, "nodes": 74, "errors": 0, "source_hash": "054c4d11838ac0809c2b26adab977d5be35d92a06cc1ca54db031c3911d4727d", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,452
c
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////////////////////...
35.77
31
(translation_unit) "//////////////////////////////////////////////////////////////////////////////\n//\n// This file is part of the Corona game engine.\n// For overview and more information on licensing please refer to README.md \n// Home page: https://github.com/coronalabs/corona\n// Contact: <EMAIL>\n//\n////////////...
100
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.77, "nodes": 52, "errors": 0, "source_hash": "344160ea3f9f6ede064b3efeae11b794724e02a264d4958853648de979d97e66", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,453
c
static int stbi_test_main(stbi__context *s) { #ifndef STBI_NO_JPEG if (stbi__jpeg_test(s)) return STBI_jpeg; #endif #ifndef STBI_NO_PNG if (stbi__png_test(s)) return STBI_png; #endif #ifndef STBI_NO_BMP if (stbi__bmp_test(s)) return STBI_bmp; #endif #ifndef STBI_NO_GIF i...
23.14
73
(translation_unit) "static int stbi_test_main(stbi__context *s) \n{ \n #ifndef STBI_NO_JPEG \n if (stbi__jpeg_test(s)) return STBI_jpeg; \n #endif \n #ifndef STBI_NO_PNG \n if (stbi__png_test(s)) return STBI_png; \n #endif \n #ifndef STBI_NO_BMP \n if (stbi__bmp_test(s)) return STBI_bmp; \n #endif \...
481
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 23.14, "nodes": 295, "errors": 0, "source_hash": "a45068c7edb589da0e38ed9a2cabbbc8e2624ee9b361900491ed39d6623988d8", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
14,454
c
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/RemoteUI.framework/RemoteUI */ /* iOSOpenDev: commented-out (since already defined in SDK) typedef struct _opaque_pthread_mutex_t { long __sig; BOOL __opaque[40]; } opaque_pthread_mutex_t; */ // iOSOpenDev: wrapped...
34.32
34
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2b.\n *\n * Source: /System/Library/PrivateFrameworks/RemoteUI.framework/RemoteUI\n */\n\n/* iOSOpenDev: commented-out (since already defined in SDK)\ntypedef struct _opaque_pthread_mutex_t {\n long __sig;\n BOOL __opaque[40];\n} opaque_pthread_mute...
54
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.32, "nodes": 42, "errors": 0, "source_hash": "4ca5b8d9d9d8fcef5926b62041bbbc1bdd694c75853282c0eee272f0564f1b5e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,455
c
// Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2014-2015 XDN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "cryptonote_core/cryptonote_basic.h" #include "cryptonote_...
41.47
15
(translation_unit) "// Copyright (c) 2011-2015 The Cryptonote developers\n// Copyright (c) 2014-2015 XDN developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#pragma once\n\n#include "cryptonote_core/cryptonote_bas...
113
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 41.47, "nodes": 62, "errors": 0, "source_hash": "9d99776c0a26f14629197bfc08eb3e65cad5413cb23870c6f0b6a8bd15bcee0a", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,456
c
// // MPViewController.h // MPFramework // // Created by Pr-Mao on 03/20/2018. // Copyright (c) 2018 Pr-Mao. All rights reserved. // @import UIKit; @interface MPViewController : UIViewController @end
19.4
10
(translation_unit) "//\n// MPViewController.h\n// MPFramework\n//\n// Created by Pr-Mao on 03/20/2018.\n// Copyright (c) 2018 Pr-Mao. All rights reserved.\n//\n\n@import UIKit;\n\n@interface MPViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MPViewController.h" (comment) "// MPFrame...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.4, "nodes": 10, "errors": 0, "source_hash": "d1e4561509398a60cf25c4e890bcc3651ae92fae89b8979a7559a4a399ffb0e4", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
14,457
c
{ "null", "root", "root", WRONLY_MODE }, { "zero", "root", "root", RDONLY_MODE }, { "*", "root", "root", RDWR_MODE }
38.33
3
(translation_unit) "{ "null", "root", "root", WRONLY_MODE },\n{ "zero", "root", "root", RDONLY_MODE },\n{ "*", "root", "root", RDWR_MODE }\n" (compound_statement) "{ "null", "root", "root", WRONLY_MODE },\n{ "zero", "root", "root", RDONLY_MODE },\n{ "*", "root", "root", RDWR_MODE }" ({) "{" (ERROR) ""null",...
70
5
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 38.33, "nodes": 20, "errors": 0, "source_hash": "c248d1d825e71d7eadd4e63ef1c09c225cbb831f65c434c70bb710fb0188714b", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "\"null\",\t\"root...
14,458
c
// Copyright 2021 The MWC Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
31.07
44
(translation_unit) "// Copyright 2021 The MWC Developers\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required...
173
4
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.07, "nodes": 103, "errors": 0, "source_hash": "a698cc03fd65ff474a43fd4989e09dcba6968b5828002ebc4dde5eaead8e8ce2", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,459
c
#include "usart.h" ////////////////////////////////////////////////////////////////////////////////// //如果使用os,则包括下面的头文件即可. #if SYSTEM_SUPPORT_OS #include "includes.h" //os 使用 #endif //#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) #if 1 #pragma import(__use_no_semihosting) //标...
23.61
189
(translation_unit) "#include "usart.h" \n////////////////////////////////////////////////////////////////////////////////// \n//如果使用os,则包括下面的头文件即可. \n#if SYSTEM_SUPPORT_OS \n#include "includes.h" //os 使用 \n#endif \n \n//#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) \n#if 1 \n#pragma import(__use_no_s...
804
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 23.61, "nodes": 454, "errors": 0, "source_hash": "082e95a70b3b668b647faee7ac326359df14824930f486f91c073643c97f8de0", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,460
c
#pragma once #include <QMainWindow> class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(); protected slots: void _openFileDialog(); void _openView(const QString& plyPath); void _closeView(); };
17.33
12
(translation_unit) "#pragma once\n\n#include <QMainWindow>\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n MainWindow();\n\nprotected slots:\n void _openFileDialog();\n void _openView(const QString& plyPath);\n void _closeView();\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) ...
65
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.33, "nodes": 36, "errors": 0, "source_hash": "a399874e50dad268713cb01df23f1f532faae18a27d48aadf4ecdad191f6f142", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,461
c
/** * @file accel.h * @author <NAME> * @date 2016 * @copyright 3-clause BSD * * @example accel/main.c */ #ifndef __LETMECREATE_CLICK_ACCEL_H__ #define __LETMECREATE_CLICK_ACCEL_H__ #ifdef __cplusplus extern "C"{ #endif #include <stdint.h> #include <letmecreate/click/export.h> /** * @brief Use SPI bus to com...
27.59
56
(translation_unit) "/**\n * @file accel.h\n * @author <NAME>\n * @date 2016\n * @copyright 3-clause BSD\n *\n * @example accel/main.c\n */\n\n#ifndef __LETMECREATE_CLICK_ACCEL_H__\n#define __LETMECREATE_CLICK_ACCEL_H__\n\n#ifdef __cplusplus\nextern "C"{\n#endif\n\n#include <stdint.h>\n#include <letmecreate/click/export...
113
1
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 27.59, "nodes": 75, "errors": 0, "source_hash": "f46404ef5b6b2f6e421239d21520bc9269189e595ca358277b7c6ac85000f8b0", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,462
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "TestPreDeclares.h" #include "Game/BaseCaseLayer.h" class BaseActionLayer :public BaseCaseLayer { MEDUSA_NODE(BaseActionLayer, BaseCaseLayer)...
30.26
19
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "TestPreDeclares.h"\n#include "Game/BaseCaseLayer.h"\n\n\nclass BaseActionLayer :public BaseCaseLayer\n{\n MEDUSA_NODE(B...
126
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.26, "nodes": 74, "errors": 0, "source_hash": "b884f1ab3519b519a91b22e011dd5701a6fc4bb24a371f1a391b98389e874ee3", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,463
c
#pragma once #include <map> #include "core.h" #include "entity/entity.h" #include "scripting/scriptmanager.h" namespace Crimson { /* Controls an AngelScript behaviour */ class CR_API ScriptComponent : public Component { private: BehaviourInstance m_behaviour; public: std::string m_behaviourDecl; std::map<...
29.46
24
(translation_unit) "#pragma once\n\n#include <map>\n\n#include "core.h"\n#include "entity/entity.h"\n#include "scripting/scriptmanager.h"\n\nnamespace Crimson {\n /* Controls an AngelScript behaviour */\n class CR_API ScriptComponent : public Component {\n private:\n BehaviourInstance m_behaviour;\n\n public:\n std::...
196
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.46, "nodes": 114, "errors": 0, "source_hash": "2d6bc4f480b20c5a28dc0d38a377033baa95e722546e6903be97c8a64857f7b4", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,464
c
#ifndef CFRELEMENT_H #define CFRELEMENT_H #include <stdio.h> #include <iostream> #include <algorithm> #include <math.h> #include <string.h> #include <stdint.h> #define NUM_PERIODICITIES 24 #define FREMEN_AMPLITUDE_THRESHOLD 0.0 /** @author <NAME> */ typedef struct{ float realStates; float imagStates; float realB...
24.62
52
(translation_unit) "#ifndef CFRELEMENT_H\n#define CFRELEMENT_H\n\n#include <stdio.h>\n#include <iostream>\n#include <algorithm>\n#include <math.h>\n#include <string.h>\n#include <stdint.h>\n\n#define NUM_PERIODICITIES 24\n#define FREMEN_AMPLITUDE_THRESHOLD 0.0\n \n/**\n@author <NAME>\n*/\ntypedef struct{\n float realSt...
344
3
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.62, "nodes": 237, "errors": 0, "source_hash": "04172b7b5e55a6b14823442ccc105fa478788d08d54327c1cc66808e5b87a3be", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,465
c
#ifndef __CLERIC_H__ #define __CLERIC_H__ #include "Module.h" #include "Character.h" #include "ModuleEntityManager.h" #include "Animation.h" #include "Timer.h" class Cleric : public Character { public: Cleric(); ~Cleric(); bool Awake(pugi::xml_node&) override; bool HeroStart(); bool HeroUpdate(float dt); ...
21.08
38
(translation_unit) "#ifndef __CLERIC_H__\n#define __CLERIC_H__\n\n#include "Module.h"\n#include "Character.h"\n#include "ModuleEntityManager.h"\n#include "Animation.h"\n#include "Timer.h"\n\n\n\n\nclass Cleric : public Character\n{\npublic:\n Cleric();\n ~Cleric();\n\n bool Awake(pugi::xml_node&) override;\n\n bool Her...
289
10
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.08, "nodes": 177, "errors": 0, "source_hash": "3762a9133ccd82e442c8ae9b72655e82587c8622d542f75d6b123b069e377081", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,466
c
#include "arraySort.h" #include <stdio.h> void swapArrayElements(int array[], int firstIndex, int secondIndex) { const int change = array[firstIndex]; array[firstIndex] = array[secondIndex]; array[secondIndex] = change; } void sort(int array[], int leftBorder, int rightBorder) { int left = leftBorder; int right...
18.13
39
(translation_unit) "#include "arraySort.h"\n\n#include <stdio.h>\n\nvoid swapArrayElements(int array[], int firstIndex, int secondIndex)\n{\n const int change = array[firstIndex];\n array[firstIndex] = array[secondIndex];\n array[secondIndex] = change;\n}\n\nvoid sort(int array[], int leftBorder, int rightBorder)\n{\n ...
267
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.13, "nodes": 155, "errors": 0, "source_hash": "f441666a8c08979f998746f058528e75ba88c857861f575b786d378bf188865c", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,467
c
#ifndef MEDIASOUP_CLIENT_ANDROID_PRODUCER_JNI_H #define MEDIASOUP_CLIENT_ANDROID_PRODUCER_JNI_H #include <jni.h> #include "common_jni.h" #include "Producer.hpp" namespace mediasoupclient { class OwnedProducer { public: OwnedProducer(Producer *producer, Producer::Listener *listener) : producer_(produc...
32
36
(translation_unit) "#ifndef MEDIASOUP_CLIENT_ANDROID_PRODUCER_JNI_H\n#define MEDIASOUP_CLIENT_ANDROID_PRODUCER_JNI_H\n\n#include <jni.h>\n#include "common_jni.h"\n#include "Producer.hpp"\n\nnamespace mediasoupclient {\n\nclass OwnedProducer {\npublic:\n OwnedProducer(Producer *producer, Producer::Listener *listener)...
319
12
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.0, "nodes": 184, "errors": 0, "source_hash": "57e7886cc9ccc162ace2371832aa8424eb3efc02cfd808eca8eab48f61db0d05", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,468
c
// -*- mode: ObjC -*- // This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files. // Copyright (C) 1997-1998, 2000-2001, 2004-2010 <NAME>. #import <Foundation/Foundation.h> @class CDClassDump, CDStructureTable, CDSymbolReferences, CDType, CDTypeFormatter; @interface CDType...
42.92
48
(translation_unit) "// -*- mode: ObjC -*-\n\n// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.\n// Copyright (C) 1997-1998, 2000-2001, 2004-2010 <NAME>.\n\n#import <Foundation/Foundation.h>\n\n@class CDClassDump, CDStructureTable, CDSymbolReferences, CDType, CDTypeFo...
551
53
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 42.92, "nodes": 348, "errors": 0, "source_hash": "b675fa62782c4b95e9dc1d2be73a4fb1260760be1861e18b373dafbace1f5c02", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
14,469
c
#ifndef MYBOX_H #define MYBOX_H struct box { int32_t x; int32_t y; int32_t width; int32_t height; }; #endif
11.44
9
(translation_unit) "#ifndef MYBOX_H\n#define MYBOX_H\n\nstruct box {\n int32_t x;\n int32_t y;\n int32_t width;\n int32_t height;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef MYBOX_H\n#define MYBOX_H\n\nstruct box {\n int32_t x;\n int32_t y;\n int32_t width;\n int32_t height;\n};\n\n#endif" (#ifndef) "#ifndef" (...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 11.44, "nodes": 22, "errors": 0, "source_hash": "77f845ed7c3ceb31ebfd3fae7df3d33f6e4e70d12bb259a924b9ecb0904d9df0", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
14,470
c
// // GATTTest.h // GATTTest // // Created by <NAME> on 3/10/18. // Copyright © 2018 PureSwift. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for GATTTest. FOUNDATION_EXPORT double GATTTestVersionNumber; //! Project version string for GATTTest. FOUNDATION_EXPORT const unsig...
28.25
12
(translation_unit) "//\n// GATTTest.h\n// GATTTest\n//\n// Created by <NAME> on 3/10/18.\n// Copyright © 2018 PureSwift. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for GATTTest.\nFOUNDATION_EXPORT double GATTTestVersionNumber;\n\n//! Project version string for GATTTe...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.25, "nodes": 15, "errors": 0, "source_hash": "4f8f933bcc429f70e7c8d90af8d73a41fd7a7e94bff0a203b974a46bb39bdd90", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,471
c
#ifndef AUDIO_FILE_MIDI #define AUDIO_FILE_MIDI #include "../audio.h" #include <vector> #include <string> namespace Audio { class MidiController; // A Midi track is a collection of timed midi events or commands that modify // the midi system to generate music. It also defines the playback speed // TOD...
25.77
60
(translation_unit) "#ifndef AUDIO_FILE_MIDI \n#define AUDIO_FILE_MIDI \n \n#include "../audio.h" \n#include <vector> \n#include <string> \n \nnamespace Audio \n{ \n class MidiController; \n // A Midi track is a collection of timed midi events or commands that modify \n // the midi system to generate music. It also defi...
306
8
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 25.77, "nodes": 187, "errors": 0, "source_hash": "e04da2a192cabf6dcb72d31da416395dee9b09e5f90fe8f96edfb7b5ecde02c1", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,472
c
#include <stdlib.h> #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <windows.h> #include <winternl.h> int main(int argc, char *argv[]) { if(argc != 3) { fprintf(stderr, "Usage: %s <pid> <address to snapshot upon exec>\n", argc ? argv[0] : "program.exe"); return 1...
30.17
71
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <windows.h>\n#include <winternl.h>\n\nint\nmain(int argc, char *argv[])\n{\n if(argc != 3) {\n fprintf(stderr, "Usage: %s <pid> <address to snapshot upon exec>\n",\n argc ? argv[0] : ...
659
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 30.17, "nodes": 369, "errors": 0, "source_hash": "84ed2cc30d72acdd760b89af7907d68caace625b0314a26dd9d0ec301540a7e2", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,473
c
// // Created by there on 12/3/2021. // #include <exception> #ifndef MARCHW_ERRORDIVIDEBYZERO_H #define MARCHW_ERRORDIVIDEBYZERO_H #endif //MARCHW_ERRORDIVIDEBYZERO_H struct CPUCriticalError_DivideByZero : public std::exception { const char * what () const throw () { return "CPU can't continue to work, ...
33.17
12
(translation_unit) "//\n// Created by there on 12/3/2021.\n//\n\n#include <exception>\n\n#ifndef MARCHW_ERRORDIVIDEBYZERO_H\n#define MARCHW_ERRORDIVIDEBYZERO_H\n\n#endif //MARCHW_ERRORDIVIDEBYZERO_H\n\nstruct CPUCriticalError_DivideByZero : public std::exception {\n const char * what () const throw () {\n ret...
61
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.17, "nodes": 29, "errors": 0, "source_hash": "d430bbd3fa02756175ddf361bbd794beba2cfb02f311fa2b3fd49ced954c0d6e", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,474
c
// // Created by 余雷 on 2022/4/21. // #include "string.h" #include "stdio.h" #define PRAISE "You" /** * sizeof : 以字节为单位,给出对象的大小 * strlen: 给出字符串的字符长度 * @return */ int main(){ char name [40]; printf("What's your name ?"); scanf("%s",name); printf("%zd , %zd \n", strlen(name), sizeof name); ...
21.05
19
(translation_unit) "//\n// Created by 余雷 on 2022/4/21.\n//\n\n#include "string.h"\n#include "stdio.h"\n#define PRAISE "You"\n\n/**\n * sizeof : 以字节为单位,给出对象的大小\n * strlen: 给出字符串的字符长度\n * @return\n */\nint main(){\n\n char name [40];\n\n printf("What's your name ?");\n scanf("%s",name);\n\n printf("%zd , ...
113
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.05, "nodes": 53, "errors": 0, "source_hash": "306ab17ce162aa584a6433a636297f09b3d8e863611ccae9a9199c84b57ecbb6", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lude \...
14,475
c
#ifndef INCLUDE_CONCEPT_H #define INCLUDE_CONCEPT_H #include <set> #include <vector> #include "include/bitset.h" #include "include/csv.h" struct Concept { bitset objects; bitset attributes; }; struct Lattice { std::vector<std::pair<int, int>> less; std::vector<Concept> concepts; }; bitset closure(c...
38.26
23
(translation_unit) "#ifndef INCLUDE_CONCEPT_H\n#define INCLUDE_CONCEPT_H\n\n#include <set>\n#include <vector>\n\n#include "include/bitset.h"\n#include "include/csv.h"\n\nstruct Concept {\n bitset objects;\n bitset attributes;\n};\n\nstruct Lattice {\n std::vector<std::pair<int, int>> less;\n std::vector<Con...
197
14
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.26, "nodes": 115, "errors": 0, "source_hash": "994ba18bf17dddde055b85aa2b4eee32468e4f99fcf5099eec5eb5404153aa48", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,476
c
#include <err.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "duplex.h" #include "util.h" #include "x25519.h" static void process(duplex_t state) { size_t count, length = 0; uint8_t *data = NULL; do { if ((data = realloc(data, length + chunk)) == NULL) err(EXIT_FAILURE, "reall...
29.58
52
(translation_unit) "#include <err.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "duplex.h"\n#include "util.h"\n#include "x25519.h"\n\nstatic void process(duplex_t state) {\n size_t count, length = 0;\n uint8_t *data = NULL;\n\n do {\n if ((data = realloc(data, length + chunk)) == NU...
572
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 29.58, "nodes": 313, "errors": 0, "source_hash": "65125694c9fdeda3ed46a05f019fb0e00c4e25dea9ee3db3c57a7056495b3d59", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,477
c
/******************************************************************************* * Copyright 2019-2021 Microchip FPGA Embedded Systems Solutions. * * SPDX-License-Identifier: MIT * * MPFS HSS Embedded Software * */ /*! * \file Watchdog Driver State Machine * \brief Virtualised Watchdog Service */ #include "...
31.58
227
(translation_unit) "/*******************************************************************************\n * Copyright 2019-2021 Microchip FPGA Embedded Systems Solutions.\n *\n * SPDX-License-Identifier: MIT\n *\n * MPFS HSS Embedded Software\n *\n */\n\n/*!\n * \file Watchdog Driver State Machine\n * \brief Virtualised W...
1,640
1
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 31.58, "nodes": 934, "errors": 0, "source_hash": "33722bc4e945ae9452e8f2d800c06f96bb1b6e4b494d51664156d3a1aff7beaa", "categorized_nodes": 694}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,478
c
#include <pthread.h> #include <stdio.h> #include <stdlib.h> /* BEGIN_TEST_SPEC [""] END_TEST_SPEC */ static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; void* foo(void* arg) { pthread_mutex_lock(&mutex); pthread_cond_signal(&cond); pthread_mutex_unlo...
21
25
(translation_unit) "#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n/*\nBEGIN_TEST_SPEC\n[""]\nEND_TEST_SPEC\n*/\n\nstatic pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;\nstatic pthread_cond_t cond = PTHREAD_COND_INITIALIZER;\n\nvoid* foo(void* arg) {\n pthread_mutex_lock(&mutex);\n pthread_cond_...
162
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.0, "nodes": 94, "errors": 0, "source_hash": "131ea5427e16b9ce071741b5e0fb9de08d7eb0d624162e0924038fa54637c562", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,479
c
#include "data.h" int main(int ac, char **av) { int nb = 0; if (ac != 2) return (display_usage(av[0])); if ((nb = atoif(av[1])) == -1) return (display_usage(av[0])); display_convert(nb); return (EXIT_SUCCESS); } void display_convert(int nb) { printf("[%d] >> BIN : ", nb); convert_base("01", nb)...
20.72
25
(translation_unit) "#include "data.h"\n\nint main(int ac, char **av)\n{\n int nb = 0;\n\n if (ac != 2)\n return (display_usage(av[0]));\n if ((nb = atoif(av[1])) == -1)\n return (display_usage(av[0]));\n display_convert(nb);\n return (EXIT_SUCCESS);\n}\n\nvoid display_convert(int nb)\n{\n printf("[%d] >> BI...
238
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.72, "nodes": 125, "errors": 0, "source_hash": "673ca3d914872d51670e058066607307304ae089ea9fce2968c1ceea6d548462", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,480
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/iCloudQuotaUI.framework/iCloudQuotaUI */ @interface ICQUpgradeOfferViewController : ICQViewController @property (getter=isCancelEnabled, nonatomic) bool cancelEnabled; @property (nonatomic, readonly) _ICQUpgradeOfferPageSpecification *upgrade...
41.07
15
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iCloudQuotaUI.framework/iCloudQuotaUI\n */\n\n@interface ICQUpgradeOfferViewController : ICQViewController\n\n@property (getter=isCancelEnabled, nonatomic) bool cancelEnabled;\n@property (nonatomic, readonly) _ICQUpgradeOffe...
157
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 41.07, "nodes": 96, "errors": 0, "source_hash": "c23848f66d61e2866dfbe243201f18a4201c1f33170d96c22c5e868522ecbf57", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface ICQUp...
14,481
c
// // InfoWarsTests.h // InfoWarsTests // // Created by <NAME> on 8/11/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> @interface InfoWarsTests : SenTestCase @end
20.7
10
(translation_unit) "//\n// InfoWarsTests.h\n// InfoWarsTests\n//\n// Created by <NAME> on 8/11/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <SenTestingKit/SenTestingKit.h>\n\n@interface InfoWarsTests : SenTestCase\n\n@end\n" (comment) "//" (comment) "// InfoWarsTests.h" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.7, "nodes": 9, "errors": 0, "source_hash": "653418db6fce40557e9b532457a54d3d5b82499b1d39b61ed31ce2fd469aecac", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Sen...
14,482
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../lib/lib.h" #define LIGHT_OFF 0 #define LIGHT_ON 1 /* NOTE: Convention for this file: x represents horizontal (0 to width) y represents vertical (0 to height) */ #define SCREEN_WIDTH 50 #define SCREEN_HEIGHT 6 typedef struct { int lights...
29.6
119
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "../lib/lib.h"\n\n#define LIGHT_OFF 0\n#define LIGHT_ON 1\n\n/* NOTE: Convention for this file:\n x represents horizontal (0 to width)\n y represents vertical (0 to height) */\n#define SCREEN_WIDTH 50\n#define SCREEN_HEIGHT...
1,131
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 29.6, "nodes": 666, "errors": 0, "source_hash": "b85937ccae75e3c78b36465b7c1ecc15514554e3dd2698f2528a3dea1175c606", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,483
c
#include <stdio.h> int main() { int addrArray[64]; int addrLen; FILE* fh; int a; int anum=0; fh = fopen("config.txt", "r"); if(fh==NULL) { printf("cannot open file config.txt!\n"); exit(1); } while((fscanf(fh, "%x", &a)==1) && (anum<=64)) { printf("%d = %#x\n", anum, a); addrArray[anum] = a; anum++...
15.82
22
(translation_unit) "#include <stdio.h>\n\n\nint main() {\n int addrArray[64];\n int addrLen;\n FILE* fh;\n int a;\n int anum=0;\n fh = fopen("config.txt", "r");\n if(fh==NULL) {\n printf("cannot open file config.txt!\n");\n exit(1);\n }\n while((fscanf(fh, "%x", &a)==1) && (anum<=64)) {\n printf("%d = %#x\n", anum, ...
182
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.82, "nodes": 100, "errors": 0, "source_hash": "b076c42b8e3eaf8e5e18635ed5970a7ce7fc30ece8c3c7fc6ec6b4aca66c6c98", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,484
c
/* * OMAP2/3 System Control Module register access * * Copyright (C) 2007 Texas Instruments, Inc. * Copyright (C) 2007 Nokia Corporation * * Written by <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 * publishe...
24.2
51
(translation_unit) "/*\n * OMAP2/3 System Control Module register access\n *\n * Copyright (C) 2007 Texas Instruments, Inc.\n * Copyright (C) 2007 Nokia Corporation\n *\n * Written by <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 Lic...
260
3
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.2, "nodes": 166, "errors": 0, "source_hash": "bf1780d634eeec2b2a6da45db2e73514db84db99c77b3a965700565b019e6a9b", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef D...
14,485
c
// // i2c.h // i2c // // Created by <NAME> on 09.10.17. // // #ifndef i2c_h #define i2c_h #ifdef __cplusplus extern "C" { #endif /* TODO: setup i2c/twi */ #define F_I2C 100000UL// clock i2c #define PSC_I2C 1 // prescaler i2c #define SET_TWBR (F_CPU/F_I2C-16UL)/(PSC_I2C*2UL) #include <stdio.h> #include <av...
28.87
39
(translation_unit) "//\n// i2c.h\n// i2c\n//\n// Created by <NAME> on 09.10.17.\n//\n//\n\n#ifndef i2c_h\n#define i2c_h\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n \n/* TODO: setup i2c/twi */\n#define F_I2C 100000UL// clock i2c\n#define PSC_I2C 1 // prescaler i2c\n#define SET_TWBR (F_CPU/F_I2C-16UL)/(PSC_I2C...
152
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.87, "nodes": 107, "errors": 0, "source_hash": "5d88bab192fd30bfe676d185fd5d06eece737e026700db0fd67c71e247cd8394", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,486
c
#include <stdio.h> int main() { int n, flag = 0; printf("Enter a number --> "); scanf("%d", &n); for (int i = 2; i <= n/2; i++) if (n % i == 0) { flag = 1; break; } if (n == 1) printf("\n1 is neither prime nor composite\n"); else if (flag == 0) printf("\n%d is a prime number\n...
21.71
17
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int n, flag = 0;\n printf("Enter a number --> ");\n scanf("%d", &n);\n\n for (int i = 2; i <= n/2; i++)\n if (n % i == 0)\n { flag = 1; break; }\n\n if (n == 1)\n printf("\n1 is neither prime nor composite\n");\n else\n if (flag == 0)\n ...
160
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.71, "nodes": 91, "errors": 0, "source_hash": "ed47f82dfba97eb5f9f4f025806a629c56e47f593370cd316d17a113de0c84ed", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,487
c
#include "fontmaker.h" static Fm_Opts _opts; static struct option _options[] = { {"font-file", required_argument, 0, 'f'}, {"gc", required_argument, 0, 'C'}, {"gh", required_argument, 0, 'H'}, {"ghpp", required_argument, 0, 'x'}, {"map-file", required_a...
29.68
148
(translation_unit) "#include "fontmaker.h"\n\nstatic Fm_Opts _opts;\n\nstatic struct option _options[] =\n{\n {"font-file", required_argument, 0, 'f'},\n {"gc", required_argument, 0, 'C'},\n {"gh", required_argument, 0, 'H'},\n {"ghpp", required_argument, 0, 'x'},\n ...
1,039
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 29.68, "nodes": 573, "errors": 0, "source_hash": "5db9eac39385b8a5c04f3eb8fdc9a50ea6b336127e2f54917639662e45ed37ba", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,488
c
// // Copyright (c) 2014, Facebook, Inc. // All rights reserved. // // This source code is licensed under the University of Illinois/NCSA Open // Source License found in the LICENSE file in the root directory of this // source tree. An additional grant of patent rights can be found in the // PATENTS file in the same di...
36.58
66
(translation_unit) "//\n// Copyright (c) 2014, Facebook, Inc.\n// All rights reserved.\n//\n// This source code is licensed under the University of Illinois/NCSA Open\n// Source License found in the LICENSE file in the root directory of this\n// source tree. An additional grant of patent rights can be found in the\n// ...
270
1
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 36.58, "nodes": 175, "errors": 0, "source_hash": "6e8574ea5ac16b2cd54dc5daff92a47a4e872cca10c43a33d789d17726e6ee91", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,489
c
#include "types.h" #include "pstat.h" #include "user.h" int main(int argc, char *argv[]) { int verbose = 0; struct pstat ps; if(argc == 2){ if (strcmp(argv[1], "-v") == 0) { verbose = 1; } else { printf(2, "Usage: getpinfo [-v]\n"); exit(); } } else if (argc > 2) { printf(2, ...
18.84
25
(translation_unit) "#include "types.h"\n#include "pstat.h"\n#include "user.h"\n\nint\nmain(int argc, char *argv[])\n{\n int verbose = 0;\n struct pstat ps;\n\n if(argc == 2){\n if (strcmp(argv[1], "-v") == 0) {\n verbose = 1;\n } else {\n printf(2, "Usage: getpinfo [-v]\n");\n exit();\n }\n ...
210
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.84, "nodes": 106, "errors": 0, "source_hash": "812e52963fc8757792f8ff04225c97c90fd39411cdb6db77574c991836e9df63", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,490
c
#import <UIKit/UIKit.h> @interface SummaryCell : UITableViewCell { @private IBOutlet UILabel *title_; IBOutlet UILabel *subtitle_; IBOutlet UILabel *summary_; IBOutlet UILabel *price_; } @property (nonatomic, retain) UILabel *title; @property (nonatomic, retain) UILabel *subtitle;...
26.87
15
(translation_unit) "#import <UIKit/UIKit.h>\n\n\n@interface SummaryCell : UITableViewCell\n{\n @private\n IBOutlet UILabel *title_;\n IBOutlet UILabel *subtitle_;\n IBOutlet UILabel *summary_;\n IBOutlet UILabel *price_;\n}\n\n@property (nonatomic, retain) UILabel *title;\n@property (nona...
128
18
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.87, "nodes": 90, "errors": 0, "source_hash": "9b3ba27a5e7fa3d34d4fbcd0f0bfa2c033dd67f165e3b5e83dcf7e2a7c7da2dc", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,491
c
#pragma once #include "itkConfigure.h" // Workaround for ITKTubeTK Python package builds #if !defined(ITK_BUILD_SHARED_LIBS) && !defined(MinimalPathExtraction_EXPORT) # define MinimalPathExtraction_EXPORT # define MinimalPathExtraction_HIDDEN #else #include "MinimalPathExtractionExport.h" #endif
32.22
9
(translation_unit) "#pragma once\n\n#include "itkConfigure.h"\n// Workaround for ITKTubeTK Python package builds\n#if !defined(ITK_BUILD_SHARED_LIBS) && !defined(MinimalPathExtraction_EXPORT)\n# define MinimalPathExtraction_EXPORT\n# define MinimalPathExtraction_HIDDEN\n#else\n#include "MinimalPathExtractionExport.h"...
45
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.22, "nodes": 33, "errors": 0, "source_hash": "58a5ca6f3e1401826a7352ec3fb5b154ecf5a98bf23f26c9c716e3abbce3aadf", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,492
c
/* ******************************************************************************* * * Purpose: Utils. Error class implementation. * ******************************************************************************* * Copyright Monstrenyatko 2014. * * Distributed under the MIT License. * (See accompanying file LI...
30.56
59
(translation_unit) "/*\n *******************************************************************************\n *\n * Purpose: Utils. Error class implementation.\n *\n *******************************************************************************\n * Copyright Monstrenyatko 2014.\n *\n * Distributed under the MIT License.\...
631
33
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 30.56, "nodes": 339, "errors": 0, "source_hash": "3506f84b906ec88887aa68167b5557130f52f2fd59c1896b0b717211b2f7a3b5", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,493
c
#ifndef AlpakaDataFormats_TrajectoryStateSoA_h #define AlpakaDataFormats_TrajectoryStateSoA_h #include <Eigen/Dense> #include "AlpakaCore/alpakaConfig.h" #include "AlpakaCore/eigenSoA.h" template <int32_t S> struct TrajectoryStateSoA { using Vector5f = Eigen::Matrix<float, 5, 1>; using Vector15f = Eigen::Matrix<f...
37.59
51
(translation_unit) "#ifndef AlpakaDataFormats_TrajectoryStateSoA_h\n#define AlpakaDataFormats_TrajectoryStateSoA_h\n\n#include <Eigen/Dense>\n#include "AlpakaCore/alpakaConfig.h"\n#include "AlpakaCore/eigenSoA.h"\n\ntemplate <int32_t S>\nstruct TrajectoryStateSoA {\n using Vector5f = Eigen::Matrix<float, 5, 1>;\n usi...
894
39
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 37.59, "nodes": 597, "errors": 0, "source_hash": "f3782d76087aa9871cd8b272f2c27a9508e8f164af04c3282ad35261b6fcdf56", "categorized_nodes": 417}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,494
c
// // KCEffect.h // KCVideoUtil // // Created by Erica on 2018/8/8. // Copyright © 2018年 Erica. All rights reserved. // #import <Foundation/Foundation.h> @interface KCVideoStickers : NSObject @property (nonatomic,copy) NSString *name; @property (nonatomic,copy) NSString *path; @property (nonatomic,copy) NSString...
31.5
18
(translation_unit) "//\n// KCEffect.h\n// KCVideoUtil\n//\n// Created by Erica on 2018/8/8.\n// Copyright © 2018年 Erica. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface KCVideoStickers : NSObject\n\n@property (nonatomic,copy) NSString *name;\n@property (nonatomic,copy) NSString *path;\n@...
166
34
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.5, "nodes": 118, "errors": 0, "source_hash": "28b559da8491ba6c736a88fbf1a4afc1d52fba33fc71f8eacbc13a4f66d41339", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
14,495
c
#include <stdio.h> int main() { int ch,countSpace,countTable,countEnter; countSpace = countTable = countEnter = 0; while((ch = getchar()) != EOF) { if(ch == ' ') ++countSpace; else if(ch == '\t') ++countTable; else if(ch == '\n') ++countEnter; } printf("space:%d\ntable:%d\nenter:%d\n",countSpace,co...
19.88
17
(translation_unit) "#include <stdio.h>\nint main()\n{\n int ch,countSpace,countTable,countEnter;\n countSpace = countTable = countEnter = 0;\n while((ch = getchar()) != EOF)\n {\n if(ch == ' ')\n ++countSpace;\n else if(ch == '\t')\n ++countTable;\n else if(ch == '\n')\n ++countEnter;\n }\n printf("space:%d\nt...
139
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.88, "nodes": 86, "errors": 0, "source_hash": "c7811c527671924b289c0890c72ec858560b5901f42bd14f91da33acb23ad511", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,496
c
/* Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom. Copyright (c) 2019, COSIC-<NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium. All rights reserved */ #ifndef _CRS #define _CRS /* This is the CRS for the ECC based DualModeEncryption * scheme ...
30.5
62
(translation_unit) "/*\nCopyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.\nCopyright (c) 2019, COSIC-<NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.\n\nAll rights reserved\n*/\n\n#ifndef _CRS\n#define _CRS\n\n/* This is the CRS for the ECC based...
569
24
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 30.5, "nodes": 302, "errors": 0, "source_hash": "b55117fbe3ea341a98300fd09217ccafc8f61f3a36fcfc13946f5e03b7f2b899", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,497
c
/* * Copyright (c) 2008-2015 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #pragma once #include <lk/compiler.h> #include <printf.h> #include <sys/types.h> #include <lib/io.h> __BEGIN_CDECLS typedef s...
32.11
53
(translation_unit) "/*\n * Copyright (c) 2008-2015 <NAME>\n *\n * Use of this source code is governed by a MIT-style\n * license that can be found in the LICENSE file or at\n * https://opensource.org/licenses/MIT\n */\n#pragma once\n\n#include <lk/compiler.h>\n#include <printf.h>\n#include <sys/types.h>\n#include <lib/...
614
5
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 32.11, "nodes": 433, "errors": 0, "source_hash": "f6eb07abc459b8b454969f78c7263d0fb1650c76a9ccd501e0add3e3cf80f9f2", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,498
c
class CTabControl: public CControl { public: void AddItem(LPCTSTR pszText, LPARAM lParam = 0); void Param(int i, LPARAM lParam); LPARAM Param(int i); INT GetCurSel(); void SetCurSel(INT i); INT ItemsCount(); void Adjust(HWND hWnd); void DeferAdjust(HDWP hDwp, HWND hWnd); void SetText(in...
25.54
13
(translation_unit) "class CTabControl: public CControl \n{ \npublic: \n void AddItem(LPCTSTR pszText, LPARAM lParam = 0); \n void Param(int i, LPARAM lParam); \n LPARAM Param(int i); \n INT GetCurSel(); \n void SetCurSel(INT i); \n INT ItemsCount(); \n void Adjust(HWND hWnd); \n void DeferAdjust(HDWP hDwp, HW...
130
2
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.54, "nodes": 86, "errors": 0, "source_hash": "bc7310a6b7a3c616d5a3dbd565fe41ae7aabf11c12a1154ed1141c6f62d518c8", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
14,499