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
/* * RBDL - Rigid Body Dynamics Library * Copyright (c) 2011-2012 <NAME> <<EMAIL>> * * Licensed under the zlib license. See LICENSE for more details. */ #ifndef _COMPILE_ASSERT_H #define _COMPILE_ASSERT_H /* * This is a simple compile time assertion tool taken from: * http://blogs.msdn.com/b/abhinaba/archiv...
34.36
33
(translation_unit) "/*\n * RBDL - Rigid Body Dynamics Library\n * Copyright (c) 2011-2012 <NAME> <<EMAIL>>\n *\n * Licensed under the zlib license. See LICENSE for more details.\n */\n\n#ifndef _COMPILE_ASSERT_H\n#define _COMPILE_ASSERT_H\n\n/* \n * This is a simple compile time assertion tool taken from:\n * http://...
123
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.36, "nodes": 85, "errors": 0, "source_hash": "483df5da0205b4441c2cc2f33bd2e69c049b01131935c65b2ab9252957f612dc", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,500
c
// // LTPageControl.h // MRDemo // // Created by wangpeng on 2018/10/10. // Copyright © 2018 mrstock. All rights reserved. // #import <UIKit/UIKit.h> @protocol LTPageControlDelegate; @interface LTPageControl : UIControl /** * 自定义的View,必须继承LTAbstractDotView */ @property (nonatomic, assign) Class dotViewClass;...
25.98
57
(translation_unit) "//\n// LTPageControl.h\n// MRDemo\n//\n// Created by wangpeng on 2018/10/10.\n// Copyright © 2018 mrstock. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol LTPageControlDelegate;\n\n@interface LTPageControl : UIControl\n\n/**\n * 自定义的View,必须继承LTAbstractDotView\n */\n@property (n...
271
59
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 25.98, "nodes": 190, "errors": 0, "source_hash": "c21949deb9c7b9d26edf59609f820177cfc888f71b104973ee0e550193402577", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
9,501
c
/* Filename: hist.h Author: <NAME> <<EMAIL>> */ #ifndef HISTORY_H #define HISTORY_H void add_cmd(char *cmd); char* next_cmd(int reset); void print_history(); #endif
15.9
10
(translation_unit) "/*\n Filename: hist.h\n Author: <NAME> <<EMAIL>>\n*/\n#ifndef HISTORY_H\n\n#define HISTORY_H\n\nvoid add_cmd(char *cmd);\nchar* next_cmd(int reset);\nvoid print_history();\n#endif\n" (comment) "/*\n Filename: hist.h\n Author: <NAME> <<EMAIL>>\n*/" (preproc_ifdef) "#ifndef HISTORY_H\n\n#defin...
43
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.9, "nodes": 32, "errors": 0, "source_hash": "5a311c8064daf3d22b9b1e71bb2fb5a85c415e293504dc331252cd974730f9f7", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
9,502
c
// // PoyntLib.h // PoyntLib // // Created by <NAME> on 8/12/16. // Copyright © 2016 com.poynt. All rights reserved. // /*! \mainpage Poynt iOS-SDK * * \section intro_sec Introduction * * The iOS SDK offers developers a library by which on can communicate directly with a Poynt Smart Terminal using an iOS compa...
28.27
30
(translation_unit) "//\n// PoyntLib.h\n// PoyntLib\n//\n// Created by <NAME> on 8/12/16.\n// Copyright © 2016 com.poynt. All rights reserved.\n//\n\n/*! \mainpage Poynt iOS-SDK\n *\n * \section intro_sec Introduction\n *\n * The iOS SDK offers developers a library by which on can communicate directly with a Poynt S...
54
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.27, "nodes": 30, "errors": 0, "source_hash": "2e05fee972eb1361d1f18c379863619dd87cc17afd2f0465e31ff667f4fcfee4", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
9,503
c
#ifndef FIXTURE_H_ #define FIXTURE_H_ #include <fstream> #include <vector> class Fixture { public: typedef std::vector<int> Data; struct Action { char cmd; Data data; Data queryData; double radius; size_t limit; Action(char cmd, const Data& data, const Data& queryData, double radius, size_t limit) ...
22.79
81
(translation_unit) "#ifndef FIXTURE_H_\n#define FIXTURE_H_\n\n\n#include <fstream>\n#include <vector>\n\n\nclass Fixture {\npublic:\n\n typedef std::vector<int> Data;\n\n struct Action {\n char cmd;\n Data data;\n Data queryData;\n double radius;\n size_t limit;\n\n Action(char cmd, const Data& data, const Data& ...
644
23
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 22.79, "nodes": 394, "errors": 0, "source_hash": "74f9b9dc00aee7f05fbefbcae72ed726f443c07e3b4c4078b46e7e4042a0a080", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,504
c
/*============================================================================= Sound.h Project: Sonata Engine Author: <NAME> =============================================================================*/ #ifndef _SE_AUDIO_SOUND_H_ #define _SE_AUDIO_SOUND_H_ #include "Core/Core.h" #include "Audio/Common.h" namespac...
35.73
107
(translation_unit) "/*=============================================================================\nSound.h\nProject: Sonata Engine\nAuthor: <NAME>\n=============================================================================*/\n\n#ifndef _SE_AUDIO_SOUND_H_\n#define _SE_AUDIO_SOUND_H_\n\n#include "Core/Core.h"\n#incl...
686
26
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 35.73, "nodes": 371, "errors": 0, "source_hash": "bca96c47ebb6d990ac3aadc6c0d02b22601e92ec6638afc446a884daa6fb5b94", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,505
c
#ifndef ETSLIB_H #define ETSLIB_H #include "esp_missing.h" int ICACHE_FLASH_ATTR snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4))); void ICACHE_FLASH_ATTR stdout_init(void); int ICACHE_FLASH_ATTR strcasecmp(const char *s1, const char *s2); int ICACHE_FLASH_ATTR strncase...
33.67
30
(translation_unit) "#ifndef ETSLIB_H\n#define ETSLIB_H\n\n#include "esp_missing.h"\n\nint ICACHE_FLASH_ATTR snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));\nvoid ICACHE_FLASH_ATTR stdout_init(void);\nint ICACHE_FLASH_ATTR strcasecmp(const char *s1, const char *s2);\nin...
237
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 33.67, "nodes": 183, "errors": 0, "source_hash": "2f69bbd05f780c872a35f442fa9ab3d1dd4c33210c2ced2b1803e2543b8a1b60", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,506
c
#ifndef ALI_RDSREGION_CREATE_UPLOAD_PATH_FOR_SQ_LSERVER_TYPESH #define ALI_RDSREGION_CREATE_UPLOAD_PATH_FOR_SQ_LSERVER_TYPESH #include <stdio.h> #include <string> #include <vector> namespace aliyun { struct RdsRegionCreateUploadPathForSQLServerRequestType { std::string owner_id; std::string resource_owner_a...
28.36
25
(translation_unit) "#ifndef ALI_RDSREGION_CREATE_UPLOAD_PATH_FOR_SQ_LSERVER_TYPESH \n#define ALI_RDSREGION_CREATE_UPLOAD_PATH_FOR_SQ_LSERVER_TYPESH \n#include <stdio.h> \n#include <string> \n#include <vector> \nnamespace aliyun { \nstruct RdsRegionCreateUploadPathForSQLServerRequestType { \n std::string owner_id; \n ...
134
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.36, "nodes": 86, "errors": 0, "source_hash": "42bc8df9e892159429ead3e12f05b66b116acb81e004e996f18a2897444494c2", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,507
c
/** * @file libdlg/msgbox.c * * Yori shell message dialog * * Copyright (c) 2019-2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without ...
37.12
171
(translation_unit) "/**\n * @file libdlg/msgbox.c\n *\n * Yori shell message dialog\n *\n * Copyright (c) 2019-2020 <NAME>\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 re...
904
9
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 37.12, "nodes": 556, "errors": 0, "source_hash": "f10c59b2c5fc5ff2e4a7efedfc7fbaa2d83600eab3dd3bf81174b4d0ae301e52", "categorized_nodes": 436}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,508
c
// // UINavigationController+BLPushTrasition.h // BLTransitionAnimatorLib // // Created by 冰泪 on 2017/6/22. // Copyright © 2017年 冰泪. All rights reserved. // #import <UIKit/UIKit.h> #import "BLTrasitionAnimatorConfig.h" @interface UINavigationController (BLPushTrasition)<UINavigationControllerDelegate> - (void)...
30
14
(translation_unit) "//\n// UINavigationController+BLPushTrasition.h\n// BLTransitionAnimatorLib\n//\n// Created by 冰泪 on 2017/6/22.\n// Copyright © 2017年 冰泪. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BLTrasitionAnimatorConfig.h"\n\n\n@interface UINavigationController (BLPushTrasition)<UINavigati...
68
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.0, "nodes": 41, "errors": 0, "source_hash": "147b257fb4bc040c564e64a00035c52f2d54aa6920aa8d6d61cac3c4831c051c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit....
9,509
c
// // name : <NAME> // email: <EMAIL> // RA : RA108786 // // description: T3 // #include <stdio.h> #include <float.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> // NOTES(ciroceissler): include pthread header #include <pthread.h> // NOTES(ciroceissler): auxiliar macro used at 'p...
26.04
136
(translation_unit) "//\n// name : <NAME>\n// email: <EMAIL>\n// RA : RA108786\n//\n// description: T3\n//\n\n#include <stdio.h>\n#include <float.h>\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/time.h>\n\n// NOTES(ciroceissler): include pthread header\n#include <pthread.h>\n\n// NOTES(ci...
1,064
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 26.04, "nodes": 643, "errors": 0, "source_hash": "187430802dcc2d1461c1e697094b460afaa4f548ea76aa97ce73a8ed62ab5bf7", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,510
c
#ifndef CONTROLNODE_H #define CONTROLNODE_H #include <vector> #include <tree_node.h> namespace BT { class ControlNode : public TreeNode { protected: // Children vector std::vector<TreeNode*> children_nodes_; // Children states std::vector<ReturnStatus> children_states_; ...
29.89
37
(translation_unit) "#ifndef CONTROLNODE_H\n#define CONTROLNODE_H\n\n#include <vector>\n\n#include <tree_node.h>\n\nnamespace BT\n{\n class ControlNode : public TreeNode\n {\n protected:\n // Children vector\n std::vector<TreeNode*> children_nodes_;\n\n // Children states\n std::vect...
200
8
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.89, "nodes": 124, "errors": 0, "source_hash": "3e5432d243f737573ca35cdde051a6014bc6915208cf29230862b62f0877c628", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,511
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <CoreSuggestionsInternals/SGCuratedChangeNotificationsBaseListener.h> @interface SGCuratedChangeNotificationsAddressBookListener : SGCuratedChangeNotificationsBaseListener { ...
30.07
14
(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 <CoreSuggestionsInternals/SGCuratedChangeNotificationsBaseListener.h>\n\n@interface SGCuratedChangeNotificationsAddressBookListener : SGCuratedChangeNoti...
66
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.07, "nodes": 37, "errors": 0, "source_hash": "4930cc9a50e00e46c71028255eb4c28a43951bb3f0b14280964dc97e01ad5eec", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,512
c
//************************************************************************* //** OPOS Lights Internals // // Lights header file for OPOS Controls and Service Objects. // //************************************************************************* typedef [helpstring("OPOS Lights Internals")] enum { PIDXLgt_MaxLig...
38.53
15
(translation_unit) "//*************************************************************************\n//** OPOS Lights Internals\n//\n// Lights header file for OPOS Controls and Service Objects.\n//\n//*************************************************************************\n\ntypedef [helpstring("OPOS Lights Internals")...
51
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.53, "nodes": 29, "errors": 0, "source_hash": "f14eeeaeacad8549ec2dc37d8e8b13fe3b2d90fccb286fa9a433fd8fddf44205", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "typedef [helpstr...
9,513
c
//global image dimensions int image_m=1; //will be set later int image_n=1; int image_o=1; int image_d=12; float timeP,timeD; //global variables for comp. time //struct for multi-threading struct cost_data{ //float* targetS; float* warped1S; uint64_t* targetS; uint64_t* warped1S; //float* meanvar1; floa...
33.24
255
(translation_unit) "//global image dimensions\nint image_m=1; //will be set later\nint image_n=1;\nint image_o=1; int image_d=12;\nfloat timeP,timeD; //global variables for comp. time\n\n\n\n//struct for multi-threading\nstruct cost_data{\n //float* targetS; float* warped1S;\n uint64_t* targetS; uint64_t* warped1...
2,869
34
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 33.24, "nodes": 1768, "errors": 0, "source_hash": "b06d4a481fb556a0984436f8bef35eff9784ea1a47ff852e474342124548e918", "categorized_nodes": 1249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int i...
9,514
c
/* * json rpc server * * @build make jsonrpc * @server bin/jsonrpc_server 1234 * @client bin/jsonrpc_client 127.0.0.1 1234 add 1 2 * */ #include "hloop.h" #include "hbase.h" #include "hsocket.h" #include "cJSON.h" #include "router.h" #include "handler.h" // hloop_create_tcp_server -> on_accept -> hio_read...
32.29
108
(translation_unit) "/*\n * json rpc server\n *\n * @build make jsonrpc\n * @server bin/jsonrpc_server 1234\n * @client bin/jsonrpc_client 127.0.0.1 1234 add 1 2\n *\n */\n\n#include "hloop.h"\n#include "hbase.h"\n#include "hsocket.h"\n\n#include "cJSON.h"\n#include "router.h"\n#include "handler.h"\n\n// hloop_creat...
1,009
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 32.29, "nodes": 564, "errors": 0, "source_hash": "8ab65330d0b350a2b0d5dacc4d6d4048e7a2d26245c81e16d4392cddf6836727", "categorized_nodes": 370}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,515
c
/* * Copyright 2019 The Hafnium Authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
27.02
58
(translation_unit) "/*\n * Copyright 2019 The Hafnium Authors.\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 * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
214
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.02, "nodes": 126, "errors": 0, "source_hash": "9ccd2935f87ace0412b25208e1e35b32396cc1ed3364a9daece358d2cb361d29", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,516
c
#ifndef _TNA_TASKING_MUTEX_H_H #define _TNA_TASKING_MUTEX_H_H value namespace std { struct mutex; } namespace tna { struct mutex_t { std::mutex* p_mutex_impl = nullptr; }; void mutex_init(mutex_t* mutex); void mutex_release(mutex_t* mutex); void mutex_lock(mutex_t* mutex); void mutex_unlock(mutex_t* m...
14
25
(translation_unit) "#ifndef _TNA_TASKING_MUTEX_H_H\n#define _TNA_TASKING_MUTEX_H_H value\n\nnamespace std\n{\n struct mutex;\n}\n\n\nnamespace tna\n{\n\nstruct mutex_t\n{\n std::mutex* p_mutex_impl = nullptr;\n};\n \n\nvoid\nmutex_init(mutex_t* mutex);\n\nvoid\nmutex_release(mutex_t* mutex);\n\nvoid\nmutex_lock(mute...
99
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 14.0, "nodes": 70, "errors": 0, "source_hash": "aa07f980132a80becfcd669454f99108f4a93f4e2085e134dcd2f88c25771ed9", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,517
c
// // DTIDateTimePreferencesViewController.h // DesktopTime Preferences // // Created by <NAME> on 30.01.21. // #import <Cocoa/Cocoa.h> #import "DTIPreferencesContentViewController.h" NS_ASSUME_NONNULL_BEGIN @interface DTIDateTimePreferencesViewController : DTIPreferencesContentViewController @property (weak, non...
30.57
14
(translation_unit) "//\n// DTIDateTimePreferencesViewController.h\n// DesktopTime Preferences\n//\n// Created by <NAME> on 30.01.21.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "DTIPreferencesContentViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DTIDateTimePreferencesViewController : DTIPreferencesContentVie...
67
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.57, "nodes": 44, "errors": 0, "source_hash": "78fb630cb8be5227ea0375be2abd9b28f6ebb20695a50158ad1de90eb581c34e", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,518
c
#define SERVICE_NAME_MAX_LEN 128 #define DOMAIN_NAME_MAX_LEN 128 enum log_type { LOG_TYPE_MEMORY, LOG_TYPE_SYSLOG, LOG_TYPE_DONTCHANGE, LOG_TYPE_NONE }; enum service_status { SERVICE_OFF, SERVICE_STOP, SERVICE_POST_STOP, SERVICE_START, SERVICE_POST_START, SERVICE_FAILED, SERVICE_RESTART, SERVICE_POST_RESTA...
17.67
21
(translation_unit) "#define SERVICE_NAME_MAX_LEN 128\n#define DOMAIN_NAME_MAX_LEN 128\nenum log_type {\n LOG_TYPE_MEMORY,\n LOG_TYPE_SYSLOG,\n LOG_TYPE_DONTCHANGE,\n LOG_TYPE_NONE\n};\n\nenum service_status {\n SERVICE_OFF,\n SERVICE_STOP,\n SERVICE_POST_STOP,\n SERVICE_START,\n SERVICE_POST_START,\n SERVICE_FAILED,\n ...
67
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.67, "nodes": 48, "errors": 0, "source_hash": "9acb70f559d75484ef9fb506193ae3a1cb9ec2b97ca8086f90c93f96b20cc65d", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SE...
9,519
c
// // ViewController.h // WebVerifySample // // Created by <NAME> on 2/18/14. // Copyright (c) 2014 ID.me, Inc. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
20.4
10
(translation_unit) "//\n// ViewController.h\n// WebVerifySample\n//\n// Created by <NAME> on 2/18/14.\n// Copyright (c) 2014 ID.me, Inc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// ViewController.h" (comment) "// ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.4, "nodes": 11, "errors": 0, "source_hash": "068b57e1e3e456f7534e98d8c02da96de230e305d5199f859c963ead4afea5cf", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
9,520
c
#ifndef __DBUS_UTIL_H__ #define __DBUS_UTIL_H__ #include <stdlib.h> #include <stdio.h> static inline void enforce_error (DBusError const* error) { if (dbus_error_is_set(error)) { fprintf(stderr, "%s: %s\n", error->name, error->message); fflush(stderr); abort(); } } #endif
22.46
13
(translation_unit) "#ifndef __DBUS_UTIL_H__\n#define __DBUS_UTIL_H__\n\n#include <stdlib.h>\n#include <stdio.h>\n\nstatic inline void enforce_error (DBusError const* error)\n{\n if (dbus_error_is_set(error)) {\n fprintf(stderr, "%s: %s\n", error->name, error->message);\n fflush(stderr);\n abort(...
88
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.46, "nodes": 50, "errors": 0, "source_hash": "9b5f1b19a72eec07555b39efa6585bc3e1ed77c9b70d75d3fc46b4e8171501b9", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,521
c
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 agr...
30.05
297
(translation_unit) "/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless required...
1,882
71
{"language": "c", "success": true, "metadata": {"lines": 297, "avg_line_length": 30.05, "nodes": 1053, "errors": 0, "source_hash": "9e06282ac001ced1ac2da9afd76e2a1e42bd8f023608268cfb0a02c528a7fe72", "categorized_nodes": 704}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,522
c
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "include/todo_io/todocmd.h" #include "include/debug/debug.h" void todo_add(cmd_obj *cmd) { #ifdef DEBUG prt_info(2, "todo_add"); #endif FILE *todo_file; char buffer[MAX_ARGS]; int i; /* Failure to run if todo_body[0] is null */ if(!cmd->todo...
23.51
93
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n#include "include/todo_io/todocmd.h"\n#include "include/debug/debug.h"\n\nvoid todo_add(cmd_obj *cmd)\n{\n #ifdef DEBUG\n prt_info(2, "todo_add");\n #endif\n\n FILE *todo_file;\n char buffer[MAX_ARGS];\n int i;\n\n /* Failure to run if to...
853
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 23.51, "nodes": 455, "errors": 0, "source_hash": "91890d0a985293ffaa50d10ca727f8aeaf6269bab961085ab0a7bb3b2f041603", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,523
c
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #include <stdio.h> #include <string.h> #include <stdint.h> #include <errno.h> #include <sys/queue.h> #include <rte_common.h> #include <rte_log.h> #include <rte_malloc.h> #include <rte_memory.h> #include <rte_memcpy.h> #include <rt...
27.12
144
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause\n * Copyright(c) 2010-2014 Intel Corporation\n */\n\n#include <stdio.h>\n#include <string.h>\n#include <stdint.h>\n#include <errno.h>\n#include <sys/queue.h>\n#include <rte_common.h>\n#include <rte_log.h>\n#include <rte_malloc.h>\n#include <rte_memory.h>\n#in...
1,055
2
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 27.12, "nodes": 688, "errors": 0, "source_hash": "773fcc47e0458d123e694a90bf1b20441c75831cef8da71bb894de32752c6412", "categorized_nodes": 487}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,524
c
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to b...
31.28
39
(translation_unit) "// ==++==\n//\n// \n// Copyright (c) 2006 Microsoft Corporation. All rights reserved.\n// \n// The use and distribution terms for this software are contained in the file\n// named license.txt, which can be found in the root of this distribution.\n// By using this software in any fas...
154
1
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.28, "nodes": 71, "errors": 0, "source_hash": "eb5bc2c3aa67a13a48c561267f5f411d9e8391b09384ce60f6ff8e2e91101b29", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
9,525
c
/*! * @file bare.h * @brief Entry point and intialisation declrations for the bare extention. */ #ifndef _METERPRETER_SOURCE_EXTENSION_BARE_BARE_H #define _METERPRETER_SOURCE_EXTENSION_BARE_BARE_H #define TLV_TYPE_EXTENSION_BARE 0 // Custom TLVs go here #endif
28.33
9
(translation_unit) "/*!\n * @file bare.h\n * @brief Entry point and intialisation declrations for the bare extention.\n */\n#ifndef _METERPRETER_SOURCE_EXTENSION_BARE_BARE_H\n#define _METERPRETER_SOURCE_EXTENSION_BARE_BARE_H\n\n#define TLV_TYPE_EXTENSION_BARE 0\n\n// Custom TLVs go here\n\n#endif\n" (comment) "/*!\n ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.33, "nodes": 11, "errors": 0, "source_hash": "9434eeecc08be7889bfbd95c48effc118773a1796f261f955d37ca3193c5606d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _M...
9,526
c
#ifndef _ROS_frontier_exploration_Frontier_h #define _ROS_frontier_exploration_Frontier_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "geometry_msgs/Point.h" namespace frontier_exploration { class Frontier : public ros::Msg { public: uint32_t size; fl...
34.74
58
(translation_unit) "#ifndef _ROS_frontier_exploration_Frontier_h\n#define _ROS_frontier_exploration_Frontier_h\n\n#include <stdint.h>\n#include <string.h>\n#include <stdlib.h>\n#include "ros/msg.h"\n#include "geometry_msgs/Point.h"\n\nnamespace frontier_exploration\n{\n\n class Frontier : public ros::Msg\n {\n pub...
721
7
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.74, "nodes": 465, "errors": 0, "source_hash": "5eecc40106cf25280fc446b5857e2deab73615d84620e7e7999dab66867cc8bf", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,527
c
#ifndef GE25519_H #define GE25519_H /* * Arithmetic on the twisted Edwards curve -x^2 + y^2 = 1 + dx^2y^2 * with d = -(121665/121666) = * 37095705934669439343138083508754565189542113879843219016388785533085940283555 * Base point: * (15112221349535400772501151409588531511454012693041857206046113283949847762202,463...
34.55
66
(translation_unit) "#ifndef GE25519_H\n#define GE25519_H\n\n/*\n * Arithmetic on the twisted Edwards curve -x^2 + y^2 = 1 + dx^2y^2\n * with d = -(121665/121666) =\n * 37095705934669439343138083508754565189542113879843219016388785533085940283555\n * Base point:\n * (15112221349535400772501151409588531511454012693041857...
638
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 34.55, "nodes": 449, "errors": 0, "source_hash": "2c3cd29c41b5145e4c2da80509beee17a9a574a87f87677518189f135da116c1", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,528
c
// // YCTableViewEditController.h // UI // // Created by release on 2020/8/7. // Copyright © 2020 Mr. release. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface YCTableViewEditController : UIViewController @end NS_ASSUME_NONNULL_END
21.5
12
(translation_unit) "//\n// YCTableViewEditController.h\n// UI\n//\n// Created by release on 2020/8/7.\n// Copyright © 2020 Mr. release. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YCTableViewEditController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (com...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.5, "nodes": 14, "errors": 0, "source_hash": "57a0fb42eb7cee3079022ab7d7b6784be1b99e010cc3898850ec1b115ae50fde", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
9,529
c
#ifndef WATCHER_H #define WATCHER_H #include <QWidget> #include <QLabel> #include <QFileSystemWatcher> class Watcher : public QWidget { Q_OBJECT public: Watcher(QWidget *parent = 0); ~Watcher(); public slots: void directoryChanged(QString path); private: //监视当前目录,不能监视当前目录下的子目录中文件变化 QLabel *...
19.21
19
(translation_unit) "fndef WATCHER_H\n#define WATCHER_H\n\n#include <QWidget>\n#include <QLabel>\n#include <QFileSystemWatcher>\n\nclass Watcher : public QWidget\n{\n Q_OBJECT\npublic:\n Watcher(QWidget *parent = 0);\n ~Watcher();\n\npublic slots:\n void directoryChanged(QString path);\n\nprivate:\n //监视当...
89
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.21, "nodes": 62, "errors": 0, "source_hash": "daf28a1a83bf6aa35a7571f90fb7fbf1648fdb726216548c9e5f506a9e74d320", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef WA...
9,530
c
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2019 Datadog, Inc. #include "kubeutil.h" #include "cgo_free.h" #include <stringutils.h> // these mu...
33.23
53
(translation_unit) "// Unless explicitly stated otherwise all files in this repository are licensed\n// under the Apache License Version 2.0.\n// This product includes software developed at Datadog (https://www.datadoghq.com/).\n// Copyright 2019 Datadog, Inc.\n#include "kubeutil.h"\n\n#include "cgo_free.h"\n#include <...
331
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 33.23, "nodes": 192, "errors": 0, "source_hash": "bd624bff249f9fd887af13e79a090e4c4beba175120c9636ed959d89d1911524", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,531
c
// // FREventFilterWhatYouSeeCell.h // Friendly // // Created by D on 25.04.16. // Copyright © 2016 TecSynt. All rights reserved. // #import "BSBaseTableViewCell.h" #import "FREventFilterWhatYouSeeCellViewModel.h" @interface FREventFilterWhatYouSeeCell : BSBaseTableViewCell @end
24.82
11
(translation_unit) "//\n// FREventFilterWhatYouSeeCell.h\n// Friendly\n//\n// Created by D on 25.04.16.\n// Copyright © 2016 TecSynt. All rights reserved.\n//\n\n#import "BSBaseTableViewCell.h"\n#import "FREventFilterWhatYouSeeCellViewModel.h"\n\n@interface FREventFilterWhatYouSeeCell : BSBaseTableViewCell\n\n@end\...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.82, "nodes": 11, "errors": 0, "source_hash": "c3a73e658187a5c617d45b9e849385a6ae3f37804749a7412c398cd86fb20f82", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"B...
9,532
c
// // LEButton.h // FireflySDK_Example // // Created by leoan on 2020/3/11. // Copyright © 2020 <NAME> All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LEButton : UIButton @end NS_ASSUME_NONNULL_END
18.75
12
(translation_unit) "//\n// LEButton.h\n// FireflySDK_Example\n//\n// Created by leoan on 2020/3/11.\n// Copyright © 2020 <NAME> All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LEButton : UIButton\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// LEBut...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.75, "nodes": 14, "errors": 0, "source_hash": "d53fecb73993a2ebf20c75be695d3cf6b37f4bdc887f08cff16e416b52b078a3", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
9,533
c
#import <UIKit/UIKit.h> #import "ForgeTask.h" @interface reload_Util : NSObject + (BOOL)updateAvailable; + (void)updateWithLock:(ForgeTask*)task; + (void)applyUpdate:(ForgeTask*)task; + (NSString*)getUpdateState; + (void)setUpdateState:(NSString*)updateState; + (BOOL)reloadManual; + (BOOL)reloadEnabled; + (NSString*)...
29.08
12
(translation_unit) "#import <UIKit/UIKit.h>\n#import "ForgeTask.h"\n\n@interface reload_Util : NSObject\n\n+ (BOOL)updateAvailable;\n+ (void)updateWithLock:(ForgeTask*)task;\n+ (void)applyUpdate:(ForgeTask*)task;\n+ (NSString*)getUpdateState;\n+ (void)setUpdateState:(NSString*)updateState;\n+ (BOOL)reloadManual;\n+ (BO...
139
13
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.08, "nodes": 89, "errors": 0, "source_hash": "ea6868de878583f528101b62b05d16fc23d61e595c1ec1ac387047fd48b817db", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,534
c
/************************************************************************** Copyright (c) 2021 sewenew 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/licen...
32.61
79
(translation_unit) "/**************************************************************************\n Copyright (c) 2021 sewenew\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 ...
478
19
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 32.61, "nodes": 298, "errors": 0, "source_hash": "0af937990d800bd2618abf3321f06777482d9f0c53614546f5e9ff888c42caee", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,535
c
#include "ruby_utils.h" VALUE cutils_sympify(VALUE self, VALUE operand) { VALUE result; basic_struct *cbasic_operand; cbasic_operand = basic_new_heap(); sympify(operand, cbasic_operand); result = Data_Wrap_Struct(Klass_of_Basic(cbasic_operand), NULL, cbasic_free_hea...
32.89
27
(translation_unit) "#include "ruby_utils.h"\n\nVALUE cutils_sympify(VALUE self, VALUE operand)\n{\n\n VALUE result;\n\n basic_struct *cbasic_operand;\n cbasic_operand = basic_new_heap();\n\n sympify(operand, cbasic_operand);\n result = Data_Wrap_Struct(Klass_of_Basic(cbasic_operand), NULL,\n ...
225
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.89, "nodes": 138, "errors": 0, "source_hash": "88b142a29bc3d2f92110f8c151d06fb320057924d8031e6be89d8fb46118c2ae", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,536
c
/* * CANopen_Consumer_TIME_Receive.c * * Created on: 19 okt. 2021 * Author: <NAME> */ #include "TIME_Internal.h" /* Layers */ #include "TIME_Protocol/TIME_Protocol.h" void CANopen_Consumer_TIME_Receive_Clock(CANopen *canopen, uint8_t node_ID, uint8_t data[]){ /* Only master can send out the TIME to the o...
28.07
14
(translation_unit) "/*\n * CANopen_Consumer_TIME_Receive.c\n *\n * Created on: 19 okt. 2021\n * Author: <NAME>\n */\n\n#include "TIME_Internal.h"\n\n/* Layers */\n#include "TIME_Protocol/TIME_Protocol.h"\n\nvoid CANopen_Consumer_TIME_Receive_Clock(CANopen *canopen, uint8_t node_ID, uint8_t data[]){\n /* Only mast...
61
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.07, "nodes": 34, "errors": 0, "source_hash": "a4ddc5be40c556fdd1f021f78549fd8ec99b731e096388989f58f600c8b764fb", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,537
c
/* * This file is part of the coreboot project. * * Copyright (C) 2013 Google Inc. * Copyright (C) 2015-2016 Intel Corp. * Copyright (C) 2017 Siemens AG * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Sof...
27.61
146
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2013 Google Inc.\n * Copyright (C) 2015-2016 Intel Corp.\n * Copyright (C) 2017 Siemens AG\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as ...
916
1
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 27.61, "nodes": 559, "errors": 0, "source_hash": "04ea586c2376355217b97471772e264784a1f952006de48117fbcebf773a12eb", "categorized_nodes": 396}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,538
c
/** * File: BowVector.h * Date: March 2011 * Author: <NAME> * Description: bag of words vector * License: see the LICENSE.txt file */ #ifndef __D_T_BOW_VECTOR__ #define __D_T_BOW_VECTOR__ #include <iostream> #include <map> #include <vector> #ifdef _MSC_VER #define DLL_EXPORT __declspec(dllexport) #else #define...
21.36
90
(translation_unit) "/**\n * File: BowVector.h\n * Date: March 2011\n * Author: <NAME>\n * Description: bag of words vector\n * License: see the LICENSE.txt file\n */\n\n#ifndef __D_T_BOW_VECTOR__\n#define __D_T_BOW_VECTOR__\n\n#include <iostream>\n#include <map>\n#include <vector>\n\n#ifdef _MSC_VER\n#define DLL_EXPORT...
286
9
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 21.36, "nodes": 174, "errors": 0, "source_hash": "349d6ddc1a4429d8b3c437e4c18addd9507fbb9c11984546b9fe7bf724a11acb", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,539
c
#ifndef SHARED_LINKED_LIST_TEST_H_INCLUDED_ #define SHARED_LINKED_LIST_TEST_H_INCLUDED_ #include <CUnit/Basic.h> #include "string.h" #include "linked_list.h" typedef struct TestingStruct_ { int id; char *str; } TestingStruct; void linked_list_test(); void linked_list_test_create_destroy(); void linked_lis...
35.12
26
(translation_unit) "#ifndef SHARED_LINKED_LIST_TEST_H_INCLUDED_\n#define SHARED_LINKED_LIST_TEST_H_INCLUDED_\n\n#include <CUnit/Basic.h>\n\n#include "string.h"\n\n#include "linked_list.h"\n\ntypedef struct TestingStruct_\n{\n int id;\n char *str;\n} TestingStruct;\n\nvoid linked_list_test();\nvoid linked_list_tes...
231
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.12, "nodes": 171, "errors": 0, "source_hash": "20720fdc75fef2c92f8e1a66849aa00f452abf3d1c3ff6ce5b79d01e9ab306dc", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,540
c
// // Player.h // Tale // // Created by AdminMacLC04 on 10/24/13. // Copyright (c) 2013 AdminMacLC04. All rights reserved. // #import "cocos2d.h" #import "GameObject.h" #import "GameLayer.h" @interface Player : GameObject { NSMutableArray* _path; GameLayer * _gameLayer; } @property (strong) NSString* n...
21.85
20
(translation_unit) "//\n// Player.h\n// Tale\n//\n// Created by AdminMacLC04 on 10/24/13.\n// Copyright (c) 2013 AdminMacLC04. All rights reserved.\n//\n\n#import "cocos2d.h"\n\n#import "GameObject.h"\n#import "GameLayer.h"\n\n@interface Player : GameObject {\n NSMutableArray* _path;\n GameLayer * _gameLayer;...
122
17
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.85, "nodes": 78, "errors": 0, "source_hash": "65e2fefd64bf4143c6da55a4e36e121c6a4834b05da465c23394c25e5a74f5b7", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,541
c
// Copyright © 2018 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistry.h> #import <ABI42_0_0UMCore/ABI42_0_0UMSingletonModule.h> NS_ASSUME_NONNULL_BEGIN @interface ABI42_0_0UMModuleRegistryProvider : NSObject @property (nonatomic, weak) id<ABI42...
46.92
13
(translation_unit) "// Copyright © 2018 650 Industries. All rights reserved.\n\n#import <Foundation/Foundation.h>\n#import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistry.h>\n#import <ABI42_0_0UMCore/ABI42_0_0UMSingletonModule.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ABI42_0_0UMModuleRegistryProvider : NSObject\n\n@prope...
115
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 46.92, "nodes": 73, "errors": 0, "source_hash": "37311f021e5d094c8f384eff9725dba6691983594f384ed8cc1146028b2d61e2", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,542
c
#ifndef _C_API_H_ #define _C_API_H_ #ifdef __cplusplus extern "C" { #endif // TODO #ifdef __cplusplus } #endif #endif
8.64
14
(translation_unit) "#ifndef _C_API_H_ \n#define _C_API_H_ \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n// TODO \n \n#ifdef __cplusplus \n} \n#endif \n \n#endif \n" (preproc_ifdef) "#ifndef _C_API_H_ \n#define _C_API_H_ \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n// TODO \n \n#ifdef __cplusplus \n} \n...
28
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 8.64, "nodes": 20, "errors": 0, "source_hash": "336b2d35895bc0926e204bb38fea2bea5a6853d568078b093848da8ffd1816b1", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,543
c
#ifndef CQIllustratorGrid_H #define CQIllustratorGrid_H class CQIllustratorGrid { public: CQIllustratorGrid() { } bool getEnabled() const { return enabled_; } void setEnabled(bool enabled) { enabled_ = enabled; } void draw(CQIllustratorShapeDrawer *drawer, const CBBox2D &bbox); private: bool enabled...
27.79
14
(translation_unit) "#ifndef CQIllustratorGrid_H\n#define CQIllustratorGrid_H\n\nclass CQIllustratorGrid {\n public:\n CQIllustratorGrid() { }\n\n bool getEnabled() const { return enabled_; }\n void setEnabled(bool enabled) { enabled_ = enabled; }\n\n void draw(CQIllustratorShapeDrawer *drawer, const CBBox2D &bbox);...
110
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.79, "nodes": 57, "errors": 0, "source_hash": "18cd311197ed9b45179d1453c89442a6e6c59a9d1f4f00471c22b01d383e8a7e", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,544
c
/* Motor <<EMAIL>> see LICENSE for detail */ #ifndef MOTOR_PHYSICSBULLET_STDAFX_H_ #define MOTOR_PHYSICSBULLET_STDAFX_H_ /**************************************************************************************************/ #include <motor/stdafx.h> /*****************************************************************...
43.88
8
(translation_unit) "/* Motor <<EMAIL>>\n see LICENSE for detail */\n\n#ifndef MOTOR_PHYSICSBULLET_STDAFX_H_\n#define MOTOR_PHYSICSBULLET_STDAFX_H_\n/**************************************************************************************************/\n\n#include <motor/stdafx.h>\n\n/************************************...
14
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 43.88, "nodes": 10, "errors": 0, "source_hash": "fa511b23909b536180263e71eb48f5747956fb88ac102e3a898370f88370cb55", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MO...
9,545
c
/*! * * \brief An interface for RemoteHandleImpl, meant to omit the * dependency between card_base and remote_device. * * \copyright Copyright (c) 2017-2019 Governikus GmbH & Co. KG, Germany */ #pragma once #include "DataChannel.h" #include "GlobalStatus.h" #include "messages/IfdVersion.h" #include "messages/Re...
32.42
43
(translation_unit) "/*!\n *\n * \brief An interface for RemoteHandleImpl, meant to omit the\n * dependency between card_base and remote_device.\n *\n * \copyright Copyright (c) 2017-2019 Governikus GmbH & Co. KG, Germany\n */\n\n#pragma once\n\n#include "DataChannel.h"\n#include "GlobalStatus.h"\n#include "messages/Ifd...
317
23
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.42, "nodes": 183, "errors": 0, "source_hash": "16d1d566ae8c13c7883aa3dbede0b9183fdae07cc973164e905f504f72653a69", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,546
c
/** * Infinity - A C++ RDMA library for InfiniBand * * (c) 2018 <NAME>, ETH Zurich * Contact: <EMAIL> * */ #ifndef INFINITY_H_ #define INFINITY_H_ #include <infinity/core/Context.h> #include <infinity/core/Configuration.h> #include <infinity/memory/Atomic.h> #include <infinity/memory/Buffer.h> #include <infinit...
28.91
23
(translation_unit) "/**\n * Infinity - A C++ RDMA library for InfiniBand\n *\n * (c) 2018 <NAME>, ETH Zurich\n * Contact: <EMAIL>\n *\n */\n\n#ifndef INFINITY_H_\n#define INFINITY_H_\n\n#include <infinity/core/Context.h>\n#include <infinity/core/Configuration.h>\n#include <infinity/memory/Atomic.h>\n#include <infinity/...
49
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.91, "nodes": 46, "errors": 0, "source_hash": "2665c41a8a0230473d09567bcd5c9763b12d0f080958be140f21053fbb45719d", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,547
c
//******************************************************************* //Author: <NAME> //Description: HRVv2 Header File //******************************************************************* //Register 0x0 typedef union hrvv2_r0{ struct{ // LSB First unsigned HRV_TOP_CONV_RATIO : 4; }; uint32_t as_int; } hrvv...
30.45
47
(translation_unit) "//*******************************************************************\n//Author: <NAME>\n//Description: HRVv2 Header File\n//*******************************************************************\n\n//Register 0x0\ntypedef union hrvv2_r0{\n struct{ // LSB First\n unsigned HRV_TOP_CONV_RATIO : 4;\n ...
291
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.45, "nodes": 180, "errors": 0, "source_hash": "ef7f2330e5d14a544c9910dc3c26b3f3ac83511b093f646f29409abf0142ac78", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
9,548
c
/* * Copyright 2019-present Open Networking Foundation * Copyright (c) 2017 Sprint * * SPDX-License-Identifier: Apache-2.0 */ #ifndef C3PO_HSS_INCLUDE_UTIL_H_ #define C3PO_HSS_INCLUDE_UTIL_H_ typedef union { uint64_t u64; uint8_t u8[8]; } SqnU64Union; #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define SQN_T...
30.42
43
(translation_unit) "/*\n* Copyright 2019-present Open Networking Foundation\n* Copyright (c) 2017 Sprint\n*\n* SPDX-License-Identifier: Apache-2.0\n*/\n\n#ifndef C3PO_HSS_INCLUDE_UTIL_H_\n#define C3PO_HSS_INCLUDE_UTIL_H_\n\ntypedef union\n{\n uint64_t u64;\n uint8_t u8[8];\n} SqnU64Union;\n\n#if __BYTE_ORDER__ == _...
136
3
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 30.42, "nodes": 91, "errors": 0, "source_hash": "aee85c6650bdac5683eceb5270cd8f10f4c4b2d9f212466aa504fff2a9fc7f2b", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,549
c
#ifndef OTIC_TIME_SERIES_H #define OTIC_TIME_SERIES_H #ifdef __cplusplus extern "C" { #endif #include "base.h" typedef enum { OTIC_TIMESERIE_NO_ERROR, OTIC_TIMESERIE_TIMESTAMP_NOT_IN_CHRONOLOGICAL_ORDER, } timeSerie_error_e; typedef struct { uint8_t fillEmpty; uint64_t sampleInterval; uint64_t c...
29.27
30
(translation_unit) "#ifndef OTIC_TIME_SERIES_H\n#define OTIC_TIME_SERIES_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "base.h"\n\ntypedef enum {\n OTIC_TIMESERIE_NO_ERROR,\n OTIC_TIMESERIE_TIMESTAMP_NOT_IN_CHRONOLOGICAL_ORDER,\n} timeSerie_error_e;\n\ntypedef struct {\n uint8_t fillEmpty;\n uin...
188
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.27, "nodes": 137, "errors": 0, "source_hash": "a987183d2fc07c19190b4eeb053d2e7df726a52600ff001b0438b02d5ccb1ca6", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,550
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "TSKViewController.h" @interface TVSettingsOSUpdateSeedViewController : TSKViewController { } - (id)_descriptionForConfiguration:(id)arg1; // IMP=0x0000000100025fa8 - (void)_upd...
42.11
19
(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 "TSKViewController.h"\n\n@interface TVSettingsOSUpdateSeedViewController : TSKViewController\n{\n}\n\n- (id)_descriptionForConfiguration:(id)arg1; // IMP...
160
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 42.11, "nodes": 84, "errors": 0, "source_hash": "b26989084db656efa90c1cfae3a99f71811fd9c32f4faa0790fbad715ac4de79", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,551
c
#include <stdio.h> #ifndef __USE_GNU #define __USE_GNU #endif #include <sched.h> #include <errno.h> #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 #endif #include <string.h> #ifndef __USE_POSIX199309 #define __USE_POSIX199309 #include <time.h> #undef __USE_POSIX199309 #else #include <time.h> #endif #include <stdlib.h>...
22.39
67
(translation_unit) "#include <stdio.h>\n#ifndef __USE_GNU\n#define __USE_GNU\n#endif\n#include <sched.h>\n#include <errno.h>\n#ifndef _XOPEN_SOURCE\n#define _XOPEN_SOURCE 600\n#endif\n#include <string.h>\n#ifndef __USE_POSIX199309\n#define __USE_POSIX199309\n#include <time.h>\n#undef __USE_POSIX199309\n#else\n#include ...
485
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 22.39, "nodes": 312, "errors": 0, "source_hash": "dbf558b1878f967eb56f9ee83b455331a294b0ebdd776c36857820af3cdb20a2", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,552
c
#pragma once class FeigReader { public: FeigReader(void); ~FeigReader(void); int connect(void); int disconnect(void); int write(unsigned char[], unsigned char, unsigned char, unsigned char[]); int read(unsigned char[]); int readUid(void); int resetToReady(void); unsigned char *getRsp(void); int getRspLen(voi...
21.61
18
(translation_unit) "#pragma once\n\nclass FeigReader\n{\npublic:\n FeigReader(void);\n ~FeigReader(void);\n int connect(void);\n int disconnect(void);\n int write(unsigned char[], unsigned char, unsigned char, unsigned char[]);\n int read(unsigned char[]);\n int readUid(void);\n int resetToReady(void);\n unsigned char ...
166
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.61, "nodes": 108, "errors": 0, "source_hash": "b534ddb599108cafb0165f5a73a240d21f6386c1b529e3c3916eff5e7452cf3b", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,553
c
/* * Copyright (C) 2011, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above...
40.2
192
(translation_unit) "/*\n * Copyright (C) 2011, British Broadcasting Corporation\n * All Rights Reserved.\n *\n * Author: <NAME>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of sour...
1,373
55
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 40.2, "nodes": 894, "errors": 0, "source_hash": "a0ef2f37035e749e003e220e8e5a24862ad020670d9c83925e10c35b3c80f41d", "categorized_nodes": 563}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BMX_OP...
9,554
c
/** * @file dfk/portable/memmem.h * Contains dfkp_memmem function prototype * * @copyright * Copyright (c) 2017 <NAME> * Licensed under the MIT License (see LICENSE) */ #pragma once #include <stddef.h> #include <dfk/config.h> #ifdef __cplusplus extern "C" { #endif /** * Portable version of memmem - locate a s...
24.37
30
(translation_unit) "/**\n * @file dfk/portable/memmem.h\n * Contains dfkp_memmem function prototype\n *\n * @copyright\n * Copyright (c) 2017 <NAME>\n * Licensed under the MIT License (see LICENSE)\n */\n#pragma once\n#include <stddef.h>\n#include <dfk/config.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n * Po...
64
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.37, "nodes": 45, "errors": 0, "source_hash": "9e3352ea2c2433fd0a8978642247ee70c20fd53c555592707c1f448ad2127d55", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,555
c
/** * @Author <NAME> * @Email <EMAIL> * @Date: 2020/5/28 */ #pragma once #include "Condition.h" // 同步工具类,用来协调多个线程之间的同步,或者说起到线程之间的通信 // CountDownLatch的主要作用是确保Thread中传进去的func真的启动了以后 // 外层的start才返回 class CountDownLatch : noncopyable { public: explicit CountDownLatch(int count); void wait(); void countDown();...
18.85
20
(translation_unit) "/**\n * @Author <NAME>\n * @Email <EMAIL>\n * @Date: 2020/5/28\n */\n\n#pragma once\n\n#include "Condition.h"\n\n// 同步工具类,用来协调多个线程之间的同步,或者说起到线程之间的通信\n// CountDownLatch的主要作用是确保Thread中传进去的func真的启动了以后\n// 外层的start才返回\nclass CountDownLatch : noncopyable {\n public:\n explicit CountDownLatch(int count);...
72
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.85, "nodes": 44, "errors": 0, "source_hash": "429a6608bbe3358b368d4585d3f2594657a7024faef2277e5099087c97d6d4d3", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,556
c
#ifndef KINEMATICPATH_H_ #define KINEMATICPATH_H_ #include <vector> #include <memory> struct KinematicPath { std::vector<int> joint_path; std::vector<int> joint_direction_signs; std::vector<int> body_path; }; #endif /* KINEMATICPATH_H_ */
19.5
12
(translation_unit) "#ifndef KINEMATICPATH_H_\n#define KINEMATICPATH_H_\n\n#include <vector>\n#include <memory>\n\nstruct KinematicPath\n{\n std::vector<int> joint_path;\n std::vector<int> joint_direction_signs;\n std::vector<int> body_path;\n};\n\n\n#endif /* KINEMATICPATH_H_ */\n" (preproc_ifdef) "#ifndef KINEMAT...
55
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.5, "nodes": 40, "errors": 0, "source_hash": "419e3ce9efcff8a6fc1a87e6d71aca79c5b17dbb1bfbc432edd5a01e8c09de1c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef K...
9,557
c
// // GlobalMacros.h // MacrosDemo // // Created by 万启鹏 on 2018/7/12. // Copyright © 2018年 iCorki. All rights reserved. // #ifndef GlobalMacros_h #define GlobalMacros_h /// 判断当前编译使用的 Base SDK 版本是否为 iOS 8.0 及以上 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 #define IOS8_SDK_ALLOWED YES #endif /// 判断当前编译使用的 Base SD...
32.85
166
(translation_unit) "//\n// GlobalMacros.h\n// MacrosDemo\n//\n// Created by 万启鹏 on 2018/7/12.\n// Copyright © 2018年 iCorki. All rights reserved.\n//\n\n#ifndef GlobalMacros_h\n#define GlobalMacros_h\n\n/// 判断当前编译使用的 Base SDK 版本是否为 iOS 8.0 及以上\n#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000\n#define IOS8_SDK_ALLOWED Y...
774
12
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 32.85, "nodes": 526, "errors": 0, "source_hash": "a3efa1cf77bb72edc191fada5726647013f602abdd05803eebb40b7bac5e085d", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "lobal...
9,558
c
// // AddWalletByCreateController.h // OpenPlanet // // Created by 王胜利 on 2018/6/8. // Copyright © 2018年 wsl. All rights reserved. // ETH创建钱包 // #import <UIKit/UIKit.h> @interface ETHCreateController : UIViewController @property (nonatomic, strong) NSString *walletName; @property (nonatomic, strong) NSString *...
24.85
13
(translation_unit) "//\n// AddWalletByCreateController.h\n// OpenPlanet\n//\n// Created by 王胜利 on 2018/6/8.\n// Copyright © 2018年 wsl. All rights reserved.\n// ETH创建钱包\n// \n\n#import <UIKit/UIKit.h>\n\n@interface ETHCreateController : UIViewController\n\n@property (nonatomic, strong) NSString *walletName;\n@prope...
55
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.85, "nodes": 36, "errors": 0, "source_hash": "c62b003f7dd49db22d105c63b9f5b62a866d88c14dc512b1e7fcb362f0b130ce", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit.h>\n\...
9,559
c
#pragma once #include <string> #include <variant> #include <QObject> #include "Debugger.h" #include "Graphics.h" #include "Singleton.h" #include "definitions.h" class Debugger; class Graphics; enum class ControllerType { kTypeKeyboard, kTypeMouse, kTypeJoystick }; constexpr int NUMBER_JOYSTICK_KEYS = 19; enum cla...
27.59
79
(translation_unit) "#pragma once\n\n#include <string>\n#include <variant>\n\n#include <QObject>\n\n#include "Debugger.h"\n#include "Graphics.h"\n#include "Singleton.h"\n#include "definitions.h"\n\nclass Debugger;\nclass Graphics;\n\nenum class ControllerType { kTypeKeyboard, kTypeMouse, kTypeJoystick };\n\nconstexpr in...
594
15
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 27.59, "nodes": 392, "errors": 0, "source_hash": "767146ec041d9fb0b93d9d23db1ed526922c87d490b5f5e8ea9e17e6f492c9f6", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,560
c
#include "metric.h" #include <assert.h> #include <stdlib.h> float MseMetric(int n, float *pred, float *truth) { float error = 0; assert(n > 0); for (int i = 0; i < n; ++i) { float diff = truth[i] - pred[i]; error += diff * diff; } return error / n; } float AccMetric(int n, int class_num, float *pred...
25.45
31
(translation_unit) "#include "metric.h"\n#include <assert.h>\n#include <stdlib.h>\n\nfloat MseMetric(int n, float *pred, float *truth) {\n float error = 0;\n assert(n > 0);\n for (int i = 0; i < n; ++i) {\n float diff = truth[i] - pred[i];\n error += diff * diff;\n }\n return error / n;\n}\n\nfloat AccMetric...
297
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.45, "nodes": 205, "errors": 0, "source_hash": "0c38fdc3a8c41de62bb5810355753b4b62bc49d3e6a4c104dc15d90c8062e378", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,561
c
// // path_monitor.h // Network // // Copyright (c) 2017-2019 Apple Inc. All rights reserved. // #ifndef __NW_PATH_MONITOR_H__ #define __NW_PATH_MONITOR_H__ #ifndef __NW_INDIRECT__ #warning "Please include <Network/Network.h> instead of this file directly." #endif // __NW_INDIRECT__ #include <Network/path.h> #inc...
31.85
157
(translation_unit) "//\n// path_monitor.h\n// Network\n//\n// Copyright (c) 2017-2019 Apple Inc. All rights reserved.\n//\n\n#ifndef __NW_PATH_MONITOR_H__\n#define __NW_PATH_MONITOR_H__\n\n#ifndef __NW_INDIRECT__\n#warning "Please include <Network/Network.h> instead of this file directly."\n#endif // __NW_INDIRECT__...
430
4
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 31.85, "nodes": 268, "errors": 0, "source_hash": "6a05f46d98361ca60e597e8c4dffc53947f3e1ba1c9d59fe31da4389f00216a4", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,562
c
/*! * \file * \brief Ambient4 Click example * * # Description * This application is a light intensity-sensing and measuring. * * The demo application is composed of two sections : * * ## Application Init * Initialization device and power ON chip and set resolution mode. * * ## Application T...
22.42
77
(translation_unit) "/*! \n * \file \n * \brief Ambient4 Click example \n * \n * # Description \n * This application is a light intensity-sensing and measuring. \n * \n * The demo application is composed of two sections : \n * \n * ## Application Init \n * Initialization device and power ON chip and set resolution m...
266
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 22.42, "nodes": 133, "errors": 0, "source_hash": "e17bd78a5aa8305a31d0f9b1935991e209cec1f4cbccbb5cc636eb04ad6ed8b4", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,563
c
#pragma once #include <geometry_msgs/Point.h> namespace geometry { template <class T> class CNVecTemplate : public geometry_msgs::Point { public: T rotateZ(double radian) const { return T(x * cos(radian) - y * sin(radian), x * sin(radian) + y * cos(radian), z); } double angleZ() const { return atan2(y, x); ...
38.03
38
(translation_unit) "#pragma once\n\n#include <geometry_msgs/Point.h>\n\nnamespace geometry\n{\n\ntemplate <class T>\nclass CNVecTemplate : public geometry_msgs::Point\n{\npublic:\n T rotateZ(double radian) const { return T(x * cos(radian) - y * sin(radian), x * sin(radian) + y * cos(radian), z); }\n\n double angl...
612
17
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 38.03, "nodes": 385, "errors": 0, "source_hash": "a5b2eb214b2f31e1b808409cd9791e4e8974c2956f7c4254d8ea5b91ed3a5ac8", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,564
c
#import <Foundation/Foundation.h> @class PMKPromise; @class Model; @class DeviceModel; /** Reflects the current state of the valve. Obstruction implying that something is preventing the opening or closing of the valve. May also be used to set the state of the valve. */ extern NSString *const kAttrValveValvestate;...
36.77
26
(translation_unit) "#import <Foundation/Foundation.h>\n\n@class PMKPromise;\n@class Model;\n@class DeviceModel;\n\n\n\n/** Reflects the current state of the valve. Obstruction implying that something is preventing the opening or closing of the valve. May also be used to set the state of the valve. */\nextern NSString *...
199
20
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.77, "nodes": 132, "errors": 0, "source_hash": "dd50a09e6559c2eab8934c459e77b47dabf2e23a3feb030dcf0bf682ffa70e02", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,565
c
// // XXTExplorerEntryCodeReader.h // XXTExplorer // // Created by Zheng on 14/07/2017. // Copyright © 2017 Zheng. All rights reserved. // #import "XXTExplorerEntryReader.h" @interface XXTExplorerEntryCodeReader : XXTExplorerEntryReader @end
23.6
10
(translation_unit) "//\n// XXTExplorerEntryCodeReader.h\n// XXTExplorer\n//\n// Created by Zheng on 14/07/2017.\n// Copyright © 2017 Zheng. All rights reserved.\n//\n\n#import "XXTExplorerEntryReader.h"\n\n@interface XXTExplorerEntryCodeReader : XXTExplorerEntryReader\n\n@end\n" (comment) "//" (comment) "// XX...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.6, "nodes": 9, "errors": 0, "source_hash": "139b53735acf2f96ce4edcdbbf386ff9ec6a313bbfdd93fa4a99d44152aa0021", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"XXT...
9,566
c
/* A simple frontend for libxmp */ /* This file is in public domain */ #include <kernel.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <xmp.h> #include <sifrpc.h> #include <loadfile.h> #include <audsrv.h> #define BUFFER_SIZE 2048 //#define NORETURN #define SCREEN_STDOUT #ifdef NORETURN #def...
25.23
173
(translation_unit) "/* A simple frontend for libxmp */\n/* This file is in public domain */\n\n#include <kernel.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <xmp.h>\n#include <sifrpc.h>\n#include <loadfile.h>\n#include <audsrv.h>\n\n#define BUFFER_SIZE 2048\n\n//#define NORETURN\n#define S...
1,283
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 25.23, "nodes": 722, "errors": 0, "source_hash": "86de7a9c8a8c234790f57ca25bc2d119af9d8ccf72cc41d300dc34c7bbd2a5da", "categorized_nodes": 524}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,567
c
/* * Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * This file is part of PerfExpert. * * PerfExpert is free software: you can redistribute it and/or modify it under * the terms of the The University of Texas at Austin Resea...
26
49
(translation_unit) "/*\n * Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.\n *\n * $COPYRIGHT$\n *\n * Additional copyrights may follow\n *\n * This file is part of PerfExpert.\n *\n * PerfExpert is free software: you can redistribute it and/or modify it under\n * the terms of the The Unive...
139
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.0, "nodes": 98, "errors": 0, "source_hash": "c1d6a34f0c11a5b9d0bfe346b3868848844f71a0528567d858f940bddc287ef8", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
9,568
c
#pragma once void* memcpy(void* dest, void* src, uint16_t size);
31.5
2
(translation_unit) "#pragma once\n\nvoid* memcpy(void* dest, void* src, uint16_t size);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void* memcpy(void* dest, void* src, uint16_t size);" (primitive_type) "void" (pointer_declarator) "* memcpy(voi...
29
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 31.5, "nodes": 23, "errors": 0, "source_hash": "6ddb94bd20b416d266431ae6223ee8f396dadf5e78fed5d9ebc0ac9be0ced807", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
9,569
c
#pragma once /* * NonDeterministic Finite Automata */ #pragma once class CTeNfa { public: CTeNfa(); ~CTeNfa(); };
9.55
11
(translation_unit) "#pragma once\n/*\n* NonDeterministic Finite Automata\n*/\n#pragma once\n\nclass CTeNfa\n{\npublic:\n CTeNfa();\n ~CTeNfa();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "/*\n* NonDeterministic Finite Automata\n*/" (preproc_call) ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 9.55, "nodes": 17, "errors": 0, "source_hash": "035181cfcfb058da9d124374c34c03fee625697e8c4ae6d03cef36ea62984588", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
9,570
c
#ifndef IMPORT_DICTIONARY_DIALOG_H #define IMPORT_DICTIONARY_DIALOG_H #include <memory> #include <vector> #include <QDialog> #include "Db/Database.h" namespace Ui { class ImportDictionaryDialog; }; class ImportDictionaryDialog : public QDialog { Q_OBJECT public: ImportDictionaryDialog(QWidget *pare...
19.91
32
(translation_unit) "#ifndef IMPORT_DICTIONARY_DIALOG_H\n#define IMPORT_DICTIONARY_DIALOG_H\n\n\n#include <memory>\n#include <vector>\n#include <QDialog>\n\n#include "Db/Database.h"\n\n\nnamespace Ui {\n class ImportDictionaryDialog;\n};\n\n\nclass ImportDictionaryDialog : public QDialog\n{\n Q_OBJECT\n\n\npublic:...
162
7
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.91, "nodes": 97, "errors": 0, "source_hash": "8e77923992ebcb673cbec42c6b5b194cad97dd574c0aba46bcb8c0817192e9e1", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,571
c
#include <stdio.h> #include <stdbool.h> #define MAX 10 int list[MAX] = {1,8,4,6,0,3,5,2,7,9}; void display() { int i; printf("["); // navigate through all items for(i = 0; i < MAX; i++) { printf("%d ",list[i]); } printf("]\n"); } void bubbleSort() { int temp; int i,j; bool sw...
20.78
63
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n\n#define MAX 10\n\nint list[MAX] = {1,8,4,6,0,3,5,2,7,9};\n\nvoid display() {\n int i;\n printf("[");\n \n // navigate through all items \n for(i = 0; i < MAX; i++) {\n printf("%d ",list[i]);\n }\n \n printf("]\n");\n}\n\nvoid bubbleSort() ...
451
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 20.78, "nodes": 242, "errors": 0, "source_hash": "b812310dd1d9aae0c654630058a2a5b0e7671c28374c30cea4252fbad1f4dce4", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,572
c
#pragma once #include "../ECS/Systems/ISystem.h" #include "ESound.h" #include "ESoundGroup.h" #include "../Input/Keyboard/FKey.h" #include "../Input/Keyboard/FKeystate.h" #include "../Templates/TArray.h" #include "../Events/Experimental/SEvent.h" namespace t3d { class FSoundSystem : public ISystem { public: // C...
32.72
53
(translation_unit) "#pragma once\n\n#include "../ECS/Systems/ISystem.h"\n#include "ESound.h"\n#include "ESoundGroup.h"\n#include "../Input/Keyboard/FKey.h"\n#include "../Input/Keyboard/FKeystate.h"\n#include "../Templates/TArray.h"\n#include "../Events/Experimental/SEvent.h"\n\nnamespace t3d\n{\n class FSoundSystem : p...
423
23
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 32.72, "nodes": 258, "errors": 0, "source_hash": "0ab8891c00af6117ec92280ff2d1b997e4eaadb57afe81148661d91fc6493abc", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,573
c
#include <nmosh/plugin-if.h> #include <glib.h> #include <stdio.h> #include <stdint.h> static uintptr_t waitloop(uintptr_t in0, uintptr_t in1, uintptr_t* out0,uintptr_t* out1){ GPollFD* fds; int nfds; int timeout; void** c; int r; // out0: status // out1: ZERO c = (void **)g_async_queue_pop...
22.06
110
(translation_unit) "#include <nmosh/plugin-if.h>\n#include <glib.h>\n#include <stdio.h>\n#include <stdint.h>\n\nstatic uintptr_t\nwaitloop(uintptr_t in0, uintptr_t in1, uintptr_t* out0,uintptr_t* out1){\n GPollFD* fds;\n int nfds;\n int timeout;\n void** c;\n int r;\n // out0: status\n // out1: ZERO\n...
725
12
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 22.06, "nodes": 464, "errors": 0, "source_hash": "20505f408fc4bc9e5826193c7ef0c0d6dc6ebae8cefbecae92024973d20b9074", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,574
c
#ifndef __TASK_DEBOUNCE__ #define __TASK_DEBOUNCE__ #include <stdint.h> #include "sapi.h" #include "os.h" #include "os_delay.h" #include "os_event.h" #ifdef __cplusplus extern "C" { #endif //Tamaño0 del stack de la tarea correspondiente al debounce de la tecla #define TASK_DEBOUNCE_STACK_SIZE_BYTES 512 //La cola de ...
36.33
67
(translation_unit) "#ifndef __TASK_DEBOUNCE__\n#define __TASK_DEBOUNCE__\n\n#include <stdint.h>\n#include "sapi.h"\n#include "os.h"\n#include "os_delay.h"\n#include "os_event.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n//Tamaño0 del stack de la tarea correspondiente al debounce de la tecla\n#define TASK_DEBOUNCE_...
260
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 36.33, "nodes": 173, "errors": 0, "source_hash": "be55a90080031ac61075844a39104fdc96573da8bfb31f0c386d28f4c84acc1b", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,575
c
/** * @file * @brief * * @date 06.03.14 * @author <NAME> * @author <NAME> */ #include <fcntl.h> #include <unistd.h> #include <stddef.h> #include <string.h> #include <errno.h> #include <stdarg.h> extern int diag_fd(void); int setup_tty(const char *dev_name) { int fd; fd = diag_fd(); if (fd < 0) { return ...
14.72
29
(translation_unit) "/**\n * @file\n * @brief\n *\n * @date 06.03.14\n * @author <NAME>\n * @author <NAME>\n */\n\n#include <fcntl.h>\n#include <unistd.h>\n#include <stddef.h>\n#include <string.h>\n#include <errno.h>\n#include <stdarg.h>\n\nextern int diag_fd(void);\n\nint setup_tty(const char *dev_name) {\n int fd;\n\n...
133
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 14.72, "nodes": 81, "errors": 0, "source_hash": "69069e5b73b9551e973e37166aa547d11e553019f3c32790cc208258f6de18eb", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,576
c
/* $NetBSD: n_cabs.c,v 1.5 2003/08/07 16:44:50 agc Exp $ */ /* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:...
31.58
207
(translation_unit) "/* $NetBSD: n_cabs.c,v 1.5 2003/08/07 16:44:50 agc Exp $ */\n/*\n * Copyright (c) 1985, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the follow...
1,179
11
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 31.58, "nodes": 695, "errors": 0, "source_hash": "8de7422e5f999a954497313e878bcc7bcd727365a9ebfc16e7f7bd2e60cc96e3", "categorized_nodes": 513}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,577
c
#pragma once #include "Component.h" #include "Globals.h" #include "Module.h" #include "MathGeoLib/include/MathGeoLib.h" #include "ModulePhysics.h" #include "physx/include/PxPhysicsAPI.h" class GameObject; class ComponentTransform; class ComponentRigidDynamic; enum class GeometryType; class ComponentCollider : publ...
31.18
39
(translation_unit) "#pragma once\n\n#include "Component.h"\n#include "Globals.h"\n#include "Module.h"\n#include "MathGeoLib/include/MathGeoLib.h"\n#include "ModulePhysics.h"\n\n#include "physx/include/PxPhysicsAPI.h"\n\nclass GameObject;\nclass ComponentTransform;\nclass ComponentRigidDynamic;\n\nenum class GeometryTyp...
338
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.18, "nodes": 206, "errors": 0, "source_hash": "f0c50a0561827c34b155b9d8567525967077c712947bf4503dbbe1a05b210c5f", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,578
c
// // UIImage+MultiFormat.h // AxcUIKit // // Created by Axc on 2017/6/6. // Copyright © 2017年 Axc_5324. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (MultiFormat) + (UIImage *)coreAxc_imageWithData:(NSData *)data; @end
21.36
11
(translation_unit) "//\n// UIImage+MultiFormat.h\n// AxcUIKit\n//\n// Created by Axc on 2017/6/6.\n// Copyright © 2017年 Axc_5324. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (MultiFormat)\n\n+ (UIImage *)coreAxc_imageWithData:(NSData *)data;\n\n@end\n" (comment) "//" (comment) "// ...
45
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.36, "nodes": 26, "errors": 0, "source_hash": "d19a2c12c776559b208efba157737678a9f4511b0019208a2f6822f5c21e74b6", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
9,579
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "GameplayEffectTypes.h" #include "GameplayCueSet.generated.h" USTRUCT() struct FGameplayCueNotifyData { GENERATED_USTRUCT_BODY() FGameplayCueNotifyData() : LoadedGameplayCueClass(nullptr) , ParentDataIdx( INDEX_NONE ) { } UPR...
38.48
58
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "GameplayEffectTypes.h"\n#include "GameplayCueSet.generated.h"\n\nUSTRUCT()\nstruct FGameplayCueNotifyData\n{\n GENERATED_USTRUCT_BODY()\n\n FGameplayCueNotifyData()\n : LoadedGameplayCueClass(nullptr)\n , Paren...
403
28
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.48, "nodes": 254, "errors": 0, "source_hash": "84a1c01b1fb3b813ba2aa270021f2fab3fbb434e359761b0a86d11d9a4a7f81f", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,580
c
// // FirebaseCollection.h // WizardWar // // Created by <NAME> on 5/20/13. // Copyright (c) 2013 The LAB. All rights reserved. // #import <Foundation/Foundation.h> #import <Firebase/Firebase.h> #import "Objectable.h" // Keeps a dictionary in sync with the remote node, and creates local objects of the correct ty...
42.59
27
(translation_unit) "//\n// FirebaseCollection.h\n// WizardWar\n//\n// Created by <NAME> on 5/20/13.\n// Copyright (c) 2013 The LAB. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n#import <Firebase/Firebase.h>\n#import "Objectable.h"\n\n// Keeps a dictionary in sync with the remote node, and create...
383
47
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 42.59, "nodes": 239, "errors": 0, "source_hash": "964b1e308aa74fa3377ada8cc185eb6eacf0203fc2155440503bac38aa2514b3", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
9,581
c
#ifndef _LINGX_CORE_OPEN_FILE_H #define _LINGX_CORE_OPEN_FILE_H #include <string> namespace lnx { class OpenFile { public: OpenFile(const OpenFile&) = delete; OpenFile& operator=(const OpenFile&) = delete; OpenFile(int fd, const std::string& name) : fd_(fd), name_(name) { } int fd() con...
22.17
24
(translation_unit) "#ifndef _LINGX_CORE_OPEN_FILE_H\n#define _LINGX_CORE_OPEN_FILE_H\n\n#include <string>\n\nnamespace lnx {\n\nclass OpenFile {\npublic:\n OpenFile(const OpenFile&) = delete;\n OpenFile& operator=(const OpenFile&) = delete;\n\n OpenFile(int fd, const std::string& name)\n : fd_(fd), name...
191
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.17, "nodes": 102, "errors": 0, "source_hash": "5e8f7cf12f9d7c674846f6110f5b37e62e773c394b9a37ce8f1fe5b83126a4c8", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,582
c
#include "./test_utils.h" START_TEST(test_touchFile) GO_TO_DUMMY IN_CLEAR_STATE(/* */) ck_unlink("./db"); int res = axon_touch("./db/setup.csv"); ck_assert_int_eq(res, 1); res = axon_checkIO("./db/setup.csv"); ck_assert_int_eq(res, 1); END_TEST START_TEST(test_getDatabaseName) GO_TO_DUMMY IN_CLEAR_S...
29.97
29
(translation_unit) "#include "./test_utils.h"\n\nSTART_TEST(test_touchFile)\n GO_TO_DUMMY\n IN_CLEAR_STATE(/* */)\n ck_unlink("./db");\n int res = axon_touch("./db/setup.csv");\n ck_assert_int_eq(res, 1);\n res = axon_checkIO("./db/setup.csv");\n ck_assert_int_eq(res, 1);\nEND_TEST\n\nSTART_TEST(test_getDatabase...
275
20
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.97, "nodes": 164, "errors": 0, "source_hash": "7a743c55061be15a79f6f01d1e9f6545991b843b39386d9dbed9412c49da8bf5", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,583
c
#ifndef __COMMAND_JSON_H__ #define __COMMAND_JSON_H__ #pragma once #include "misc.h" #include <QStringList> #include <QVector> enum param_type{ integer_param = 0, string_param, bool_param, double_param }; struct param_info { param_type type; QString param; }; class CommandJson { public...
18.25
44
(translation_unit) "fndef __COMMAND_JSON_H__ \n#define __COMMAND_JSON_H__ \n#pragma once \n \n#include "misc.h" \n \n#include <QStringList> \n#include <QVector> \n \nenum param_type{ \n integer_param = 0, \n string_param, \n bool_param, \n double_param \n}; \n \nstruct param_info { \n param_type type; \n QString param;...
197
5
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 18.25, "nodes": 132, "errors": 0, "source_hash": "511f8d66bdcb2e4e6f6e49882fea017229bcad4ef70a7d9982ec875850431a96", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
9,584
c
#pragma once #include "il2cpp.h" uint32_t Pml_Local_Random__GetValue (const MethodInfo* method_info); uint32_t Pml_Local_Random__GetValue (uint32_t max, const MethodInfo* method_info);
45.25
4
(translation_unit) "#pragma once\n\n#include "il2cpp.h"\n\nuint32_t Pml_Local_Random__GetValue (const MethodInfo* method_info);\nuint32_t Pml_Local_Random__GetValue (uint32_t max, const MethodInfo* method_info);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_i...
44
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 45.25, "nodes": 29, "errors": 0, "source_hash": "95770c2f3c71895f1b133f4fb97c414c49c7f3a53832d173045f2501bf1d5bd3", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,585
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef _DNX_DATA_VERIFY_H_ #define _DNX_DATA_VERIFY_H_ #include <soc/dnxc/dnxc_data/dnxc_data_mgmt.h> #ifndef B...
32.29
14
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n#ifndef _DNX_DATA_VERIFY_H_\n\n#define _DNX_DATA_VERIFY_H_\n\n#include <soc/dnxc/dnxc_data/...
30
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 32.29, "nodes": 25, "errors": 0, "source_hash": "30271d90f4d46207f8c4c56b88359073498cb6df80c93a0d65585ede567c608a", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,586
c
// // PostInfoModel.h // NNACommunity // // Created by Leben.NNA on 16/3/13. // Copyright © 2016年 Leben.NNA. All rights reserved. // /** 帖子信息modle */ #import <Foundation/Foundation.h> #import "UserInfoModel.h" @interface PostInfoModel : NSObject @property (nonatomic, strong) UserInfoModel *User; @property (nona...
29
16
(translation_unit) "//\n// PostInfoModel.h\n// NNACommunity\n//\n// Created by Leben.NNA on 16/3/13.\n// Copyright © 2016年 Leben.NNA. All rights reserved.\n//\n\n/** 帖子信息modle */\n\n#import <Foundation/Foundation.h>\n#import "UserInfoModel.h"\n\n@interface PostInfoModel : NSObject\n\n@property (nonatomic, strong) U...
95
18
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.0, "nodes": 68, "errors": 0, "source_hash": "87e1e8cd39452aa0e7d0b430fd848a0f49661f075f849b5284be3fc47976f36a", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation/F...
9,587
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/wait.h> #include <sys/un.h> #include <sys/stat.h> #include <limits.h> #include <fcntl.h> #include "zdtmtst.h" const char *test_doc = "Test semi-closed unix stre...
23.21
52
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <errno.h>\n#include <unistd.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <sys/wait.h>\n#include <sys/un.h>\n#include <sys/stat.h>\n#include <limits.h>\n#include <fcntl.h>\n\n#include "zdtmtst.h"\n\nconst char *tes...
479
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 23.21, "nodes": 272, "errors": 0, "source_hash": "4cb51f43417e62fcf8d151feebd3a8101037ecfaa7aabdae204f2c51100dc791", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,588
c
#ifndef BULLET_CONTROLLABLE_H #define BULLET_CONTROLLABLE_H #include <Entities/MovingObject.h> #include <btBulletDynamicsCommon.h> class BulletControllable : public IControllable { private: btRigidBody *wrapped_body; public: virtual const btVector3 &GetVelocity() override { return wrapped_body->getLinearVel...
34.61
51
(translation_unit) "#ifndef BULLET_CONTROLLABLE_H\n#define BULLET_CONTROLLABLE_H\n\n#include <Entities/MovingObject.h>\n\n#include <btBulletDynamicsCommon.h>\n\nclass BulletControllable : public IControllable\n{\nprivate:\n btRigidBody *wrapped_body;\n \npublic:\n \n virtual const btVector3 &GetVelocity() override\n {\...
257
11
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.61, "nodes": 146, "errors": 0, "source_hash": "1d8bf05821325070a14c95e413608ea3803a19ba58e30cc0f318b07b18854301", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,589
c
// // DCTCoreDataStack+ROBKAdditions.h // XcodePicsCoreDataLibrary // // Created by <NAME> on 3/4/13. // Copyright (c) 2013 <NAME>. See License.txt for details. // #import "DCTCoreDataStack.h" @interface DCTCoreDataStack (ROBKAdditions) + (instancetype) sharedCoreDataStack; + (NSURL *) databaseURL; @end
24.75
12
(translation_unit) "//\n// DCTCoreDataStack+ROBKAdditions.h\n// XcodePicsCoreDataLibrary\n//\n// Created by <NAME> on 3/4/13.\n// Copyright (c) 2013 <NAME>. See License.txt for details.\n//\n\n#import "DCTCoreDataStack.h"\n\n@interface DCTCoreDataStack (ROBKAdditions)\n\n+ (instancetype) sharedCoreDataStack;\n+ (NS...
47
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.75, "nodes": 26, "errors": 0, "source_hash": "7a75fedc8058cb1c3094d19d95724c8cc772c3e0bcdd7ae08457526eaa83da9c", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,590
c
#ifndef BLOCK_QUEUE_H #define BLOCK_QUEUE_H #include <iostream> #include <stdlib.h> #include <pthread.h> #include <sys/time.h> #include <mutex> #include <condition_variable> #include "../lock/locker.h" using namespace std; template<class T> class block_queue { private: //判断队列是否满了 bool isFull() { if (...
23.87
143
(translation_unit) "#ifndef BLOCK_QUEUE_H\n#define BLOCK_QUEUE_H\n\n#include <iostream>\n#include <stdlib.h>\n#include <pthread.h>\n#include <sys/time.h>\n#include <mutex>\n#include <condition_variable>\n#include "../lock/locker.h"\n\nusing namespace std;\n\ntemplate<class T>\nclass block_queue {\nprivate:\n //判断队列是...
1,053
29
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.87, "nodes": 611, "errors": 0, "source_hash": "4b5433562c6aebb957bd606eb73f5a396747e0454c0eeec41f4fe38bc1e76988", "categorized_nodes": 416}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,591
c
#ifndef _SENSOR_H_ #define _SENSOR_H_ /**********************Sensor Configuration**********************/ const int TemperaturePin = 0; //Select ADC Pin A0 float TemperatureValue = 0; /**********************Sensor Configuration**********************/ float ReadTemperature(int); void delay_seconds(int sec); void del...
33.5
10
(translation_unit) "#ifndef _SENSOR_H_\n#define _SENSOR_H_\n\n/**********************Sensor Configuration**********************/\nconst int TemperaturePin = 0; //Select ADC Pin A0\nfloat TemperatureValue = 0;\n/**********************Sensor Configuration**********************/\n\nfloat ReadTemperature(int);\nvoid del...
59
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 33.5, "nodes": 42, "errors": 0, "source_hash": "e91751c0e73c2ff1533383042b72103c1f172317f6397654cb921bd3ec4349aa", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,592
c
/* Copyright 2020-2021, RespiraWorks Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
38.45
56
(translation_unit) "/* Copyright 2020-2021, RespiraWorks\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or...
184
5
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 38.45, "nodes": 102, "errors": 0, "source_hash": "ac09dc116f76bfed39164364b77ad0abc7feb0f16ab5e8e295299fb4454363cd", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,593
c
//===-- klee_range.c ------------------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
29.29
28
(translation_unit) "//===-- klee_range.c ------------------------------------------------------===//\n//\n// The KLEE Symbolic Virtual Machine\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===---------------------------...
180
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.29, "nodes": 91, "errors": 0, "source_hash": "2b6df4e27864be48fe76b60625afe171ba1c247994fdea7ec2ac9e04ee079dc9", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,594
c
#pragma once #include "toml_node.h" #include "toml_value.h" #include "toml_array.h" #include "toml_table.h" namespace toml { TOML_NAMESPACE_BEGIN class node_view final { public: node_view() noexcept = default; node_view(std::shared_ptr<node> &&n) noexcept : node_{n} {} explicit operator bool() ...
25.76
180
(translation_unit) "#pragma once\n\n#include "toml_node.h"\n#include "toml_value.h"\n#include "toml_array.h"\n#include "toml_table.h"\n\nnamespace toml\n{\nTOML_NAMESPACE_BEGIN\n\nclass node_view final\n{\npublic:\n node_view() noexcept = default;\n\n node_view(std::shared_ptr<node> &&n) noexcept\n : node_...
1,699
91
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 25.76, "nodes": 1037, "errors": 0, "source_hash": "b081c18efa40aacb300cd8018dd4140b425e52f316b6dbfb2a8be26aedd9a9be", "categorized_nodes": 722}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,595
c
#pragma once #include <ShlObj.h> #include "RotationInterfaces.h" class CMockRotationManagerEvents : public IRotationManagerEvents { public: CMockRotationManagerEvents() {} // IUnknown IFACEMETHODIMP QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppv) { static const QITAB qit[] = ...
23.5
70
(translation_unit) "#pragma once\n#include <ShlObj.h>\n#include "RotationInterfaces.h"\n\nclass CMockRotationManagerEvents :\n public IRotationManagerEvents\n{\npublic:\n CMockRotationManagerEvents() {}\n\n // IUnknown\n IFACEMETHODIMP QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppv)\n {\n ...
389
6
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 23.5, "nodes": 239, "errors": 0, "source_hash": "74e864cf4cf44ae12420c180b28f21c43ccd5d4fa75216da3d4e85da09c1a51c", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,596
c
#ifndef BABYLON_ENGINES_ISCENE_SERIALIZABLE_COMPONENT_H #define BABYLON_ENGINES_ISCENE_SERIALIZABLE_COMPONENT_H #include <map> #include <nlohmann/json_fwd.hpp> #include <vector> #include <babylon/babylon_api.h> #include <babylon/engines/iscene_component.h> using json = nlohmann::json; namespace BABYLON { class Abs...
36.82
38
(translation_unit) "#ifndef BABYLON_ENGINES_ISCENE_SERIALIZABLE_COMPONENT_H\n#define BABYLON_ENGINES_ISCENE_SERIALIZABLE_COMPONENT_H\n\n#include <map>\n#include <nlohmann/json_fwd.hpp>\n#include <vector>\n\n#include <babylon/babylon_api.h>\n#include <babylon/engines/iscene_component.h>\n\nusing json = nlohmann::json;\n...
126
3
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.82, "nodes": 84, "errors": 0, "source_hash": "77c32a28fbce51a4f659cd459b862caf4c2542d000a1ccec5ce42f7c2068bf16", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,597
c
#pragma once #include <string_view> enum class TokenType : uint8_t { Undefined = 0, Object = 1, Array = 2, String = 3, Primitive = 4 // Other primitive: number, boolean (true/false) or null }; struct Token { TokenType type; char* start; char* end; uint32_t size; std::string_...
25.22
45
(translation_unit) "#pragma once\n\n#include <string_view>\n\n\nenum class TokenType : uint8_t {\n Undefined = 0,\n Object = 1,\n Array = 2,\n String = 3,\n Primitive = 4 // Other primitive: number, boolean (true/false) or null\n};\n\nstruct Token {\n TokenType type;\n char* start;\n char* end;\...
385
9
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.22, "nodes": 264, "errors": 0, "source_hash": "0f3bdeb225c5ba2920820aa2e4ac5b0cc2c3688abc9ab605c99bfaa1fd0ab630", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,598
c
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ extern int global; int bar (int); void foo (int base, int bound) { int i, ret = 0; for (i = base; i <= bound; i++) { if (i > base) global += bar (i); if (i > base + 1) global += bar (i); if (i >= base + 3) gl...
24.4
20
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O2 -fdump-tree-profile_estimate" } */\n\nextern int global;\n\nint bar (int);\n\nvoid foo (int base, int bound)\n{\n int i, ret = 0;\n for (i = base; i <= bound; i++)\n {\n if (i > base)\n global += bar (i);\n if (i > base + 1)\n global += ba...
155
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.4, "nodes": 103, "errors": 0, "source_hash": "2a7a1fac23a0049a9fa63fc19cb0396b00674da82d0837f669ffc93dcce614e0", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int...
9,599