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
/******************************************************** ** Copyright 2001 Earth Resource Mapping Ltd. ** This document contains proprietary source code of ** Earth Resource Mapping Ltd, and can only be used under ** one of the three licenses as described in the ** license.txt file supplied with this distribution. *...
28.31
118
(translation_unit) "/********************************************************\n** Copyright 2001 Earth Resource Mapping Ltd.\n** This document contains proprietary source code of\n** Earth Resource Mapping Ltd, and can only be used under\n** one of the three licenses as described in the \n** license.txt file supplied w...
301
8
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 28.31, "nodes": 169, "errors": 0, "source_hash": "cb2e2b3297d108c7cab1e9782089d8452b6de5a330f969d7adf3be42a9b7df9d", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
800
c
// sdc600_log.h // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. #ifndef SDC600_LOG_H_ #define SDC600_LOG_H_ #include <stdio.h> #include <stddef.h> #include <stdint.h> #if defined(_MSC_VER) && (_MSC_VER < 1900) #define __func__ __FUNCTION__ #endif ...
54.94
69
(translation_unit) "// sdc600_log.h\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n\n#ifndef SDC600_LOG_H_\n#define SDC600_LOG_H_\n\n#include <stdio.h>\n#include <stddef.h>\n#include <stdint.h>\n\n#if defined(_MSC_VER) && (_MSC_VER < 1900)\n#defi...
276
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 54.94, "nodes": 203, "errors": 0, "source_hash": "b818bfff432a6f3bec3f6cd55ee7ef0b28323b01a1e19e5f18f95eef39528a05", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
801
c
#pragma once #include "signal.h" #include "variant.h" #include "class_method_bind.h" #include "property_info.h" #include "engine/core/editor/object_editor.h" #include "engine/core/util/StringUtil.h" #include "engine/core/script/lua/lua_binder.h" namespace Echo { struct ClassInfo { bool m_singleton = false; // ...
34.77
286
(translation_unit) "#pragma once\n\n#include "signal.h"\n#include "variant.h"\n#include "class_method_bind.h"\n#include "property_info.h"\n#include "engine/core/editor/object_editor.h"\n#include "engine/core/util/StringUtil.h"\n#include "engine/core/script/lua/lua_binder.h"\n\nnamespace Echo\n{\n struct ClassInfo\n {\n...
2,067
105
{"language": "c", "success": true, "metadata": {"lines": 286, "avg_line_length": 34.77, "nodes": 1154, "errors": 0, "source_hash": "adea9587c5df2d79b62f7f2cb78cd15d7d3f448abbff4884124290e4d1129943", "categorized_nodes": 820}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
802
c
#pragma once #include <functional> #include "common/common/logger.h" #include "common/common/version.h" #include "absl/debugging/stacktrace.h" #include "absl/debugging/symbolize.h" namespace Envoy { #define BACKTRACE_LOG() \ do { ...
38.36
125
(translation_unit) "#pragma once\n\n#include <functional>\n\n#include "common/common/logger.h"\n#include "common/common/version.h"\n\n#include "absl/debugging/stacktrace.h"\n#include "absl/debugging/symbolize.h"\n\nnamespace Envoy {\n#define BACKTRACE_LOG() ...
723
17
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 38.36, "nodes": 376, "errors": 0, "source_hash": "06d1250931c3d975693425a2982452af21aca43d5565a866d6075988e4f1f452", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
803
c
/*===================================================================== ** ** Source: test1.c ** ** Purpose: Tests that FileTimeToDosDateTime successfully converts values. ** Makes sure values are rounded up, and the limits of the function ** pass. Also tests that values outside the valid range fail...
34.85
110
(translation_unit) "/*=====================================================================\n**\n** Source: test1.c\n**\n** Purpose: Tests that FileTimeToDosDateTime successfully converts values.\n** Makes sure values are rounded up, and the limits of the function\n** pass. Also tests that values ou...
569
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 34.85, "nodes": 307, "errors": 0, "source_hash": "4be3109a444fb77b24829585e42ddc648bfd0d09bb09acb690e641066132c11a", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
804
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <ParsecUI/PRSSliceViewController.h> @interface PRSSpacerSliceViewController : PRSSliceViewController { double _internalHeight; } @property double internalHeight; // @synthes...
29.69
16
(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 <ParsecUI/PRSSliceViewController.h>\n\n@interface PRSSpacerSliceViewController : PRSSliceViewController\n{\n double _internalHeight;\n}\n\n@property d...
103
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.69, "nodes": 60, "errors": 0, "source_hash": "0b760414ffb40302305957f417b22590557c26b20eae4d020fc94b2ee6fb3f7b", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
805
c
/** * @file udp.c * * \copyright Copyright 2013 /Dev. All rights reserved. * \license This project is released under MIT license. * * @author <NAME> <<EMAIL>> * @since 0.7.0 */ #include "udp.h" // Do we want UDP? #ifdef NET_UDP // Check if NET_NETWORK is enabled #ifndef NET_NETWORK #error UDP cannot work wit...
38.08
131
(translation_unit) "/**\n * @file udp.c\n *\n * \copyright Copyright 2013 /Dev. All rights reserved.\n * \license This project is released under MIT license.\n *\n * @author <NAME> <<EMAIL>>\n * @since 0.7.0\n */\n\n#include "udp.h"\n\n// Do we want UDP?\n#ifdef NET_UDP\n\n// Check if NET_NETWORK is enabled\n#ifndef NE...
967
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 38.08, "nodes": 570, "errors": 0, "source_hash": "85ef56c8aec87d0a7e7c95ab290b86cc511fe4b71c5168a34beda5a219a72cf0", "categorized_nodes": 416}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
806
c
/** * @file gterm.h * @author paunstefan * @brief Header file of gterm library. * @version 0.1 * @date 2020-10-18 * * @copyright Copyright (c) 2020 * */ #ifndef GTERM_H #define GTERM_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include <stdio.h> #include <stdlib.h> #inc...
21.54
198
(translation_unit) "/** \n * @file gterm.h \n * @author paunstefan \n * @brief Header file of gterm library. \n * @version 0.1 \n * @date 2020-10-18 \n * \n * @copyright Copyright (c) 2020 \n * \n */ \n#ifndef GTERM_H \n#define GTERM_H \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n#include <stdint.h> \n#includ...
441
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 21.54, "nodes": 313, "errors": 0, "source_hash": "0b716b8339fe9fc19cae9be8a8676b586dc135caea50ad3484ef0f652d32500c", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
807
c
/** * @copyright Copyright (c) 2017 B-com http://www.b-com.com/ * * 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...
35.83
142
(translation_unit) "/**\n * @copyright Copyright (c) 2017 B-com http://www.b-com.com/\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENS...
1,603
117
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 35.83, "nodes": 1031, "errors": 0, "source_hash": "01ef21ccdbe2d443c24a102a89a9c7921184f110716449026ee8d35b985b2887", "categorized_nodes": 618}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
808
c
// Application.h: interface for the Application class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_) #define AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_ #if _MSC_VER > 1000 #pragma once ...
31.19
26
(translation_unit) "// Application.h: interface for the Application class.\n//\n//////////////////////////////////////////////////////////////////////\n\n#if !defined(AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_)\n#define AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_\n\n#if _M...
126
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.19, "nodes": 80, "errors": 0, "source_hash": "470935d2999681f526f2f4e9c2b118191b8285b8aa8c2eed2317ef85c3603217", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
809
c
// // UILabel+NRCLabel.h // NewRetailCliend // // Created by wenzheng on 2019/4/28. // Copyright © 2019 wenzheng. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UILabel (NRCLabel) /** 创建一个label @param text 内容 @param font 字体大小 @param textColor 字体颜色 @param backGroundColor...
23.78
23
(ERROR) "//\n// UILabel+NRCLabel.h\n// NewRetailCliend\n//\n// Created by wenzheng on 2019/4/28.\n// Copyright © 2019 wenzheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UILabel (NRCLabel)\n/**\n 创建一个label\n \n @param text 内容\n @param font 字体大小\n @param textColor 字...
72
7
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.78, "nodes": 43, "errors": 0, "source_hash": "ea320cc8f9b72072902a2cc6039c83d0fdcc1f4d93f24b18d2a004a1e6360c10", "categorized_nodes": 27}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// UILabel+NRCLabel.h\...
810
c
#include <stdio.h> int detecta(char letra) { if (letra >= 'A' && letra <= 'Z') return 1; else return (letra >= 'a' && letra <= 'z') - 1; } int main() { char letra; printf("Programa que detecta se a letra e maiuscula e ou minuscula"); printf("\nDigite uma letra: "); scanf("%c", &letra); int ...
35.5
16
(translation_unit) "#include <stdio.h>\nint detecta(char letra) {\n if (letra >= 'A' && letra <= 'Z') return 1;\n else return (letra >= 'a' && letra <= 'z') - 1;\n}\n\nint main() {\n char letra;\n printf("Programa que detecta se a letra e maiuscula e ou minuscula");\n printf("\nDigite uma letra: ");\n ...
201
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 35.5, "nodes": 120, "errors": 0, "source_hash": "d7e1f70f60620f77ff69b5de133a617733a9a4117f02441e23c31266e4c730c9", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
811
c
#include <stdint.h> #include <stm32f10x.h> void Init_GPIO(void) { /* Enable clock to IO port C */ RCC->APB2ENR |= RCC_APB2ENR_IOPCEN; /* Set pin C13 as an output */ GPIOC->CRH &= ~GPIO_CRH_MODE13; //Clear bits GPIOC->CRH |= GPIO_CRH_MODE13; //Output mode, max 50 MHz GPIOC->CRH &= ~GPIO_CRH_CNF...
37.19
31
(translation_unit) "#include <stdint.h>\n#include <stm32f10x.h>\n\nvoid Init_GPIO(void) {\n /* Enable clock to IO port C */\n RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;\n /* Set pin C13 as an output */\n GPIOC->CRH &= ~GPIO_CRH_MODE13; //Clear bits\n GPIOC->CRH |= GPIO_CRH_MODE13; //Output mode, max 50 MHz\n ...
214
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 37.19, "nodes": 138, "errors": 0, "source_hash": "ba57301a71f1ab775e7f6d139152b2faedfca6855a2b6299cf0e0ca0d4fc5cc2", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
812
c
#import <ExpoModulesCore/EXExportedModule.h> #import <ExpoModulesCore/EXModuleRegistryConsumer.h> #import <ExpoModulesCore/EXAppLifecycleListener.h> @interface EXAdSettingsManager : EXExportedModule <EXModuleRegistryConsumer, EXAppLifecycleListener> @end
50
5
(translation_unit) "#import <ExpoModulesCore/EXExportedModule.h>\n#import <ExpoModulesCore/EXModuleRegistryConsumer.h>\n#import <ExpoModulesCore/EXAppLifecycleListener.h>\n\n@interface EXAdSettingsManager : EXExportedModule <EXModuleRegistryConsumer, EXAppLifecycleListener>\n\n@end\n" (preproc_call) "#import <ExpoMod...
24
4
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 50.0, "nodes": 20, "errors": 0, "source_hash": "062296e49b458e96dbeae501775559e94cd8de35161615351a7eab5ad95a1335", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Exp...
813
c
/* * TCPCopy - An online replication tool for TCP based applications * * Copyright 2011 Netease, Inc. All rights reserved. * Use and distribution licensed under the BSD license. See * the LICENSE file for full text. * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #ifdef HAVE_CONFIG_H #...
27.96
274
(translation_unit) "/*\n * TCPCopy - An online replication tool for TCP based applications\n *\n * Copyright 2011 Netease, Inc. All rights reserved.\n * Use and distribution licensed under the BSD license. See\n * the LICENSE file for full text.\n *\n * Authors:\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>...
1,818
0
{"language": "c", "success": true, "metadata": {"lines": 274, "avg_line_length": 27.96, "nodes": 968, "errors": 0, "source_hash": "0da08f8300c3d89ac6d72142f64aaefea3a9b4b3a743620ef9d28881a1fd82ba", "categorized_nodes": 693}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
814
c
/** * @file src/modules/imageProc/ThresMean.h * @date Feb. 2018 * @author PhRG - opticalp.fr /KG */ /* Copyright (c) 2018 <NAME> / Opticalp /KG 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 Soft...
34.72
90
(translation_unit) "/**\n * @file src/modules/imageProc/ThresMean.h\n * @date Feb. 2018\n * @author PhRG - opticalp.fr /KG\n */\n\n/*\n Copyright (c) 2018 <NAME> / Opticalp /KG\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "So...
350
14
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 34.72, "nodes": 206, "errors": 0, "source_hash": "f317139825cdd6d08357cac4e400d4e986aff34182545f79a1a27dc35a9b51b5", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
815
c
#include <stdlib.h> #include <unistd.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <syslog.h> #include "xmalloc.h" #include "dataset_opt.h" #include "md_array.h" #include "dns_message.h" #include "pcap.h" #include "syslog_debug.h" static void md_array_grow(md_array * a, int i1, int i2); sta...
23.32
269
(translation_unit) "#include <stdlib.h>\n#include <unistd.h>\n#include <assert.h>\n#include <stdio.h>\n#include <string.h>\n#include <syslog.h>\n\n#include "xmalloc.h"\n#include "dataset_opt.h"\n#include "md_array.h"\n#include "dns_message.h"\n#include "pcap.h"\n#include "syslog_debug.h"\n\nstatic void md_array_grow(md...
2,556
0
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 23.32, "nodes": 1569, "errors": 0, "source_hash": "ff53f1a6cc005fec3c2910964c1bdf0222d0e85462caccacaa4e34f42a86b36b", "categorized_nodes": 1182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
816
c
#include <precomp.h> #include "utils.h" // global storing the OS version# OSVERSIONINFOEX g_verInfoEx = {0}; //------------------------------------ // Allocates general usage memory from the process heap PVOID Process_user_allocate(IN size_t NumBytes) { PVOID pMem; pMem = (NumBytes > 0) ? HeapAllo...
28.85
205
(translation_unit) "#include <precomp.h> \n#include "utils.h" \n \n// global storing the OS version# \nOSVERSIONINFOEX g_verInfoEx = {0}; \n \n//------------------------------------ \n// Allocates general usage memory from the process heap \nPVOID \nProcess_user_allocate(IN size_t NumBytes) \n{ \n PVOID pMem; \n ...
1,234
2
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 28.85, "nodes": 749, "errors": 0, "source_hash": "c17e69de62bc1fe8a1fc144cd433c04d5cc3bace5cce253d87f5aa5302fde712", "categorized_nodes": 622}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
817
c
#pragma once #include "../state.h" template <typename Object> class CStateBurerShield : public CState<Object> { private: typedef CState<Object> inherited; public: CStateBurerShield(Object* obj); virtual void initialize(); virtual void execute(); virtual void finalize(); virtual void critical_...
29.95
22
(translation_unit) "#pragma once\n#include "../state.h"\n\ntemplate <typename Object>\nclass CStateBurerShield : public CState<Object> {\nprivate:\n typedef CState<Object> inherited;\n\npublic:\n CStateBurerShield(Object* obj);\n\n virtual void initialize();\n virtual void execute();\n virtual void final...
176
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.95, "nodes": 115, "errors": 0, "source_hash": "dcdc8f0f04714408e9f38229aacd210518b11bea275909cdf214aaaa2f67a39d", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
818
c
h05306 s 00003/00001/00036 d D 1.9 99/07/26 12:56:02 clyde 9 8 c 1. Add Xsw_ChshSpecial, Xsw_AskOnce c 2. Change Xsw_AskAll to Xsw_AskAlways e s 00001/00000/00036 d D 1.8 98/11/17 10:41:40 clyde 8 7 c Add Xsw_AskAll -X option e s 00001/00000/00035 d D 1.7 98/07/09 13:09:56 clyde 7 6 c Add Xsw_Help e s 00...
21.92
125
(translation_unit) "h05306\ns 00003/00001/00036\nd D 1.9 99/07/26 12:56:02 clyde 9 8\nc 1. Add Xsw_ChshSpecial, Xsw_AskOnce\nc 2. Change Xsw_AskAll to Xsw_AskAlways\ne\ns 00001/00000/00036\nd D 1.8 98/11/17 10:41:40 clyde 8 7\nc Add Xsw_AskAll -X option\ne\ns 00001/00000/00035\nd D 1.7 98/07/09 13:09:56 cly...
665
110
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 21.92, "nodes": 610, "errors": 0, "source_hash": "217c45453b4a9aabced5be876430ed7b502c75524a226d8157ea9d85a3a8e08c", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "\u0001h05306\...
819
c
#include <stdio.h> int main(void) { /* a = 5, 0000 0101, b = 9, 0000 1001 */ unsigned char a = 5, b = 9; /* The result is 0000 0001 */ printf("a & b = %d\n", a & b); /* The result is 0000 1101 */ printf("a | b = %d\n", a | b); /* The result is 0000 1100 */ pri...
26.05
22
(translation_unit) "#include <stdio.h> \n \nint main(void) \n{ \n /* a = 5, 0000 0101, b = 9, 0000 1001 */ \n unsigned char a = 5, b = 9; \n \n /* The result is 0000 0001 */ \n printf("a & b = %d\n", a & b); \n /* The result is 0000 1101 */ \n printf("a | b = %d\n", a | b); \n /* The ...
145
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.05, "nodes": 78, "errors": 0, "source_hash": "0135897d52d95e25c8cb870ab2c3009acfbfba180d9acd28ae75d64513047bea", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
820
c
#ifndef __PTYPE_SERVER_TO_SERVE_H__ #define __PTYPE_SERVER_TO_SERVE_H__ #include "ptype_base.h" enum { MSG_SUB_SERVERTOSERVER_USER_LOGIN, MSG_SUB_SERVERTOSERVER_USER_LOGOUT, MSG_SUB_SERVERTOSERVER_TRADEAGENT_FEE, MSG_SUB_SERVERTOSERVER_CHANGE_NICK_NAME, MSG_SUB_SERVERTOSERVER_KICK_REQ, MSG_SUB_SERVERTOSERVER_...
33.39
137
(translation_unit) "#ifndef __PTYPE_SERVER_TO_SERVE_H__\n#define __PTYPE_SERVER_TO_SERVE_H__\n\n#include "ptype_base.h"\n\nenum\n{\n MSG_SUB_SERVERTOSERVER_USER_LOGIN,\n MSG_SUB_SERVERTOSERVER_USER_LOGOUT,\n MSG_SUB_SERVERTOSERVER_TRADEAGENT_FEE,\n\n MSG_SUB_SERVERTOSERVER_CHANGE_NICK_NAME,\n\n MSG_SUB_SERVERTOSERVER_K...
1,029
20
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 33.39, "nodes": 704, "errors": 0, "source_hash": "a93d936a2d4ff34f116e20f7a361f4490515749f12d2dc6b5e53c88602f3f23e", "categorized_nodes": 493}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
821
c
#include <tomcrypt.h> #include <strings.h> #include "aes256gcmtom.h" #include "ctr.h" void aes256gcmtomcrypt(unsigned char *c, unsigned char *m, unsigned long long mlen, unsigned char *nonce, unsigned char *key){ /*Using libtomcrypt as alternative gives us way to check implemen...
30.09
22
(translation_unit) "#include <tomcrypt.h>\n#include <strings.h>\n#include "aes256gcmtom.h"\n#include "ctr.h"\nvoid aes256gcmtomcrypt(unsigned char *c, unsigned char *m,\n unsigned long long mlen, unsigned char *nonce,\n unsigned char *key){\n /*Using libtomcrypt as alternative giv...
232
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.09, "nodes": 150, "errors": 0, "source_hash": "32c0b275c3bc606533b21ee1d38e6b6f016ef433a33ac59819713078eb666cf2", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
822
c
#include "LCD.h" #include <stdint.h> #include "fsl_gpio.h" #include "fsl_tpm.h" #include "clock_config.h" #include "pin_mux.h" #define DELAY 18000 void LCD_Data(uint8_t *HIGH, uint8_t *LOW, uint8_t c) { *HIGH=(c & 0xF0) >> 4; *LOW= c & 0x0F; } void Write_Data(uint8_t data) { for (uint8_t i=0;...
15.31
164
(translation_unit) "#include "LCD.h" \n#include <stdint.h> \n#include "fsl_gpio.h" \n#include "fsl_tpm.h" \n#include "clock_config.h" \n#include "pin_mux.h" \n \n#define DELAY 18000 \n \nvoid LCD_Data(uint8_t *HIGH, uint8_t *LOW, uint8_t c) \n{ \n *HIGH=(c & 0xF0) >> 4; \n *LOW= c & 0x0F; \n} \n \nvoid Write_Data(uin...
1,014
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 15.31, "nodes": 611, "errors": 0, "source_hash": "8b16b1e1201daf57b342f07fc2f4c8113d5d32765fef277a60de9ea7d84bde4d", "categorized_nodes": 436}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
823
c
// // OIDProxyURLProtocol.h // AppAuth // // Created by admin on 9/28/16. // Copyright © 2016 Google Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface OIDProxyURLProtocol : NSURLProtocol<NSURLSessionDelegate,NSURLSessionDataDelegate> @end
25.7
10
(translation_unit) "//\n// OIDProxyURLProtocol.h\n// AppAuth\n//\n// Created by admin on 9/28/16.\n// Copyright © 2016 Google Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface OIDProxyURLProtocol : NSURLProtocol<NSURLSessionDelegate,NSURLSessionDataDelegate>\n\n@end\n" (comment) "//...
25
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 25.7, "nodes": 14, "errors": 0, "source_hash": "7760af6914a2e70c793ce26a06261a8e746a6d5eb56f084f9d91c1789701cd09", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fou...
824
c
#ifndef __NNSEARCH2_H__ #define __NNSEARCH2_H__ #include <iostream> #include <sstream> #include <iomanip> #include <vector> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/system/cuda/experimental/pinned_allocator.h> #include "cuda_task.h" #include "spdlog/spdlog.h" //#define DEB...
34.61
257
(translation_unit) "#ifndef __NNSEARCH2_H__\n#define __NNSEARCH2_H__\n\n#include <iostream>\n#include <sstream>\n#include <iomanip>\n#include <vector>\n\n#include <thrust/host_vector.h>\n#include <thrust/device_vector.h>\n#include <thrust/system/cuda/experimental/pinned_allocator.h>\n\n#include "cuda_task.h"\n\n#includ...
2,221
98
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 34.61, "nodes": 1471, "errors": 0, "source_hash": "5434b303e69e9a271c7e8bc4e38131d48d781e4b0dd30e7d386a945300523873", "categorized_nodes": 928}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
825
c
#ifndef WTV020SD_h #define WTV020SD_h class WTV020SD { public: WTV020SD(int resetPin, int clockPin, int dataPin, int busyPin); void reset(); void triggerVoice(int fileNumber, bool waitForBusy); void setVolume(int level); void pauseResume(); void stop(); bool isBusy(); private: void init(); void sen...
18.76
21
(translation_unit) "#ifndef WTV020SD_h\n#define WTV020SD_h\n\nclass WTV020SD\n{\npublic:\n WTV020SD(int resetPin, int clockPin, int dataPin, int busyPin);\n\n void reset();\n void triggerVoice(int fileNumber, bool waitForBusy);\n void setVolume(int level);\n void pauseResume();\n void stop();\n bool isBusy();\n\...
139
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.76, "nodes": 92, "errors": 0, "source_hash": "1fde7f12420e0cd7be34a8a729f95e8695be6856b7a5930c9fdb8fcbd0ecbe69", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
826
c
extern __VERIFIER_nondet_int(); int main() { int a = __VERIFIER_nondet_int(); int b = __VERIFIER_nondet_int(); if (a < 0) { a = -a; } if (b < 0) { b = -b; } if (a == 0) { return a; } else { while (b != 0) { if (b < 0) { goto ERROR; } if (a > b) { ...
13.06
34
(translation_unit) "extern __VERIFIER_nondet_int();\nint main() {\n int a = __VERIFIER_nondet_int();\n int b = __VERIFIER_nondet_int();\n \n if (a < 0) {\n a = -a;\n }\n\n if (b < 0) {\n b = -b;\n }\n \n if (a == 0) {\n return a;\n\n } else {\n while (b != 0) {\n if (b < 0) {\n goto ER...
194
2
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 13.06, "nodes": 111, "errors": 0, "source_hash": "7cf6d8fde195b0a9f7260774dfac291aa40afcc1f13363087fd1c91d0af83439", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern __...
827
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/SWidget.h" #if !UE_BUILD_SHIPPING TSharedRef<SWidget> MakeLayoutExample(); #endif // #if !UE_BUILD_SHIPPING
27.25
8
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Widgets/SWidget.h"\n\n#if !UE_BUILD_SHIPPING\n\n\nTSharedRef<SWidget> MakeLayoutExample();\n\n#endif // #if !UE_BUILD_SHIPPING\n" (comment) "// Copyright 1998-2017 Epic Games, Inc. A...
38
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.25, "nodes": 25, "errors": 0, "source_hash": "48151be1d110960cf0de7771693922e8fc8c5d002327504e7a903bf34c3edbea", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
828
c
// // YSViewController.h // YSTools // // Created by ys on 11/13/2021. // Copyright (c) 2021 ys. All rights reserved. // @import UIKit; @interface YSViewController : UIViewController @end
18.2
10
(translation_unit) "//\n// YSViewController.h\n// YSTools\n//\n// Created by ys on 11/13/2021.\n// Copyright (c) 2021 ys. All rights reserved.\n//\n\n@import UIKit;\n\n@interface YSViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// YSViewController.h" (comment) "// YSTools" (comment...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.2, "nodes": 10, "errors": 0, "source_hash": "1f27dba33aa5a5549cddfbe5c340a5a8cd0a40017a387e2505f21d7393ceef15", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
829
c
#ifndef BVEC64_H #define BVEC64_H #define DEBUG false #define WORD_SIZE 64 #define LITERAL_SIZE 63 #define BIT1 0x8000000000000000 #define BIT2 0x4000000000000000 #define FILLMASK 0x3FFFFFFFFFFFFFFF #define ALL1S 0x7FFFFFFFFFFFFFFF #define ONEFILL 0xC000000000000000 #define ONEFILL1 0xC000000000000001 #de...
30.82
106
(translation_unit) "#ifndef BVEC64_H\n#define BVEC64_H\n\n#define DEBUG false\n\n#define WORD_SIZE 64\n#define LITERAL_SIZE 63\n#define BIT1 0x8000000000000000\n#define BIT2 0x4000000000000000\n#define FILLMASK 0x3FFFFFFFFFFFFFFF\n#define ALL1S 0x7FFFFFFFFFFFFFFF\n#define ONEFILL 0xC000000000000000\n#define...
1,415
30
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 30.82, "nodes": 836, "errors": 0, "source_hash": "7ffdec356538daac62dbf9fdfac0b4c45e9135c7fb9233206ba8c285a09cefb8", "categorized_nodes": 654}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
830
c
#pragma once #include <array> #include "types.h" #include "mound.h" #include <optional> #include "math/barry_centric.h" template<u32 Width, u32 Depth> class platform { public: auto create(f32 height, glm::vec2 neg_corner) -> void { modified = false; this->height = height; neg_corner_xz = neg_corner; creat...
32.68
163
(translation_unit) "#pragma once\n\n#include <array>\n#include "types.h"\n#include "mound.h"\n#include <optional>\n#include "math/barry_centric.h"\n\ntemplate<u32 Width, u32 Depth> class platform\n{\npublic:\n auto create(f32 height, glm::vec2 neg_corner) -> void\n {\n modified = false;\n\n this->height = height;\n ...
2,219
75
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 32.68, "nodes": 1407, "errors": 0, "source_hash": "10b530dfc4f562a2ef1636df95f339349d41196b7b57c0db6fa0eac0db54bfe3", "categorized_nodes": 1022}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
831
c
// // QiitaSession.h // QiitaSession // // Created by marty-suzuki on 2017/06/14. // Copyright © 2017年 marty-suzuki. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for QiitaSession. FOUNDATION_EXPORT double QiitaSessionVersionNumber; //! Project version string for QiitaSession. FOUNDA...
38.69
13
(translation_unit) "//\n// QiitaSession.h\n// QiitaSession\n//\n// Created by marty-suzuki on 2017/06/14.\n// Copyright © 2017年 marty-suzuki. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for QiitaSession.\nFOUNDATION_EXPORT double QiitaSessionVersionNumber;\n\n//! Project versio...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.69, "nodes": 16, "errors": 0, "source_hash": "e60783538cb51644dcb317ac47b242a49b010a346530e006152d48ca13a4b951", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
832
c
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_MEDIA_AUDIO_DRIVERS_TEST_ADMIN_TEST_H_ #define SRC_MEDIA_AUDIO_DRIVERS_TEST_ADMIN_TEST_H_ #include <lib/fzl/vmo-mapper.h> #include <zircon/dev...
41.12
57
(translation_unit) "// Copyright 2020 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SRC_MEDIA_AUDIO_DRIVERS_TEST_ADMIN_TEST_H_\n#define SRC_MEDIA_AUDIO_DRIVERS_TEST_ADMIN_TEST_H_\n\n#include <lib/fzl/vmo-map...
472
19
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 41.12, "nodes": 285, "errors": 0, "source_hash": "1bbf4ffd4a3a99989dfb97d655faf27397f40de5c84644d9da4ad85551c92c51", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
833
c
#ifndef obj_bruecke_h #define obj_bruecke_h class karte_t; #include "../descriptor/bridge_desc.h" #include "../simobj.h" /** * Brueckenteile (sichtbar) * * <NAME> */ class bruecke_t : public obj_no_info_t { private: const bridge_desc_t *desc; bridge_desc_t::img_t img; protected: void rdwr(loadsave_t *file);...
28.74
46
(translation_unit) "#ifndef obj_bruecke_h\n#define obj_bruecke_h\n\nclass karte_t;\n\n#include "../descriptor/bridge_desc.h"\n#include "../simobj.h"\n\n/**\n * Brueckenteile (sichtbar)\n *\n * <NAME>\n */\n\nclass bruecke_t : public obj_no_info_t\n{\nprivate:\n const bridge_desc_t *desc;\n bridge_desc_t::img_t img;\n\n...
329
11
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.74, "nodes": 178, "errors": 0, "source_hash": "18d8157077505ce478561a9246364e00f3fddd481cfba338fa944a5aee25f3ce", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
834
c
#ifndef TC_TASKS_TEMPLATE_H #define TC_TASKS_TEMPLATE_H // Timer 2 #define _75uSeg ((unsigned long)(2)) // 100useg #define _150uSeg ((unsigned long)(2 * _75uSeg)) //200useg #define _1mSeg ((unsigned long)(_75uSeg * 10)) #define _10mSeg ((unsigned long)(_1mSeg * 10)) #define _100mSeg ((unsigned long...
32.2
15
(translation_unit) "#ifndef TC_TASKS_TEMPLATE_H\n#define TC_TASKS_TEMPLATE_H\n\n// Timer 2\n#define _75uSeg ((unsigned long)(2)) // 100useg\n#define _150uSeg ((unsigned long)(2 * _75uSeg)) //200useg\n#define _1mSeg ((unsigned long)(_75uSeg * 10)) \n#define _10mSeg ((unsigned long)(_1mSeg * 10))\n#define...
78
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.2, "nodes": 61, "errors": 0, "source_hash": "289f9b51d8ccdc1d707274e023a614dc62db89681efc521ae6c41e3fc83485ba", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
835
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "APShareServiceCardView.h" @class UIImageView, UILabel; @interface APShareServiceCardResultView : APShareServiceCardView { UIIm...
35.74
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "APShareServiceCardView.h"\n\n@class UIImageView, UILabel;\n\n@interface APShareServiceCardResultView : APS...
140
15
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.74, "nodes": 84, "errors": 0, "source_hash": "bd315becb334cb02b4fb6596b699c96587ddf90be03b6a5948b9e21d7f87fceb", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
836
c
#ifndef LOGIN_H #define LOGIN_H #include <QMainWindow> #include <QListWidgetItem> #include "../Client.h" #include "virtualsoc.h" #include "admin.h" namespace Ui { class login; } class login : public QMainWindow { Q_OBJECT public: void closeEvent (QCloseEvent *event); explicit login(QWidget *parent = 0...
24.31
36
(translation_unit) "#ifndef LOGIN_H\n#define LOGIN_H\n\n#include <QMainWindow>\n#include <QListWidgetItem>\n#include "../Client.h"\n#include "virtualsoc.h"\n#include "admin.h"\n\nnamespace Ui {\nclass login;\n}\n\nclass login : public QMainWindow\n\n{\n Q_OBJECT\n\npublic:\n void closeEvent (QCloseEvent *event);\...
247
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.31, "nodes": 164, "errors": 0, "source_hash": "c12ce8dfde59abe13d65d93e4dbae39df0d4c5b02b474fb4ca478a22d6aa1850", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
837
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <ctype.h> #include <sys/ipc.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "../../inc/cn310.h" #define DRIVER_NAME "/dev/cnbtsw" void doHelp(void) { printf("Usage:\n"); pr...
14.52
48
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/ioctl.h>\n#include <ctype.h>\n#include <sys/ipc.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include "../../inc/cn310.h"\n\n\n#define DRIVER_NAME "/dev/cnbtsw"\n\n\nvoid doHel...
241
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 14.52, "nodes": 140, "errors": 0, "source_hash": "f01ead6a259c5203725f3d725df19b758f466b30be07fdb8f0ebde5974eb05b4", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
838
c
/* * mktemp.c * * Copyright (c) 2009 The MacPorts Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notic...
33.9
112
(translation_unit) "/*\n * mktemp.c\n *\n * Copyright (c) 2009 The MacPorts Project\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain th...
736
6
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 33.9, "nodes": 441, "errors": 0, "source_hash": "0b8be508c9bb60f365c88ba3e4ddf0f6bda2b1dbc3687360912a0cbcbe117295", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if HAVE_...
839
c
#pragma once namespace intrusive { // Node template<typename Type, typename Tag> Node<Type, Tag>::Node() : next_(this) , prev_(this) {} template<typename Type, typename Tag> Node<Type, Tag>::~Node() { Unlink(); } template<typename Type, typename Tag> Node<Type, Tag>::Node(Node&& other) { if (other.IsLinked()...
24.76
241
(translation_unit) "#pragma once\n\n\nnamespace intrusive {\n\n// Node\n\ntemplate<typename Type, typename Tag>\nNode<Type, Tag>::Node()\n : next_(this)\n , prev_(this)\n{}\n\ntemplate<typename Type, typename Tag>\nNode<Type, Tag>::~Node() {\n Unlink();\n}\n\n\ntemplate<typename Type, typename Tag>\nNode<Type, Tag>::No...
2,903
206
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 24.76, "nodes": 1902, "errors": 0, "source_hash": "f0ec6b383852a66d986c5d35533e3adc3e6fdfa2c55767a087dc61578808506a", "categorized_nodes": 1339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
840
c
DECL|LED0_GPIO_PIN|macro|LED0_GPIO_PIN DECL|LED0_GPIO_PORT|macro|LED0_GPIO_PORT DECL|SW0_GPIO_NAME|macro|SW0_GPIO_NAME DECL|SW0_GPIO_PIN|macro|SW0_GPIO_PIN DECL|SW1_GPIO_NAME|macro|SW1_GPIO_NAME DECL|SW1_GPIO_PIN|macro|SW1_GPIO_PIN DECL|__INC_BOARD_H|macro|__INC_BOARD_H
37.71
7
(translation_unit) "DECL|LED0_GPIO_PIN|macro|LED0_GPIO_PIN\nDECL|LED0_GPIO_PORT|macro|LED0_GPIO_PORT\nDECL|SW0_GPIO_NAME|macro|SW0_GPIO_NAME\nDECL|SW0_GPIO_PIN|macro|SW0_GPIO_PIN\nDECL|SW1_GPIO_NAME|macro|SW1_GPIO_NAME\nDECL|SW1_GPIO_PIN|macro|SW1_GPIO_PIN\nDECL|__INC_BOARD_H|macro|__INC_BOARD_H\n" (ERROR) "DECL|LED0...
78
7
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 37.71, "nodes": 56, "errors": 0, "source_hash": "7e8f17cbc35e871ab9cc1869935fc458fff952412f2791f68807668b9a4dc936", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "DECL|LED0_GPIO_PI...
841
c
#ifndef __SCENE_MANAGER_H__ #define __SCENE_MANAGER_H__ #include "Module.h" #include "Scene.h" #include "Timer.h" #include <string> #include <list> class HoneyEngine; class SceneIntro; class GameObject; class JasonHandler; class ComponentTransform; class ComponentMesh; class ComponentMaterial; class ComponentInfo; c...
32.51
99
(translation_unit) "#ifndef __SCENE_MANAGER_H__\n#define __SCENE_MANAGER_H__\n\n#include "Module.h"\n#include "Scene.h"\n\n#include "Timer.h"\n#include <string>\n#include <list>\n\nclass HoneyEngine;\nclass SceneIntro;\nclass GameObject;\nclass JasonHandler;\nclass ComponentTransform;\nclass ComponentMesh;\nclass Compo...
615
12
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 32.51, "nodes": 414, "errors": 0, "source_hash": "0d98040fc5a5dd2c419663c08dc3aa674effefe3c755e79a5e4eed83f212e8b8", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __SCEN...
842
c
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
38.06
201
(translation_unit) "/*\n * Copyright (C) 2015 <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
1,599
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 38.06, "nodes": 1016, "errors": 0, "source_hash": "20043b08c5b045c24188cff15d452ceef67c71c1c44d76b8818531923a395354", "categorized_nodes": 667}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
843
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AnnotationKit.framework/AnnotationKit */ @interface AKInkAnnotationDrawingImageCache : NSObject { NSPointerArray * _pointerArray; } @property (nonatomic, retain) NSPointerArray *pointerArray; + (void)purgeSharedCache; + (id)sharedCache; ...
33.48
21
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AnnotationKit.framework/AnnotationKit\n */\n\n@interface AKInkAnnotationDrawingImageCache : NSObject {\n NSPointerArray * _pointerArray;\n}\n\n@property (nonatomic, retain) NSPointerArray *pointerArray;\n\n+ (void)purgeSh...
237
20
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.48, "nodes": 143, "errors": 0, "source_hash": "161114d4e0ba8036b0ee7685ea83196a6d11bf831a1443bc33f162198f8050c9", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface AKIn...
844
c
// Code of ShenZhou // Ryu, 5/10/97 inherit ROOM; void create() { set("short", "仙人洞"); set("long", @LONG 路東的一座陡峭絕險的石峯(feng)腰間,有一石洞,距地數十尺。 峯腳是浪濤滾滾的塔勒奇河。洞口青松環列,洞頂刻有『財壽洞』三 個紅漆大字。據傳數百年前,一位來自中原的道人,在這險峯間鑿出 此洞。 LONG ); set("exits", ([ "south" : "/d/xingxiu/ertai", ])); ...
24.56
48
(translation_unit) "// Code of ShenZhou\n// Ryu, 5/10/97\n\ninherit ROOM;\n\nvoid create()\n{\n set("short", "仙人洞");\n set("long", @LONG\n路東的一座陡峭絕險的石峯(feng)腰間,有一石洞,距地數十尺。\n峯腳是浪濤滾滾的塔勒奇河。洞口青松環列,洞頂刻有『財壽洞』三\n個紅漆大字。據傳數百年前,一位來自中原的道人,在這險峯間鑿出\n此洞。\nLONG );\n set("exits", ([\n "south" : "/d/x...
392
17
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.56, "nodes": 185, "errors": 0, "source_hash": "132504606f6d7b41d388c1d0610ea0c42b5abd9d34dc5cb7cdd8c6560b1ceb7d", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit ...
845
c
#ifdef AMS_ENCRYPT_PACKAGE -----BEGIN ENCRYPTED FILE v0.6----- <KEY> -----END ENCRYPTED FILE----- #else #error "Secure builder required to compile this file" #endif
22.57
7
(translation_unit) "#ifdef AMS_ENCRYPT_PACKAGE\n-----BEGIN ENCRYPTED FILE v0.6-----\n<KEY>\n-----END ENCRYPTED FILE-----\n#else\n#error "Secure builder required to compile this file"\n#endif\n" (preproc_ifdef) "#ifdef AMS_ENCRYPT_PACKAGE\n-----BEGIN ENCRYPTED FILE v0.6-----\n<KEY>\n-----END ENCRYPTED FILE-----\n#else...
53
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.57, "nodes": 47, "errors": 0, "source_hash": "89dfe88a95595c40cab0116a2c1cd9f66af1fee9f1f808cf882790f175e35f78", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef AM...
846
c
//===- State.h - Value state ------------------------------------*- C++ -*-===// // // Part of the Tau Project, under the Apache License v2.0. // See LICENSE.txt for license information. // //===----------------------------------------------------------------------===// // // TBD // //===------------------------------...
32.74
53
(translation_unit) "//===- State.h - Value state ------------------------------------*- C++ -*-===//\n//\n// Part of the Tau Project, under the Apache License v2.0.\n// See LICENSE.txt for license information.\n//\n//===----------------------------------------------------------------------===//\n//\n// TBD\n//\n//===-...
457
25
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 32.74, "nodes": 279, "errors": 0, "source_hash": "d7926f488ea35289a5395f95e703ce65ac2e2be10e5aae55130af663663c4ce5", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
847
c
#include "clingo/io/write_type.h" #include "clingo/lang/expect.h" TEMP_SLICE_DEF_C_( test, { int8_t val; char const* fmt; char const* exp; } ) #define t_( ... ) ((test){__VA_ARGS__}) int main( void ) { init_tap_c_(); testSlice tests = slice_c_( test, // ""/"d" t_( 18, "", "1...
24.21
53
(translation_unit) "#include "clingo/io/write_type.h"\n#include "clingo/lang/expect.h"\n\nTEMP_SLICE_DEF_C_(\n test,\n {\n int8_t val;\n char const* fmt;\n char const* exp;\n }\n)\n#define t_( ... ) ((test){__VA_ARGS__})\n\nint main( void )\n{\n init_tap_c_();\n\n testSlice tests = slice_c_( te...
555
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 24.21, "nodes": 246, "errors": 0, "source_hash": "a26c90bf7a1b314754f4a0f06412ded61262f6d0f370d0d8d144931ee765a08f", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
848
c
/** * @file test_huff_code.c Test Huffman coding * @author <NAME> <<EMAIL>> */ #include "huff_code.h" #include "test_macros.h" #include <stdio.h> #include <stdlib.h> #include <string.h> int32 const ivalues[10] = { 1, 2, 3, 5, 7, 11, 13, 17, 19, 23 }; int32 const frequencies[10] = { 42, 4, 5, 6, 225, 15001, 3, 2...
22.14
143
(translation_unit) "/**\n * @file test_huff_code.c Test Huffman coding\n * @author <NAME> <<EMAIL>>\n */\n\n#include "huff_code.h"\n#include "test_macros.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint32 const ivalues[10] = {\n 1, 2, 3, 5, 7, 11, 13, 17, 19, 23\n};\nint32 const frequencies[10]...
1,505
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 22.14, "nodes": 772, "errors": 0, "source_hash": "7c3b662617330dd952f54c038fcb558813d00542863e999c2448fa659b3e6527", "categorized_nodes": 563}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
849
c
#include "../../corelibs/U2Formats/src/NewickFormat.h"
54
1
(translation_unit) "#include "../../corelibs/U2Formats/src/NewickFormat.h"\n" (preproc_include) "#include "../../corelibs/U2Formats/src/NewickFormat.h"\n" (#include) "#include" (string_literal) ""../../corelibs/U2Formats/src/NewickFormat.h"" (") """ (string_content) "../../corelibs/U2Formats/src/N...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 54.0, "nodes": 3, "errors": 0, "source_hash": "d967bb4e936ff9c38e52f443a283ae099bf0a7bc993b9ea2a0dd47ff13e2d7ad", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
850
c
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 Library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later v...
31.73
40
(translation_unit) "/*\n\n $Id$\n\n Copyright 1989-2014 <NAME>\n\n This file is part of Linear/C3 Library.\n\n Linear/C3 Library is free software: you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as published by\n the Free Software Foundation, either version 3 of...
157
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 31.73, "nodes": 92, "errors": 0, "source_hash": "d9eebca3013fdd1c8ab22763db5a488131ec4a7a11d371a29c2b573f22bfcc6a", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef H...
851
c
//===-- PlatformFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
45.02
52
(translation_unit) "//===-- PlatformFreeBSD.h ---------------------------------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
397
21
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 45.02, "nodes": 228, "errors": 0, "source_hash": "e71c7f89c5d84e65b24bf29b1c52d43fd6945c2289afc97e6103c1a032a11edb", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
852
c
/*- * Copyright (c) 2005 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
31.42
156
(translation_unit) "/*-\n * Copyright (c) 2005 <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notic...
1,252
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 31.42, "nodes": 727, "errors": 0, "source_hash": "ab995f6f64aa0ac05043413ad9b5a536b78d07b0e5d068bf7e7a095500c64d24", "categorized_nodes": 551}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
853
c
// // LaWeakRefUtil.h // student // // Created by taomingyan on 2020/11/9. // Copyright © 2020 pplingo. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN #define WeakSelf __weak typeof(self) selfWeak = self; #define WeakObj(o) __weak typeof(o) o##Weak = o; typedef id _Nonnull (^...
29.06
17
(translation_unit) "//\n// LaWeakRefUtil.h\n// student\n//\n// Created by taomingyan on 2020/11/9.\n// Copyright © 2020 pplingo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n#define WeakSelf __weak typeof(self) selfWeak = self;\n\n#define WeakObj(o) __weak typeof(o) o#...
88
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.06, "nodes": 52, "errors": 0, "source_hash": "a7ec863cc9fe728ba39ec8328e34432533231bc114a9512232bc503d8c313ff6", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
854
c
// // ED_CirCleView.h // CodeLib // // Created by zw on 2019/7/17. // Copyright © 2019 seventeen. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ED_CirCleView : UIView @property (nonatomic , assign) CGFloat progress; - (void)startAnmation; @end NS_ASSUME_NONNULL_END
19.53
15
(translation_unit) "//\n// ED_CirCleView.h\n// CodeLib\n//\n// Created by zw on 2019/7/17.\n// Copyright © 2019 seventeen. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ED_CirCleView : UIView\n\n@property (nonatomic , assign) CGFloat progress;\n\n\n- (void)startAnmatio...
54
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.53, "nodes": 33, "errors": 0, "source_hash": "15e71653a83e91a28ddc8dd375e872694fbccf219b1f2d10f7272b42584b581e", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
855
c
/* C++ implementation of the solvers from Larsson et al. ICCV 2019 Please cite Larsson et al., Revisiting Radial Distortion Absolute Pose, ICCV 2019 if you use this solver. */ #pragma once #include <Eigen/Dense> #include "pose_estimator.h" #include "../misc/refinement.h" #include "../misc/distortion.h" namespa...
35.53
45
(translation_unit) "/* C++ implementation of the solvers from Larsson et al. ICCV 2019\n Please cite\n Larsson et al., Revisiting Radial Distortion Absolute Pose, ICCV 2019\n if you use this solver.\n */\n#pragma once\n#include <Eigen/Dense>\n#include "pose_estimator.h"\n#include "../misc/refinement.h"\n#include "....
493
36
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 35.53, "nodes": 284, "errors": 0, "source_hash": "0f8b791ddd28d611fec8448e850ebd801995a852df18e080368e1a0be4fb4650", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
856
c
#ifndef CBULLET_H #define CBULLET_H #include "CObject.h" class CBullet : public CObject { private: double size; double vX; double vY; public: CBullet(double _bulletSize) // default red colour : CObject(SColour(1.0, 0.0, 0.0)) { this->size = _bulletSize; this->vX = 0.0; this->vY = 0.0; } CBullet(d...
21.71
31
(translation_unit) "#ifndef CBULLET_H\n#define CBULLET_H\n\n#include "CObject.h"\n\nclass CBullet : public CObject\n{\nprivate:\n double size;\n\n double vX;\n double vY;\n\npublic:\n CBullet(double _bulletSize)\n // default red colour\n : CObject(SColour(1.0, 0.0, 0.0))\n {\n this->size = _bulletSize;\n\n this->vX...
222
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 21.71, "nodes": 142, "errors": 0, "source_hash": "99dd902519f288767fe715441346d56cfae3c45163677faf6f0e5fdbcb38fd2d", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
857
c
#include "string.h" #include <stddef.h> #include <stdbool.h> #include "system.h" //For memory allocation. char* numbuffer; // // C-string standard library implementation. // size_t strlen(char *str) { if (str == NULL) return 0; int len = 0; while (*str != 0x0) { len++; ...
24.85
309
(translation_unit) "#include "string.h"\n\n#include <stddef.h>\n#include <stdbool.h>\n\n#include "system.h"\n//For memory allocation.\n\nchar* numbuffer;\n\n//\n// C-string standard library implementation.\n//\n\nsize_t strlen(char *str)\n{\n if (str == NULL)\n return 0;\n \n int len = 0;\n while (*...
2,124
0
{"language": "c", "success": true, "metadata": {"lines": 309, "avg_line_length": 24.85, "nodes": 1388, "errors": 0, "source_hash": "f567b78f4da998a5fd2811ec0e28f61727278da8fe189fc0905c7c24334b5d36", "categorized_nodes": 887}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
858
c
// =============================================================================== // Authors: AFRL/RQQA // Organization: Air Force Research Laboratory, Aerospace Systems Directorate, Power and Control Division // // Copyright (c) 2017 Government of the United State of America, as represented by // the Secretary of th...
39.82
45
(translation_unit) "// ===============================================================================\n// Authors: AFRL/RQQA\n// Organization: Air Force Research Laboratory, Aerospace Systems Directorate, Power and Control Division\n// \n// Copyright (c) 2017 Government of the United State of America, as represented b...
226
13
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 39.82, "nodes": 111, "errors": 0, "source_hash": "735587162e1eaa56fa9c8d06adf31b6416073df21edf220d9fbe689d250b6bc0", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef UXAS_ME...
859
c
//18.07.2014 14:34 //#/include<stdio.h> #include<conio.h> ///#include<stdlib.h> int main() { int c; c=rand(); printf("%d",c); getch(); return 0; }
11.36
14
(translation_unit) "//18.07.2014 14:34\n\n//#/include<stdio.h>\n#include<conio.h>\n///#include<stdlib.h>\nint main()\n{\n \n int c;\n c=rand();\n printf("%d",c);\n\n \n getch();\n return 0;\n}\n" (comment) "//18.07.2014 14:34" (comment) "//#/include<stdio.h>" (preproc_include) "#include<conio.h>\...
55
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 11.36, "nodes": 27, "errors": 0, "source_hash": "bf18df70867b20e9acd601f32d80865d00b970f6cf68812ff1f95ef1fa30b052", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
860
c
#ifndef VECTOR2_H #define VECTOR2_H #define _USE_MATH_DEFINES #include <cmath> #include <stdexcept> #include "general.h" class Vector2 { public: class error : std::runtime_error { public: error(const char *what) : std::runtime_error(what) {} }; static const Vector2 ZERO; static const Ve...
27.04
70
(translation_unit) "#ifndef VECTOR2_H\n#define VECTOR2_H\n\n#define _USE_MATH_DEFINES\n#include <cmath>\n#include <stdexcept>\n\n#include "general.h"\n\n\nclass Vector2 {\npublic:\n class error : std::runtime_error {\n public:\n error(const char *what) : std::runtime_error(what) {}\n };\n\n static co...
608
34
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 27.04, "nodes": 357, "errors": 0, "source_hash": "303fc51bbc9f7475b9308cc8ea34fd6b15e7968b70a5271f7df96f2336b86e4c", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef VECTOR...
861
c
/** * \copyright * MIT License * * Copyright (c) 2019 Infineon Technologies AG * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
29.23
66
(translation_unit) "/** \n* \copyright \n* MIT License \n* \n* Copyright (c) 2019 Infineon Technologies AG \n* \n* Permission is hereby granted, free of charge, to any person obtaining a copy \n* of this software and associated documentation files (the "Software"), to deal \n* in the Software without restriction, inclu...
86
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 29.23, "nodes": 59, "errors": 0, "source_hash": "7be814fc894ee67e4427b13ee913f4a3a3caa0d670f8b06190b61761136a4232", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
862
c
/* COPYRIGHT 2016 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions. For additional information, contact: Environmental Systems Research Institute, Inc. A...
26.42
57
(translation_unit) "/*\n COPYRIGHT 2016 ESRI\n \n TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL\n Unpublished material - all rights reserved under the\n Copyright Laws of the United States and applicable international\n laws, treaties, and conventions.\n \n For additional information, contact:\n Environmental System...
127
10
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.42, "nodes": 84, "errors": 0, "source_hash": "fd9e7ec117d257ba3616cafa0ef67d3a46bb30b474c281370d664894c3906bdf", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface AGSFe...
863
c
#include "my.h" #include <criterion/criterion.h> Test(error_handling, return_fonction_error) { int number = 0; // cr_... } Test(error_handling, return_fonction_passed) { int number = 1; // cr_... } Test(error_handling, return_fonction_other) { int number = 42; // cr_.....
13.13
23
(translation_unit) "#include "my.h" \n#include <criterion/criterion.h> \n \nTest(error_handling, return_fonction_error) \n{ \n int number = 0; \n \n // cr_... \n} \n \nTest(error_handling, return_fonction_passed) \n{ \n int number = 1; \n \n // cr_... \n} \n \nTest(error_handling, return_fonction_other) \n{...
73
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 13.13, "nodes": 39, "errors": 0, "source_hash": "cbe82a13120031c7792c575f42a9f5a377c0d27637c82bd7e22fc06b96459785", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
864
c
#include <stdio.h> #include <stdlib.h> int main(void) { float n1, n2, n3; printf("Digite a primeira nota do aluno: "); scanf("%f", &n1); printf("Digite a primeira nota do aluno: "); scanf("%f", &n2); printf("Digite a primeira nota do aluno: "); scanf("%f", &n3); printf("Media Geomet...
32.53
17
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n float n1, n2, n3;\n\n printf("Digite a primeira nota do aluno: ");\n scanf("%f", &n1);\n\n printf("Digite a primeira nota do aluno: ");\n scanf("%f", &n2);\n\n printf("Digite a primeira nota do aluno: ");\n scanf("%f...
234
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.53, "nodes": 129, "errors": 0, "source_hash": "58b916b06ba91740a73758bc4bc20d3d2fc0b52055e0415de6b0a906d688df3d", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
865
c
#ifndef JUCARIICOPII_CPP_JUCARIEMODERNA_H #define JUCARIICOPII_CPP_JUCARIEMODERNA_H #include "JucarieEducativa.h" #include "JucarieElectronica.h" class JucarieModerna : public JucarieEducativa, public JucarieElectronica { private: string brand; string model; public: JucarieModerna() = default...
24.58
26
(translation_unit) "#ifndef JUCARIICOPII_CPP_JUCARIEMODERNA_H \n#define JUCARIICOPII_CPP_JUCARIEMODERNA_H \n \n#include "JucarieEducativa.h" \n#include "JucarieElectronica.h" \n \n \nclass JucarieModerna : public JucarieEducativa, public JucarieElectronica { \nprivate: \n string brand; \n string model; \npublic: ...
150
11
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.58, "nodes": 84, "errors": 0, "source_hash": "0274f8094e9bbb631cb343c1aaaf1c9c54af89ac33b7d230514b93a7483ee7ba", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
866
c
#pragma once #include <functional> #include <memory> #include "plugin_base.h" namespace mavsdk { class OffboardImpl; class System; /** * @brief This class is used to control a drone with velocity commands. * * The module is called offboard because the velocity commands can be sent from external sources * as op...
36.76
265
(translation_unit) "#pragma once\n\n#include <functional>\n#include <memory>\n\n#include "plugin_base.h"\n\nnamespace mavsdk {\n\nclass OffboardImpl;\nclass System;\n\n/**\n * @brief This class is used to control a drone with velocity commands.\n *\n * The module is called offboard because the velocity commands can be ...
746
50
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 36.76, "nodes": 381, "errors": 0, "source_hash": "fc63987a6181bfaf527205e3e34c6ef10932745bb4ccf6f20deeadb2e1ead2b6", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
867
c
/** * Copyright (c) 2017-present, Tencent, Inc. * All rights reserved. * Author: ianwang <<EMAIL>> * Created on: 2018-01-08 */ #ifndef MTTLAYOUTCACHE_H_ #define MTTLAYOUTCACHE_H_ #include "MTTFlex.h" #include <stdint.h> typedef struct { MTTSize availableSize; MTTSize resultSize; MeasureMode widthMeasureMod...
30.44
41
(translation_unit) "/**\n * Copyright (c) 2017-present, Tencent, Inc.\n * All rights reserved.\n * Author: ianwang <<EMAIL>>\n * Created on: 2018-01-08\n */\n\n#ifndef MTTLAYOUTCACHE_H_\n#define MTTLAYOUTCACHE_H_\n#include "MTTFlex.h"\n#include <stdint.h>\n\ntypedef struct {\n MTTSize availableSize;\n MTTSize resultS...
218
1
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.44, "nodes": 148, "errors": 0, "source_hash": "92da2f20ce28364b3cc9133a6fbf658f7506d1fbb6a3cce174ef2cf3a9a57f19", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
868
c
/* * Copyright (c) 2016 <NAME> (<EMAIL>) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #include <pksav/gen2/time.h> pksav_error_t pksav_gen2_set_caught_data_time_field( const time_t* time_in, uint16_t* caught_data ) { ...
34.56
25
(translation_unit) "/*\n * Copyright (c) 2016 <NAME> (<EMAIL>)\n *\n * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt\n * or copy at http://opensource.org/licenses/MIT)\n */\n\n#include <pksav/gen2/time.h>\n\npksav_error_t pksav_gen2_set_caught_data_time_field(\n const time_t* time_in,\n ...
187
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.56, "nodes": 121, "errors": 0, "source_hash": "410972d1375e5e4be98b3f54aa395cd21a5d3e122b1161d315d3aa45b7d91000", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
869
c
#ifndef ETOOL_DUMPER_DUMP_HPP #define ETOOL_DUMPER_DUMP_HPP #include <ostream> #include <stdint.h> namespace etool { namespace dumper { typedef uint8_t ui8; typedef uint16_t ui16; typedef uint32_t ui32; typedef uint64_t ui64; struct info { static const int line_size = 80; static...
32.47
219
(translation_unit) "#ifndef ETOOL_DUMPER_DUMP_HPP\n#define ETOOL_DUMPER_DUMP_HPP\n\n#include <ostream>\n#include <stdint.h>\n\nnamespace etool { namespace dumper {\n\n typedef uint8_t ui8;\n typedef uint16_t ui16;\n typedef uint32_t ui32;\n typedef uint64_t ui64;\n\n struct info {\n\n static const...
2,461
112
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 32.47, "nodes": 1549, "errors": 0, "source_hash": "0774386afe2252eadf9c7f1b92deaaa2025122ae1cc4b7c09dfbd495838537c4", "categorized_nodes": 967}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
870
c
// Copyright 2021 Betamark Pty Ltd. All rights reserved. // Author: <NAME> (<EMAIL>) #ifndef TREX_RUNNER_GRAPHICS_H #define TREX_RUNNER_GRAPHICS_H #include <stdint.h> #include <stdbool.h> #include "utilities.h" typedef struct { int id; Rectangle source; Rectangle destination; } Texture; typedef struct ...
24.44
34
(translation_unit) "// Copyright 2021 Betamark Pty Ltd. All rights reserved.\n// Author: <NAME> (<EMAIL>)\n\n#ifndef TREX_RUNNER_GRAPHICS_H\n#define TREX_RUNNER_GRAPHICS_H\n\n#include <stdint.h>\n#include <stdbool.h>\n\n#include "utilities.h"\n\ntypedef struct {\n int id;\n Rectangle source;\n Rectangle destin...
209
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.44, "nodes": 146, "errors": 0, "source_hash": "b4e6e7e432a7c28050249d2c63402da288c0c8c199e50d89638ff17f3cb3c5c2", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
871
c
/* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "runtime/command_stream/tbx_command_stream_receiver_hw.h" #include "unit_tests/command_stream/command_stream_fixture.h" #include <cstdint> namespace NEO { class CommandStreamReceiver; class MockDevice; c...
26.67
21
(translation_unit) "/*\n * Copyright (C) 2017-2020 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#pragma once\n#include "runtime/command_stream/tbx_command_stream_receiver_hw.h"\n#include "unit_tests/command_stream/command_stream_fixture.h"\n\n#include <cstdint>\n\nnamespace NEO {\n\nclass CommandS...
93
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.67, "nodes": 59, "errors": 0, "source_hash": "7462581909aa702324b37ba3494e4b2bac168d6ba0657aa8df0040cbaeea3746", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
872
c
// Write a programme to find the area of circle #include <stdio.h> #define PI 3.141f int main(void) { float r; printf("Enter r : "); scanf("%f", &r); float area = PI * r * r; printf("\nArea : %.2f\n", area); }
19.91
11
(translation_unit) "// Write a programme to find the area of circle\n\n#include <stdio.h>\n\n#define PI 3.141f\n\nint main(void)\n{\n float r;\n printf("Enter r : ");\n scanf("%f", &r);\n\n float area = PI * r * r;\n\n printf("\nArea : %.2f\n", area);\n}\n" (comment) "// Write a programme to find the a...
79
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.91, "nodes": 46, "errors": 0, "source_hash": "89dcde5f728f3204223ae5793ef91a93cd7b0ad4b3d298d592b4e8d823a523b9", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
873
c
#ifndef MEANSHIFT_H #define MEANSHIFT_H #include <iostream> #include <opencv2/opencv.hpp> #define PI 3.1415926535898 #define EPSILON 0.01 #define CLUSTER_EPSILON 20 #define UNCLASSIFIED -1 #define CORE_POINT 1 #define BORDER_POINT 2 #define NOISE -2 #define SUCCESS 0 #define FAILURE -3 typedef struct P...
22.24
49
(translation_unit) "#ifndef MEANSHIFT_H \n#define MEANSHIFT_H \n#include <iostream> \n#include <opencv2/opencv.hpp> \n#define PI 3.1415926535898 \n#define EPSILON 0.01 \n#define CLUSTER_EPSILON 20 \n \n#define UNCLASSIFIED -1 \n#define CORE_POINT 1 \n#define BORDER_POINT 2 \n#define NOISE -2 \n#define SUCCESS 0 \n#defi...
335
15
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 22.24, "nodes": 226, "errors": 0, "source_hash": "26ce34478550df3fbb73a162a26edbd74fed978c5a5180f8a1c2f800828957d8", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
874
c
/*++ Copyright (c) 1998 Microsoft Corporation Module Name: fpconv.h Abstract: This is the header for the FLOAT conversion routines Author: <NAME> (jstokes) 22-Apr-1998 --*/ #if !defined(FLOAT_HEADER) #define FLOAT_HEADER #pragma once #ifdef __cplusplus extern "C" { #en...
12.03
37
(translation_unit) "/*++ \n \n Copyright (c) 1998 Microsoft Corporation \n \nModule Name: \n \n fpconv.h \n \nAbstract: \n \n This is the header for the FLOAT conversion routines \n \nAuthor: \n \n <NAME> (jstokes) 22-Apr-1998 \n \n--*/ \n \n#if !defined(FLOAT_HEADER) \n#define FLOAT_HEADER \n#pragma once ...
65
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 12.03, "nodes": 46, "errors": 0, "source_hash": "542dbc4587c08bc0dbe75ba11cf2f6d8455e28cf68d1041ad99bbb2185e8d637", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
875
c
// // HySocketHeartBeatProtocol.h // DemoCode // // Created by Hy on 2017/1/2. // Copyright © 2017 Hy. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol HySocketHeartBeatProtocol <NSObject> - (void)start; - (void)stop; - (void)performBlock:(void(^_Nullable)(void))pBlo...
22
15
(translation_unit) "//\n// HySocketHeartBeatProtocol.h\n// DemoCode\n//\n// Created by Hy on 2017/1/2.\n// Copyright © 2017 Hy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol HySocketHeartBeatProtocol <NSObject>\n\n- (void)start;\n\n- (void)stop;\n\n- (void)per...
79
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.0, "nodes": 50, "errors": 0, "source_hash": "06bdab3fecfd78e5fb611db5c63ef85df902af2844f34b3747d7336a60b814f9", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
876
c
// // LECGlobalDefine.h // LECPlayerSDK // // Created by 侯迪 on 9/13/15. // Copyright (c) 2015 letv. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(int, LECPlayerMediaType) { LECPlayerMediaTypeRTMP, LECPlayerMediaTypeHLS, LECPlayerMediaTypeFLV }; typedef NS_ENUM(NSInteger...
21
19
(translation_unit) "//\n// LECGlobalDefine.h\n// LECPlayerSDK\n//\n// Created by 侯迪 on 9/13/15.\n// Copyright (c) 2015 letv. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\ntypedef NS_ENUM(int, LECPlayerMediaType) {\n LECPlayerMediaTypeRTMP,\n LECPlayerMediaTypeHLS,\n LECPlayerMediaTypeF...
64
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.0, "nodes": 35, "errors": 0, "source_hash": "d0b19b89176e771fc71c120a6546608550b41dae7ac21415869a7e76f6b97d23", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Found...
877
c
// // OneVeiw.h // LH_Animation // // Created by lh on 2017/4/6. // Copyright © 2017年 李欢. All rights reserved. // #import <UIKit/UIKit.h> @interface OneVeiw : UIView @end
16.5
10
(translation_unit) "//\n// OneVeiw.h\n// LH_Animation\n//\n// Created by lh on 2017/4/6.\n// Copyright © 2017年 李欢. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface OneVeiw : UIView\n\n@end\n" (comment) "//" (comment) "// OneVeiw.h" (comment) "// LH_Animation" (comment) "//" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.5, "nodes": 10, "errors": 0, "source_hash": "3a7a0a48b9a5585689d85ad0bb4563c1630387be025ce81b1a8a92f86651d5fd", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UIK...
878
c
/*************************************************** This is a library for the MLX90614 Temp Sensor Designed specifically to work with the MLX90614 sensors in the adafruit shop ----> https://www.adafruit.com/products/1747 (3V) ----> https://www.adafruit.com/products/1748 (5V) These sensors use I2C to comm...
32.19
57
(translation_unit) "/***************************************************\n This is a library for the MLX90614 Temp Sensor\n\n Designed specifically to work with the MLX90614 sensors in the\n adafruit shop\n ----> https://www.adafruit.com/products/1747 (3V)\n ----> https://www.adafruit.com/products/1748 (5V)\n\n T...
271
2
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.19, "nodes": 207, "errors": 0, "source_hash": "6974206dd0ce5e2b1fbb1570745d152aa3c319cec25251496fdab5093e94ef01", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
879
c
// // Network.h // // Created by <NAME> on 8/10/10. // Copyright (c) 2010 LIM Labs. All rights reserved. // #ifndef NETWORK_H #define NETWORK_H #include <string> #include <vector> #if defined(_WIN32) # include <winsock2.h> # include <ws2tcpip.h> # pragma comment(lib, "ws2_32.lib") typedef size_t ssize_t; ty...
23.71
68
(translation_unit) "//\n// Network.h\n//\n// Created by <NAME> on 8/10/10.\n// Copyright (c) 2010 LIM Labs. All rights reserved.\n//\n\n#ifndef NETWORK_H\n#define NETWORK_H\n\n#include <string>\n#include <vector>\n\n#if defined(_WIN32)\n# include <winsock2.h>\n# include <ws2tcpip.h>\n# pragma comment(lib, "ws2...
387
11
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 23.71, "nodes": 274, "errors": 0, "source_hash": "29cf9e4e1dd25fec4a9d57cfb8a938b48ea634c1c03cb5989033d717eddc4039", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
880
c
#include <signal.h> int sigismember(const sigset_t *set, int sig) { unsigned s = sig-1; if (s >= _NSIG-1) return 0; return set->__bits[s / _NSIG_PER_WORD] & (1 << (s % _NSIG_PER_WORD)); }
26.29
7
(translation_unit) "#include <signal.h>\n\nint sigismember(const sigset_t *set, int sig)\n{\n unsigned s = sig-1;\n if (s >= _NSIG-1) return 0;\n return set->__bits[s / _NSIG_PER_WORD] & (1 << (s % _NSIG_PER_WORD));\n}\n" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_lib_string) "<si...
81
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.29, "nodes": 56, "errors": 0, "source_hash": "5767c57b199ef57c3563e4e3d043dc7ce83ef06a83d35d7ca5dc7ca3203cc49f", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
881
c
/* * Copyright 2018 NXP * * SPDX-License-Identifier: BSD-3-Clause * * Author <NAME> <<EMAIL>> */ #include <platform_def.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <debug.h> #include <errno.h> #include <string.h> #include <io.h> #include <ddr.h> #include <utils.h> ...
23
74
(translation_unit) "/*\n * Copyright 2018 NXP\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Author <NAME> <<EMAIL>>\n */\n\n#include <platform_def.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <debug.h>\n#include <errno.h>\n#include <string.h>\n#include <io.h>\...
537
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 23.0, "nodes": 323, "errors": 0, "source_hash": "fd5f7167f1f809e77c2eb29d430a89487af80ec9a44e888daccfd907e376189f", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
882
c
// // LDMonthPayViewCell.h // HDJFKJ // // Created by apple on 16/3/28. // Copyright © 2016年 LDSmallCat. All rights reserved. // #import <UIKit/UIKit.h> @interface LDMonthPayViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *moneyCount; @end
23.36
11
(translation_unit) "//\n// LDMonthPayViewCell.h\n// HDJFKJ\n//\n// Created by apple on 16/3/28.\n// Copyright © 2016年 LDSmallCat. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LDMonthPayViewCell : UITableViewCell\n@property (weak, nonatomic) IBOutlet UILabel *moneyCount;\n\n@end\n" (comment) "...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.36, "nodes": 25, "errors": 0, "source_hash": "41ce5db0c0c2af8654b7348662b925b1178eb8665122c44e3e122041860b002a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
883
c
// // KLHomeController.h // KLHomeService // // Created by Logic on 2019/11/29. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface KLHomeController : UIViewController @end NS_ASSUME_NONNULL_END
17.91
11
(translation_unit) "//\n// KLHomeController.h\n// KLHomeService\n//\n// Created by Logic on 2019/11/29.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface KLHomeController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// KLHomeController.h" (comment) "//...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.91, "nodes": 15, "errors": 0, "source_hash": "39c70e690b0deb2c5f5ceef4cb85afe9fa3e103fabb20fe5b584dbf7d867e073", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
884
c
/************************************************************************** * * Copyright (c) 2002 - 2011 by Computer Architecture Department, * Universitat Politecnica de Catalunya. * All rights reserved. * * The contents of this file may not be disclosed to third parties, * copied or duplicated in any form, in...
36.88
42
(translation_unit) "/**************************************************************************\n *\n * Copyright (c) 2002 - 2011 by Computer Architecture Department,\n * Universitat Politecnica de Catalunya.\n * All rights reserved.\n *\n * The contents of this file may not be disclosed to third parties,\n * copied or...
324
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 36.88, "nodes": 185, "errors": 0, "source_hash": "2f00224fb750dd6e82e85162bf3b402216093f3f02f59b1d60d9abf6121da7a5", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
885
c
/* -*- Mode: C++; -*- */ // copyright (c) 2012 by <NAME> <<EMAIL>> /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the term...
32.22
254
(translation_unit) "/* -*- Mode: C++; -*- */\n// copyright (c) 2012 by <NAME> <<EMAIL>>\n/***************************************************************************\n * *\n * This program is free software; you can redistribute it and/or modify ...
2,602
33
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 32.22, "nodes": 1595, "errors": 0, "source_hash": "8b36076278de0d68740870c65b0a4c3c05f29a94d88ccde305f6806a7e74409f", "categorized_nodes": 1195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
886
c
/*! * @file AdafruitIO_WiFi.h * * This is part of the Adafruit IO library for the Arduino platform. * * Adafruit invests time and resources providing this open source code, * please support Adafruit and open-source hardware by purchasing * products from Adafruit! * * Written by <NAME>, <NAME> for Adafruit Indu...
32.87
39
(translation_unit) "/*!\n * @file AdafruitIO_WiFi.h\n *\n * This is part of the Adafruit IO library for the Arduino platform.\n *\n * Adafruit invests time and resources providing this open source code,\n * please support Adafruit and open-source hardware by purchasing\n * products from Adafruit!\n *\n * Written by <NA...
144
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.87, "nodes": 101, "errors": 0, "source_hash": "92e35800e0e2a36022fd011bc5fe4032003dfcfb4f0c315c2d7865b5c61e5d76", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
887
c
/*++ Copyright (c) 2005 Microsoft Corporation All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. File Name: cmin...
22.02
59
(translation_unit) "/*++ \n \nCopyright (c) 2005 Microsoft Corporation \n \nAll rights reserved. \n \nTHIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \nANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A \nPARTICULAR PURP...
100
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 22.02, "nodes": 61, "errors": 0, "source_hash": "f2283671d9fd5a4013c431fc0dbeb59efb9166883ab3a7ed85d56b6ef38af594", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
888
c
// // UIView+Animation.h // MY // // Created by 胡少华 on 14-3-25. // Copyright (c) 2014年 halley. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (SYAnimation) - (void) startRotate; - (void) stopRoatate; - (void) rotate:(CGFloat)angle duration:(CGFloat)duration; - (void) translateX:(CGFloat)xOff...
32.12
17
(translation_unit) "//\n// UIView+Animation.h\n// MY\n//\n// Created by 胡少华 on 14-3-25.\n// Copyright (c) 2014年 halley. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (SYAnimation)\n\n- (void) startRotate;\n- (void) stopRoatate;\n\n- (void) rotate:(CGFloat)angle duration:(CGFloat)duration;...
159
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.12, "nodes": 93, "errors": 0, "source_hash": "a31e483666843782bb95019c18cb5e8c4eaa2d86cd6116ea883e0e0636f6769b", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<UIKit/UI...
889
c
#include "my_apue.h" int main(int argc, char const *argv[]) { int i,fd; struct stat statbuf; struct timespec timebuf[2]; if(argc == 1) { printf("must has a chmod file\n"); exit(1); } for(i = 1; i < argc ; i++) { if(stat(argv[i], &statbuf) == -1) { perror("stat"); continue; } if((fd = open(argv[i]...
18.22
32
(translation_unit) "#include "my_apue.h"\n\nint main(int argc, char const *argv[]) {\n int i,fd;\n struct stat statbuf;\n struct timespec timebuf[2];\n if(argc == 1) {\n printf("must has a chmod file\n");\n exit(1);\n }\n for(i = 1; i < argc ; i++) {\n if(stat(argv[i], &statbuf) == -1) {\n perror("stat");\n cont...
297
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.22, "nodes": 157, "errors": 0, "source_hash": "9609b47d97c4c3975b84829beba35fe4013f8c39c973a324580003c576dc004d", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
890
c
#pragma once #include <stdarg.h> #include <cassert> #include <memory> #include <functional> #include <thread> #include <string> #include <atomic> #include "Assert.h" #include "NoExcept.h" const int MAX_THREAD_NAME = 30; namespace core { class Impl_Base { public: virtual ~Impl_Base() NOEXCEPT(true...
26.59
73
(translation_unit) "#pragma once\n\n#include <stdarg.h>\n#include <cassert>\n#include <memory>\n#include <functional>\n#include <thread>\n#include <string>\n#include <atomic>\n#include "Assert.h"\n#include "NoExcept.h"\n\nconst int MAX_THREAD_NAME = 30;\n\nnamespace core\n{\n class Impl_Base\n {\n public:\n ...
645
38
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 26.59, "nodes": 349, "errors": 0, "source_hash": "0e34e3018f98b9a1d72da5cf2e0d6432b15606b7a63db90c4ea56febc2335415", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
891
c
// // TGTableViewDataSource.h // TGTableViewKit // // Created by <NAME> on 5/23/13. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @protocol TGTableViewDataSource <UITableViewDataSource> @property (nonatomic, strong) UITableView *tableView; @optional - (CGFloat)tableView...
31.8
15
(translation_unit) "//\n// TGTableViewDataSource.h\n// TGTableViewKit\n//\n// Created by <NAME> on 5/23/13.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@protocol TGTableViewDataSource <UITableViewDataSource>\n\n@property (nonatomic, strong) UITableView *tableView;...
91
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.8, "nodes": 60, "errors": 0, "source_hash": "495a760529a5d5ff755c65f8da67886cbca14fb22ef74319c513ad7641a18205", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
892
c
/* flags for init_pc_common */ #define PCCOMMON_KEYBOARD_PC 0 #define PCCOMMON_KEYBOARD_AT 1 void init_pc_common(running_machine *machine, UINT32 flags, void (*set_keyb_int_func)(running_machine *, int)); void pc_keyboard(void); UINT8 pc_keyb_read(void); void pc_keyb_set_clock(int on); void pc_keyb_clear(void); exte...
38.18
11
(translation_unit) "/* flags for init_pc_common */\n#define PCCOMMON_KEYBOARD_PC 0\n#define PCCOMMON_KEYBOARD_AT 1\n\nvoid init_pc_common(running_machine *machine, UINT32 flags, void (*set_keyb_int_func)(running_machine *, int));\n\nvoid pc_keyboard(void);\nUINT8 pc_keyb_read(void);\nvoid pc_keyb_set_clock(int on);\nvo...
115
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 38.18, "nodes": 79, "errors": 0, "source_hash": "4f1e4f3507ed4064670b95003b4e4d0ca361bb0a09a4b4a23e7538fa0c53e96f", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define PC...
893
c
///********************************************************************************* //* //* ECXcx //* Author: <NAME> //* Email: <EMAIL> //* //*********************************************************************************/ #ifndef ECX_TYPES_H #define ECX_TYPES_H #ifdef WIN32 # include <stdint.h> #endif //end WIN...
24.87
15
(translation_unit) "///*********************************************************************************\n//*\n//* ECXcx\n//* Author: <NAME>\n//* Email: <EMAIL>\n//*\n//*********************************************************************************/\n\n#ifndef ECX_TYPES_H\n#define ECX_TYPES_H\n\n#ifdef WIN32\n# incl...
33
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.87, "nodes": 20, "errors": 0, "source_hash": "a1867bcadcc095845cd5d037a0b71b9a0b9052a905523029465660137eed580a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
894
c
#ifndef __BSP_ADC_H #define __BSP_ADC_H #include "applications/main.h" #define ADC_DEV_NAME "adc1" /* 定义adc设备的名字 */ #define ADC_DEV_CHANNEL 13 /* 定义adc设备的通道 */ #define REFER_VOLTAGE 330 /* 定义adc设备的参考电压,比真实的硬件电压扩大了十倍,方便计算处理 */ #define CONVE...
44.75
12
(translation_unit) "#ifndef __BSP_ADC_H\n#define __BSP_ADC_H\n\n#include "applications/main.h"\n\n#define ADC_DEV_NAME "adc1" /* 定义adc设备的名字 */\n#define ADC_DEV_CHANNEL 13 /* 定义adc设备的通道 */\n#define REFER_VOLTAGE 330 /* 定义adc设备的参考电压,比真实的硬件电压扩大了十倍,...
77
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 44.75, "nodes": 56, "errors": 0, "source_hash": "ff94d71a9cc2797830e727ebb45e6a8490a620da75c03ccf0c8a99639154701f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
895
c
#include "map.h" #include <ace/managers/log.h> #include <ace/managers/memory.h> #include "mapjson.h" tMap g_sMap = {.fubWidth = 0, .fubHeight = 0, .pData = {{{0}}}}; void mapInit(char *szFileName) { logBlockBegin("mapInit(szPath: %s)", szFileName); sprintf(g_sMap.szPath, "data/maps/%s", szFileName); tJson *pMapJso...
32.87
23
(translation_unit) "#include "map.h"\n#include <ace/managers/log.h>\n#include <ace/managers/memory.h>\n#include "mapjson.h"\n\ntMap g_sMap = {.fubWidth = 0, .fubHeight = 0, .pData = {{{0}}}};\n\nvoid mapInit(char *szFileName) {\n logBlockBegin("mapInit(szPath: %s)", szFileName);\n sprintf(g_sMap.szPath, "data/maps/%s",...
238
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.87, "nodes": 134, "errors": 0, "source_hash": "4929058700a950c8aaedc3de3f9cd9baca128802fc615d7183a1456e4145aa82", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
896
c
/*=== *** test_1 (duk_safe_call) concat: foobarquux still here ==> rc=0, result='undefined' *** test_2 (duk_safe_call) new_ctx is NULL: 1 new_ctx is NULL: 1 new_ctx is NULL: 1 ==> rc=0, result='undefined' ===*/ static duk_ret_t test_1(duk_context *ctx) { duk_context *new_ctx; duk_set_top(ctx, 0); (void) duk_push_t...
26.92
48
(translation_unit) "/*===\n*** test_1 (duk_safe_call)\nconcat: foobarquux\nstill here\n==> rc=0, result='undefined'\n*** test_2 (duk_safe_call)\nnew_ctx is NULL: 1\nnew_ctx is NULL: 1\nnew_ctx is NULL: 1\n==> rc=0, result='undefined'\n===*/\n\nstatic duk_ret_t test_1(duk_context *ctx) {\n duk_context *new_ctx;\n\n duk_...
354
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 26.92, "nodes": 190, "errors": 0, "source_hash": "db36762ae964d8934de8b8f0f3725d0e7d1abaf69ab49e4e4d882a91d4b75ccc", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
897
c
#include <stdio.h> #include <stdlib.h> #include <string.h> /** * I think the intersting thing here is that numbers can be converted to others, * but this is not the case for other types since they are unique? */ double divide_by_three(double num) { return num / 3; } int main(int argc, char *argv[]) { pr...
19.5
18
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n\n/**\n * I think the intersting thing here is that numbers can be converted to others,\n * but this is not the case for other types since they are unique?\n */\n\n\ndouble divide_by_three(double num)\n{\n return num / 3;\n}\n\nint m...
79
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.5, "nodes": 50, "errors": 0, "source_hash": "81bc3955855d3ba686e9c6b0557af97239b125f515f50a1a192e387c70075987", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
898
c
/******************************************************************************* * Copyright (C) 2017 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /**************************************************************...
30.4
42
(translation_unit) "/*******************************************************************************\n* Copyright (C) 2017 - 2020 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n ******************************************************************************/\n\n/*************************************...
129
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.4, "nodes": 74, "errors": 0, "source_hash": "9e785ec225d7131f08e7ae0b9ade9090c2230584833de2b895483b9f604540e5", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
899