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
/* _Rand cseg 0000753E 0000002D CmdGetNum cseg 0000756B 0000007E CmdObjStatusV cseg 000075E9 00000066 CmdShowPriScrn cseg 0000764F 00000021 CmdVersion cseg 00007670 00000016 */ #include "agi...
29.36
28
(translation_unit) "/*\n_Rand cseg 0000753E 0000002D\nCmdGetNum cseg 0000756B 0000007E\nCmdObjStatusV cseg 000075E9 00000066\nCmdShowPriScrn cseg 0000764F 00000021\nCmdVersion cseg 00007670 0...
140
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.36, "nodes": 73, "errors": 0, "source_hash": "e84f9fd10a06b177c41992a2e0af11d5d37d757a265ca3fc9e724d976fa74439", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,100
c
/* * File: main.c * Author: aluno * * Created on November 16, 2017, 11:24 AM */ #include <stdio.h> #include <stdlib.h> #include "utils.h" #include <string.h> #define TAMANHO 25 /* * */ int main(int argc, char** argv) { char frase1[TAMANHO]; char letra; printf("Escreva algo: "); lerStr...
16.31
29
(translation_unit) "/* \n * File: main.c\n * Author: aluno\n *\n * Created on November 16, 2017, 11:24 AM\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "utils.h"\n#include <string.h>\n#define TAMANHO 25\n\n/*\n * \n */\n\nint main(int argc, char** argv) {\n char frase1[TAMANHO];\n char letra;\n \...
126
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 16.31, "nodes": 69, "errors": 0, "source_hash": "eec58f3a8ca417c70a297d74544013bd3b9e76aa8f147064fabcbaf4aef64b7c", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,101
c
#ifndef CondFormats_HcalObjects_OOTPileupCorrectionColl_h #define CondFormats_HcalObjects_OOTPileupCorrectionColl_h #include <string> #include "boost/serialization/shared_ptr.hpp" #include "boost/serialization/map.hpp" #include "CondFormats/HcalObjects/interface/AbsOOTPileupCorrection.h" class OOTPileupCorrectionCo...
44.96
28
(translation_unit) "#ifndef CondFormats_HcalObjects_OOTPileupCorrectionColl_h\n#define CondFormats_HcalObjects_OOTPileupCorrectionColl_h\n\n#include <string>\n\n#include "boost/serialization/shared_ptr.hpp"\n#include "boost/serialization/map.hpp"\n\n#include "CondFormats/HcalObjects/interface/AbsOOTPileupCorrection.h"\...
363
23
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 44.96, "nodes": 204, "errors": 0, "source_hash": "7c40dee00eb72b27e5879e166a5280c422ca23931b0dda6d245475f7b5bd5981", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,102
c
#pragma once #include <slamtools/common.h> inline unsigned int get_random_seed() { static std::random_device rd; return rd(); } class _RandomBase { public: _RandomBase() { seed(); } void seed() { engine.seed(get_random_seed()); } void seed(unsigned int value) { ...
24.2
162
(translation_unit) "#pragma once\n\n#include <slamtools/common.h>\n\ninline unsigned int get_random_seed() {\n static std::random_device rd;\n return rd();\n}\n\nclass _RandomBase {\n public:\n _RandomBase() {\n seed();\n }\n\n void seed() {\n engine.seed(get_random_seed());\n }\n\n ...
1,364
58
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 24.2, "nodes": 798, "errors": 0, "source_hash": "755b3ed05e096321c850b15b2cecbf0acf07b370574fb8ec706ca1becf6bd003", "categorized_nodes": 534}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,103
c
#ifndef CLASS_NCINE_LUACOLORUTILS #define CLASS_NCINE_LUACOLORUTILS #include "common_macros.h" struct lua_State; namespace ncine { class Colorf; /// Lua utilities for the `Color` class class DLL_PUBLIC LuaColorUtils { public: static void push(lua_State *L, const Colorf &color); static void pushField(lua_State ...
35.1
21
(translation_unit) "#ifndef CLASS_NCINE_LUACOLORUTILS\n#define CLASS_NCINE_LUACOLORUTILS\n\n#include "common_macros.h"\n\nstruct lua_State;\n\nnamespace ncine {\n\nclass Colorf;\n\n/// Lua utilities for the `Color` class\nclass DLL_PUBLIC LuaColorUtils\n{\n public:\n static void push(lua_State *L, const Colorf &color)...
232
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.1, "nodes": 145, "errors": 0, "source_hash": "ec68e7483b6ff74c73e1ae1d44ca043fe4ba1b0bb2086733b21adce6eedf80d6", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,104
c
/* * unix_glue.c * * Glue code for pasting Kerberos into the Unix environment. * * Originally written by <NAME>, Cygnus Support, May '94. * Public Domain. */ #include "krb.h" #include <sys/time.h> /* Start and end Kerberos library access. On Unix, this is a No-op. */ int krb_start_session (x) char *x; { r...
14.53
34
(translation_unit) "/*\n * unix_glue.c\n * \n * Glue code for pasting Kerberos into the Unix environment.\n *\n * Originally written by <NAME>, Cygnus Support, May '94.\n * Public Domain.\n */\n\n#include "krb.h"\n#include <sys/time.h>\n\n/* Start and end Kerberos library access. On Unix, this is a No-op. */\nint\nkr...
95
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 14.53, "nodes": 56, "errors": 0, "source_hash": "ea320f8b599336084085215957d3c8c80502065a7d95cfa01ca5b89d60600966", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,105
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 <UIKit/UIView.h> @class UIImageView, UILabel; @interface PKGifFailedBackground : UIView { UIImageView *_backgroundImageView; ...
38.43
23
(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 <UIKit/UIView.h>\n\n@class UIImageView, UILabel;\n\n@interface PKGifFailedBackground : UIView\n{\n UIIma...
219
20
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.43, "nodes": 134, "errors": 0, "source_hash": "cde1ae91a981aafe784c63d0661ed7fa3a27544c473638c3785f77a49c2d5c4c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,106
c
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface LoadingSpinner : NSObject - (void)presentSpinnerOnViewController:(UIViewController *)viewController completion:(dispatch_block_t)completion; @end
42
5
(translation_unit) "#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface LoadingSpinner : NSObject\n\n- (void)presentSpinnerOnViewController:(UIViewController *)viewController completion:(dispatch_block_t)completion;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_dire...
38
4
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 42.0, "nodes": 25, "errors": 0, "source_hash": "b0103fba0da99355b6579deb5da184a2ccbfc2fcbb41c5b65108b7572d4ce0c1", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
4,107
c
#pragma once // Qt. #include <QObject> class QEvent; // This class is used as a memberless filter for qt events, and as such it // only needs to exist once. class rgIgnoreTabFocusEventFilter : public QObject { Q_OBJECT public: // Singleton get function. static rgIgnoreTabFocusEventFilter& Get(); signal...
28.45
22
(translation_unit) "#pragma once\n\n// Qt.\n#include <QObject>\n\nclass QEvent;\n\n// This class is used as a memberless filter for qt events, and as such it\n// only needs to exist once.\nclass rgIgnoreTabFocusEventFilter : public QObject\n{\n Q_OBJECT\n\npublic:\n // Singleton get function.\n static rgIgnore...
119
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.45, "nodes": 69, "errors": 0, "source_hash": "ef1f7848ddb8afa8d3be5583131c7c53b6d0d2260017f427fb42e280137e96d7", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,108
c
#include <stdarg.h> #include <stdio.h> #include "syscalls.h" long kernel_syscall(int num, ...) { va_list varg; va_start(varg, num); long a1 = va_arg(varg, long); long a2 = va_arg(varg, long); long a3 = va_arg(varg, long); register long r10 __asm__("r10") = va_arg(varg, long); register long r8 __asm__("r8...
27.6
42
(translation_unit) "#include <stdarg.h>\n#include <stdio.h>\n#include "syscalls.h"\n\nlong kernel_syscall(int num, ...)\n{\n va_list varg;\n va_start(varg, num);\n long a1 = va_arg(varg, long);\n long a2 = va_arg(varg, long);\n long a3 = va_arg(varg, long);\n register long r10 __asm__("r10") = va_arg(varg, long);...
536
3
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 27.6, "nodes": 308, "errors": 0, "source_hash": "67c0d7dc15de80aabdc36aaa8d6c41514a205ad85dd2253957aed06d36b07c42", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,109
c
#pragma once #include "GeneratorOperator.h" #include "Operation/OperationTypeFilter.h" namespace ska { namespace bytecode { SKALANG_GENERATOR_OPERATOR_DEFINE(ska::Operator::FILTER); } }
22.75
8
(translation_unit) "#pragma once\n\n#include "GeneratorOperator.h"\n#include "Operation/OperationTypeFilter.h"\n\nnamespace ska {\n namespace bytecode {\n SKALANG_GENERATOR_OPERATOR_DEFINE(ska::Operator::FILTER);\n }\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (...
46
3
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 22.75, "nodes": 23, "errors": 0, "source_hash": "51d13f2932e6019d3e93b82e2c31b5baff5b74dec88b50fc505e7682ca75ecf4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,110
c
namespace clstl { template<typename T> struct slist { private: T m_Data; slist<T>* m_Next; public: slist() : m_Next(nullptr) {} slist(const T& data) : m_Data(data) {} template<typename... args_t> void emplace_back(args_t&&... args) { slis...
30.51
49
(translation_unit) "namespace clstl {\n\n template<typename T>\n struct slist {\n\n private:\n T m_Data;\n slist<T>* m_Next;\n\n public:\n slist() : m_Next(nullptr) {}\n\n slist(const T& data) : m_Data(data) {}\n\n template<typename... args_t>\n void emplace_back(ar...
553
16
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.51, "nodes": 347, "errors": 0, "source_hash": "58d0fde8ad653998bf62dfb0a1b50e2ad4fd1dc6ddabaf2299a25ae475c08aab", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
4,111
c
// // YLCaptureColorController.h // YLLoveMark // // Created by lumin on 2017/12/24. // Copyright © 2017年 https://github.com/lqcjdx. All rights reserved. // 摄像机捕获颜色 #import <UIKit/UIKit.h> @interface YLCaptureColorController : UIViewController @end
24.4
10
(translation_unit) "//\n// YLCaptureColorController.h\n// YLLoveMark\n//\n// Created by lumin on 2017/12/24.\n// Copyright © 2017年 https://github.com/lqcjdx. All rights reserved.\n// 摄像机捕获颜色\n\n#import <UIKit/UIKit.h>\n\n@interface YLCaptureColorController : UIViewController\n\n@end\n\n" (comment) "//" (commen...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.4, "nodes": 10, "errors": 0, "source_hash": "ce3d089de496deb9ba63af647b99e9095aae178fe7a7d7b57f57601cd745f2fe", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit.h>\n\n@...
4,112
c
// $Id$ #pragma once #include <string> #include <vector> #include "SingleFactor.h" #include <boost/thread/tss.hpp> #include "lm/model.hh" #include "moses/LM/Ken.h" #include "moses/FF/FFState.h" namespace Moses { struct InMemoryPerSentenceOnDemandLMState : public FFState { lm::ngram::State state; virtual size_t h...
38.1
140
(translation_unit) "// $Id$\n#pragma once\n\n#include <string>\n#include <vector>\n#include "SingleFactor.h"\n#include <boost/thread/tss.hpp>\n#include "lm/model.hh"\n#include "moses/LM/Ken.h"\n#include "moses/FF/FFState.h"\n\nnamespace Moses\n{\n\nstruct InMemoryPerSentenceOnDemandLMState : public FFState {\n lm::ngr...
1,404
78
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 38.1, "nodes": 693, "errors": 0, "source_hash": "5e1e45fc8c46a2b4b0c06c97b50f613644b79724a183cb4c2b41e7da5dec507d", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,113
c
#pragma once #include <string> #include <iostream> #include <vector> using namespace std; #ifndef QUERY_H #define QUERY_H enum class QueryType { NewBus, BusesForStop, StopsForBus, AllBuses }; struct Query { QueryType type; string bus; string stop; vector<string> stops; }; istream& operator >> (istream&...
15.81
21
(translation_unit) "#pragma once\n#include <string>\n#include <iostream>\n#include <vector>\nusing namespace std;\n\n#ifndef QUERY_H\n#define QUERY_H\nenum class QueryType {\n NewBus,\n BusesForStop,\n StopsForBus,\n AllBuses\n};\nstruct Query {\n QueryType type;\n string bus;\n string stop;\n vector<string> st...
95
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.81, "nodes": 67, "errors": 0, "source_hash": "4ad14e2c19cf6b586fd04afe89a44fc2bbf4ec9fc28dbe7ce34662679baeb72d", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,114
c
/* This file is part of TON Blockchain Library. TON Blockchain 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 2 of the License, or (at your option) any later ver...
29.12
78
(translation_unit) "/*\n This file is part of TON Blockchain Library.\n\n TON Blockchain Library is free software: you can redistribute it and/or modify\n it under the terms of the GNU Lesser General Public License as published by\n the Free Software Foundation, either version 2 of the License, or\n (at ...
499
22
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 29.12, "nodes": 288, "errors": 0, "source_hash": "1375407a37f6bb04a03b8b788a0e76e83e0598b1ef589023aac244ad7f76ba98", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,115
c
#pragma once #include "Size.h" #include "windows.h" #include <vector> namespace Baryon { class WindowsEventHandler { public: virtual ~WindowsEventHandler() = default; /* * The return value indicates whether the message has been handled */ virtual bool handleEvent(HWND, UINT, WPARAM, LPARAM) = 0; }; class Win...
22.36
36
(translation_unit) "#pragma once\n#include "Size.h"\n\n#include "windows.h"\n#include <vector>\n\n\nnamespace Baryon\n{\nclass WindowsEventHandler\n{\npublic:\n virtual ~WindowsEventHandler() = default;\n /*\n * The return value indicates whether the message has been handled\n */\n virtual bool handleEvent(HWND, UINT...
191
4
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.36, "nodes": 112, "errors": 0, "source_hash": "de3d49b947ea91292c4b263475d1ebf0cb6eec3171faf8efdcffaee642c7b10f", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,116
c
#include <assert.h> #include <inttypes.h> union U { uint8_t a[4]; }; int main() { uint32_t x[2] = {0xDEADBEEF, 0xDEADBEEF}; union U *u = x; uint8_t c4 = u->a[4]; unsigned word = 1; if(*(char *)&word == 1) assert(c4 == 0xEF); // little endian else assert(c4 == 0xDE); // big endian }
18.06
16
(translation_unit) "#include <assert.h>\n#include <inttypes.h>\n\nunion U {\n uint8_t a[4];\n};\n\nint main()\n{\n uint32_t x[2] = {0xDEADBEEF, 0xDEADBEEF};\n union U *u = x;\n uint8_t c4 = u->a[4];\n\n unsigned word = 1;\n if(*(char *)&word == 1)\n assert(c4 == 0xEF); // little endian\n else\n assert(c4 =...
127
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.06, "nodes": 85, "errors": 0, "source_hash": "7c7093eb635543d3cb01b98215ede2cee628b047c3d72b93989eebd62da51ad4", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,117
c
/* * getpw.c - This file is part of the libc-8086/pwd package for ELKS, * Copyright (C) 1995, 1996 <NAME> <<EMAIL>>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either *...
32.33
40
(translation_unit) "/*\n * getpw.c - This file is part of the libc-8086/pwd package for ELKS,\n * Copyright (C) 1995, 1996 <NAME> <<EMAIL>>.\n * \n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the Free Soft...
163
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.33, "nodes": 100, "errors": 0, "source_hash": "15294d8d4f8a7f85c897416cb65992c3907e64f0aeebbed341dfb7a84530de90", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,118
c
#ifndef GCP_UTIL_FREQUENCY_H #define GCP_UTIL_FREQUENCY_H /** * @file Frequency.h * * Tagged: Fri Aug 20 12:44:45 PDT 2004 * * @author <NAME> */ #include <iostream> #include "gcp/util/Energy.h" #include "gcp/util/Speed.h" namespace gcp { namespace util { class Energy; class Rx; class Wavel...
25.46
89
(translation_unit) "#ifndef GCP_UTIL_FREQUENCY_H\n#define GCP_UTIL_FREQUENCY_H\n\n/**\n * @file Frequency.h\n * \n * Tagged: Fri Aug 20 12:44:45 PDT 2004\n * \n * @author <NAME>\n */\n#include <iostream>\n\n#include "gcp/util/Energy.h"\n#include "gcp/util/Speed.h"\n\nnamespace gcp {\n namespace util {\n \n class...
514
20
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 25.46, "nodes": 291, "errors": 0, "source_hash": "6c549c13b18d3b718fbfbc1241ee9ec4965fb3c9a0965c628475ab47df73526f", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,119
c
#ifndef __EPDGUI_PAGE_INDICATOR_H #define __EPDGUI_PAGE_INDICATOR_H #include "epdgui_base.h" class EPDGUI_Page_Indicator : public EPDGUI_Base { public: static const int16_t GROUND_COLOR = 0; static const int16_t INDICATOR_SPACING = 10; static const int16_t INDICATOR_RADIUS = 10; static const int16_t...
37.42
33
(translation_unit) "#ifndef __EPDGUI_PAGE_INDICATOR_H\n#define __EPDGUI_PAGE_INDICATOR_H\n\n#include "epdgui_base.h"\n\nclass EPDGUI_Page_Indicator : public EPDGUI_Base\n{\npublic:\n static const int16_t GROUND_COLOR = 0;\n\n static const int16_t INDICATOR_SPACING = 10;\n\n static const int16_t INDICATOR_RADIU...
301
7
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 37.42, "nodes": 186, "errors": 0, "source_hash": "083be88f256d37084cf079fb117d6c4fdc51562734b16721669db1271409418b", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,120
c
#pragma once #include <nextalign/nextalign.h> #include <string> #include <vector> #include "../alphabet/aminoacids.h" #include "../alphabet/nucleotides.h" #include "../utils/vector2d.h" struct NextalignOptions; template<typename Letter> struct AlignmentResult { Sequence<Letter> query; Sequence<Letter> ref; i...
35.27
55
(translation_unit) "#pragma once\n\n#include <nextalign/nextalign.h>\n\n#include <string>\n#include <vector>\n\n#include "../alphabet/aminoacids.h"\n#include "../alphabet/nucleotides.h"\n#include "../utils/vector2d.h"\n\nstruct NextalignOptions;\n\ntemplate<typename Letter>\nstruct AlignmentResult {\n Sequence<Letter>...
550
41
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.27, "nodes": 362, "errors": 0, "source_hash": "a149c8a9ccd63323e449b934b158a352ba2cb150658ff3046396eaf5fd5c67b6", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,121
c
/* $Id$ */ /* * Copyright (c) 1990-1996 <NAME>ler * Copyright (c) 1991-1996 Silicon Graphics, Inc. * HylaFAX is a trademark of Silicon Graphics * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the a...
35.43
94
(translation_unit) "/* $Id$ */\n/*\n * Copyright (c) 1990-1996 <NAME>ler\n * Copyright (c) 1991-1996 Silicon Graphics, Inc.\n * HylaFAX is a trademark of Silicon Graphics\n *\n * Permission to use, copy, modify, distribute, and sell this software and \n * its documentation for any purpose is hereby granted without fee,...
757
32
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 35.43, "nodes": 448, "errors": 0, "source_hash": "c0b0d19593563bf4cd255abe03457f84a31fe3606cbc33e4ab3ed81fb7060364", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _faxAp...
4,122
c
#ifndef NETWORK_RECEIVER_TASK_H #define NETWORK_RECEIVER_TASK_H void start_miramesh_app( void); #endif
20.4
5
(translation_unit) "#ifndef NETWORK_RECEIVER_TASK_H\n#define NETWORK_RECEIVER_TASK_H\n\nvoid start_miramesh_app(\n void);\n\n#endif\n" (preproc_ifdef) "#ifndef NETWORK_RECEIVER_TASK_H\n#define NETWORK_RECEIVER_TASK_H\n\nvoid start_miramesh_app(\n void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "NETWO...
18
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.4, "nodes": 14, "errors": 0, "source_hash": "dc35222d6de6d881ac510222fe1c80a5af0ebceebe6936a4322ecc525bcf8305", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NET...
4,123
c
#pragma once #include "engine_t.h" #include <fstream> #include <stdlib.h> #include <time.h> #include <iostream> #include <algorithm> #include <time.h> #define n_pieces 15 struct piece { int id; int A, B, C; int D, E, F; int G, H, I; int c_up[3]; int c_right[3]; int c...
19.68
76
(translation_unit) "#pragma once \n \n \n#include "engine_t.h" \n#include <fstream> \n#include <stdlib.h> \n#include <time.h> \n#include <iostream> \n#include <algorithm> \n#include <time.h> \n \n#define n_pieces 15 \n \nstruct piece \n{ \n int id; \n int A, B, C; \n int D, E, F; \n int G, H, I; \n int c...
513
2
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 19.68, "nodes": 373, "errors": 0, "source_hash": "3cfb357ea05865c93c5d7bb6681e1a91aa170a5e2732f97f81f0410e5b467bc7", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,124
c
// // UIWebViewJSExportController.h // iOSInteractJS // // Created by sunke on 2020/7/10. // Copyright © 2020 KentSun. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIWebViewJSExportController : UIViewController @end NS_ASSUME_NONNULL_END
22.33
12
(translation_unit) "//\n// UIWebViewJSExportController.h\n// iOSInteractJS\n//\n// Created by sunke on 2020/7/10.\n// Copyright © 2020 KentSun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIWebViewJSExportController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.33, "nodes": 14, "errors": 0, "source_hash": "c052096a00acad9f139dbf5e8764bee5ee019375a0e5a93e721113f4eca03eb5", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
4,125
c
// RUN: %cml %s -o %t && %t | FileCheck %s #include <stdio.h> int main() { int a = 10, b = 1; int c = 19; switch (a) { default: { b = 10; while (c < 100) { if (c > 20) break; c++; } break; } case 1: { b = 3; if (b > 3) { a = a + 1; } break; } ca...
12.58
33
(translation_unit) "// RUN: %cml %s -o %t && %t | FileCheck %s\n\n#include <stdio.h>\nint main() {\n int a = 10, b = 1;\n int c = 19;\n switch (a) {\n default: {\n b = 10;\n while (c < 100) {\n if (c > 20)\n break;\n c++;\n }\n break;\n }\n case 1: {\n b = 3;\n if (b > 3) {\n ...
176
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 12.58, "nodes": 102, "errors": 0, "source_hash": "6a8c9b50fdb187cfeff1332fd3185238682136afc65ba4723463dd590d550a02", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,126
c
/* * Test shift instructions. * This test was created to check the correctness * of the following intrinsics support: * _mm512_sllv_epi32() * _mm512_srav_epi32() * _mm512_srlv_epi32() */ #include "m512_test_util.h" #include <stdio.h> __m512i i1; __m512i i2; __m512i i3; __m512i i4; volatile int ...
28.66
128
(translation_unit) "/*\n * Test shift instructions.\n * This test was created to check the correctness\n * of the following intrinsics support:\n * _mm512_sllv_epi32()\n * _mm512_srav_epi32()\n * _mm512_srlv_epi32()\n */\n\n#include "m512_test_util.h"\n#include <stdio.h>\n\n__m512i i1;\n__m512i i2;\n__m5...
1,475
4
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 28.66, "nodes": 891, "errors": 0, "source_hash": "20d350068b4c8bea5a3f3cb310f506c29434ee8ab8d1aebfe0a6b945aed461e1", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,127
c
#if !defined (_RSYS_TYPES_H_) #define _RSYS_TYPES_H_ #if !defined (INT_TYPES_TYPEDEFED) #include <stdint.h> #include <sys/types.h> typedef int8_t int8; typedef uint8_t uint8; typedef int16_t int16; typedef uint16_t uint16; typedef int32_t int32; typedef uint32_t uint32; typedef int64_t int64; typedef uint64_t uint64; ...
22.66
47
(translation_unit) "#if !defined (_RSYS_TYPES_H_)\n#define _RSYS_TYPES_H_\n\n#if !defined (INT_TYPES_TYPEDEFED)\n#include <stdint.h>\n#include <sys/types.h>\ntypedef int8_t int8;\ntypedef uint8_t uint8;\ntypedef int16_t int16;\ntypedef uint16_t uint16;\ntypedef int32_t int32;\ntypedef uint32_t uint32;\ntypedef int64_t ...
234
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 22.66, "nodes": 194, "errors": 0, "source_hash": "c60981089769058b72afcf18905d4a59c13dfb73a030efdfce35287673e9da70", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
4,128
c
#pragma once #include <stddef.h> struct MapSharedMemoryParameters { size_t process_id; size_t address; size_t size; }; enum struct MapSharedMemoryResult : size_t { Success, OutOfMemory, InvalidProcessID, InvalidMemoryRange }; struct CreateProcessParameters { void *elf_binary; siz...
20.8
60
(ERROR) "#pragma once\n\n#include <stddef.h>\n\nstruct MapSharedMemoryParameters {\n size_t process_id;\n size_t address;\n size_t size;\n};\n\nenum struct MapSharedMemoryResult : size_t {\n Success,\n OutOfMemory,\n InvalidProcessID,\n InvalidMemoryRange\n};\n\nstruct CreateProcessParameters {\n ...
240
9
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 20.8, "nodes": 154, "errors": 0, "source_hash": "4e6015745161afbf36d614146215c3eb65436bfb77a476b547c81be401ec4056", "categorized_nodes": 117}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include <...
4,129
c
/* * Copyright (c) 2020-2021, <NAME> * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #ifndef TFG_VIDEO_SEGMENTATION_CONSENSUSVOTER_H #define TFG_VIDEO_SEGMENTATION_CONSENSUSVOTER_H #include <vector> #i...
45.44
43
(translation_unit) "/*\n * Copyright (c) 2020-2021, <NAME>\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#ifndef TFG_VIDEO_SEGMENTATION_CONSENSUSVOTER_H\n#define TFG_VIDEO_SEGMENTATION_CONSENSUSV...
523
23
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 45.44, "nodes": 321, "errors": 0, "source_hash": "f2f646dae6309c12eb97d8607c08eafdeef63b34fcc001b104f33082d4c94783", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,130
c
#ifndef MAINAPP_H #define MAINAPP_H #include "include/cef_app.h" #include "mainhandler.h" #include "devtoolshandler.h" #include "proxydata.h" #include "cookievisitor.h" #include "browserdata.h" #include "v8handler.h" #include "elementcommand.h" #include "browsereventsemulator.h" #include "toolboxhandler.h" #include "sc...
36.02
216
(translation_unit) "#ifndef MAINAPP_H\n#define MAINAPP_H\n#include "include/cef_app.h"\n#include "mainhandler.h"\n#include "devtoolshandler.h"\n#include "proxydata.h"\n#include "cookievisitor.h"\n#include "browserdata.h"\n#include "v8handler.h"\n#include "elementcommand.h"\n#include "browsereventsemulator.h"\n#include ...
2,107
68
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 36.02, "nodes": 1328, "errors": 0, "source_hash": "9be46eeed4e321652a6ac2099ea85c94b804376527c4e1691171e1f0e7188e40", "categorized_nodes": 898}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
4,131
c
#pragma once #include <SFML/Graphics.hpp> #include <stdint.h> #include <vector> #include <memory> #include <string> #include "utils/circle.h" #include "hardpoint_placement.h" #include "thruster.h" #include "common.h" namespace vot { class Character : public sf::Drawable, public sf::Transformable { pu...
37.48
101
(translation_unit) "#pragma once\n\n#include <SFML/Graphics.hpp>\n#include <stdint.h>\n#include <vector>\n#include <memory>\n#include <string>\n\n#include "utils/circle.h"\n#include "hardpoint_placement.h"\n#include "thruster.h"\n#include "common.h"\n\nnamespace vot\n{\n class Character : public sf::Drawable, public...
905
44
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 37.48, "nodes": 563, "errors": 0, "source_hash": "8f1a01e79083c2764accb4aa5ce11b5be8b472ad9f83c7440451abec284d1015", "categorized_nodes": 365}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,132
c
// Copyright (C) 2002-2012 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __C_GUI_TOOL_BAR_H_INCLUDED__ #define __C_GUI_TOOL_BAR_H_INCLUDED__ #include "IrrCompileConfig.h" #ifdef _IRR_COMPILE_WITH_GUI_ #include "IG...
24.67
51
(translation_unit) "// Copyright (C) 2002-2012 <NAME> \n// This file is part of the "Irrlicht Engine". \n// For conditions of distribution and use, see copyright notice in irrlicht.h \n \n#ifndef __C_GUI_TOOL_BAR_H_INCLUDED__ \n#define __C_GUI_TOOL_BAR_H_INCLUDED__ \n \n#include "IrrCompileConfig.h" \n#ifdef _IRR_COMPI...
223
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.67, "nodes": 145, "errors": 0, "source_hash": "2ec16759a21646aa5e5b89a2cae22d6e7b03e2652c54e181a57af48a967db7aa", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,133
c
#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, FFMpegAVFrameColorRange) { FFMpegAVFrameColorRangeRestricted, FFMpegAVFrameColorRangeFull }; @interface FFMpegAVFrame : NSObject @property (nonatomic, readonly) int32_t width; @property (nonatomic, readonly) int32_t height...
34.61
18
(translation_unit) "#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSUInteger, FFMpegAVFrameColorRange) {\n FFMpegAVFrameColorRangeRestricted,\n FFMpegAVFrameColorRangeFull\n};\n\n@interface FFMpegAVFrame : NSObject\n\n@property (nonatomic, readonly) int32_t width;\n@property (non...
173
37
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.61, "nodes": 125, "errors": 0, "source_hash": "1571230a4c85f0c162f388f6a686124303a66da389c8e2b7e8b31c408af720e3", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,134
c
/* SIN Toolchain Exceptions.h Copyright 2019 <NAME> A class to contain all of our custom exceptions. */ #pragma once #include <stdexcept> #include <string> #include <sstream> #include <iostream> #include <bitset> /* Exceptions.h Copyright 2019 <NAME> The purpose of the Exceptions files is to implement the va...
30.94
71
(translation_unit) "/*\n\nSIN Toolchain\nExceptions.h\nCopyright 2019 <NAME>\n\nA class to contain all of our custom exceptions.\n\n*/\n\n#pragma once\n\n#include <stdexcept>\n#include <string>\n#include <sstream>\n#include <iostream>\n#include <bitset>\n\n/*\n\n Exceptions.h\n Copyright 2019 <NAME>\n\n The purpose of ...
560
39
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 30.94, "nodes": 318, "errors": 0, "source_hash": "59cb8153c754603b886bfc576ce52dfebb0c95ee1f73bbf7796739b87d164dc4", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,135
c
// Copyright 2018-present 650 Industries. All rights reserved. #import <ABI37_0_0UMFontInterface/ABI37_0_0UMFontScalerInterface.h> @protocol ABI37_0_0UMFontScalersManagerInterface - (void)registerFontScaler:(id<ABI37_0_0UMFontScalerInterface>)scaler; @end
50.2
5
(translation_unit) "// Copyright 2018-present 650 Industries. All rights reserved.\n\n#import <ABI37_0_0UMFontInterface/ABI37_0_0UMFontScalerInterface.h>\n\n@protocol ABI37_0_0UMFontScalersManagerInterface\n\n- (void)registerFontScaler:(id<ABI37_0_0UMFontScalerInterface>)scaler;\n\n@end\n" (comment) "// Copyright 201...
32
7
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 50.2, "nodes": 23, "errors": 0, "source_hash": "efe71bc20ac8d43cb0433f3750fb4aae39286106fb2872c36114d4a98f4c1bc9", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <ABI...
4,136
c
/* * Copyright 2019, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
34.21
75
(translation_unit) "/*\n * Copyright 2019, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
600
2
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 34.21, "nodes": 401, "errors": 0, "source_hash": "6102fcb191c8e70731b02b08c570dd11fe9149d5cad46c7763ab6583460d8bb6", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,137
c
#ifndef CORVUS_SOURCE_CORVUS_TIME_TIMEPOINT_H #define CORVUS_SOURCE_CORVUS_TIME_TIMEPOINT_H #include <chrono> namespace Corvus { class TimeDelta; class TimePoint { public: TimePoint(); TimeDelta operator-(TimePoint const &Rhs) const; protected: std::chrono::high_resol...
24.19
16
(translation_unit) "#ifndef CORVUS_SOURCE_CORVUS_TIME_TIMEPOINT_H\n#define CORVUS_SOURCE_CORVUS_TIME_TIMEPOINT_H\n\n#include <chrono>\n\nnamespace Corvus\n{\n\n class TimeDelta;\n\n class TimePoint\n {\n public:\n\n TimePoint();\n\n TimeDelta operator-(TimePoint const &Rhs) const;\n\n prote...
82
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.19, "nodes": 42, "errors": 0, "source_hash": "29081e77fbc9742068900dc9ecd97a00c9f4c3843b691532cb55f3cf73d851c3", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,138
c
// // LMSearchRelatedModel.h // LMReader // // Created by <NAME> on 2018/8/15. // Copyright © 2018年 tkmob. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { LMSearchRelatedModelAuthor = 1,//作者类型 LMSearchRelatedModelBook = 2,//书籍类型 }LMSearchRelatedModelType; @interface LMSearchRelat...
37.5
22
(translation_unit) "//\n// LMSearchRelatedModel.h\n// LMReader\n//\n// Created by <NAME> on 2018/8/15.\n// Copyright © 2018年 tkmob. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef enum {\n LMSearchRelatedModelAuthor = 1,//作者类型\n LMSearchRelatedModelBook = 2,//书籍类型\n}LMSearchRelatedMod...
146
22
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.5, "nodes": 93, "errors": 0, "source_hash": "1266ae15b477013e195211035e97f82e0c6d39321421403dcc756b0d4de1e8d5", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
4,139
c
/** * @file dh_lagacy_gripper.h * @brief Driver for DH-Robotics gripper communication * AG95 CAN2.0 Version and DH-3 CAN2.0 version * @author <NAME> (<EMAIL>) * @version 1.0 * @date 2020-11-17 * * @copyright Copyright (c) 2020 Shenzhen DH-Robotics Inc. * * <table> * <tr><th>Date <th>Version ...
32.04
83
(translation_unit) "/**\n * @file dh_lagacy_gripper.h\n * @brief Driver for DH-Robotics gripper communication\n * AG95 CAN2.0 Version and DH-3 CAN2.0 version\n * @author <NAME> (<EMAIL>)\n * @version 1.0\n * @date 2020-11-17\n * \n * @copyright Copyright (c) 2020 Shenzhen DH-Robotics Inc.\n * \n * <table>\n * ...
354
11
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.04, "nodes": 223, "errors": 0, "source_hash": "e73da510a9e4922a2ca4360353283ea6233f833bf7adf2621e0ff6a5c189cc8f", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "def __...
4,140
c
#include<stdio.h> int turn_around_t(int w[20],int b[20],int c); int avg_wt(int a[20],int b); int main() { int i,j,k,n,bt[20],wt[20]; printf("Enter number of processes:\n"); scanf("%d",&n); printf("Enter the burst time:\n"); for(i=0;i<n;i++) { scanf("%d",&bt[i]); } for(k=0;k<n;k++) { wt[k]=bt[k-1]+wt[k-1]...
14.32
60
(translation_unit) "#include<stdio.h>\n\nint turn_around_t(int w[20],int b[20],int c);\nint avg_wt(int a[20],int b);\n\nint main()\n{\n int i,j,k,n,bt[20],wt[20];\n printf("Enter number of processes:\n");\n scanf("%d",&n);\n printf("Enter the burst time:\n");\n for(i=0;i<n;i++)\n {\n scanf("%d",&bt[i]);\n }\n for(k=0;...
579
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 14.32, "nodes": 323, "errors": 0, "source_hash": "426b68673d58bbb74189729a37f49cd0b79caa1fcba531dfa7d45289e8a4a8b8", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,141
c
// // FDI2C.h // FireflyProduction // // Created by <NAME> on 12/28/14. // Copyright (c) 2014 Firefly Design. All rights reserved. // #import <Foundation/Foundation.h> @class FDLogger; @class FDSerialEngine; // ADBUS 0-7 (GPIO low byte) #define FDI2C_GPIO_WIRE_ORANGE 0 // SCL (TCK) #define FDI2C_GPIO_WIRE_YELLOW...
33.61
36
(translation_unit) "//\n// FDI2C.h\n// FireflyProduction\n//\n// Created by <NAME> on 12/28/14.\n// Copyright (c) 2014 Firefly Design. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class FDLogger;\n@class FDSerialEngine;\n\n// ADBUS 0-7 (GPIO low byte)\n#define FDI2C_GPIO_WIRE_ORANGE 0 // SCL (T...
305
38
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.61, "nodes": 205, "errors": 0, "source_hash": "16052e14a782c6a383e528a2ef267b1a0e6cdfab86278e755f4f7f55796b6693", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
4,142
c
// // ALSUAPlugProtocal.h // Public // // Created by Altair on 20/12/2017. // Copyright © 2017 Altair. All rights reserved. // #ifndef ALSUAPlugProtocal_h #define ALSUAPlugProtocal_h #endif /* ALSUAPlugProtocal_h */ #import "ALSUAPlugMode.h" #import "ALSUAResponse.h" typedef enum { ALSUABuiltInPlugStrategy...
18.83
84
(translation_unit) "//\n// ALSUAPlugProtocal.h\n// Public\n//\n// Created by Altair on 20/12/2017.\n// Copyright © 2017 Altair. All rights reserved.\n//\n\n#ifndef ALSUAPlugProtocal_h\n#define ALSUAPlugProtocal_h\n\n\n#endif /* ALSUAPlugProtocal_h */\n\n#import "ALSUAPlugMode.h"\n#import "ALSUAResponse.h"\n\ntypede...
274
22
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 18.83, "nodes": 179, "errors": 0, "source_hash": "38b8edf60cceeaba94ab56c41bf31970b6fba0b9f717fe83c6cb222132504b33", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
4,143
c
#include <stdio.h> #include "matrix_vector_functions_intel_mkl.h" #include "matrix_vector_functions_intel_mkl_ext.h" #include <math.h> #include "mkl.h" /* C = beta*C + alpha*A(1:Anrows, 1:Ancols)[T]*B(1:Bnrows, 1:Bncols)[T] */ void submatrix_submatrix_mult_with_ab(mat *A, mat *B, mat *C, int Anrows, int Ancol...
31.97
319
(translation_unit) "#include <stdio.h>\n#include "matrix_vector_functions_intel_mkl.h"\n#include "matrix_vector_functions_intel_mkl_ext.h"\n#include <math.h>\n#include "mkl.h"\n\n/* C = beta*C + alpha*A(1:Anrows, 1:Ancols)[T]*B(1:Bnrows, 1:Bncols)[T] */\nvoid submatrix_submatrix_mult_with_ab(mat *A, mat *B, mat *C, \n ...
3,404
0
{"language": "c", "success": true, "metadata": {"lines": 319, "avg_line_length": 31.97, "nodes": 2067, "errors": 0, "source_hash": "e6c4f41da194a65dd5ecf74216d5883f3ed4249eaf4211f81248bc34d25f12f8", "categorized_nodes": 1540}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,144
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <TLKit/TLKAbstractRangeSelectionLayer.h> @class TLKImageLayer, TLKSelectionLayer; @interface TLKRangeSelectionLayer : TLKAbstractRangeSelectionLayer { TLKSelectionLayer ...
32.04
28
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <TLKit/TLKAbstractRangeSelectionLayer.h>\n\n@class TLKImageLayer, TLKSelectionLayer;\n\n@interface TLKRangeSelectionLayer : TLKAbstractRangeSelection...
234
12
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.04, "nodes": 147, "errors": 0, "source_hash": "03ba8581cf39a983e0a8ad9e6703aa0a2cc45a04c25402a5f285cf7f1ce4e2a2", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,145
c
/************************************************* * * filename: lfs.h * * CSC 552 LFS Project Phase 1 * * <NAME> <EMAIL> * * <NAME> <EMAIL> * * A LFS layer header definition *************************************************/ #include <stdio.h> #include <stdint.h> #include "fsmeta.h" #include <stdlib.h...
20.81
27
(translation_unit) "/*************************************************\n *\n * filename: lfs.h\n *\n * CSC 552 LFS Project Phase 1\n *\n * <NAME> <EMAIL>\n * \n * <NAME> <EMAIL>\n *\n * A LFS layer header definition\n *************************************************/\n\n#include <stdio.h>\n#include <stdint.h>\n#in...
54
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.81, "nodes": 46, "errors": 0, "source_hash": "672bcf98a4928e7387da0daa08766f5aa676fcc1e0cad77b7d194904c8da852e", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,146
c
// // YZMessageElement.h // YChat // // Created by <NAME> on 2021/5/1. // Copyright © 2021 Apple. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol IMMessageElement <NSObject> @end @interface IMMessageElement : NSObject <IMMessageElement> @end NS_ASSUME_NONNULL_END
21.29
14
(translation_unit) "//\n// YZMessageElement.h\n// YChat\n//\n// Created by <NAME> on 2021/5/1.\n// Copyright © 2021 Apple. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol IMMessageElement <NSObject>\n\n@end\n\n@interface IMMessageElement : NSObject <IMMessageEle...
41
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.29, "nodes": 30, "errors": 0, "source_hash": "344d7506e945fecdcfc184ac60fe54d76c0a581a9aca575990be32c93f289c56", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
4,147
c
/* ******************************************************************************** * Copyright (C),2004-2005, tonyzyz, Fuzhou Rockchip Co.,Ltd. * All Rights Reserved * V1.00 * FileName : AviMp3Decode.c * Author : tonyzyz * Description: * Hi...
34.16
313
(translation_unit) "/*\n********************************************************************************\n* Copyright (C),2004-2005, tonyzyz, Fuzhou Rockchip Co.,Ltd.\n* All Rights Reserved\n* V1.00\n* FileName : AviMp3Decode.c\n* Author : to...
1,717
0
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 34.16, "nodes": 1067, "errors": 0, "source_hash": "97e01e939154ca6b295d648b14021a25a050c8345d5beebb9f72b2f5e0ef6a83", "categorized_nodes": 734}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
4,148
c
/* Simple Integer Option * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #ifndef PokemonAutomation_SimpleIntegerOption_H #define PokemonAutomation_SimpleIntegerOption_H #include <QJsonValue> #include <QLineEdit> namespace PokemonAutomation{ template <typename Type> class Si...
20.68
69
(translation_unit) "/* Simple Integer Option \n * \n * From: https://github.com/PokemonAutomation/Arduino-Source \n * \n */ \n \n#ifndef PokemonAutomation_SimpleIntegerOption_H \n#define PokemonAutomation_SimpleIntegerOption_H \n \n#include <QJsonValue> \n#include <QLineEdit> \n \nnamespace PokemonAutomation{ \n \n \...
297
20
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 20.68, "nodes": 178, "errors": 0, "source_hash": "1ea4de84a99ef4dbf73d58b8d0a64cc21d20c4705403e1438393748b18f78ede", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef Pokemo...
4,149
c
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #ifdef WIN32 #include <stdlib.h> #include <stdio.h> #include ...
28.43
58
(translation_unit) "// stdafx.h : include file for standard system include files,\n// or project specific include files that are used frequently, but\n// are changed infrequently\n//\n\n#pragma once\n\n\n#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers\n\n\n\n\n#ifdef WIN32\n#include <stdl...
215
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 28.43, "nodes": 138, "errors": 0, "source_hash": "9e6beefd6e842ddf32a31415f14d7456fd35f02bb81c22e5cd827d62872501ba", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,150
c
/* @author: <NAME> @activity: Chess Knight Tour (Any Size) @section: CSA 12 A @version: 0.9 @Change-logs: 0.01 - First Draft 0.02 - 3 Days of Debugging 0.03 - About give up 0.04 - Check Net for fix 0.05 - Fig-out what is wrong 0.06 - Tested on ...
24.41
168
(translation_unit) "/*\n @author: <NAME>\n @activity: Chess Knight Tour (Any Size)\n @section: CSA 12 A\n @version: 0.9\n @Change-logs:\n 0.01 - First Draft\n 0.02 - 3 Days of Debugging\n 0.03 - About give up\n 0.04 - Check Net for fix\n 0.05 - Fig-out what is w...
1,373
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 24.41, "nodes": 816, "errors": 0, "source_hash": "9fed36ef936fcc24708a2e194de93836258e0b4d9ae57917aee86327c1686914", "categorized_nodes": 581}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,151
c
/*- * Copyright (c) 2008-2009, <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 condit...
29.98
196
(translation_unit) "/*-\n * Copyright (c) 2008-2009, <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 * ...
977
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 29.98, "nodes": 601, "errors": 0, "source_hash": "9047d1badf1dcb16ac4f868817809acea07433f6cdd4806997620f3d3fd083c7", "categorized_nodes": 386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,152
c
struct EFSMetaFileParser { }; // we dont even need an object // its just a single parser function int EFSMetaFileParse(DB_txn *const txn, uint64_t fileID, strarg_t const path, strarg_t const type) { } // that easy? // okay, so far so good // but our error handling is messed up // first of all, the abosl...
37.85
112
(translation_unit) "struct EFSMetaFileParser {\n\n};\n\n\n\n// we dont even need an object\n// its just a single parser function\n\n\nint EFSMetaFileParse(DB_txn *const txn, uint64_t fileID, strarg_t const path, strarg_t const type) {\n\n}\n\n\n// that easy?\n\n\n\n\n// okay, so far so good\n// but our error handling i...
751
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 37.85, "nodes": 439, "errors": 0, "source_hash": "90293f548c748eb6f5c8db935c69643d7d3faa48a805482a7f653c3c59db7d5e", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "st...
4,153
c
/* * Copyright (C) 2010 <NAME> <<EMAIL>>, All rights reserved. * See the file LICENSE in the top level directory for more details. */ #include <sys/types.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <err.h> #include "kiwi.h" int if_kii_init(struct kiwi_ctx *kiwi) { char buf[2048]; stru...
27.21
126
(translation_unit) "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>, All rights reserved.\n * See the file LICENSE in the top level directory for more details.\n */\n\n#include <sys/types.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <string.h>\n#include <err.h>\n\n#include "kiwi.h"\n\nint\nif_kii_init(struct kiwi_c...
1,031
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 27.21, "nodes": 588, "errors": 0, "source_hash": "7f9dd630467e8047fb68f8eac219e56acda22d6da016dde676b424c5659a5430", "categorized_nodes": 432}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,154
c
/** * @File MVulkanRenderTarget * * @Created 2020-06-17 21:01:03 * * @Author DoubleYe **/ #ifndef _M_MVULKANRENDERTARGET_H_ #define _M_MVULKANRENDERTARGET_H_ #include "MGlobal.h" #if RENDER_GRAPHICS == MORTY_VULKAN #include "MIRenderTarget.h" #include "MVulkanDevice.h" #include "MRenderPass....
27.41
63
(translation_unit) "/**\n * @File MVulkanRenderTarget\n * \n * @Created 2020-06-17 21:01:03\n *\n * @Author DoubleYe\n**/\n\n#ifndef _M_MVULKANRENDERTARGET_H_\n#define _M_MVULKANRENDERTARGET_H_\n#include "MGlobal.h"\n\n#if RENDER_GRAPHICS == MORTY_VULKAN\n\n#include "MIRenderTarget.h"\n#include "MVul...
391
19
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.41, "nodes": 271, "errors": 0, "source_hash": "b94d00fcf1b3270a3be65c5931ca912a8450a5eb474d0490a4ad9947fc69f58e", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,155
c
#include "dat.h" /* * The code makes two assumptions: strlen(ld) is 1 or 2; latintab[i].ld can be a * prefix of latintab[j].ld only when j<i. */ static struct cvlist { char *ld; /* must be seen before using this conversion */ char *si; /* options for last input characters */ char *so; /* the corresponding Run...
18.53
78
(translation_unit) "#include "dat.h"\n\n/*\n * The code makes two assumptions: strlen(ld) is 1 or 2; latintab[i].ld can be a\n * prefix of latintab[j].ld only when j<i.\n */\nstatic\nstruct cvlist\n{\n char *ld; /* must be seen before using this conversion */\n char *si; /* options for last input characters */\n char...
580
1
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 18.53, "nodes": 393, "errors": 0, "source_hash": "0f351e13a2d4d276ebee400696dec2c77732f2ef43a375add311b91b20520515", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,156
c
/** @file Header file for PCCT parser Copyright (c) 2020, Arm Limited. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef PCCT_PARSER_H_ #define PCCT_PARSER_H_ /** Minimum value for the 'length' field in subspaces of types 0, 1 and 2. */ #define MIN_MEMORY_RANGE_LENGTH 8 /** Minimum value for the '...
33.6
25
(translation_unit) "/** @file\n Header file for PCCT parser\n\n Copyright (c) 2020, Arm Limited.\n SPDX-License-Identifier: BSD-2-Clause-Patent\n**/\n\n#ifndef PCCT_PARSER_H_\n#define PCCT_PARSER_H_\n\n/**\n Minimum value for the 'length' field in subspaces of types 0, 1 and 2.\n*/\n#define MIN_MEMORY_RANGE_LENGTH ...
33
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 33.6, "nodes": 24, "errors": 0, "source_hash": "d3c09b0bc9a61fbe1f9f66388f2baded82eda3e33be3bbb29649b5f6ea09cf3b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
4,157
c
// // GuidePageCell.h // GuidePage // // Created by fangjs on 16/3/28. // Copyright © 2016年 fangjs. All rights reserved. // #import <UIKit/UIKit.h> @interface GuidePageCell : UICollectionViewCell @property (nonatomic, strong) UIImage *image; @property (weak, nonatomic) IBOutlet UIButton *myButton; - (void)setInde...
28.54
13
(translation_unit) "//\n// GuidePageCell.h\n// GuidePage\n//\n// Created by fangjs on 16/3/28.\n// Copyright © 2016年 fangjs. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GuidePageCell : UICollectionViewCell\n@property (nonatomic, strong) UIImage *image;\n@property (weak, nonatomic) IBOutlet UIB...
79
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.54, "nodes": 52, "errors": 0, "source_hash": "1b63575c84520a3d51597ae062120bf60b120bf27e039e84add89db7a8080609", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,158
c
#ifndef _ROOM_H_ #define _ROOM_H_ inherit "/world/room"; #endif
15
4
(translation_unit) "#ifndef _ROOM_H_\n#define _ROOM_H_\n\ninherit "/world/room";\n\n#endif\n" (preproc_ifdef) "#ifndef _ROOM_H_\n#define _ROOM_H_\n\ninherit "/world/room";\n\n#endif" (#ifndef) "#ifndef" (identifier) "_ROOM_H_" (preproc_def) "#define _ROOM_H_\n" (#define) "#define" (identifier)...
16
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.0, "nodes": 10, "errors": 0, "source_hash": "f241cf464ad3d370a1a3a7936bb053f99f8653efa87749c2c02d1d0e384f11eb", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RO...
4,159
c
// // AppDelegate.h // quotainXM // // Created by 朱彬 on 2020/6/10. // Copyright © 2020 朱彬. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property(nonatomic,strong)UIWindow *window; @property(nonatomic,assign)Boolean login; @end
21.85
13
(translation_unit) "//\n// AppDelegate.h\n// quotainXM\n//\n// Created by 朱彬 on 2020/6/10.\n// Copyright © 2020 朱彬. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property(nonatomic,strong)UIWindow *window;\n@property(nonatomic,assign)Bool...
55
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.85, "nodes": 33, "errors": 0, "source_hash": "5597df45342f7e71644354fe8313e3ab259bc4955b53e356954baa98d7cccad9", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
4,160
c
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef FPDFSDK_JAVASCRIPT_UTIL_H_ #define FPDFSDK_JAVASCRIPT_UTIL_H_ #includ...
36.98
48
(translation_unit) "// Copyright 2014 PDFium 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef FPDFSDK_JAVASCRIPT_UTIL_H_\n#define FPDFSDK_...
396
23
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 36.98, "nodes": 224, "errors": 0, "source_hash": "04e6c6a5dabb7caa4210f6b0e1dfb84a6e154dbdc44d8a5d855279059fe3ded3", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,161
c
#ifndef _HVR_VERTEX_CACHE_H #define _HVR_VERTEX_CACHE_H #include <shmem.h> #include "hvr_vertex.h" #include "hvr_map.h" #ifdef __cplusplus extern "C" { #endif #define HVR_CACHE_BUCKETS 8192 #define CACHE_BUCKET(vert_id) ((vert_id) % HVR_CACHE_BUCKETS) #define CACHE_NODE_OFFSET(my_node, my_cache) ((my_node) - (my_c...
38.59
178
(translation_unit) "#ifndef _HVR_VERTEX_CACHE_H\n#define _HVR_VERTEX_CACHE_H\n\n#include <shmem.h>\n\n#include "hvr_vertex.h"\n#include "hvr_map.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define HVR_CACHE_BUCKETS 8192\n#define CACHE_BUCKET(vert_id) ((vert_id) % HVR_CACHE_BUCKETS)\n\n#define CACHE_NODE_OFFSET(my...
1,197
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 38.59, "nodes": 818, "errors": 0, "source_hash": "2326085f09793dc6165768acbec9ffbd9007c931fa48e7932fc0287075ddcb40", "categorized_nodes": 550}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,162
c
/*s: networking/ip/snoopy/aoemd.c */ #include <u.h> #include <libc.h> #include <ip.h> #include "dat.h" #include "protos.h" typedef struct { uchar res; uchar cmd; uchar ea[6]; } Hdr; /*s: enum [[_anon_ (networking/ip/snoopy/aoemd.c)]] */ enum { Ocmd, Oea, Hsize = 8, }; /*e: enum [[_anon_ (netw...
22.71
97
(translation_unit) "/*s: networking/ip/snoopy/aoemd.c */\n#include <u.h>\n#include <libc.h>\n#include <ip.h>\n#include "dat.h"\n#include "protos.h"\n\ntypedef struct {\n uchar res;\n uchar cmd;\n uchar ea[6];\n} Hdr;\n\n/*s: enum [[_anon_ (networking/ip/snoopy/aoemd.c)]] */\nenum {\n Ocmd,\n Oea,\n\n ...
617
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 22.71, "nodes": 355, "errors": 0, "source_hash": "a720f6e7da6567dc460bd53e8c43310899a553da2752d04f30f6f7b78e10ed52", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,163
c
// // AttributeAlertView.h // WaterAssistant // // Created by hyl on 2021/7/14. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AttributeAlertView : UIView + (instancetype)create; - (void)show:(NSString*)title desc:(NSString*)desc; @end NS_ASSUME_NONNULL_END
20.23
13
(translation_unit) "//\n// AttributeAlertView.h\n// WaterAssistant\n//\n// Created by hyl on 2021/7/14.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AttributeAlertView : UIView\n+ (instancetype)create;\n- (void)show:(NSString*)title desc:(NSString*)desc;\n@end\n\nNS_ASSUME_NONNULL_END\n" ...
64
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.23, "nodes": 38, "errors": 0, "source_hash": "4d1cc2c6a9d82e5bbffcdd52f10d58d2b3581a429ae915b70e03a58376ea5abb", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,164
c
/* ** Born to code, die for bugs! */ #include "path_stack.h" #include <string.h> #include <assert.h> struct path_stack_t g_path_stack; errno_t change_root_path(struct path_stack_t* path_stack, char const* root_path) { errno_t r = -1; size_t length; path_stack->level = 0; length = strlen(root_path); if (length...
33.3
70
(translation_unit) "/*\n** Born to code, die for bugs!\n*/\n#include "path_stack.h"\n#include <string.h>\n#include <assert.h>\n\nstruct path_stack_t g_path_stack;\n\nerrno_t change_root_path(struct path_stack_t* path_stack, char const* root_path) {\n errno_t r = -1;\n size_t length;\n \n path_stack->level = 0;\n\n leng...
420
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 33.3, "nodes": 283, "errors": 0, "source_hash": "016600957b4f2cde4c669feef86b2e7385872df5474262bd846419f88f3a0a21", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,165
c
/* * mb3773 - Power Supply Monitor with Watch Dog Timer * * Todo: * Calculate the timeout from parameters. * */ #include "machine/mb3773.h" static mame_timer *watchdog_timer; static UINT8 ck = 0; static TIMER_CALLBACK( watchdog_timeout ) { mame_schedule_soft_reset(machine); } static void reset_timer( void )...
18.94
32
(translation_unit) "/*\n * mb3773 - Power Supply Monitor with Watch Dog Timer\n *\n * Todo:\n * Calculate the timeout from parameters.\n *\n */\n\n#include "machine/mb3773.h"\n\nstatic mame_timer *watchdog_timer;\nstatic UINT8 ck = 0;\n\nstatic TIMER_CALLBACK( watchdog_timeout )\n{\n mame_schedule_soft_reset(machine);...
159
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.94, "nodes": 87, "errors": 0, "source_hash": "d244a8799bb551a67b792407cd28a26cd5b330b145fd47907e4d5df15599b36c", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,166
c
#ifndef MEMORY_H #define MEMORY_H void enc_destructor( videoinfo info ); void dec_destructor( videoinfo info ); void alloc_vector( vector_ptr fmv, videoinfo info ); void free_vector( vector_ptr fmv, videoinfo info ); void free_mvs( vector_ptr * yfmv, videoinfo info ); void frame_alloc( YUVimage_ptr frame, videoinfo ...
38.58
12
(translation_unit) "#ifndef MEMORY_H\n#define MEMORY_H\n\nvoid enc_destructor( videoinfo info );\nvoid dec_destructor( videoinfo info );\n\nvoid alloc_vector( vector_ptr fmv, videoinfo info );\nvoid free_vector( vector_ptr fmv, videoinfo info );\nvoid free_mvs( vector_ptr * yfmv, videoinfo info );\n\nvoid frame_alloc( ...
140
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.58, "nodes": 105, "errors": 0, "source_hash": "e31f1dd2a9659e70cfaa4e92b3a0813e5d777a178f468676d3ca25c22467f664", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,167
c
#ifndef VLEXER_H #define VLEXER_H #include "vlex.h" #include "vtoken.h" namespace vds { class vtokenizer; class vlexer { public: vlexer( vtokenizer & tokenizer, const char ** keywords); const vlex & current() const { return this->current_; } const vlex & n...
14.97
34
(translation_unit) "#ifndef VLEXER_H\n#define VLEXER_H\n\n#include "vlex.h"\n#include "vtoken.h"\n\nnamespace vds {\n class vtokenizer;\n \n class vlexer\n {\n public:\n vlexer(\n vtokenizer & tokenizer,\n const char ** keywords);\n \n const vlex & current() const\n {\n return this->c...
150
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 14.97, "nodes": 77, "errors": 0, "source_hash": "011b082734236af8a61e07ecb2dfebdcd8935ae6da943b0758f91ce34933834d", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,168
c
// RUN: %ucc -c %s // RUN: %check %s f(int *) __attribute__((nonnull)); main() { int i; f((void *)0); // CHECK: /warning: null passed where non-null required/ f(&i); f(0); // CHECK: /warning: null passed where/ }
20.7
10
(translation_unit) "// RUN: %ucc -c %s\n// RUN: %check %s\n\nf(int *) __attribute__((nonnull));\n\nmain()\n{\n int i;\n\n f((void *)0); // CHECK: /warning: null passed where non-null required/\n f(&i);\n f(0); // CHECK: /warning: null passed where/\n}\n" (comment) "// RUN: %ucc -c %s" (comment) "// RUN: %check %s" ...
69
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.7, "nodes": 35, "errors": 0, "source_hash": "018d804923be0ac9b4d86aba9817b267b38165a5cc93d5232147ff90d023a709", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "f(i...
4,169
c
#ifndef PROJECTILE_H #define PROJECTILE_H #include "character.h" #include "collider.h" #include "object.h" enum ProjectileType { PROJECTILE_TYPE_PLAYER, PROJECTILE_TYPE_ENEMY }; class Projectile : public Object { private: float angle; ProjectileType type; float speed; public: Projectile(float x...
28.48
23
(translation_unit) "#ifndef PROJECTILE_H\n#define PROJECTILE_H\n\n#include "character.h"\n#include "collider.h"\n#include "object.h"\n\nenum ProjectileType { PROJECTILE_TYPE_PLAYER, PROJECTILE_TYPE_ENEMY };\n\nclass Projectile : public Object {\n\n private:\n float angle;\n ProjectileType type;\n float speed;...
192
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.48, "nodes": 128, "errors": 0, "source_hash": "7209d83a14244b5cb0daa9e47165e6c122357fc2d08b80c3f4f4c8a95139e86c", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,170
c
// // RedRootModel.h // NewStock // // Created by 王迪 on 2017/2/13. // Copyright © 2017年 Willey. All rights reserved. // #import <Mantle/Mantle.h> #import <UIKit/UIKit.h> @interface RedRootModel : MTLModel <MTLJSONSerializing> @property (nonatomic, copy) NSString *tm; @property (nonatomic, copy) NSString *slg; @p...
34.19
36
(translation_unit) "//\n// RedRootModel.h\n// NewStock\n//\n// Created by 王迪 on 2017/2/13.\n// Copyright © 2017年 Willey. All rights reserved.\n//\n\n#import <Mantle/Mantle.h>\n#import <UIKit/UIKit.h>\n\n@interface RedRootModel : MTLModel <MTLJSONSerializing>\n\n@property (nonatomic, copy) NSString *tm;\n@property (...
420
88
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.19, "nodes": 325, "errors": 0, "source_hash": "92f15d4643772f1bf979b3107ebe228e5d767c2b7abe53c11195426a1c66a0cd", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Mantl...
4,171
c
#ifndef F_CPU #define F_CPU 16000000UL // 16 MHz clock speed #endif #define D4 eS_PORTD4 #define D5 eS_PORTD5 #define D6 eS_PORTD6 #define D7 eS_PORTD7 #define RS eS_PORTC6 #define EN eS_PORTC7 #include<avr/io.h> #include<util/delay.h> #include<avr/interrupt.h> #include<stdio.h> #include"NRF24L01.h" #include"USAR...
17.84
63
(translation_unit) "#ifndef F_CPU\n#define F_CPU 16000000UL // 16 MHz clock speed\n#endif\n\n\n#define D4 eS_PORTD4\n#define D5 eS_PORTD5\n#define D6 eS_PORTD6\n#define D7 eS_PORTD7\n#define RS eS_PORTC6\n#define EN eS_PORTC7\n\n\n\n#include<avr/io.h>\n#include<util/delay.h>\n#include<avr/interrupt.h>\n#include<stdio.h...
221
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 17.84, "nodes": 131, "errors": 0, "source_hash": "4c0e01c6a5f5f46da93c48aefc8956c19f2b7b29555cf84abec587acbc70cde0", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,172
c
#include<stdio.h> int main() { int n; scanf("%d",&n); char f[n][3]; int x=1; for(int i=0; i<n; i++) { scanf("%s",&f[i]); if(f[i][0]==f[i-1][1]&&i!=0) x++; } printf("%d\n",x); }
16
14
(translation_unit) "#include<stdio.h> \nint main() \n{ \n int n; \n scanf("%d",&n); \n char f[n][3]; \n int x=1; \n for(int i=0; i<n; i++) \n { \n scanf("%s",&f[i]); \n if(f[i][0]==f[i-1][1]&&i!=0) x++; \n } \n printf("%d\n",x); \n} \n" (preproc_include) "#include<stdio.h> \n" ...
146
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.0, "nodes": 84, "errors": 0, "source_hash": "e3ead2566974ebf300171bb56faf1c4e5e8527b74977c2ef215c4c1a4d58b4ec", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,173
c
#include <stdio.h> #include <string.h> #include <stdarg.h> #if ! defined(_WIN32) # include <arpa/inet.h> # include <sys/types.h> # include <sys/socket.h> # include <netdb.h> # include <unistd.h> #endif #include "shogi.h" #if defined(CSA_LAN) || defined(DEKUNOBOU) const char * str_WSAError( const char *str ) { # ...
21.99
300
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdarg.h>\n#if ! defined(_WIN32)\n# include <arpa/inet.h>\n# include <sys/types.h>\n# include <sys/socket.h>\n# include <netdb.h>\n# include <unistd.h>\n#endif\n#include "shogi.h"\n\n#if defined(CSA_LAN) || defined(DEKUNOBOU)\nconst char *\nstr...
2,236
0
{"language": "c", "success": true, "metadata": {"lines": 300, "avg_line_length": 21.99, "nodes": 1253, "errors": 0, "source_hash": "71884f0f8882899607bbd143a317d37c778865a795a25a45c90797d18f94b25f", "categorized_nodes": 907}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,174
c
#include <stdio.h> #include <math.h> int main(){ int m; // 输入的整数 int i; // 循环次数 int k; // m 的平方根 scanf("%d",&m); while(m){ m++; k=(int)sqrt( (double)m ); for(i=2;i<=k;i++) if(m%i==0) break; if(i>k){ printf("%d",m); return 0; } }...
15.85
20
(translation_unit) "#include <stdio.h>\n#include <math.h>\nint main(){\n int m; // 输入的整数 \n int i; // 循环次数\n int k; // m 的平方根 \n scanf("%d",&m);\n while(m){\n m++;\n k=(int)sqrt( (double)m );\n for(i=2;i<=k;i++)\n if(m%i==0)\n break; \n if(i>k){\n printf("%d...
147
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 15.85, "nodes": 76, "errors": 0, "source_hash": "c82df11be9918955ccdedf6547b86ce18dcb5a6317c4923d149b71afd0c16797", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,175
c
// // BDNativeImageComponent.h // ByteWebView // // Created by liuyunxuan on 2019/6/12. // #import "BDNativeBaseComponent.h" NS_ASSUME_NONNULL_BEGIN @interface BDNativeImageComponent : BDNativeBaseComponent @end NS_ASSUME_NONNULL_END
20.55
11
(translation_unit) "//\n// BDNativeImageComponent.h\n// ByteWebView\n//\n// Created by liuyunxuan on 2019/6/12.\n//\n\n#import "BDNativeBaseComponent.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface BDNativeImageComponent : BDNativeBaseComponent\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// BDNati...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.55, "nodes": 15, "errors": 0, "source_hash": "208a9c026a85a8b2e231e367cb5ef317c11e0160f99849665878ffe789ba78c0", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
4,176
c
/*===-- wtk/foundation/assert.h -----------------------------*- mode: C -*-===*/ /* */ /* _ _ */ /* _ _ _| |_| |_ ...
42.85
34
(translation_unit) "/*===-- wtk/foundation/assert.h -----------------------------*- mode: C -*-===*/\n/* */\n/* _ _ */\n/* _ _ _| |_| |_ ...
111
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 42.85, "nodes": 75, "errors": 0, "source_hash": "6538b58e7993e4b0e5c2bb95a623ab1cb57b7a209cbbe18dd0b1982e9dbe3c25", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,177
c
/* * This file is part of the HCAN tools suite. * * HCAN is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your * option) any later version. * * HCAN...
27.24
213
(translation_unit) "/* \n * This file is part of the HCAN tools suite. \n * \n * HCAN is free software; you can redistribute it and/or modify it under \n * the terms of the GNU General Public License as published by the Free \n * Software Foundation; either version 2 of the License, or (at your \n * option) any la...
320
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 27.24, "nodes": 212, "errors": 0, "source_hash": "98a4bcf5a436e8a822676d984cc70be3d6b808e8c8aa8b0c2cc850106c70e1cc", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,178
c
#ifndef IAOverscrollingHandler_h #define IAOverscrollingHandler_h #include "IAOverscrollingBehavior.h" #include "IAObject.h" typedef struct{ //@extend IAObject base; float currentDragLength; IAOverscrollingBehavior behavior; float accelerationInPixelPerDragLengthSquared; } IAOverscrollingHandler; void...
43.26
19
(translation_unit) "#ifndef IAOverscrollingHandler_h\n#define IAOverscrollingHandler_h\n\n#include "IAOverscrollingBehavior.h"\n#include "IAObject.h"\n\ntypedef struct{\n //@extend\n IAObject base;\n float currentDragLength;\n IAOverscrollingBehavior behavior;\n float accelerationInPixelPerDragLengthSquared;\n...
132
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 43.26, "nodes": 94, "errors": 0, "source_hash": "de51edc501d7fe9ad8196572763c9a66153d05a47ff15ac9e84aba776bc95d94", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,179
c
// // SONodeStore.h // SOCoreGraph // // Created by <NAME> on 19.09.13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "SOManagedDataStore.h" @interface SONodeStore : SOManagedDataStore @end
20
10
(translation_unit) "//\n// SONodeStore.h\n// SOCoreGraph\n//\n// Created by <NAME> on 19.09.13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import "SOManagedDataStore.h"\n\n@interface SONodeStore : SOManagedDataStore\n\n@end\n" (comment) "//" (comment) "// SONodeStore.h" (comment) "// SOCore...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 11, "errors": 0, "source_hash": "df5b1596a4d1e1c4e4161f2ee152639c3ad831a4e058a330f9e4637b9334ff7c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"S...
4,180
c
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #pragma on...
31
43
(translation_unit) "/**\n * Copyright (c) 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same ...
126
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 31.0, "nodes": 72, "errors": 0, "source_hash": "3eb9d9381a3632454e933ceab58129e946c93195db50cbdfee6f736d5f8b766a", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,181
c
#pragma once // Utility functions related to strings #include <numeric> #include <string> template <typename T> std::string HexToString(T value) { static_assert(std::numeric_limits<T>::is_integer, "Convert to integer type before calling HexToString"); static const char digits[] = "0123456789ABCDEF"; constexpr si...
28.33
18
(translation_unit) "#pragma once\n\n// Utility functions related to strings\n\n#include <numeric>\n#include <string>\n\ntemplate <typename T>\nstd::string HexToString(T value)\n{\n static_assert(std::numeric_limits<T>::is_integer, "Convert to integer type before calling HexToString");\n static const char digits[] = "01...
188
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.33, "nodes": 123, "errors": 0, "source_hash": "7d331e429405002ec085089707e680818cb257e926418b1f1c869bd5e5932d1a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,182
c
/* ============================================================================== ArrangeView.h Created: 2 Oct 2017 1:01:56pm Author: <NAME> ============================================================================== */ #pragma once #include <JuceHeader.h> #include "../../shared/dro...
27.26
248
(ERROR) "/* \n ============================================================================== \n \n ArrangeView.h \n Created: 2 Oct 2017 1:01:56pm \n Author: <NAME> \n \n ============================================================================== \n*/ \n \n#pragma once \n \n#include <JuceHeader.h> \n#inc...
1,838
102
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 27.26, "nodes": 1067, "errors": 0, "source_hash": "112f55c80a10697ff0b5b28b02a82576eff043801b64f58cf08a2d02c4127da3", "categorized_nodes": 748}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\r\n ===============...
4,183
c
// Copyright (c) Microsoft Corporation // SPDX-License-Identifier: MIT /*++ Abstract: WDF based driver that does the following: 1. Registers a set of WFP callouts. 2. Registers as an eBPF program information provider and hook provider. Environment: Kernel mode --*/ // ntddk.h needs to be included first due to...
34.7
130
(translation_unit) "// Copyright (c) Microsoft Corporation\n// SPDX-License-Identifier: MIT\n\n/*++\n\nAbstract:\nWDF based driver that does the following:\n1. Registers a set of WFP callouts.\n2. Registers as an eBPF program information provider and hook provider.\n\nEnvironment:\n\n Kernel mode\n\n--*/\n\n// ntddk...
748
18
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 34.7, "nodes": 452, "errors": 0, "source_hash": "6f46082807cc85f65e3ae85ae9d894746fa3350c5e9cc2cee3ad685480d919ec", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,184
c
// // (c) 2019 Highwater Games Co. All Rights Reserved. // #ifndef ANDROID_PROJECT_PADO_COMPONENT_H #define ANDROID_PROJECT_PADO_COMPONENT_H class PADO_Component { }; #endif //ANDROID_PROJECT_PADO_COMPONENT_H
20.1
10
(translation_unit) "//\n// (c) 2019 Highwater Games Co. All Rights Reserved.\n//\n\n#ifndef ANDROID_PROJECT_PADO_COMPONENT_H\n#define ANDROID_PROJECT_PADO_COMPONENT_H\n\n\nclass PADO_Component {\n\n};\n\n\n#endif //ANDROID_PROJECT_PADO_COMPONENT_H\n" (comment) "//" (comment) "// (c) 2019 Highwater Games Co. All Rig...
20
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 9, "errors": 0, "source_hash": "fe5b223da7c80aa1a7910ee135a2dc4f6ceb5b8cf567a926321648dadd37b8c6", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef AND...
4,185
c
RUN_TESTS_MENU_OPTION() MENU_OPTION("Rising Tides", makeWaterGUI) MENU_OPTION("You Got Hufflepuff", makeQuizGUI) WINDOW_TITLE("Fun With Collections") TEST_ORDER("RisingTides.cpp", "YouGotHufflepuff.cpp")
39.8
5
(translation_unit) "RUN_TESTS_MENU_OPTION()\n\nMENU_OPTION("Rising Tides", makeWaterGUI)\nMENU_OPTION("You Got Hufflepuff", makeQuizGUI)\n\nWINDOW_TITLE("Fun With Collections")\n\nTEST_ORDER("RisingTides.cpp", "YouGotHufflepuff.cpp")\n" (expression_statement) "RUN_TESTS_MENU_OPTION()" (call_expression) "RUN_TESTS...
61
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 39.8, "nodes": 22, "errors": 0, "source_hash": "81bee0dec1cc0fa8e1fc6178ec7ff4285e1a464704879b773d76fccc954cfa99", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "RUN_TEST...
4,186
c
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
33.88
91
(translation_unit) "/* -*- c++ -*- ----------------------------------------------------------\n LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator\n http://lammps.sandia.gov, Sandia National Laboratories\n <NAME>, <EMAIL>\n\n Copyright (2003) Sandia Corporation. Under the terms of Contract\n ...
198
6
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 33.88, "nodes": 130, "errors": 0, "source_hash": "4161ae7153d661cbb1f31fbc1c983fa87b296ffb3f9da8b95d800ee14871be37", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
4,187
c
#ifndef UPDATER_H #define UPDATER_H #include "Settings.h" #include <ESPGithubUpdater.h> #include "RegionalSettings.h" typedef std::function<void(const char *newVersion, int progress)> FWUpdateProgressCallback; typedef std::function<void(const char *newVersion)> FWUpdateStartedCallback; typedef std::function<void(bool...
35.16
58
(translation_unit) "#ifndef UPDATER_H\n#define UPDATER_H\n\n#include "Settings.h"\n#include <ESPGithubUpdater.h>\n#include "RegionalSettings.h"\n\ntypedef std::function<void(const char *newVersion, int progress)> FWUpdateProgressCallback;\ntypedef std::function<void(const char *newVersion)> FWUpdateStartedCallback;\nty...
447
10
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 35.16, "nodes": 297, "errors": 0, "source_hash": "7aa5463bdbdbfcbcd7264efb31f2bd60ef09e1516eed1758108cfdae091748ae", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,188
c
#define CHAR_TEMP 10 #define CHAR_MINUS 11 #define CHAR_PLUS 12 #define CHAR_HUMIDITY 13 #define CHAR_PERCENT 14 #define CHAR_INTENSITY 15 #define CHAR_EMPTY 16 #define CHAR_Q 17 #define CHAR_B 18 #define CHAR_R 19 #define CHAR_H 20 #define CHAR_M 21 #define CHAR_DAY 22 #define CHAR_MONTH 23 #define CHAR_SET 24 // onl...
14.59
244
(translation_unit) "#define CHAR_TEMP 10\n#define CHAR_MINUS 11\n#define CHAR_PLUS 12\n#define CHAR_HUMIDITY 13\n#define CHAR_PERCENT 14\n#define CHAR_INTENSITY 15\n#define CHAR_EMPTY 16\n#define CHAR_Q 17\n#define CHAR_B 18\n#define CHAR_R 19\n#define CHAR_H 20\n#define CHAR_M 21\n#define CHAR_DAY 22\n#define CHAR_MON...
581
1
{"language": "c", "success": true, "metadata": {"lines": 244, "avg_line_length": 14.59, "nodes": 296, "errors": 0, "source_hash": "aa001ea90de39a86771695ca9afd6943d83391dcffcd1b8ecacfa8028495e56f", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
4,189
c
/* Copyright 2018 Stanford University, NVIDIA Corporation * * 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 app...
32.21
56
(ERROR) "/* Copyright 2018 Stanford University, NVIDIA Corporation\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 * Unles...
249
7
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 32.21, "nodes": 130, "errors": 0, "source_hash": "cb3c967f87f557d6bd81b7779f62204741ba28aa0fe83f3035d0770fbc1a7f7f", "categorized_nodes": 85}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/* Copyright 2018 Stanford...
4,190
c
#ifndef _ELEMENT_H #define _ELEMENT_H /*------------------------------------------------------------------------- * This source code is confidential proprietary information which is * Copyright (c) 1999, 2016 by Great Hill Corporation. * All Rights Reserved * *------------------------------------------------------...
24.69
103
(translation_unit) "#ifndef _ELEMENT_H\n#define _ELEMENT_H\n/*-------------------------------------------------------------------------\n * This source code is confidential proprietary information which is\n * Copyright (c) 1999, 2016 by Great Hill Corporation.\n * All Rights Reserved\n *\n *---------------------------...
812
17
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 24.69, "nodes": 478, "errors": 0, "source_hash": "1eca44d7c07860d57f879dcb19c428f27a0640e172354841d89ec084d1310586", "categorized_nodes": 338}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,191
c
#ifndef KEY_H #define KEY_H #include "uint256.h" #include "crypto/sha256.h" #include "context.h" #include "cryptoaddress.h" #include <list> #include "hash.h" namespace gravio { namespace wave { namespace backend { class PubKey { public: PubKey(){} //! Construct a public key using begin/end iterators to byte...
26.06
103
(translation_unit) "#ifndef KEY_H\n#define KEY_H\n#include "uint256.h"\n#include "crypto/sha256.h"\n#include "context.h"\n#include "cryptoaddress.h"\n#include <list>\n#include "hash.h"\n\nnamespace gravio {\nnamespace wave {\nnamespace backend {\n\n\nclass PubKey\n{\npublic:\n PubKey(){}\n\n //! Construct a publi...
928
23
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 26.06, "nodes": 534, "errors": 0, "source_hash": "07bf456263d433c76ff15eb64738e869907c99715e67ea57709b79d7acb66138", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,192
c
/** * @file Pila_max_Cola.h * @brief Fichero cabecera del TDA Pila * * Gestiona una secuencia de elementos con facilidades para la inserción y * borrado de elementos en un extremo * */ #ifndef __PilaMax_Cola__ #define __PilaMax_Cola__ #include <cassert> #include <iostream> #include "cola.h" using namespace st...
29.34
119
(translation_unit) "/**\n * @file Pila_max_Cola.h\n * @brief Fichero cabecera del TDA Pila\n *\n * Gestiona una secuencia de elementos con facilidades para la inserción y\n * borrado de elementos en un extremo\n *\n */\n\n#ifndef __PilaMax_Cola__\n#define __PilaMax_Cola__\n\n#include <cassert>\n#include <iostream>\n#in...
238
13
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 29.34, "nodes": 140, "errors": 0, "source_hash": "13d0a584c4f6a6c43403e1a2fc7c45c2565d00641cb497fca50fd1d66b092ac7", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
4,193
c
#include <rosePublicConfig.h> #ifdef ROSE_BUILD_BINARY_ANALYSIS_SUPPORT #ifndef USE_ROSE_INTEL_PIN_SUPPORT #error "ROSE not configured to use INTEL PIN support (use --with-IntelPin=<path>)." #endif // Required macros for Intel Pin tools (their header files require these) to compile #define TARGET_LINUX #define TARGET...
37.19
16
(translation_unit) "#include <rosePublicConfig.h>\n#ifdef ROSE_BUILD_BINARY_ANALYSIS_SUPPORT\n\n#ifndef USE_ROSE_INTEL_PIN_SUPPORT\n#error "ROSE not configured to use INTEL PIN support (use --with-IntelPin=<path>)."\n#endif\n\n// Required macros for Intel Pin tools (their header files require these) to compile\n#define...
72
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 37.19, "nodes": 50, "errors": 0, "source_hash": "c97b44fa5f039189d88edea3dadb49addc66aedcedaf22bc41f74bdea707509d", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,194
c
#ifndef REDDIT_H #define REDDIT_H #include <stdbool.h> #include "json-actor-boxed.h" #include "common.h" #include "logconf.h" /* see specs/reddit/ for specs */ #include "specs-code/reddit/one-specs.h" #define REDDIT_BASE_API_URL "https://www.reddit.com" #define REDDIT_BASE_OAUTH_URL "https://oauth.reddit.com" str...
42.85
27
(translation_unit) "#ifndef REDDIT_H\n#define REDDIT_H\n\n#include <stdbool.h>\n#include "json-actor-boxed.h"\n#include "common.h"\n#include "logconf.h"\n\n/* see specs/reddit/ for specs */\n#include "specs-code/reddit/one-specs.h"\n\n#define REDDIT_BASE_API_URL "https://www.reddit.com"\n#define REDDIT_BASE_OAUTH_URL...
227
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 42.85, "nodes": 162, "errors": 0, "source_hash": "b644f4e09709314bdda15b7d630efc84e20f641bd9d0b6927fa09a9c177d60bc", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,195
c
// // NSNumber+Addition.h // BaoZhangWang // // Created by yyy on 16/6/12. // Copyright © 2016年 yyy. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (Addition) /** * @author yyy, 16-06-12 09:22:24 * * 转字符串,保留对应小数位数 * * @param digits 小数点位数 * * @return 字符串 */ - (NSString *...
17.55
20
(translation_unit) "//\n// NSNumber+Addition.h\n// BaoZhangWang\n//\n// Created by yyy on 16/6/12.\n// Copyright © 2016年 yyy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSNumber (Addition)\n\n/**\n * @author yyy, 16-06-12 09:22:24\n *\n * 转字符串,保留对应小数位数\n *\n * @param digits 小数点位数...
44
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.55, "nodes": 24, "errors": 0, "source_hash": "dd8b1ba74ad03cd19ea7c72d9f58e264a16bf2480de4dc399b1e15a91352d33d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,196
c
#ifndef PROJECT_HEADER_component404_39_H #define PROJECT_HEADER_component404_39_H int component404_39(); #endif // PROJECT_HEADER_component404_39_H
28.8
5
(translation_unit) "#ifndef PROJECT_HEADER_component404_39_H\n#define PROJECT_HEADER_component404_39_H\n\n\n\nint component404_39();\n\n#endif // PROJECT_HEADER_component404_39_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component404_39_H\n#define PROJECT_HEADER_component404_39_H\n\n\n\nint component404_39();\n\n#endi...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.8, "nodes": 12, "errors": 0, "source_hash": "c4fcbe21b06627d10206311526e68f8299f442e9a4d970756c6dc4a3ed58ee87", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
4,197
c
// // tcodsMeshInterface.h // RegionGrowing // // Created by <NAME> on 2015-08-21. // Copyright (c) 2015 EpicGames. All rights reserved. // #pragma once #include <unordered_map> #include "Algorithm/FastBVH/BVH.h" #include "Algorithm/tcods/HalfEdge.h" #include "Algorithm/PointCloud.hpp" #include "Algorithm/nanof...
31.02
154
(translation_unit) "//\n// tcodsMeshInterface.h\n// RegionGrowing\n//\n// Created by <NAME> on 2015-08-21.\n// Copyright (c) 2015 EpicGames. All rights reserved.\n//\n\n#pragma once\n\n#include <unordered_map>\n\n#include "Algorithm/FastBVH/BVH.h"\n#include "Algorithm/tcods/HalfEdge.h"\n\n#include "Algorithm/PointC...
1,213
71
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 31.02, "nodes": 779, "errors": 0, "source_hash": "1391c0dfbd5a7dfc1ccfb298ddbb77d8d385f150415dc9c02fcc5647b4c1b815", "categorized_nodes": 524}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,198
c
#ifndef __REGIONAL_H_ #define __REGIONAL_H_ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> typedef struct stochasticity_grid { double *arr; int height, width; double weight_factor; double stddev; double mean; int depth; gsl_rng *rng; double *weights; } t_stochasti...
27.41
22
(translation_unit) "#ifndef __REGIONAL_H_ \n#define __REGIONAL_H_ \n \n#include <gsl/gsl_rng.h> \n#include <gsl/gsl_randist.h> \n \ntypedef struct stochasticity_grid { \n double *arr; \n int height, width; \n double weight_factor; \n double stddev; \n double mean; \n int depth; \n gsl_rng *rng; \n ...
132
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.41, "nodes": 102, "errors": 0, "source_hash": "b4c2d9cd4c785696a4577b73a27eb648e818648c0214b900fe3231afc9f2841c", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,199