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
//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifnd...
40.73
201
(translation_unit) "////////////////////////////////////////////////////////////////////////////////////////////////////\n// NoesisGUI - http://www.noesisengine.com\n// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.\n/////////////////////////////////////////////////////////////////////////////////////...
2,048
138
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 40.73, "nodes": 1144, "errors": 0, "source_hash": "bf8155949b5acc9d2082c263a7408e8624031708d9827828b977687626d840d7", "categorized_nodes": 827}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __MA...
3,200
c
/* Copyright 2021. <NAME> * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * */ #ifndef __STRING_H #define __STRING_H #include "vec.h" vec_decl(char); typedef vec(char)* string; #define string_check(x) ({ string __x = (x); CHECK('\0' == ...
27.13
31
(translation_unit) "/* Copyright 2021. <NAME>\n * All rights reserved. Use of this source code is governed by\n * a BSD-style license which can be found in the LICENSE file.\n * */\n\n#ifndef __STRING_H\n#define __STRING_H\n\n#include "vec.h"\n\nvec_decl(char);\n\ntypedef vec(char)* string;\n\n#define string_check(x) (...
224
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.13, "nodes": 147, "errors": 0, "source_hash": "28908f2cb59f71df9e8e23497ce97b555b71bfac6fb059f0b11c9bc854d970a9", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,201
c
#include <Instrument.h> class LATOOCARFIAN : public Instrument { public: LATOOCARFIAN(); virtual ~LATOOCARFIAN(); virtual int init(double *, int); virtual int configure(); virtual int run(); private: void doupdate(); int nargs, branch; float amp, pan, x, prevx, y, param1, param2, param3, param4; };
22.69
13
(translation_unit) "#include <Instrument.h>\n\nclass LATOOCARFIAN : public Instrument {\n\npublic:\n LATOOCARFIAN();\n virtual ~LATOOCARFIAN();\n virtual int init(double *, int);\n virtual int configure();\n virtual int run();\n\nprivate:\n void doupdate();\n\n int nargs, branch;\n float amp, pan, x, prevx, y, param1, ...
110
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.69, "nodes": 66, "errors": 0, "source_hash": "6bbeb67d22286665341e4c40140d9580dd9441daf56509fdff2943153d069399", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,202
c
#include <stdio.h> #include <stdlib.h> #define CHAVE(L) ((L)->conteudo) #define POST(L) ((L)->posterior) #define ANT(L) ((L)->anterior) typedef enum {OK, ERROR} status; typedef enum {FALSE=0, TRUE=1} bool; typedef struct celulaD celulaD, *listaD; struct celulaD { int conteudo; listaD posterior; listaD anterior; }...
18.91
171
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define CHAVE(L) ((L)->conteudo)\n#define POST(L) ((L)->posterior)\n#define ANT(L) ((L)->anterior)\n\ntypedef enum {OK, ERROR} status;\ntypedef enum {FALSE=0, TRUE=1} bool;\ntypedef struct celulaD celulaD, *listaD;\n\nstruct celulaD {\n int conteudo;\n list...
1,055
0
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 18.91, "nodes": 665, "errors": 0, "source_hash": "ebb8b0590b7dbdac7f3ec3333b547ab9583f1602fd649fcd911b56cebd29bbec", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,203
c
/* * * TINKER Source Code * * * [2009] - [2013] <NAME> * All Rights Reserved. */ #ifndef TGT_MEM_H_ #define TGT_MEM_H_ #include "tgt_types.h" // http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0301h/ch06s11s02.html // http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211k/Caceai...
24.45
29
(translation_unit) "/*\n *\n * TINKER Source Code\n * \n *\n * [2009] - [2013] <NAME>\n * All Rights Reserved.\n */\n#ifndef TGT_MEM_H_\n#define TGT_MEM_H_\n\n#include "tgt_types.h"\n\n// http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0301h/ch06s11s02.html\n// http://infocenter.arm.com/help/index.jsp?...
74
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.45, "nodes": 52, "errors": 0, "source_hash": "fa459a320962b597dea0091af5e360c16f73d1782570697fafe4b1021d697979", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,204
c
#include<stdio.h> #include<stdlib.h> #include<string.h> long long int a, b; long long int gcd(long long int a, long long int b) { if(b == 0) return a; return gcd(b, a%b); } int main() { scanf("%lld %lld", &a, &b); printf("%lld", gcd(a, b)); }
17.27
15
(translation_unit) "#include<stdio.h> \n#include<stdlib.h> \n#include<string.h> \nlong long int a, b; \nlong long int gcd(long long int a, long long int b) \n{ \n if(b == 0) return a; \n return gcd(b, a%b); \n} \nint main() \n{ \n scanf("%lld %lld", &a, &b); \n printf("%lld", gcd(a, b)); \n \n} \n \n \n \n ...
121
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.27, "nodes": 75, "errors": 0, "source_hash": "384ec80d9a2bd3acacdbff803307e55df7751b28ed4ec5628061b51898620bf7", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,205
c
// // Created by lancy on 26/11/12. // // To change the template use AppCode | Preferences | File Templates. // #import <Foundation/Foundation.h> @interface NSDate (CYHelper) // example: dateFormat:@"yyyy-MM-dd 'at' HH:mm"; // formattedDateString: 2001-01-02 at 13:00 - (NSString *)stringWithDateFormat:(NSString *)...
26.5
14
(translation_unit) "//\n// Created by lancy on 26/11/12.\n//\n// To change the template use AppCode | Preferences | File Templates.\n//\n\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (CYHelper)\n\n\n// example: dateFormat:@"yyyy-MM-dd 'at' HH:mm";\n// formattedDateString: 2001-01-02 at 13:00\n- (NSString *...
62
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.5, "nodes": 36, "errors": 0, "source_hash": "a50706bff51ccdb78433ec59323572c0d5d0681efb2e2f3746f74fd3b23f2fd3", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
3,206
c
// // XWSocketClient.h // XWDebugger // // Created by songxiangwu on 2016/7/18. // Copyright © 2016年 atom. All rights reserved. // #import <Foundation/Foundation.h> @class XWSocketClient; @protocol XWSocketClientDelegate <NSObject> - (void)socketClient:(XWSocketClient *)client didConnectToHost:(NSString *)host p...
36.18
22
(ERROR) "//\n// XWSocketClient.h\n// XWDebugger\n//\n// Created by songxiangwu on 2016/7/18.\n// Copyright © 2016年 atom. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class XWSocketClient;\n\n@protocol XWSocketClientDelegate <NSObject>\n\n- (void)socketClient:(XWSocketClient *)client didConnectToH...
177
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.18, "nodes": 104, "errors": 0, "source_hash": "c2b6dec91b9dfac7b04d6f70fe069886f77da58aa265ebd3826fa59115694448", "categorized_nodes": 59}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// XWSocketClient.h\n...
3,207
c
/* ** EPITECH PROJECT, 2020 ** MY_RPG_PUBLIC ** File description: ** animable.h */ #ifndef CAAC7402_55EF_480E_9385_40AE10D883F5 #define CAAC7402_55EF_480E_9385_40AE10D883F5 #include <SFML/System.h> #include <SFML/Graphics.h> #include <stdbool.h> typedef struct animation { int start_id; ...
31.42
33
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** MY_RPG_PUBLIC\n** File description:\n** animable.h\n*/\n\n#ifndef CAAC7402_55EF_480E_9385_40AE10D883F5\n #define CAAC7402_55EF_480E_9385_40AE10D883F5\n\n #include <SFML/System.h>\n #include <SFML/Graphics.h>\n #include <stdbool.h>\n\n typedef struct an...
183
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.42, "nodes": 136, "errors": 0, "source_hash": "396e4d073a2acc87704a31e4f0179d12d0a83005483063a9742518ad2b1cb0a7", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,208
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // @class NSDate, NSString; @protocol FBADownloadableFilePromise - (_Bool)canDownload; - (unsigned long long)downloadState; @property(nonatomic, readonly) ...
34.08
13
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n@class NSDate, NSString;\n\n@protocol FBADownloadableFilePromise\n- (_Bool)canDownload;\n- (unsigned long long)downloadState;\n...
92
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.08, "nodes": 62, "errors": 0, "source_hash": "872a89733813521b98ea5b0a02f08b3950a5bd035e63ac27ca7b7586f7284c0f", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@class NSDate, N...
3,209
c
// Exercicio 26 #include <stdio.h> int main() { float H, M; printf("Entre com um valor de area em metros quadrados "); scanf("%f", &M); H = M * 0.0001; printf("O valor da area em hectares e %f\n", H); return 0; }
13.56
18
(translation_unit) "// Exercicio 26 \n \n#include <stdio.h> \n \nint main() { \n \n float H, M; \n \n printf("Entre com um valor de area em metros quadrados "); \n scanf("%f", &M); \n \n H = M * 0.0001; \n \n printf("O valor da area em hectares e %f\n", H); \n \n return 0; \n \n} \n" (comment) "// E...
74
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 13.56, "nodes": 37, "errors": 0, "source_hash": "452e3f35f38c7981ac7f6abb7dc0ff4f2b433e77aeb216a4991313a5c76f525f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,210
c
#ifndef SYSYC_MODULE_H #define SYSYC_MODULE_H #include <string> #include <list> #include <map> #include "Type.h" #include "GlobalVariable.h" #include "Value.h" #include "Function.h" class GlobalVariable; class Module { public: explicit Module(std::string name); ~Module(); Type *get_void_type(); ...
34.33
51
(translation_unit) "#ifndef SYSYC_MODULE_H\n#define SYSYC_MODULE_H\n\n#include <string>\n#include <list>\n#include <map>\n\n#include "Type.h"\n#include "GlobalVariable.h"\n#include "Value.h"\n#include "Function.h"\n\nclass GlobalVariable;\n\nclass Module\n{\npublic:\n explicit Module(std::string name);\n ~Module(...
483
21
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.33, "nodes": 318, "errors": 0, "source_hash": "9d2576982516c2affa1a6270e574e3563c5d4c475a5b31dabf1427319e1e871d", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,211
c
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <algorithm> namespace djv { namespace Core { namespace Observer { template<typename T> inline void Value<T>::_init( const std::weak_ptr<IValueSubj...
32.96
134
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright (c) 2004-2020 <NAME>\n// All rights reserved.\n\n#include <algorithm>\n\nnamespace djv\n{\n namespace Core\n {\n namespace Observer\n {\n template<typename T>\n inline void Value<T>::_init(\n ...
1,148
87
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 32.96, "nodes": 742, "errors": 0, "source_hash": "c073c87f7835ce5aa07e78fde1c49e80b18f5b7d723f65daf173e996cc503061", "categorized_nodes": 486}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,212
c
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the Wine project. */ #ifndef _INC_CORECRT_STARTUP #define _INC_CORECRT_STARTUP #include <corecrt.h> typedef enum _crt_argv_mode { _crt_argv_no_arguments, _crt_argv_unexpanded_arguments, _crt_argv_expan...
31.45
38
(translation_unit) "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the Wine project.\n */\n\n#ifndef _INC_CORECRT_STARTUP\n#define _INC_CORECRT_STARTUP\n\n#include <corecrt.h>\n\ntypedef enum _crt_argv_mode\n{\n _crt_argv_no_arguments,\n _crt_argv_unexpand...
267
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.45, "nodes": 212, "errors": 0, "source_hash": "b5701c9b0bcefb5f6167008baad4cb8c15cc2935e914fcdecfee75a3fc57e619", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,213
c
#pragma once namespace shims { class ContactUser; class ContactIDValidator : public QRegularExpressionValidator { Q_OBJECT Q_DISABLE_COPY(ContactIDValidator) public: ContactIDValidator(QObject *parent = 0); virtual void fixup(QString &text) const; virtual State ...
32.05
20
(translation_unit) "#pragma once\n\nnamespace shims\n{\n class ContactUser;\n class ContactIDValidator : public QRegularExpressionValidator\n {\n Q_OBJECT\n Q_DISABLE_COPY(ContactIDValidator)\n public:\n ContactIDValidator(QObject *parent = 0);\n\n virtual void fixup(QString &tex...
163
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.05, "nodes": 88, "errors": 0, "source_hash": "24353b5c2f8bfec45419fe8c1440a09eecfb3eafa9417eda7dacf7a6a895b361", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,214
c
#ifndef SCENE_H #define SCENE_H #include "OgreHelper.h" #include "KnowledgeModel.h" #include <QVector> #include <QScriptEngine> #include <QSharedPointer> #include <QMap> #include <OgreVector3.h> #include <OgreQuaternion.h> #include <OgreFrameListener.h> class Actor; class QOEngine; class DebugDrawer; namespace Ogre ...
36.32
120
(translation_unit) "#ifndef SCENE_H\n#define SCENE_H\n\n#include "OgreHelper.h"\n#include "KnowledgeModel.h"\n#include <QVector>\n#include <QScriptEngine>\n#include <QSharedPointer>\n#include <QMap>\n#include <OgreVector3.h>\n#include <OgreQuaternion.h>\n#include <OgreFrameListener.h>\n\nclass Actor;\nclass QOEngine;\n...
1,131
75
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 36.32, "nodes": 705, "errors": 0, "source_hash": "050460f69f1ebdb6d5406a3db95d2de50a587bc25a7a486f558fb4a7c80b101f", "categorized_nodes": 491}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,215
c
// // KNShareTextView.h // EaseMobUITest // // Created by LUKHA_Lu on 15/3/27. // Copyright (c) 2015年 BFHD. All rights reserved. // #import <UIKit/UIKit.h> @interface KNShareTextView : UITextView @property (nonatomic,copy) NSString *placeHolder; @end
22.18
11
(translation_unit) "//\n// KNShareTextView.h\n// EaseMobUITest\n//\n// Created by LUKHA_Lu on 15/3/27.\n// Copyright (c) 2015年 BFHD. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface KNShareTextView : UITextView\n\n@property (nonatomic,copy) NSString *placeHolder;\n\n@end\n" (comment) "//" (comm...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.18, "nodes": 23, "errors": 0, "source_hash": "3328bbf42a1a782e4cb1a06f00a7a85812da0cae774eb9dedde990c5ddf5ca37", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
3,216
c
//{{BLOCK(song3) //====================================================================== // // song3, 256x256@8, // + regular map (flat), lz77 compressed, 32x32 // External tile file: (null). // Total size: 520 = 520 // // Time-stamp: 2019-12-05, 22:03:22 // Exported by Cearn's GBA Image Transmogrifier, v0.8.15 //...
29.84
19
(translation_unit) "//{{BLOCK(song3)\n\n//======================================================================\n//\n// song3, 256x256@8, \n// + regular map (flat), lz77 compressed, 32x32 \n// External tile file: (null).\n// Total size: 520 = 520\n//\n// Time-stamp: 2019-12-05, 22:03:22\n// Exported by Cearn's GBA Ima...
41
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.84, "nodes": 20, "errors": 0, "source_hash": "c6e6df2e784c58b5016a8bc6ef40719996c63febb1c26d3c0826e7c2447abd4f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,217
c
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_dom_workers_xmlht...
28.4
237
(translation_unit) "/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this file,\n * You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n#ifndef ...
1,383
75
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 28.4, "nodes": 806, "errors": 0, "source_hash": "7beb412ca6d0a81786c9c64dd5dbe1d2a57a720954a348e05afb65e0a96dbafb", "categorized_nodes": 571}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,218
c
/* * multiCon.h * * Created: 24.8.2015 18:53:00 * Author: klaxalk */ #ifndef MULTICON_H_ #define MULTICON_H_ #define MULTICON_BUFFER_SIZE 80 #define NUMBER_OF_BLOBS 4 uint8_t numberOfDetectedBlobs; uint8_t multiconErrorState; // this structure holds a message received from STM typedef struct { char messa...
22.11
37
(translation_unit) "/*\n * multiCon.h\n *\n * Created: 24.8.2015 18:53:00\n * Author: klaxalk\n */ \n\n\n#ifndef MULTICON_H_\n#define MULTICON_H_\n\n#define MULTICON_BUFFER_SIZE 80\n\n#define NUMBER_OF_BLOBS 4\n\nuint8_t numberOfDetectedBlobs;\nuint8_t multiconErrorState;\n\n// this structure holds a message received ...
138
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.11, "nodes": 98, "errors": 0, "source_hash": "a81368d392408094530b3d2781d06e0bfc0a1db7f5742a173ada93ae322613e5", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,219
c
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2014, STMicroelectronics International N.V. */ #ifndef TRACE_LEVELS_H #define TRACE_LEVELS_H /* * Trace levels. * * ALWAYS is used when you always want a print to be seen, but it is not always * an error. * * ERROR is used when some kind of error h...
29.38
32
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/*\n * Copyright (c) 2014, STMicroelectronics International N.V.\n */\n#ifndef TRACE_LEVELS_H\n#define TRACE_LEVELS_H\n\n/*\n * Trace levels.\n *\n * ALWAYS is used when you always want a print to be seen, but it is not always\n * an error.\n *\n * ERROR ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 29.38, "nodes": 35, "errors": 0, "source_hash": "c8e501aa311bc63054bf3fd83443182ba6be97ea32c82e6de78cdef6e62dc35d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,220
c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdint.h> #define NSINVALUES 0x100 #define REPEAT_COUNT (NSINVALUES) int8_t mydata1[NSINVALUES] = { #define REPEAT_FUNC(a) ((int8_t)(127 * sinf( ((float)(a) / (float)NSINVALUES) * 2.0 * M_PI) )), #include "lrepeat.h" }; const int cospiover2 = 127 * ...
29
18
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdint.h>\n\n#define NSINVALUES 0x100\n#define REPEAT_COUNT (NSINVALUES)\n\nint8_t mydata1[NSINVALUES] = {\n#define REPEAT_FUNC(a) ((int8_t)(127 * sinf( ((float)(a) / (float)NSINVALUES) * 2.0 * M_PI) )), \n#include "lrepeat.h"\n};...
215
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.0, "nodes": 137, "errors": 0, "source_hash": "cdd6cfc74f2d1d1ecd83b06a664a2ceb8be7767abfe2266d9147374a301bacc1", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,221
c
// // RxPagination.h // RxPagination // // Created by <NAME> on 10/9/20. // #import <Foundation/Foundation.h> //! Project version number for RxPagination. FOUNDATION_EXPORT double RxPaginationVersionNumber; //! Project version string for RxPagination. FOUNDATION_EXPORT const unsigned char RxPaginationVersionStrin...
37.33
12
(translation_unit) "//\n// RxPagination.h\n// RxPagination\n//\n// Created by <NAME> on 10/9/20.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for RxPagination.\nFOUNDATION_EXPORT double RxPaginationVersionNumber;\n\n//! Project version string for RxPagination.\nFOUNDATION_EXPORT const unsig...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 37.33, "nodes": 15, "errors": 0, "source_hash": "9ca37b40029cbae6c36172f7ed2f06b37c5637fcb1a136a6cfbddd69745a8f08", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,222
c
#ifndef SERVER_H_ # define SERVER_H_ # include <map> # include <memory> # include "Map.h" # include "Network.h" class Server { public: Server(int port, int size_x = 10, int size_y = 10); ~Server(); bool Play(); private: Network network; Map *map; std::vector<int> graphics; bo...
33.23
43
(translation_unit) "#ifndef SERVER_H_\n# define SERVER_H_\n\n# include <map>\n# include <memory>\n# include "Map.h"\n# include "Network.h"\n\nclass Server {\n public:\n Server(int port, int size_x = 10, int size_y = 10);\n ~Server();\n\n bool Play();\n\n private:\n Network network;\n Map *map...
599
42
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.23, "nodes": 323, "errors": 0, "source_hash": "35542184f66d17139802c15202940e39de5397ae65abf89da4438ff0f11edb60", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,223
c
#include <assert.h> #include <ctype.h> #include <err.h> #include <stdio.h> #include <stdlib.h> #include "dnssec.h" #define LEN(a) (sizeof(a) / sizeof((a)[0])) static size_t find_string(const char *str[], size_t len, const char *s) { for (size_t i = 1; i < len; ++i) { if (str[i] && strcmp(str[i], s) == 0) return...
22.01
292
(translation_unit) "#include <assert.h>\n#include <ctype.h>\n#include <err.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include "dnssec.h"\n\n#define LEN(a) (sizeof(a) / sizeof((a)[0]))\n\nstatic size_t\nfind_string(const char *str[], size_t len, const char *s)\n{\n for (size_t i = 1; i < len; ++i) {\n if (str[i] && ...
2,991
0
{"language": "c", "success": true, "metadata": {"lines": 292, "avg_line_length": 22.01, "nodes": 1865, "errors": 0, "source_hash": "b44d88a2dd36787045942406e51dadd91b1057b02db1784935b476fe780f98c2", "categorized_nodes": 1233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
3,224
c
// ***************************************************************************** // Module..: Leddar // /// \file LdResultProvider.h /// /// \brief Base class of results. /// /// \author <NAME> /// /// \since March 2016 // // Copyright (c) 2016 LeddarTech Inc. All rights reserved. // ***************************...
37.09
35
(translation_unit) "// *****************************************************************************\n// Module..: Leddar\n//\n/// \file LdResultProvider.h\n///\n/// \brief Base class of results.\n///\n/// \author <NAME>\n///\n/// \since March 2016\n//\n// Copyright (c) 2016 LeddarTech Inc. All rights reserved....
243
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 37.09, "nodes": 124, "errors": 0, "source_hash": "fa1913d89d2cd42aee7fc68b733e14fc2f825bbb1994b834eb8a3f9940cbc1b7", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,225
c
#ifndef NETSTREAM_H #define NETSTREAM_H #include <string> #include <unistd.h> #include <stdexcept> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include <sys/select.h> #include <vector> #include <iostream> using std::runtime_error; using std::string; using std::vector; using std::wstring; names...
27.15
82
(translation_unit) "#ifndef NETSTREAM_H\n#define NETSTREAM_H\n\n#include <string>\n#include <unistd.h>\n#include <stdexcept>\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <unistd.h>\n#include <sys/select.h>\n#include <vector>\n#include <iostream>\n\nusing std::runtime_error;\nusing std::string;\nusing std:...
758
35
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 27.15, "nodes": 481, "errors": 0, "source_hash": "5c30ab38267641427a9eb3397961844a94b45e6ba1013e32b4f47fe81cbf367e", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,226
c
/* Copyright (C) 2008-2016 <NAME>. An example illustrating how C indexes work. */ #include <stdio.h> int main(void) { if ( "what"[0] == *("what" + 0) ) printf("Pass 1\n"); if ( "what"[0] == *(0 + "what") ) printf("Pass 2\n"); if ( 0["what"] == *("what" + 0) ) printf("Pass 3\n"...
27.05
21
(translation_unit) "/* Copyright (C) 2008-2016 <NAME>.\n An example illustrating how C indexes work. */\n\n#include <stdio.h>\n\nint main(void)\n{\n if ( "what"[0] == *("what" + 0) )\n printf("Pass 1\n");\n\n if ( "what"[0] == *(0 + "what") )\n printf("Pass 2\n");\n\n if ( 0["what"] == *("what"...
286
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.05, "nodes": 142, "errors": 0, "source_hash": "74ed446bc66b6360994b3472a32fdc9ce734ec65860f50db17127f4b57d5e37b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,227
c
// // LGDNetNextVC.h // LGDNetworking_Example // // Created by liuguodong on 2021/5/12. // Copyright © 2021 刘国栋. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LGDNetNextVC : UIViewController @end NS_ASSUME_NONNULL_END
20.58
12
(translation_unit) "//\n// LGDNetNextVC.h\n// LGDNetworking_Example\n//\n// Created by liuguodong on 2021/5/12.\n// Copyright © 2021 刘国栋. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LGDNetNextVC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.58, "nodes": 16, "errors": 0, "source_hash": "f7a896afa2c06266989da9be4593e72c9af1a14fd23157aa31726a69d633101c", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
3,228
c
#include <stdio.h> void swap(int *p, int *q) { int temp = *p; *p = *q; *q = temp; /* int *temptr = *p; */ /* *p = *q; */ /* *q = temptr; */ } void quick_sort(int l[], int start, int end) { if(start >= end) return; int *p = &l[start]; int *q = &l[end]; int **m = &p; while(p != q){ if (*m == p){ if(*...
14.77
47
(translation_unit) "#include <stdio.h>\n\nvoid swap(int *p, int *q)\n{\n int temp = *p;\n *p = *q;\n *q = temp;\n /* int *temptr = *p; */\n /* *p = *q; */\n /* *q = temptr; */\n}\n\nvoid quick_sort(int l[], int start, int end)\n{\n if(start >= end)\n return;\n int *p = &l[start];\n int *q = &l[end];\n int **m = &p;\n\...
436
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 14.77, "nodes": 258, "errors": 0, "source_hash": "9ba612b790987bcfc89df4c24fbf6c7f09fec1d7564453ee85c150a17f5dd016", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,229
c
// // GCRefreshFooterView.h // GCRefreshExtension // // Created by njgarychow on 11/28/14. // Copyright (c) 2014 zhoujinqiang. All rights reserved. // #import <UIKit/UIKit.h> #import "GCRefreshProtocol.h" @interface GCRefreshFooterView : UIView <GCRefreshProtocol> @end
23.91
11
(translation_unit) "//\n// GCRefreshFooterView.h\n// GCRefreshExtension\n//\n// Created by njgarychow on 11/28/14.\n// Copyright (c) 2014 zhoujinqiang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "GCRefreshProtocol.h"\n\n@interface GCRefreshFooterView : UIView <GCRefreshProtocol>\n\n@end\n" (co...
25
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.91, "nodes": 15, "errors": 0, "source_hash": "ce6a6ee50f343047bf39b495700aba340752791702085d5c1ad38eabed9c9b86", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
3,230
c
#ifndef YANDEXDISKNAMEANDVERSION_H #define YANDEXDISKNAMEANDVERSION_H #include <QString> class YandexDiskNameAndVersion { public: virtual ~YandexDiskNameAndVersion() = default; virtual operator QString() const = 0; }; #endif // YANDEXDISKNAMEANDVERSION_H
25.3
10
(translation_unit) "#ifndef YANDEXDISKNAMEANDVERSION_H\n#define YANDEXDISKNAMEANDVERSION_H\n\n#include <QString>\n\nclass YandexDiskNameAndVersion\n{\npublic:\n virtual ~YandexDiskNameAndVersion() = default;\n virtual operator QString() const = 0;\n};\n#endif // YANDEXDISKNAMEANDVERSION_H\n" (preproc_ifdef) "#i...
51
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 25.3, "nodes": 32, "errors": 0, "source_hash": "18b77d2e0450d4603b73659b78e5775ab11c86e684013d0b2823f5d2d9b422b9", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Y...
3,231
c
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will...
36.83
245
(translation_unit) "//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Lesser General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distribute...
1,070
22
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 36.83, "nodes": 680, "errors": 0, "source_hash": "fc808e78b9becc6f69342715251d87525792f52856843d0c13c9221c72f83a0a", "categorized_nodes": 483}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,232
c
//------------------------------------------------------------------------------ /* This file is part of Beast: https://github.com/vinniefalco/Beast Copyright 2014, <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,...
24.68
214
(translation_unit) "//------------------------------------------------------------------------------\n/*\n This file is part of Beast: https://github.com/vinniefalco/Beast\n Copyright 2014, <NAME> <<EMAIL>>\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or with...
1,466
82
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 24.68, "nodes": 890, "errors": 0, "source_hash": "5d53586283fbfff16c31277dc7b0fb61eb077f003ab8885e61c1bb169cef1323", "categorized_nodes": 603}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,233
c
/* * xfrm_input.c * * Changes: * <NAME> @USAGI * Split up af-specific portion * */ #include <linux/slab.h> #include <linux/module.h> #include <net/ip.h> #include <net/xfrm.h> static struct kmem_cache *secpath_cachep __read_mostly; void __secpath_destroy(struct sec_path *sp) { int i; for (i = 0; i < sp->l...
23.56
77
(translation_unit) "/*\n * xfrm_input.c\n *\n * Changes:\n * <NAME> @USAGI\n * Split up af-specific portion\n *\n */\n\n#include <linux/slab.h>\n#include <linux/module.h>\n#include <net/ip.h>\n#include <net/xfrm.h>\n\nstatic struct kmem_cache *secpath_cachep __read_mostly;\n\nvoid __secpath_destroy(struct sec_path *...
637
1
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 23.56, "nodes": 409, "errors": 0, "source_hash": "fcc6cda5a4ef96ce33759251e97248669e99c18eb851f8af8ad4d2cf0725f24e", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,234
c
/* ----------------------------------------------------------------------------------- * * File CCBValue.h * Ported By <NAME> * Contact <EMAIL> * * ----------------------------------------------------------------------------------- * * Copyright (c) 2010-2014 XM...
31.55
96
(translation_unit) "/* -----------------------------------------------------------------------------------\n *\n * File CCBValue.h\n * Ported By <NAME>\n * Contact <EMAIL> \n * \n * -----------------------------------------------------------------------------------\n * \n * ...
368
13
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 31.55, "nodes": 216, "errors": 0, "source_hash": "e4579b60984340de06d364c8313cf428778171d7e81c2e97f5d0f734b1e47e39", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __CCBV...
3,235
c
////////////////////////////////////////////////////////////////////// // merlin/MerlinIBD.h // (c) 2000-2007 <NAME> // // This file is distributed as part of the MERLIN source code package // and may not be redistributed in any form, without prior written // permission from the author. Permission is granted ...
33.15
52
(translation_unit) "////////////////////////////////////////////////////////////////////// \n// merlin/MerlinIBD.h \n// (c) 2000-2007 <NAME>\n// \n// This file is distributed as part of the MERLIN source code package \n// and may not be redistributed in any form, without prior written \n// permission from the auth...
314
6
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 33.15, "nodes": 193, "errors": 0, "source_hash": "ad9210305e121681cefd803dbc557b1ddfee7aca6c35b5bb38eef7a2e37e0bb5", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,236
c
/** * ============================================================================= * [YTF] (C)2015-2099 Yuantuan Inc. * Link http://www.ytframework.cn * ============================================================================= * @author Tangqian<<EMAIL>> * @created 2015-10-10 *...
38.57
28
(translation_unit) "/**\n * =============================================================================\n * [YTF] (C)2015-2099 Yuantuan Inc.\n * Link http://www.ytframework.cn\n * =============================================================================\n * @author Tangqian<<EMAIL>>\n * @cr...
167
36
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 38.57, "nodes": 117, "errors": 0, "source_hash": "7220e4efab84399717e39e8468fdca9a34ad7e257e46da3c7f51a08e7f6a5f0c", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
3,237
c
/* * TLS Session Key * (C) 2004-2006,2011 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_TLS_SESSION_KEYS_H_ #define BOTAN_TLS_SESSION_KEYS_H_ #include <botan/symkey.h> namespace Botan { namespace TLS { class Handshake_State; /** * TLS Session Keys */ class Sessio...
26.9
63
(translation_unit) "/*\n* TLS Session Key\n* (C) 2004-2006,2011 <NAME>\n*\n* Botan is released under the Simplified BSD License (see license.txt)\n*/\n\n#ifndef BOTAN_TLS_SESSION_KEYS_H_\n#define BOTAN_TLS_SESSION_KEYS_H_\n\n#include <botan/symkey.h>\n\nnamespace Botan {\n\nnamespace TLS {\n\nclass Handshake_State;\n\n...
256
17
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 26.9, "nodes": 117, "errors": 0, "source_hash": "d5db8d1df4b8b2ea91e88657f6b96342e8d966c1032fb32609db79690a43a931", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,238
c
#ifdef MAINWINDOW_H #define MAINWINDOW_H #include <QtGui/QMainWindow> #include <QPushButton> #include <QLabel> #include <QHBoxLayout> class MainWindow: public QMainWindow { Q_OBJECT private: QOushButton *calbutton; QOushButton *hibutton; QLabel *mLabel; public: MainWindow(QWidget *parent=0); ~MainWindow(); private ...
15.17
23
(translation_unit) "#ifdef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QtGui/QMainWindow>\n#include <QPushButton>\n#include <QLabel>\n#include <QHBoxLayout>\n\nclass MainWindow: public QMainWindow\n{\nQ_OBJECT\nprivate:\nQOushButton *calbutton;\nQOushButton *hibutton;\nQLabel *mLabel;\n\npublic:\nMainWindow(QWidget...
100
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.17, "nodes": 68, "errors": 0, "source_hash": "027441d56244c63c31a440b04df34ad564afa9e8a7495c34e50598ff90993ac5", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef M...
3,239
c
/* ************************************************************* Encoder driver function definitions - by <NAME> ************************************************************ */ #ifdef ARDUINO_ENC_COUNTER //below can be changed, but should be PORTD pins; //otherwise additional changes in the code are ...
34.82
28
(translation_unit) "/* *************************************************************\n Encoder driver function definitions - by <NAME>\n ************************************************************ */\n \n \n#ifdef ARDUINO_ENC_COUNTER\n //below can be changed, but should be PORTD pins; \n //otherwise addition...
60
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.82, "nodes": 34, "errors": 0, "source_hash": "19b45a83c00d2cb26332c2d1cdbf9f0dbe85b5d6d5671eea8c6beb7c0681aa22", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef A...
3,240
c
// /clone/quest/questjianxi.c //last modified by sega 13/4/2000 // Modified by <NAME> 2001 //修改成不能幫忙殺 #include <dbase.h> #include <login.h> #include <ansi.h> inherit NPC; inherit F_CLEAN_UP; inherit F_UNIQUE; int ask_me(object who); string * name_msg = ({ "流氓", "進香客", "挑夫", "家丁", ...
31.39
168
(translation_unit) "// /clone/quest/questjianxi.c\n//last modified by sega 13/4/2000\n// Modified by <NAME> 2001\n\n//修改成不能幫忙殺\n#include <dbase.h>\n#include <login.h>\n#include <ansi.h>\n\ninherit NPC;\ninherit F_CLEAN_UP;\ninherit F_UNIQUE;\nint ask_me(object who);\nstring * name_msg = ({\n "流氓",\n "進香客"...
1,789
19
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 31.39, "nodes": 837, "errors": 0, "source_hash": "e804b97765c80b9ac5ceb8ffeeecd2b18989923c720293b1c4af166c0b500cbb", "categorized_nodes": 633}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "h>\...
3,241
c
/** * Calculator Comrade Library * License: https://github.com/DmitryDzz/calculator-comrade-lib/blob/master/LICENSE * Author: <NAME> * Email: <EMAIL> */ #ifndef CALCULATORCOMRADE_CALCULATOR_H #define CALCULATORCOMRADE_CALCULATOR_H #include "calculator/config.h" #include "calculator/button.h" #include "calculator/...
35.81
89
(translation_unit) "/**\n * Calculator Comrade Library\n * License: https://github.com/DmitryDzz/calculator-comrade-lib/blob/master/LICENSE\n * Author: <NAME>\n * Email: <EMAIL>\n */\n#ifndef CALCULATORCOMRADE_CALCULATOR_H\n#define CALCULATORCOMRADE_CALCULATOR_H\n\n#include "calculator/config.h"\n#include "calculator/b...
693
16
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 35.81, "nodes": 411, "errors": 0, "source_hash": "02126accf85aa576cc6671e52a40d8040738e0495f45bac838cdbdd8742e4c9f", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,242
c
// // BulbRecorder.h // bulb // // Created by FanFamily on 2016/11/7. // Copyright © 2016年 niuniu. All rights reserved. // #import <Foundation/Foundation.h> /*! * @brief 跟踪记录信号,需预定义BULB_RECORDER宏才记录 */ @interface BulbRecorder : NSObject + (instancetype)sharedInstance; /*! * @brief 返回信号全局定义表,以及register和fire...
17.77
26
(translation_unit) "//\n// BulbRecorder.h\n// bulb\n//\n// Created by FanFamily on 2016/11/7.\n// Copyright © 2016年 niuniu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/*!\n * @brief 跟踪记录信号,需预定义BULB_RECORDER宏才记录\n */\n@interface BulbRecorder : NSObject\n\n+ (instancetype)sharedInstance;\n\n/*!...
72
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.77, "nodes": 41, "errors": 0, "source_hash": "b3f46d0a0ca4bd564afa13f0185b8c42fc3f2f13b1590490eeae1f07825f5ca0", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
3,243
c
#pragma once #undef _DEBUG #undef _module #ifdef X_PY_VERSION #define STR(x) #x #define XSTR(x) STR(x) /* here's the magic */ #define _CONCAT(x,y) x##y #define CONCAT(x,y) _CONCAT(x,y) #define PYTHON_LIB_PATH CONCAT(/PythonLibs/python, X_PY_VERSION).lib //#define AUTO_INCLUDE_LIB #ifdef AUTO_INCLUDE_LIB #pragma ...
21.44
99
(translation_unit) "#pragma once\n\n#undef _DEBUG\n#undef _module\n\n#ifdef X_PY_VERSION\n\n#define STR(x) #x\n#define XSTR(x) STR(x)\n\n/* here's the magic */\n#define _CONCAT(x,y) x##y\n#define CONCAT(x,y) _CONCAT(x,y)\n\n#define PYTHON_LIB_PATH CONCAT(/PythonLibs/python, X_PY_VERSION).lib\n\n//#define AUTO_INCLUDE_L...
662
9
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 21.44, "nodes": 370, "errors": 0, "source_hash": "ee74ad21c675312d636b6455bc02ea03220687a4509e192c046f9cf5dbb2699c", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,244
c
//aro-args -E #define CAT(a, ...) a ## __VA_ARGS__ #define M(val) val #define TEST(c) CAT(TEST_, c) #define abc 1 TEST(M(0)) CAT(TEST_, M(0)) CAT(ab, c) CAT(a b, c)
17.33
9
(translation_unit) "//aro-args -E\n\n#define CAT(a, ...) a ## __VA_ARGS__\n#define M(val) val\n#define TEST(c) CAT(TEST_, c)\n#define abc 1\n\nTEST(M(0))\nCAT(TEST_, M(0))\nCAT(ab, c)\nCAT(a b, c)\n" (comment) "//aro-args -E" (preproc_function_def) "#define CAT(a, ...) a ## __VA_ARGS__\n" (#define) "#define" ...
81
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.33, "nodes": 49, "errors": 0, "source_hash": "ea320d6a274b295fb6a639270bb98b38b11d30580b51e224ef5a62a19aed4c68", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#d...
3,245
c
#include <stdio.h> #include <stdlib.h> int fig[8], n; char in[8]; int cmp(int *a, int *b) { return *a-*b; } void perm(int v[], int k) { int i; if (k == n) { for (i = 0; i < n-1; i++) printf("%d ", v[i]); printf("%d\n", v[i]); return; } for (i = 0; i < n; i++) if (!in[i]) { in...
21.77
30
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint fig[8], n;\nchar in[8];\n\nint cmp(int *a, int *b) { return *a-*b; }\n\nvoid perm(int v[], int k) {\n int i;\n if (k == n) {\n for (i = 0; i < n-1; i++) printf("%d ", v[i]); printf("%d\n", v[i]);\n return;\n }\n for (i = 0; i <...
398
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 21.77, "nodes": 229, "errors": 0, "source_hash": "93ccd973ea00a298b87e8c03468deed4fe4413b3bb12999e18a65c01b819a0c4", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,246
c
#pragma once #include "OpenGL.h" #include "Rule.h" enum KeyCode : int { Up = 0, Down, Left, Right, Space, KEY_COUNT }; class Input final { private: static bool _keys[KEY_COUNT]; public: Input(); ~Input(); static void init(); static void keyFunc(KeyCode k...
13.6
30
(translation_unit) "#pragma once\n\n#include "OpenGL.h"\n#include "Rule.h"\n\nenum KeyCode\n : int\n{\n Up = 0,\n Down,\n Left,\n Right,\n Space,\n KEY_COUNT\n};\n\nclass Input final\n{\nprivate:\n static bool _keys[KEY_COUNT];\n \npublic:\n Input();\n ~Input();\n \n static void i...
145
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 13.6, "nodes": 80, "errors": 0, "source_hash": "485d351619bc579ec422e08e0e2532404c48525ac5641cb28d1dc990e51db7ad", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,247
c
// // CommonMacro.h // BaoZhangWangiPad // // Created by yyy on 15/12/14. // Copyright © 2015年 yyy. All rights reserved. // #ifndef CommonMacro_h #define CommonMacro_h /** Synthsize a weak or strong reference. Example: @weakify(self) [self doSomething^{ @strongify(self) if (!self) return; ... }]; */ ...
25.11
119
(translation_unit) "//\n// CommonMacro.h\n// BaoZhangWangiPad\n//\n// Created by yyy on 15/12/14.\n// Copyright © 2015年 yyy. All rights reserved.\n//\n\n#ifndef CommonMacro_h\n#define CommonMacro_h\n\n/**\n Synthsize a weak or strong reference.\n \n Example:\n @weakify(self)\n [self doSomething^{\n @strongify(self)...
303
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 25.11, "nodes": 241, "errors": 0, "source_hash": "07a07c22da9755e58f7af05ac5c9949b88bc92626420a4e7e99fcb905b6b8f18", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef ...
3,248
c
Stub content: Drivers/CMSIS/DSP_Lib/Source/FilteringFunctions/arm_fir_lattice_q15.c
41
2
(translation_unit) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/FilteringFunctions/arm_fir_lattice_q15.c\n" (declaration) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/FilteringFunctions/arm_fir_lattice_q15.c" (type_identifier) "Stub" (ERROR) "content:\nDrivers/CMSIS/DSP_Lib/Source/FilteringFunctions/arm_fir_l...
20
1
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 41.0, "nodes": 16, "errors": 0, "source_hash": "411ba127b0d731d25561bd0aa514094fe3d296d17736e56dd15c448777c625af", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "Stub content...
3,249
c
// // AddTimerCmd.h // Vihome // // Created by Air on 15-3-10. // Copyright © 2017年 orvibo. All rights reserved. // #import "BaseCmd.h" #import "HMBaseModel.h" @interface AddTimerCmd : BaseCmd <OrderProtocol> @property (nonatomic,strong)NSString * deviceId; @property (nonatomic,strong)NSString *bindOrder; @pr...
23.84
55
(translation_unit) "//\n// AddTimerCmd.h\n// Vihome\n//\n// Created by Air on 15-3-10.\n// Copyright © 2017年 orvibo. All rights reserved.\n//\n\n#import "BaseCmd.h"\n\n#import "HMBaseModel.h"\n\n@interface AddTimerCmd : BaseCmd <OrderProtocol>\n\n@property (nonatomic,strong)NSString * deviceId;\n\n@property (nonato...
382
86
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 23.84, "nodes": 283, "errors": 0, "source_hash": "8a293c958bbc6be7ae4dae4e450bebe14f0e6aefa13787acde09708bee1eba53", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"...
3,250
c
//////////////////////////////////////////////////////////////////////////////// #pragma once //////////////////////////////////////////////////////////////////////////////// template <class TViewModel> class TrabeViewModelSink : public IPropertyNotification { public: TrabeViewModelSink(TViewModel* pVM) thro...
26.47
45
(translation_unit) "////////////////////////////////////////////////////////////////////////////// \n#pragma once \n//////////////////////////////////////////////////////////////////////////////// \n \ntemplate <class TViewModel> \nclass TrabeViewModelSink : public IPropertyNotification \n{ \npublic: \n TrabeViewModelS...
348
11
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.47, "nodes": 177, "errors": 0, "source_hash": "c04e7440bbbf265a516395d1c5587d5f2f1487985fd464464c12784a873aa155", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
3,251
c
#ifndef _MOBCAL_OMEGA_DIST_H_ #define _MOBCAL_OMEGA_DIST_H_ 1 extern void mobcal_omega_dist(struct mobcal_state_struct *state, double *omega_dist); #endif
32
5
(translation_unit) "#ifndef _MOBCAL_OMEGA_DIST_H_\n#define _MOBCAL_OMEGA_DIST_H_ 1\nextern void mobcal_omega_dist(struct mobcal_state_struct *state, \n double *omega_dist);\n#endif\n" (preproc_ifdef) "#ifndef _MOBCAL_OMEGA_DIST_H_\n#define _MOBCAL_OMEGA_DIST_H_ 1\nextern void mobcal_omega_dist(struct mobcal_s...
32
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 32.0, "nodes": 27, "errors": 0, "source_hash": "1b85e6aaea8a3c084319f708d7c691fafd17fe65f1ce64ba1ea1d6182160a675", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _M...
3,252
c
#ifndef __SENSOR_ADJUSTMENT_PAGE_H__ #define __SENSOR_ADJUSTMENT_PAGE_H__ // uncomment this for 5-panel (PIU) mode #define __5_PANEL__ #include <EmbAJAX.h> #define BUFLEN 30 // display for the current polling rates EmbAJAXMutableSpan p1pollrate("p1pollrate"); EmbAJAXMutableSpan p2pollrate("p2pollrate"); // displa...
32.67
268
(translation_unit) "#ifndef __SENSOR_ADJUSTMENT_PAGE_H__\n#define __SENSOR_ADJUSTMENT_PAGE_H__\n\n// uncomment this for 5-panel (PIU) mode\n#define __5_PANEL__ \n\n#include <EmbAJAX.h>\n\n#define BUFLEN 30\n\n// display for the current polling rates\nEmbAJAXMutableSpan p1pollrate("p1pollrate");\nEmbAJAXMutableSpan p2po...
1,494
51
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 32.67, "nodes": 598, "errors": 0, "source_hash": "996a5fd3fe8e844ae5e8c3c6dea2fe80272a48847f222127f3fd8fa4645b4c01", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,253
c
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2021, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyr...
35.58
84
(translation_unit) "/*-\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2021, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source cod...
448
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 35.58, "nodes": 285, "errors": 0, "source_hash": "d8749ced640ffd52621b37b14294ff9ee415e21f0d33384ac0b7e5facffd53f8", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,254
c
#pragma once #include <constant/constant.h> #include <limits> #include <cstdint> namespace ihft::channel { struct queue_helper { template<typename T> constexpr static std::size_t to2pow(std::size_t n) noexcept { static_assert(std::is_unsigned_v<T>, "Counter type must be unsigned."); con...
34.86
36
(translation_unit) "#pragma once\n\n#include <constant/constant.h>\n\n#include <limits>\n#include <cstdint>\n\nnamespace ihft::channel\n{\n\nstruct queue_helper\n{\n template<typename T>\n constexpr static std::size_t to2pow(std::size_t n) noexcept\n {\n static_assert(std::is_unsigned_v<T>, "Counter typ...
384
33
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.86, "nodes": 231, "errors": 0, "source_hash": "560db50a8cfa916feffb331e7d5a646aad2a626a91040bf8f22044dcb7e895e5", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,255
c
#ifndef MIABOX_DRUMSET_MODE_H #define MIABOX_DRUMSET_MODE_H #define DRUMS_FOLDER 99 #define KICK_SOUND DRUMS_FOLDER, 1 #define SNARE_SOUND DRUMS_FOLDER, 2 #define HIHAT_SOUND DRUMS_FOLDER, 3 #define TOM_SOUND DRUMS_FOLDER, 4 #define CLAP_SOUND DRUMS_FOLDER, 5 namespace drumset_mode { void setup(); void loop()...
24.29
14
(translation_unit) "#ifndef MIABOX_DRUMSET_MODE_H\n#define MIABOX_DRUMSET_MODE_H\n\n#define DRUMS_FOLDER 99\n#define KICK_SOUND DRUMS_FOLDER, 1\n#define SNARE_SOUND DRUMS_FOLDER, 2\n#define HIHAT_SOUND DRUMS_FOLDER, 3\n#define TOM_SOUND DRUMS_FOLDER, 4\n#define CLAP_SOUND DRUMS_FOLDER, 5\n\nnamespace drumset_mode {\n ...
55
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.29, "nodes": 44, "errors": 0, "source_hash": "0caa4c6b85829d3563223f77089624639ca997ecae7c5267380a37b5b90ae2d3", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,256
c
// // PushNotification.h // AWARE // // Created by <NAME> on 5/2/16. // Copyright © 2016 <NAME>. All rights reserved. // #import "AWARESensor.h" @interface PushNotification : AWARESensor // - (void) savePushNotificationDeviceToken:(NSString * _Nonnull) token; - (void) savePushNotificationDeviceTokenWithData:(NSD...
29.38
13
(translation_unit) "//\n// PushNotification.h\n// AWARE\n//\n// Created by <NAME> on 5/2/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import "AWARESensor.h"\n\n@interface PushNotification : AWARESensor\n\n// - (void) savePushNotificationDeviceToken:(NSString * _Nonnull) token;\n- (void) savePushNot...
57
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.38, "nodes": 31, "errors": 0, "source_hash": "c2f867001918becc6dc188998a94101c2979fb7298aa85ec5dafc6de66086c6c", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
3,257
c
#include "headers.h" int main(int argc, char * argv[]) { Router * r = malloc(sizeof(Router)); init(); init_router(&r); printf("This is the routing table\n"); for (int i = 0; i < MAX_DEVICES; i++) { for (int j = 0; j < MAX_DEVICES; j++) { printf("%d\t", conn_matrix[j][...
21.29
17
(translation_unit) "#include "headers.h"\nint main(int argc, char * argv[])\n{\n Router * r = malloc(sizeof(Router));\n init();\n init_router(&r);\n printf("This is the routing table\n");\n for (int i = 0; i < MAX_DEVICES; i++)\n {\n for (int j = 0; j < MAX_DEVICES; j++)\n {\n ...
158
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.29, "nodes": 88, "errors": 0, "source_hash": "727e20ab69b7cdbe1a7c3bf2f1132d6c939134cc1c2b758feadd46fba015178e", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,258
c
#include <ultra64.h> #include <model.h> #include <gfx.h> #include <collision.h> #include <surface_types.h> #include <level.h> #include <ecs.h> #include <physics.h> #include <resize.h> #include "assets/logo/model.inc.c" #include "assets/logo/collision.inc.c" #include "assets/character/model.inc.c" #include "assets/cha...
34.6
30
(translation_unit) "#include <ultra64.h>\n#include <model.h>\n#include <gfx.h>\n#include <collision.h>\n#include <surface_types.h>\n#include <level.h>\n#include <ecs.h>\n#include <physics.h>\n#include <resize.h>\n\n#include "assets/logo/model.inc.c"\n#include "assets/logo/collision.inc.c"\n\n#include "assets/character/...
154
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.6, "nodes": 90, "errors": 0, "source_hash": "175f405e3992a3e25cae7b9fed4c31fcd698107d7645ff95e3648f5678817d57", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,259
c
#include <stdio.h> int main() { printf("LOLCode is \"the\" worst\n"); return 0; }
17
5
(translation_unit) "#include <stdio.h>\nint main() {\n printf("LOLCode is \"the\" worst\n");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() {\n printf("LOLCode is \"the\" worst\n");\n return 0;\n}...
34
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.0, "nodes": 17, "errors": 0, "source_hash": "cf9df72412fce86469e22cb002895dff7030c9f282a824cd5aa0423c2f7b8dc6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
3,260
c
/* * Copyright (c) 1997 Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to use, copy, modify, and distribute the Software without * restriction, provided the Software, ...
33.42
106
(translation_unit) "/*\n * Copyright (c) 1997 Massachusetts Institute of Technology\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to use, copy, modify, and distribute the Software without\n * restriction...
635
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 33.42, "nodes": 418, "errors": 0, "source_hash": "6def2c116f6ed6460893f6afee3d37a2f69e0ff7af961ec2cb1c6dc3be0fdc7c", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
3,261
c
/*! * Copyright (c) airfox 2011 * * \file bezier_spline.h * \brief bezier spline interpolateing algorithm * * \author airfox <<EMAIL>> */ #ifndef UCB_BEZIER_SPLINE_H #define UCB_BEZIER_SPLINE_H #include "point.h" UCB_BEGIN /*! * \brief bezier spline interpolating * * \param[in] points -- control points *...
24.85
26
(translation_unit) "/*!\n * Copyright (c) airfox 2011\n *\n * \file bezier_spline.h\n * \brief bezier spline interpolateing algorithm\n *\n * \author airfox <<EMAIL>>\n */\n\n#ifndef UCB_BEZIER_SPLINE_H\n#define UCB_BEZIER_SPLINE_H\n\n#include "point.h"\n\nUCB_BEGIN\n\n/*!\n * \brief bezier spline interpolating\n *\n *...
48
1
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.85, "nodes": 34, "errors": 0, "source_hash": "7a896e03aad6f37e477132596e5899603f8a7c891d1727005e5e71dd2599460f", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,262
c
/* * fiwix/include/fiwix/console.h * * Copyright 2018-2021, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #ifndef _FIWIX_CONSOLE_H #define _FIWIX_CONSOLE_H #include <fiwix/vt.h> #define NR_VCONSOLES 12 /* number of virtual consoles */ #define VCONSOLES_MAJOR 4 /* virtual...
34.35
159
(translation_unit) "/*\n * fiwix/include/fiwix/console.h\n *\n * Copyright 2018-2021, <NAME>. All rights reserved.\n * Distributed under the terms of the Fiwix License.\n */\n\n#ifndef _FIWIX_CONSOLE_H\n#define _FIWIX_CONSOLE_H\n\n#include <fiwix/vt.h>\n\n#define NR_VCONSOLES 12 /* number of virtual consoles */\n\n#de...
1,034
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 34.35, "nodes": 803, "errors": 0, "source_hash": "d7bd827dab4e41905f69b534b313ec9159713b8fd610e938d774629b91ae38a3", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,263
c
// // TBDropboxQueue.h // Pods // // Created by <NAME> on 2/6/17. // // #import <Foundation/Foundation.h> #import "TBDropbox.h" #import "TBDropboxTask.h" #import "TBDropboxEntry.h" @interface TBDropboxQueue : NSObject @property (strong, nonatomic, readonly, nonnull) NSArray<TBDropboxTask *> * scheduledTasks; @pr...
38.97
31
(translation_unit) "//\n// TBDropboxQueue.h\n// Pods\n//\n// Created by <NAME> on 2/6/17.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import "TBDropbox.h"\n#import "TBDropboxTask.h"\n#import "TBDropboxEntry.h"\n\n\n@interface TBDropboxQueue : NSObject\n\n@property (strong, nonatomic, readonly, nonnull) NSArray<TB...
350
58
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 38.97, "nodes": 250, "errors": 0, "source_hash": "2514c9d64c9ffd0c7e2673f0b7a3d05d010ee03904f9c8d43e28c68e0cfca046", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
3,264
c
#include "pq_nmod.h" #include "nmod_poly_extra.h" #include <stdlib.h> void pq_nmod_elt_init(pq_nmod_elt_t x, mp_limb_t n) { nmod_poly_init(x->mono, n); nmod_poly_init(x->dual, n); } void pq_nmod_elt_set(pq_nmod_elt_t x, const pq_nmod_elt_t y) { nmod_poly_set(x->mono, y->mono); nmod_poly_set(x->dual, y->dual);...
31.32
123
(translation_unit) "#include "pq_nmod.h"\n#include "nmod_poly_extra.h"\n#include <stdlib.h>\n\nvoid pq_nmod_elt_init(pq_nmod_elt_t x, mp_limb_t n) {\n nmod_poly_init(x->mono, n);\n nmod_poly_init(x->dual, n);\n}\n\nvoid pq_nmod_elt_set(pq_nmod_elt_t x, const pq_nmod_elt_t y) {\n nmod_poly_set(x->mono, y->mono);\n n...
1,333
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 31.32, "nodes": 770, "errors": 0, "source_hash": "3f4decd302662f0cb382653726f8f8dec915c373c3603e392b3ed7b241c3cf3e", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,265
c
#pragma once // x - black // o - white // // a b c d e f g h // ------------------- // 8 | o x o x o x o x | 8 // 7 | x o x o x o x o | 7 // 6 | o x o x o x o x | 6 // 5 | x o x o x o x o | 5 // 4 | o x o x o x o x | 4 // 3 | x o x o x o x o | 3 // 2 | o x o x o x o x | 2 // 1 | x o x o x o x o | 1 // --...
14
65
(translation_unit) "#pragma once\n\n// x - black\n// o - white\n// \n// a b c d e f g h\n// ------------------- \n// 8 | o x o x o x o x | 8\n// 7 | x o x o x o x o | 7\n// 6 | o x o x o x o x | 6\n// 5 | x o x o x o x o | 5\n// 4 | o x o x o x o x | 4\n// 3 | x o x o x o x o | 3\n// 2 | o x o x o x o x | 2\n...
222
6
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 14.0, "nodes": 125, "errors": 0, "source_hash": "10f984096e74c6f5b735d1bf35f5f0e7a3ff222af17f685b84f29056f6e6e639", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,266
c
#ifndef PLAYER_ACCOUNT_H #define PLAYER_ACCOUNT_H #include "profile_data_types.h" class player_account { public: player_account(); ~player_account(); shared_str const& name() const { return m_player_name; }; shared_str const& clan_name() const { return m_clan_name; }; u32 const profile_id() const...
34.14
28
(translation_unit) "#ifndef PLAYER_ACCOUNT_H\n#define PLAYER_ACCOUNT_H\n\n#include "profile_data_types.h"\n\nclass player_account\n{\npublic:\n player_account();\n ~player_account();\n\n shared_str const& name() const { return m_player_name; };\n shared_str const& clan_name() const { return m_clan_name; };\...
266
12
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.14, "nodes": 126, "errors": 0, "source_hash": "00aaf68b388c837a0ee0ad0fba70ca6457fe929a6b2a65870c777d2ac8e561bf", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,267
c
#ifndef SCORET_H #define SCORET_H #include "InputTree.h" class ScoreTree { public: int equivInt(int x); int puncEquiv(int i, vector<ECString>& sr); void setEquivInts(vector<ECString>& sr); bool lexact2(InputTree* tree); void recordGold(InputTree* tree, ParseStats& parseStats); void precisionRecall( Inpu...
27.24
17
(translation_unit) "#ifndef SCORET_H\n#define SCORET_H\n\n#include "InputTree.h"\n\nclass ScoreTree\n{\n public:\n int equivInt(int x);\n int puncEquiv(int i, vector<ECString>& sr);\n void setEquivInts(vector<ECString>& sr);\n bool lexact2(InputTree* tree);\n void recordGold(InputTree* tree, ParseStats& parseStats...
154
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.24, "nodes": 104, "errors": 0, "source_hash": "8c962021499597c1c92ebfe843d185f71e50b5681cda8bdb7fdde4a7bc993d46", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,268
c
/** * \file DlgWdbeUsrMngkeypair.h * job handler for job DlgWdbeUsrMngkeypair (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifndef DLGWDBEUSRMNGKEYPAIR_H #define DLGWDBEUSRMNGKEYPAIR_H // IP include.spe...
34.8
181
(translation_unit) "/**\n * \file DlgWdbeUsrMngkeypair.h\n * job handler for job DlgWdbeUsrMngkeypair (declarations)\n * \copyright (C) 2016-2020 MPSI Technologies GmbH\n * \author <NAME> (auto-generation)\n * \date created: 28 Nov 2020\n */\n// IP header --- ABOVE\n\n#ifndef DLGWDBEUSRMNGKEYPAIR_H\n#define DLGWDBEUSRM...
1,891
110
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 34.8, "nodes": 1105, "errors": 0, "source_hash": "168b5bba62caba0a4d779b27388d56e319bb4acd55271bc219f4d8c510836b00", "categorized_nodes": 670}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,269
c
/** * @file calculate.c * @author <NAME> * @version 12302019 * * Calculates overall GPA based on the courses added to the data. * * Changes August 11, 2019: * GPA scale now based on The Ohio State University, Columbus, OH. */ #include "data.h" #include "calculate.h" #include <stdio.h> #include <std...
27.62
131
(translation_unit) "/**\n * @file calculate.c\n * @author <NAME>\n * @version 12302019\n *\n * Calculates overall GPA based on the courses added to the data.\n *\n * Changes August 11, 2019:\n * GPA scale now based on The Ohio State University, Columbus, OH.\n */\n\n#include "data.h"\n#include "calculate.h"\...
1,034
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 27.62, "nodes": 573, "errors": 0, "source_hash": "2214bdab9377246f57df8c08642d7acf47be53ead256371635f77394f7fb1d37", "categorized_nodes": 435}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,270
c
#ifndef MANUALCLASS_H #define MANUALCLASS_H #include "QDjangoModel.h" #include <memory> namespace model { class ManualClass : public QDjangoModel { Q_OBJECT Q_PROPERTY(QString manualClassCode READ manualClassCode WRITE setManualClassCode) Q_PROPERTY(QString manualClassDescription READ manualClassDescripti...
34
30
(translation_unit) "#ifndef MANUALCLASS_H\n#define MANUALCLASS_H\n#include "QDjangoModel.h"\n#include <memory>\n\n\nnamespace model {\nclass ManualClass : public QDjangoModel\n{\n Q_OBJECT\n Q_PROPERTY(QString manualClassCode READ manualClassCode WRITE setManualClassCode)\n Q_PROPERTY(QString manualClassDescri...
233
12
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.0, "nodes": 136, "errors": 0, "source_hash": "9ec499f8c8ffb9712798d8697782f2f9d88c771c8632f87e48bfbfe2d676b951", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,271
c
// Copyright 2011 <NAME>. All rights reserved. // // cbopcodes.h // // This file defines the secondary instruction list for the Game Boy CPU // emulator, comprising those instructions that start with an 0xCB prefix. // Each of the opcodes is defined using the OPCODE macro: // // OPCODE( code, cycles, action ) // // Her...
32.09
284
(translation_unit) "// Copyright 2011 <NAME>. All rights reserved.\n//\n// cbopcodes.h\n//\n// This file defines the secondary instruction list for the Game Boy CPU\n// emulator, comprising those instructions that start with an 0xCB prefix.\n// Each of the opcodes is defined using the OPCODE macro:\n//\n// OPCODE( code...
4,925
0
{"language": "c", "success": true, "metadata": {"lines": 284, "avg_line_length": 32.09, "nodes": 2592, "errors": 0, "source_hash": "b8eb9a88f017a1d7000cd98534082f1c562b5f5a0fda95ebcb96d02729465221", "categorized_nodes": 2048}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "O...
3,272
c
#pragma once #include "util/qunique_ptr.h" #include <QObject> namespace metternich { class gsml_data; class gsml_property; class population_type; class employment_owner final : public QObject { Q_OBJECT Q_PROPERTY(int output_modifier MEMBER output_modifier READ get_output_modifier) Q_PROPERTY(int proportion_to...
36.06
49
(translation_unit) "#pragma once\n\n#include "util/qunique_ptr.h"\n\n#include <QObject>\n\nnamespace metternich {\n\nclass gsml_data;\nclass gsml_property;\nclass population_type;\n\nclass employment_owner final : public QObject\n{\n Q_OBJECT\n\n Q_PROPERTY(int output_modifier MEMBER output_modifier READ get_output_mod...
375
11
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.06, "nodes": 224, "errors": 0, "source_hash": "9ad49d5e8701a3ccdbb15c72f73bfb51a8f9f5ae3cbfec269996d4978a108d36", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,273
c
// // HeatMapDemo.h // BaiduMapSdkSrc // // Created by BaiduMapAPI on 13-7-24. // Copyright (c) 2013年 baidu. All rights reserved. // #import <UIKit/UIKit.h> #import <BaiduMapAPI_Map/BMKMapComponent.h> @interface HeatMapDemo : UIViewController <BMKMapViewDelegate>{ IBOutlet BMKMapView* mapView; IBOutlet UI...
23.44
16
(translation_unit) "//\n// HeatMapDemo.h\n// BaiduMapSdkSrc\n//\n// Created by BaiduMapAPI on 13-7-24.\n// Copyright (c) 2013年 baidu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <BaiduMapAPI_Map/BMKMapComponent.h>\n@interface HeatMapDemo : UIViewController <BMKMapViewDelegate>{\n IBOutlet BMKMa...
58
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.44, "nodes": 41, "errors": 0, "source_hash": "d4aacf1807072153361e81622517b84010f6624a94eddc8776de16c77022bcc0", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
3,274
c
static long sh_r0; #define ARCH_PC_PEEK_ADDR (4 * REG_PC)
28
2
(translation_unit) "static long sh_r0;\n#define ARCH_PC_PEEK_ADDR (4 * REG_PC)\n" (declaration) "static long sh_r0;" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "long" (long) "long" (identifier) "sh_r0" (;) ";" (preproc_def) "#define ARCH_PC_PEEK_ADDR (4 *...
12
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 28.0, "nodes": 8, "errors": 0, "source_hash": "391c0d1d28105d89abe99e23882df7b14df8ceb6a62321e400097d9face193a2", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static long sh...
3,275
c
// // serverWithSelect.c // WebServer // // Created by <NAME> on 9/25/17. // Copyright © 2017 <NAME>. All rights reserved. // #include "serverWithSelect.h" #define MAX_PENDING_CONNECTIONS 10 // maximum length to which the queue of pending connections for sockfd (socket file descriptor) may grow /** * Get argume...
30.14
277
(translation_unit) "//\n// serverWithSelect.c\n// WebServer\n//\n// Created by <NAME> on 9/25/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#include "serverWithSelect.h"\n\n#define MAX_PENDING_CONNECTIONS 10 // maximum length to which the queue of pending connections for sockfd (socket file descripto...
1,707
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 30.14, "nodes": 941, "errors": 0, "source_hash": "1605bb088b93e11e47758ca9ba4364465cc7edaf1ade4ef439cebec965e40f33", "categorized_nodes": 636}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
3,276
c
#ifndef DEBUG_H #define DEBUG_H #include "compiler.h" #ifdef HAVE_CONFIG #include "config/debug.h" #endif #include <errno.h> #include <stdint.h> void debug_init(void); void __debug_bug(const char *function, const char *fmt, ...) __FORMAT(2, 3) __NORETURN; void __debug_print(const char *function, const char *fmt, ......
31.05
20
(translation_unit) "#ifndef DEBUG_H\n#define DEBUG_H\n\n#include "compiler.h"\n#ifdef HAVE_CONFIG\n#include "config/debug.h"\n#endif\n\n#include <errno.h>\n#include <stdint.h>\n\nvoid debug_init(void);\nvoid __debug_bug(const char *function, const char *fmt, ...) __FORMAT(2, 3) __NORETURN;\nvoid __debug_print(const cha...
172
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.05, "nodes": 111, "errors": 0, "source_hash": "9f096d74836bfa35018b14e96d4c885a5e63fbfa423182c6d4488ea130a3116f", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,277
c
#pragma once #include "MeshFactory.h" class FAIRYGUI_API FPolygonMesh : public IMeshFactory, public IHitTest { public: MESHFACTORY_TYPE(FPolygonMesh, this) FPolygonMesh(); virtual ~FPolygonMesh() {} TArray<FVector2D> Points; TArray<FVector2D> Texcoords; float LineWidth; FColor LineColor;...
34.81
21
(translation_unit) "#pragma once\n\n#include "MeshFactory.h"\n\nclass FAIRYGUI_API FPolygonMesh : public IMeshFactory, public IHitTest\n{\npublic:\n MESHFACTORY_TYPE(FPolygonMesh, this)\n\n FPolygonMesh();\n virtual ~FPolygonMesh() {}\n\n TArray<FVector2D> Points;\n TArray<FVector2D> Texcoords;\n floa...
212
12
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.81, "nodes": 117, "errors": 0, "source_hash": "3029dc71d8b81d553aca884aa739609a6ec368f8a87c9893508702d006ac9350", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,278
c
// // Copyright (c) 2021 <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 agreed to...
32.08
133
(translation_unit) "//\n// Copyright (c) 2021 <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 required b...
1,411
79
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 32.08, "nodes": 773, "errors": 0, "source_hash": "903fdf6a7fac88035e9e4dda5440d0874feceda17da929f0f3a25072b3ea0ee0", "categorized_nodes": 541}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,279
c
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (C) Foundries Ltd. 2020 - All Rights Reserved * Author: <NAME> <<EMAIL>> */ #include <nxScp03_Apis.h> #include <se050_user_apis.h> #include <se050_utils.h> #include <string.h> /* * @param k_object * @param k_store * @param key_id * * @return sss_status_t...
28.42
156
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n/*\n * Copyright (C) Foundries Ltd. 2020 - All Rights Reserved\n * Author: <NAME> <<EMAIL>>\n */\n\n#include <nxScp03_Apis.h>\n#include <se050_user_apis.h>\n#include <se050_utils.h>\n#include <string.h>\n\n/*\n * @param k_object\n * @param k_store\n * @param...
1,016
1
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 28.42, "nodes": 677, "errors": 0, "source_hash": "328ef7503ef162a265bb746f7af107aab98388653e75a34e675d1590676790da", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,280
c
/*! * @file main.c * @brief 11. Arreglos Multidimensionales - 09. Arreglos de N dimensiones * @author <NAME> <<EMAIL>> * @date Sep 7, 2018 */ #include <stdio.h> int main(void) { // Declaro un arreglo multidimensional (3D array) de enteros (int) de 2x3x4 // elementos. int array3D[2][3][4]; int...
22.87
39
(translation_unit) "/*!\n * @file main.c\n * @brief 11. Arreglos Multidimensionales - 09. Arreglos de N dimensiones\n * @author <NAME> <<EMAIL>>\n * @date Sep 7, 2018\n */\n#include <stdio.h>\n\nint main(void)\n{\n // Declaro un arreglo multidimensional (3D array) de enteros (int) de 2x3x4\n // elementos.\n ...
239
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 22.87, "nodes": 129, "errors": 0, "source_hash": "9a7919a678ae901cca34f1f151ca3838f3e86ee1f23401c99c57d57965be8b46", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,281
c
// // PopoverView.h // NDL_Category // // Created by dzcx on 2018/3/14. // Copyright © 2018年 ndl. All rights reserved. // #define kRectCorner 12 #define kBigCircleRadius 14 #define kSmallCircleRadius 6 #import <UIKit/UIKit.h> @interface PopoverView : UIView @property (nonatomic, assign, readonly) BOOL isAnimat...
30.88
17
(translation_unit) "//\n// PopoverView.h\n// NDL_Category\n//\n// Created by dzcx on 2018/3/14.\n// Copyright © 2018年 ndl. All rights reserved.\n//\n\n#define kRectCorner 12\n\n#define kBigCircleRadius 14\n#define kSmallCircleRadius 6\n\n#import <UIKit/UIKit.h>\n\n@interface PopoverView : UIView\n\n@property (nonat...
105
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.88, "nodes": 66, "errors": 0, "source_hash": "a2143b423176db8e7d224e7143054237a789e222ec13236779f6b0b6c5f863ba", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "fine kRect...
3,282
c
#ifndef VIYA_CLUSTER_PLAN_H_ #define VIYA_CLUSTER_PLAN_H_ #include <string> #include <vector> #include <json.hpp> #include "util/config.h" namespace viya { namespace cluster { namespace util = viya::util; using json = nlohmann::json; class Placement { public: Placement(const std::string& hostname, uint16_t p...
29.21
47
(translation_unit) "#ifndef VIYA_CLUSTER_PLAN_H_\n#define VIYA_CLUSTER_PLAN_H_\n\n#include <string>\n#include <vector>\n#include <json.hpp>\n#include "util/config.h"\n\nnamespace viya {\nnamespace cluster {\n\nnamespace util = viya::util;\n\nusing json = nlohmann::json;\n\nclass Placement {\n public:\n Placement(co...
429
24
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.21, "nodes": 231, "errors": 0, "source_hash": "0e8a018f77d688bac7f0a06a8e3dba07e86f8a96776279a2a033cad734f089d8", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,283
c
#include <stdio.h> void qsort(int a[], int start, int end); void swap(int a[], int s, int e); void print_array(int a[]); int main (int main, char *argv[]) { int a[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; qsort(a, 0, 10); return 0; } void qsort(int a[], int start, int end) { int i, last; if (start...
24.29
42
(translation_unit) "#include <stdio.h>\n\nvoid qsort(int a[], int start, int end);\nvoid swap(int a[], int s, int e);\nvoid print_array(int a[]);\n\nint\nmain (int main, char *argv[]) {\n int a[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0};\n qsort(a, 0, 10);\n return 0;\n}\n\nvoid qsort(int a[], int start, int end) ...
507
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.29, "nodes": 288, "errors": 0, "source_hash": "67efbd57e1231b83ea481d624340fb25379b7e4ce10b668f7ef5146e9bac5a17", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,284
c
/* * core_init.h * * Created: 2/8/2013 12:30:47 AM * Author: XxXx */ /*#####################################################*/ #ifndef CORE_INIT_H_ #define CORE_INIT_H_ /*#####################################################*/ #include <board.h> extern unsigned long FCPU; extern unsigned long PLL_REF_CLK; #defi...
33.29
59
(translation_unit) "/*\n * core_init.h\n *\n * Created: 2/8/2013 12:30:47 AM\n * Author: XxXx\n */ \n/*#####################################################*/\n#ifndef CORE_INIT_H_\n#define CORE_INIT_H_\n/*#####################################################*/\n#include <board.h>\n\nextern unsigned long FCPU;\nextern...
179
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.29, "nodes": 112, "errors": 0, "source_hash": "2b9da07982b8098ea2e38a4b3021793c42fcd72542ef59e4874c909bf252847d", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,285
c
//===--- PhiStorageOptimizer.h - Phi storage optimizer --------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
40.2
40
(translation_unit) "//===--- PhiStorageOptimizer.h - Phi storage optimizer --------------------===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\...
264
12
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 40.2, "nodes": 135, "errors": 0, "source_hash": "3a4a5cf5861100289c9211439a2f0539be3e67b1f4b76a17025b66b55df56587", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,286
c
#pragma once /** * Copyright (c) blueback * Released under the MIT License * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt * http://bbbproject.sakura.ne.jp/wordpress/mitlicense * @brief メタ。 */ /** include */ #include "./types.h" #include "./platform.h" /** include */ #inc...
14.76
223
(translation_unit) "ragma once \n \n/** \n * Copyright (c) blueback \n * Released under the MIT License \n * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt \n * http://bbbproject.sakura.ne.jp/wordpress/mitlicense \n * @brief メタ。 \n*/ \n \n \n/** include \n*/ \n#include "./types.h" \n#include "./platfor...
847
53
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 14.76, "nodes": 537, "errors": 0, "source_hash": "d25712b0d823e43978fdae85dc891162050107d1b19c8f259493ee5cc86acb0c", "categorized_nodes": 338}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
3,287
c
#ifndef PAINTER_PAINTER_H #define PAINTER_PAINTER_H #include "matrix.h" #ifdef __cplusplus extern "C" { #endif typedef struct Canvas_data { int height, width; int startX, startY; int minX, maxX, minY, maxY; double ratioX, ratioY; unsigned char * map; } Canvas; Canvas * createCanvas( int height, int widt...
28.26
27
(translation_unit) "#ifndef PAINTER_PAINTER_H\n#define PAINTER_PAINTER_H\n#include "matrix.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef struct Canvas_data {\n int height, width;\n int startX, startY;\n int minX, maxX, minY, maxY;\n double ratioX, ratioY;\n unsigned char * map;\n} Canvas;\n\n\nCanvas *...
262
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.26, "nodes": 194, "errors": 0, "source_hash": "c6d21ed8d429289d6deda9cc07057e802fa95e8faa0a1692e627176571a09e2c", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,288
c
// // Zinnia: Online hand recognition system with machine learning // // $Id$; // // Copyright(C) 2008 <NAME> <<EMAIL>> // #ifndef zinnia_COMMON_H_ #define zinnia_COMMON_H_ #include <setjmp.h> #include <cstdlib> #include <cstdio> #include <cstring> #include <string> #include <iostream> #include <algorithm> #include...
37.12
88
(translation_unit) "//\n// Zinnia: Online hand recognition system with machine learning\n//\n// $Id$;\n//\n// Copyright(C) 2008 <NAME> <<EMAIL>>\n//\n#ifndef zinnia_COMMON_H_\n#define zinnia_COMMON_H_\n\n#include <setjmp.h>\n#include <cstdlib>\n#include <cstdio>\n#include <cstring>\n#include <string>\n#include <iost...
550
16
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 37.12, "nodes": 336, "errors": 0, "source_hash": "971aae2cd9618dd879f72f020705d2efb1075b83ed01222fc534120145fbf918", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef zinnia...
3,289
c
/* @migen@ */ /* **============================================================================== ** ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT. ** **============================================================================== */ #ifndef _CIM_Component_h #define _CIM_Component_h #include <...
25.81
166
(translation_unit) "/* @migen@ */\n/*\n**==============================================================================\n**\n** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.\n**\n**==============================================================================\n*/\n#ifndef _CIM_Component_h\n#define...
902
22
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 25.81, "nodes": 605, "errors": 0, "source_hash": "6bc8633170693856ab9b8ba6500c652f5f7703c0ba82b7ee01dc896049439d10", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,290
c
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include <memory> #include <type_traits> #include <utility> #include "frc2/command/Command.h" namespace ...
32.31
29
(translation_unit) "// Copyright (c) FIRST and other WPILib contributors.\n// Open Source Software; you can modify and/or share it under the terms of\n// the WPILib BSD license file in the root directory of this project.\n\n#pragma once\n\n#include <memory>\n#include <type_traits>\n#include <utility>\n\n#include "frc2/...
166
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.31, "nodes": 107, "errors": 0, "source_hash": "2243d78e3435820388070458c82ff2c948e577c65583e8f2b78662ec6c41ca7d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,291
c
#ifndef EDITOR_H #define EDITOR_H #include <QColor> #include <QImage> #include <QWidget> #include <vector> #include <stack> /** * Custom Widget that displays a timeline composed of thumbnails. * * @author <NAME> * */ class Editor : public QWidget { Q_OBJECT public: Editor(QWidget *parent = 0); voi...
25.83
59
(translation_unit) "#ifndef EDITOR_H\n#define EDITOR_H\n\n#include <QColor>\n#include <QImage>\n#include <QWidget>\n#include <vector>\n#include <stack>\n\n\n/**\n * Custom Widget that displays a timeline composed of thumbnails.\n *\n * @author <NAME>\n *\n */\nclass Editor : public QWidget\n{\n Q_OBJECT\n\npublic:\n...
419
14
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 25.83, "nodes": 270, "errors": 0, "source_hash": "be0f6e586f2d0b340a3615f1f3823e37a6f327e7aa703f94f6aab3f03bf1497b", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,292
c
#include <stdio.h> #include <sys/types.h> // required for u_char #include <stddef.h> // offsetof #include <stdlib.h> // malloc #include <netinet/in.h> // sockaddr_in #include <arpa/inet.h> // inet_pton and friends #include <string.h> // strlen #include <ctype.h> // ...
30.9
80
(translation_unit) "#include <stdio.h>\n#include <sys/types.h> // required for u_char\n#include <stddef.h> // offsetof\n#include <stdlib.h> // malloc\n#include <netinet/in.h> // sockaddr_in\n#include <arpa/inet.h> // inet_pton and friends\n#include <string.h> // strlen\n#incl...
664
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 30.9, "nodes": 374, "errors": 0, "source_hash": "dee336fbbb2a922f83c8ea68c791d62e9c62d3df89ecdf9bf7f7ef96e83d1eba", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,293
c
#pragma once #include "bitset.h" namespace utils { class LAUNCHER_API BlockAllocator { public: BlockAllocator(); // initialize memory range void Initialize(const uint32 numPages); // is the given memory range allocated ? const bool IsAllocated(const uint32 firstPage, const uint32 numPages) const; /...
33.24
63
(ERROR) "#pragma once\n\n#include "bitset.h"\n\nnamespace utils\n{\n class LAUNCHER_API BlockAllocator\n { \n public:\n BlockAllocator();\n\n // initialize memory range\n void Initialize(const uint32 numPages);\n\n // is the given memory range allocated ?\n const bool IsAllocated(const uint32 firstPage, const uint...
420
28
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.24, "nodes": 223, "errors": 0, "source_hash": "c95b3de36c24626c0b3fc576439c0f7c896b0a9dd7eb0e5098340ae3fcce25cb", "categorized_nodes": 148}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
3,294
c
// // AIRGoogleMapCalloutSubviewManager.h // AirMaps // // Created by <NAME> on 10/8/18. // // #ifdef HAVE_GOOGLE_MAPS #import <React/RCTViewManager.h> @interface AIRGoogleMapCalloutSubviewManager : RCTViewManager @end #endif
18.08
12
(translation_unit) "//\n// AIRGoogleMapCalloutSubviewManager.h\n// AirMaps\n//\n// Created by <NAME> on 10/8/18.\n//\n//\n\n#ifdef HAVE_GOOGLE_MAPS\n\n#import <React/RCTViewManager.h>\n\n@interface AIRGoogleMapCalloutSubviewManager : RCTViewManager\n\n@end\n\n#endif\n" (comment) "//" (comment) "// AIRGoogleMapC...
23
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.08, "nodes": 13, "errors": 0, "source_hash": "2db775263ffc347b23365e6169e58151ba45e07d3875598f195cd3ade335aca5", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef HA...
3,295
c
#include <math.h> #define EPS FLT_EPSILON static const float_t toint = 1/EPS; static float __rintf(float x) { union {float f; uint32_t i;} u = {x}; int e = u.i>>23 & 0xff; int s = u.i>>31; float_t y; if (e >= 0x7f+23) return x; if (s) y = x - toint + toint; else y = x + toint - toint;...
17.12
25
(translation_unit) "#include <math.h> \n \n \n#define EPS FLT_EPSILON \nstatic const float_t toint = 1/EPS; \n \nstatic float __rintf(float x) \n{ \n union {float f; uint32_t i;} u = {x}; \n int e = u.i>>23 & 0xff; \n int s = u.i>>31; \n float_t y; \n \n if (e >= 0x7f+23) \n return x; \n if (s) \n y = x - toint + toi...
194
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 17.12, "nodes": 131, "errors": 0, "source_hash": "64f7509bedf3433f8c8571c71333e65c5515efa126737262fcc401fbb8c70e03", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,296
c
/* Copyright (c) Microsoft Corporation */ #include <stdio.h> #include <stdarg.h> #include "nt.h" #include "ntrtl.h" #include "nturtl.h" #include "windows.h" #include "delayimp.h" #include "strsafe.h" #include "sxsvc1.h" #define NUMBER_OF(x) (sizeof(x)/sizeof((x)[0])) typedef struct _SERVICE_CONTEXT { ...
27.35
333
(translation_unit) "/* \nCopyright (c) Microsoft Corporation \n*/ \n \n#include <stdio.h> \n#include <stdarg.h> \n#include "nt.h" \n#include "ntrtl.h" \n#include "nturtl.h" \n#include "windows.h" \n#include "delayimp.h" \n#include "strsafe.h" \n#include "sxsvc1.h" \n#define NUMBER_OF(x) (sizeof(x)/sizeof((x)[0])) \n \n...
2,225
5
{"language": "c", "success": true, "metadata": {"lines": 333, "avg_line_length": 27.35, "nodes": 1399, "errors": 0, "source_hash": "da79dfdd51e3ef8d96831eb702520e8929e207b174a47744bf0b11dd24f91b62", "categorized_nodes": 1010}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
3,297
c
/* * Copyright (c) 2022, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <LibJS/Forward.h> namespace Web::HTML { void report_exception(JS::Completion const&); template<typename T> inline void report_exception(JS::ThrowCompletionOr<T> const& result) { VERIFY(result.is_thr...
23.12
16
(translation_unit) "/*\n * Copyright (c) 2022, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <LibJS/Forward.h>\n\nnamespace Web::HTML {\n\nvoid report_exception(JS::Completion const&);\n\ntemplate<typename T>\ninline void report_exception(JS::ThrowCompletionOr<T> const&...
98
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.12, "nodes": 58, "errors": 0, "source_hash": "c970359286f3dc94a71579d3ed3ca1514b92d548165a0a8ea4b9ffb1be6bc30d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,298
c
#include <stdio.h> #include <stdlib.h> int main(){ int i; for(i =1; i<=20; i++){ printf("%d\t", 1+ (rand() % 6)); if(i%5==0) puts(""); } return 0; }
16.55
11
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n int i;\n for(i =1; i<=20; i++){\n printf("%d\t", 1+ (rand() % 6));\n if(i%5==0)\n puts("");\n }\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "...
94
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.55, "nodes": 56, "errors": 0, "source_hash": "5ade1b1a16f21ddc3a69f46b735c59e0fe9b278e471b29d4a0dcfcb174551c98", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,299