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
// // ClassHeader.h // MVCDemo // // Created by 浮生似梦、Dream on 2018/6/21. // Copyright © 2018年 浮生似梦、Dream. All rights reserved. // #import "RGUIViewDefine.h" #import "RGOtherHeader.h" #import "RGColorDefine.h" #import "RGStringHeader.h" #import "RGCurrentAPPCommonHeader.h"
20.38
13
(translation_unit) "//\n// ClassHeader.h\n// MVCDemo\n//\n// Created by 浮生似梦、Dream on 2018/6/21.\n// Copyright © 2018年 浮生似梦、Dream. All rights reserved.\n//\n\n\n\n#import "RGUIViewDefine.h"\n#import "RGOtherHeader.h"\n#import "RGColorDefine.h"\n#import "RGStringHeader.h"\n#import "RGCurrentAPPCommonHeader.h"\n" (...
23
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.38, "nodes": 15, "errors": 0, "source_hash": "460d76ed73695c1d6069a2bddf94f608d63a50b3f901b1cd7fc9d28275a46870", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": ".h\"\n#imp...
1,400
c
/* Large requests are passed directly to the chunk allocator. * Small requests are handled by power of two sized memory pools. * Every allocation has a 16 byte header and allocations are 16 byte aligned. * Everything is protected by a single mutex. * For single threaded backends this does not matter. * Usually for...
33.05
131
(translation_unit) "/* Large requests are passed directly to the chunk allocator.\n * Small requests are handled by power of two sized memory pools.\n * Every allocation has a 16 byte header and allocations are 16 byte aligned.\n * Everything is protected by a single mutex.\n * For single threaded backends this does no...
1,269
3
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 33.05, "nodes": 817, "errors": 0, "source_hash": "699f9a7311cb4bb4711c212a5919b77f3b60b1a1b576674ad2bd9cdd108e66da", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,401
c
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
34.23
69
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-present Facebook, Inc. (http://www.facebo...
186
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 34.23, "nodes": 135, "errors": 0, "source_hash": "b2f1b86eb8faf112a8976c2dfb61689ae74c014e462a14d657715a7e7dc80979", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,402
c
#ifndef STINGRAYKIT_DECIMAL_H #define STINGRAYKIT_DECIMAL_H // Copyright (c) 2011 - 2019, GS Group, https://github.com/GSGroup // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, // provided that the above copyright notice and this permission notic...
42.69
48
(translation_unit) "#ifndef STINGRAYKIT_DECIMAL_H\n#define STINGRAYKIT_DECIMAL_H\n\n// Copyright (c) 2011 - 2019, GS Group, https://github.com/GSGroup\n// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,\n// provided that the above copyright notice ...
446
28
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 42.69, "nodes": 255, "errors": 0, "source_hash": "303de37c554db6e1a030fea9166589fed8f825b90c8927859f4b8761e741538e", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,403
c
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2020, Open Mobile Platform LLC */ #ifndef PLUGIN_TA_H #define PLUGIN_TA_H /* * This UUID is generated with uuidgen * the ITU-T UUID generator at http://www.itu.int/ITU-T/asn1/uuid.html */ //0183a595-0fd1-4037-82b0-1fc25c647744 #define PLUGIN_TA_UUID ...
35.45
31
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/*\n * Copyright (c) 2020, Open Mobile Platform LLC\n */\n\n#ifndef PLUGIN_TA_H\n#define PLUGIN_TA_H\n\n/*\n * This UUID is generated with uuidgen\n * the ITU-T UUID generator at http://www.itu.int/ITU-T/asn1/uuid.html\n */\n//0183a595-0fd1-4037-82b0-1fc2...
73
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.45, "nodes": 55, "errors": 0, "source_hash": "7dd28231947dc16856a0a2a2481879e9f9e1395e8e98348b180a2b4583b2f045", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,404
c
#pragma once #include <objidl.h> #include <exdisp.h> class CExternalDispatch : public IDispatch { public: //BOOL CanSuspend(); CExternalDispatch(); //////////////////////////////////////////////////////////////////// // IUnKnown STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj); STDMETHOD_(ULONG...
35.27
26
(translation_unit) "#pragma once\n\n#include <objidl.h>\n#include <exdisp.h>\nclass CExternalDispatch : public IDispatch\n{\n\npublic:\n //BOOL CanSuspend();\n CExternalDispatch();\n\n ////////////////////////////////////////////////////////////////////\n // IUnKnown\n STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOI...
245
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.27, "nodes": 162, "errors": 0, "source_hash": "1b484635b7be0dd6c352030ada87689b1ae649a4e5bf9701596ba4d4d1143f71", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,405
c
#include <d4est_gradient.h> #include <pXest.h> #include <d4est_mesh.h> #include <d4est_geometry.h> #include <d4est_xyz_functions_ext.h> #include <d4est_quadrature.h> #include <d4est_quadrature_lobatto.h> #include <d4est_util.h> #include <sc_reduce.h> #include <d4est_linalg.h> void d4est_gradient ( d4est_operators_t* ...
25.85
115
(translation_unit) "#include <d4est_gradient.h>\n#include <pXest.h>\n#include <d4est_mesh.h>\n#include <d4est_geometry.h>\n#include <d4est_xyz_functions_ext.h>\n#include <d4est_quadrature.h>\n#include <d4est_quadrature_lobatto.h>\n#include <d4est_util.h>\n#include <sc_reduce.h>\n#include <d4est_linalg.h>\n\nvoid\nd4est...
655
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 25.85, "nodes": 418, "errors": 0, "source_hash": "670d3e396750c74793f076ec6afc84c2af7d6d210c59b17d9b03fe51b8707a66", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,406
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UITableView.h" @class QQHistorySearchModel, UILongPressGestureRecognizer; @interface QQHistroySearchTableView : UITableView { struct CGPoint _longPressPoint; UILongPres...
34.53
30
(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 "UITableView.h"\n\n@class QQHistorySearchModel, UILongPressGestureRecognizer;\n\n@interface QQHistroySearchTableView : UITableView\n{\n struct CGPoint...
276
20
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.53, "nodes": 170, "errors": 0, "source_hash": "baed84d9400413860219bc6946d2c3dc7f6e478a050cec0c59075be5e4c2a97f", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
1,407
c
/****************************************************************************** STDR Simulator - Simple Two DImensional Robot Simulator Copyright (C) 2013 STDR Simulator 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 ...
33.01
130
(translation_unit) "/******************************************************************************\n STDR Simulator - Simple Two DImensional Robot Simulator\n Copyright (C) 2013 STDR Simulator\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public ...
273
10
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 33.01, "nodes": 155, "errors": 0, "source_hash": "c62a146f6a83d3daa3ccf90a8f7657279caded1165959bca08fcdeb15a0fb367", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,408
c
#ifndef ILLUMINATE_D3D12_WIN32_H #define ILLUMINATE_D3D12_WIN32_H #include <cstdint> #include <string> #include <functional> #include <Windows.h> namespace illuminate { using WindowCallback = LRESULT (*)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); class Window { public: bool Init(const char* const title, con...
26.33
21
(translation_unit) "#ifndef ILLUMINATE_D3D12_WIN32_H\n#define ILLUMINATE_D3D12_WIN32_H\n#include <cstdint>\n#include <string>\n#include <functional>\n#include <Windows.h>\nnamespace illuminate {\nusing WindowCallback = LRESULT (*)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);\nclass Window {\n public:\n bool Ini...
165
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.33, "nodes": 100, "errors": 0, "source_hash": "3e9bd62ef74e757ded5b62eacfe194542319af36076106fa6f28187ec45e9a20", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ILLUMIN...
1,409
c
#pragma once #ifndef Customeraccount_H #define Customeraccount_H #include"AccountManager.h" /*******************CUSTOMER ACCOUNTS CLASS**********************/ class Customeraccount :public AccountManager { public: void customerdisplay(); void customerupdate(); void customeraccounts_choice(); }; #endif
22.54
13
(translation_unit) "#pragma once\n#ifndef Customeraccount_H\n#define Customeraccount_H\n\n#include"AccountManager.h"\n\n/*******************CUSTOMER ACCOUNTS CLASS**********************/\n\nclass Customeraccount :public AccountManager\n{\npublic:\n void customerdisplay();\n void customerupdate();\n void customeraccount...
57
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.54, "nodes": 33, "errors": 0, "source_hash": "f0d2ced44f3099722b0354a9f62e655990f3b198f845fafaea80f974f30dac5e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,410
c
#include "holberton.h" /** * main - PrintHolberton * Return: 0 Always */ int main(void) { char hol[] = "Holberton\n"; int i; i = 0; while (hol[i]) { _putchar(hol[i++]); } return (0); }
11.31
16
(translation_unit) "#include "holberton.h"\n/**\n * main - PrintHolberton\n * Return: 0 Always\n */\nint main(void)\n{\n char hol[] = "Holberton\n";\n int i;\n\n i = 0;\n while (hol[i])\n {\n _putchar(hol[i++]);\n }\n return (0);\n}\n" (preproc_include) "#include "holberton.h"\n" (#include) "#include" (strin...
78
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 11.31, "nodes": 41, "errors": 0, "source_hash": "6d0c4b58ad8b53c3dfc3f2961b33efd9836246c23497d73bb67c26f3cf3aa5a6", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,411
c
/****************************************************************************** FileName [ rnGen.h ] PackageName [ util ] Synopsis [ Random number generator ] Author [ Chung-Yang (<NAME> ] Copyright [ Copyleft(c) 2007-present LaDs(III), GIEE, NTU, Taiwan ] ***********************************...
31.76
25
(translation_unit) "/******************************************************************************\n FileName [ rnGen.h ]\n PackageName [ util ]\n Synopsis [ Random number generator ]\n Author [ Chung-Yang (<NAME> ]\n Copyright [ Copyleft(c) 2007-present LaDs(III), GIEE, NTU, Taiwan ]\n*********...
135
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.76, "nodes": 80, "errors": 0, "source_hash": "9d167dbef338cc65fa4d15e339ff8be837fa45b353f4afa37e4a0831bc935f5c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,412
c
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
34.05
57
(translation_unit) "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by...
354
24
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.05, "nodes": 194, "errors": 0, "source_hash": "c52308848e9ede4c653effc860e7cbfffd9ea7f860c5660e234340978a7a5939", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,413
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CSSParserFastPaths_h #define CSSParserFastPaths_h #include "core/CSSPropertyNames.h" #include "core/CSSValueKeywords.h" #include "platform/heap/H...
40.64
22
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CSSParserFastPaths_h\n#define CSSParserFastPaths_h\n\n#include "core/CSSPropertyNames.h"\n#include "core/CSSValueKeywords....
114
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 40.64, "nodes": 58, "errors": 0, "source_hash": "dc5ee5e748a2676afacc4a5792d1fda9fb55d25fe246cb782388a4b0bd995ed6", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,414
c
/* * Copyright (C) <NAME> * Copyright (C) Rap, Inc. */ #include <rap_config.h> #include <rap_core.h> #include <rap_event.h> #if (RAP_TEST_BUILD_SOLARIS_SENDFILEV) /* Solaris declarations */ typedef struct sendfilevec { int sfv_fd; u_int sfv_flag; off_t sfv_off; size_t sfv_len; } sendf...
31.63
171
(translation_unit) "/*\n * Copyright (C) <NAME>\n * Copyright (C) Rap, Inc.\n */\n\n\n#include <rap_config.h>\n#include <rap_core.h>\n#include <rap_event.h>\n\n\n#if (RAP_TEST_BUILD_SOLARIS_SENDFILEV)\n\n/* Solaris declarations */\n\ntypedef struct sendfilevec {\n int sfv_fd;\n u_int sfv_flag;\n off_t ...
1,294
0
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 31.63, "nodes": 807, "errors": 0, "source_hash": "87105b09223cf067522dd2f0ac938ed6e3f0c092fd3c4603b864e5d4a2a6a0d3", "categorized_nodes": 612}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,415
c
/* launch-program.h Copyright 2015 - 2016 Tideworks Technology Author: <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
37.58
62
(translation_unit) "/* launch-program.h\n\nCopyright 2015 - 2016 Tideworks Technology\nAuthor: <NAME>\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENS...
472
28
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 37.58, "nodes": 295, "errors": 0, "source_hash": "2732ad83429923501a78711bf192e024e78631387a2c328c4d31651269f38270", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,416
c
Name: define.h Type: file Size: 2571 Last-Modified: '2016-05-13T04:52:57Z' SHA-1: D9FA2E0A77238E7243567C99606D66B381DF0B00 Description: null
22.5
6
(translation_unit) "Name: define.h\nType: file\nSize: 2571\nLast-Modified: '2016-05-13T04:52:57Z'\nSHA-1: D9FA2E0A77238E7243567C99606D66B381DF0B00\nDescription: null\n" (labeled_statement) "Name: define.h\nType: file\nSize: 2571\nLast-Modified: '2016-05-13T04:52:57Z'\nSHA-1: D9FA2E0A77238E7243567C99606D66B381DF0B00\n...
57
4
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.5, "nodes": 46, "errors": 0, "source_hash": "7938971662537035ce0f04b02a0d6795d51b54fdc402289751e94d6b80de8b1d", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "Name: ...
1,417
c
extern zend_class_entry *phalcon_flashinterface_ce; ZEPHIR_INIT_CLASS(Phalcon_FlashInterface); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flashinterface_error, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0) #else ZEND_ARG_INFO(0, message) #endif ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_IN...
33.92
50
(translation_unit) "extern zend_class_entry *phalcon_flashinterface_ce;\n\nZEPHIR_INIT_CLASS(Phalcon_FlashInterface);\n\nZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flashinterface_error, 0, 0, 1)\n#if PHP_VERSION_ID >= 70200\n ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)\n#else\n ZEND_ARG_INFO(0, message)\n#endif\nZEND_END_...
398
1
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 33.92, "nodes": 229, "errors": 0, "source_hash": "169eea51852c9540fd2cd1d8e698127678e23fa8a127005e8d0792729c053219", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern z...
1,418
c
/* =========================================================================== * lispe, Scheme interpreter. * =========================================================================== */ #ifndef COMMON_H #define COMMON_H /* pred.c */ int s_tailrec; int p_nullp(SEXPR e); int p_pairp(SEXPR e); int p_symbolp(SEXP...
25.12
76
(translation_unit) "/* ===========================================================================\n * lispe, Scheme interpreter.\n * ===========================================================================\n */\n\n#ifndef COMMON_H\n#define COMMON_H\n\n/* pred.c */\n\nint s_tailrec;\n\nint p_nullp(SEXPR e);\nint p_p...
677
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 25.12, "nodes": 491, "errors": 0, "source_hash": "e2a8e34d4ee24a8fc5928257e865660eb95194806bf8c670e24b80e4d5b45ec7", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,419
c
/* Copyright 2014 Software Reliability Lab, ETH Zurich 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 applicabl...
41.31
54
(translation_unit) "/*\n Copyright 2014 Software Reliability Lab, ETH Zurich\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n ...
231
6
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 41.31, "nodes": 127, "errors": 0, "source_hash": "fb4e22fcbca422d723f1dc32ce5b20964f5adfabad0ad5ce51be6e68429041b0", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,420
c
// // HKStringBuffer.hpp // HKTester // // Created by <NAME> on 19/04/2019. // Copyright © 2019 <NAME>. All rights reserved. // #ifndef HKStringBuffer_hpp #define HKStringBuffer_hpp #ifdef PARTICLE_COMPAT #include "../../example/HKTester/HKTester/Particle_Compat/particle_compat.h" #else #include <Particle.h> #end...
23.41
71
(translation_unit) "//\n// HKStringBuffer.hpp\n// HKTester\n//\n// Created by <NAME> on 19/04/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#ifndef HKStringBuffer_hpp\n#define HKStringBuffer_hpp\n\n#ifdef PARTICLE_COMPAT\n#include "../../example/HKTester/HKTester/Particle_Compat/particle_compat.h"\...
444
5
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 23.41, "nodes": 278, "errors": 0, "source_hash": "ec3ceb3b8eb2219fe915859620aa9f7e770b9bca6655d3a4e27f6edeb8e110de", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
1,421
c
// Copyright 2017 <NAME> // (<EMAIL>) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef ABULAFIA_PATTERNS_UNARY_ACTION_H_ #define ABULAFIA_PATTERNS_UNARY_ACTION_H_ #include "abulafia/config.h" #include "...
34.13
30
(translation_unit) "// Copyright 2017 <NAME>\n// (<EMAIL>)\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n\n#ifndef ABULAFIA_PATTERNS_UNARY_ACTION_H_\n#define ABULAFIA_PATTERNS_UNARY_ACTION_H_\n\n#include "...
273
18
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.13, "nodes": 161, "errors": 0, "source_hash": "2a4d49f4fe44619a5a6895c5e6fba727fc699ea25fc9cb7069a009bdcef4b1c5", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,422
c
/* * Copyright (c) 2004, Laminar Research. * * 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, modify, merge, ...
38.89
47
(translation_unit) "/*\n * Copyright (c) 2004, Laminar Research.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to ...
132
4
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 38.89, "nodes": 83, "errors": 0, "source_hash": "d443471740434699d501f6ecce1c50455d157582e1cd7bb4faed33403e40d0f0", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,423
c
#include "threads_impl.h" int pthread_cond_wait(pthread_cond_t* restrict c, pthread_mutex_t* restrict m) { return pthread_cond_timedwait(c, m, 0); }
37.25
4
(translation_unit) "#include "threads_impl.h"\n\nint pthread_cond_wait(pthread_cond_t* restrict c, pthread_mutex_t* restrict m) {\n return pthread_cond_timedwait(c, m, 0);\n}\n" (preproc_include) "#include "threads_impl.h"\n" (#include) "#include" (string_literal) ""threads_impl.h"" (") """ (st...
45
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.25, "nodes": 29, "errors": 0, "source_hash": "f350c05d1d9a691de6fe8e1c81ccc9a5ef9ebdbae1c5de4578f07bc4699914f2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,424
c
#ifndef CustomGraphicsTargetPointItem_noMouseInteraction_triangle2_H #define CustomGraphicsTargetPointItem_noMouseInteraction_triangle2_H #include <QGraphicsRectItem> #include <QPen> #include <QColor> #include <QBrush> #include <QDebug> class CustomGraphicsTargetPointItem_noMouseInteraction_triangle2: publ...
27.01
81
(translation_unit) "#ifndef CustomGraphicsTargetPointItem_noMouseInteraction_triangle2_H \n#define CustomGraphicsTargetPointItem_noMouseInteraction_triangle2_H \n \n#include <QGraphicsRectItem> \n#include <QPen> \n#include <QColor> \n#include <QBrush> \n \n#include <QDebug> \n \nclass CustomGraphicsTargetPointItem_noMo...
302
13
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 27.01, "nodes": 206, "errors": 0, "source_hash": "a17f03c9bb349979784121e94b3d393a74f6dad06f1683b2a3867435d6361d01", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,425
c
#ifndef FILE_HANDLE_H #define FILE_HANDLE_H #include <windows.h> #include <sstream> #include "DefinesToString.h" struct FileHandle : public DefinesToString { DEFINE_ERROR(OpenError, Error) HANDLE handle = INVALID_HANDLE_VALUE; wchar_t const * path = nullptr; FileHandle(wchar_t const * path) : ...
19.51
49
(translation_unit) "#ifndef FILE_HANDLE_H \n#define FILE_HANDLE_H \n \n#include <windows.h> \n \n#include <sstream> \n \n#include "DefinesToString.h" \n \nstruct FileHandle : public DefinesToString \n{ \n DEFINE_ERROR(OpenError, Error) \n \n HANDLE handle = INVALID_HANDLE_VALUE; \n wchar_t const * path = nullptr; \n \n...
285
8
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 19.51, "nodes": 162, "errors": 0, "source_hash": "9cf3e937537fc0b8760b5ed93f49255c0e29d07c1bc361d92868ee3620787a5d", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,426
c
/* Copyright 2001 - Cycling '74 <NAME> <EMAIL> */ // revised at some point by jb to include 2nd mode (necessary for particles) #include "jit.common.h" typedef struct _max_jit_iter { t_object ob; void *obex; void *valout; void *coordout; //outputmode: 0=no output, 1=calc, 2=input(no calc)(irreleva...
33.61
310
(translation_unit) "/*\n Copyright 2001 - Cycling '74\n <NAME> <EMAIL>\n*/\n\n// revised at some point by jb to include 2nd mode (necessary for particles)\n\n#include "jit.common.h"\n\ntypedef struct _max_jit_iter\n{\n t_object ob;\n void *obex;\n void *valout;\n void *coordout;\n //outputmode: 0=no output...
3,894
1
{"language": "c", "success": true, "metadata": {"lines": 310, "avg_line_length": 33.61, "nodes": 2268, "errors": 0, "source_hash": "beb46d8cced24802e01d786347d32e27a4f7b592262d397d1260c9bfa2891c92", "categorized_nodes": 1769}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,427
c
#ifndef UNITTESTBOT_FILENOTPRESENTEDINCOMMANDSEXCEPTION_H #define UNITTESTBOT_FILENOTPRESENTEDINCOMMANDSEXCEPTION_H #include "BaseException.h" #include "utils/path/FileSystemPath.h" class FileNotPresentedInCommandsException : public BaseException { fs::path filePath; public: static inline const std::string ...
42.13
15
(translation_unit) "#ifndef UNITTESTBOT_FILENOTPRESENTEDINCOMMANDSEXCEPTION_H\n#define UNITTESTBOT_FILENOTPRESENTEDINCOMMANDSEXCEPTION_H\n\n#include "BaseException.h"\n\n#include "utils/path/FileSystemPath.h"\n\nclass FileNotPresentedInCommandsException : public BaseException {\n fs::path filePath;\n\npublic:\n s...
125
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 42.13, "nodes": 62, "errors": 0, "source_hash": "4821a305517366b748e2652e997aa9cbbd6872342b39850a2913b6487b7bd033", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,428
c
// // MNFInternalImports.h // Meniga-ios-sdk // // Created by <NAME> on 07/04/16. // Copyright © 2016 Meniga. All rights reserved. // #ifndef MNFInternalImports_h #define MNFInternalImports_h #import "MNFObject_Private.h" #import "MNFJob_Private.h" #import "MNFLogger.h" #import "MNFJsonAdapter.h" #import "MNFHTTP...
27.38
26
(translation_unit) "//\n// MNFInternalImports.h\n// Meniga-ios-sdk\n//\n// Created by <NAME> on 07/04/16.\n// Copyright © 2016 Meniga. All rights reserved.\n//\n\n#ifndef MNFInternalImports_h\n#define MNFInternalImports_h\n\n#import "MNFObject_Private.h"\n#import "MNFJob_Private.h"\n#import "MNFLogger.h"\n#import "...
64
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.38, "nodes": 39, "errors": 0, "source_hash": "9e436263975bdee8207f9f7d00e891229ecd50ff68d8d54e5b1208c81e50eb22", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef M...
1,429
c
// // BannerCell.h // YFiOS // // Created by yfmac001 on 2018/4/11. // Copyright © 2018年 yfmac001. All rights reserved. // #import <UIKit/UIKit.h> @interface BannerCell : UICollectionViewCell ///轮播图 显示的地址 @property (nonatomic, copy) NSString *bannerUrl; @end
20.92
12
(translation_unit) "//\n// BannerCell.h\n// YFiOS\n//\n// Created by yfmac001 on 2018/4/11.\n// Copyright © 2018年 yfmac001. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BannerCell : UICollectionViewCell\n///轮播图 显示的地址\n@property (nonatomic, copy) NSString *bannerUrl;\n@end\n" (comment) "//" ...
37
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.92, "nodes": 23, "errors": 0, "source_hash": "cedd5aac583604f9e06f1aeb4460d6a4d82f30d76933445dbe632084adf995d9", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,430
c
/* * arch/arm/mach-orion5x/mpp.c * * MPP functions for Marvell Orion 5x SoCs * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linux/in...
21.86
139
(translation_unit) "/*\n * arch/arm/mach-orion5x/mpp.c\n *\n * MPP functions for Marvell Orion 5x SoCs\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is licensed "as is" without any\n * warranty of any kind, whether express or implied.\n */\n\n#include <linu...
1,041
2
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 21.86, "nodes": 669, "errors": 0, "source_hash": "352e5974a44670ce2cc173fc7890a11625e3093d1ed498fee9635debb614aa58", "categorized_nodes": 530}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,431
c
#include "dz60.h" void matrix_init_kb(void) { matrix_init_user(); led_init_ports(); }; void led_init_ports(void) { setPinOutput(B2); writePinHigh(B2); } void led_set_kb(uint8_t usb_led) { if (usb_led & (1 << USB_LED_CAPS_LOCK)) { writePinLow(B2); } else { writePinHigh(B2); ...
19.53
17
(translation_unit) "#include "dz60.h"\n\nvoid matrix_init_kb(void) {\n matrix_init_user();\n led_init_ports();\n};\n\nvoid led_init_ports(void) {\n setPinOutput(B2);\n writePinHigh(B2);\n}\n\nvoid led_set_kb(uint8_t usb_led) {\n if (usb_led & (1 << USB_LED_CAPS_LOCK)) {\n writePinLow(B2);\n } e...
123
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.53, "nodes": 61, "errors": 0, "source_hash": "3e4d4c29cc4634927932b5f435fcc31936f7698e08983c300d4484660d196ba5", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,432
c
#ifndef UTILS_H #define UTILS_H inline void break_optimization(void *arg) { __asm__ __volatile__("" : : "r" (arg) : "memory"); } // Tests will instantiate this class to pad out bit sets to test out the // various ways we can represent the bit set (32-bit inline, 64-bit inline, // memory). Instantiating this class w...
30.14
59
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\ninline void break_optimization(void *arg) {\n __asm__ __volatile__("" : : "r" (arg) : "memory");\n}\n\n// Tests will instantiate this class to pad out bit sets to test out the\n// various ways we can represent the bit set (32-bit inline, 64-bit inline,\n// memory...
425
36
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 30.14, "nodes": 254, "errors": 0, "source_hash": "12f8984b0a3789e6f03bf2a67343abb190a3f60721165cfd7df1a272a1a41e6a", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,433
c
// // Comment+Preprocess.h // AlienBlue // // Created by <NAME> on 16/12/11. // Copyright (c) 2011 The Design Shed. All rights reserved. // #import "Comment.h" @interface Comment (Preprocess) - (void)preprocessLinksAndAttributedStyle; - (void)preprocessLinksOnly; @end
21.75
12
(translation_unit) "//\n// Comment+Preprocess.h\n// AlienBlue\n//\n// Created by <NAME> on 16/12/11.\n// Copyright (c) 2011 The Design Shed. All rights reserved.\n//\n\n#import "Comment.h"\n\n@interface Comment (Preprocess)\n\n- (void)preprocessLinksAndAttributedStyle;\n- (void)preprocessLinksOnly;\n\n@end\n" (co...
45
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.75, "nodes": 24, "errors": 0, "source_hash": "411e941b4d9a9fae03bdfc427fa42282b908f3eee685c3aa4efae75836fa1ea5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
1,434
c
/* * MIT License * Copyright (c) 2021 _VIFEXTech * * 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, modify, ...
35.61
104
(translation_unit) "/*\n * MIT License\n * Copyright (c) 2021 _VIFEXTech\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights...
556
9
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 35.61, "nodes": 373, "errors": 0, "source_hash": "82cc836a37d15e5ee9b5c27ceb0f2253c77f9de8111933d69b8c10343d486ca0", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,435
c
/* * ===================================================================================== * * Filename: TGM_Utilities->h * * Description: * * Version: 1->0 * Created: 07/10/2011 03:01:14 PM * Revision: none * Compiler: gcc * * Author: YOUR NAME (), * ...
31.78
55
(translation_unit) "/*\n * =====================================================================================\n *\n * Filename: TGM_Utilities->h\n *\n * Description: \n *\n * Version: 1->0\n * Created: 07/10/2011 03:01:14 PM\n * Revision: none\n * Compiler: gcc\n *\n * ...
298
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.78, "nodes": 209, "errors": 0, "source_hash": "f21ac36cc73d5156bf33897308bfca09269195232523af4564f574f239354a1c", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,436
c
#pragma once /*========================================================================= medInria Copyright (c) INRIA 2013 - 2020. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICUL...
35.61
31
(translation_unit) "#pragma once\n/*=========================================================================\n\n medInria\n\n Copyright (c) INRIA 2013 - 2020. All rights reserved.\n See LICENSE.txt for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABIL...
160
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.61, "nodes": 104, "errors": 0, "source_hash": "2e569660d7a0b97fc3db1382f1c5fd96ef01e122aa65624e3bcfbd5214b60c34", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,437
c
#include <stdio.h> int main() { int ary[10] = {10, 21, 32, 43, 54, 65, 76, 87, 98, 99}; int i; for (i = 0; i < 10; i ++) { printf("\ni=%d,ary[i]=%d,*(ary+i)=%d", i, ary[i], *(ary + i)); printf("&ary[i]=%X,ary+i=%X", &ary[i],ary+i); } return 0; }
19.77
13
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int ary[10] = {10, 21, 32, 43, 54, 65, 76, 87, 98, 99};\n int i;\n for (i = 0; i < 10; i ++)\n {\n printf("\ni=%d,ary[i]=%d,*(ary+i)=%d", i, ary[i], *(ary + i));\n printf("&ary[i]=%X,ary+i=%X", &ary[i],ary+i);\n }\n \n return 0;\n}\n\n" (preproc_...
128
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.77, "nodes": 71, "errors": 0, "source_hash": "f4bbd9e998084e75887ca0221a073989a24f2bd8b3693a68514139c687003cd3", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,438
c
/** \brief This is a project specifically for SCuM showsing the issue SCuM when using multiple timers feature to schedule different radio actions. The main behaviours of this project is to mimic a RX slot. Three compare timers are used for scheduling RX_ENABLE, ENABLE_TIMEOUT and LISTENING_GUARDTIME inside a slot. B...
32.92
181
(translation_unit) "/**\n\brief This is a project specifically for SCuM showsing the issue SCuM when \nusing multiple timers feature to schedule different radio actions.\n\nThe main behaviours of this project is to mimic a RX slot. Three compare timers \nare used for scheduling RX_ENABLE, ENABLE_TIMEOUT and LISTENING_G...
855
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 32.92, "nodes": 530, "errors": 0, "source_hash": "321ff618aa658c50c0ae3ba18b3fc3613c2cdbd82e2b99f23c6e228b6a9b0861", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,439
c
// polyd // print polynomials as coefficients in a matrix table // ------------------------------------------------------------------- struct { int co[64]; } eq[32]; void binvar(int i) { int j; int iap= 0; if(i==0) { printf("1"); return; } for(j=0;j<6;j++) { if((i&1)!=0) { if((iap++)==0) pr...
13.61
110
(translation_unit) "// polyd\n// print polynomials as coefficients in a matrix table\n\n\n// -------------------------------------------------------------------\n\nstruct {\n int co[64];\n } eq[32];\n\n\nvoid binvar(int i)\n{\n int j;\n int iap= 0;\n\n if(i==0) {\n printf("1");\n return;\n }\n for(j=0;j<6;j++) {\n ...
874
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 13.61, "nodes": 493, "errors": 0, "source_hash": "0f237cfbc0739b897010aec0c7f7291f707a0fbf50984b494c843303983ba5f9", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct ...
1,440
c
static inline void CVE_2006_1855_VULN_choose_new_parent(task_t *p, task_t *reaper, task_t *child_reaper) { /* * Make sure we're not reparenting to ourselves and that * the parent is not a zombie. */ BUG_ON(p == reaper || reaper->exit_state >= EXIT_ZOMBIE); p->real_parent = reaper; if (p->parent == p->real_par...
29.55
11
(translation_unit) "static inline void CVE_2006_1855_VULN_choose_new_parent(task_t *p, task_t *reaper, task_t *child_reaper)\n{\n /*\n * Make sure we're not reparenting to ourselves and that\n * the parent is not a zombie.\n */\n BUG_ON(p == reaper || reaper->exit_state >= EXIT_ZOMBIE);\n p->real_parent = reaper;\n ...
84
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.55, "nodes": 56, "errors": 0, "source_hash": "7b7bdf48f39ee9e28265b8a5c1250868c2a554710366b4926074934f2035ab01", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "st...
1,441
c
#ifndef TENSORFLOW_FRAMEWORK_NUMERIC_TYPES_H_ #define TENSORFLOW_FRAMEWORK_NUMERIC_TYPES_H_ #include <complex> #include "tensorflow/core/platform/port.h" namespace tensorflow { // Single precision complex. typedef std::complex<float> complex64; } // end namespace tensorflow #endif // TENSORFLOW_FRAMEWORK_NUMERI...
35.11
9
(translation_unit) "#ifndef TENSORFLOW_FRAMEWORK_NUMERIC_TYPES_H_\n#define TENSORFLOW_FRAMEWORK_NUMERIC_TYPES_H_\n\n#include <complex>\n\n#include "tensorflow/core/platform/port.h"\n\nnamespace tensorflow {\n\n// Single precision complex.\ntypedef std::complex<float> complex64;\n\n} // end namespace tensorflow\n\n#end...
38
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.11, "nodes": 25, "errors": 0, "source_hash": "eb323cff4da09fc189f6cae61367ce402e902c8177277914f67ca0059b3d7610", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
1,442
c
#ifndef __MYSTR_H #define __MYSTR_H extern char *mystr; #endif
14.75
4
(translation_unit) "#ifndef __MYSTR_H\n#define __MYSTR_H\n\nextern char *mystr;\n\n#endif\n" (preproc_ifdef) "#ifndef __MYSTR_H\n#define __MYSTR_H\n\nextern char *mystr;\n\n#endif" (#ifndef) "#ifndef" (identifier) "__MYSTR_H" (preproc_def) "#define __MYSTR_H\n" (#define) "#define" (identifier)...
16
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 14.75, "nodes": 14, "errors": 0, "source_hash": "3b958bf11d2f45ec031400450ff278ed39fd2ca2944976d3e757d68d0f1f503a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
1,443
c
#include <stdlib.h> #include <stdio.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) int grid[1000][1000]; int main(void) { int x1, y1, x2, y2; while (scanf("%d,%d -> %d,%d", &x1, &y1, &x2, &y2) != EOF) { int dx = x2-x1, dy = y2-y1; int diff = MAX(abs(dx), abs(dy)); for...
26.21
19
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\n#define MIN(a, b) ((a) < (b) ? (a) : (b))\n#define MAX(a, b) ((a) > (b) ? (a) : (b))\n\nint grid[1000][1000];\n\nint main(void) {\n\n int x1, y1, x2, y2;\n while (scanf("%d,%d -> %d,%d", &x1, &y1, &x2, &y2) != EOF) {\n int dx = x2-x1, dy = y2-y1;\n int di...
265
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.21, "nodes": 179, "errors": 0, "source_hash": "ed1512691454b377bf97102b393c3695810d12caa97d1f7aa16e88fccf1b55c0", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,444
c
#ifndef filter_magic_filter_h #define filter_magic_filter_h #include <opencv2/opencv.hpp> namespace filter { void greyscale(cv::Mat &source); void sepia(cv::Mat &source); void rotate(cv::Mat &source, float angle); void scale(cv::Mat &source, float width, float height); } #endif
27.3
10
(translation_unit) "#ifndef filter_magic_filter_h\n#define filter_magic_filter_h\n\n#include <opencv2/opencv.hpp>\n\nnamespace filter {\n void greyscale(cv::Mat &source);\n void sepia(cv::Mat &source);\n void rotate(cv::Mat &source, float angle);\n void scale(cv::Mat &source, float width, float height);\n}\n\n#endif\n\...
93
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.3, "nodes": 62, "errors": 0, "source_hash": "d40d4fbd8bbf361217321712c7f9512aa84b9fd63368762656493ae5c386c097", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef f...
1,445
c
#ifndef RAYTRACE_PRIMITIVES_H_GUARD #define RAYTRACE_PRIMITIVES_H_GUARD #include <algorithm> #include <array> #include <cmath> #include <initializer_list> #include <limits> #include <ostream> #include <stdexcept> namespace raytrace { constexpr float epsilon{0.0001f}; const float pi = 2 * acos(0.f); inline bool are_...
29.02
105
(translation_unit) "#ifndef RAYTRACE_PRIMITIVES_H_GUARD\n#define RAYTRACE_PRIMITIVES_H_GUARD\n\n#include <algorithm>\n#include <array>\n#include <cmath>\n#include <initializer_list>\n#include <limits>\n#include <ostream>\n#include <stdexcept>\n\nnamespace raytrace {\n\nconstexpr float epsilon{0.0001f};\nconst float pi ...
1,310
96
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 29.02, "nodes": 819, "errors": 0, "source_hash": "f4d73298e67379332ad138dc51621d927723004eed4351a6d8b4fb969ca48833", "categorized_nodes": 577}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,446
c
/* * Author: <NAME>, Finland 2018-2019 * * This file is part of Kunquat. * * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ * * To the extent possible under law, Kunquat Affirmers have waived all * copyright and related or neighboring rights to Kunquat. */ #include <player/Voice_group...
26.59
64
(translation_unit) "/*\n * Author: <NAME>, Finland 2018-2019\n *\n * This file is part of Kunquat.\n *\n * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/\n *\n * To the extent possible under law, Kunquat Affirmers have waived all\n * copyright and related or neighboring rights to Kunquat.\n */\n\n...
394
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 26.59, "nodes": 264, "errors": 0, "source_hash": "829d1cf3000b4880fed03b242128b5c59e5b85720e34fad0f3892a0d7ba8353a", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,447
c
#pragma once #include <functional> namespace gluon { // Strongly typed pair of 2 any types. Only one can be active at any time template <typename L, typename R> class Either { private: bool m_is_left; union { L m_left; R m_right; }; Either() {} // Either must be declared with ...
23.77
44
(translation_unit) "#pragma once\n\n#include <functional>\n\nnamespace gluon {\n\n// Strongly typed pair of 2 any types. Only one can be active at any time\ntemplate <typename L, typename R>\nclass Either {\n private:\n bool m_is_left;\n union {\n L m_left;\n R m_right;\n };\n Either() {}\n\...
372
21
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.77, "nodes": 192, "errors": 0, "source_hash": "d97c7483e7cf74292434dc103d2531af0b00c4a1e31a811ca5966cf46b6acede", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,448
c
#ifndef noise_h #define noise_h float noise_gen(void); #endif
14.5
4
(translation_unit) "#ifndef noise_h\n#define noise_h\n\nfloat noise_gen(void);\n\n#endif\n\n" (preproc_ifdef) "#ifndef noise_h\n#define noise_h\n\nfloat noise_gen(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "noise_h" (preproc_def) "#define noise_h\n" (#define) "#define" (identifier) "no...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 14.5, "nodes": 14, "errors": 0, "source_hash": "43a5265072a3b4ac4608ca12df4883fae2973e6cc95c6632b3b78f90253c4734", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef noi...
1,449
c
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
41.93
28
(translation_unit) "/* Copyright (C) 2001-2021 Artifex Software, Inc.\n All Rights Reserved.\n\n This software is provided AS-IS with no warranty, either express or\n implied.\n\n This software is distributed under license and may not be copied,\n modified or distributed except as expressly authorized under t...
55
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 41.93, "nodes": 34, "errors": 0, "source_hash": "072c6a5e94526cc67a54822c55cb1c63edccadee24b78b03283ee103bfba3f0d", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,450
c
#include <stdio.h> int main () { unsigned long int a = 1, b = 2, temp = 0, sum = 0; while (b < 4000000) { if (b % 2 == 0) sum += b; temp = b; b += a; a = temp; } printf ("sum = %ld", sum); return 0; }
13.6
15
(translation_unit) "#include <stdio.h>\n\nint main ()\n{\n unsigned long int a = 1, b = 2, temp = 0, sum = 0;\n\n while (b < 4000000)\n {\n if (b % 2 == 0)\n sum += b;\n temp = b;\n b += a;\n a = temp;\n }\n printf ("sum = %ld", sum);\n return 0;\n}\n\n" (preproc_include) "#include <stdio.h>\n" (#include) ...
104
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 13.6, "nodes": 67, "errors": 0, "source_hash": "8be4f9e182b43e4001c6eed793acb5f9640999b8e5f7e512f9b5cd8f73392dbb", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,451
c
#ifndef _COARSEN_AMG_H_ #define _COARSEN_AMG_H_ #include "defs.h" #include "structs.h" #include "read_params.h" /* This function gets an n*n fine matrix (L) and produces an n*m interpolation matrix (A), using "weighted_interpolation" */ int construct_weighted_interpolation( struct vtx_data ** matrix, // the fin...
36.62
112
(translation_unit) "#ifndef _COARSEN_AMG_H_\n#define _COARSEN_AMG_H_\n\n#include "defs.h"\n#include "structs.h"\n#include "read_params.h"\n\n\n\n/*\nThis function gets an n*n fine matrix (L) and produces\nan n*m interpolation matrix (A), using "weighted_interpolation"\n\n*/\n\nint construct_weighted_interpolation(\n s...
401
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 36.62, "nodes": 304, "errors": 0, "source_hash": "766476f0600c0695c70f2a9149444c8ca1a6cbc2c6374233a12d6fd613c98f1e", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,452
c
/* * Copyright (c) 2007, 2008 University of Tsukuba * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this ...
30.31
129
(translation_unit) "/*\n * Copyright (c) 2007, 2008 University of Tsukuba\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 * 1. Redistributions of source code must retain the above co...
555
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 30.31, "nodes": 387, "errors": 0, "source_hash": "5323a66cb1144cdd086c10a6a64160b828c7a87714a6ada8307301ae27a4c656", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "enum_specifier", "text": "enum...
1,453
c
#include <stdio.h> int main(void) { int t = 27; printf("27F is %fC\n", (t - 32) / 1.8); return 0; }
15
7
(translation_unit) "#include <stdio.h>\n\nint main(void)\n{\n int t = 27;\n\n printf("27F is %fC\n", (t - 32) / 1.8);\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(void)\n{\n int t = 27;\n\n p...
50
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.0, "nodes": 31, "errors": 0, "source_hash": "a9c7889ba16b6c00d652c2d70948ce388b17c82a1e4630bd42694f10dff61ed2", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,454
c
#ifndef Validation_RecoVertex_BeamSpotHistogramMaker_H #define Validation_RecoVertex_BeamSpotHistogramMaker_H #include <string> #include "FWCore/Framework/interface/ConsumesCollector.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h" namespac...
30.32
41
(translation_unit) "#ifndef Validation_RecoVertex_BeamSpotHistogramMaker_H\n#define Validation_RecoVertex_BeamSpotHistogramMaker_H\n\n#include <string>\n#include "FWCore/Framework/interface/ConsumesCollector.h"\n#include "FWCore/ParameterSet/interface/ParameterSet.h"\n#include "DPGAnalysis/SiStripTools/interface/RunHis...
309
8
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.32, "nodes": 201, "errors": 0, "source_hash": "9cb4fc559d0d7e09769171014b3d49d8d6077231625be21eca30d6e67bd5c9f6", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,455
c
#ifndef SRC_BSP_H_ #define SRC_BSP_H_ #ifdef __cplusplus extern "C" { #endif #include "def.h" void delay(uint32_t time_ms); uint32_t millis(void); uint32_t micros(void); #ifdef __cplusplus } #endif #endif
12
16
(translation_unit) "#ifndef SRC_BSP_H_\n#define SRC_BSP_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n#include "def.h"\n\n\nvoid delay(uint32_t time_ms);\nuint32_t millis(void);\nuint32_t micros(void);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif " (preproc_ifdef) "#ifndef SRC_BSP_H_\n#define SRC_BSP_H_\n\n#ifd...
64
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.0, "nodes": 45, "errors": 0, "source_hash": "5989701d287deb7149518cb8e4b05243990e9f64b0743fe2068bdadfd05bc099", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
1,456
c
// // NSMutableIndexSet+BlocksKit.h // %PROJECT // #import "BKGlobals.h" /** Block extensions for NSMutableIndexSet. These utilities expound upon the BlocksKit additions to the immutable superclass by allowing certain utilities to work on an instance of the mutable class, saving memory by not creating an immu...
28.1
40
(translation_unit) "//\n// NSMutableIndexSet+BlocksKit.h\n// %PROJECT\n//\n\n#import "BKGlobals.h"\n\n/** Block extensions for NSMutableIndexSet.\n \n These utilities expound upon the BlocksKit additions\n to the immutable superclass by allowing certain utilities\n to work on an instance of the mutable class, saving ...
77
10
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 28.1, "nodes": 42, "errors": 0, "source_hash": "9a33ddca4a11f14090fee27a7a777bfebe44a8417732ffeef59f911205f0740e", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
1,457
c
// // ContentsTableViewCell.h // TFY_SimplifytableView // // Created by 田风有 on 2019/6/13. // Copyright © 2019 恋机科技. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ContentsTableViewCell : UITableViewCell @property (nonatomic, strong) TFY_PersonModel *model; @end NS_ASSUME_NONN...
23.92
13
(translation_unit) "//\n// ContentsTableViewCell.h\n// TFY_SimplifytableView\n//\n// Created by 田风有 on 2019/6/13.\n// Copyright © 2019 恋机科技. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ContentsTableViewCell : UITableViewCell\n@property (nonatomic, strong) TFY_PersonM...
45
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.92, "nodes": 30, "errors": 0, "source_hash": "7e7a1c7eba9ba36f6c764d1c79583a1b3c828e90172bd0ed6f341832ed4fa841", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
1,458
c
#ifndef CUUPHOTOLISTUI_H #define CUUPHOTOLISTUI_H #pragma once #include "UUPhotoListUI.h" #include "DUIWindow.h" class CUUPhotoListUI; class CDuiPhotoView; class CUUPhotoListItemUI : public CHorizontalLayoutUI { public: CUUPhotoListItemUI(CUUPhotoListUI* parent = NULL); ~CUUPhotoListItemUI(); void SetImage(CDuiS...
25.11
46
(translation_unit) "#ifndef CUUPHOTOLISTUI_H\n#define CUUPHOTOLISTUI_H\n\n#pragma once\n#include "UUPhotoListUI.h"\n#include "DUIWindow.h"\n\nclass CUUPhotoListUI;\nclass CDuiPhotoView;\n\nclass CUUPhotoListItemUI : public CHorizontalLayoutUI\n{\npublic:\n CUUPhotoListItemUI(CUUPhotoListUI* parent = NULL);\n ~CUUPhotoL...
326
6
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.11, "nodes": 210, "errors": 0, "source_hash": "bc56fe7cc013939eaa875cc067420fc6eaf88aaa3ecf68ed4f14e0f5d38e89f8", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,459
c
#if !defined(PARTICLE_H) #define PARTICLE_H struct particle { double mass{ 100.0 }; // kg spatial position; // m spatial velocity; // m/s double distance(const particle p) { return sqrt(pow(p.position.x - this->position.x, 2) + pow(p.position.y - this->position.y, 2) + pow(p.positi...
27.08
13
(translation_unit) "#if !defined(PARTICLE_H)\n#define PARTICLE_H\n\n\nstruct particle {\n double mass{ 100.0 }; // kg\n spatial position; // m\n spatial velocity; // m/s\n\n double distance(const particle p) {\n return sqrt(pow(p.position.x - this->position.x, 2) + pow(p.position.y - this-...
129
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.08, "nodes": 81, "errors": 0, "source_hash": "426904df85665011a475965c2a72932a9cc4b61f6c1cde6cff47b685e431a8c8", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
1,460
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "CAAnimation+DXJExtension.h" #import "DXJModel.h" #import "NSDate+DXJExtension.h" #import "NSDecimalNumber+Addtion.h"...
29
31
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "CAAnimation+DXJExtension.h"\n#import "DXJModel.h"\n#import "NSDate+DXJExtension.h"\n...
106
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.0, "nodes": 96, "errors": 0, "source_hash": "6aaeeae4227eb76a80b415f59bc426ab2b8d2ac8858ad7757febb15239601faa", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
1,461
c
// // ViewController.h // TQBaseProject // // Created by WORKSQ on 2019/3/20. // Copyright © 2019 WORKSQ. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18
11
(translation_unit) "//\n// ViewController.h\n// TQBaseProject\n//\n// Created by WORKSQ on 2019/3/20.\n// Copyright © 2019 WORKSQ. 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) "// T...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.0, "nodes": 11, "errors": 0, "source_hash": "2e034882bc9c3c3ffd5214014a837ff89762047c22c951c2d30b234f5045c22f", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
1,462
c
#include <string> #include <sstream> #include <vector> void SplitString(std::vector<std::string> & theStringVector, /* Altered/returned value */ const std::string & theString, const std::string & theDelimiter) { size_t start = 0, end = 0; while (end != std::string::npos) { end = theString.find(theDelimi...
30.26
27
(translation_unit) "#include <string>\n#include <sstream>\n#include <vector>\n\nvoid SplitString(std::vector<std::string> & theStringVector, /* Altered/returned value */\n const std::string & theString,\n const std::string & theDelimiter)\n{\n size_t start = 0, end = 0;\n\n while (end != std::string::npos)\n {\n ...
273
15
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.26, "nodes": 158, "errors": 0, "source_hash": "0ff1bb1ae4932ffe671d70291abb4e1391c2f48524b6a79bc11bac685c54f8e6", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,463
c
// // SwitFramework.h // SwitFramework // // Created by LiYuLong on 2020/9/30. // #import <Foundation/Foundation.h> //! Project version number for SwitFramework. FOUNDATION_EXPORT double SwitFrameworkVersionNumber; //! Project version string for SwitFramework. FOUNDATION_EXPORT const unsigned char SwitFrameworkVe...
38.25
12
(translation_unit) "//\n// SwitFramework.h\n// SwitFramework\n//\n// Created by LiYuLong on 2020/9/30.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for SwitFramework.\nFOUNDATION_EXPORT double SwitFrameworkVersionNumber;\n\n//! Project version string for SwitFramework.\nFOUNDATION_EXPORT co...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.25, "nodes": 15, "errors": 0, "source_hash": "fe5e5d81e17f6c3cc03792e83a6946fd0321b5525b9df66499929e9775e084cf", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,464
c
/* Copyright 2004-2008 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
24.68
111
(translation_unit) "/* \n Copyright 2004-2008 <NAME> \n \n Licensed under the Apache License, Version 2.0 (the "License"); \n you may not use this file except in compliance with the License. \n You may obtain a copy of the License at \n \n http://www.apache.org/licenses/LICENSE-2.0 \n \n Unless required by ...
690
47
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 24.68, "nodes": 420, "errors": 0, "source_hash": "225b51649dfb5312f16280de8ae7de51cad1925cc457178539ca61b7b5d3cf3f", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,465
c
#ifndef KSELFPORTSACL_H #define KSELFPORTSACL_H #include "KMultiIntAcl.h" #include "KXml.h" class KSelfPortsAcl: public KMultiIntAcl { public: KSelfPortsAcl() { } virtual ~KSelfPortsAcl() { } KAcl *newInstance() { return new KSelfPortsAcl(); } const char *getName() { return "self_ports"; } bool match(KHtt...
19.32
37
(translation_unit) "#ifndef KSELFPORTSACL_H\n#define KSELFPORTSACL_H\n#include "KMultiIntAcl.h"\n#include "KXml.h"\nclass KSelfPortsAcl: public KMultiIntAcl {\npublic:\n KSelfPortsAcl() {\n\n }\n virtual ~KSelfPortsAcl() {\n }\n KAcl *newInstance() {\n return new KSelfPortsAcl();\n }\n const char *getName() {\n retur...
270
8
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 19.32, "nodes": 141, "errors": 0, "source_hash": "e33f8a84dea1a1a93e3e485f8493457ebc98bcb4d4b6c08310b47d0e5ee0fac8", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,466
c
#pragma once #include <string> #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #include <SOIL.h> /// <summary> A 2D texture wrapper class. Handles important OpenGL calls. </summary> class Texture2D { public: std::string shaderTextureSamplerName; GLuint textureID; /// <summary> Act...
28.39
23
(translation_unit) "#pragma once \n \n#include <string> \n \n#define GLEW_STATIC \n#include <GL/glew.h> \n#include <GLFW/glfw3.h> \n#include <SOIL.h> \n \n/// <summary> A 2D texture wrapper class. Handles important OpenGL calls. </summary> \nclass Texture2D { \npublic: \n std::string shaderTextureSamplerName; \n GLuint...
124
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.39, "nodes": 77, "errors": 0, "source_hash": "5aacfb03cc491a2b10afa7b2161b90ae3c49526c9437f6c7e76573b144b0250b", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,467
c
// INFO: task hung in rwsem_down_read_failed // https://syzkaller.appspot.com/bug?id=2c3e370f4b05d93d4267f52b320348f6111220f9 // status:open // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <errno.h> #include <fcntl.h> #include <signal.h> #include <std...
25.19
196
(translation_unit) "// INFO: task hung in rwsem_down_read_failed\n// https://syzkaller.appspot.com/bug?id=2c3e370f4b05d93d4267f52b320348f6111220f9\n// status:open\n// autogenerated by syzkaller (http://github.com/google/syzkaller)\n\n#define _GNU_SOURCE\n#include <endian.h>\n#include <errno.h>\n#include <fcntl.h>\n#inc...
2,145
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 25.19, "nodes": 1412, "errors": 0, "source_hash": "0758be22242b57c8283519fd0dd7cf09594733f50525ac6c405a3b8a4945683c", "categorized_nodes": 800}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
1,468
c
// // ZJUserDefaultCacheDao.h // iTotemFramework // // Created by Sword on 13-9-6. // Copyright (c) 2013年 iTotemStudio. All rights reserved. // #import "ZJCacheDao.h" @interface ZJUserDefaultCacheDao : ZJCacheDao @end
21.2
10
(translation_unit) "//\n// ZJUserDefaultCacheDao.h\n// iTotemFramework\n//\n// Created by Sword on 13-9-6.\n// Copyright (c) 2013年 iTotemStudio. All rights reserved.\n//\n\n#import "ZJCacheDao.h"\n\n@interface ZJUserDefaultCacheDao : ZJCacheDao\n\n@end\n" (comment) "//" (comment) "// ZJUserDefaultCacheDao.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.2, "nodes": 10, "errors": 0, "source_hash": "dec9543b0b988ae33d2bca2178900770bc5fb8bad4c0540eec4b884f0763cadd", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"ZJC...
1,469
c
/* The result produced from specializing bytecode. */ struct MVMSpeshCode { /* The specialized bytecode. */ MVMuint8 *bytecode; /* The size of the produced bytecode. */ MVMuint32 bytecode_size; /* Updated set of frame handlers. */ MVMFrameHandler *handlers; }; MVMSpeshCode * MVM_spesh_codegen...
34.9
10
(translation_unit) "/* The result produced from specializing bytecode. */\nstruct MVMSpeshCode {\n /* The specialized bytecode. */\n MVMuint8 *bytecode;\n\n /* The size of the produced bytecode. */\n MVMuint32 bytecode_size;\n\n /* Updated set of frame handlers. */\n MVMFrameHandler *handlers;\n};\n\n...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 34.9, "nodes": 33, "errors": 0, "source_hash": "d15dafd1b9a2b60fab342ad4f7dd8f964d1c95f9a5b80601e52dd132083d2e85", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct...
1,470
c
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* Define to 1 if you have the <arpa/inet.h> header file. */ #define HAVE_ARPA_INET_H 1 /* Define...
39.79
92
(translation_unit) "/* config.h. Generated from config.h.in by configure. */\n/* config.h.in. Generated from configure.in by autoheader. */\n\n/* Define if building universal (internal helper macro) */\n/* #undef AC_APPLE_UNIVERSAL_BUILD */\n\n/* Define to 1 if you have the <arpa/inet.h> header file. */\n#define HA...
209
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 39.79, "nodes": 160, "errors": 0, "source_hash": "8af07c1cfda2a5b3fa2a21a47a037aeac4f3926aa6ac6f7940ed984745cb3176", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define H...
1,471
c
queue * create_queue() { queue *q = malloc(sizeof(node)); check_address(q); q->head = 0; q->tail = 0; return q; } void enqueue(queue *q, int value) { node *new_node = malloc(sizeof(node)); check_address(new_node); new_node->value = value; new_node->next = 0; if (q->tail) { q->tail->next = n...
19.15
62
(translation_unit) "queue * create_queue() {\n queue *q = malloc(sizeof(node));\n check_address(q);\n\n q->head = 0;\n q->tail = 0;\n\n return q;\n}\n\nvoid enqueue(queue *q, int value) {\n node *new_node = malloc(sizeof(node));\n check_address(new_node);\n\n new_node->value = value;\n new_node->next = 0;\n\n ...
547
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 19.15, "nodes": 328, "errors": 0, "source_hash": "eedeaef97dd5cbd5403ff4f349eaf9b4f4e2d47dc19a42b5df3391f86c54cd5f", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
1,472
c
/* ========================= eCAL LICENSE ================================= * * Copyright (C) 2016 - 2020 Continental Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
24.01
166
(translation_unit) "/* ========================= eCAL LICENSE =================================\n *\n * Copyright (C) 2016 - 2020 Continental Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy...
664
49
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 24.01, "nodes": 383, "errors": 0, "source_hash": "de3d48925b0a3f1b5d8d77493668eb732ca76e0a3eb44a2be40207e7f99ffcb6", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,473
c
// // SwiftPhoenixClient.h // SwiftPhoenixClient // // Created by <NAME> on 10/21/20. // Copyright © 2021 SwiftPhoenixClient. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for SwiftPhoenixClient. FOUNDATION_EXPORT double SwiftPhoenixClientVersionNumber; //! Project version ...
42.46
13
(translation_unit) "//\n// SwiftPhoenixClient.h\n// SwiftPhoenixClient\n//\n// Created by <NAME> on 10/21/20.\n// Copyright © 2021 SwiftPhoenixClient. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for SwiftPhoenixClient.\nFOUNDATION_EXPORT double SwiftPhoenixClientVersi...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 42.46, "nodes": 15, "errors": 0, "source_hash": "bdeba663c668255c1e435cfc1e2ae8601590376891955e8d1a4d6d1a3bef2705", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
1,474
c
// // YJResolutionChoosePicker.h // // Created by YJ on 2020/7/4. // Copyright © 2020 YJ. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef void(^CompleteBlock)(NSString *resolution,int index); @interface URTCResolutionChoosePicker : UIView @property (nonatomic, copy) CompleteBloc...
23.25
16
(translation_unit) "//\n// YJResolutionChoosePicker.h\n//\n// Created by YJ on 2020/7/4.\n// Copyright © 2020 YJ. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void(^CompleteBlock)(NSString *resolution,int index);\n\n\n@interface URTCResolutionChoosePicker : UIView\n\n@pro...
73
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.25, "nodes": 48, "errors": 0, "source_hash": "95b83aae112d75b858ce4a6842bb9da7571decc7465b93b0aa66661e1b5103f3", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
1,475
c
#pragma once #include "CoreModifiable.h" class CoreModifiable; class Timer; #define DEFINE_UPGRADOR_METHOD(upgrador,name) DEFINE_METHOD(upgrador::UpgradorMethods,name) #define ADD_UPGRADOR_METHOD(methodname,callingname) toUpgrade->InsertMethod(#callingname,static_cast<CoreModifiable::ModifiableMethod>(&UpgradorMet...
52.69
64
(translation_unit) "#pragma once\n\n#include "CoreModifiable.h"\n\n\nclass CoreModifiable;\nclass Timer;\n\n#define DEFINE_UPGRADOR_METHOD(upgrador,name) DEFINE_METHOD(upgrador::UpgradorMethods,name)\n\n#define ADD_UPGRADOR_METHOD(methodname,callingname) toUpgrade->InsertMethod(#callingname,static_cast<CoreModifiable::...
297
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 52.69, "nodes": 189, "errors": 0, "source_hash": "aff483453b5dea62498e7282ecf8b4f47b96d347f1fc59694a4abcbdc8a25ee3", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,476
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
32.09
163
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\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.apach...
338
18
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 32.09, "nodes": 211, "errors": 0, "source_hash": "80d7887c9978f4fdfe12aaf61a848d0ca2ce0b047c3d98e2cf1869984f7eae38", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,477
c
#pragma once #include "Singleton.h" #include "serialization/Archive.h" #include <robin_hood.h> namespace ze::reflection::serialization { template<typename T> static constexpr const char* archive_name = ""; template<typename T> static constexpr bool is_serializable_with_reflection = false; /** * Get the binding ma...
29.21
107
(translation_unit) "#pragma once\n\n#include "Singleton.h"\n#include "serialization/Archive.h"\n#include <robin_hood.h>\n\nnamespace ze::reflection::serialization\n{\n\ntemplate<typename T>\nstatic constexpr const char* archive_name = "";\n\ntemplate<typename T>\nstatic constexpr bool is_serializable_with_reflection = ...
778
48
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 29.21, "nodes": 492, "errors": 0, "source_hash": "e2cf9d6ce8e67cf027a380f69a97453ac20f5da0f61be0329c22467abe467018", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,478
c
INTERFACE SUBROUTINE RRTM_KGB2 END SUBROUTINE RRTM_KGB2 END INTERFACE
16.5
4
(translation_unit) "INTERFACE\nSUBROUTINE RRTM_KGB2\nEND SUBROUTINE RRTM_KGB2\nEND INTERFACE\n" (declaration) "INTERFACE\nSUBROUTINE" (type_identifier) "INTERFACE" (identifier) "SUBROUTINE" (;) "" (declaration) "RRTM_KGB2\nEND" (type_identifier) "RRTM_KGB2" (identifier) "END" (;) "" (decla...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 16.5, "nodes": 12, "errors": 0, "source_hash": "c8c04aa793ee0a24f97bbf91b603491aaa2dd94dd88eee5734bfb5ddf53f8194", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "INTERFACE\nS...
1,479
c
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can ob...
27.81
96
(translation_unit) "/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */\n/* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with t...
669
15
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 27.81, "nodes": 398, "errors": 0, "source_hash": "977e53a4087a37d4d9c62c345a483344a7f54841c1204c678ad609c7de2ee6b7", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,480
c
// // Created by 86133 on 29/5/2020. // #ifndef LIBRARY_USER_H #define LIBRARY_USER_H #include "../util/list_book.h" #define DEFAULT_CAP 16 typedef enum USER_TYPE{ ADMIN, STUDENT, GUEST } UserType; static UserType current_user_type = GUEST; typedef struct USER{ char* name; char* id; UserType ut; ...
24.1
29
(translation_unit) "//\n// Created by 86133 on 29/5/2020.\n//\n\n#ifndef LIBRARY_USER_H\n#define LIBRARY_USER_H\n\n#include "../util/list_book.h"\n\n#define DEFAULT_CAP 16\n\ntypedef enum USER_TYPE{\n ADMIN, STUDENT, GUEST\n} UserType;\n\nstatic UserType current_user_type = GUEST;\n\ntypedef struct USER{\n char* ...
238
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.1, "nodes": 181, "errors": 0, "source_hash": "68d36acc520305c75645a58bf69495a78cf972a79438146321240594ef42e6ca", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,481
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "O2OOrderBaseQueryCountModel.h" @class NSString; @interface O2OOrderCommentQueryCountModel : O2OOrderBaseQueryCountModel { _Boo...
33.46
28
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "O2OOrderBaseQueryCountModel.h"\n\n@class NSString;\n\n@interface O2OOrderCommentQueryCountModel : O2OOrder...
222
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.46, "nodes": 137, "errors": 0, "source_hash": "f8f516682590e9da83d841a7e7f82732aaf009cbd6c27f5751b0195e449f93b6", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,482
c
#pragma once #include <string> #include <string_view> namespace JSON{ using uint32 = std::uint32_t; using string = std::wstring; using string_view = std::wstring_view; using jchar = wchar_t; using NumberType = std::int64_t; }
22.1
10
(translation_unit) "#pragma once\n#include <string>\n#include <string_view>\nnamespace JSON{\n using uint32 = std::uint32_t;\n using string = std::wstring;\n using string_view = std::wstring_view;\n using jchar = wchar_t;\n using NumberType = std::int64_t;\n}\n" (preproc_call) "#pragma once\n" (preproc_directive)...
67
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.1, "nodes": 50, "errors": 0, "source_hash": "4baec9c4707beea2cb2de0030f2d037e20b60ab5b68be9822c3bfe5f7c2f9dd9", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
1,483
c
/* celt_types.h taken from libogg */ /******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *...
31.49
168
(translation_unit) "/* celt_types.h taken from libogg */ \n/******************************************************************** \n * * \n * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * \n * USE, DISTRIBUTION AND REPRODUCTION OF THIS...
754
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 31.49, "nodes": 604, "errors": 0, "source_hash": "ba525385124940992b552323661be605ab0b4183b142cbc29aab564ff8d6e216", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,484
c
/*Copyright (c) 2018 The Paradox Game Converters Project 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, modify, merge, p...
37.05
58
(translation_unit) "/*Copyright (c) 2018 The Paradox Game Converters Project\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n"Software"), to deal in the Software without restriction, including\nwithout limitation the rights to us...
401
30
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.05, "nodes": 222, "errors": 0, "source_hash": "60b70ac58a57d51b4a2926c69b80133a933f0ad2e4ed5e131f2c01ed7dead87c", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,485
c
typedef long * yy; #define yyu (-2147483647L) static yy yynull; extern yy yyh; extern yy yyhx; static yyErr(n,l) { yyAbort(n,"code", l); } extern yy yyglov_GentleFlag; extern yy yyglov_NontermList; extern yy yyglov_PreludeBlock; fix_code() { { yy yyb; yy yy_2_1; yy yy_4_1; yy yy_6_1; yy yy_8_1_1; yy yy_8_1_2_1; yy yy_8...
16
245
(translation_unit) "typedef long * yy;\n#define yyu (-2147483647L)\nstatic yy yynull;\nextern yy yyh;\nextern yy yyhx;\nstatic yyErr(n,l)\n{\nyyAbort(n,"code", l);\n}\nextern yy yyglov_GentleFlag;\nextern yy yyglov_NontermList;\nextern yy yyglov_PreludeBlock;\nfix_code()\n{\n{\nyy yyb;\nyy yy_2_1;\nyy yy_4_1;\nyy yy_6_...
2,102
1
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 16.0, "nodes": 1072, "errors": 0, "source_hash": "ac93e68a908bc37b62b7894c4a1af30570a8cf453432f01240214d21c7bafe7b", "categorized_nodes": 826}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typ...
1,486
c
#ifndef APPLICATIONWINDOWMANAGER_P_H #define APPLICATIONWINDOWMANAGER_P_H #include "Application.h" #include "Application_p.h" #include "ApplicationEventHandler.h" #include "basegui/Window.h" using namespace Magna::GUI; #include <list> namespace Magna{ namespace Application{ class APPLICATI...
25.07
83
(translation_unit) "#ifndef APPLICATIONWINDOWMANAGER_P_H \n#define APPLICATIONWINDOWMANAGER_P_H \n \n#include "Application.h" \n#include "Application_p.h" \n#include "ApplicationEventHandler.h" \n \n#include "basegui/Window.h" \nusing namespace Magna::GUI; \n \n#include <list> \n \nnamespace Magna{ \n namespace Applic...
250
10
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 25.07, "nodes": 141, "errors": 0, "source_hash": "e8f8b8c1dceff96ef2821b79e9d796afa3b4f149003a28500bfbe6efb7179396", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,487
c
#ifndef __A2GS_TOOLBOX_GETOPT_H__ #define __A2GS_TOOLBOX_GETOPT_H__ /* *** INCLUDES *** */ /* *** DEFINES *** */ #define A2GS_TOOLBOX_GETSHORTOPT_NO_PARAM -1 #define A2GS_TOOLBOX_GETSHORTOPT_BAD_LINE -2 #define A2GS_TOOLBOX_GETSHORTOPT_NO_MORE_PARAMS -3 #define A2GS_TOOLBOX_GE...
31.32
98
(translation_unit) "#ifndef __A2GS_TOOLBOX_GETOPT_H__ \n#define __A2GS_TOOLBOX_GETOPT_H__ \n \n \n/* *** INCLUDES *** */ \n \n \n/* *** DEFINES *** */ \n #define A2GS_TOOLBOX_GETSHORTOPT_NO_PARAM -1 \n #define A2GS_TOOLBOX_GETSHORTOPT_BAD_LINE -2 \n #define A2GS_TOOLBOX_GETSHORTOPT_NO_MORE_PARAMS ...
396
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 31.32, "nodes": 245, "errors": 0, "source_hash": "1ec80756aefa6736a2b3a1f7a547e1a5ecd666cc43a0d7d268e0e2e957ce96ee", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,488
c
#pragma once #include "cinn/runtime/cpu/use_extern_funcs.h" #include "cinn/runtime/cuda/use_extern_funcs.h"
35
3
(translation_unit) "#pragma once\n\n#include "cinn/runtime/cpu/use_extern_funcs.h"\n#include "cinn/runtime/cuda/use_extern_funcs.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "cinn/runtime/cpu/use_extern_funcs.h"\n" (#include) "#incl...
16
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 35.0, "nodes": 9, "errors": 0, "source_hash": "b1ef4eda85a58e7a74df4a6fb5a841a2aee77e328b3891336e71e0181ad36af9", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
1,489
c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99 ft=cpp: * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/....
36.71
206
(translation_unit) "/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n * vim: set ts=4 sw=4 et tw=99 ft=cpp:\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at htt...
2,239
73
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 36.71, "nodes": 1510, "errors": 0, "source_hash": "67ab30d6197b154463cfe111e4b4570aead468d81a791d73a552ea0351b23629", "categorized_nodes": 973}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,490
c
void slow_servo(int port, int start_position, int end_position, int change_of_ticks) { enable_servos(); int x=start_position; //will be used to hold the current position of the servo set_servo_position(port, start_position);// connected to port 0 msleep(200); while(get_servo_position(port)< end_p...
40.85
13
(translation_unit) "void slow_servo(int port, int start_position, int end_position, int change_of_ticks)\n{\n enable_servos();\n\n int x=start_position; //will be used to hold the current position of the servo\n\n set_servo_position(port, start_position);// connected to port 0\n msleep(200);\n\n while(ge...
106
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.85, "nodes": 60, "errors": 0, "source_hash": "f79d7d820069b2f3b5fbb53ed008751038c8d726108cb342fd5eeac379e0410a", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
1,491
c
#ifndef ONEWIRE_H #define ONEWIRE_H /* * Copyright © 2010-2015, <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 3 of the License, or * (at your opti...
33.63
67
(translation_unit) "#ifndef ONEWIRE_H\n#define ONEWIRE_H\n\n/*\n * Copyright © 2010-2015, <NAME> <<EMAIL>>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the L...
348
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 33.63, "nodes": 226, "errors": 0, "source_hash": "748ea920e1f3f0accdc9d7efd4de7f0584d2878a3efcc1a33287fe252e10358f", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,492
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UISearchBar.h" @interface UISearchBarIos7 : UISearchBar { } - (id)textField; - (void)updateTextField; - (void)layoutSubviews; @end
19.92
13
(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 "UISearchBar.h"\n\n@interface UISearchBarIos7 : UISearchBar\n{\n}\n\n- (id)textField;\n- (void)updateTextField;\n- (void)layoutSubviews;\n\n@end\n\n" (...
55
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.92, "nodes": 30, "errors": 0, "source_hash": "b2c58f5bff3e692d271d7ff0398e6a62d159665e554f60cfd7af366416166439", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
1,493
c
// // IFLYAdError.h // IFLYAdLib // // Created by JzProl.m.Qiezi on 2016/9/26. // Copyright © 2016年 iflytek. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, IFLYAdErrorCode) { //请求成功 IFLYAdErrorCodeSuccess = 70200, #pragma mark - server ////// 70001 ~ 70999 服务...
25.78
50
(translation_unit) "//\n// IFLYAdError.h\n// IFLYAdLib\n//\n// Created by JzProl.m.Qiezi on 2016/9/26.\n// Copyright © 2016年 iflytek. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, IFLYAdErrorCode) {\n //请求成功\n IFLYAdErrorCodeSuccess = 70200,\n \n#pragma mark - ...
212
14
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 25.78, "nodes": 139, "errors": 0, "source_hash": "4da58374799dcd9c2257c99512fce9ab19ae0f1de8a60ec993af68c0044e02fd", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
1,494
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/free6om/Documents/open-source/j2objc/j2objc/guava/sources/com/google/common/cache/ForwardingCache.java // #include "J2ObjC_header.h" #pragma push_macro("ComGoogleCommonCacheForwardingCache_INCLUDE_ALL") #if ComGoogleCommonCacheForwardingCache...
51.36
66
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: /Users/free6om/Documents/open-source/j2objc/j2objc/guava/sources/com/google/common/cache/ForwardingCache.java\n//\n\n#include "J2ObjC_header.h"\n\n#pragma push_macro("ComGoogleCommonCacheForwardingCache_INCLUDE_ALL")\n#if ComGoog...
515
41
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 51.36, "nodes": 362, "errors": 0, "source_hash": "26c58f1bb258c68c832e5d21ff29c0d5b1ae63b9b4861cb901a038e00040030d", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,495
c
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
29.42
62
(translation_unit) "/**\n * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or\n * more contributor license agreements. See the NOTICE file distributed\n * with this work for additional information regarding copyright ownership.\n * Green Energy Corp licenses this file to you under the Apache License,...
291
11
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 29.42, "nodes": 162, "errors": 0, "source_hash": "81906ed4b63e8bc2be7f71be93e5ad14886a5c60d9a1f3554daf8ba188ffa995", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,496
c
#pragma once #include "DunoGUIElement.h" #include <iostream> using namespace std; struct Updater { Updater(float constent, float& value, float* scaler) : constent(constent), value(value), scaler(scaler) {} void update() { cout << *scaler << endl; } float constent; float& value; float *scale...
23
30
(translation_unit) "#pragma once \n#include "DunoGUIElement.h" \n#include <iostream> \nusing namespace std; \n \nstruct Updater \n{ \n Updater(float constent, float& value, float* scaler) : \n constent(constent), \n value(value), \n scaler(scaler) {} \n void update() { cout << *scaler << endl; } \n float constent...
259
19
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.0, "nodes": 164, "errors": 0, "source_hash": "fe4981be7adee09881ea65a6cd5575639f735bd3f96da9e8d4ba2796bf609692", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,497
c
#include "mysetp.h" #include "oled.h" extern TIM_HandleTypeDef htim2; extern UART_HandleTypeDef huart1; uint8_t dds[]={11,22}; u8g2_t u8g2; unsigned char bmp[]= { 0xF8,0x0F,0x08,0x08,0x08,0x08,0xF8,0x0F,0x08,0x08,0x08,0x08,0xF8,0x0F,0x00,0x00,0xFF,0x7F,0x80,0x00,0x88,0x00,0x88,0x1F,0x88,0x00,0x94,0x00,0xA2,0x00,0x...
28.2
81
(translation_unit) "#include "mysetp.h"\n#include "oled.h"\n\n\nextern TIM_HandleTypeDef htim2;\nextern UART_HandleTypeDef huart1;\nuint8_t dds[]={11,22};\n\n\nu8g2_t u8g2;\n\nunsigned char bmp[]=\n{\n0xF8,0x0F,0x08,0x08,0x08,0x08,0xF8,0x0F,0x08,0x08,0x08,0x08,0xF8,0x0F,0x00,0x00,0xFF,0x7F,0x80,0x00,0x88,0x00,0x88,0x1F...
697
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 28.2, "nodes": 381, "errors": 0, "source_hash": "48a2fe09ef1865422d2cc32e61efd845ea88b79934865208185d4fb397f93d0f", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,498
c
version https://git-lfs.github.com/spec/v1 oid sha256:39f1081194b83d2340926d07b794c26d6640f76d6f63f6461d598d1983eef0ea size 4467
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:39f1081194b83d2340926d07b794c26d6640f76d6f63f6461d598d1983eef0ea\nsize 4467\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
24
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 17, "errors": 0, "source_hash": "c8b4368d0a26011415e9d0fa8ac9eb7cef025472ccfbe83332647b987a58401e", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version http...
1,499