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
#ifndef UTIL_TIMER_H #define UTIL_TIMER_H #include <chrono> #include <util_log.h> #include <cassert> #include <sstream> // needed for std::stringstream namespace util { template <class Clock> std::string display_clock_precision() { std::stringstream text; typedef std::chrono::duration<double, std...
36.9
71
(translation_unit) "#ifndef UTIL_TIMER_H\n#define UTIL_TIMER_H\n\n#include <chrono>\n\n#include <util_log.h>\n\n#include <cassert>\n#include <sstream> // needed for std::stringstream\n\nnamespace util \n{\n\n template <class Clock>\n std::string display_clock_precision()\n {\n std::stringstream text;\n\n typ...
749
38
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 36.9, "nodes": 432, "errors": 0, "source_hash": "d627966c4b16fb648e273dbea5ee70f9b490ca5441ccde3a8d3c570b98f46abb", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,600
c
// // Created by <NAME> on 06/05/2016. // #ifndef DBF2CSV_DBFVALUECURRENCY_H #define DBF2CSV_DBFVALUECURRENCY_H #include "TypedDbfValue.h" class DbfValueCurrency : public TypedDbfValue<double> { public: DbfValueCurrency(DbfColumnPtr column); void read(std::istream &stream); }; #endif //DBF2CSV_DBFVALUECU...
22.14
14
(translation_unit) "//\n// Created by <NAME> on 06/05/2016.\n//\n\n#ifndef DBF2CSV_DBFVALUECURRENCY_H\n#define DBF2CSV_DBFVALUECURRENCY_H\n\n\n#include "TypedDbfValue.h"\n\nclass DbfValueCurrency : public TypedDbfValue<double> {\npublic:\n DbfValueCurrency(DbfColumnPtr column);\n\n void read(std::istream &stream)...
63
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.14, "nodes": 36, "errors": 0, "source_hash": "5a8f25762768b58e4d882d5b83e821eb597d305b44c3635dda4966d759a4264a", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,601
c
#pragma once #include <cstdint> namespace ReedSolomon { class Polynomial { public: static Polynomial Create(uint16_t a0); static Polynomial Create(uint16_t a0, uint16_t a1); Polynomial(int order); Polynomial(const Polynomial& x); ~Polynomial(); Polynomial(uint16_t* coefficients, ...
21.23
39
(translation_unit) "#pragma once \n#include <cstdint> \n \nnamespace ReedSolomon { \n \n class Polynomial { \n \n public: \n \n static Polynomial Create(uint16_t a0); \n static Polynomial Create(uint16_t a0, uint16_t a1); \n \n Polynomial(int order); \n \n Polynomial(const Polynomial& x); \n \n ~Polynomial(); \n \...
249
9
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 21.23, "nodes": 143, "errors": 0, "source_hash": "4b62afa1820e6d4099610dfaba8ccbf7c3eba66b7151e4db356c44a89c4f5436", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,602
c
// // SwipableConfig_h // Pods // // Created by sys on 16/4/17. // // #ifndef SwipableConfig_h #define SwipableConfig_h #define TitleColorValue ((CGFloat)0x80 / (CGFloat)0xFF) //#define debugdebug #ifdef debugdebug #define debugLog(...) NSLog(__VA_ARGS__) #define debugMethod() NSLog(@"%s", __func__) #else #de...
19.63
19
(translation_unit) "//\n// SwipableConfig_h\n// Pods\n//\n// Created by sys on 16/4/17.\n//\n//\n\n#ifndef SwipableConfig_h\n#define SwipableConfig_h\n\n#define TitleColorValue ((CGFloat)0x80 / (CGFloat)0xFF)\n\n//#define debugdebug\n#ifdef debugdebug\n\n#define debugLog(...) NSLog(__VA_ARGS__)\n#define debugMethod...
55
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.63, "nodes": 35, "errors": 0, "source_hash": "490ce3611f4ad847b1b25fc8c5f98da4909dcb3c523dc54ef64c29049e707145", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,603
c
#ifndef INC__PT_TEST_H__ #define INC__PT_TEST_H__ #include <stdio.h> #include <stdlib.h> #include <assert.h> #ifdef __cplusplus # include <exception> # include <stdexcept> # define PT_CPP_BEGIN_CATCH try{ # define PT_CPP_END_CATCH \ } \ catch( std::domain_error const &error ) \ { \ fprintf( stderr, "[u:error]...
23.23
69
(translation_unit) "#ifndef INC__PT_TEST_H__\n#define INC__PT_TEST_H__\n\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\n\n#ifdef __cplusplus\n# include <exception>\n# include <stdexcept>\n# define PT_CPP_BEGIN_CATCH try{\n\n# define PT_CPP_END_CATCH \\n } \\n catch( std::domain_error const &error ) ...
83
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 23.23, "nodes": 74, "errors": 0, "source_hash": "c84638161988375926cc5677979243a6f7a8d17f6baec75da1ae59f03584f17b", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,604
c
#ifndef _BD_SIM_H_ #define _BD_SIM_H_ #include <random> using namespace std; #include "tree.h" #include "node.h" class BirthDeathSimulator { private: int failures_; int maxfailures_; double birthrate_; double deathrate_; double sumrate_; double relative_birth_rate_; int extantstop_; ...
25.4
45
(translation_unit) "#ifndef _BD_SIM_H_\n#define _BD_SIM_H_\n\n#include <random>\n\nusing namespace std;\n\n#include "tree.h"\n#include "node.h"\n\nclass BirthDeathSimulator {\nprivate:\n int failures_;\n int maxfailures_;\n double birthrate_;\n double deathrate_;\n double sumrate_;\n double relative_b...
315
10
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.4, "nodes": 219, "errors": 0, "source_hash": "f4264b597177c3206387598545604be154ed0f4d6a78928cb9cc07f7f5816dde", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,605
c
// Copyright 2012 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and us...
31.14
35
(translation_unit) "// Copyright 2012 ESRI \n// \n// All rights reserved under the copyright laws of the United States \n// and applicable international laws, treaties, and conventions. \n// \n// You may freely redistribute and use this sample code, with or \n// without modification, provided you include the original c...
187
22
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 31.14, "nodes": 123, "errors": 0, "source_hash": "f55ae38bc33e05fd7435db9568d642b9e20db5851118b8b06952a701e96b69f9", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,606
c
#ifndef STRING_H #define STRING_H #include <ostream> /* namespace MatLib { class String { public: String() = default; String(const char* str); String& operator= (const String& other); const char* data() const; private: const char* m...
20.35
20
(translation_unit) "#ifndef STRING_H\n#define STRING_H\n\n#include <ostream>\n/*\nnamespace MatLib\n{\n class String\n {\n public:\n String() = default;\n String(const char* str);\n\n String& operator= (const String& other);\n\n const char* data() const;\n\n ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.35, "nodes": 10, "errors": 0, "source_hash": "0b8628a9d2a2a47416ad9aaa595527939799c8cf66dede4b7994724ce00d206a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,607
c
#include "../core/common.h" #include "event.h" #ifdef USE_AE #include "event_ae.h" #elif USE_LIBEV #include "event_libev.h" #else #error "Must use one event" #endif eventLoop *eventLoopNew(int size) { eventLoop *el = xs_calloc(sizeof(*el)); el->ctx = eventApiNewLoop(size); return el; } void...
22.81
57
(translation_unit) "#include "../core/common.h"\n\n#include "event.h"\n\n#ifdef USE_AE\n #include "event_ae.h"\n#elif USE_LIBEV\n #include "event_libev.h"\n#else\n #error "Must use one event"\n#endif\n\neventLoop *eventLoopNew(int size) {\n eventLoop *el = xs_calloc(sizeof(*el));\n el->ctx = eventApiNewL...
520
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.81, "nodes": 328, "errors": 0, "source_hash": "8bdab296de14207405dfe8a4cb22f4fa88d23bafabb4b7e1cb28db774b6da5fe", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,608
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_OVERRIDES_HANDLER_H_ #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_OVERRIDES_HANDLER_H_ #in...
44.27
44
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_OVERRIDES_HANDLER_H_\n#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_...
370
16
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 44.27, "nodes": 212, "errors": 0, "source_hash": "389172fad87d2d4ba796499c42653768e1602d5dc565d4609f26fc6e56852664", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,609
c
#pragma once #include "llvm/IR/Module.h" #include "llvm/IR/GlobalValue.h" namespace Nom { namespace Runtime { template<typename T> class AvailableExternally { private: mutable llvm::Module *mainModule = nullptr; public: AvailableExternally() {} ~AvailableExternally() {} T *GetLLVMElement(llvm:...
22.56
48
(translation_unit) "#pragma once\n#include "llvm/IR/Module.h"\n#include "llvm/IR/GlobalValue.h"\n\nnamespace Nom\n{\n namespace Runtime\n {\n template<typename T>\n class AvailableExternally\n {\n private:\n mutable llvm::Module *mainModule = nullptr;\n public:\n AvailableExternally() {}\n ~AvailableExternal...
343
13
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.56, "nodes": 196, "errors": 0, "source_hash": "99daa047b0383f6775056a36b22609af7207bcbed12f14419101608c7dca2581", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,610
c
#pragma once #include "Constants.h" #include <vector> #include <map> #include <chrono> #include <optional> namespace FSecure::WinHttp { /// Helper to prepare HTTP requests with HttpClient class HttpRequest { public: /// Create a HttpRequest /// @param method - optional (defaults to GET) HTTP method /// @pa...
35
98
(translation_unit) "#pragma once\n\n#include "Constants.h"\n\n#include <vector>\n#include <map>\n#include <chrono>\n#include <optional>\n\nnamespace FSecure::WinHttp\n{\n /// Helper to prepare HTTP requests with HttpClient\n class HttpRequest\n {\n public:\n /// Create a HttpRequest\n /// @param method - optional (de...
686
37
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 35.0, "nodes": 403, "errors": 0, "source_hash": "27ca1336a961cad60fe706cbf55451ff10d119562b331aa867e433a3392f9116", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,611
c
#include <stdio.h> #include <stdlib.h> int main(){ char *answer; printf("Please type something: "): gets(answer); printf("you typed %s \n ",answer); return 0; }
10.47
15
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n\n\n\n\n\n\n\n\n\nint main(){\n\n char *answer;\n printf("Please type something: "):\n gets(answer);\n printf("you typed %s \n ",answer);\n\n\n\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<st...
61
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 10.47, "nodes": 33, "errors": 0, "source_hash": "2f5503bb7d7fc3a29369e48456bc9d4f266f8be67f66d4cc01b2a35eb5b2659e", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,612
c
#ifndef UNIQUEIDGENERATOR_H #define UNIQUEIDGENERATOR_H #include <queue> namespace mathem { template <typename T> class UniqueIDGenerator { public: UniqueIDGenerator(); ~UniqueIDGenerator(); T getID(); /// <summary> /// BUG: it accepts repetitions ! /// </summary> void returnID(T ID); void re...
14.62
68
(translation_unit) "#ifndef UNIQUEIDGENERATOR_H\n#define UNIQUEIDGENERATOR_H\n\n#include <queue>\n\nnamespace mathem\n{\n template <typename T>\n class UniqueIDGenerator\n {\n public:\n\n UniqueIDGenerator();\n ~UniqueIDGenerator();\n\n T getID();\n\n /// <summary>\n /// BUG: it accepts repetitions !\n /// </summ...
374
18
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 14.62, "nodes": 230, "errors": 0, "source_hash": "6ed3cef762bfcb2b922987483d95b1ca39ba7d2ce1091a3c96c4ae9976e0a20f", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,613
c
//************************************************************************** // Práctica 1 usando objetos //************************************************************************** #include <vector> #include <GL/gl.h> #include "vertex.h" #include <stdlib.h> #include <math.h> #define X 0 #define Y 1 #define Z 2 using...
26.98
108
(translation_unit) "//**************************************************************************\n// Práctica 1 usando objetos\n//**************************************************************************\n\n#include <vector>\n#include <GL/gl.h>\n#include "vertex.h"\n#include <stdlib.h>\n#include <math.h>\n#define X 0\...
585
16
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 26.98, "nodes": 365, "errors": 0, "source_hash": "d27d895455129194cb3b00f22db1d6bf0bc2f035965c2b85a4718fd5f3af3483", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
9,614
c
// // QBRTCSession.h // QuickbloxWebRTC // // Copyright (c) 2016 QuickBlox. All rights reserved. // #import <Foundation/Foundation.h> #import "QBRTCTypes.h" @class QBRTCAudioTrack; @class QBRTCVideoTrack; @class QBRTCMediaStream; NS_ASSUME_NONNULL_BEGIN /** * QBRTCSession class interface. * This class is sto...
30.82
112
(translation_unit) "//\n// QBRTCSession.h\n// QuickbloxWebRTC\n//\n// Copyright (c) 2016 QuickBlox. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "QBRTCTypes.h"\n\n@class QBRTCAudioTrack;\n@class QBRTCVideoTrack;\n@class QBRTCMediaStream;\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * QBRTCSession c...
417
50
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 30.82, "nodes": 265, "errors": 0, "source_hash": "ca52920bb52c9a2b5602ea85bddb7f02c16123503b7bb14fe03c84bb0cbc9d59", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
9,615
c
/* ac_list.h - declarations for linked list functions Copyright (C) 2007 Tideway Systems Limited. This 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.1 of the License, or (at y...
36.23
52
(translation_unit) "/* ac_list.h - declarations for linked list functions\n Copyright (C) 2007 Tideway Systems Limited.\n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2....
200
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 36.23, "nodes": 141, "errors": 0, "source_hash": "dbd1733d5738a0fe4ea7e68274ac186973d72ada33436d81251d8a70aaf626d6", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,616
c
// // ARTRealtimeChannels.h // ably // // Created by <NAME> on 3/2/16. // Copyright © 2016 Ably. All rights reserved. // #import <Ably/ARTChannels.h> #import <Ably/ARTRealtimeChannel.h> #import <Ably/ARTRealtime.h> NS_ASSUME_NONNULL_BEGIN @protocol ARTRealtimeChannelsProtocol // We copy this from the parent cla...
39.04
25
(translation_unit) "//\n// ARTRealtimeChannels.h\n// ably\n//\n// Created by <NAME> on 3/2/16.\n// Copyright © 2016 Ably. All rights reserved.\n//\n\n#import <Ably/ARTChannels.h>\n#import <Ably/ARTRealtimeChannel.h>\n#import <Ably/ARTRealtime.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol ARTRealtimeChannelsProtocol\n\...
184
22
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 39.04, "nodes": 108, "errors": 0, "source_hash": "4a67006f89bd0f934569bab0f13d4336764e52fd95e8b22411ed4a9d5d6432eb", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
9,617
c
#include "fsm_actions.h" #include "sys_confs.h" #include "lib_tors.h" #include "inc_unistd.h" #include "lib_descs.h" #include <dirent.h> #include "etc_iniparser.h" #include "dmap.h" #include "dmap_sel.h" #include "etc_utils.h" #include <time.h> void con_load_from_file(char_t *filename) { dictionary *conf ; int32_...
22.92
39
(translation_unit) "#include "fsm_actions.h"\n#include "sys_confs.h"\n#include "lib_tors.h"\n#include "inc_unistd.h"\n#include "lib_descs.h"\n#include <dirent.h>\n#include "etc_iniparser.h"\n#include "dmap.h"\n#include "dmap_sel.h"\n#include "etc_utils.h"\n#include <time.h>\n\nvoid con_load_from_file(char_t *filename)\...
279
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 22.92, "nodes": 151, "errors": 0, "source_hash": "11f52a930b6ba017931638467232fa5a8abdf56c345af01660293a848c7ea0d2", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,618
c
/** @file LMS_Parameter.h @author <NAME> (www.limemicro.com) @brief Enumerations of chip modules and all register parameters */ #ifndef LMS6002_CONTROL_PARAMETERS_H #define LMS6002_CONTROL_PARAMETERS_H #include <string.h> namespace lms6 { /** @brief LMS6002dr2 modules */ enum LMS_MODULE { UNDEF...
16.26
343
(translation_unit) "/** \n@file LMS_Parameter.h \n@author <NAME> (www.limemicro.com) \n@brief Enumerations of chip modules and all register parameters \n*/ \n \n#ifndef LMS6002_CONTROL_PARAMETERS_H \n#define LMS6002_CONTROL_PARAMETERS_H \n \n#include <string.h> \nnamespace lms6 \n{ \n/** @brief LMS6002dr2 modules \n...
944
0
{"language": "c", "success": true, "metadata": {"lines": 343, "avg_line_length": 16.26, "nodes": 626, "errors": 0, "source_hash": "933cbef8373bf7651c12cb365bc82e5e242eedeedb9c9fc248a6d99a0163a84b", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,619
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <HomeKitDaemon/HMDRemoteLoginReceiverAuthentication.h> @class HMDRemoteLoginCompanionAuthenticationRequest; @interface HMDRemoteLoginReceiverCompanionAuthentication : HMDRemoteL...
41.24
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <HomeKitDaemon/HMDRemoteLoginReceiverAuthentication.h>\n\n@class HMDRemoteLoginCompanionAuthenticationRequest;\n\n@interface HMDRemoteLoginReceiverCompan...
204
14
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 41.24, "nodes": 118, "errors": 0, "source_hash": "9c6a340b5078f0b8981e661b653b41371240cb52a338feff6fc62129bdefa072", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,620
c
/** * @file line_corpus.h * @author <NAME> * * All files in META are dual-licensed under the MIT and NCSA licenses. For more * details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the * project. */ #ifndef META_LINE_CORPUS_H_ #define META_LINE_CORPUS_H_ #include <string> #include <vector> #inc...
27.34
64
(translation_unit) "/**\n * @file line_corpus.h\n * @author <NAME>\n *\n * All files in META are dual-licensed under the MIT and NCSA licenses. For more\n * details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the\n * project.\n */\n\n#ifndef META_LINE_CORPUS_H_\n#define META_LINE_CORPUS_H_\n\n#include...
178
11
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 27.34, "nodes": 102, "errors": 0, "source_hash": "1e31c758252b9362aba6ffb326e3e2f703dbde6266fd6d796fda3b2a15957735", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,621
c
/* * Copyright (C) 2008 <NAME> <<EMAIL>>. * * This 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 version. * * This libr...
34.28
57
(translation_unit) "/*\n * Copyright (C) 2008 <NAME> <<EMAIL>>.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any late...
310
1
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.28, "nodes": 232, "errors": 0, "source_hash": "5db6c6720be756160a006549200cd3ceb2575eff0f0b7ed5a02c0841718205fb", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,622
c
#pragma once #ifdef NUT_PLATFORM_WINDOWS #ifdef NUT_BUILD_DLL #define NUT_API __declspec(dllexport) #else #define NUT_API __declspec(dllimport) #endif #else #error Nut Only supports Windows! #endif #define BIT(x) (1 << x)
19.91
11
(translation_unit) "#pragma once\n\n#ifdef NUT_PLATFORM_WINDOWS\n #ifdef NUT_BUILD_DLL\n #define NUT_API __declspec(dllexport)\n #else\n #define NUT_API __declspec(dllimport)\n #endif\n#else\n #error Nut Only supports Windows!\n#endif\n\n#define BIT(x) (1 << x)" (preproc_call) "#pragma once\n" (preproc_directiv...
35
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.91, "nodes": 32, "errors": 0, "source_hash": "59a0e0a40fc574395cdaab97a94f5c08543940c28f52845d793a3d482df0fa86", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,623
c
/* * Copyright 2013, 2014, 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
28.04
99
(translation_unit) "/*\n * Copyright 2013, 2014, 2015 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requ...
436
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 28.04, "nodes": 267, "errors": 0, "source_hash": "76e0ecc7491126e12ece029e79ecd7e83d528f1748204f630a6a4ba852395f08", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
9,624
c
/* * Copyright (C) 2006 The Android Open Source Project * * 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.62
255
(translation_unit) "/*\n * Copyright (C) 2006 The Android Open Source Project\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...
1,617
47
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 32.62, "nodes": 972, "errors": 0, "source_hash": "80ff27bfbfd76a8b8542df18a0e47fc10afc657d1536c71d145ba225cc62e703", "categorized_nodes": 753}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,625
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:08:35 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/MetalTools.framework/MetalTools * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NA...
32.69
16
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:08:35 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/PrivateFrameworks/MetalTools.framework/MetalTools\n* classdump-dyld is licensed under GPLv3, Cop...
79
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.69, "nodes": 54, "errors": 0, "source_hash": "475e2b20a14d8826fe5f2be71d678056452da3bad6ba5c7e37733ed73734ec19", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
9,626
c
#ifndef __IMAGE__ #define __IMAGE__ typedef struct _Pixel { unsigned char r; unsigned char g; unsigned char b; } Pixel; typedef struct _Image { unsigned int n_row; unsigned int n_col; Pixel *arr; } Image; extern const unsigned int BYTES_PER_PIXEL; extern const unsigned int MAX_COLOR_VAL; int read_ppm_img(con...
26.68
22
(translation_unit) "#ifndef __IMAGE__\n#define __IMAGE__\n\ntypedef struct _Pixel\n{\n unsigned char r;\n unsigned char g;\n unsigned char b;\n} Pixel;\n\ntypedef struct _Image\n{\n unsigned int n_row;\n unsigned int n_col;\n Pixel *arr;\n} Image;\n\nextern const unsigned int BYTES_PER_PIXEL; \nextern const unsigned in...
193
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.68, "nodes": 144, "errors": 0, "source_hash": "ceb5b1f4945d599e54d8d026222efe90993c008f7ab484cbc12c196b780794c3", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,627
c
/* <log/syslog_log_writer.h> ---------------------------------------------------------------------------- Copyright 2017-2019 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Li...
44.83
46
(translation_unit) "/* <log/syslog_log_writer.h>\n\n ----------------------------------------------------------------------------\n Copyright 2017-2019 <NAME> <<EMAIL>>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You ...
166
7
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 44.83, "nodes": 99, "errors": 0, "source_hash": "55dff29eb9e325870a7a5da4a3af0ecae1e81e88ab42477dd5b36aef8370a922", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,628
c
// // ZFBaseModel.h // Pods // // Created by 曾凡怡 on 2017/2/4. // // #import <Foundation/Foundation.h> #import <YYModel.h> #import <objc/runtime.h> @interface ZFBaseModel : NSObject<NSCoding> /** KVC根据字典创建model */ - (instancetype)initWithDic:(NSDictionary *)dic; /** 归档到Document目录.根据类名创建文件 */ + (void)archiver...
13.85
27
(translation_unit) "//\n// ZFBaseModel.h\n// Pods\n//\n// Created by 曾凡怡 on 2017/2/4.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import <YYModel.h>\n#import <objc/runtime.h>\n@interface ZFBaseModel : NSObject<NSCoding>\n\n\n/**\n KVC根据字典创建model\n */\n- (instancetype)initWithDic:(NSDictionary *)dic;\n\n\n/**\n 归档...
81
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 13.85, "nodes": 49, "errors": 0, "source_hash": "d7514b1d93c60959fba176e7962b6aa94c2dda1605b88c52795ef635488e5a5f", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Founda...
9,629
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_ #define CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORT...
44.84
49
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_\n#define CHROME_BROWSER_SUPERVISED_USER_EXPERIMENT...
394
22
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 44.84, "nodes": 240, "errors": 0, "source_hash": "cf48eedd1a713a53bfaa4cc88c1fdfa0dc6ace4d39419d6d0c9a93d55eb1bf91", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,630
c
#pragma once #include <ToolboxWindow.h> class DailyActivitiesWindow : public ToolboxWindow { DailyActivitiesWindow() {} ~DailyActivitiesWindow() {} public: static DailyActivitiesWindow& Instance() { static DailyActivitiesWindow instance; return instance; } private: // fro...
24.57
44
(translation_unit) "#pragma once \n \n#include <ToolboxWindow.h> \n \nclass DailyActivitiesWindow : public ToolboxWindow { \n DailyActivitiesWindow() {} \n ~DailyActivitiesWindow() {} \npublic: \n static DailyActivitiesWindow& Instance() { \n static DailyActivitiesWindow instance; \n return insta...
268
7
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 24.57, "nodes": 169, "errors": 0, "source_hash": "23e38aed6e3a268a7aaacfa1087dcb2442bc9155794126be1a9a909fb32f9a17", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,631
c
#ifndef __Space_Invaders__cannon__ #define __Space_Invaders__cannon__ #include <stdio.h> #include <stdbool.h> #include "glutCrossPlatform.h" #include "boundingBox.h" typedef struct { boundingBox_t bb; bool fire; bool right; bool left; int time; // Last moving time int timeHit; } cannon_t; //_____________...
32.04
24
(translation_unit) "#ifndef __Space_Invaders__cannon__\n#define __Space_Invaders__cannon__\n\n#include <stdio.h>\n#include <stdbool.h>\n#include "glutCrossPlatform.h"\n#include "boundingBox.h"\n\ntypedef struct {\n boundingBox_t bb;\n bool fire;\n bool right;\n bool left;\n int time; // Last moving time\n int tim...
122
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.04, "nodes": 87, "errors": 0, "source_hash": "4b6890ce6a42766dfbb60983ee48435db4cd427088c66b1817ee39c4433cd287", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,632
c
#ifndef MaterialAccountingDetector_h #define MaterialAccountingDetector_h #include <iostream> #include <sstream> #include <string> #include <vector> #include <cmath> // CMSSW #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "SimDataFormats/ValidationFormats/interface/MaterialAccountingStep.h" /...
32.47
62
(translation_unit) "#ifndef MaterialAccountingDetector_h\n#define MaterialAccountingDetector_h\n\n#include <iostream>\n#include <sstream>\n#include <string>\n#include <vector>\n#include <cmath>\n\n// CMSSW\n#include "DataFormats/GeometryVector/interface/GlobalPoint.h"\n#include "SimDataFormats/ValidationFormats/interfa...
329
9
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 32.47, "nodes": 188, "errors": 0, "source_hash": "141a87ab99983b5a543a6503086d6aaf9aa2703f85cca8211cabd84a7c7a873f", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,633
c
// // AFNetwork+Custom.h // weixindress // // Created by 杜永超 on 16/1/12. // Copyright © 2016年 www.jd.com. All rights reserved. // #ifndef AFNetwork_Custom_h #define AFNetwork_Custom_h #import "AFHTTPRequestOperationManager+Custom.h" #import "AFURLConnectionOperation+Custom.h" #import "AFURLResponseSerialization+JS...
34.32
19
(translation_unit) "//\n// AFNetwork+Custom.h\n// weixindress\n//\n// Created by 杜永超 on 16/1/12.\n// Copyright © 2016年 www.jd.com. All rights reserved.\n//\n\n#ifndef AFNetwork_Custom_h\n#define AFNetwork_Custom_h\n#import "AFHTTPRequestOperationManager+Custom.h"\n#import "AFURLConnectionOperation+Custom.h"\n#impor...
71
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.32, "nodes": 51, "errors": 0, "source_hash": "3fa44c3bbf597ccda993d6562725f36d22b5d4a7cc273a1001cfc298474c3311", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "FNetwork...
9,634
c
/* * This file is subject to the terms of the GFX License. If a copy of * the license was not distributed with this file, you can obtain one at: * * http://ugfx.org/license.html */ #ifndef _GFXCONF_H #define _GFXCONF_H /* The operating system to use. One of these must be defined - preferably in your...
35.09
32
(translation_unit) "/*\n * This file is subject to the terms of the GFX License. If a copy of\n * the license was not distributed with this file, you can obtain one at:\n *\n * http://ugfx.org/license.html\n */\n\n#ifndef _GFXCONF_H\n#define _GFXCONF_H\n\n/* The operating system to use. One of these must b...
72
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.09, "nodes": 59, "errors": 0, "source_hash": "da35e354b3c3f7051983193fa84164fb9e2159fcb7af8ff3868b68880f9a60e1", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,635
c
#ifndef RETURNGOODS_H #define RETURNGOODS_H #include <QMainWindow> #include "login.h" #include "ui_login.h" namespace Ui { class ReturnGoods; } class ReturnGoods : public QMainWindow { Q_OBJECT public: explicit ReturnGoods(QWidget *parent = nullptr); ~ReturnGoods(); private slots: void on_pushButton...
19
22
(translation_unit) "#ifndef RETURNGOODS_H\n#define RETURNGOODS_H\n\n#include <QMainWindow>\n#include "login.h"\n#include "ui_login.h"\nnamespace Ui {\nclass ReturnGoods;\n}\n\nclass ReturnGoods : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n explicit ReturnGoods(QWidget *parent = nullptr);\n ~ReturnGoods();\n\...
118
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.0, "nodes": 71, "errors": 0, "source_hash": "3562f7a144a36cfcdc8df5b00b3312bed8838daad6dd9fe84dcc65f6970e340b", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
9,636
c
#pragma once #include <Shared/Math/Math.h> namespace gfx { struct ViewPort { ViewPort(); float topLeftX, topLeftY; float width, height; // in pixels float minDepth, maxDepth; }; struct View { View(); ViewPort viewPort; Matrix worldToView; Matrix viewToWorld; Matrix viewToProj; Matrix pro...
19.64
42
(translation_unit) "#pragma once\n\n#include <Shared/Math/Math.h>\n\nnamespace gfx\n{\n struct ViewPort\n {\n ViewPort();\n\n float topLeftX, topLeftY;\n float width, height; // in pixels\n float minDepth, maxDepth;\n };\n\n struct View\n {\n View();\n\n ViewPort viewPort;\n\n Matrix worldToView;\n Matrix viewT...
212
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 19.64, "nodes": 142, "errors": 0, "source_hash": "730800f6da3af609375a44b030e650d9ec14ca20fbbd9cf7f215d13dea6fd93e", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,637
c
/* Copyright (C) 2013-2022 <NAME> <<EMAIL>> * * This file is part of cflib. * * Licensed under the MIT License. */ #pragma once #include <cflib/serialize/impl/serializebaseber.h> #include <cflib/serialize/serializetypeinfo.h> namespace cflib { namespace serialize { namespace impl { class RegisterClassBase { pu...
25.71
91
(translation_unit) "/* Copyright (C) 2013-2022 <NAME> <<EMAIL>>\n *\n * This file is part of cflib.\n *\n * Licensed under the MIT License.\n */\n\n#pragma once\n\n#include <cflib/serialize/impl/serializebaseber.h>\n#include <cflib/serialize/serializetypeinfo.h>\n\nnamespace cflib { namespace serialize { namespace impl...
836
34
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 25.71, "nodes": 491, "errors": 0, "source_hash": "d618df5e812cdead73bacd1901816da9abfc5b5acf331d2d0617a61e2e410ef1", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,638
c
#include "private.h" static void* fnpre(FILE* infh, FILE* outfh) { (void)infh; (void)outfh; return NULL; } static void fnpost(void* ptr) { (void)ptr; } /* this is a rather greedy algorithm, possibly not RFC compliant */ static size_t fnmain(bitchar_t* buf, const bitchar_t* inp, size_t len, void* ptr...
23.36
42
(translation_unit) "#include "private.h"\n\nstatic void* fnpre(FILE* infh, FILE* outfh)\n{\n (void)infh;\n (void)outfh;\n return NULL;\n}\n\nstatic void fnpost(void* ptr)\n{\n (void)ptr;\n}\n\n/* this is a rather greedy algorithm, possibly not RFC compliant */\nstatic size_t fnmain(bitchar_t* buf, const bit...
402
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.36, "nodes": 257, "errors": 0, "source_hash": "7d4ab745ea5b8e5b1cc52090f881575d1eb4f636709d2eae51a1445a5e4dfc35", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,639
c
/* Este header contiene, ademas de un par de macros, la estructura 'topologia' * (de red) y la funcion (void) 'redes' que se utiliza para definir la forma * de interacccion entre las neuronas */ #include "funcredes.h" // constantes para redes #define MAXLABEL 20 #define MAXPARAM 5 #define MAXLEND 30 #define MAXLEN...
24.98
178
(translation_unit) "/* Este header contiene, ademas de un par de macros, la estructura 'topologia'\n * (de red) y la funcion (void) 'redes' que se utiliza para definir la forma\n * de interacccion entre las neuronas\n */\n\n#include "funcredes.h"\n\n// constantes para redes\n#define MAXLABEL 20\n#define MAXPARAM 5\n#de...
1,995
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 24.98, "nodes": 1047, "errors": 0, "source_hash": "a0194ff9389023fe98dfe8e6e4be722b502d5ab17624457f9f0647232db45e67", "categorized_nodes": 831}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,640
c
// // Created by jm1417 on 06/03/2021. // #ifndef SIMULATOR_INPUT_SOURCE_H #define SIMULATOR_INPUT_SOURCE_H #include <simulator/registers/analogue_register.h> #include <opencv2/videoio.hpp> enum Source { LIVE, VIDEO, IMAGE }; class InputSource { protected: cv::Mat frame; double time_taken = 0; int r...
25
22
(translation_unit) "//\n// Created by jm1417 on 06/03/2021.\n//\n\n#ifndef SIMULATOR_INPUT_SOURCE_H\n#define SIMULATOR_INPUT_SOURCE_H\n\n#include <simulator/registers/analogue_register.h>\n\n#include <opencv2/videoio.hpp>\n\nenum Source { LIVE, VIDEO, IMAGE };\n\nclass InputSource {\n protected:\n cv::Mat frame;\n...
147
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.0, "nodes": 98, "errors": 0, "source_hash": "bdb161fb9b242e9904085ddae8497f6b2a971dfb37845c2c8ff9de3891dacf87", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,641
c
#import <UIKit/UIKit.h> @interface UIFont (DroidSerifThai) + (instancetype)droidSerifThaiFontOfSize:(CGFloat)size; + (instancetype)droidSerifThaiBoldFontOfSize:(CGFloat)size; @end
35
5
(translation_unit) "#import <UIKit/UIKit.h>\n@interface UIFont (DroidSerifThai)\n\n+ (instancetype)droidSerifThaiFontOfSize:(CGFloat)size;\n+ (instancetype)droidSerifThaiBoldFontOfSize:(CGFloat)size;\n\n@end\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UI...
50
6
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 35.0, "nodes": 30, "errors": 0, "source_hash": "2795642ae0d7ffe4d907b9a3223e382f76b98d92936dfd8d22e9240e61795032", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
9,642
c
// // CardGameViewController.h // Matchismo // // Created by <NAME> on 05/11/13. // Copyright (c) 2013 MyCompany. All rights reserved. // // Abstract class. Must implement methods as described below. #import <UIKit/UIKit.h> #import "Deck.h" @interface CardGameViewController : UIViewController <UIAlertViewDelegate...
25.47
15
(translation_unit) "//\n// CardGameViewController.h\n// Matchismo\n//\n// Created by <NAME> on 05/11/13.\n// Copyright (c) 2013 MyCompany. All rights reserved.\n//\n// Abstract class. Must implement methods as described below.\n\n#import <UIKit/UIKit.h>\n#import "Deck.h"\n\n@interface CardGameViewController : UIVie...
44
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.47, "nodes": 24, "errors": 0, "source_hash": "817ff168d107baa4a452ce1cd6626bbc8b66c54a4e2a7c3069388490bbd99e2f", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,643
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_acces_aiousb_CounterSubsystem */ #ifndef _Included_com_acces_aiousb_CounterSubsystem #define _Included_com_acces_aiousb_CounterSubsystem #ifdef __cplusplus extern "C" { #endif #undef com_acces_aiousb_CounterSubsyste...
27.49
55
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */ \n#include <jni.h> \n/* Header for class com_acces_aiousb_CounterSubsystem */ \n \n#ifndef _Included_com_acces_aiousb_CounterSubsystem \n#define _Included_com_acces_aiousb_CounterSubsystem \n#ifdef __cplusplus \nextern "C" { \n#endif \n#undef com...
169
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.49, "nodes": 120, "errors": 0, "source_hash": "6496a71ec2a3a5d0816d87213bbd5d0dea9e0595c5987a0a4617fcb2bf57f50e", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,644
c
#pragma once //#define DISABLE_LOGGING 1 #include <ArduinoLog.h> #include <SIMComAT.Common.h> //reusing flash string utilities #include "Config.h" #define LOG_SERIAL_SPEED 115200 #if _DEBUG #define LOG_LEVEL LOG_LEVEL_VERBOSE #define LOG_LEVEL_VERBOSE_ENABLED #define LOG_LEVEL_NOTICE_ENABLED #else #d...
28.02
45
(translation_unit) "#pragma once \n \n//#define DISABLE_LOGGING 1 \n#include <ArduinoLog.h> \n#include <SIMComAT.Common.h> //reusing flash string utilities \n#include "Config.h" \n \n#define LOG_SERIAL_SPEED 115200 \n#if _DEBUG \n #define LOG_LEVEL LOG_LEVEL_VERBOSE \n #define LOG_LEVEL_VERBOSE_ENABLED \n #define LOG_L...
198
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 28.02, "nodes": 148, "errors": 0, "source_hash": "7a0373810ada3d10295dae7739bf1afb19b6db8ab3f92ac0230fcb641c4ed6e3", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,645
c
// // Copyright (c) 2021, <NAME> & <NAME> // All rights reserved. // // This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree. // // Author: <NAME> // File: ConstantBufferBase.h #pragma once #include "BlocksEngine/Graphics/Bindable.h" namespace Bl...
22.42
26
(translation_unit) " \n// Copyright (c) 2021, <NAME> & <NAME>\n// All rights reserved.\n// \n// This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree.\n// \n// Author: <NAME>\n// File: ConstantBufferBase.h\n\n#pragma once\n#include "BlocksEngine/Graphic...
102
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.42, "nodes": 55, "errors": 0, "source_hash": "7148257d1f443b37827b5f296d5cb1fcee1a1585716eb7913387b5532368d160", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
9,646
c
#ifndef LOOK_BACK_H #define LOOK_BACK_H #include "utils.h" class LookBack { public: vector<int *> solutions; int get_n(); void set_n(int n); int get_solution_count(); LookBack(int n); ~LookBack(); void look_back_queen(int index); void print(); private: int n; int *queen_pos; int solution_count; ...
17.65
20
(translation_unit) "#ifndef LOOK_BACK_H\n#define LOOK_BACK_H\n#include "utils.h"\n\nclass LookBack {\npublic:\n vector<int *> solutions;\n int get_n();\n void set_n(int n);\n int get_solution_count();\n LookBack(int n);\n ~LookBack();\n void look_back_queen(int index);\n void print();\n\nprivate:\n int n;\n i...
132
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.65, "nodes": 87, "errors": 0, "source_hash": "68d724363907201afbec8885be3a91ebe0b0aa2d00fc25ef64ced1cf66e21675", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,647
c
/* * Project: Si4463 Radio Library for AVR and Arduino * Author: <NAME>, <EMAIL> * Copyright: (C) 2017 by <NAME> * License: GNU GPL v3 (see License.txt) * Web: http://blog.zakkemble.co.uk/si4463-radio-library-avr-arduino/ */ #ifndef SI443X_CONFIG_H_ #define SI443X_CONFIG_H_ // If other libraries communicate wit...
35.93
111
(translation_unit) "/*\n * Project: Si4463 Radio Library for AVR and Arduino\n * Author: <NAME>, <EMAIL>\n * Copyright: (C) 2017 by <NAME>\n * License: GNU GPL v3 (see License.txt)\n * Web: http://blog.zakkemble.co.uk/si4463-radio-library-avr-arduino/\n */\n\n#ifndef SI443X_CONFIG_H_\n#define SI443X_CONFIG_H_\n\n// If ...
188
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 35.93, "nodes": 116, "errors": 0, "source_hash": "c60f3f24bfa6d2aff97f62297584fcb633fe22c4870533ad4b0dee6dc66194b8", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,648
c
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
28.02
259
(translation_unit) "/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 and\n * only version 2 as published by the Free Software Foundation.\n *\n * This pro...
2,053
3
{"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 28.02, "nodes": 1160, "errors": 0, "source_hash": "8dd471e1222e20494dd58808a6fa7a8bd5710d55f12d545015d279933368193e", "categorized_nodes": 853}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text"...
9,649
c
// // LoginViewController.h // Sidekick // // Created by <NAME> on 7/20/15. // Copyright (c) 2015 thesquad. All rights reserved. // #import <UIKit/UIKit.h> #import "FBSDKCoreKit/FBSDKCoreKit.h" #import "FBSDKLoginKit/FBSDKLoginKit.h" #import "SWRevealViewController.h" #import "MainViewController.h" @interface Log...
29.88
17
(translation_unit) "//\n// LoginViewController.h\n// Sidekick\n//\n// Created by <NAME> on 7/20/15.\n// Copyright (c) 2015 thesquad. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "FBSDKCoreKit/FBSDKCoreKit.h"\n#import "FBSDKLoginKit/FBSDKLoginKit.h"\n#import "SWRevealViewController.h"\n#import "MainV...
79
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.88, "nodes": 55, "errors": 0, "source_hash": "e69b843725fbbe6b32c1c14014218945b94b3237e3445dd59b88471caf6ab2b5", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,650
c
#pragma once #include "../lib/string.h" #include "../lib/array.h" #include "../lib/error.h" #include "../containers/token.h" void Expression(const night::array<Token>& expr); bool is_element(const night::array<Token>& tokens, int index); bool is_call(const night::array<Token>& tokens, int index); bool i...
32.13
254
(translation_unit) "#pragma once \n \n#include "../lib/string.h" \n#include "../lib/array.h" \n#include "../lib/error.h" \n \n#include "../containers/token.h" \n \nvoid Expression(const night::array<Token>& expr); \n \nbool is_element(const night::array<Token>& tokens, int index); \nbool is_call(const night::array<Toke...
3,038
119
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 32.13, "nodes": 1797, "errors": 0, "source_hash": "529b4cd0ea26ff71628f21c34afac65bf47feadc1316ac2386b00ae5ad76c30b", "categorized_nodes": 1294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
9,651
c
#include <check.h> #include <io/file_system.h> START_TEST(test_malloc_free_blob) { BinaryBlob blob = malloc_binary_blob(1240); ck_assert_int_eq(blob.num_bytes, 1240); ck_assert_ptr_ne(blob.data, NULL); free_binary_blob(&blob); } END_TEST START_TEST(test_malloc_invalid_blob) { BinaryBlob bl...
28.27
26
(translation_unit) "#include <check.h>\n#include <io/file_system.h>\n\nSTART_TEST(test_malloc_free_blob)\n{\n BinaryBlob blob = malloc_binary_blob(1240);\n ck_assert_int_eq(blob.num_bytes, 1240);\n ck_assert_ptr_ne(blob.data, NULL);\n free_binary_blob(&blob);\n}\nEND_TEST\n\nSTART_TEST(test_malloc_invalid_b...
198
1
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.27, "nodes": 118, "errors": 0, "source_hash": "558b10cbeec48f336ead47bd3761b5736ee430c2f713113ca13b80ea8f86d686", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,652
c
#include<stdio.h> int is_prime(int x) { int i=1,m=0; while(i<=x) { if(x%i==0) { m++; } i++; } return m==2; } int main() { int x; scanf("%d",&x); for(x=x+1;;x++) { if(is_prime(x)) break; } printf("%d",x); return 0; }
8.35
26
(translation_unit) "#include<stdio.h>\nint is_prime(int x)\n{\n int i=1,m=0;\n while(i<=x)\n {\n if(x%i==0)\n {\n m++;\n }\n i++;\n }\n return m==2;\n}\nint main()\n{\n int x;\n scanf("%d",&x);\n for(x=x+1;;x++)\n {\n if(is_prime(x))\n break;\n }\n printf("%d",x);\n return 0;\n}" (preproc_include) "#include<s...
152
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 8.35, "nodes": 87, "errors": 0, "source_hash": "340db74eef33bd76a879821691a77d3ad55e112a02673a4105010bb4b76da8f5", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,653
c
int BCD2DEC(int x) { return ((x)>>4)*10+((x)&0xf); } int DEC2BCD(int x) { return (((x)/10)<<4)+((x)%10); } #define I2CStart(x) Wire.beginTransmission(x) #define I2CStop() Wire.endTransmission() #define I2CWrite(x) Wire.write(x) #define I2CRead() Wire.read() #define I2CReq(x,y) Wire.requestFrom(x,y) #defi...
26.07
57
(translation_unit) "int BCD2DEC(int x) { return ((x)>>4)*10+((x)&0xf); }\nint DEC2BCD(int x) { return (((x)/10)<<4)+((x)%10); }\n\n#define I2CStart(x) Wire.beginTransmission(x)\n#define I2CStop() Wire.endTransmission()\n#define I2CWrite(x) Wire.write(x)\n#define I2CRead() Wire.read()\n#define I2CReq(x,y) ...
553
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.07, "nodes": 325, "errors": 0, "source_hash": "058fb0c524a8db5ff020431d2e6abdaea1952309bd1dbaf13e406cb98f456e23", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
9,654
c
/* * The Driver Station Library (LibDS) * Copyright (c) 2015-2017 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitat...
32.29
80
(translation_unit) "/* \n * The Driver Station Library (LibDS) \n * Copyright (c) 2015-2017 <NAME> <<EMAIL>> \n * \n * Permission is hereby granted, free of charge, to any person obtaining \n * a copy of this software and associated documentation files (the "Software"), \n * to deal in the Software without restriction,...
366
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 32.29, "nodes": 257, "errors": 0, "source_hash": "18a510175c6048846b5fcc1d34ee39661a93336864fb591c0364f8cac28fe80c", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,655
c
/* * UNIBA/Ampere 1.3 * Gruppo n.16 - <NAME>, <NAME>, <NAME>, <NAME> * Progetto universitario di gruppo intento alla creazione di un gestore dati per la musica, es: WinAmp * da realizzare nell'ambito del corso di studi di Laboratorio di Informatica, a.a. 2019/20. * Maggiori informazioni sul copyright su https://gi...
24.96
228
(translation_unit) "/*\n * UNIBA/Ampere 1.3\n * Gruppo n.16 - <NAME>, <NAME>, <NAME>, <NAME>\n * Progetto universitario di gruppo intento alla creazione di un gestore dati per la musica, es: WinAmp\n * da realizzare nell'ambito del corso di studi di Laboratorio di Informatica, a.a. 2019/20.\n * Maggiori informazioni su...
2,064
0
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 24.96, "nodes": 1212, "errors": 0, "source_hash": "99986d2d405044f0edb5d4f1b68589ffd994bb7a9db8a2e5d6fc9d8aefc5b57c", "categorized_nodes": 843}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,656
c
#pragma once #ifndef JPGCONVERTER_H #define JPGCONVERTER_H //#include "opencv2/opencv.hpp" #include "turbojpeg.h" #ifdef WITH_CANON // Canon Includes #include "EDSDK.h" #include "EDSDKErrors.h" #include "EDSDKTypes.h" #endif // Toonz Includes #include "traster.h" #include "tfilepath.h" #include <QObject> #include ...
24.73
48
(translation_unit) "#pragma once\n\n#ifndef JPGCONVERTER_H\n#define JPGCONVERTER_H\n\n//#include "opencv2/opencv.hpp"\n#include "turbojpeg.h"\n\n#ifdef WITH_CANON\n// Canon Includes\n#include "EDSDK.h"\n#include "EDSDKErrors.h"\n#include "EDSDKTypes.h"\n#endif\n\n// Toonz Includes\n#include "traster.h"\n#include "tfile...
244
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.73, "nodes": 146, "errors": 0, "source_hash": "52653bd7aec19bf02dd952e547d7d17054c1f2077777aa34da88362496cf1286", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,657
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_TimeToGate_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_TimeToGate_TestsVersionString[];
29.83
6
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n\nFOUNDATION_EXPORT double Pods_TimeToGate_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_TimeToGate_TestsVersionString[];\n\n" (preproc_ifdef) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif" (#ifdef) "#ifdef" (identif...
27
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.83, "nodes": 19, "errors": 0, "source_hash": "247e506730085b81bd681d872d576b9066732a31795ca0fd271d4985d34dcd97", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
9,658
c
// // BillDetailProductInfoCellType.h // CollectionViewRefreshDemo // // Created by DR_Kun on 2019/10/6. // Copyright © 2019 DR_Kun. All rights reserved. // #ifndef BillDetailProductInfoCellType_h #define BillDetailProductInfoCellType_h typedef NS_ENUM(NSUInteger, BillProductInfoCellType) { BillProductInfoC...
30.67
24
(translation_unit) "//\n// BillDetailProductInfoCellType.h\n// CollectionViewRefreshDemo\n//\n// Created by DR_Kun on 2019/10/6.\n// Copyright © 2019 DR_Kun. All rights reserved.\n//\n\n#ifndef BillDetailProductInfoCellType_h\n#define BillDetailProductInfoCellType_h\n\n\n\ntypedef NS_ENUM(NSUInteger, BillProductInf...
63
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.67, "nodes": 28, "errors": 0, "source_hash": "a42c3ed655bda1d5f7debe482ff661456f8823fc7d63f61b4eb3c53d49b1e7d0", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef B...
9,659
c
#ifndef _RANDOM_VECTOR_GENERATOR_H_ #define _RANDOM_VECTOR_GENERATOR_H_ /* This generator generates according to some probability distribution over T */ #include <util/vector_creation/vector_creation_policy.h> #include <util/statistics/distributions/distribution.h> namespace NeuroEvo { template <typename T> cla...
32.12
33
(translation_unit) "#ifndef _RANDOM_VECTOR_GENERATOR_H_\n#define _RANDOM_VECTOR_GENERATOR_H_\n\n/*\n This generator generates according to some probability distribution over T\n*/\n\n#include <util/vector_creation/vector_creation_policy.h>\n#include <util/statistics/distributions/distribution.h>\n\nnamespace NeuroEv...
249
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.12, "nodes": 157, "errors": 0, "source_hash": "807ff2d49a6386b607246bdf9e840332f1c090784d9bf79bf569d70b4fc4d4b5", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,660
c
/*========================================================== * Copyright 2020 QuickLogic 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/licens...
29.41
182
(translation_unit) "/*==========================================================\n * Copyright 2020 QuickLogic 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 * h...
747
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.41, "nodes": 439, "errors": 0, "source_hash": "76083aca31ae22ef8cd4a59b526052ee450072b2145037fc3a8f1cae3814751c", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,661
c
#include <stdio.h> #include <stdint.h> #include <arpa/inet.h> #include <string.h> #include "mbuf.h" #include "ipv4.h" #include "icmp.h" int icmp_rx(struct mbuf *buf){ if(icmp_chksum(buf) != 0) return -1; struct icmp_pkt *pkt = (struct icmp_pkt *)buf->payload; switch(pkt->type){ case ICMP_TYPE_E...
29.34
56
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <arpa/inet.h>\n#include <string.h>\n\n#include "mbuf.h"\n#include "ipv4.h"\n#include "icmp.h"\n\n\nint icmp_rx(struct mbuf *buf){\n if(icmp_chksum(buf) != 0) return -1;\n\n struct icmp_pkt *pkt = (struct icmp_pkt *)buf->payload;\n\n switch(p...
606
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.34, "nodes": 404, "errors": 0, "source_hash": "2124e07f10318b0cd5bf901d1da68b31a2a03bcde046774c34ec0d69acad4978", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,662
c
// Automatically generated file, do not edit. #pragma once inline constexpr uint8_t Hex_Small_Highlight[] = { 10, 11, 0xee,0xee,0x77,0xee,0xee, 0xee,0x77,0xee,0x77,0xee, 0x77,0xee,0xee,0xee,0x77, 0x7e,0xee,0xee,0xee,0xe7, 0x7e,0xee,0xee,0xee,0xe7, 0x7e,0xee,0xee,0xee,0xe7, 0x7e,0xee,0xee,0xee,0xe7, 0x7e,0xee,0xee,0xe...
24.38
16
(translation_unit) "// Automatically generated file, do not edit.\n\n#pragma once\n\ninline constexpr uint8_t Hex_Small_Highlight[] = {\n10, 11,\n0xee,0xee,0x77,0xee,0xee,\n0xee,0x77,0xee,0x77,0xee,\n0x77,0xee,0xee,0xee,0x77,\n0x7e,0xee,0xee,0xee,0xe7,\n0x7e,0xee,0xee,0xee,0xe7,\n0x7e,0xee,0xee,0xee,0xe7,\n0x7e,0xee,0x...
134
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.38, "nodes": 71, "errors": 0, "source_hash": "13de4ad03d084acf8e2c43015af3bcf06db21d092b9698d604b089a665cb4b6f", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,663
c
/* * Copyright (c) 2016-2018, NVIDIA Corporation. All Rights Reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation. Any * use, reproduction, disclosure or distribution of this software and related * documenta...
39.64
14
(translation_unit) "/*\n * Copyright (c) 2016-2018, NVIDIA Corporation. All Rights Reserved.\n *\n * NVIDIA Corporation and its licensors retain all intellectual property and\n * proprietary rights in and to this software and related documentation. Any\n * use, reproduction, disclosure or distribution of this software...
21
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.64, "nodes": 17, "errors": 0, "source_hash": "efbca8d7537606357198ffd0234c13bd3192e509c91f90566acf3e854a55b8fb", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,664
c
#ifndef __NEW_ZERO_H__ #define __NEW_ZERO_H__ #include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h" #include "clang/AST/EvaluatedExprVisitor.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h" #include "clang/StaticAnalyzer/Core/Checker.h" #include "clang/StaticAnalyzer/Core/PathSensitive...
32.07
29
(translation_unit) "#ifndef __NEW_ZERO_H__\n#define __NEW_ZERO_H__\n\n#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"\n#include "clang/AST/EvaluatedExprVisitor.h"\n#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"\n#include "clang/StaticAnalyzer/Core/Checker.h"\n#include "clang/Static...
151
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.07, "nodes": 81, "errors": 0, "source_hash": "18857bb065420b37a29527bf2f318e6854e160ec27771d5628901d589a5657aa", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,665
c
// SDLLocationDetails.h // #import "SDLRPCStruct.h" @class SDLLocationCoordinate; @class SDLImage; @class SDLOasisAddress; @interface SDLLocationDetails : SDLRPCStruct /** * @abstract Latitude/Longitude of the location * * @see SDLLocationCoordinate * * Optional */ @property (strong, nonatomic) SDLLocationCo...
21.88
57
(translation_unit) "// SDLLocationDetails.h\n//\n\n#import "SDLRPCStruct.h"\n\n@class SDLLocationCoordinate;\n@class SDLImage;\n@class SDLOasisAddress;\n\n@interface SDLLocationDetails : SDLRPCStruct\n\n/**\n * @abstract Latitude/Longitude of the location\n *\n * @see SDLLocationCoordinate\n *\n * Optional\n */\n@prop...
170
35
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 21.88, "nodes": 125, "errors": 0, "source_hash": "315e8a45d19428da9b348759dec66688f871d3124719e6503c6c1704f7b32977", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,666
c
// // HandaBannerView.h // divination // // Created by <NAME> on 1/26/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "ADData.h" @class HouseBannerView; @protocol HouseBannerViewDelegate <NSObject> - (void) onLoadSuccess_House:(NSString *)strBannerNo; - (void) onLoadFail_...
23.64
22
(translation_unit) "//\n// HandaBannerView.h\n// divination\n//\n// Created by <NAME> on 1/26/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ADData.h"\n\n@class HouseBannerView;\n@protocol HouseBannerViewDelegate <NSObject>\n- (void) onLoadSuccess_House:(NSString *)...
137
16
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.64, "nodes": 86, "errors": 0, "source_hash": "af93ad1a317cbf8f539dc01b4d5f2f4b75cc0dfc909e3ea81088e2423a64489b", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,667
c
#pragma once #include "network/SecureSocket.h" #include <thread> #include <condition_variable> #include <mutex> #include <memory> #include <map> #include <vector> #include "Server.h" namespace sdk { namespace application { #if OPENSSL_SUPPORTED class SecureServer { public: SecureServer(in...
26.72
39
(translation_unit) "#pragma once \n#include "network/SecureSocket.h" \n#include <thread> \n#include <condition_variable> \n#include <mutex> \n#include <memory> \n#include <map> \n#include <vector> \n#include "Server.h" \n \nnamespace sdk { \n namespace application { \n \n#if OPENSSL_SUPPORTED \n \n class SecureServer ...
263
16
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 26.72, "nodes": 155, "errors": 0, "source_hash": "c7ce71c3b820a2e457271f205457cb9c1c5f93f3bd187703152d9db0acd0ec10", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,668
c
/** * Copyright 2011-2013 - Reliable Bits Software by Blommers IT. All Rights Reserved. * Author <NAME> */ #pragma once #include "edbee/exports.h" //#include <QAbstractScrollArea> #include <QStringList> #include <QWidget> class QResizeEvent; class QScrollBar; namespace edbee { class TextDocument; class TextEdi...
38.88
81
(translation_unit) "/**\n * Copyright 2011-2013 - Reliable Bits Software by Blommers IT. All Rights Reserved.\n * Author <NAME>\n */\n\n#pragma once\n\n#include "edbee/exports.h"\n\n//#include <QAbstractScrollArea>\n#include <QStringList>\n#include <QWidget>\n\nclass QResizeEvent;\nclass QScrollBar;\n\nnamespace edbee ...
633
19
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 38.88, "nodes": 415, "errors": 0, "source_hash": "9d0f3ff93a34f09d8433075b766a288517bc2b5ee72293cdab7aee99a5bfc333", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,669
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ #include <stdint.h> #inclu...
34.17
30
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_\n#define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_\n\n...
133
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.17, "nodes": 73, "errors": 0, "source_hash": "659abb1c9b44d9e469db4e9ca6856662d5baaf64724849c27cade0515a376f46", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,670
c
#ifndef __SIGMOD_THREADSPOOL_H #define __SIGMOD_THREADSPOOL_H #include "../include/core.h" #include "trie.h" #include <pthread.h> #include <semaphore.h> #include <deque> #include <vector> #define MAX_THREADS 20 struct MatchResult { TrieTree* node; uint match_index; }; struct ThreadPackage { int id; MatchRes...
18.67
43
(translation_unit) "#ifndef __SIGMOD_THREADSPOOL_H\n#define __SIGMOD_THREADSPOOL_H\n\n#include "../include/core.h"\n#include "trie.h"\n#include <pthread.h>\n#include <semaphore.h>\n#include <deque>\n#include <vector>\n\n#define MAX_THREADS 20 \n\nstruct MatchResult\n{\n TrieTree* node;\n uint match_index;\n};\n\nstruc...
261
1
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 18.67, "nodes": 184, "errors": 0, "source_hash": "372990e90104f53ccd4c2fa543ff53f060202f7eb8e8fca5be92533422cf6327", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,671
c
// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // /////////// // UART3 // /////////// // enable USART3 //#define NF_SERIAL_COMM_STM32_UART_USE_USART3 TRUE /////////// // UART4 // /////////// // enable UART4 #define NF_SERIAL_COMM_STM32_UART...
22.71
14
(translation_unit) "//\n// Copyright (c) .NET Foundation and Contributors\n// See LICENSE file in the project root for full license information.\n//\n\n///////////\n// UART3 //\n///////////\n\n// enable USART3\n//#define NF_SERIAL_COMM_STM32_UART_USE_USART3 TRUE\n\n///////////\n// UART4 //\n///////////\n\n// enable UAR...
18
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.71, "nodes": 4, "errors": 0, "source_hash": "f8b7b09a4810aaef9296c0b78c3ab77229bab07ac6ddbc66de5ca5c5acd09502", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NF_S...
9,672
c
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<malloc.h> #include<math.h> char s[7]; int ans[7]; int t[7]; int lent; int flag; int max; int target; int len; void dfs(int i,int time,int num){ if(num>target) return; int k; if(i>=len){ if(max<num){ max=num; ...
17.24
67
(translation_unit) "#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<malloc.h>\n#include<math.h>\nchar s[7];\nint ans[7];\nint t[7];\nint lent;\nint flag;\nint max;\nint target;\nint len;\nvoid dfs(int i,int time,int num){\n if(num>target)\n return;\n int k;\n if(i>=len){\n if(...
504
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 17.24, "nodes": 301, "errors": 0, "source_hash": "f32d064108485c9b22de0080428d6df2890b5ad69c7deb11c7d9bf0648c64322", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,673
c
#include <stdbool.h> #include <string.h> #include "../ast.h" #include "equals_ast.h" bool eq_type(struct Type* a, struct Type* b){ if(a == NULL || b == NULL){ return false; } if(a->m1 != NULL) { return eq_basictype(a->m1, b->m1); } if(a->m2 != NULL) { return eq_typeparam(a->m2, b->m2); } if(a->m3 !=...
24.82
101
(translation_unit) "#include <stdbool.h>\n#include <string.h>\n\n#include "../ast.h"\n\n#include "equals_ast.h"\n\nbool eq_type(struct Type* a, struct Type* b){\n \n if(a == NULL || b == NULL){ return false; }\n\n if(a->m1 != NULL)\n { return eq_basictype(a->m1, b->m1); }\n \n if(a->m2 != NULL)\n { return eq_typepar...
1,063
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 24.82, "nodes": 660, "errors": 0, "source_hash": "d50851ab421fa00438e2153d35302edb6dae41c724da060c60e35012b1c4140d", "categorized_nodes": 474}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,674
c
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from validation.djinni #import <Foundation/Foundation.h> /** * \if IOS_ONLY * \file * \endif * Represents the level of a result */ typedef NS_ENUM(NSInteger, IXNResultLevel) { /** default */ IXNResultLevelRNone, /** success */ ...
20.46
24
(translation_unit) "// AUTOGENERATED FILE - DO NOT MODIFY!\n// This file generated by Djinni from validation.djinni\n\n#import <Foundation/Foundation.h>\n\n/**\n * \if IOS_ONLY\n * \file\n * \endif\n * Represents the level of a result\n */\ntypedef NS_ENUM(NSInteger, IXNResultLevel)\n{\n /** default */\n IXNResul...
42
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.46, "nodes": 19, "errors": 0, "source_hash": "07783588c38dce08584e509c7f9282f6d6502d5c076effb6d857e0a4e0024cdd", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,675
c
#ifndef INTEGER_VALUE_FUNCTIONS #define INTEGER_VALUE_FUNCTIONS int integer_variable_greater(int, int); int integer_variable_smaller(int, int); int integer_power_operation(int, int); int integer_variable_equals(int, int); #endif
31.71
7
(translation_unit) "#ifndef INTEGER_VALUE_FUNCTIONS\n#define INTEGER_VALUE_FUNCTIONS\n\nint integer_variable_greater(int, int);\nint integer_variable_smaller(int, int);\n\nint integer_power_operation(int, int);\n\nint integer_variable_equals(int, int);\n\n#endif\n" (preproc_ifdef) "#ifndef INTEGER_VALUE_FUNCTIONS\n#d...
60
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 31.71, "nodes": 43, "errors": 0, "source_hash": "a754ac99c80316602e819dcba870e88192d8c3ab4d191ac7a654e39105937afd", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
9,676
c
__inline int start(int n, ...) { return start(n + __builtin_va_arg_pack_len(), __builtin_va_arg_pack()); }
35.33
3
(translation_unit) "__inline int start(int n, ...) {\n return start(n + __builtin_va_arg_pack_len(), __builtin_va_arg_pack());\n}\n" (function_definition) "__inline int start(int n, ...) {\n return start(n + __builtin_va_arg_pack_len(), __builtin_va_arg_pack());\n}" (storage_class_specifier) "__inline" (_...
41
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 35.33, "nodes": 23, "errors": 0, "source_hash": "24f7a233ee76674f5bfca5b38f44037b3c5640ce025ba4099a1f4240247fd32e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "__i...
9,677
c
#include <uefi.h> int main(int argc, char **argv) { (void) argc; (void) argv; efi_gop_t *gop = NULL; efi_guid_t gopGuid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID; efi_gop_mode_info_t *info = NULL; BS->LocateProtocol(&gopGuid, NULL, (void**)&gop); gop->QueryMode(gop, gop->Mode ? gop->Mode->Mode ...
32.75
12
(translation_unit) "#include <uefi.h>\n\nint main(int argc, char **argv) {\n (void) argc;\n (void) argv;\n\n efi_gop_t *gop = NULL;\n efi_guid_t gopGuid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;\n efi_gop_mode_info_t *info = NULL;\n\n BS->LocateProtocol(&gopGuid, NULL, (void**)&gop);\n gop->QueryMode(go...
134
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.75, "nodes": 89, "errors": 0, "source_hash": "8b1983793bace657507635d63a518ce02665a34263bec8cddb8fd7fb735b2102", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,678
c
/* * ofsoft-bpf.h * * Created on: Apr 19, 2016 * Author: <NAME> */ #ifndef OFSOFT_BPF_H_ #define OFSOFT_BPF_H_ #include <stddef.h> #include <stdint.h> struct ofsoft_bpf { // Ofsoftswitch13 metadata uint8_t table_id; uint32_t in_port; // Match parameter uint8_t param_len; ...
15.88
25
(translation_unit) "/*\n * ofsoft-bpf.h\n *\n * Created on: Apr 19, 2016\n * Author: <NAME>\n */\n\n#ifndef OFSOFT_BPF_H_\n#define OFSOFT_BPF_H_\n\n#include <stddef.h>\n#include <stdint.h>\n\nstruct ofsoft_bpf {\n // Ofsoftswitch13 metadata\n uint8_t table_id;\n uint32_t in_port;\n\n // Mat...
54
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 15.88, "nodes": 38, "errors": 0, "source_hash": "39a54f123553d0170e1bb712581cf402ca95f37d4b55ad36c0d9642f44f42da6", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,679
c
//#define EXIT_ON_FAILURE 1 #include "utest.h" /* This is a hack to overcome Memory satnizers bugs */ #include "String.c" #include <string.h> int make() { String s = make_str(10); assert(strCapacity(s) == 11); str_destroy(s); return 0; } int copy() { String s = str_from_cstr("This is gonn...
26.43
105
(translation_unit) "//#define EXIT_ON_FAILURE 1\n\n#include "utest.h"\n\n/* This is a hack to overcome Memory satnizers bugs */\n#include "String.c"\n\n#include <string.h>\n\n\nint make() {\n String s = make_str(10);\n\n assert(strCapacity(s) == 11);\n\n str_destroy(s);\n\n return 0;\n}\n\nint copy() {\n ...
1,085
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 26.43, "nodes": 569, "errors": 0, "source_hash": "e31418ba58e0f8eff60b03fd8405e13cec933d6a514f73938c5944d871b040bc", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,680
c
#ifndef BIOS_H_ #define BIOS_H_ #include "emulator.h" void bios_video(Emulator* emu); #endif
17.6
5
(translation_unit) "#ifndef BIOS_H_\n#define BIOS_H_\n\n#include "emulator.h"\n\nvoid bios_video(Emulator* emu);\n\n#endif\n" (preproc_ifdef) "#ifndef BIOS_H_\n#define BIOS_H_\n\n#include "emulator.h"\n\nvoid bios_video(Emulator* emu);\n\n#endif" (#ifndef) "#ifndef" (identifier) "BIOS_H_" (preproc_def) "#...
27
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.6, "nodes": 20, "errors": 0, "source_hash": "58ea4b2c34e4a8e6164d0bfe37aa8f6563953e9e7ee161c38b683f32c881a4ee", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BI...
9,681
c
#ifndef STDFAX_H #define STDFAX_H #include <iostream> #include <cstring> #include "BinNode.h" #include "BinTree.h" #endif
16.43
7
(translation_unit) "#ifndef STDFAX_H\n#define STDFAX_H\n#include <iostream>\n#include <cstring>\n#include "BinNode.h"\n#include "BinTree.h"\n#endif\n" (preproc_ifdef) "#ifndef STDFAX_H\n#define STDFAX_H\n#include <iostream>\n#include <cstring>\n#include "BinNode.h"\n#include "BinTree.h"\n#endif" (#ifndef) "#ifnde...
26
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 16.43, "nodes": 19, "errors": 0, "source_hash": "d976a1a5c72a472d71d88f80104aa4613ea27f37de37be61c2be451e2dd84dee", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,682
c
#pragma once #include <string> class Token { public: int tokn_val; Token(int tokn_val) { this->tokn_val = tokn_val; } virtual std::string ts () = 0; }; class KeywordToken : public Token { public: KeywordToken(int tokn_val) : Token(tokn_val) {} ~KeywordToken() {} virtual std::string ts() { re...
24.47
51
(translation_unit) "#pragma once\n#include <string>\n\nclass Token {\n public:\n int tokn_val;\n\n Token(int tokn_val) {\n this->tokn_val = tokn_val;\n }\n\n virtual std::string ts () = 0;\n};\n\nclass KeywordToken : public Token {\n public:\n KeywordToken(int tokn_val) : Token(tokn_val) {}\n\n ~KeywordToken() ...
522
28
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.47, "nodes": 281, "errors": 0, "source_hash": "4192f7a1cc28c2bf43c1893eedfdfd509022b354b3e66c48935ab578b6bddc8c", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,683
c
/* -*- buffer-read-only: t -*- vi: set ro: */ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ #include <config.h> #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE #include "unistd.h" typedef int dummy;
31.17
6
(translation_unit) "/* -*- buffer-read-only: t -*- vi: set ro: */\n/* DO NOT EDIT! GENERATED AUTOMATICALLY! */\n#include <config.h>\n#define _GL_UNISTD_INLINE _GL_EXTERN_INLINE\n#include "unistd.h"\ntypedef int dummy;\n" (comment) "/* -*- buffer-read-only: t -*- vi: set ro: */" (comment) "/* DO NOT EDIT! GENERATED ...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 31.17, "nodes": 14, "errors": 0, "source_hash": "7c6b082b52e787e2d88f0a9e7bf6477ae09ec2bb720ea9f5f07ca3a8de91aaaf", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
9,684
c
// // TidepoolKitUI.h // TidepoolKitUI // // Created by <NAME> on 1/10/20. // Copyright © 2020 Tidepool Project. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for TidepoolKitUI. FOUNDATION_EXPORT double TidepoolKitUIVersionNumber; //! Project version string for TidepoolKitUI. FOUNDAT...
38.77
13
(translation_unit) "//\n// TidepoolKitUI.h\n// TidepoolKitUI\n//\n// Created by <NAME> on 1/10/20.\n// Copyright © 2020 Tidepool Project. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for TidepoolKitUI.\nFOUNDATION_EXPORT double TidepoolKitUIVersionNumber;\n\n//! Project version ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.77, "nodes": 15, "errors": 0, "source_hash": "47dbb176ad9be08402f6024ad4781f49d025aa660ceba03fe1657ac5afae714b", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
9,685
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strlcpy.c :+: :+: :+: ...
33.78
37
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_strlcpy.c ...
221
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.78, "nodes": 137, "errors": 0, "source_hash": "6f595b5a8cd90d9eb57d099bef94b796994f02bcca7a20d11c4022bec1034707", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "u...
9,686
c
/* * Copyright (C) 2014 Linaro Ltd. <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __ASM_CPUFEATURE_H #define __ASM_CPUFEATURE_H #include <asm/hwcap.h> ...
34.78
23
(translation_unit) "/*\n * Copyright (C) 2014 Linaro Ltd. <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n */\n\n#ifndef __ASM_CPUFEATURE_H\n#define __ASM_CPUFEATU...
57
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.78, "nodes": 40, "errors": 0, "source_hash": "85fe5067b0d16f204938fee29e5a5c6fcea7fdde801282afd3d415f5adb7a91f", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,687
c
// // UIImage+JYComTelescopic.h // zyhz_ios_sdk_demo // // Created by <NAME> on 7/2/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (JYComTelescopic) /* * @fun 按比例伸缩图片大小 * @para size要伸缩的尺寸 */ - (UIImage *)TelescopicImageToSize:(CGSize) size; /* * @fun 旋转图片 ...
18.44
25
(translation_unit) "//\n// UIImage+JYComTelescopic.h\n// zyhz_ios_sdk_demo\n//\n// Created by <NAME> on 7/2/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (JYComTelescopic)\n/*\n * @fun 按比例伸缩图片大小\n * @para size要伸缩的尺寸\n */\n- (UIImage *)TelescopicImageToS...
87
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.44, "nodes": 51, "errors": 0, "source_hash": "34bee9cd3757a9939f56c950ef366a980b422d380cca6f42ff7527265bc492ab", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,688
c
#pragma once #include <chrono> #include <atomic> #include <thread> #include <mutex> #include "./Common/ModuleRegistry.h" #include "../Common/Helpers/SingletonHelper.hpp" namespace GameServer { class CYorozuya : public SingletonHelper::CSingleton<CYorozuya> { public: CYorozuya(); ...
26.82
33
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <atomic>\n#include <thread>\n#include <mutex>\n\n#include "./Common/ModuleRegistry.h"\n#include "../Common/Helpers/SingletonHelper.hpp"\n\nnamespace GameServer\n{\n class CYorozuya \n : public SingletonHelper::CSingleton<CYorozuya>\n {\n pu...
225
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.82, "nodes": 129, "errors": 0, "source_hash": "17df88ea8622b014e1eedd3f072f2961a8ea9a8cb6d361ecef0bd60c7c3e592b", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,689
c
#include <smolrtsp/types/method.h> #include "parsing.h" #include <assert.h> SmolRTSP_ParseResult SmolRTSP_Method_parse(SmolRTSP_Method *restrict self, CharSlice99 input) { assert(self); const CharSlice99 backup = input; MATCH(smolrtsp_match_whitespaces(input)); CharSlice99 method = input; MATCH...
33.3
20
(translation_unit) "#include <smolrtsp/types/method.h>\n\n#include "parsing.h"\n\n#include <assert.h>\n\nSmolRTSP_ParseResult\nSmolRTSP_Method_parse(SmolRTSP_Method *restrict self, CharSlice99 input) {\n assert(self);\n\n const CharSlice99 backup = input;\n\n MATCH(smolrtsp_match_whitespaces(input));\n Char...
189
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.3, "nodes": 121, "errors": 0, "source_hash": "b0ec50f070730158c32b6152a993bc81df58444d917416a6f956bc2c2fb74629", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,690
c
#include "globus_i_dsi_rest.h" #include <stdbool.h> #include "uri-decode.c" int main() { int rc = 0; globus_dsi_rest_key_value_t test_cases[] = { { .key = "n1", .value = "v1" }, { .key = "n2", .value = "v2" }, { ...
23.19
77
(translation_unit) "#include "globus_i_dsi_rest.h"\n#include <stdbool.h>\n#include "uri-decode.c"\n\nint\nmain()\n{\n int rc = 0;\n globus_dsi_rest_key_value_t test_cases[] =\n {\n {\n .key = "n1",\n .value = "v1"\n },\n {\n .key = "n2",\n .value...
521
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 23.19, "nodes": 277, "errors": 0, "source_hash": "8946ccf81bf5df1d032104ff1d5bdc5ff0db104b1b7af94386596b704ec1977d", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,691
c
#ifndef SYMTA_COMPAT_H_ #define SYMTA_COMPAT_H_ char *realpath(const char *path, char *resolved_path); int clock_gettime(int X, struct timeval *tv); #endif
30.2
5
(translation_unit) "#ifndef SYMTA_COMPAT_H_\n#define SYMTA_COMPAT_H_\n\nchar *realpath(const char *path, char *resolved_path);\nint clock_gettime(int X, struct timeval *tv);\n\n#endif\n" (preproc_ifdef) "#ifndef SYMTA_COMPAT_H_\n#define SYMTA_COMPAT_H_\n\nchar *realpath(const char *path, char *resolved_path);\nint cl...
50
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.2, "nodes": 39, "errors": 0, "source_hash": "d9eee08e8cce4522848f859954a5852364e5248995ac7eaa6eacd57b9523eaba", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SY...
9,692
c
#ifndef AIR_CONDITIONING_RECEIVER_AIRCONDITIONER_H #define AIR_CONDITIONING_RECEIVER_AIRCONDITIONER_H namespace ACC::Devices { /** * Interface for AirConditioners device */ class AirConditioner { public: /** Tries to turn on the AC */ virtual bool turnOn() = 0; ...
32.84
19
(translation_unit) "#ifndef AIR_CONDITIONING_RECEIVER_AIRCONDITIONER_H\n#define AIR_CONDITIONING_RECEIVER_AIRCONDITIONER_H\n\nnamespace ACC::Devices {\n /**\n * Interface for AirConditioners device\n */\n class AirConditioner {\n public:\n /** Tries to turn on the AC */\n virt...
87
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.84, "nodes": 55, "errors": 0, "source_hash": "0fdbac8606ad269ac1bea88b0cf219949a80e5ebd774699a24153b1a1d1e6c23", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,693
c
#ifndef _V3DLIB_KERNEL_H_ #define _V3DLIB_KERNEL_H_ #include <tuple> #include <algorithm> // std::move #include "BaseKernel.h" #include "Source/Complex.h" //#include "Support/assign.h" namespace V3DLib { enum CompileFor { VC4 = 1, V3D = 2, BOTH = VC4 + V3D }; // ==============================================...
29.46
117
(translation_unit) "#ifndef _V3DLIB_KERNEL_H_\n#define _V3DLIB_KERNEL_H_\n#include <tuple>\n#include <algorithm> // std::move\n#include "BaseKernel.h"\n#include "Source/Complex.h"\n//#include "Support/assign.h"\n\nnamespace V3DLib {\n\nenum CompileFor {\n VC4 = 1,\n V3D = 2,\n BOTH = VC4 + V3D\n};\n\n\n// =========...
754
52
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 29.46, "nodes": 442, "errors": 0, "source_hash": "4e525c45522593201d8f3e82a17097e38f1e24efb42037dd65a2d400c1bf2dee", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,694
c
/* * uart_v2.c * * Created on: Apr 9, 2018 * Author: Brandon */ #include <xparameters.h> #include "uart_v2.h" #ifdef XPAR_XUARTLITE_NUM_INSTANCES #include "xuartlite.h" #include "xuartlite_i.h" static XUartLite xuart[XPAR_XUARTLITE_NUM_INSTANCES]; XUartLite* xuart_ptr = &xuart[0]; extern XUartLite_Config XU...
26.25
71
(translation_unit) "/*\n * uart_v2.c\n *\n * Created on: Apr 9, 2018\n * Author: Brandon\n */\n#include <xparameters.h>\n#include "uart_v2.h"\n\n#ifdef XPAR_XUARTLITE_NUM_INSTANCES\n#include "xuartlite.h"\n#include "xuartlite_i.h"\nstatic XUartLite xuart[XPAR_XUARTLITE_NUM_INSTANCES];\nXUartLite* xuart_ptr = &xua...
496
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 26.25, "nodes": 303, "errors": 0, "source_hash": "65627cd174c378505ba260dbe2fb274064f9c8aa1e3f3ecb7f3502090db2ebaf", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,695
c
/** * @file lv_templ.h * */ #ifndef ILI9341_H #define ILI9341_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "lvgl/lvgl.h" /********************* * DEFINES *********************/ #define DISP_BUF_SIZE (LV_HOR_RES_MAX * 40) // #define ILI93...
22.43
42
(translation_unit) "/**\n * @file lv_templ.h\n *\n */\n\n#ifndef ILI9341_H\n#define ILI9341_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/*********************\n * INCLUDES\n *********************/\n#include "lvgl/lvgl.h"\n\n/*********************\n * DEFINES\n *********************/\n#define DISP_BUF_SIZ...
103
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.43, "nodes": 70, "errors": 0, "source_hash": "7a318a4d5a4d06189dd4dcb0748810ab24ea93432b48f15ce6dc1a799264651f", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,696
c
#ifndef CRC64_H #define CRC64_H #include <stdint.h> #include <stdio.h> extern uint64_t lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc); #endif
24.5
6
(translation_unit) "#ifndef CRC64_H\n#define CRC64_H\n#include <stdint.h>\n#include <stdio.h>\n\nextern uint64_t lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc);\n\n#endif\n" (preproc_ifdef) "#ifndef CRC64_H\n#define CRC64_H\n#include <stdint.h>\n#include <stdio.h>\n\nextern uint64_t lzma_crc64(const uint8_...
39
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.5, "nodes": 31, "errors": 0, "source_hash": "cfaaa0052841f9e7ec6f0515baad51f606a8d47f938b91316fd92d3730eb8d39", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CR...
9,697
c
//--------------------------------------------------------------------- // // File: TElementsView.h // // Author: <NAME> // // Date: 05.20.98 // // Desc: Child view of TBrowserTabView. Handles display and sorting // of project media elements // // Copyright ©1998 mediapede Software // //-----------------------------...
22.64
56
(translation_unit) "//---------------------------------------------------------------------\n//\n// File: TElementsView.h\n//\n// Author: <NAME>\n//\n// Date: 05.20.98\n//\n// Desc: Child view of TBrowserTabView. Handles display and sorting\n// of project media elements\n//\n// Copyright ©1998 mediapede Software\n//...
207
2
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 22.64, "nodes": 129, "errors": 0, "source_hash": "fba560b76d2e5af103aeefc3fb170e3634c0659da6b28a8f0063f077b86ed87f", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
9,698
c
#ifndef NITRO_OR_MAP_INCLUDED #define NITRO_OR_MAP_INCLUDED #include "or.h" #include "or_tiles.h" #include "or_bg.h" typedef struct { int32_t page_w, page_h; int32_t view_x, view_y; int32_t view_page_x, view_page_y; int32_t block_w, block_h; int32_t player_init_x, player_init_y; int32_t player...
27.81
31
(translation_unit) "#ifndef NITRO_OR_MAP_INCLUDED\n#define NITRO_OR_MAP_INCLUDED\n\n#include "or.h"\n#include "or_tiles.h"\n#include "or_bg.h"\n\ntypedef struct {\n int32_t page_w, page_h;\n int32_t view_x, view_y;\n int32_t view_page_x, view_page_y;\n int32_t block_w, block_h;\n int32_t player_init_x, p...
260
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.81, "nodes": 190, "errors": 0, "source_hash": "2e01df8b027c4007fc278b7c4e69c066ad5075e24fca05ac4ed760dde1879c56", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,699