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
#import "QCCroppedImageProvider.h" @interface QCCroppedProvider_CoreText : QCCroppedImageProvider - (BOOL)supportsCropping; - (BOOL)supportsTransformation; - (BOOL)supportsColorMatching; - (id)supportedPixelBufferFormatsForManager:(id)fp8; - (id)createPixelBufferForManager:(id)fp8 withFormat:(id)fp12 transformation...
43.78
9
(translation_unit) "#import "QCCroppedImageProvider.h"\n\n@interface QCCroppedProvider_CoreText : QCCroppedImageProvider\n\n\n- (BOOL)supportsCropping;\n- (BOOL)supportsTransformation;\n- (BOOL)supportsColorMatching;\n- (id)supportedPixelBufferFormatsForManager:(id)fp8;\n- (id)createPixelBufferForManager:(id)fp8 withFo...
123
7
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 43.78, "nodes": 72, "errors": 0, "source_hash": "198101aaf3ef1871fa44bc1865b53e636c54e7e2d178c3874bcae7ec1eb5acee", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
4,400
c
/*========================================================================= * * Program: Bifurcation Analysis Library * Module: balHeartNeuron.h * * Copyright (C) 2009,2010 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
29.97
92
(translation_unit) "/*=========================================================================\n *\n * Program: Bifurcation Analysis Library\n * Module: balHeartNeuron.h\n *\n * Copyright (C) 2009,2010 <NAME>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the t...
552
9
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 29.97, "nodes": 367, "errors": 0, "source_hash": "c58b3c724b82b90e76eb09e2875b8726b23bf04cd5cc284f63875a77c56d0842", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,401
c
#pragma once //Author: <NAME> //Date: 3/2/2015 #ifndef __Node_h #define __Node_h class Node { public: Node(); Node(char*); ~Node(); void print(); friend class list; private: char *data; Node *next,*last; }; #endif // __Node_h
11.19
21
(translation_unit) "#pragma once \n//Author: <NAME> \n//Date: 3/2/2015 \n \n#ifndef __Node_h \n#define __Node_h \nclass Node \n{ \npublic: \n Node(); \n Node(char*); \n ~Node(); \n void print(); \n friend class list; \n \nprivate: \n char *data; \n Node *next,*last; \n}; \n \n#endif // __Node_h" (preproc_call) "#prag...
83
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 11.19, "nodes": 50, "errors": 0, "source_hash": "7ef94e6029ef675dc72a457439ef1a26b43535af7aeb9240b9223bba2a7b7a65", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,402
c
/* ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/rftest.h#1 $ */ /*! \file "rftest.h" \brief definitions for RF Productino test */ /* ** $Log: rftest.h $ * * 12 20 2011 cp.wu * [WCXRP00001144] [MT6620 Wi-Fi][Driver][Firmware] Add RF_FUNC_ID for exposing device and related version ...
34.36
275
(translation_unit) "/*\n** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/rftest.h#1 $\n*/\n\n/*! \file "rftest.h"\n \brief definitions for RF Productino test\n\n*/\n\n\n\n/*\n** $Log: rftest.h $\n *\n * 12 20 2011 cp.wu\n * [WCXRP00001144] [MT6620 Wi-Fi][Driver][Firmware] Add RF_FUNC_ID for e...
666
7
{"language": "c", "success": true, "metadata": {"lines": 275, "avg_line_length": 34.36, "nodes": 518, "errors": 0, "source_hash": "ba818de2475e76332a9e9dc60b8deb2e1b0e18019c1f1209676aeba2a8816a36", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,403
c
/* ** Copyright 2004, <NAME>, <EMAIL>. ** Copyright 2004, <NAME>, <EMAIL>. All rights reserved. ** Distributed under the terms of the MIT License. */ #include <OS.h> #include <sys/resource.h> #include <errno.h> #include <errno_private.h> #include <symbol_versioning.h> // prototypes for the compiler int _getrusage_b...
26.84
44
(translation_unit) "/*\n** Copyright 2004, <NAME>, <EMAIL>.\n** Copyright 2004, <NAME>, <EMAIL>. All rights reserved.\n** Distributed under the terms of the MIT License.\n*/\n\n#include <OS.h>\n#include <sys/resource.h>\n#include <errno.h>\n\n#include <errno_private.h>\n#include <symbol_versioning.h>\n\n\n// prototypes...
321
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.84, "nodes": 202, "errors": 0, "source_hash": "2be4363645e1263e257d238e51518e0164864a356521d0cf86558fec13dae76a", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,404
c
// // AFJSONResponseSerializer+YDAgent.h // YDNetworkManager // // Created by wangyuandong on 2021/9/30. // #import <AFNetworking/AFURLResponseSerialization.h> NS_ASSUME_NONNULL_BEGIN @interface AFJSONResponseSerializer (YDAgent) @end NS_ASSUME_NONNULL_END
22.64
11
(translation_unit) "//\n// AFJSONResponseSerializer+YDAgent.h\n// YDNetworkManager\n//\n// Created by wangyuandong on 2021/9/30.\n//\n\n#import <AFNetworking/AFURLResponseSerialization.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AFJSONResponseSerializer (YDAgent)\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
25
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.64, "nodes": 15, "errors": 0, "source_hash": "cdc431d6bb9dc2cddbfd24588c0c34fe3f5f4841c9e00f8e85bc3f1d66058f93", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <A...
4,405
c
/* * Copyright © BeyondTrust Software 2004 - 2019 * 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 * * Un...
28.01
70
(translation_unit) "/*\n * Copyright © BeyondTrust Software 2004 - 2019\n * 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.apache.org/l...
116
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 28.01, "nodes": 90, "errors": 0, "source_hash": "f2929ab76df4bc49c541fed8721fc3c3b1617fe7b204c5cd1535ff403421a828", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
4,406
c
#pragma once /* * Copyright (c) <NAME>. All Rights Reserved. * * License: See License.txt */ /** * @file * @brief Special button for invoking notes. * @author <NAME> * * Revision History * 2009-02-11 Ported to wxWidgets. * 2005-12-12 Created */ #include <wx/imaglist.h> class CNoteButton : public wxBitmap...
16.57
21
(translation_unit) "#pragma once\n\n/*\n * Copyright (c) <NAME>. All Rights Reserved.\n *\n * License: See License.txt\n */\n\n/**\n * @file\n * @brief Special button for invoking notes.\n * @author <NAME>\n *\n * Revision History\n * 2009-02-11 Ported to wxWidgets.\n * 2005-12-12 Created\n */\n#include <wx/imaglist.h>...
35
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.57, "nodes": 18, "errors": 0, "source_hash": "b4ee29adbdbd3b4ff1678427c430c5c9cf1db4cbf321405afd9d5161115d6a35", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,407
c
#include "geometrycentral/surface/manifold_surface_mesh.h" #include "geometrycentral/surface/vertex_position_geometry.h" #include "colormap.h" #include <algorithm> #include <map> using namespace geometrycentral; using namespace geometrycentral::surface; class Distortion { public: ManifoldSurfaceMesh* mesh; ...
44
19
(translation_unit) "#include "geometrycentral/surface/manifold_surface_mesh.h"\n#include "geometrycentral/surface/vertex_position_geometry.h"\n\n#include "colormap.h"\n#include <algorithm>\n#include <map>\n\nusing namespace geometrycentral;\nusing namespace geometrycentral::surface;\n\nclass Distortion {\n\n public:\n...
211
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 44.0, "nodes": 138, "errors": 0, "source_hash": "0af3b58d9135c27322b16f01edb6ea3bedcb0cd4efacc6fb9af38613df28ec4e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,408
c
// Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "ospStudio.h" #include "ArcballCamera.h" // ospray sg #include "sg/Frame.h" #include "sg/Node.h" #include "sg/renderer/MaterialRegistry.h" // Plugin #include <chrono> #include "sg/scene/Animation.h" #include "sg/imp...
27.89
62
(ERROR) "// Copyright 2009-2021 Intel Corporation\n// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include "ospStudio.h"\n\n#include "ArcballCamera.h"\n// ospray sg\n#include "sg/Frame.h"\n#include "sg/Node.h"\n#include "sg/renderer/MaterialRegistry.h"\n// Plugin\n#include <chrono>\n#include "sg/scene/Animat...
512
40
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 27.89, "nodes": 262, "errors": 0, "source_hash": "4d8ff437c2002663470db177e85c84ebdf9a6cb6f478da8893f476883cd6177f", "categorized_nodes": 179}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright 2009-2021 In...
4,409
c
/******************************************************************************* * @file ctrl_block.h * * @author <NAME> * * @date 13/03/2021 * * @version 3.0 * * @brief Thread and process structures definitions. * * @details hread and process structures definitions. The files contains all the * data relati...
36.02
200
(translation_unit) "/*******************************************************************************\n * @file ctrl_block.h\n *\n * @author <NAME>\n *\n * @date 13/03/2021\n *\n * @version 3.0\n *\n * @brief Thread and process structures definitions.\n *\n * @details hread and process structures definitions. The files ...
421
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 36.02, "nodes": 253, "errors": 0, "source_hash": "4b885c383a8884e9df53fb19d821bb0b5af9a5c7308db0e9687a639a6026a5cb", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,410
c
// Inf_Nan.c // Chapter 5: Exploring Operators and Expressions // Learn C Programming, 2nd Edition // // Program to demonstrate a complex expression // two different ways. // First compute the value with a complex expression. // Then compute the value again with a sequence of simple expressions. #inc...
22
27
(translation_unit) "// Inf_Nan.c\n // Chapter 5: Exploring Operators and Expressions\n // Learn C Programming, 2nd Edition\n //\n // Program to demonstrate a complex expression\n // two different ways. \n // First compute the value with a complex expression.\n // Then compute the value again with a sequence of s...
129
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.0, "nodes": 69, "errors": 0, "source_hash": "d2832600070ccbfbf7d44e5f3cdcc93c7eb00ce049b4b854398008016195613b", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,411
c
/* * arch/arm/mach-pnx4008/gpio.c * * PNX4008 GPIO driver * * Author: <NAME> <<EMAIL>> * * Based on reference code by <NAME> and Z.Tabaaloute from Philips: * Copyright (c) 2005 Koninklijke Philips Electronics N.V. * * 2005 (c) MontaVista Software, Inc. This file is licensed under * the terms of the GNU Gener...
25.43
283
(translation_unit) "/*\n * arch/arm/mach-pnx4008/gpio.c\n *\n * PNX4008 GPIO driver\n *\n * Author: <NAME> <<EMAIL>>\n *\n * Based on reference code by <NAME> and Z.Tabaaloute from Philips:\n * Copyright (c) 2005 Koninklijke Philips Electronics N.V.\n *\n * 2005 (c) MontaVista Software, Inc. This file is licensed under...
2,231
0
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 25.43, "nodes": 1326, "errors": 0, "source_hash": "89c56d972446cf32512a694e39ae195eb25ff56e5cd538b190324d5d5a0860fe", "categorized_nodes": 928}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,412
c
// // TableWithCopyCellViewController.h // Everything // // Created by <NAME> on 10/21/15. // Copyright © 2015 Tau. All rights reserved. // #import <UIKit/UIKit.h> @interface TableWithCopyCellViewController : UIViewController @end
22.5
10
(translation_unit) "//\n// TableWithCopyCellViewController.h\n// Everything\n//\n// Created by <NAME> on 10/21/15.\n// Copyright © 2015 Tau. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TableWithCopyCellViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// TableWithCopy...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.5, "nodes": 9, "errors": 0, "source_hash": "3db9388f37d5146580e08a20b5ecc7358c15b6d583ebc9870efb89c4cd9f6fcf", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKi...
4,413
c
/****************************************** Copyright (c) 2020, <NAME> ******************************************/ #pragma once #include <vector> #include "util/formula.h" #include "decomposition/tree.h" /** * This file contains various classes required to implement a tree * decomposition. */ namespace decompos...
25.22
36
(translation_unit) "/******************************************\nCopyright (c) 2020, <NAME>\n******************************************/\n\n#pragma once\n\n#include <vector>\n\n#include "util/formula.h"\n#include "decomposition/tree.h"\n\n/**\n * This file contains various classes required to implement a tree\n * decom...
111
7
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.22, "nodes": 59, "errors": 0, "source_hash": "4f89109d38061e5c522c2e890b85a5640ea7ae718dab8d4eaef233a01e5b6d01", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,414
c
#pragma once #ifndef SYS_ONE_FILECHOOSER_WID_H #define SYS_ONE_FILECHOOSER_WID_H /**\class Sys_Multi_Filechooser_Dia \author <NAME> et al. \author produced by the Institute of Hydraulic Engineering (IWW), RWTH Aachen University \version 0.0.1 \date 2009...
31.49
74
(translation_unit) "#pragma once\n#ifndef SYS_ONE_FILECHOOSER_WID_H\n#define SYS_ONE_FILECHOOSER_WID_H\n\n/**\class Sys_Multi_Filechooser_Dia\n \author <NAME> et al.\n \author produced by the Institute of Hydraulic Engineering (IWW), RWTH Aachen University\n \version 0.0.1 ...
283
6
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 31.49, "nodes": 167, "errors": 0, "source_hash": "479b26aa061d595ecc0e8d1213dbabb57c0e387c409959fcf684825f89115296", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,415
c
//udp服务端 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> int main() { //创建socket int sockfd = socket(AF_INET, SOCK_DGRAM, 0); if(sockfd<0) { perror("socket error"); return -1; } int n...
20.26
43
(translation_unit) "//udp服务端\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include <arpa/inet.h>\n#include <netinet/in.h>\n#include <sys/socket.h>\n\nint main()\n{\n //创建socket\n int sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if(sockfd<0)\n {\n perror("soc...
330
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 20.26, "nodes": 191, "errors": 0, "source_hash": "2c458de5aba8523aff985366a6c95133b462d63705cf9329bd4377e04c281345", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de <...
4,416
c
/* interfConversion.h et interfConversion.cpp correspondent au menu Conversion La classe InterfCartes8B correspond à la fenêtre du menu Conversion -> Cartes de profondeur 8B ; elle permet de sélectionner les cartes à convertir ainsi que les paramètres de GrShade à appliquer pour toutes les cartes à convertir (couleurs ...
32.43
306
(ERROR) "/* interfConversion.h et interfConversion.cpp correspondent au menu Conversion\nLa classe InterfCartes8B correspond à la fenêtre du menu Conversion -> Cartes de profondeur 8B ; elle permet de sélectionner les cartes à convertir ainsi que les paramètres de GrShade à appliquer pour toutes les cartes à convertir ...
2,438
124
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 32.43, "nodes": 1710, "errors": 0, "source_hash": "2df489dd059885b6b1a589d17a05bcc61fc2db19ecd3152ee6f994bdb84b5116", "categorized_nodes": 1078}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/* interfConversion.h ...
4,417
c
// MaiBo // Copyright(c) 2015 <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // http://opensource.org/licenses/MIT // #pragma once #include "AutoSlot.h" // Simple fast signal // Create a signal: Signal<int, float, string> sig; // Connect to a signal: sig.connec...
35.92
167
(translation_unit) "// MaiBo\n// Copyright(c) 2015 <NAME>\n//\n// Distributed under the MIT Software License\n// See accompanying file LICENSE.txt or copy at\n// http://opensource.org/licenses/MIT\n//\n#pragma once\n\n#include "AutoSlot.h"\n\n// Simple fast signal\n// Create a signal: Signal<int, float, string> sig;\n/...
1,323
85
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 35.92, "nodes": 796, "errors": 0, "source_hash": "daac63d0e4ed61a45f5f8ffd3cecf96b3efb808c4f1cd1b583f3c20c0b18571e", "categorized_nodes": 557}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,418
c
/** @file buart.c @author <NAME>, UCECE @date 15 May 2018 @brief Buffered UART implementation. */ #include "errno.h" #include "ring.h" #include "buart.h" #include "peripherals.h" #include <string.h> #include <stdlib.h> /** A BUART can be disabled in the target.h file, e.g., using ...
20.27
277
(translation_unit) "/** @file buart.c \n @author <NAME>, UCECE \n @date 15 May 2018 \n @brief Buffered UART implementation. */ \n \n#include "errno.h" \n#include "ring.h" \n#include "buart.h" \n#include "peripherals.h" \n#include <string.h> \n#include <stdlib.h> \n \n \n/** A BUART can be disabled in the...
1,247
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 20.27, "nodes": 795, "errors": 0, "source_hash": "949299a0ff8b2881e65a1cf3a5fcebe062057ce67294811d34ef5f4c23ba3643", "categorized_nodes": 570}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,419
c
// Copyright 2016 ct_common authors. See LICENSE file for details. #ifndef CT_COMMON_COMMON_EXP_A_CAST_H_ #define CT_COMMON_COMMON_EXP_A_CAST_H_ #include <string> #include <vector> #include "ct_common/base/utils.h" #include "ct_common/common/exp_a_unary.h" namespace ct_common { // Class for casting between int/dou...
31.96
27
(translation_unit) "// Copyright 2016 ct_common authors. See LICENSE file for details.\n\n#ifndef CT_COMMON_COMMON_EXP_A_CAST_H_\n#define CT_COMMON_COMMON_EXP_A_CAST_H_\n\n#include <string>\n#include <vector>\n\n#include "ct_common/base/utils.h"\n#include "ct_common/common/exp_a_unary.h"\n\nnamespace ct_common {\n\n// ...
180
9
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.96, "nodes": 106, "errors": 0, "source_hash": "4a2992c78823d44d1bbffdf86d187944b128559d5d513ed039e32fc2d6a8a81a", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,420
c
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SKSL_EXTERNALVALUE #define SKSL_EXTERNALVALUE #include "src/sksl/ir/SkSLSymbol.h" namespace SkSL { class String; class Type; class ExternalValue : public Symbol { p...
33.6
96
(translation_unit) "/*\n * Copyright 2019 Google LLC\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef SKSL_EXTERNALVALUE\n#define SKSL_EXTERNALVALUE\n\n#include "src/sksl/ir/SkSLSymbol.h"\n\nnamespace SkSL {\n\nclass String;\nclass Type;\n\ncl...
423
24
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 33.6, "nodes": 232, "errors": 0, "source_hash": "6cb9e702aa9ec89ad3b473d28c8cb8c351373edee571cbdc79450dd35b39acff", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,421
c
// // PianoRollViewController.h // NAMIDI // // Created by abechan on 2/22/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "MeasureScaleAssistant.h" #import "TrackSelection.h" #import "NAMidiRepresentation.h" #import "MainWindowContext.h" @interface PianoRollViewController ...
33.32
19
(translation_unit) "//\n// PianoRollViewController.h\n// NAMIDI\n//\n// Created by abechan on 2/22/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "MeasureScaleAssistant.h"\n#import "TrackSelection.h"\n#import "NAMidiRepresentation.h"\n#import "MainWindowContext.h"\n\n@...
122
22
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.32, "nodes": 88, "errors": 0, "source_hash": "42fbae4505c1c8bb634f7cfc24447815fff93d51bf5c5e170088b0b45939014f", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
4,422
c
#ifndef BOUNDED_BUFFER_SEMANTIC_SUITE_NO_DEFAULT_H_ #define BOUNDED_BUFFER_SEMANTIC_SUITE_NO_DEFAULT_H_ #include "cute_suite.h" extern cute::suite make_suite_bounded_buffer_semantic_suite_no_default(); #endif
26.38
8
(translation_unit) "#ifndef BOUNDED_BUFFER_SEMANTIC_SUITE_NO_DEFAULT_H_ \n#define BOUNDED_BUFFER_SEMANTIC_SUITE_NO_DEFAULT_H_ \n \n#include "cute_suite.h" \n \nextern cute::suite make_suite_bounded_buffer_semantic_suite_no_default(); \n \n#endif \n" (preproc_ifdef) "#ifndef BOUNDED_BUFFER_SEMANTIC_SUITE_NO_DEFAULT_H_...
28
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 26.38, "nodes": 19, "errors": 0, "source_hash": "db513d967398b0ba74fb32f7aed72f906368c2968557e2a61264742165a16275", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
4,423
c
/* * The MIT License (MIT) * * Copyright 2019, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
34.75
61
(translation_unit) "/* \n * The MIT License (MIT)\n * \n * Copyright 2019, <NAME>\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation ...
242
9
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 34.75, "nodes": 176, "errors": 0, "source_hash": "580a1f81b7e69f48bbed5fdb22d6d9027eed10d2fc35d1f9c4a7d86ab9d67f19", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,424
c
/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
30.55
152
(translation_unit) "/*\n * Copyright 2006-2008 The FLWOR Foundation.\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 * Unle...
1,145
32
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 30.55, "nodes": 674, "errors": 0, "source_hash": "b811844217e52a3e2d816db12f66567da38fb86ca9adf7cbb2e7a504685d8e16", "categorized_nodes": 463}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,425
c
#ifndef RECT #define RECT struct Rect { private: int length; int breadth; // add an implementation field int area_; public: Rect(int l, int b) : length(l), breadth(b), area_(l * b) { } void disp() const; // object thru which the call is made cannot be changed int find_area() const; void change_length(int l); ...
19.06
18
(translation_unit) "#ifndef RECT\n#define RECT\nstruct Rect\n{\nprivate:\n int length;\n int breadth;\n // add an implementation field\n int area_;\npublic:\n Rect(int l, int b) : length(l), breadth(b), area_(l * b) { }\n void disp() const; // object thru which the call is made cannot be changed\n int find_area() cons...
118
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.06, "nodes": 74, "errors": 0, "source_hash": "24191aec18a2269518008c698ff77056325735cbe73a746d3558e51b0ac63ac2", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,426
c
/* Math xCore Library 2018 © <NAME> Licensed under the MIT license */ #pragma once namespace xCore { // Constant π const double PI = 3.14159265358979323846; // Constant e represents the base of natural logarithm const double E = 2.71828182845904523536; // Returns the absolute value of x: |x| int Abs(int x...
35.1
190
(translation_unit) "/*\n Math\n xCore Library\n 2018 © <NAME>\n Licensed under the MIT license\n*/\n\n#pragma once\n\nnamespace xCore\n{\n // Constant π\n const double PI = 3.14159265358979323846;\n\n // Constant e represents the base of natural logarithm\n const double E = 2.71828182845904523536;\n\n // Returns the ab...
1,266
103
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 35.1, "nodes": 843, "errors": 0, "source_hash": "c3f74778bfb42f1ad025db81349d84fe00157d1fa6e3de824dd1c17519fd08e3", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma ...
4,427
c
#ifndef JANELA_H #define JANELA_H class Janela { public: Janela(double, double, double, double); double getXmax(); double getYmax(); double getXmin(); double getYmin(); double xMin; double xMax; double yMin; double yMax; }; #endif // JANELA_H
15.47
17
(translation_unit) "#ifndef JANELA_H\n#define JANELA_H\n\n\nclass Janela\n{\npublic:\n Janela(double, double, double, double);\n double getXmax();\n double getYmax();\n double getXmin();\n double getYmin();\n double xMin;\n double xMax;\n double yMin;\n double yMax;\n};\n\n#endif // JANELA_H\...
82
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.47, "nodes": 49, "errors": 0, "source_hash": "2aeae4231da0a69070ef2781cceb91306c2ef94993a9b762fe086ec2e4557043", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,428
c
#pragma once #include "GameObject.h" #include <unordered_map> class ObjectManager { public: ObjectManager(); void init(); void update(float dt); void free(); private: std::vector<CGameObject*> mGameObjects; std::unordered_map<std::string, std::vector<IComponent*>> mComponentMap; }; static ObjectManager gObject...
20.73
15
(translation_unit) "#pragma once\n#include "GameObject.h"\n#include <unordered_map>\n\nclass ObjectManager\n{\npublic:\n ObjectManager();\n void init();\n void update(float dt);\n void free();\n\nprivate:\n std::vector<CGameObject*> mGameObjects;\n std::unordered_map<std::string, std::vector<IComponent*>> mComponentMap...
111
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.73, "nodes": 67, "errors": 0, "source_hash": "df98f68c2436caeb60d38b64041d8db80ca444a03f6ba2d24575a72cf1efa288", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,429
c
#ifndef __TIMEOUT_H__ #define __TIMEOUT_H__ #include "rpi.h" // problem: we want to time-out connections, but this won't // work with raw rpi usec timers since we might want to wait // longer than wrap around can happen. // // each time we want to wait, we record the current state of time. // // NOTE: you must keep c...
32.91
47
(translation_unit) "#ifndef __TIMEOUT_H__\n#define __TIMEOUT_H__\n#include "rpi.h"\n\n// problem: we want to time-out connections, but this won't\n// work with raw rpi usec timers since we might want to wait\n// longer than wrap around can happen.\n// \n// each time we want to wait, we record the current state of time....
305
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.91, "nodes": 190, "errors": 0, "source_hash": "d964b075d469b7bed0dad35c3779b865b0fe67754dea9e43f4a13b1429ea8213", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,430
c
Address of var[3] = bfedbcd8 Value of var[3] = 200 Address of var[2] = bfedbcd4 Value of var[2] = 100 Address of var[1] = bfedbcd0 Value of var[1] = 10
24.33
6
(translation_unit) "Address of var[3] = bfedbcd8\nValue of var[3] = 200\nAddress of var[2] = bfedbcd4\nValue of var[2] = 100\nAddress of var[1] = bfedbcd0\nValue of var[1] = 10" (declaration) "Address of var[3] = bfedbcd8" (type_identifier) "Address" (ERROR) "of" (identifier) "of" (init_declarator) ...
79
6
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.33, "nodes": 54, "errors": 0, "source_hash": "7782fa45fc7af9911f2fd67ff489463a25b97eb0299b2041883693e9e5c43f45", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "Address of ...
4,431
c
#include<stdio.h> int main(void) { long long d,i,j=1,x,y,integral,ans; while(scanf("%lld",&d)!=EOF) { integral=0; j=0; for(i=1;i<=600;i+=d) { y=0; x=0; ans=0; y=j*d*j*d; x=d; ans=x*y; integral+=ans; j++; } printf("%lld\n",integral); } return 0; }
11.72
25
(translation_unit) "#include<stdio.h>\nint main(void)\n{\n long long d,i,j=1,x,y,integral,ans;\n \n \n while(scanf("%lld",&d)!=EOF)\n {\n integral=0;\n j=0;\n for(i=1;i<=600;i+=d)\n {\n y=0;\n x=0;\n ans=0;\n y=j*d*j*d;\n x=d;\n ans=x*y;\n integral+=ans;\n j++; \n }\n printf("...
171
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 11.72, "nodes": 107, "errors": 0, "source_hash": "4df0db9bb24ecbbcbc2017716c10a87bd350a79ab76419c3d8c0c82f09b893fb", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,432
c
#import <UIKit/UIKit.h> @interface NothingPlayingViewController : UIViewController { @private BOOL _parseNotifications; BOOL _hasDisplayed; } @end
21.71
7
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface NothingPlayingViewController : UIViewController {\n @private\n BOOL _parseNotifications;\n BOOL _hasDisplayed;\n}\n@end" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@" ...
32
8
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.71, "nodes": 21, "errors": 0, "source_hash": "b5e68cb9a46ed80bb64851ece9224dd3ce05b980167a1c20cee22d31193f9245", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
4,433
c
#pragma once #include "JKCommon/JKCommon.h" BEGIN_JK_NAMESPACE class JK_API JKCommandBase { public: JKCommandBase( void ); virtual ~JKCommandBase( void ); public: virtual bool execute( void ); virtual bool reverse_execute( void ); }; END_JK_NAMESPACE
16.13
15
(translation_unit) "#pragma once\n\n#include "JKCommon/JKCommon.h"\n\nBEGIN_JK_NAMESPACE\n\n\nclass JK_API JKCommandBase\n{\npublic:\n JKCommandBase( void );\n\n virtual ~JKCommandBase( void );\n\npublic:\n virtual bool execute( void );\n\n virtual bool reverse_execute( void );\n};\n\n\nEND_JK_NAMESPACE" (preproc_cal...
75
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 16.13, "nodes": 45, "errors": 0, "source_hash": "36728ba8cbb10f3cd87fe9861413db0a7fef230fb7f9b8c40708fc9186813208", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,434
c
#ifndef H_SPATIALCOVID_INTERVENTION #define H_SPATIALCOVID_INTERVENTION #include "Policy.h" #include <vector> enum {POLICY_INSTANT = 1, POLICY_LINEAR, POLICY_BOOLEAN}; enum { POLICY_TRACING_PROB = 0, // Contact tracing probability POLICY_SOCIALDIST_PROB, // Generalized reduction of social interactions POL...
35.22
50
(translation_unit) "#ifndef H_SPATIALCOVID_INTERVENTION\n#define H_SPATIALCOVID_INTERVENTION\n\n#include "Policy.h"\n#include <vector>\n\n\nenum {POLICY_INSTANT = 1, POLICY_LINEAR, POLICY_BOOLEAN};\n\nenum { POLICY_TRACING_PROB = 0, // Contact tracing probability\n POLICY_SOCIALDIST_PROB, // Generalized reductio...
299
8
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 35.22, "nodes": 187, "errors": 0, "source_hash": "587354c89359a9624119effbbaa54557c1cadb5d8f39e2c9810fa23009f2efb8", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,435
c
/* Copyright 2020 Neijwiert 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 in writing, software distr...
24.17
139
(translation_unit) "/*\nCopyright 2020 Neijwiert\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/LICENSE-2.0\n\nUnless required by applicable law or agreed ...
683
33
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 24.17, "nodes": 428, "errors": 0, "source_hash": "79b61846b440676e0cae4242d16ca5b2de72dc0715207a5c8ca28184458455b2", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,436
c
#if !defined(AFX_DLGQUESTITEM_H__FB11A8EA_8885_4385_A947_9F89528B3E0E__INCLUDED_) #define AFX_DLGQUESTITEM_H__FB11A8EA_8885_4385_A947_9F89528B3E0E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // DlgQuestItem.h : header file // //////////////////////////////////////////////////////////////////...
28.98
43
(translation_unit) "#if !defined(AFX_DLGQUESTITEM_H__FB11A8EA_8885_4385_A947_9F89528B3E0E__INCLUDED_)\n#define AFX_DLGQUESTITEM_H__FB11A8EA_8885_4385_A947_9F89528B3E0E__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n// DlgQuestItem.h : header file\n//\n\n/////////////////////////////////////...
174
6
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.98, "nodes": 105, "errors": 0, "source_hash": "7a4414d77ac48c06927bf57af09fa42d93c9bbc973e06ac272fd5b031ec7ca4e", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
4,437
c
#include "BWindow.h"
20
1
(translation_unit) "#include "BWindow.h"\n" (preproc_include) "#include "BWindow.h"\n" (#include) "#include" (string_literal) ""BWindow.h"" (") """ (string_content) "BWindow.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 20.0, "nodes": 3, "errors": 0, "source_hash": "4d5ceae49592bf4f2bcdbec10c1b831cdc304abcfdb49c7f912acd7f8d092841", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
4,438
c
/* * Copyright (c) 2007 SIEGE Development Team * All rights reserved. * * This file is part of libSIEGE. * * This software is copyrighted work licensed under the terms of the * 2-clause BSD license. Please consult the file "license.txt" for * details. * * If you did not recieve the file with this program, ple...
28.84
69
(translation_unit) "/*\n * Copyright (c) 2007 SIEGE Development Team\n * All rights reserved.\n *\n * This file is part of libSIEGE.\n *\n * This software is copyrighted work licensed under the terms of the\n * 2-clause BSD license. Please consult the file "license.txt" for\n * details.\n *\n * If you did not recieve t...
447
16
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 28.84, "nodes": 334, "errors": 0, "source_hash": "cd0002ab39f2591e7fc4f1196232b33b5f9212f757b85a501610b460383dfd10", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,439
c
////////////////////////////////////////////////////////////////////////// // // EXAMPLE OF A WinToast HANDLER CLASS // Extend at your own convenience // ////////////////////////////////////////////////////////////////////////// #pragma once #include "WinToastLib.h" #define WM_TOASTMSG (WM_USER + 714) class MainFra...
33.5
26
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n//\n// EXAMPLE OF A WinToast HANDLER CLASS\n// Extend at your own convenience\n//\n//////////////////////////////////////////////////////////////////////////\n\n#pragma once\n#include "WinToastLib.h"\n\n#define WM_TOASTMSG ...
154
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.5, "nodes": 89, "errors": 0, "source_hash": "da1988c0544458257332f9a4a5090d305884fec86d2bd3b56c4cbd6872473ff2", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,440
c
#ifndef __NATASHA_GAME3X5_H__ #define __NATASHA_GAME3X5_H__ #include <assert.h> #include <map> #include <string> #include <vector> #include "../protoc/base.pb.h" #include "gamelogic.h" #include "lines.h" #include "logicline2.h" #include "logicscatter2.h" #include "paytables.h" #include "staticcascadingreels3x5.h" #inc...
34.39
67
(translation_unit) "#ifndef __NATASHA_GAME3X5_H__\n#define __NATASHA_GAME3X5_H__\n\n#include <assert.h>\n#include <map>\n#include <string>\n#include <vector>\n#include "../protoc/base.pb.h"\n#include "gamelogic.h"\n#include "lines.h"\n#include "logicline2.h"\n#include "logicscatter2.h"\n#include "paytables.h"\n#include...
904
13
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 34.39, "nodes": 517, "errors": 0, "source_hash": "364a579281e219fc93efcbb8cc3977bc1e5ffd01e469a7be29af784619dfdcbd", "categorized_nodes": 419}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,441
c
#ifndef _NOFX_OBJECT_WRAP_H_ #define _NOFX_OBJECT_WRAP_H_ // Forward declaring node's original objectWrap // At this point we don't need to know its implementation // Derived classes will know it. namespace node { class ObjectWrap; } // Forward declaring std shared_ptr // At this point we don't need to know its i...
37.44
54
(translation_unit) "#ifndef _NOFX_OBJECT_WRAP_H_\n#define _NOFX_OBJECT_WRAP_H_\n\n// Forward declaring node's original objectWrap\n// At this point we don't need to know its implementation\n// Derived classes will know it.\n\nnamespace node {\n class ObjectWrap;\n}\n\n\n\n// Forward declaring std shared_ptr\n// At this...
161
7
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 37.44, "nodes": 92, "errors": 0, "source_hash": "9ad86c3ae274e3ec8fef948030bf646e2393e0f7c99f7c1f006354a15b7655fa", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,442
c
#ifndef _FABRICAD_BLOCKS_BASICBUILDINGBLOCK_H_ #define _FABRICAD_BLOCKS_BASICBUILDINGBLOCK_H_ #include <string> #include "../shapes/shapes.h" #include "../config/BaseElement.h" using namespace std; namespace fabricad::blocks { /* * The getRenderedLayers() returns a vector of vectors. Each layer is a vector ...
31.68
57
(translation_unit) "#ifndef _FABRICAD_BLOCKS_BASICBUILDINGBLOCK_H_\n#define _FABRICAD_BLOCKS_BASICBUILDINGBLOCK_H_\n\n#include <string>\n\n#include "../shapes/shapes.h"\n#include "../config/BaseElement.h"\n\nusing namespace std;\n\n\n\nnamespace fabricad::blocks {\n\n /*\n * The getRenderedLayers() returns a vector ...
262
17
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.68, "nodes": 154, "errors": 0, "source_hash": "5e8191fe71ff7d93ba0f01297743b4ac87857bc4dc031f52f4aee56f4309496e", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,443
c
#ifndef FUZZY_LOGIC_ISPARABLE_H #define FUZZY_LOGIC_ISPARABLE_H #include "Is.h" namespace fuzzylogic::fuzzy { template<typename T> class IsParable : public Is<T> { private: T valueA; T valueB; public: explicit IsParable(const T &_valueA, const T &_valueB); T evaluat...
29.98
43
(translation_unit) "#ifndef FUZZY_LOGIC_ISPARABLE_H\n#define FUZZY_LOGIC_ISPARABLE_H\n\n#include "Is.h"\n\nnamespace fuzzylogic::fuzzy {\n\n template<typename T>\n class IsParable : public Is<T> {\n\n private:\n T valueA;\n T valueB;\n\n public:\n explicit IsParable(const T &_valueA, co...
442
39
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 29.98, "nodes": 276, "errors": 0, "source_hash": "74a81374ac99ffcf0ebc0accad310cec57e91b1345d1b7457367a20241a80c76", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,444
c
#ifndef CHANNEL_H_IZJI8D3M #define CHANNEL_H_IZJI8D3M #include <queue> #include <memory> #include <mutex> #include "lockm.h" namespace smnet{ template<typename Type> class channel { public: channel(size_t maxSize = 0):_MAX_SIZE(maxSize), _exp(nullptr), _alive(true){ if(_MAX_SIZE == 0){ canNotWriteIn()...
20.97
119
(translation_unit) "#ifndef CHANNEL_H_IZJI8D3M\n#define CHANNEL_H_IZJI8D3M\n\n#include <queue>\n#include <memory>\n#include <mutex>\n#include "lockm.h"\n\nnamespace smnet{\n template<typename Type>\n class channel {\n public:\n channel(size_t maxSize = 0):_MAX_SIZE(maxSize), _exp(nullptr), _alive(true){\n if(_MAX...
878
18
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 20.97, "nodes": 512, "errors": 0, "source_hash": "0b115ae080dd4c925d39023bb9faef8b903b86352c5c96d19baa75942dcdf43f", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,445
c
#pragma once #include "CKDef.h" #include "CK3dEntity.h" typedef enum VXLIGHT_TYPE { VX_LIGHTPOINT = 1UL, VX_LIGHTSPOT = 2UL, VX_LIGHTDIREC = 3UL, VX_LIGHTPARA = 4UL } VXLIGHT_TYPE; class BML_EXPORT CKLight : public CK3dEntity { public: void SetColor(const VxColor& c); const VxColor& GetColor(); void SetConsta...
25.09
46
(translation_unit) "#pragma once\n\n#include "CKDef.h"\n#include "CK3dEntity.h"\n\ntypedef enum VXLIGHT_TYPE {\n VX_LIGHTPOINT = 1UL,\n VX_LIGHTSPOT = 2UL,\n VX_LIGHTDIREC = 3UL,\n VX_LIGHTPARA = 4UL\n} VXLIGHT_TYPE;\n\nclass BML_EXPORT CKLight : public CK3dEntity {\npublic:\n void SetColor(const VxColor& c);\n const V...
399
6
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.09, "nodes": 240, "errors": 0, "source_hash": "1a795e34c7348b990dce58d6e62972f21dfd27d4e0112f907a2885bc25203ad6", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,446
c
// // NSString+SY.h // photo // // Created by shushaoyong on 2016/10/24. // Copyright © 2016年 踏潮. All rights reserved. // #import <UIKit/UIKit.h> @interface NSString (SY) /** * 将阿拉伯数字转换为汉字 * * @return <#return value description#> */ + (NSString *)numberToChineseCharacter:(NSInteger)num; /** * 获取一个文件的m...
15.54
120
(translation_unit) "//\n// NSString+SY.h\n// photo\n//\n// Created by shushaoyong on 2016/10/24.\n// Copyright © 2016年 踏潮. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NSString (SY)\n\n\n/**\n * 将阿拉伯数字转换为汉字\n *\n * @return <#return value description#>\n */\n+ (NSString *)numberToChineseCharac...
362
27
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 15.54, "nodes": 225, "errors": 0, "source_hash": "e494ae83a40b5449f214e87423947c130afa10546b6a01c55b504e81b6787fd3", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKi...
4,447
c
/* * File: sampler.h * Author: <NAME> * * Created on November 4, 2011, 2:58 PM */ #ifndef SAMPLER_H #define SAMPLER_H class Sampler { protected: WaterSystem * system; public: Sampler() {} virtual ~Sampler() {} virtual void start() = 0; virtual void sample() = 0; vir...
16.25
24
(translation_unit) "/* \n * File: sampler.h \n * Author: <NAME> \n * \n * Created on November 4, 2011, 2:58 PM \n */ \n \n#ifndef SAMPLER_H \n#define SAMPLER_H \n \nclass Sampler { \nprotected: \n WaterSystem * system; \n \npublic: \n Sampler() {} \n virtual ~Sampler() {} \n virtual void start() = 0; \n ...
106
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 16.25, "nodes": 68, "errors": 0, "source_hash": "55cadd4cb7ffbba7fa690a60ac66c1064071b957ce87cbbfbecde2c66ad0a1b2", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,448
c
#pragma once #include "game_plugin/Export.h" #include <qsf/component/Component.h> #include <qsf/audio/AudioProxy.h> namespace flo11 { class BMAComponent : public qsf::Component { public: static const uint32 COMPONENT_ID; std::vector<uint64> mAlarmLights; public: /** * @brief * Constructor * ...
24.58
50
(translation_unit) "#pragma once\n\n#include "game_plugin/Export.h"\n\n#include <qsf/component/Component.h>\n#include <qsf/audio/AudioProxy.h>\n\nnamespace flo11\n{\n\n class BMAComponent : public qsf::Component\n {\n\n public:\n static const uint32 COMPONENT_ID;\n std::vector<uint64> mAlarmLights;\n\n public:\n /**...
326
15
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 24.58, "nodes": 196, "errors": 0, "source_hash": "8a3d8c125fff9a85cb6fcbb6b73b9521fd6f13007f74c9f89cc0505f35e4496f", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,449
c
#include "vnmodrabin_gmp.h" #include <gmp.h> #include <stdlib.h> #include <assert.h> #include <time.h> typedef struct tagVNModRabin_GMPCtx { VNAsymCryptCtx_t mCtx; mpz_t mN; mpz_t mD; } VNModRabin_GMPCtx_t; VNAsymCryptCtx_t * VNModRabinSign_GMP_CtxNew() { VNModRabin_GMPCtx_t * gmpCtx = (VNModRabin_GMPCtx_t *)...
32.02
213
(translation_unit) "#include "vnmodrabin_gmp.h"\n\n#include <gmp.h>\n\n#include <stdlib.h>\n#include <assert.h>\n#include <time.h>\n\ntypedef struct tagVNModRabin_GMPCtx {\n VNAsymCryptCtx_t mCtx;\n\n mpz_t mN;\n mpz_t mD;\n} VNModRabin_GMPCtx_t;\n\nVNAsymCryptCtx_t * VNModRabinSign_GMP_CtxNew()\n{\n VNModRabin_GMPCtx_...
2,401
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 32.02, "nodes": 1462, "errors": 0, "source_hash": "9985756af2e87edbeab244b81e79d751ed8e370381dca21ed5dbd1ade85ef7b4", "categorized_nodes": 1110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,450
c
/* * Copyright (c) Meta Platforms, Inc. and its affiliates. * * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <sys/types.h> #include <unistd.h> int main(int argc, char* argv[]) { write(STDOUT...
27.7
23
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and its affiliates.\n *\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n#include <sys/types.h>\n#include <unistd.h>\n\nint main(int argc,...
195
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.7, "nodes": 87, "errors": 0, "source_hash": "b696ff011fde9b4752d61e19950a89b9788fe611f9fb6d130b0358a0805d0cb0", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,451
c
#include "graphics.h" #include "conf_graphics.h" #include "conf_tree_gfx.h" #include "tree.h" #include "tree_gfx.h" #include <stdlib.h> #include <time.h> #include "evolution.h" #include "conf_evolution.h" #include "misc.h" #include "threads.h" #include "threadpool.h" #include <stdio.h> #include "misc.h" #define NUM_GE...
21.16
155
(translation_unit) "#include "graphics.h"\n#include "conf_graphics.h"\n#include "conf_tree_gfx.h"\n#include "tree.h"\n#include "tree_gfx.h"\n#include <stdlib.h>\n#include <time.h>\n#include "evolution.h"\n#include "conf_evolution.h"\n#include "misc.h"\n#include "threads.h"\n#include "threadpool.h"\n#include <stdio.h>\n...
1,189
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 21.16, "nodes": 671, "errors": 0, "source_hash": "9c5e3598b8c0e264f7408b106f78e758a0bd7c5a2c4f7fd04a37425e164f43b4", "categorized_nodes": 513}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,452
c
#ifndef __vtkTestReader_h #define __vtkTestReader_h #include <vtkPolyDataAlgorithm.h> class vtkTestReader : public vtkPolyDataAlgorithm { public: vtkTypeMacro(vtkTestReader,vtkPolyDataAlgorithm); void PrintSelf(ostream& os, vtkIndent indent); static vtkTestReader *New(); protected: vtkTestReader(); ~vtk...
28.32
22
(translation_unit) "#ifndef __vtkTestReader_h\n#define __vtkTestReader_h\n\n#include <vtkPolyDataAlgorithm.h>\n\nclass vtkTestReader : public vtkPolyDataAlgorithm \n{\npublic:\n vtkTypeMacro(vtkTestReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n static vtkTestReader *New();\n \npro...
165
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.32, "nodes": 100, "errors": 0, "source_hash": "6e4493ff41f4b3f6050f4d0f791dd95ccb50a5f0efef079aa7d3ee9a51209bc3", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,453
c
#pragma once #include <unistd.h> #include <stdint.h> #define ETHERTYPE_IP 0x0800 #define ETHERTYPE_ARP 0x0806 #define ETHERNET_ADDR_LEN 6 #define ETHERNET_HEADER_LEN 14 uint16_t enc28j60_get_ethertype(const uint8_t *data, size_t len); const uint8_t *enc28j60_get_target(const uint8_t *data, size_t len); const uint8...
47.33
12
(translation_unit) "#pragma once\n\n#include <unistd.h>\n#include <stdint.h>\n\n#define ETHERTYPE_IP 0x0800\n#define ETHERTYPE_ARP 0x0806\n\n#define ETHERNET_ADDR_LEN 6\n#define ETHERNET_HEADER_LEN 14\n\nuint16_t enc28j60_get_ethertype(const uint8_t *data, size_t len);\nconst uint8_t *enc28j60_get_target(const uint8_t...
157
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 47.33, "nodes": 114, "errors": 0, "source_hash": "7f99abe0c935cb928c2433526c0f838f520ac1563afe72ad7fe392e29af6abe2", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,454
c
#import <Flutter/Flutter.h> @interface FlutterNativeWebPlugin : NSObject<FlutterPlugin> @end
30
3
(translation_unit) "#import <Flutter/Flutter.h>\n\n@interface FlutterNativeWebPlugin : NSObject<FlutterPlugin>\n@end\n" (preproc_call) "#import <Flutter/Flutter.h>\n" (preproc_directive) "#import" (preproc_arg) "<Flutter/Flutter.h>" (ERROR) "@interface FlutterNativeWebPlugin : NSObject<FlutterPlugin>\n@end"...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 30.0, "nodes": 12, "errors": 0, "source_hash": "6ceaa5ffe8aa33c16f79bc89433fbbefe56f34443304472e3c8bd50b096d575d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Flu...
4,455
c
#pragma once #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <glad/glad.h> enum class Direction { FORWARD, BACKWARD, LEFT, RIGHT, UP, DOWN }; class Camera { private: float sensitivity, ylimit, speed; glm::vec3 direction, position; public: inline stat...
39.45
55
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include <glm/gtc/matrix_transform.hpp>\n#include <glm/gtc/type_ptr.hpp>\n\n#include <glad/glad.h>\n\nenum class Direction\n{\n FORWARD,\n BACKWARD,\n LEFT,\n RIGHT,\n UP,\n DOWN\n};\n\nclass Camera\n{\nprivate:\n float sensitivity, ylimit, speed;\n glm::vec3 ...
851
42
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 39.45, "nodes": 468, "errors": 0, "source_hash": "8867888080ed0a329b834aee8fc4da5e94ae00288958e484e9bb98b7bdc8bbb0", "categorized_nodes": 335}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,456
c
#pragma once // includes #include "cSistema.h" #define ESCUDO_MUEVE_DELAY 6 #define ESCUDO_NUM_FRAMES 4 #define ESCUDO_SEC_NUM_FRAMES 12 #define ESCUDO_TIRO_SPEED 16.0f #define ESCUDO_VUELTA_SPEED 4 #define ESCUDO_TIRO 0 #define ESCUDO_VUELTA 1 #define ESCUDO_ANCLADO 2 #define ESCUDO_DIST_ANCLA 10.0f #define ES...
19.21
42
(translation_unit) "#pragma once\n\n\n// includes\n#include "cSistema.h"\n\n\n#define ESCUDO_MUEVE_DELAY 6\n#define ESCUDO_NUM_FRAMES 4\n#define ESCUDO_SEC_NUM_FRAMES 12\n\n#define ESCUDO_TIRO_SPEED 16.0f\n#define ESCUDO_VUELTA_SPEED 4\n\n#define ESCUDO_TIRO 0\n#define ESCUDO_VUELTA 1\n#define ESCUDO_ANCLADO 2\n\n#defi...
254
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 19.21, "nodes": 170, "errors": 0, "source_hash": "92b4eddfd9a72307c0798d888fc90213552a5a0ce88450192a6c8a8be9562edd", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,457
c
// // MainViewController.h // Live // // Created by Cheng on 2017/5/5. // Copyright © 2017年 Joe. All rights reserved. // #import <UIKit/UIKit.h> @interface MainViewController : UITabBarController @end
19.5
10
(translation_unit) "//\n// MainViewController.h\n// Live\n//\n// Created by Cheng on 2017/5/5.\n// Copyright © 2017年 Joe. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MainViewController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// MainViewController.h" (comment) "// Live...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 10, "errors": 0, "source_hash": "c50271f6fca92764a7232c8c740f988c6df5c972b998832027c736b766e4d1cc", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
4,458
c
/* Author: <NAME> <<EMAIL>> License: MIT Contains the bitboard and other relevant declarations. */ #ifndef _COELACANTH_BITBOARD_ #define _COELACANTH_BITBOARD_ #include <stdint.h> // for uint64_t typedef uint64_t bb_t; // just a bitboard // Array indices for bitboards #define wPawnBMap 0 #define bPawnBMap 1 #de...
22.12
24
(translation_unit) "/*\n\nAuthor: <NAME> <<EMAIL>>\nLicense: MIT\n\nContains the bitboard and other relevant declarations.\n\n*/\n\n#ifndef _COELACANTH_BITBOARD_\n#define _COELACANTH_BITBOARD_\n\n#include <stdint.h> // for uint64_t\n\ntypedef uint64_t bb_t; // just a bitboard\n\n// Array indices for bitboards\n#defin...
69
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.12, "nodes": 62, "errors": 0, "source_hash": "b51f2b3840cbd4f24ce6822e4a0f878fb348ec5f20aa2a47590904a51fae51f5", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,459
c
// // Created by LCX on 2020/7/2. // #include <stdio.h> #include <malloc.h> struct ListNode { int val; struct ListNode *next; }; struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; }; struct ListNode* findMidNode(struct ListNode* head) { if(head == NULL...
22.38
48
(translation_unit) "//\n// Created by LCX on 2020/7/2.\n//\n#include <stdio.h>\n#include <malloc.h>\n struct ListNode {\n int val;\n struct ListNode *next;\n };\n\n struct TreeNode {\n int val;\n struct TreeNode *left;\n struct TreeNode *right;\n };\n\n\nstruct ListNode* findMidNode(struct ...
371
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.38, "nodes": 263, "errors": 0, "source_hash": "5cb54c74423a622f24340e9e5cba2a7458a262c287bfd03f22530690ee9ba318", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,460
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #if !defined(Q_MOC_RUN) #include "../StandardPluginsConfig.h" #include <MysticQt/Sou...
36.47
57
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#if !defined(Q_MOC_RUN)\n#include "../StandardPluginsC...
351
12
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 36.47, "nodes": 229, "errors": 0, "source_hash": "3939718e0c3514cba1391a536a80d910dc5df341b015458343655eaf3d050e21", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,461
c
/* Author: ChrisB Description: Header file defining functions that map controller input to X11 key events. Date: Summer 2020 */ #ifndef __KEY_MAP__ #define __KEY_MAP__ //Xlib headers #include <X11/Xlib.h> #include <X11/keysym.h> //source code headers #include "pro_con_utils.h" //define macros #define POINTER_MOV...
36.86
100
(translation_unit) "/*\n\nAuthor: ChrisB\nDescription: Header file defining functions that map controller input to X11 key events.\nDate: Summer 2020\n\n*/\n\n\n#ifndef __KEY_MAP__\n#define __KEY_MAP__\n\n//Xlib headers\n#include <X11/Xlib.h>\n#include <X11/keysym.h>\n\n//source code headers\n#include "pro_con_utils.h"...
629
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 36.86, "nodes": 496, "errors": 0, "source_hash": "8fbd7484a6dd4d7b123c14a0ae28d61ecb3a8b7336538054b5e5ddf96a60e495", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,462
c
/***************************************************************************/ /* * m68EZ328.c - 68EZ328 specific config * * Copyright (C) 1993 <NAME> * Copyright (C) 1999 <NAME> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directo...
30.08
61
(translation_unit) "/***************************************************************************/\n\n/*\n * m68EZ328.c - 68EZ328 specific config\n *\n * Copyright (C) 1993 <NAME>\n * Copyright (C) 1999 <NAME>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the fil...
326
5
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.08, "nodes": 206, "errors": 0, "source_hash": "aa05c85007f466a3a78abbc73682a4e465bad7785a2b19557a3c50032b4933de", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,463
c
#ifndef WIN32HTMLVIEW_H #define WIN32HTMLVIEW_H #include "../gui/htmlview.h" #include "win32gadget.h" struct Win32HtmlViewRep; class Win32HtmlView : public BBHtmlView,public Win32WndProc{ Win32Gadget _gadget; Win32HtmlViewRep *_rep; protected: ~Win32HtmlView(); public: Win32HtmlView( BBGroup *group,int style )...
25.76
29
(translation_unit) "#ifndef WIN32HTMLVIEW_H\n#define WIN32HTMLVIEW_H\n\n#include "../gui/htmlview.h"\n\n#include "win32gadget.h"\n\nstruct Win32HtmlViewRep;\n\nclass Win32HtmlView : public BBHtmlView,public Win32WndProc{\n Win32Gadget _gadget;\n Win32HtmlViewRep *_rep;\nprotected:\n ~Win32HtmlView();\npublic:\n Win32Ht...
268
3
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.76, "nodes": 183, "errors": 0, "source_hash": "dfe9e03a0b2f39a9151b974e5d648f996fa321d53b6f6f5f1ac5fa2c1dd99e30", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,464
c
/**************************************************************** Copyright (C) 1997-2000 Lucent Technologies All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all...
27.46
159
(translation_unit) "/****************************************************************\nCopyright (C) 1997-2000 Lucent Technologies\nAll Rights Reserved\n\nPermission to use, copy, modify, and distribute this software and\nits documentation for any purpose and without fee is hereby\ngranted, provided that the above copy...
1,478
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 27.46, "nodes": 906, "errors": 0, "source_hash": "585efe6348a6d20c13ad9b88e825a60b225833d55652165916bcd15445311acf", "categorized_nodes": 627}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,465
c
/*++ Copyright (c) 2007 Microsoft Corporation Module Name: rewriter_types.h Abstract: Lean and mean rewriter Author: Leonardo (leonardo) 2011-04-10 Notes: --*/ #ifndef REWRITER_TYPES_H_ #define REWRITER_TYPES_H_ #include "util/z3_exception.h" #include "util/common_msgs.h" /** \brief Builtin rew...
33.31
39
(translation_unit) "/*++\nCopyright (c) 2007 Microsoft Corporation\n\nModule Name:\n\n rewriter_types.h\n\nAbstract:\n\n Lean and mean rewriter\n\nAuthor:\n\n Leonardo (leonardo) 2011-04-10\n\nNotes:\n\n--*/\n#ifndef REWRITER_TYPES_H_\n#define REWRITER_TYPES_H_\n\n#include "util/z3_exception.h"\n#include "util...
242
4
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 33.31, "nodes": 152, "errors": 0, "source_hash": "22e4f7e1dc210c597cd262e4bfd44e2c33f1c453fd19ffe0a833b34ef5057b77", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,466
c
/* * Copyright (c) 2015, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _FSL_EWM_H_ #define _FSL_EWM_H_ #include "fsl_common.h" /*! * @addtogroup ewm * @{ */ /***********************************************...
28.69
218
(translation_unit) "/* \n * Copyright (c) 2015, Freescale Semiconductor, Inc. \n * Copyright 2016-2017 NXP \n * All rights reserved. \n * \n * SPDX-License-Identifier: BSD-3-Clause \n */ \n#ifndef _FSL_EWM_H_ \n#define _FSL_EWM_H_ \n \n#include "fsl_common.h" \n \n/*! \n * @addtogroup ewm \n * @{ \n */ \n \n/**********...
399
0
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 28.69, "nodes": 250, "errors": 0, "source_hash": "4d5d7c5d94ceeb919f1ea1b5cffdfff4505dcc017e3562aaa0d64ffc562354f5", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,467
c
/****************************************************************************** * File Name : cmd_a.c * Date First Issued : 11/04/2014 * Board : PC * Description : Same as M command but monitors ascii in CAN msgs *****************************************************************************...
36.44
106
(translation_unit) "/******************************************************************************\n* File Name : cmd_a.c\n* Date First Issued : 11/04/2014\n* Board : PC\n* Description : Same as M command but monitors ascii in CAN msgs\n****************************************************...
662
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 36.44, "nodes": 361, "errors": 0, "source_hash": "e0b7bd8a685cc0eceafb1bcbfe73d050f71acde56820d0ac3f32889b8659678c", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,468
c
#define DEFINITION_TreeMod1 #ifndef DEFINITION_IO #include "IO.h" #endif #ifndef DEFINITION_Tree #include "Tree.h" #endif #define Zq0A4gqDJ_0 32 extern ZfM_3 Zq0A4gqDJ_1; extern BOOLEAN Zq0A4gqDJ_2; extern PROC Zq0A4gqDJ_3; extern void Zq0A4gqDJ_4 ARGS ((Zq0A4_153 Z123)); extern void Zq0A4gqDJ_5 ARGS ((Zq0A4_153 Z12...
27.88
17
(translation_unit) "#define DEFINITION_TreeMod1\n\n#ifndef DEFINITION_IO\n#include "IO.h"\n#endif\n\n#ifndef DEFINITION_Tree\n#include "Tree.h"\n#endif\n\n#define Zq0A4gqDJ_0 32\nextern ZfM_3 Zq0A4gqDJ_1;\nextern BOOLEAN Zq0A4gqDJ_2;\nextern PROC Zq0A4gqDJ_3;\nextern void Zq0A4gqDJ_4 ARGS ((Zq0A4_153 Z123));\nextern vo...
148
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.88, "nodes": 102, "errors": 0, "source_hash": "19a927771eb302e115c108f95a04ecb8e9f436b06c83748458201288c7dbcc0c", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define D...
4,469
c
#pragma once #include "display.h" void xrandr_init (void); int xrandr_event (XEvent *); int xrandr_resize (int, int);
23.6
5
(translation_unit) "#pragma once\n\n#include "display.h"\n\nvoid xrandr_init (void);\nint xrandr_event (XEvent *);\nint xrandr_resize (int, int);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "display.h"\n" (#include) "#include" ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.6, "nodes": 31, "errors": 0, "source_hash": "9e80ed84b742dd15ab210ae1c89ca105420d33435d4bc60c1af62eddc6efbb99", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
4,470
c
#ifndef _SHADER_NORMAL_H_ #define _SHADER_NORMAL_H_ #include "Shader.h" class ShaderNormal: public Shader { public : ShaderNormal(); ~ShaderNormal(); GLuint p_matrixMVPID; }; #endif
12.6
15
(translation_unit) "#ifndef _SHADER_NORMAL_H_ \n#define _SHADER_NORMAL_H_ \n \n#include "Shader.h" \n \nclass ShaderNormal: public Shader { \npublic : \n ShaderNormal(); \n ~ShaderNormal(); \n \n GLuint p_matrixMVPID; \n \n}; \n \n#endif" (preproc_ifdef) "#ifndef _SHADER_NORMAL_H_ \n#define _SHADER_NORMAL_H_ \n \n#in...
49
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 12.6, "nodes": 26, "errors": 0, "source_hash": "9d09eef1dae4685fc2275de83352bc24ba4a05544c5475d1b7d868c53cf79543", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,471
c
// // JJServerTimeUtils.h // Footprints // // Created by Jinjin on 14/11/17. // Copyright (c) 2014年 JiaJun. All rights reserved. // #import <Foundation/Foundation.h> #define kLocalNotiTypeKey @"LocalNotiType" @interface JJServerTimeUtils : NSObject + (JJServerTimeUtils *)sharedServerTimeUtils; //+ (BOOL)removeL...
33.96
24
(translation_unit) "//\n// JJServerTimeUtils.h\n// Footprints\n//\n// Created by Jinjin on 14/11/17.\n// Copyright (c) 2014年 JiaJun. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#define kLocalNotiTypeKey @"LocalNotiType"\n@interface JJServerTimeUtils : NSObject\n\n+ (JJServerTimeUtils *)sharedSe...
167
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.96, "nodes": 102, "errors": 0, "source_hash": "5f75602483becf43fcc9582690e49717a7e5bc478c3cbf97649ab0d36888cbb2", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <F...
4,472
c
/* { dg-do compile } */ /* { dg-options "-std=c99 -Wpedantic" } */ unsigned int foo (void) { return sizeof ((int[]) {}); /* { dg-warning "ISO C forbids empty initializer braces" } */ }
25.71
7
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-std=c99 -Wpedantic" } */\n\nunsigned int\nfoo (void)\n{\n return sizeof ((int[]) {}); /* { dg-warning "ISO C forbids empty initializer braces" } */\n}\n" (comment) "/* { dg-do compile } */" (comment) "/* { dg-options "-std=c99 -Wpedantic" } */" (func...
37
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.71, "nodes": 17, "errors": 0, "source_hash": "59e4706b8e2f942abfe0431a4f049d58e79946807dc09d0b17c603c73759dcd5", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "unsi...
4,473
c
/* * This file is part of the Frost distribution * (https://github.com/xainag/frost) * * Copyright (c) 2019 XAIN AG. * * 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://w...
35.4
162
(translation_unit) "/*\n * This file is part of the Frost distribution\n * (https://github.com/xainag/frost)\n *\n * Copyright (c) 2019 XAIN AG.\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 L...
1,067
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 35.4, "nodes": 599, "errors": 0, "source_hash": "3d10cde44a290a029832c5041d3a8a5a98258775970d22db8e08e8e028a2522d", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,474
c
#include <stdio.h> int main() { int a[3][3], b[3][3], i, j, sum[3][3]; printf("Enter the elements of the first matrix\n"); for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) { scanf("%d", &a[i][j]); } } printf("Enter the elements of the second matrix\n"); for (i = 0; i < 3; i++) { ...
18.05
37
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int a[3][3], b[3][3], i, j, sum[3][3];\n printf("Enter the elements of the first matrix\n");\n for (i = 0; i < 3; i++)\n {\n for (j = 0; j < 3; j++)\n {\n scanf("%d", &a[i][j]);\n }\n }\n printf("Enter the elements of the second matrix\n");\n...
390
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.05, "nodes": 224, "errors": 0, "source_hash": "6f1de3912e5f223c0be4a422b6de509484d9332417c389fd3b817c0751a067d7", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,475
c
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
34.3
148
(translation_unit) "//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.\n//For the list of developers, see <http://www.MercuryDPM.org/Team>.\n//\n//Redistribution and use in source and binary forms, with or without\n//modification, are permitted provided that the following conditions are met...
405
25
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 34.3, "nodes": 223, "errors": 0, "source_hash": "25bb401c3d9aae7dd62f7af50cf11f79feaf7ccd4a99ffdc918636bf58f92365", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,476
c
#ifndef POLY_H #define POLY_H #include "SABER_params.h" #include <stdint.h> typedef union { uint16_t coeffs[SABER_N]; } poly; void PQCLEAN_LIGHTSABER_CLEAN_MatrixVectorMul(poly c[SABER_L], const poly A[SABER_L][SABER_L], const poly s[SABER_L], int16_t transpose); void PQCLEAN_LIGHTSABER_CLEAN_InnerProd(poly *c,...
41.06
16
(translation_unit) "#ifndef POLY_H\n#define POLY_H\n#include "SABER_params.h"\n#include <stdint.h>\n\ntypedef union {\n uint16_t coeffs[SABER_N];\n} poly;\n\n\nvoid PQCLEAN_LIGHTSABER_CLEAN_MatrixVectorMul(poly c[SABER_L], const poly A[SABER_L][SABER_L], const poly s[SABER_L], int16_t transpose);\n\nvoid PQCLEAN_LIG...
197
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 41.06, "nodes": 123, "errors": 0, "source_hash": "d8b9b227fa25bc56c95241ee941b26ab68186a56c24ec62b7c0fc76d187765bb", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,477
c
#include "stdio.h" #include "framework.h" int main(void) { TEST_ASSERT_EQUAL_INT(5, 2); user_function1_Expect(); user_function1(); user_function1(); }
14.73
11
(translation_unit) "#include "stdio.h"\n#include "framework.h"\n\nint main(void)\n{\n TEST_ASSERT_EQUAL_INT(5, 2);\n \n user_function1_Expect();\n user_function1();\n user_function1();\n\n\n}\n" (preproc_include) "#include "stdio.h"\n" (#include) "#include" (string_literal) ""stdio.h"" ("...
56
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.73, "nodes": 27, "errors": 0, "source_hash": "2d1384ede3cf7118884dba2df43c1b203219a603e66b9976de4518598d27d925", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,478
c
#include <stdio.h> #include "lib1.h" #include "lib2.h" int main(int argc, char** argv) { int x = fred1(); int y = fred2(); printf("%d %d\n", x, y); return x == 5 && y == 6 ? 0 : 1; }
20.22
9
(translation_unit) "#include <stdio.h>\n#include "lib1.h"\n#include "lib2.h"\n\nint main(int argc, char** argv) {\n int x = fred1();\n int y = fred2();\n printf("%d %d\n", x, y);\n return x == 5 && y == 6 ? 0 : 1;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<s...
93
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.22, "nodes": 62, "errors": 0, "source_hash": "941e503b7fbe038160bb4e33a535f7376dfd70701a1e6df9a1932cc34ae5f2ec", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,479
c
// // Created by peter on 16.02.2021. // #pragma once namespace rh::rw::engine { // TODO: Try separating spot and point lights, may improve perf struct PointLight { float mPos[3]; float mRadius; float mDir[3]; float mSpotCutoff; float mColor[4]; }; } // namespace rh::rw::engine
17.69
16
(translation_unit) "//\n// Created by peter on 16.02.2021.\n//\n\n#pragma once\n\nnamespace rh::rw::engine\n{\n// TODO: Try separating spot and point lights, may improve perf\nstruct PointLight\n{\n float mPos[3];\n float mRadius;\n float mDir[3];\n float mSpotCutoff;\n float mColor[4];\n};\n} // namespa...
61
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.69, "nodes": 33, "errors": 0, "source_hash": "552befa6dc9208b7ff69887582220eead0abd76bc5325836661d99f759728602", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,480
c
#pragma once #include "RE/Bethesda/BSTHashMap.h" namespace RE { struct ID3D11Buffer; struct ID3D11ComputeShader; struct ID3D11DomainShader; struct ID3D11HullShader; struct ID3D11PixelShader; struct ID3D11VertexShader; struct BSGraphics { enum class TextureAddressMode; class Texture; class ConstantGro...
28.96
108
(ERROR) "#pragma once\n\n#include "RE/Bethesda/BSTHashMap.h"\n\nnamespace RE\n{\n struct ID3D11Buffer;\n struct ID3D11ComputeShader;\n struct ID3D11DomainShader;\n struct ID3D11HullShader;\n struct ID3D11PixelShader;\n struct ID3D11VertexShader;\n\n struct BSGraphics\n {\n enum class TextureAddressMode;\n\n class Tex...
897
63
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 28.96, "nodes": 469, "errors": 0, "source_hash": "76f9d97ad291067181dcb55c55aebc4a8301679acaa3d5332639b9b3195422e9", "categorized_nodes": 275}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include...
4,481
c
#pragma once #include "objects/object.h" namespace love { class CompressedMemory : public Object { public: CompressedMemory(size_t size); virtual ~CompressedMemory(); uint8_t* data; size_t size; }; } // namespace love
19.62
13
(translation_unit) "#pragma once\n\n#include "objects/object.h"\n\nnamespace love\n{\n class CompressedMemory : public Object\n {\n public:\n CompressedMemory(size_t size);\n\n virtual ~CompressedMemory();\n\n uint8_t* data;\n size_t size;\n };\n} // namespace love\n" (prepro...
61
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.62, "nodes": 35, "errors": 0, "source_hash": "a1c152dc7b9b8277f07de4ff7602cf738c639d20dd88f6eec65aca6c100790f4", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,482
c
#ifndef LAPLACERAND_H #define LAPLACERAND_H #include "ExponentialRand.h" #include "GeometricStableRand.h" /** * @brief The AsymmetricLaplaceDistribution class <BR> * Abstract parent class for general Laplace and Asymmetric Laplace distributions */ template < typename RealType = double > class RANDLIBSHARED_EXPORT ...
37.85
112
(translation_unit) "#ifndef LAPLACERAND_H\n#define LAPLACERAND_H\n\n#include "ExponentialRand.h"\n#include "GeometricStableRand.h"\n\n/**\n * @brief The AsymmetricLaplaceDistribution class <BR>\n * Abstract parent class for general Laplace and Asymmetric Laplace distributions\n */\ntemplate < typename RealType = double...
911
69
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 37.85, "nodes": 590, "errors": 0, "source_hash": "751350bd7b367e7910c0f86b4cb7a3fe7289c151a388293c45eec03cb9e4387a", "categorized_nodes": 376}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,483
c
#ifndef __NET_SCHED_CODEL_IMPL_H #define __NET_SCHED_CODEL_IMPL_H /* * Codel - The Controlled-Delay Active Queue Management algorithm * * Copyright (C) 2011-2012 <NAME> <<EMAIL>> * Copyright (C) 2011-2012 <NAME> <<EMAIL>> * Copyright (C) 2012 <NAME> <<EMAIL>> * Copyright (C) 2012,2015 <NAME> <<EMAIL>> * * ...
33.08
236
(translation_unit) "#ifndef __NET_SCHED_CODEL_IMPL_H\n#define __NET_SCHED_CODEL_IMPL_H\n\n/*\n * Codel - The Controlled-Delay Active Queue Management algorithm\n *\n * Copyright (C) 2011-2012 <NAME> <<EMAIL>>\n * Copyright (C) 2011-2012 <NAME> <<EMAIL>>\n * Copyright (C) 2012 <NAME> <<EMAIL>>\n * Copyright (C) 2012...
1,323
0
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 33.08, "nodes": 828, "errors": 0, "source_hash": "df26a0318909ce57b5d5e64c8a2e6beb56d8c16093bdacbfe4dc081af1538563", "categorized_nodes": 637}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,484
c
#ifndef SHELL_H #define SHELL_H void init_prompt(); #endif // SHELL_H
16.5
4
(translation_unit) "#ifndef SHELL_H\n#define SHELL_H\n\nvoid init_prompt();\n\n#endif // SHELL_H" (preproc_ifdef) "#ifndef SHELL_H\n#define SHELL_H\n\nvoid init_prompt();\n\n#endif" (#ifndef) "#ifndef" (identifier) "SHELL_H" (preproc_def) "#define SHELL_H\n" (#define) "#define" (identifier) "S...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 16.5, "nodes": 12, "errors": 0, "source_hash": "0aa6c3117f4a3e39b218cec1827b65465acbef658ce5d9f6b244ceb93e5ed925", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SHE...
4,485
c
// SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: 2017 Hotride #pragma once #include "../BaseQueue.h" #include <xuocore/mappedfile.h> class CIntloc : public CBaseQueueItem { std::vector<wstr_t> m_Strings; public: astr_t Language = ""; int FileIndex = -1; bool Loaded = false; CMappedFil...
28.04
26
(translation_unit) " SPDX-License-Identifier: MIT\n// SPDX-FileCopyrightText: 2017 Hotride\n\n#pragma once\n\n#include "../BaseQueue.h"\n#include <xuocore/mappedfile.h>\n\nclass CIntloc : public CBaseQueueItem\n{\n std::vector<wstr_t> m_Strings;\n\npublic:\n astr_t Language = "";\n int FileIndex = -1;\n boo...
207
10
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.04, "nodes": 140, "errors": 0, "source_hash": "90a2f29147f1d0c4b806210bf6daada23bcafb077e6da2f527c889477f7bce99", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
4,486
c
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2016 - <NAME> * * RetroArch 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 Found- * ation, either version 3 of the...
29
269
(translation_unit) "/* RetroArch - A frontend for libretro.\n * Copyright (C) 2010-2014 - <NAME>\n * Copyright (C) 2011-2016 - <NAME>\n *\n * RetroArch is free software: you can redistribute it and/or modify it under the terms\n * of the GNU General Public License as published by the Free Software Found-\n * atio...
1,069
3
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 29.0, "nodes": 737, "errors": 0, "source_hash": "e126983033252f7fcbd2a15af0a97839f2cf14adabc7c036ff6cda499efab911", "categorized_nodes": 546}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,487
c
#ifndef __AMUNIT_H__ #define __AMUNIT_H__ #include <am.h> #include <klib.h> #define IOE ({ _ioe_init(); }) #define CTE(h) ({ _Context *h(_Event, _Context *); _cte_init(h); }) #define VME(f1, f2) ({ void *f1(size_t); void f2(void *); _vme_init(f1, f2); }) #define MPE ({ _mpe_init(entry); }) #define LENGTH(arr) (size...
29.69
16
(translation_unit) "#ifndef __AMUNIT_H__\n#define __AMUNIT_H__\n\n#include <am.h>\n#include <klib.h>\n\n#define IOE ({ _ioe_init(); })\n#define CTE(h) ({ _Context *h(_Event, _Context *); _cte_init(h); })\n#define VME(f1, f2) ({ void *f1(size_t); void f2(void *); _vme_init(f1, f2); })\n#define MPE ({ _mpe_init(entry); ...
75
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.69, "nodes": 57, "errors": 0, "source_hash": "8ed035328735e9f2cdf56d403a2926d3a0e8f0682919540a53c246086e56d405", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,488
c
#ifndef LANCZOSPP_VERSION #define LANCZOSPP_VERSION "2.02" #endif
21
3
(translation_unit) "#ifndef LANCZOSPP_VERSION\n#define LANCZOSPP_VERSION "2.02"\n#endif\n\n" (preproc_ifdef) "#ifndef LANCZOSPP_VERSION\n#define LANCZOSPP_VERSION "2.02"\n#endif" (#ifndef) "#ifndef" (identifier) "LANCZOSPP_VERSION" (preproc_def) "#define LANCZOSPP_VERSION "2.02"\n" (#define) "#defin...
9
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.0, "nodes": 8, "errors": 0, "source_hash": "abdc362e6cdfe019e60b757c96ee3524fa168f4379e786e2095e7944ddbe36b9", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LANC...
4,489
c
#include <sys/wait.h> #include "tlpi_hdr.h" int main() { switch (fork()) { case -1: errExit("fork"); break; case 0: // in parent process switch (fork()) { case -1: errExit("fork"); break; case 0: // in grandson process while (ge...
20.53
34
(translation_unit) "#include <sys/wait.h>\n\n#include "tlpi_hdr.h"\n\nint main() {\n switch (fork()) {\n case -1:\n errExit("fork");\n break;\n case 0:\n // in parent process\n switch (fork()) {\n case -1:\n errExit("fork");\n break;\n case 0:\n // in ...
209
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 20.53, "nodes": 105, "errors": 0, "source_hash": "bd5d0b9c1a38269ec1bc49bc3eac720d4c2d99e9a4aa61b924279cf3055d5b53", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,490
c
#include <stdio.h> int main() { int n, i, j; scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=n;j++) { if(j<i) printf(" "); else printf("%d",j); } for(j=n-1;j>=1;j--) { if(j<i) printf(" "); else printf("%d",j); } printf("\n"); } for(i=n-1;i>=1;i--) { for(j=1;j<=n;j++) ...
10.2
45
(translation_unit) "#include <stdio.h>\nint main()\n{\n int n, i, j;\n scanf("%d",&n);\n \n for(i=1;i<=n;i++)\n {\n for(j=1;j<=n;j++)\n {\n if(j<i)\n printf(" ");\n else\n printf("%d",j);\n }\n for(j=n-1;j>=1;j--)\n {\n if(j<i)\n printf(" ");\n else\n printf("%d",j);\n }\n printf("\n");\n }\n...
332
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 10.2, "nodes": 176, "errors": 0, "source_hash": "eb8bcb9c20b65eeb60ea9a53a985277959b6002cfef11c26968077d23eabf213", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,491
c
#ifndef SF2D_PRIVATE_H #define SF2D_PRIVATE_H #include <3ds.h> #include "sf2d.h" void GPU_SetDummyTexEnv(u8 num); // Vector operations void vector_mult_matrix4x4(const float *msrc, const sf2d_vector_3f *vsrc, sf2d_vector_3f *vdst); // Matrix operations void matrix_copy(float *dst, const float *src); void matrix_...
40.55
20
(translation_unit) "#ifndef SF2D_PRIVATE_H\n#define SF2D_PRIVATE_H\n\n#include <3ds.h>\n#include "sf2d.h"\n\n\nvoid GPU_SetDummyTexEnv(u8 num);\n\n// Vector operations\n\nvoid vector_mult_matrix4x4(const float *msrc, const sf2d_vector_3f *vsrc, sf2d_vector_3f *vdst);\n\n// Matrix operations\n\nvoid matrix_copy(float *d...
265
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 40.55, "nodes": 194, "errors": 0, "source_hash": "ddc1c0741d5c556b8c9b9d7afd3282658e7b9b63654850eaba9066d154bcfed4", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,492
c
/* color storage class */ #ifndef _COLOR_H #define _COLOR_H #include "../../common.h" class Color { public: Color(); Color(double r, double g, double b); // gl context functions for fill void fill(); // set fill without a color object static void setFill(double r,...
24
21
(translation_unit) "/* color storage class */\n#ifndef _COLOR_H\n#define _COLOR_H\n\n#include "../../common.h"\n\nclass Color {\n public:\n Color();\n Color(double r, double g, double b);\n\n // gl context functions for fill\n void fill();\n\n // set fill without a color object\n ...
133
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.0, "nodes": 83, "errors": 0, "source_hash": "9943b4079e2700733d578c3231508501a4189368e827d5c8ecfaa9d56ae9ccb5", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,493
c
/* List.h Oct 19 19:36:50 1996 */ /* Generated by H2D v1.16 */ /* from module List and header Xm/List.h. */ /* Types which were created during translation */ /* Copyright (c) 1996 XDS Ltd, Russia. All rights reserved. * * $RCSfile: List.h,v $ $Revision: 1.2 $ $Date: 1998/02/15 00:05:38 $ */ #include ...
29.18
11
(translation_unit) "/* List.h Oct 19 19:36:50 1996 */ \n/* Generated by H2D v1.16 */ \n/* from module List and header Xm/List.h. */ \n/* Types which were created during translation */ \n \n/* Copyright (c) 1996 XDS Ltd, Russia. All rights reserved. \n * \n * $RCSfile: List.h,v $ $Revision: 1.2 $ $Date: 1998/02/15 0...
9
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.18, "nodes": 3, "errors": 0, "source_hash": "134984a8244f47bb480bcdcbc2ce66017a3f567de81f004e75782b4371bc5fcf", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
4,494
c
#pragma once #include "Generator.h" #include "Individual.h" #include "Mutation.h" #include "Optimizer.h" #include "Selection.h" #include "VectorUtils.h" #include <vector> using namespace Generators; using namespace Mutations; using namespace Selections; using namespace std; namespace Optimizers { template <typena...
39.69
85
(translation_unit) "#pragma once\n\n#include "Generator.h"\n#include "Individual.h"\n#include "Mutation.h"\n#include "Optimizer.h"\n#include "Selection.h"\n#include "VectorUtils.h"\n\n#include <vector>\n\nusing namespace Generators;\nusing namespace Mutations;\nusing namespace Selections;\n\nusing namespace std;\n\nnam...
820
23
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 39.69, "nodes": 516, "errors": 0, "source_hash": "90c78264fcab48ec7bc9788d3f239abbf636b8855702748ab1d11902c6b58e2f", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,495
c
/*============================================================================= * * Project: a2bstack * * Copyright (c) 2015 - Analog Devices Inc. All Rights Reserved. * This software is subject to the terms and conditions of the license set * forth in the project LICENSE file. Downloading, reproducing, distrib...
33.31
144
(translation_unit) "/*=============================================================================\n *\n * Project: a2bstack\n *\n * Copyright (c) 2015 - Analog Devices Inc. All Rights Reserved. \n * This software is subject to the terms and conditions of the license set \n * forth in the project LICENSE file. Downloa...
289
2
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 33.31, "nodes": 164, "errors": 0, "source_hash": "a0698e7afa79e3647951d613cf6a08085680f0857110d9c022db19c8d2400db7", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,496
c
#include <SDL.h> #include <stdio.h> #include <stdbool.h> #include "glue.h" #include "ps2.h" #include "keyboard.h" #define EXTENDED_FLAG 0x100 int ps2_scancode_from_SDL_Scancode(SDL_Scancode scancode) { switch (scancode) { case SDL_SCANCODE_GRAVE: return 0x0e; case SDL_SCANCODE_BACKSPACE: return 0x66; cas...
20.75
257
(translation_unit) "#include <SDL.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include "glue.h"\n#include "ps2.h"\n#include "keyboard.h"\n\n#define EXTENDED_FLAG 0x100\n\nint\nps2_scancode_from_SDL_Scancode(SDL_Scancode scancode)\n{\n switch (scancode) {\n case SDL_SCANCODE_GRAVE:\n return 0x0e;\n case SDL_SCANCO...
1,192
0
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 20.75, "nodes": 707, "errors": 0, "source_hash": "87beb7c587df18b852dd1e92b0c0a24e18f45c65415f93e4033629f2ed231090", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,497
c
#ifndef EVENTTIMER_H__ #define EVENTTIMER_H__ #include <time.h> #include "eventmux.h" typedef struct EventTimer EventTimer; struct EventTimer { Event event; struct timespec value; struct timespec at; }; extern void eventtimer_init(EventTimer *, struct timespec *, void (*)(EventMux *, Event *)); extern void ev...
24.14
14
(translation_unit) "#ifndef EVENTTIMER_H__\n#define EVENTTIMER_H__\n\n#include <time.h>\n\n#include "eventmux.h"\n\ntypedef struct EventTimer EventTimer;\n\nstruct EventTimer {\n Event event;\n struct timespec value;\n struct timespec at;\n};\n\nextern void eventtimer_init(EventTimer *, struct timespec *,\n void (*)(E...
103
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.14, "nodes": 78, "errors": 0, "source_hash": "6165b8cc9b0d2dde049132f99c88ef9e084baa4effae006fa5562b6f00536933", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,498
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_MOJO_INTERFACES_VIDEO_FRAME_STRUCT_TRAITS_H_ #define MEDIA_MOJO_INTERFACES_VIDEO_FRAME_STRUCT_TRAITS_H_ #include "base/memory/ref_counted.h...
37.59
54
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef MEDIA_MOJO_INTERFACES_VIDEO_FRAME_STRUCT_TRAITS_H_\n#define MEDIA_MOJO_INTERFACES_VIDEO_FRAME_STRUCT_TRAITS_H_\n\n#include...
482
20
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 37.59, "nodes": 257, "errors": 0, "source_hash": "1da3036e44a8cd64f577e5ef06ba0c366f8b26c8203f8c8024855d164f411bef", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,499