language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef COMPUTER_H #define COMPUTER_H #include <QtSql> #include <string> using namespace std; class Computer { public: Computer(); Computer(string name, int year, string type, string built); Computer(int id, string name, int year, string type, string built); string getName() const; ...
24.11
27
(translation_unit) "#ifndef COMPUTER_H\n#define COMPUTER_H\n#include <QtSql>\n#include <string>\n\nusing namespace std;\n\nclass Computer\n{\npublic:\n Computer();\n Computer(string name, int year, string type, string built);\n Computer(int id, string name, int year, string type, string built);\n\n\n string...
172
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.11, "nodes": 105, "errors": 0, "source_hash": "cb449fc5f208c52e03a82135b339b40e56653e0af820190a9b1c32c2561e792e", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,000
c
/****************************************************************************** * Copyright 2017 - 2018, Opulinks Technology Ltd. * --------------------------------------------------------------------------- * --------------------------------------------------------------------------- * Statement: * ---------- * ...
31.13
91
(translation_unit) "/******************************************************************************\n* Copyright 2017 - 2018, Opulinks Technology Ltd.\n* ---------------------------------------------------------------------------\n* ---------------------------------------------------------------------------\n* Stat...
506
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 31.13, "nodes": 237, "errors": 0, "source_hash": "6cef2e321a555ae8519fcc69f13ae5c5496e1c8faf7011ff438e428f1a9b3722", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,001
c
#include <stdio.h> #include <stdlib.h> #define IM_W 20 #define IM_H 20 // convert MNIST training label file to Text // first 20x20 labels are output. int main() { // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/ char fileName[] = "train-labels.idx1-ubyte"; // open MNIST image fil...
26.59
91
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define IM_W 20\n#define IM_H 20\n\n// convert MNIST training label file to Text\n// first 20x20 labels are output.\nint main()\n{\n // MNIST training file can be downloaded from http://yann.lecun.com/exdb/mnist/\n char fileName[] = "train-labels.idx1-uby...
833
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 26.59, "nodes": 455, "errors": 0, "source_hash": "4cb13fee5651978e057ff913d24ee8b91aa79e2a59f2031c73370ad7ccd522c8", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,002
c
// // InfiniteBanner.h // InfiniteBanner // // Created by LLeven on 2019/6/3. // Copyright © 2019 lianleven. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for InfiniteBanner. FOUNDATION_EXPORT double InfiniteBannerVersionNumber; //! Project version string for InfiniteBanner...
39.62
13
(translation_unit) "//\n// InfiniteBanner.h\n// InfiniteBanner\n//\n// Created by LLeven on 2019/6/3.\n// Copyright © 2019 lianleven. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for InfiniteBanner.\nFOUNDATION_EXPORT double InfiniteBannerVersionNumber;\n\n//! Project ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.62, "nodes": 15, "errors": 0, "source_hash": "9cb940cbfeda182a4cc8814ede0da6029718c41acb42df2f3799cd51050567b6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
81,003
c
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ ///////////////////////////////////////////////////////////////////////// //PCM8K <=> CVSD ///////////////////////////////////////////////////////////////////////// #ifndef _PCM8K_CVSD_H_ #define _PCM8K_CVSD_H_ //max num of input samples #define MAXNUMO...
27.95
20
(translation_unit) "/*\n * Copyright (C) 2015-2020 Alibaba Group Holding Limited\n */\n/////////////////////////////////////////////////////////////////////////\n//PCM8K <=> CVSD\n/////////////////////////////////////////////////////////////////////////\n#ifndef _PCM8K_CVSD_H_\n#define _PCM8K_CVSD_H_\n\n\n\n//max num o...
88
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.95, "nodes": 67, "errors": 0, "source_hash": "9f5dc45f1062c95633ee38018d15c9c8032b969e7517218ef29ad9d6449316cf", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,004
c
#ifndef CODEDISPLAY_H #define CODEDISPLAY_H #include "multifilecomment.h" #include <QObject> #include <QPlainTextEdit> class CodeDisplay : public QPlainTextEdit { Q_OBJECT public: CodeDisplay(QWidget *parent = nullptr); void lineNumberAreaPaintEvent(QPaintEvent *event); int lineNumberAreaWidth(); ...
32.59
27
(translation_unit) "#ifndef CODEDISPLAY_H\n#define CODEDISPLAY_H\n\n#include "multifilecomment.h"\n\n#include <QObject>\n#include <QPlainTextEdit>\n\nclass CodeDisplay : public QPlainTextEdit\n{\n Q_OBJECT\n\npublic:\n CodeDisplay(QWidget *parent = nullptr);\n\n void lineNumberAreaPaintEvent(QPaintEvent *event...
220
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.59, "nodes": 148, "errors": 0, "source_hash": "1dda3f00e1295402aaf4bcf0a5a3906c29a3c7352f4369cfe7d356398c03b65e", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,005
c
#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_ #define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_ #include "has/mmbr/func/DefaultCodeValue.h" #include "../../../defn/type/sys/code/Value.h" #include <type_traits> namespace basic { namespace err { namespace sys { namespace tmpl { namespace categ { template<ty...
24.68
37
(translation_unit) "#ifndef BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n#define BASIC_ERR_SYS_TMPL_CATEG_DEFAULTCODEVALUE_H_\n\n#include "has/mmbr/func/DefaultCodeValue.h"\n#include "../../../defn/type/sys/code/Value.h"\n\n#include <type_traits>\n\nnamespace basic\n{\nnamespace err\n{\nnamespace sys\n{\nnamespace tmp...
219
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.68, "nodes": 116, "errors": 0, "source_hash": "9dd5c36d408e5fe7f1bbe11e435f6667b04a7bd287756b738900df950fce0f6a", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,006
c
#include <stdio.h> #include <stdlib.h> int main() { int pessoaAtual = 0; int idadeAtual; int menores21 = 0; int maiores50 = 0; do{ pessoaAtual++; printf("Idade da pessoa %02d: ", pessoaAtual); scanf("%d", &idadeAtual); if(idadeAtual < 21 && idadeAtual > -1){ ...
27
21
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n int pessoaAtual = 0;\n int idadeAtual;\n int menores21 = 0;\n int maiores50 = 0;\n\n do{\n pessoaAtual++;\n printf("Idade da pessoa %02d: ", pessoaAtual);\n scanf("%d", &idadeAtual);\n\n if(idadeAtua...
162
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.0, "nodes": 90, "errors": 0, "source_hash": "5d24486057ef733b55107b0aedaef5848ff3d3d7e39c853860a804208c1b8789", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
81,007
c
#ifndef SIGMA_ARCH_X86_64_GDT #define SIGMA_ARCH_X86_64_GDT #include <Sigma/common.h> #include <Sigma/arch/x86_64/tss.h> #include <klibc/string.h> #include <klibc/stdio.h> namespace x86_64::gdt { struct PACKED_ATTRIBUTE entry { explicit entry(uint64_t ent): ent(ent) {} entry() = default; ...
33.9
60
(translation_unit) "#ifndef SIGMA_ARCH_X86_64_GDT\n#define SIGMA_ARCH_X86_64_GDT\n\n#include <Sigma/common.h>\n\n#include <Sigma/arch/x86_64/tss.h>\n\n#include <klibc/string.h>\n#include <klibc/stdio.h>\n\nnamespace x86_64::gdt\n{\n struct PACKED_ATTRIBUTE entry {\n explicit entry(uint64_t ent): ent(ent) {}\n...
494
12
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.9, "nodes": 320, "errors": 0, "source_hash": "fb2378ad6ddf62123eeb97ee0f99cf38a7c3a73f0281e9e944e154445787c8bb", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,008
c
#ifndef CAMERA_CLASS_H #define CAMERA_CLASS_H #include <glm\glm.hpp> #include <glm\gtc\type_ptr.hpp> #include <glm\gtx\rotate_vector.hpp> #include <glm/gtx/vector_angle.hpp> #include "Shader.h" #include "Core.h" #include "PhotonRenderer.h" namespace Photon { class PHOTON_API Camera { public: Camera(int width, int...
30.27
48
(translation_unit) "#ifndef CAMERA_CLASS_H\n#define CAMERA_CLASS_H\n#include <glm\glm.hpp>\n#include <glm\gtc\type_ptr.hpp>\n#include <glm\gtx\rotate_vector.hpp>\n#include <glm/gtx/vector_angle.hpp>\n#include "Shader.h"\n#include "Core.h"\n#include "PhotonRenderer.h"\n\nnamespace Photon\n{\n class PHOTON_API Camera\n {...
467
16
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 30.27, "nodes": 295, "errors": 0, "source_hash": "1d772cc0a8f039778112e87153b8dfc24f59c1189dbc866f0d9f9312c2e20bc5", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,009
c
/* Copyright (c) 2015-2018, <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 copyright notice, this list of conditions...
34.25
242
(translation_unit) "/* Copyright (c) 2015-2018, <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 code must retain the above copyright notice, thi...
1,761
104
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 34.25, "nodes": 882, "errors": 0, "source_hash": "4a2183a930a2f3f3a408cc1890145e173063a67cbfc68172f8a380b5d6181144", "categorized_nodes": 584}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
81,010
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference */ @interface VCDispatchQueue : NSObject { struct _opaque_pthread_mutex_t { long long __sig; BOOL __opaque[56]; } _lock; NSMutableArray * _rootQueues; } + (id)defaultManager;...
27.53
15
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AVConference.framework/AVConference\n */\n\n@interface VCDispatchQueue : NSObject {\n struct _opaque_pthread_mutex_t { \n long long __sig; \n BOOL __opaque[56]; \n } _lock;\n NSMutableArray * _rootQue...
100
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.53, "nodes": 60, "errors": 0, "source_hash": "580b85355fc23d9747aec3e7ba40a5902a1a57d9c370cf74ca310d0b25d69c7a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
81,011
c
#ifndef _ACTION_SUITE_H_ #define _ACTION_SUITE_H_ #include "TestSuite.h" //description of the class here class ActionSuite: public TestSuite { public: ActionSuite(); virtual std::string suiteName() override { return "Action"; } }; #endif
20.82
11
(translation_unit) "#ifndef _ACTION_SUITE_H_\n#define _ACTION_SUITE_H_\n\n#include "TestSuite.h"\n\n//description of the class here\nclass ActionSuite: public TestSuite\n{\npublic:\n ActionSuite();\n virtual std::string suiteName() override { return "Action"; }\n};\n#endif\n" (preproc_ifdef) "#ifndef _ACTION_SUITE_H_...
60
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.82, "nodes": 29, "errors": 0, "source_hash": "b48cb23e738fd69c6f919064b0c87fd793e190229eee574ae2acde5aba0d7e87", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,012
c
#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E #define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E // // $Id$ // // ------------------------------------------------------------------------- // This file is part of ZeroBugs, Copyright (c) 2010 <NAME> // // Distributed under the Boost Software License, Version 1.0...
28.24
55
(translation_unit) "#ifndef NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n#define NOTE_H__A294DB09_F457_4EE5_991D_81CAEDEE3D6E\n//\n// $Id$\n//\n// -------------------------------------------------------------------------\n// This file is part of ZeroBugs, Copyright (c) 2010 <NAME>\n//\n// Distributed under the Boost S...
277
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.24, "nodes": 147, "errors": 0, "source_hash": "28471d8a5560ae50e5419ad52588ae4b35d42b7a92928fbe7ff5712811bbab57", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,013
c
/* Get function information. Copyright (C) 2005, 2013 Red Hat, Inc. This file is part of elfutils. Written by <NAME> <<EMAIL>>, 2005. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free ...
34.32
94
(translation_unit) "/* Get function information.\n Copyright (C) 2005, 2013 Red Hat, Inc.\n This file is part of elfutils.\n Written by <NAME> <<EMAIL>>, 2005.\n\n This file is free software; you can redistribute it and/or modify\n it under the terms of either\n\n * the GNU Lesser General Public License a...
561
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 34.32, "nodes": 387, "errors": 0, "source_hash": "344463693af76c01f35f44eafbb21f40a9759e818277719c6ae485375413b514", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
81,014
c
/* * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. * * 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 ...
28.51
107
(translation_unit) "/*\n * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\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....
645
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 28.51, "nodes": 343, "errors": 0, "source_hash": "9757593011edac9e40f9d535feb744c890843f027b82ece3a21dc2b3ab330e12", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,015
c
// RBotFirmware // <NAME> 2016-2018 #pragma once #ifdef ESP32 #define USE_ESP32_TIMER_ISR 1 #endif #include <ArduinoLog.h> #include "MotionInstrumentation.h" #include "../MotionBlock.h" #include "RampGenIO.h" class MotionPipeline; class RampGenerator { private: // This singleton static RampGenerator* _pThi...
33.84
102
(translation_unit) "// RBotFirmware\n// <NAME> 2016-2018\n\n#pragma once\n\n#ifdef ESP32\n#define USE_ESP32_TIMER_ISR 1\n#endif\n\n#include <ArduinoLog.h>\n#include "MotionInstrumentation.h"\n#include "../MotionBlock.h"\n#include "RampGenIO.h"\n\nclass MotionPipeline;\n\nclass RampGenerator\n{\nprivate:\n // This si...
626
12
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 33.84, "nodes": 398, "errors": 0, "source_hash": "983a037d36e6d76be1b313a246435e4be0887f63cec81618d7b396d677331885", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
81,016
c
#include <cph/string.h>//string_util.h ios_base::fmtflags ios_base::flags ( ) const {return _flags;} ios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) { fmtflags tmp = _flags; _flags = fmtfl; return tmp; } ios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) { fmtflags tmp = _flags; _fla...
25.27
81
(translation_unit) "#include <cph/string.h>//string_util.h\n\nios_base::fmtflags ios_base::flags ( ) const\n{return _flags;}\n\nios_base::fmtflags ios_base::flags ( ios_base::fmtflags fmtfl ) {\n fmtflags tmp = _flags;\n _flags = fmtfl;\n return tmp;\n}\n\nios_base::fmtflags ios_base::setf ( ios_base::fmtflags fmtfl ) ...
732
65
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 25.27, "nodes": 462, "errors": 0, "source_hash": "b0158449e50d55a3f953bcd2db7dcdbaab86bc1649bfb9e763f5eafaaf3cec0a", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,017
c
// // ViewController.h // 30_UITableViewDynamicCells_FontsTest // // Created by <NAME> on 26.11.15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UITableViewDataSource> @property (weak, nonatomic) IBOutlet UITableView *tableView; @end
27.64
11
(translation_unit) "//\n// ViewController.h\n// 30_UITableViewDynamicCells_FontsTest\n//\n// Created by <NAME> on 26.11.15.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController <UITableViewDataSource>\n\n@property (weak, nonatomic) IBOutlet...
41
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.64, "nodes": 27, "errors": 0, "source_hash": "5de494407abcb69e7e7fe54763b81d62ac876f1f863be2126ec2701b278f574d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
81,018
c
/****************************************************************************** * File: abstractstatemachine.h * Author: <NAME> * This file is part of the 'Simple Statemachine for Embedded Systems' * * Copyright (C) 2016,2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
24.61
103
(translation_unit) "/****************************************************************************** \n * File: abstractstatemachine.h \n * Author: <NAME> \n * This file is part of the 'Simple Statemachine for Embedded Systems' \n * \n * Copyright (C) 2016,2018 <NAME> \n * \n * Licensed under the Apache License, Version...
280
15
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 24.61, "nodes": 150, "errors": 0, "source_hash": "454b51f6c7ce5090fb0e63810cc95c40569602fdb916cc30a1d29bd3f44a1f98", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,019
c
/* $NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, ...
23.65
163
(translation_unit) "/* $NetBSD: uuid.c,v 1.1.1.3 2009/12/02 00:26:49 haad Exp $ */\n\n/*\n * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.\n * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.\n *\n * This file is part of LVM2.\n *\n * This copyrighted material is made available to anyone...
1,384
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 23.65, "nodes": 854, "errors": 0, "source_hash": "96af93be68c5d658aa5f84d316cfee49dcc8ece8a0a4c02a11ecbc77f0861168", "categorized_nodes": 635}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,020
c
#include <stdio.h> int main(void) { int w,h,b,sum; long long int to; double re; scanf("%d", &w); sum=1; for(h=0; h<=w; h++){ if(0==h%3)continue; printf("%d ",h); } return 0; }
10.88
17
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n \n int w,h,b,sum;\n long long int to;\n double re;\n \n scanf("%d", &w); \n sum=1;\n for(h=0; h<=w; h++){\n \n if(0==h%3)continue; \n printf("%d ",h);\n }\n \n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (sys...
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 10.88, "nodes": 65, "errors": 0, "source_hash": "615fefdd936c7eebab084979b6ebbce902eea9edce040362ca94034444d77524", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
81,021
c
#ifndef Py_STRTOD_H #define Py_STRTOD_H #ifdef __cplusplus extern "C" { #endif PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); PyAPI_FUNC(double) PyOS_ascii_atof(const char *str); PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); #ifdef...
19.72
18
(translation_unit) "#ifndef Py_STRTOD_H \n#define Py_STRTOD_H \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n \nPyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); \nPyAPI_FUNC(double) PyOS_ascii_atof(const char *str); \nPyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *...
112
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.72, "nodes": 79, "errors": 0, "source_hash": "3a75f2decbdd456011577d73062233b3ce837639a8873a7c71541b43caa96213", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,022
c
#include<unistd.h> int main() { char buf[0x80]; read(0,buf,0x150); }
10.83
6
(translation_unit) "#include<unistd.h>\n\nint main()\n{\n char buf[0x80];\n read(0,buf,0x150);\n}\n" (preproc_include) "#include<unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (function_definition) "int main()\n{\n char buf[0x80];\n read(0,buf,0x150);\n}" (primitive_type) "int" ...
34
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 10.83, "nodes": 19, "errors": 0, "source_hash": "c0ae2a34f649e707fe5520b89ccef34b5afc2cd67efd4e48a7f76ca0f41732fb", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
81,023
c
#import <UIKit/UIKit.h> @interface UIFont (Quintessential) + (instancetype)quintessentialRegularFontOfSize:(CGFloat)size; @end
30.75
4
(translation_unit) "#import <UIKit/UIKit.h>\n@interface UIFont (Quintessential)\n\n+ (instancetype)quintessentialRegularFontOfSize:(CGFloat)size;\n\n@end\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface UIFont (Quintessential)\...
34
5
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 30.75, "nodes": 21, "errors": 0, "source_hash": "ad1a6179751e53dcbfcacb498fa799fe585ea4ba6839e50b46ac89c0f4634be6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
81,024
c
/* main.c Copyright (C) 1999-2003 <NAME>. Copyright (C) 2010-2020 <NAME>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
30.59
246
(translation_unit) "/* main.c\n\nCopyright (C) 1999-2003 <NAME>.\nCopyright (C) 2010-2020 <NAME>.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to\ndeal in the Software without restriction, including without limitat...
1,839
12
{"language": "c", "success": true, "metadata": {"lines": 246, "avg_line_length": 30.59, "nodes": 1047, "errors": 0, "source_hash": "116cccec02734f3de910c241299c8e33f00a6f29030aa51bcad3489dec33d01e", "categorized_nodes": 777}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
81,025
c
#ifndef COIN_GAME_H #define COIN_GAME_H class Node; #include "..\Data\CoinGameResult.h" class CoinGame { public: CoinGame(int coins) : coins(coins), top(NULL) { } ~CoinGame() { delete top; } public: CoinGameResult calculateWinner(); private: int minimax(Node *, bool, int, int, int); ...
13.15
34
(translation_unit) "#ifndef COIN_GAME_H \n#define COIN_GAME_H \n \nclass Node; \n#include "..\Data\CoinGameResult.h" \n \nclass CoinGame \n{ \npublic: \n CoinGame(int coins) : coins(coins), top(NULL) \n { } \n \n ~CoinGame() \n { \n delete top; \n } \n \npublic: \n CoinGameResult calculateWinner(); \n \nprivate: \n i...
161
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 13.15, "nodes": 89, "errors": 0, "source_hash": "a4e7bf201482f5b8321d5e486d4f252ecc9780a9be0d919994c69ec53ddae894", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,026
c
#include "libmx.h" // static void mx_write(char **lineptr, char *buf) { // *lineptr = mx_realloc(*lineptr, // mx_s_strlen(*lineptr) + mx_s_strlen(buf)); // *lineptr = mx_strcat(*lineptr, buf); // } // static int mx_remembered_part(char **lineptr, char *readed, // ...
32.76
208
(translation_unit) "#include "libmx.h"\n\n// static void mx_write(char **lineptr, char *buf) {\n// *lineptr = mx_realloc(*lineptr,\n// mx_s_strlen(*lineptr) + mx_s_strlen(buf));\n// *lineptr = mx_strcat(*lineptr, buf);\n// }\n\n// static int mx_remembered_part(char **lineptr, char *rea...
639
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 32.76, "nodes": 312, "errors": 0, "source_hash": "75db3bfe5a91b48dd8bb94b20ed2861d921b2c1990003835c34cf3cc49ca9f2c", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,027
c
/* * flash.h * * Created on: Oct 27, 2021 * Author: jiangyuanyuan */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __INIT_H__ #define __INIT_H__ /* Includes ------------------------------------------------------------------*/ #include "sys.h" /* USER CODE BEGIN I...
26.06
35
(translation_unit) "/*\n * flash.h\n *\n * Created on: Oct 27, 2021\n * Author: jiangyuanyuan\n */\n\n/* Define to prevent recursive inclusion -------------------------------------*/\n#ifndef __INIT_H__\n#define __INIT_H__\n\n/* Includes ------------------------------------------------------------------*/\n#inclu...
137
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.06, "nodes": 76, "errors": 0, "source_hash": "1888b97d90e9197b5083c9c9d9a34171c42a68c097eac1d323e0f491cc31523c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,028
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "QQModel.h" @interface ARFaceModelDownloadConfig : QQModel { _Bool _shouldDownload; int _version; int _netType; } - (id)description; @property(nonatomic) int netType...
29.24
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "QQModel.h"\n\n@interface ARFaceModelDownloadConfig : QQModel\n{\n _Bool _shouldDownload;\n int _version;\n int _netType;\n}\n\n- (id)descriptio...
89
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.24, "nodes": 57, "errors": 0, "source_hash": "5e363ec18fb67f9ec6bc7bde108061e3daa32ed9a7639f521aef90e66afdde8e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
81,029
c
#version 330 core layout(location = 0) in vec3 vPos; layout(location = 1) in vec3 vColor; uniform float asp; uniform mat4 MVP; uniform float scale; uniform float direct; uniform vec3 loc; out vec3 col; void main() { vec3 adjPos; if(direct < 1.9) adjPos = vec3(vPos.x*direct, vPos.y*direct, vPos.z) * scale; else...
20.35
26
(translation_unit) "#version 330 core\n\n\nlayout(location = 0) in vec3 vPos;\nlayout(location = 1) in vec3 vColor;\nuniform float asp;\n\nuniform mat4 MVP;\nuniform float scale;\nuniform float direct;\nuniform vec3 loc;\nout vec3 col;\n\nvoid main()\n{\n vec3 adjPos;\n if(direct < 1.9)\n adjPos = vec3(vPos.x*direct, ...
251
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.35, "nodes": 183, "errors": 0, "source_hash": "633763a27eddacebcc94c7c8e37f08a00aac1af9f70c15c23865a176ba93d6ab", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#versio...
81,030
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> int main() { time_t t; srand((unsigned) time(&t)); int number; for(int i = 0; i < (rand() % 100); i++) { number = (rand() % 1000) + 1; } printf("Guess the number 1 - 1000\n\n"); while(true) { int g...
24.71
34
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <time.h>\n\nint main()\n{\n time_t t;\n srand((unsigned) time(&t));\n int number;\n for(int i = 0; i < (rand() % 100); i++) {\n number = (rand() % 1000) + 1;\n }\n printf("Guess the number 1 - 1000\n\n")...
295
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.71, "nodes": 159, "errors": 0, "source_hash": "1a9e1a4b59849e0531d9e45c8d7da3cbdf465a284b38286c33e26b22542c6e22", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,031
c
// // NVGridSemanticItemView.h // Navi // // Created by QIANSC on 2020/11/6. // Copyright © 2020 Qian,Sicheng. All rights reserved. // #import <Cocoa/Cocoa.h> #import "NVToggleBox.h" #import "NVGridSource.h" NS_ASSUME_NONNULL_BEGIN @interface NVGridSemanticItemView : NVToggleBox @property (nonatomic) NVGridSpec...
22.33
15
(translation_unit) "//\n// NVGridSemanticItemView.h\n// Navi\n//\n// Created by QIANSC on 2020/11/6.\n// Copyright © 2020 Qian,Sicheng. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "NVToggleBox.h"\n#import "NVGridSource.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NVGridSemanticItemView : NVToggleBox...
44
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.33, "nodes": 27, "errors": 0, "source_hash": "4931e0f7109b38b931c4d8dc2c2815835218494f0423c644e6106c4369075b7e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
81,032
c
// // Toast-Swift-Framework.h // Toast-Swift-Framework // // Created by <NAME> on 14/04/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Toast-Swift-Framework. FOUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber; //! Project version string for...
42.38
13
(translation_unit) "//\n// Toast-Swift-Framework.h\n// Toast-Swift-Framework\n//\n// Created by <NAME> on 14/04/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for Toast-Swift-Framework.\nFOUNDATION_EXPORT double Toast_Swift_FrameworkVersionNumber;\...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 42.38, "nodes": 15, "errors": 0, "source_hash": "b2d2938fb4ddbd7544c90ca5cca2f549c7a81685975356d6792014154d2185ee", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
81,033
c
#pragma once #include "Application/Config/Config.h" #include "Utility/ResourceManager/ResourceManager.h" class RealtimeEditingWindow { private: //Variables ImVec2 pos; ImVec2 size; Config* config = nullptr; Utility::ResourceManager* resourceManager = nullptr; DWORD ets2ProcessID = 0; uintptr_t ets2ModuleBa...
25.7
27
(translation_unit) "#pragma once\n\n#include "Application/Config/Config.h"\n#include "Utility/ResourceManager/ResourceManager.h"\n\nclass RealtimeEditingWindow\n{\nprivate:\n //Variables\n ImVec2 pos;\n ImVec2 size;\n\n Config* config = nullptr;\n Utility::ResourceManager* resourceManager = nullptr;\n\n DWORD ets2Pro...
181
4
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.7, "nodes": 120, "errors": 0, "source_hash": "8435cc8a941958b2bd343802f06a51a9a40383cf6ce1122eaa72f702f9dbdb3b", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,034
c
#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 // create a linked list struct node { int data; struct node *next; }; typedef struct node node; node *top; // initialize stack void initialize() { top = NULL; } // Push onto the stack void push(int value) { node *tmp; tmp = ma...
14.06
72
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#define TRUE 1\n#define FALSE 0\n\n// create a linked list\nstruct node\n{\n int data;\n struct node *next;\n};\ntypedef struct node node;\n\nnode *top;\n\n// initialize stack\nvoid initialize()\n{\n top = NULL;\n}\n\n// Push onto the stack\nvoid pus...
390
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 14.06, "nodes": 223, "errors": 0, "source_hash": "9b9c965bd8514791acbd2d492003fe301cc711d310888517253559946872882f", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,035
c
// // LoginViewModel.h // Hey // // Created by Ascen on 2017/4/22. // Copyright © 2017年 Ascen. All rights reserved. // #import <Foundation/Foundation.h> @class RACCommand; @interface LoginViewModel : NSObject @property (nonatomic, copy, readonly) NSString *userId; @property (nonatomic, copy, readonly) NSString ...
26.71
14
(translation_unit) "//\n// LoginViewModel.h\n// Hey\n//\n// Created by Ascen on 2017/4/22.\n// Copyright © 2017年 Ascen. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class RACCommand;\n\n@interface LoginViewModel : NSObject\n\n@property (nonatomic, copy, readonly) NSString *userId;\n@property (n...
82
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.71, "nodes": 58, "errors": 0, "source_hash": "6f6761bd9540be414a0bc559d214e3c594954d26f7a006a2a3e2164744deb8fe", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
81,036
c
#ifndef POSTSTEPACTIONSTAGE_H #define POSTSTEPACTIONSTAGE_H // from geantV #include "Geant/SimulationStage.h" // from geantV namespace geant { inline namespace GEANT_IMPL_NAMESPACE { class Propagator; class Track; class TaskData; class Handler; } // namespace GEANT_IMPL_NAMESPACE } // namespace geant namespace geant...
32.69
45
(translation_unit) "#ifndef POSTSTEPACTIONSTAGE_H\n#define POSTSTEPACTIONSTAGE_H\n\n// from geantV\n#include "Geant/SimulationStage.h"\n// from geantV\nnamespace geant {\ninline namespace GEANT_IMPL_NAMESPACE {\nclass Propagator;\nclass Track;\nclass TaskData;\nclass Handler;\n} // namespace GEANT_IMPL_NAMESPACE\n} // ...
240
11
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.69, "nodes": 125, "errors": 0, "source_hash": "ea906a5e793defdfa645594b6bcc04e124b0fe503955db3b86df879ed612fc69", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,037
c
// Copyright (C) 2014, <NAME>. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #ifndef ANKI_MATH_VEC2_H #define ANKI_MATH_VEC2_H #include "anki/math/CommonIncludes.h" #include "anki/math/Vec.h" namespace anki { /// @addtogroup math /// @{ /// 2D vector template<type...
21.51
83
(translation_unit) "// Copyright (C) 2014, <NAME>.\n// All rights reserved.\n// Code licensed under the BSD License.\n// http://www.anki3d.org/LICENSE\n\n#ifndef ANKI_MATH_VEC2_H\n#define ANKI_MATH_VEC2_H\n\n#include "anki/math/CommonIncludes.h"\n#include "anki/math/Vec.h"\n\nnamespace anki {\n\n/// @addtogroup math\n/...
717
43
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 21.51, "nodes": 479, "errors": 0, "source_hash": "ff29e29e06c20d00188c84363182c500f08aceb88265e72099e62553064083c7", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,038
c
// // STKUtility.h // StickerFactory // // Created by <NAME> on 26.06.15. // Copyright (c) 2015 908 Inc. All rights reserved. // @import UIKit; @interface STKUtility : NSObject + (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message; + (NSString*)stickerIdWithMessage: (NSString*)message; + (NSS...
25.91
35
(translation_unit) "//\n// STKUtility.h\n// StickerFactory\n//\n// Created by <NAME> on 26.06.15.\n// Copyright (c) 2015 908 Inc. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STKUtility : NSObject\n\n+ (NSArray*)trimmedPackNameAndStickerNameWithMessage: (NSString*)message;\n+ (NSString*)stickerIdWithMes...
283
29
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.91, "nodes": 177, "errors": 0, "source_hash": "2697a838e2eb2b3939426d26a1f60dd2c346ec3356aebfed60eb9ebd0b58b488", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
81,039
c
#include <stdio.h> #include <ev.h> #include "evn.h" // // Event Callbacks // static void on_drain(EV_P, struct evn_stream* stream) { puts("[Server] On (Stream) Drain"); evn_stream_end(EV_A, stream); } // Data static void on_data(EV_P_ struct evn_stream* stream, void* data, int size) { bool all_sent; FILE* f...
26.13
102
(translation_unit) "#include <stdio.h>\n#include <ev.h>\n\n#include "evn.h"\n\n//\n// Event Callbacks\n//\n\nstatic void on_drain(EV_P, struct evn_stream* stream) {\n puts("[Server] On (Stream) Drain");\n evn_stream_end(EV_A, stream);\n}\n\n// Data\nstatic void on_data(EV_P_ struct evn_stream* stream, void* data, int...
735
9
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 26.13, "nodes": 390, "errors": 0, "source_hash": "06e055c217771645e46c49e476068365691b9758403b443cbe786a54a0332736", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,040
c
#ifndef __CCAPITYPES__ #define __CCAPITYPES__ using namespace std; #include <memory> #include <list> #include <iostream> #include <vector> #include <memory> class Variant { public: Variant(float v); Variant(short v); Variant(char v); Variant(long v); Variant(long long v); Variant() { pt_obj.cPt = (char*)&value;...
36.03
96
(translation_unit) "#ifndef __CCAPITYPES__\n#define __CCAPITYPES__\n\nusing namespace std;\n#include <memory>\n#include <list>\n#include <iostream>\n#include <vector>\n#include <memory>\n\nclass Variant\n{\npublic:\n Variant(float v);\n Variant(short v);\n Variant(char v);\n Variant(long v);\n Variant(long long v);\n V...
1,089
30
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 36.03, "nodes": 720, "errors": 0, "source_hash": "00005f1a41bb541c0146fb8beae4f67e92b733f26147a73b4da5d82e234c7422", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,041
c
/* * wodOS Operating System * Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Contributor(s): * - <NAME> <<EMAIL>> */ #ifndef __UTILS_STRING_H__ #define __UTILS_STRING_H__...
26.76
21
(translation_unit) "/*\n * wodOS Operating System\n * Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * Contributor(s):\n * - <NAME> <<EMAIL>>\n */\n\n#ifndef __UTILS_STRING...
103
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.76, "nodes": 79, "errors": 0, "source_hash": "98ef96e2a5f95c9820fc10b7523d896dbfc7108aa4ed04504dc107dd23feebfc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
81,042
c
#pragma once #ifdef LG_PLATFORM_WINDOWS extern LG::Application* LG::CreateApplication(); int main(int argc, char** argv) { LG::Log::Init(); int a = 3; LG_CORE_CRITICAL("Critical var={0}", a); LG_CORE_ERROR("Error"); LG_CORE_WARN("Warning"); LG_CORE_INFO("Info"); LG_CORE_TRACE("Trace"); LG_CRITICAL("Critica...
19.52
23
(translation_unit) "#pragma once\n\n#ifdef LG_PLATFORM_WINDOWS\n\nextern LG::Application* LG::CreateApplication();\n\nint main(int argc, char** argv)\n{\n\n LG::Log::Init();\n int a = 3;\n LG_CORE_CRITICAL("Critical var={0}", a);\n LG_CORE_ERROR("Error");\n LG_CORE_WARN("Warning");\n LG_CORE_INFO("Info");\n LG_CORE_TRA...
214
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.52, "nodes": 106, "errors": 0, "source_hash": "cbe8e09005d5ca5e65fa7c2e328530d07f123aaedb6296affb85eaa36a53489c", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
81,043
c
#pragma once #include <map> #include <list> #include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std; /* Programado por WoLf */ class TokenizerRow { public: map<DWORD, string> Columns; int ColumnCount; string GetString(DWORD Column, string Default = "") { map<DWORD, s...
17.6
231
(translation_unit) "#pragma once\n\n#include <map>\n#include <list>\n#include <iostream>\n#include <fstream>\n#include <string>\n#include <stdlib.h>\n\nusing namespace std;\n\n/*\n Programado por WoLf\n*/\n\nclass TokenizerRow\n{\npublic:\n map<DWORD, string> Columns;\n int ColumnCount;\n\n string GetString(DWORD Colum...
1,706
21
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 17.6, "nodes": 1047, "errors": 0, "source_hash": "7fe312ca32d8cd14186bb96067829a7a4b3f56464c6c9ad2d87bb6811e4f5fad", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
81,044
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNA...
34.36
58
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYS_INTERNALS_SYS_INTERNALS_MESSAGE_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_...
215
11
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.36, "nodes": 99, "errors": 0, "source_hash": "6a38e0f997c4d9980ffa479f7b55886a8c356138ac4f5f14d7868d9d5194948b", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,045
c
#pragma once #include <iostream> #include "cocos2d.h" #include "BmobSdk.h" USING_NS_CC; class Gift : public BmobObject { public: Gift(); virtual ~Gift(); static void queryOneByGiftId(int giftId, const std::function<void(const void* data)>& onSuccessFunc, const std::function<void(int code, const void* data)>&...
29.33
18
(translation_unit) "#pragma once\n\n#include <iostream>\n#include "cocos2d.h"\n#include "BmobSdk.h"\n\nUSING_NS_CC;\n\nclass Gift : public BmobObject\n{\npublic:\n Gift();\n virtual ~Gift();\n\n static void queryOneByGiftId(int giftId,\n const std::function<void(const void* data)>& onSuccessFunc,\n const std::functio...
195
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.33, "nodes": 107, "errors": 0, "source_hash": "fae082b9179fcb36a65ebebfa98d3a2513354f48f092b4e329fd21178bfa4779", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
81,046
c
#include "geminc.h" #include "gemprm.h" #ifdef UNDERSCORE #define vwind vwind_ #define vad_colors vad_colors_ #define vad_line vad_line_ #define vad_color_init vad_color_init_ #define vad_rms_colors vad_rms_colors_ #define vad_garea vad_garea_ #define vad_imcbar vad_imcbar_ #define in_wind in_wind_ #define gsmode gsmo...
22.15
207
(translation_unit) "#include "geminc.h"\n#include "gemprm.h"\n\n#ifdef UNDERSCORE\n#define vwind vwind_\n#define vad_colors vad_colors_\n#define vad_line vad_line_\n#define vad_color_init vad_color_init_\n#define vad_rms_colors vad_rms_colors_\n#define vad_garea vad_garea_\n#define vad_imcbar vad_imcbar_\n#define in_wi...
1,828
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 22.15, "nodes": 1152, "errors": 0, "source_hash": "fd70991aa4c351f25263235acd5d50547941df198e7cd64f931665fda2c02b47", "categorized_nodes": 760}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
81,047
c
// Copyright 2019 Google Inc. All Rights Reserved. #ifndef FIREBASE_LOG_H #define FIREBASE_LOG_H #include "firebase/firebase/log.h" #endif // FIREBASE_LOG_H
30.6
5
(translation_unit) "// Copyright 2019 Google Inc. All Rights Reserved.\n\n#ifndef FIREBASE_LOG_H\n#define FIREBASE_LOG_H\n\n#include "firebase/firebase/log.h"\n\n#endif // FIREBASE_LOG_H\n\n" (comment) "// Copyright 2019 Google Inc. All Rights Reserved." (preproc_ifdef) "#ifndef FIREBASE_LOG_H\n#define FIREBASE_LO...
16
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.6, "nodes": 10, "errors": 0, "source_hash": "09cfb0011a59c7f8ff362ced3069a22912bef45487f9b6b429e90c02bb136da8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FIR...
81,048
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <SpriteKit/SKAction.h> // Not exported @interface SKRotate : SKAction { struct SKCRotate *_mycaction; } + (id)rotateToX:(double)arg1 y:(double)arg2 z:(double)arg3 duratio...
36.08
26
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <SpriteKit/SKAction.h>\n\n// Not exported\n@interface SKRotate : SKAction\n{\n struct SKCRotate *_mycaction;\n}\n\n+ (id)rotateToX:(double)arg1 y:(...
365
27
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.08, "nodes": 210, "errors": 0, "source_hash": "45469f67c3629dd9a6fab2ed81691f67b3426670822fa0868d5d65890e67afb5", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
81,049
c
/* * whip6: Warsaw High-performance IPv6. * * Copyright (c) 2012-2017 <NAME> * All rights reserved. * * This file is distributed under the terms in the attached LICENSE * files. */ #define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <poll.h> #include <assert.h> #include <errno.h> #include ...
32.59
157
(translation_unit) "/*\n * whip6: Warsaw High-performance IPv6.\n *\n * Copyright (c) 2012-2017 <NAME>\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE \n * files.\n */\n\n#define _BSD_SOURCE\n#include <stdio.h>\n#include <stdlib.h>\n#include <poll.h>\n#include <asse...
1,271
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 32.59, "nodes": 706, "errors": 0, "source_hash": "4ebc73adca3a2013b1577daad8f9dd5a8df30fba93f7023aeff34566f5604ae2", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
81,050
c
/* * Linux driver for Disk-On-Chip devices * * Copyright (C) 1999 Machine Vision Holdings, Inc. * Copyright (C) 2001-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2003 SnapGear Inc * * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $ * * Released under GPL */ ...
32.22
165
(translation_unit) "/*\n * Linux driver for Disk-On-Chip devices\n *\n * Copyright (C) 1999 Machine Vision Holdings, Inc.\n * Copyright (C) 2001-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 <NAME> <<EMAIL>>\n * Copyright (C) 2002-2003 SnapGear Inc\n *\n * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $\n ...
703
1
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 32.22, "nodes": 618, "errors": 0, "source_hash": "1fb78055dd87629f392dfd4bfab7dbbd24f8945da7b1ed0a094296825e6f0460", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
81,051
c
/* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ double cos (double); void link_error(); void f(double a) { double b = cos (a); double c = cos (a); if (b != c) link_error(); } /* { dg-final { ...
26.8
15
(translation_unit) "/* { dg-do compile } */ \n/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */\n/* LLVM LOCAL test not applicable */\n/* { dg-require-fdump "" } */\ndouble cos (double);\nvoid link_error();\nvoid f(double a)\n{\n double b = cos (a);\n double c = cos (a);\n if (b != c)\n li...
78
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.8, "nodes": 47, "errors": 0, "source_hash": "3e34baab6ec5cc2b3fec994e5f643782e7c2b0eea01e3dcd6c52c254d12305e2", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "double cos ...
81,052
c
/* MacCommandWin.h -- headers for more mac stuff */ void SetSelection (short start, short end); void macputc(int ch); void macputs(char *s); void PrepareForInput(void); void InitalizeCmdWindow(void); void UpdateCmdWindow(void); void StopPasting(void); void DeleteRange(void); void scrflush(void); void SetScrollRect(voi...
30.56
16
(translation_unit) "/* MacCommandWin.h -- headers for more mac stuff */\n\nvoid SetSelection (short start, short end);\nvoid macputc(int ch);\nvoid macputs(char *s);\nvoid PrepareForInput(void);\nvoid InitalizeCmdWindow(void);\nvoid UpdateCmdWindow(void);\nvoid StopPasting(void);\nvoid DeleteRange(void);\nvoid scrflush...
171
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.56, "nodes": 121, "errors": 0, "source_hash": "90021998393404d0e35d85914aaf1239bc7e021baa79a239ad1ccc0a5b81cb6c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void SetS...
81,053
c
// // StrategyDetailRelatedServiceCell.h // KidsTC // // Created by Altair on 1/22/16. // Copyright © 2016 KidsTC. All rights reserved. // #import <UIKit/UIKit.h> #import "StrategyDetailServiceItemModel.h" @interface StrategyDetailRelatedServiceCell : UITableViewCell @property (nonatomic, strong) NSIndexPath *in...
28.93
14
(translation_unit) "//\n// StrategyDetailRelatedServiceCell.h\n// KidsTC\n//\n// Created by Altair on 1/22/16.\n// Copyright © 2016 KidsTC. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "StrategyDetailServiceItemModel.h"\n\n@interface StrategyDetailRelatedServiceCell : UITableViewCell\n\n@property (n...
69
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.93, "nodes": 40, "errors": 0, "source_hash": "07135017408306b039f05ce95f89ab2febd392cee62a6aba78cec94c98a93975", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
81,054
c
//-------------------------------------------------- // File: typed_allocator.h // Created: 12/12/2021 7:17:25 PM // // Created By: nickdb // // Copyright (c) REX //-------------------------------------------------- #pragma once namespace rtl { template <typename T> class TypedAllocator { public: stat...
33.95
40
(translation_unit) "//--------------------------------------------------\n// File: typed_allocator.h\n// Created: 12/12/2021 7:17:25 PM\n//\n// Created By: nickdb\n// \n// Copyright (c) REX\n//--------------------------------------------------\n\n#pragma once\n\nnamespace rtl\n{\n template <typename T>\n class Typ...
357
25
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.95, "nodes": 224, "errors": 0, "source_hash": "1d9fa464ecea2bd5b63e6a276ca2107390dc76da625ff08304314e39c74b4a85", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,055
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices */ @interface SSVFamilyContentDeletionEvent : NSObject { NSArray * _deletedAccounts; } @property (nonatomic, readonly) NSArray *deletedAccounts; + (id)notificationPayloadWithAccountPairs:(id)arg1; + ...
35.93
14
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices\n */\n\n@interface SSVFamilyContentDeletionEvent : NSObject {\n NSArray * _deletedAccounts;\n}\n\n@property (nonatomic, readonly) NSArray *deletedAccounts;\n\n+ (id)notificationPayloa...
126
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.93, "nodes": 74, "errors": 0, "source_hash": "c77d0a58bd6af8bf4b887b3f05a3b2575042da689fc77aacad22c6cd8034a61e", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SSVFa...
81,056
c
// C:\diabpsx\PSXSRC\PADS.H #include "types.h" // address: 0x8014785C // line start: 99 // line end: 103 unsigned short GetDown__C4CPad(struct CPad *this) { } // address: 0x8014AC70 // line start: 99 // line end: 103 unsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *this) { } // address: 0x80159028 //...
19.8
146
(translation_unit) "// C:\diabpsx\PSXSRC\PADS.H\n\n#include "types.h"\n\n// address: 0x8014785C\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad(struct CPad *this) {\n}\n\n\n// address: 0x8014AC70\n// line start: 99\n// line end: 103\nunsigned short GetDown__C4CPad_addr_8014AC70(struct CPad *thi...
551
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 19.8, "nodes": 349, "errors": 0, "source_hash": "786647bab86883c0142a5f09858f70b560977ad880d85f0880c3ed6a260afec0", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,057
c
// // Created by cc on 18-12-6. // #ifndef QTALK_V2_DBCONFIG_H #define QTALK_V2_DBCONFIG_H #include "DaoInterface.h" class DbConfig : public DaoInterface { public: explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr); bool creatTable() override; public: bool getDbVersion(int &version); bool...
21.35
20
(translation_unit) "\n// Created by cc on 18-12-6.\n//\n\n#ifndef QTALK_V2_DBCONFIG_H\n#define QTALK_V2_DBCONFIG_H\n\n#include "DaoInterface.h"\n\nclass DbConfig : public DaoInterface\n{\npublic:\n explicit DbConfig(qtalk::sqlite::database * sqlDb = nullptr);\n bool creatTable() override;\n\npublic:\n bool get...
119
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.35, "nodes": 75, "errors": 0, "source_hash": "d4cfb1c5c111db96c076d6265cdb462df329e6fc8d77bf68c4566636c4056c61", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef QT...
81,058
c
/* Original Author: <NAME> on 11/9/08. Copyright (c) 2008 Rogue Amoeba Software LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
47.33
33
(translation_unit) "/*\nOriginal Author: <NAME> on 11/9/08.\nCopyright (c) 2008 Rogue Amoeba Software LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
150
18
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 47.33, "nodes": 92, "errors": 0, "source_hash": "407b57f06853b2f7bb2326f2594bd6a76e3ff5253f35a4bf9a63afba1217bc1a", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
81,059
c
#ifndef MUPDF_PDF_CMAP_H #define MUPDF_PDF_CMAP_H /* * CMap */ typedef struct pdf_cmap_s pdf_cmap; typedef struct pdf_range_s pdf_range; enum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI }; struct pdf_range_s { unsigned short low; /* Next, we pack 2 fields into the same unsigned short. Top ...
36.1
61
(translation_unit) "#ifndef MUPDF_PDF_CMAP_H\n#define MUPDF_PDF_CMAP_H\n\n/*\n * CMap\n */\n\ntypedef struct pdf_cmap_s pdf_cmap;\ntypedef struct pdf_range_s pdf_range;\n\nenum { PDF_CMAP_SINGLE, PDF_CMAP_RANGE, PDF_CMAP_TABLE, PDF_CMAP_MULTI };\n\nstruct pdf_range_s\n{\n unsigned short low;\n /* Next, we pack 2 fields...
670
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.1, "nodes": 518, "errors": 0, "source_hash": "e517deebf71ee4fbd484e2534f939e6011b3d9d2bdb3d18887e27a0b13d92f54", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81,060
c
// // ServerConfiguration.h // AsyncTCP // // Created by <NAME> on 05/12/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ServerConfiguration: NSObject @property (nonatomic) int port; @property (nonatomic) int maximalConnectionsCount; ...
36.83
24
(translation_unit) "//\n// ServerConfiguration.h\n// AsyncTCP\n//\n// Created by <NAME> on 05/12/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ServerConfiguration: NSObject\n@property (nonatomic) int port;\n@property (nonato...
153
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.83, "nodes": 101, "errors": 0, "source_hash": "8a7524164baf705dae635c6fdc8ced6636556371828563e56ea6b89080913d7e", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
81,061
c
/** * * \copyright * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license */ #include <string> namespace MeshLib { class Mesh;...
26.41
32
(translation_unit) "/**\n *\n * \copyright\n * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/project/license\n */\n\n#include <string>\n\n...
73
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 26.41, "nodes": 37, "errors": 0, "source_hash": "e6971cd872ed18173690384551abc33cc3ce7e587d609a48f05e675287bd51ab", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
81,062
c
// // UIBarButtonItem+AKAIBBindingProperties_titleBinding.h // AKABeacon // // Created by <NAME> on 15.09.16. // Copyright © 2016 <NAME> & AKA Sarl. All rights reserved. // @import UIKit.UIBarButtonItem; IB_DESIGNABLE @interface UIBarButtonItem (AKAIBBindingProperties_titleBinding) @property(nonatomic, nullable...
27.08
13
(translation_unit) "//\n// UIBarButtonItem+AKAIBBindingProperties_titleBinding.h\n// AKABeacon\n//\n// Created by <NAME> on 15.09.16.\n// Copyright © 2016 <NAME> & AKA Sarl. All rights reserved.\n//\n\n@import UIKit.UIBarButtonItem;\n\n\nIB_DESIGNABLE\n@interface UIBarButtonItem (AKAIBBindingProperties_titleBinding...
51
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.08, "nodes": 34, "errors": 0, "source_hash": "ab7f8610e86bd863ea3dad7cb75657f78bd2c5ee849a4da12a223299bf88414d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
81,063
c
/* A test for keywords-> accept */ void main(void){ int i; int j; int k; i=0; j=1; k=0; while(k<10) { if(i<j) i=i+1; else j=k+1; k=k+1; } return; }
8.15
20
(translation_unit) "/* A test for keywords-> accept */\n\nvoid main(void){\n int i;\nint j;\nint k;\n i=0;\n j=1;\n \n k=0;\n while(k<10)\n { \n if(i<j)\n i=i+1;\n else \n j=k+1;\n k=k+1;\n \n }\n return;\n} \n" (comment) "/* A test for keywords-> accept */" (function_definition) "void main(void){\...
97
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 8.15, "nodes": 63, "errors": 0, "source_hash": "df50921a7f7de6244cd478a9de4de2c27461ad582538281f4ec557bc5e22e644", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
81,064
c
#ifndef GWU22PC_H #define GWU22PC_H #include "lib/app.h" #include "lib/timef.h" #include "lib/acp/main.h" #include "lib/acp/app.h" #include "lib/udp.h" #include "lib/tsv.h" #include "lib/lcorrection.h" #include "lib/device/dht22.h" #include "lib/filter/common.h" #define APP_NAME gwu22pc #define APP_NAME_STR TOSTRING...
25.16
63
(translation_unit) "#ifndef GWU22PC_H\n#define GWU22PC_H\n\n#include "lib/app.h"\n#include "lib/timef.h"\n#include "lib/acp/main.h"\n#include "lib/acp/app.h"\n#include "lib/udp.h"\n#include "lib/tsv.h"\n#include "lib/lcorrection.h"\n#include "lib/device/dht22.h"\n#include "lib/filter/common.h"\n\n#define APP_NAME gwu22...
336
2
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 25.16, "nodes": 248, "errors": 0, "source_hash": "5c5becaee07244b80ef8a24ff1716825f2eb45045b6a91596d4cd872cd92a8e9", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,065
c
/* @(#)s_expm1.c 1.5 04/04/22 */ /* * ==================================================== * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. * * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. * ======================...
34.19
207
(translation_unit) "/* @(#)s_expm1.c 1.5 04/04/22 */\n/*\n * ====================================================\n * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.\n *\n * Permission to use, copy, modify, and distribute this\n * software is freely granted, provided that this notice\n * is preserved....
1,064
4
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 34.19, "nodes": 682, "errors": 0, "source_hash": "664d06ae8355a519e56774108b8a9576e2230133f58ffa83fa7fe071fb7fa588", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,066
c
// // ViewController.h // SKCatergoryView // // Created by macApple on 2019/12/18. // Copyright © 2019 KentSun. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.55
11
(translation_unit) "//\n// ViewController.h\n// SKCatergoryView\n//\n// Created by macApple on 2019/12/18.\n// Copyright © 2019 KentSun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.55, "nodes": 11, "errors": 0, "source_hash": "5372365c01554bd0c37ddf149ab696aacde7de4cea6dcf25c4ce9773f8c1bf3c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
81,067
c
#include <mruby-aux/string.h> static mrb_value test_str_drop(mrb_state *mrb, mrb_value self) { mrb_value str; mrb_int off, size; mrb_get_args(mrb, "Sii", &str, &off, &size); return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size)); } void mruby_aux_test_string_init(mrb_state *mrb, struct RClass *tes...
28
14
(translation_unit) "#include <mruby-aux/string.h>\n\nstatic mrb_value\ntest_str_drop(mrb_state *mrb, mrb_value self)\n{\n mrb_value str;\n mrb_int off, size;\n mrb_get_args(mrb, "Sii", &str, &off, &size);\n\n return mrb_obj_value(mrbx_str_drop(mrb, RSTRING(str), off, size));\n}\n\nvoid\nmruby_aux_test_string_init(m...
132
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.0, "nodes": 76, "errors": 0, "source_hash": "c645cd8343efe33137b83fe0c5ad28c10b7b38a4b602c6d595393b5af1b0ea8b", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
81,068
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "eEVM/account.h" #include <nlohmann/json.hpp> namespace eevm { /** * Simple implementation of Account */ class SimpleAccount : public Account { private: Address address = {}; u...
29.47
58
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "eEVM/account.h"\n\n#include <nlohmann/json.hpp>\n\nnamespace eevm\n{\n /**\n * Simple implementation of Account\n */\n class SimpleAccount : public Account\n {\n priv...
534
37
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.47, "nodes": 298, "errors": 0, "source_hash": "f5d5645fade0b9835bc8984c782fa2a28e39be5ea2e964c9a15f3df61390765a", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,069
c
/////////////////////////////////////////////////////////////////////////////// // Copyright <NAME> 2014. // Distributed under the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef _FPU_LEGENDRE_2014_04_30_H_ #define _FPU...
42.49
39
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// Copyright <NAME> 2014.\n// Distributed under the Boost Software License,\n// Version 1.0. (See accompanying file LICENSE_1_0.txt\n// or copy at http://www.boost.org/LICENSE_1_0.txt)\n//\n\n#ifndef _FPU_LEGENDRE_2...
268
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 42.49, "nodes": 176, "errors": 0, "source_hash": "79ab2193cd056aefa7ef32aacc4d097a50017665ed7e19cff395e40fa9364f09", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
81,070
c
/* * Copyright (C) 2010 <NAME> <<EMAIL>>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or any later version. * * This program is distributed in th...
30.39
96
(translation_unit) "/*\n * Copyright (C) 2010 <NAME> <<EMAIL>>.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of the\n * License, or any later version.\n *\n * This ...
418
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 30.39, "nodes": 273, "errors": 0, "source_hash": "9aa053990a48eb26c9c240c43e6b489ff8432085f2d634899b682cfcdb337f06", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "FILE...
81,071
c
/* * decryptor500.c * * Created on: Jun 21, 2012 * Author: MLISKOV */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gmp.h> int unhex(char h) { if ('0' <= h && h <= '9') return (h - '0'); else if ('a' <= h && h <= 'f') return (10+h-'a'); else return (10+h-'A'); } ...
20.93
74
(translation_unit) "/* \n * decryptor500.c \n * \n * Created on: Jun 21, 2012 \n * Author: MLISKOV \n */ \n \n#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n#include <gmp.h> \n \nint unhex(char h) { \n if ('0' <= h && h <= '9') return (h - '0'); \n else if ('a' <= h && h <= 'f') return (10+h-'a'...
582
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 20.93, "nodes": 365, "errors": 0, "source_hash": "d233bfa7690f4640064151c4ee87843412ba4f8b6ae6ff9cdf9c4a14f9ca29c9", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
81,072
c
#ifndef LOGINWIDGET_H #define LOGINWIDGET_H #include <QWidget> #include <vector> #include "io/data_repo.h" namespace Ui { class LoginWidget; } class LoginWidget : public QWidget { Q_OBJECT public: explicit LoginWidget(QWidget *parent = nullptr); ~LoginWidget(); private slots: void on_button_login_c...
19.23
22
(translation_unit) "#ifndef LOGINWIDGET_H\n#define LOGINWIDGET_H\n\n#include <QWidget>\n#include <vector>\n#include "io/data_repo.h"\n\nnamespace Ui {\nclass LoginWidget;\n}\n\nclass LoginWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit LoginWidget(QWidget *parent = nullptr);\n ~LoginWidget();\n\npr...
115
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.23, "nodes": 71, "errors": 0, "source_hash": "22aad7881e76c80a3f25c35fbf634201e63e995904d47f44df1843a1f88959bb", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,073
c
#ifndef UTIL_H_INCLUDED #define UTIL_H_INCLUDED #include "response.h" #include <vector> bool isNumberValid(int number); int numberToIndex(int number); bool isResponseValid(Response response); bool isResponseFinal(Response response); Response findResponse(int number, int guess); std::vector<int> findDigits(int numbe...
32.1
20
(translation_unit) "#ifndef UTIL_H_INCLUDED\n#define UTIL_H_INCLUDED\n\n#include "response.h"\n#include <vector>\n\nbool isNumberValid(int number);\nint numberToIndex(int number);\n\nbool isResponseValid(Response response);\nbool isResponseFinal(Response response);\nResponse findResponse(int number, int guess);\n\nstd:...
209
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.1, "nodes": 149, "errors": 0, "source_hash": "fd659cc3b27eeeb549fae623343bff6ddaf62d55c67e222053e9484b2687f0cc", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,074
c
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2013-2016 the Civetweb developers * Copyright (c) 2004-2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction...
32.55
131
(translation_unit) "/* \n * Copyright (c) 2016 <NAME>\n * Copyright (c) 2013-2016 the Civetweb developers\n * Copyright (c) 2004-2013 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the S...
779
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 32.55, "nodes": 437, "errors": 0, "source_hash": "2d6a457b4406a7d98a9f45154598c4dc9b924179059407cc6a463280a6b5c95e", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
81,075
c
void yasm_lc3b__parse_insn( int num_info, int *num_operands , int *operands, int op) { int found = 0; int i; for (; num_info>0 && !found; num_info--) { int mismatch = 0; for(i = 0;op && (i<*num_operands)&& !mismatch; i++) { if (!(int)(operands[i] & 0x1)) mismatch = 1; if (...
19.79
19
(translation_unit) "void yasm_lc3b__parse_insn( int num_info, int *num_operands\n , int *operands, int op)\n{\n int found = 0;\n int i;\n for (; num_info>0 && !found; num_info--)\n {\n int mismatch = 0;\n for(i = 0;op && (i<*num_operands)&& !mismatch; i++)\n {\n if (!(int)(operands[i] & 0x1))\n ...
154
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.79, "nodes": 103, "errors": 0, "source_hash": "9ab0d4e56bab9f852f305798d9e44c20b9de5e3e7d7ceee399403045c1c29d37", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "v...
81,076
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double ResultVersionNumber; FOUNDATION_EXPORT const unsigned char ResultVersionString[];
32
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double ResultVersionNumber;\nFOUNDATION_EXPORT const unsigned char ResultVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_EXPORT double R...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.0, "nodes": 15, "errors": 0, "source_hash": "a0fe233f39fa6e0d3535773a88cc14929415094dfab561b803617bcf123bbf5c", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
81,077
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
27.73
159
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
1,169
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 27.73, "nodes": 681, "errors": 0, "source_hash": "14cd9eee380e8cec27fb821f6d8aadc9c60624003809cf189caa695e94264bee", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
81,078
c
// // HTTPCode.h // // Created by <NAME> on 5/13/15. // Copyright (c) 2012 Keen Labs. All rights reserved. // // Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C // under MIT license: http://www.opensource.org/licenses/mit-license.php // Status codes taken from: http://en.wikipe...
32.46
134
(translation_unit) "//\n// HTTPCode.h\n//\n// Created by <NAME> on 5/13/15.\n// Copyright (c) 2012 Keen Labs. All rights reserved.\n//\n// Most code taken from https://github.com/rafiki270/HTTP-Status-Codes-for-Objective-C\n// under MIT license: http://www.opensource.org/licenses/mit-license.php\n// Status codes ...
610
12
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 32.46, "nodes": 472, "errors": 0, "source_hash": "98c608a5074f34991485e61c6c2fcc98d8353c5badf6d4d45e60398471706cb8", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
81,079
c
// // rulerview.h // MelobaseStation // // Created by <NAME> on 2015-12-15. // Copyright © 2015-2019 <NAME>. All rights reserved. // #ifndef RULERVIEW_H #define RULERVIEW_H #include <view.h> class RulerView : public MDStudio::View { float _margin; int _min; unsigned int _nbDivisions; unsigne...
23.2
30
(translation_unit) "//\n// rulerview.h\n// MelobaseStation\n//\n// Created by <NAME> on 2015-12-15.\n// Copyright © 2015-2019 <NAME>. All rights reserved.\n//\n\n#ifndef RULERVIEW_H\n#define RULERVIEW_H\n\n#include <view.h>\n\nclass RulerView : public MDStudio::View {\n \n float _margin;\n int _min;\n u...
169
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.2, "nodes": 115, "errors": 0, "source_hash": "a2d696803c3141d071e270d97e2651f5a2d80c39fb97b98621d258fdf1765af3", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef R...
81,080
c
#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h #define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h // -*- C++ -*- // // Package: SiStripApvGainCalculator // Class: SiStripApvGainCalculator // /**\class SiStripApvGainCalculator SiStripApvGainCalculator.cc CalibTracker/Si...
31.73
37
(translation_unit) "#ifndef CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n#define CalibTracker_SiStripChannelGain_SiStripGainRandomCalculator_h\n// -*- C++ -*-\n//\n// Package: SiStripApvGainCalculator\n// Class: SiStripApvGainCalculator\n// \n/**\class SiStripApvGainCalculator SiStripApvGainCa...
174
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.73, "nodes": 95, "errors": 0, "source_hash": "3f38026171bd8f630dca3b28b6048925a153516ef93901dfa87e1de8536d715e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,081
c
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within this package. */ #ifndef _INC_WFEXT #define _INC_WFEXT #ifdef __cplusplus extern "C" { #endif #define MENU_TEXT_LEN 40 #d...
27.21
145
(translation_unit) "/**\n * This file has no copyright assigned and is placed in the Public Domain.\n * This file is part of the w64 mingw-runtime package.\n * No warranty is given; refer to the file DISCLAIMER within this package.\n */\n#ifndef _INC_WFEXT\n#define _INC_WFEXT\n\n#ifdef __cplusplus\nextern "C" {\n#endif...
695
6
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 27.21, "nodes": 547, "errors": 0, "source_hash": "ffd24a5092d1d5facbd5764e2f0b74bad979f72b4dcdd7a29af860119309bd8e", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
81,082
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "TVMusicMPObjectMediaItem.h" @class MPModelTVEpisode; @interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem { } - (id)mediaItemMetadataForProperty:(id)arg1; // IMP=...
36.25
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "TVMusicMPObjectMediaItem.h"\n\n@class MPModelTVEpisode;\n\n@interface TVMusicMPTVEpisodeMediaItem : TVMusicMPObjectMediaItem\n{\n}\n\n- (id)mediaItemMet...
118
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.25, "nodes": 66, "errors": 0, "source_hash": "0e172b50fda5967f3d21db819daa7275253609a176d0f84b6673fc3604229026", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
81,083
c
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // 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 l...
33.94
34
(translation_unit) "// Copyright (C) 2019-2020 Zilliz. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unle...
165
8
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.94, "nodes": 95, "errors": 0, "source_hash": "55ab91e8591e7c82b3bcb54a900ecaadf3b232ea9c0967496447f546837bdeb2", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
81,084
c
#ifndef CONTEXT_H_ #define CONTEXT_H_ struct context; struct context *ContextCreate(const char *, const char *, const char *); void ContextFree(struct context *); const char *ContextAuth(struct context *ctx); int ContextEmpty(struct context *ctx); double ContextGetAltitude(struct context *, double, double); #endif //...
35.67
9
(translation_unit) "#ifndef CONTEXT_H_\n#define CONTEXT_H_\n\nstruct context;\nstruct context *ContextCreate(const char *, const char *, const char *);\nvoid ContextFree(struct context *);\nconst char *ContextAuth(struct context *ctx);\nint ContextEmpty(struct context *ctx);\ndouble ContextGetAltitude(struct context *,...
113
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.67, "nodes": 83, "errors": 0, "source_hash": "4588f2f32421b54a35afd4d2b0b829037fc315c128e14b2af7c5c157cd2752bf", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
81,085
c
// Time: O(m + n) // Space: O(1) /** * Definition for singly-linked list. * struct ListNode{ * int val; * struct ListNode *next; * }; */ struct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){ if(l1 == NULL) return l2; if(l2 == NULL) return l1; struct ListNode *pa, *pb, *pc, *...
16.32
37
(translation_unit) "// Time: O(m + n)\n// Space: O(1)\n\n/**\n * Definition for singly-linked list.\n * struct ListNode{\n * int val;\n * struct ListNode *next;\n * };\n */\nstruct ListNode* mergeTwoLists(struct ListNode* l1, strust ListNode* l2){\n if(l1 == NULL) return l2;\n if(l2 == NULL) return l1;\n ...
253
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.32, "nodes": 163, "errors": 0, "source_hash": "0bda37681517a1f1e9ab116caf2e960cb98244d40ccef64377ffc29c28edb909", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
81,086
c
/* * fs/partitions/msdos.h */ #define MSDOS_LABEL_MAGIC 0xAA55 int msdos_partition(struct parsed_partitions *state);
23.2
5
(translation_unit) "/*\n * fs/partitions/msdos.h\n */\n\n#define MSDOS_LABEL_MAGIC 0xAA55\n\nint msdos_partition(struct parsed_partitions *state);\n" (comment) "/*\n * fs/partitions/msdos.h\n */" (preproc_def) "#define MSDOS_LABEL_MAGIC 0xAA55\n" (#define) "#define" (identifier) "MSDOS_LABEL_MAGIC" ...
21
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.2, "nodes": 16, "errors": 0, "source_hash": "5c02690f42baa411ecd307f2eb2a6c7c0a218d63db65c565c780702dd5b6ad84", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MSDOS...
81,087
c
#pragma once #include "Cpp/Features.h" #include "Cpp/Warnings.h" #include "Meta/TypeList.h" INTRA_PUSH_DISABLE_REDUNDANT_WARNINGS INTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED namespace Intra { namespace Meta { template<typename... Args> struct Tuple; namespace D { template<int...> struct index_t...
35.79
72
(translation_unit) "ragma once\n\n#include "Cpp/Features.h"\n#include "Cpp/Warnings.h"\n\n#include "Meta/TypeList.h"\n\nINTRA_PUSH_DISABLE_REDUNDANT_WARNINGS\nINTRA_WARNING_DISABLE_COPY_MOVE_CONSTRUCT_IMPLICITLY_DELETED\n\nnamespace Intra { namespace Meta {\n\ntemplate<typename... Args> struct Tuple;\n\n\nnamespace D {...
1,051
96
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 35.79, "nodes": 719, "errors": 0, "source_hash": "ea6b49441ead260f48897b9e196db23e8d2a370bc97afd1c9899e48cd19f9a1c", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
81,088
c
#pragma once #include "CoreDEF.h" namespace bv { // *********************** // enum RenderingMode { RM_RenderRealTime, RM_RenderOffscreen, RM_Total }; // *********************** // class TimerMode { private: unsigned int m_frameNumber; unsigned long ...
24.19
58
(translation_unit) "#pragma once \n \n#include "CoreDEF.h" \n \n \n \nnamespace bv \n{ \n \n \n// *********************** \n// \nenum RenderingMode \n{ \n RM_RenderRealTime, \n RM_RenderOffscreen, \n \n RM_Total \n}; \n \n \n// *********************** \n// \nclass TimerMode \n{ \nprivate: \n \n unsigned int...
233
6
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.19, "nodes": 133, "errors": 0, "source_hash": "25311dd6fe243d4b1e1bdbf223a6ad2b350bcc0ac95b9ca58328a27f9b02c778", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
81,089
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_YJKit_TestsVersionString[];
37
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_YJKit_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_YJKit_TestsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDA...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.0, "nodes": 15, "errors": 0, "source_hash": "914d7bd1bcbf44483b38adabbcec4415cfc2bdcc33a769cbc8330727c675a35b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
81,090
c
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* always defined to indicate that i18n is enabled */ #define ENABLE_NLS 1 /* The prefix for our gettext translation domains. */ #define GETTEXT_PACKAGE "gtk30" /* Disable deprecation warnings f...
39.84
184
(translation_unit) "/* config.h. Generated from config.h.in by configure. */\n/* config.h.in. Generated from configure.ac by autoheader. */\n\n/* always defined to indicate that i18n is enabled */\n#define ENABLE_NLS 1\n\n/* The prefix for our gettext translation domains. */\n#define GETTEXT_PACKAGE "gtk30"\n\n/* D...
390
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 39.84, "nodes": 280, "errors": 0, "source_hash": "9f80b3d37dcea6b832b9976d6f690a587c520e8603623e7af9bc2538f1868901", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
81,091
c
/** @file @brief セクション初期化 @date 2007.07.14 @author <NAME> */ extern int *BSS_START; extern int *BSS_END; extern int *DATAROM_START; extern int *DATARAM_START; extern int *DATARAM_END; void init_sect(void) { int *s, *d; for(d=BSS_START; d<BSS_END; d++) { *d = 0; } for(s=DATAROM_START, d=DATARAM_ST...
17.15
20
(translation_unit) "/** @file\n @brief セクション初期化\n\n @date 2007.07.14\n @author <NAME>\n*/\n\nextern int *BSS_START;\nextern int *BSS_END;\nextern int *DATAROM_START;\nextern int *DATARAM_START;\nextern int *DATARAM_END;\n\nvoid init_sect(void)\n{\n int *s, *d;\n\n for(d=BSS_START; d<BSS_END; d++) {\n *d = 0;\...
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.15, "nodes": 90, "errors": 0, "source_hash": "7ce38493880810b31af3ced47c6f0c653a6106f8bfbdd8a7ac77c39d31fd54e3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "START;\nex...
81,092
c
#pragma once #include "Type.h" namespace BinSearch { namespace Details { // Differences with original algorithm // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral) // 2) swap > and < operators (cost neutral) // 3) at the end subtract from n-1 template <typename T> struct AlgoScalar...
21.62
47
(translation_unit) "#pragma once\n\n#include "Type.h"\n\nnamespace BinSearch {\nnamespace Details {\n\n\n// Differences with original algorithm\n // 1) use reverse pointers, i.e. *(a-m) instead of *(a+m) (cost neutral)\n // 2) swap > and < operators (cost neutral)\n // 3) at the end subtract from n-1\ntemplat...
301
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 21.62, "nodes": 201, "errors": 0, "source_hash": "3fafd03ade6e101a86b1d9f0d4e945dbdbf09b520e1bdec3ae20646493bfecaa", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,093
c
#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_ #define VALHALLA_SIF_MOTORSCOOTERCOST_H_ #include <cstdint> #include <valhalla/sif/dynamiccost.h> #include <boost/property_tree/ptree.hpp> namespace valhalla { namespace sif { /** * Create motor scooter cost method. This is derived from auto costing and * uses the same rul...
32.12
16
(translation_unit) "#ifndef VALHALLA_SIF_MOTORSCOOTERCOST_H_\n#define VALHALLA_SIF_MOTORSCOOTERCOST_H_\n\n#include <cstdint>\n\n#include <valhalla/sif/dynamiccost.h>\n#include <boost/property_tree/ptree.hpp>\n\nnamespace valhalla {\nnamespace sif {\n\n/**\n * Create motor scooter cost method. This is derived from auto ...
52
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.12, "nodes": 33, "errors": 0, "source_hash": "10d75cff87200eeb0226628cd11c171c73d053b203a91e8c6948ec826048d1b4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,094
c
// // Bridging-Header.h // PinkBook // // Created by 徐浩博 on 2021/10/5. // #ifndef Bridging_Header_h #define Bridging_Header_h #import "MBProgressHUD.h" #import <AMapFoundationKit/AMapFoundationKit.h> #import <AMapLocationKit/AMapLocationKit.h> #import <AMapSearchKit/AMapSearchKit.h> #import "MJRefresh.h" #import "...
24.24
17
(translation_unit) "//\n// Bridging-Header.h\n// PinkBook\n//\n// Created by 徐浩博 on 2021/10/5.\n//\n\n#ifndef Bridging_Header_h\n#define Bridging_Header_h\n\n#import "MBProgressHUD.h"\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import <AMapLocationKit/AMapLocationKit.h>\n#import <AMapSearchKit/AMapSearchKit.h...
39
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.24, "nodes": 31, "errors": 0, "source_hash": "c4145d4cb40b54f007b654fe8fa8e2b2a87d60a57e5639e06a1538fc8697a887", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f Bridgi...
81,095
c
#ifndef EZHNO_AST_FUNCTION_H #define EZHNO_AST_FUNCTION_H #include "ezhno/AST/Decl.h" namespace ezhno { class Function : Decl { Type& T; Name& N; Arg* Args; unsigned LenOfArgs; Body& B; public: }; } #endif /* EZHNO_AST_FUNCTION_H */
16.36
14
(translation_unit) "#ifndef EZHNO_AST_FUNCTION_H\n#define EZHNO_AST_FUNCTION_H\n#include "ezhno/AST/Decl.h"\nnamespace ezhno {\nclass Function : Decl {\n Type& T;\n Name& N;\n Arg* Args;\n unsigned LenOfArgs;\n Body& B;\npublic:\n};\n}\n#endif /* EZHNO_AST_FUNCTION_H */\n" (preproc_ifdef) "#ifndef EZHNO_AST_FUNC...
66
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.36, "nodes": 36, "errors": 0, "source_hash": "fe13caa4fc3881a138dc3a0fd49b13213504944ec4fd89ee4d21b18b3078503d", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,096
c
#pragma once #include "Tiger/Core.h" #include "Event.h" namespace Tiger { class TIGER_API WindowResizedEvent : public Tiger::Event { public: WindowResizedEvent(int width, int height) : width(width), height(height) {} ~WindowResizedEvent() = default; inline int getWidth() const { return width; } inline ...
34.23
26
(translation_unit) "#pragma once\n\n#include "Tiger/Core.h"\n\n#include "Event.h"\n\nnamespace Tiger {\n\n class TIGER_API WindowResizedEvent : public Tiger::Event {\n public:\n WindowResizedEvent(int width, int height) : width(width), height(height) {}\n ~WindowResizedEvent() = default;\n \n inline int getWidth() ...
298
14
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 34.23, "nodes": 160, "errors": 0, "source_hash": "252d6bac33bc6589dfb2b139b94841f1e4d6e074ee029dd8ccd79f42165bb25d", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
81,097
c
//------------------------------------------------------------------------------ // Copyright (c) 2016-2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, i...
29.53
114
(translation_unit) "//------------------------------------------------------------------------------\n// Copyright (c) 2016-2019 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Softwa...
730
30
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 29.53, "nodes": 392, "errors": 0, "source_hash": "75cd7a890e1f7623ff47beee6ea168f0f0bdb6cfa4bebae9564bb0bbbf138652", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
81,098
c
/** @file Guid of a NV Variable which store the information about the FD/HD/CD/NET/BEV order. Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__ #define __LEGACY_DEV_ORDER_VARIABLE_GUID_H__ /// /// ...
34.21
28
(translation_unit) "/** @file\n Guid of a NV Variable which store the information about the\n FD/HD/CD/NET/BEV order.\n\nCopyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#ifndef __LEGACY_DEV_ORDER_VARIABLE_GUID_H__\n#define __LEGACY_DEV_ORD...
66
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.21, "nodes": 46, "errors": 0, "source_hash": "26c636321f229e389a1e96f92d78fc99fc1a53a56b1ede61326168d647815d5f", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
81,099