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
// // SWAPI.h // Pods // // Created by <NAME> on 29/12/14. // // #import <Foundation/Foundation.h> // Defines #import "SWDefines.h" // Model #import "SWPerson.h" #import "SWFilm.h" #import "SWStarship.h" #import "SWPlanet.h" #import "SWVehicle.h" #import "SWSpecies.h" // Helpers #import "SWQuery.h" #import "SWQu...
38.59
46
(translation_unit) "//\n// SWAPI.h\n// Pods\n//\n// Created by <NAME> on 29/12/14.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n// Defines\n#import "SWDefines.h"\n\n// Model\n#import "SWPerson.h"\n#import "SWFilm.h"\n#import "SWStarship.h"\n#import "SWPlanet.h"\n#import "SWVehicle.h"\n#import "SWSpecies.h"\n\n// ...
370
36
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 38.59, "nodes": 225, "errors": 0, "source_hash": "099a7ba3b74e86eb732d946926a2ac0fed848c24aa45a03954238e17a8168aa9", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
6,300
c
#ifndef Viewer_Matrix4x4_H #define Viewer_Matrix4x4_H #define Matrix4x4 Viewer_Matrix4x4_ #include<Math/LB_Math.h> #include<stdio.h> #include<stdlib.h> #ifdef __cplusplus extern "C" { #endif typedef struct Matrix4x4{ struct Matrix4x4 * (*mult)(struct Matrix4x4 *,struct Matrix4x4 *); void (*transpose)(struct Mat...
44.79
153
(translation_unit) "#ifndef Viewer_Matrix4x4_H\n#define Viewer_Matrix4x4_H\n#define Matrix4x4 Viewer_Matrix4x4_\n#include<Math/LB_Math.h>\n#include<stdio.h>\n#include<stdlib.h>\n#ifdef __cplusplus\nextern "C" {\n#endif\ntypedef struct Matrix4x4{\n struct Matrix4x4 * (*mult)(struct Matrix4x4 *,struct Matrix4x4 *);\n ...
307
1
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 44.79, "nodes": 232, "errors": 0, "source_hash": "1d22e602f9c6db738cc423aea39a5216994a8238eaf23c719e563b572b0e1048", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,301
c
// // Yodo1MasAppLovinMaxBannerAdapter.h // Yodo1MasMediationApplovin // // Created by 周玉震 on 2021/11/23. // #import "Yodo1MasBannerAdapterBase.h" NS_ASSUME_NONNULL_BEGIN @interface Yodo1MasAppLovinMaxBannerAdapter : Yodo1MasBannerAdapterBase @end NS_ASSUME_NONNULL_END
23.82
11
(translation_unit) "//\n// Yodo1MasAppLovinMaxBannerAdapter.h\n// Yodo1MasMediationApplovin\n//\n// Created by 周玉震 on 2021/11/23.\n//\n\n#import "Yodo1MasBannerAdapterBase.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface Yodo1MasAppLovinMaxBannerAdapter : Yodo1MasBannerAdapterBase\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (c...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.82, "nodes": 16, "errors": 0, "source_hash": "5074ea679fe00de0e3e7cbf9b03fb913bc091f96091cb15d403d1d5e9f878e63", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t \"Yodo1M...
6,302
c
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (C) 2020 <NAME> <<EMAIL>> * * Simple delay timer for MIPS platform */ #include <types.h> #include <compiler.h> static uint32_t timer_freq; static uint32_t __nomips16 get_ticks(void) { uint32_t val; asm volatile ("mfc0\t%0,$9" : "=r"(val)); return val; ...
20.33
33
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n/*\n * Copyright (C) 2020 <NAME> <<EMAIL>>\n *\n * Simple delay timer for MIPS platform\n */\n\n#include <types.h>\n#include <compiler.h>\n\nstatic uint32_t timer_freq;\n\nstatic uint32_t __nomips16 get_ticks(void)\n{\n uint32_t val;\n\n asm volatile ("mfc0\...
199
1
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.33, "nodes": 118, "errors": 0, "source_hash": "f44edb9ba2da1fdf1b7aab656a34d838dc435f9289e10213d14ae85360cc2dae", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,303
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 #include <AzCore/Outcome/Outcome.h> #include <ScriptCanvas/Data/Data.h> namespace AZ ...
35.58
103
(translation_unit) "/*\n * 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.\n * \n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#include <AzCore/Outcome/Outcome.h>\n#include <ScriptCanv...
712
38
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 35.58, "nodes": 400, "errors": 0, "source_hash": "343fe3981aaeafe58951722b7f1cfa2afcc1482fe245ed80cbab1786737a71c1", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,304
c
/***** includes *****/ #include "libtest_tests_internal.h" /***** private prototypes *****/ static int key_compare_function( void const *new_value, void const *value_in_tree ); static void key_hash_function( void const *key, lfds711_pal_uint_t *hash ); /************************************************************...
41.68
84
(translation_unit) "/***** includes *****/\n#include "libtest_tests_internal.h"\n\n/***** private prototypes *****/\nstatic int key_compare_function( void const *new_value, void const *value_in_tree );\nstatic void key_hash_function( void const *key, lfds711_pal_uint_t *hash );\n\n\n\n\n\n/*****************************...
669
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 41.68, "nodes": 410, "errors": 0, "source_hash": "f1d77100913c26aeba375005c74895fc92a332a66a2503bde0234d37d88bff4b", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,305
c
// Copyright 2016-present 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <ABI43_0_0EXAppAuth/ABI43_0_0EXAppAuth.h> #import <ABI43_0_0ExpoModulesCore/ABI43_0_0EXSingletonModule.h> NS_ASSUME_NONNULL_BEGIN @interface ABI43_0_0EXAppAuthAppDelegate : ABI43_0_0EXSingletonModule <UIApplicati...
43.5
8
(translation_unit) "// Copyright 2016-present 650 Industries. All rights reserved.\n\n#import <Foundation/Foundation.h>\n#import <ABI43_0_0EXAppAuth/ABI43_0_0EXAppAuth.h>\n#import <ABI43_0_0ExpoModulesCore/ABI43_0_0EXSingletonModule.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ABI43_0_0EXAppAuthAppDelegate : ABI43_0_0EX...
32
4
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 43.5, "nodes": 25, "errors": 0, "source_hash": "e5078a20193483d974cde987416d641bf3d25fb2274198b223d28c2ab224710f", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
6,306
c
#ifndef HIERARCHY_HTTP_DIGEST_AUTH_H #define HIERARCHY_HTTP_DIGEST_AUTH_H #include "../MemoryBlock/MemoryBlockLib.h" #include "../MD5/MD5Lib.h" typedef void (HTTPAuthDigestParseCallbackT)(const MemoryBlockT *Key, const MemoryBlockT *Value, ...
37.74
34
(translation_unit) "#ifndef HIERARCHY_HTTP_DIGEST_AUTH_H\n#define HIERARCHY_HTTP_DIGEST_AUTH_H\n\n#include "../MemoryBlock/MemoryBlockLib.h"\n#include "../MD5/MD5Lib.h"\n\n\ntypedef void (HTTPAuthDigestParseCallbackT)(const MemoryBlockT *Key,\n const MemoryBlockT *Value,\n ...
200
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 37.74, "nodes": 137, "errors": 0, "source_hash": "b17c2c7632745538e0579edca13cdcc4ca644d26a8322eb1e4fd6e5b01ecf0c1", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,307
c
// // BlurbNode.h // Texture // // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved. // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // #import <AsyncDisplayKit/AsyncDisplayKit.h> /**...
29.14
14
(translation_unit) "//\n// BlurbNode.h\n// Texture\n//\n// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.\n// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0\n//\n\n#import <AsyncDispl...
24
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.14, "nodes": 11, "errors": 0, "source_hash": "83fb783d8ce72243320623bb7cdd63c64ccf9ebf16a057513c111065db51c836", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <A...
6,308
c
#if !defined(_MUSIC_GSL_) #define _MUSIC_GSL_ #define WIN32 #include <gsl/gsl_combination.h> #include <gsl/gsl_sf.h> #endif
19.67
6
(translation_unit) "#if !defined(_MUSIC_GSL_)\n#define _MUSIC_GSL_\n\n#define WIN32\n\n#include <gsl/gsl_combination.h>\n#include <gsl/gsl_sf.h>\n\n#endif" (preproc_if) "#if !defined(_MUSIC_GSL_)\n#define _MUSIC_GSL_\n\n#define WIN32\n\n#include <gsl/gsl_combination.h>\n#include <gsl/gsl_sf.h>\n\n#endif" (#if) "#...
24
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 19.67, "nodes": 21, "errors": 0, "source_hash": "ba856043667f68c86981c8e47c383010559444bcd98bbfed36b0ca1e98aae5f6", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined...
6,309
c
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef HAL_UART_IMPL_H #define HAL_UART_IMPL_H #include <stdint.h> #include <devices/driver.h> #include <devices/uart.h> #ifdef __cplusplus extern "C" { #endif typedef struct uart_driver { driver_t drv; int (*config)(aos_dev_t *dev, uart_conf...
30.12
24
(translation_unit) "/*\n * Copyright (C) 2019-2020 Alibaba Group Holding Limited\n */\n\n#ifndef HAL_UART_IMPL_H\n#define HAL_UART_IMPL_H\n\n#include <stdint.h>\n\n#include <devices/driver.h>\n#include <devices/uart.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef struct uart_driver {\n driver_t drv;\n i...
235
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.12, "nodes": 174, "errors": 0, "source_hash": "4bb90cba2b7721c99020eba669df5cb73f1d23e0ea75c82faa2ced01ef220876", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,310
c
/* * Copyright (c) 2016, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of ...
30.25
167
(translation_unit) "/*\n * Copyright (c) 2016, <NAME>, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyrigh...
418
13
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 30.25, "nodes": 264, "errors": 0, "source_hash": "18bedbdf87f76f82afc113a33e80802500ee526106ec6e19de0f77b61ba73a9d", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,311
c
//========================================================================= // INDEXFILE.H - part of // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Author: <NAME> // //========================================================================= /*--------------------------------...
32.89
301
(translation_unit) "//=========================================================================\n// INDEXFILE.H - part of\n// OMNeT++/OMNEST\n// Discrete System Simulation in C++\n//\n// Author: <NAME>\n//\n//=========================================================================\n\n/*---...
1,937
87
{"language": "c", "success": true, "metadata": {"lines": 301, "avg_line_length": 32.89, "nodes": 1126, "errors": 0, "source_hash": "49c0ddb8fb472b95fdc3e6fb1097c718b42684dd2d8963b30d67b3b0b83db458", "categorized_nodes": 767}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
6,312
c
// Copyright (c) 2012 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 REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ #define REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ #include "remoting/host/audio_capturer.h" #include "base...
37.68
44
(translation_unit) "// Copyright (c) 2012 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 REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_\n#define REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_\n\n#include "remoting/host/audio_...
265
17
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 37.68, "nodes": 153, "errors": 0, "source_hash": "60e8f93a732eb16e1dfca48adfa7c98bc1b20139605579c4e27b312096206b75", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,313
c
#ifndef _STACK_ALLOC_H_ #define _STACK_ALLOC_H_ #include <memory> template <typename Type> struct stack_node { Type val; stack_node* prev; }; template <typename Type, typename Alloc = std::allocator<Type>> class stack_alloc { }; #endif
17.62
13
(translation_unit) "#ifndef _STACK_ALLOC_H_ \n#define _STACK_ALLOC_H_\n\n#include <memory>\n\ntemplate <typename Type>\nstruct stack_node {\n Type val;\n stack_node* prev;\n};\n\ntemplate <typename Type, typename Alloc = std::allocator<Type>>\nclass stack_alloc {\n\n\n};\n#endif\n" (preproc_ifdef) "#ifndef _STACK_A...
67
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 17.62, "nodes": 50, "errors": 0, "source_hash": "36384f953d3b5f6577257c9f972dcbfc396dc84e71949be1bed6b0f6a0d9d1db", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,314
c
/********************************************************************************/ /* */ /* TCPA Key Migration */ /* Written by <NAME> */ /* IBM Thomas J. Watson Research Center */ /* $Id: migratekey.c 4741 2014-09-22 21:18:35Z kgoldman $ */ /* */ /* (c) Copy...
28.53
330
(translation_unit) "/********************************************************************************/\n/* */\n/* TCPA Key Migration */\n/* Written by <NAME> */\n/* IBM Thomas J. Watson Research Center */\n/* $Id: migratekey.c 4741 2014-09-22 21:18:35Z kgoldman $ */\n...
2,232
2
{"language": "c", "success": true, "metadata": {"lines": 330, "avg_line_length": 28.53, "nodes": 1230, "errors": 0, "source_hash": "c13dfe0db148fdc98e684ad012b240b11ad4858c82f2b3674fb58f27654a9770", "categorized_nodes": 827}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,315
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "X2AP-PDU-Contents" * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn" * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER` */ #ifndef _HandoverPreparationFailure_H_ #define _HandoverPrepar...
25.91
44
(translation_unit) "/* \n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) \n * From ASN.1 module "X2AP-PDU-Contents" \n * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn" \n * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER` \n */ \n \n#ifndef _HandoverPreparationFailure_...
89
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 25.91, "nodes": 61, "errors": 0, "source_hash": "c4dce36b2421041e05fb9bf28c6bc2df4c93656cbf5f07b0617117094e5566c9", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
6,316
c
// Room: fuheqiaoe.c // Date: Feb.14 1998 by Java inherit ROOM; void create() { set("short","府河橋"); set("long", @LONG 這裏是成都東門外府河橋。成都自古就是川中首府,府河和南河 夾城而過,成為天然的護城河。由於四川外有峽江,秦嶺之險,內仗 綿渝堅城之固,成都卻因之自來無坐守成功之績。往往兵到城下,降 旗高扯了。 LONG ); set("outdoors", "chengdu"); set("exits",([ /* sizeof() == 1 */ ...
22.63
27
(translation_unit) "// Room: fuheqiaoe.c\n// Date: Feb.14 1998 by Java\n\ninherit ROOM;\nvoid create()\n{\n set("short","府河橋");\n set("long", @LONG\n這裏是成都東門外府河橋。成都自古就是川中首府,府河和南河\n夾城而過,成為天然的護城河。由於四川外有峽江,秦嶺之險,內仗\n綿渝堅城之固,成都卻因之自來無坐守成功之績。往往兵到城下,降\n旗高扯了。\nLONG );\n set("outdoors", "chengdu");\n se...
227
17
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.63, "nodes": 99, "errors": 0, "source_hash": "c7fb54616d852bd176c5964cc7a3a3befe5deab53876214d9cf8fc87d745a244", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit RO...
6,317
c
#pragma once #include "outputs.h" class Stream; class OutputNodeStream : public OutputNode { public: OutputNodeStream(uint32_t idx, const OutputDef& def, Stream &stream); protected: virtual size_t write(const uint8_t *buffer, size_t size); virtual int read(); Stream &stream_; }; class UsbSerialOutp...
29
22
(translation_unit) "#pragma once\n#include "outputs.h"\n\nclass Stream;\n\nclass OutputNodeStream : public OutputNode {\npublic:\n OutputNodeStream(uint32_t idx, const OutputDef& def, Stream &stream);\n\nprotected:\n virtual size_t write(const uint8_t *buffer, size_t size);\n virtual int read();\n\n Stream ...
174
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.0, "nodes": 89, "errors": 0, "source_hash": "ea72be83251f4ef65292011385f91eea6496e45f043a79f0ff13d61a38640e46", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,318
c
#ifndef __AUTO_H__ #define __AUTO_H__ #ifdef __cplusplus #define BEGIN_AUTO_NAMESPACE namespace LibAuto { #define END_AUTO_NAMESPACE } #else #define BEGIN_AUTO_NAMESPACE #define END_AUTO_NAMESPACE #endif /* IS THIS THING NEEDED FOR FORTRAN VERSION IN A FILE CALLED AUTO.H? C------------------------------------------...
40.61
23
(translation_unit) "#ifndef __AUTO_H__\n#define __AUTO_H__\n\n#ifdef __cplusplus\n#define BEGIN_AUTO_NAMESPACE namespace LibAuto {\n#define END_AUTO_NAMESPACE }\n#else\n#define BEGIN_AUTO_NAMESPACE\n#define END_AUTO_NAMESPACE\n#endif\n\n/* IS THIS THING NEEDED FOR FORTRAN VERSION IN A FILE CALLED AUTO.H?\n\nC----------...
29
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 40.61, "nodes": 26, "errors": 0, "source_hash": "9ec1111f3c04640cfc422811f82c7607017676e8e5401c15de0197a948963b59", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,319
c
#ifndef CQChartsFileType_H #define CQChartsFileType_H #include <QString> #include <QStringList> enum class CQChartsFileType { NONE, CSV, TSV, JSON, DATA, EXPR, VARS }; namespace CQChartsFileTypeUtil { inline QStringList fileTypeNames() { return QStringList() << "CSV" << "TSV" << "Json" << "Data" << ...
33.34
38
(translation_unit) "#ifndef CQChartsFileType_H\n#define CQChartsFileType_H\n\n#include <QString>\n#include <QStringList>\n\nenum class CQChartsFileType {\n NONE,\n CSV,\n TSV,\n JSON,\n DATA,\n EXPR,\n VARS\n};\n\nnamespace CQChartsFileTypeUtil {\n\ninline QStringList fileTypeNames() {\n return QStringList() <<...
431
16
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.34, "nodes": 230, "errors": 0, "source_hash": "8ca617db92489f224f7ff718fa75ff8e106da8a62022002efce9b709c2979166", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CQChar...
6,320
c
#ifndef _FTPSTRU__ #define _FTPSTRU__ #include <stdio.h> #include <string.h> typedef enum { FILE_STRU, RECORD_STRU, PAGE_STRU, INVALID_STRU } ftp_stru_t_t; typedef struct ftp_stru { ftp_stru_t_t stru; char name[10]; } ftp_stru_t; ftp_stru_t change_stru(char* buff); #endif
16.44
16
(translation_unit) "#ifndef _FTPSTRU__\n#define _FTPSTRU__\n\n#include <stdio.h>\n#include <string.h>\n\ntypedef enum {\n FILE_STRU,\n RECORD_STRU,\n PAGE_STRU,\n INVALID_STRU\n} ftp_stru_t_t;\n\ntypedef struct ftp_stru {\n ftp_stru_t_t stru;\n char name[10];\n} ftp_stru_t;\n\nftp_stru_t change_stru(char* buff);\n\n#en...
69
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.44, "nodes": 51, "errors": 0, "source_hash": "83d8abe375e9e0a2d10f5f2a045f4f011b6e610b805a55b5be75b186c5606890", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,321
c
/* -*- c -*- *******************************************************/ /* * Copyright (C) 2003 Sandia Corporation * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the U.S. Government. * Redistribution and use in source and binary forms, with ...
41.51
43
(translation_unit) "/* -*- c -*- *******************************************************/\n/*\n * Copyright (C) 2003 Sandia Corporation\n * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive\n * license for use of this work by or on behalf of the U.S. Government.\n * Redistribution and use in sourc...
183
2
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 41.51, "nodes": 126, "errors": 0, "source_hash": "5bf7f161333ad69176958aae7ebcbf2f61e844fa8eb85f33345885ab4d8c4fe7", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,322
c
/* * This file is part of the JTObjectMapping package. * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import <Foundation/Foundation.h> @protocol JTValidMappingKey <NSObject> - (BOOL)transformValue:(NSObje...
31.47
15
(translation_unit) "/*\n * This file is part of the JTObjectMapping package.\n * (c) <NAME> <<EMAIL>>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n#import <Foundation/Foundation.h>\n\n@protocol JTValidMappingKey <NSObject>\n...
71
13
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.47, "nodes": 50, "errors": 0, "source_hash": "1c93f6b312bfdea84ac5a13b1eea8882d103ceb795a16e98d8c45d4f769a03aa", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,323
c
// // Simu5G // // Authors: <NAME>, <NAME>, <NAME> (University of Pisa) // // This file is part of a software released under the license included in file // "license.pdf". Please read LICENSE and README files before using it. // The above files and the present reference are part of the software itself,...
29
37
(translation_unit) "//\n// Simu5G\n//\n// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)\n//\n// This file is part of a software released under the license included in file\n// "license.pdf". Please read LICENSE and README files before using it.\n// The above files and the present reference are p...
116
6
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.0, "nodes": 65, "errors": 0, "source_hash": "579f1db2f48740da739afee37f696ec2b648c12245e19c954c4dfa9f731c7360", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,324
c
// // DVAPopupViewButton // DVAPopupViewButton // // Created by <NAME> on 23/10/15. // Copyright © 2015 DVAPopupViewButton. All rights reserved. // #import <UIKit/UIKit.h> /*! @author <NAME>, 15-11-25 08:11:18 A simple subclass of `UIButton` that adds a completionBlock. It will be called if the button is pres...
21.48
25
(translation_unit) "//\n// DVAPopupViewButton\n// DVAPopupViewButton\n//\n// Created by <NAME> on 23/10/15.\n// Copyright © 2015 DVAPopupViewButton. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/*!\n @author <NAME>, 15-11-25 08:11:18\n \n A simple subclass of `UIButton` that adds a completionBlock. It wil...
45
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.48, "nodes": 25, "errors": 0, "source_hash": "8772ecdc847ae37aa79ce69c2da98bc58df20321105740deacd2cd7b7d421cac", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
6,325
c
struct BinaryTrie { BinaryTrie() { ch[0] = ch[1] = nullptr; count = 0; } void add(int val, int idx=30) { count++; if (idx >= 0) { int c = (val & (1 << idx)) ? 1 : 0; if (!ch[c]) ch[c] = new BinaryTrie(); ch[c]->add(val, idx...
24.95
43
(translation_unit) "struct BinaryTrie {\n BinaryTrie() {\n ch[0] = ch[1] = nullptr;\n count = 0;\n }\n\n void add(int val, int idx=30) {\n count++;\n if (idx >= 0) {\n int c = (val & (1 << idx)) ? 1 : 0;\n if (!ch[c])\n ch[c] = new BinaryTrie();\...
428
23
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.95, "nodes": 274, "errors": 0, "source_hash": "141e96d7fc6284f5467ef8642e3fba2a3db32a14461e4aa90b6928f99edcfe08", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct B...
6,326
c
/*! * \file fonts.h * * \author FEUP - T03G04: * \author <NAME> * \author <NAME> * * \date Maio 2012 * */ #ifndef FONTS_H #define FONTS_H #include "utilities.h" #include <unordered_map> struct ALLEGRO_FONT; /*! * \class Fonts * * \brief Defines a set of fonts with different sizes * * Needed fonts ar...
19.49
35
(translation_unit) "/*!\n * \file fonts.h\n *\n * \author FEUP - T03G04:\n * \author <NAME>\n * \author <NAME>\n *\n * \date Maio 2012\n * \n */\n\n#ifndef FONTS_H\n#define FONTS_H\n\n#include "utilities.h"\n\n#include <unordered_map>\n\nstruct ALLEGRO_FONT;\n\n/*!\n * \class Fonts\n *\n * \brief Defines a set of fonts...
83
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 19.49, "nodes": 48, "errors": 0, "source_hash": "97e03c3a6fa46c979953d71565421f9b271fa6b822d987e443e6459a866787a1", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,327
c
/**************************************************************************** * * Copyright (C) 2015 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of sou...
33.49
164
(translation_unit) "/****************************************************************************\n *\n * Copyright (C) 2015 <NAME>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n...
479
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 33.49, "nodes": 183, "errors": 0, "source_hash": "a4147c865383e5b28989a3a5785a467670db60923635a07e002501e0fb29eed0", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
6,328
c
/* Trabalho feito por: <NAME> - 03503 <NAME> - 03475 <NAME> - 03480 */ #include "Libs/TAD_Patricia.h" #include "Libs/IndInverso.h" #include "Libs/tst.h" #include "Libs/menu.h" #include "Libs/ConversaoPalavras.h" int ni = 0; int main(){ //Inicialização de estruturas necessarias Apontador ...
24.91
125
(translation_unit) "/* \n \nTrabalho feito por: \n \n<NAME> - 03503 \n<NAME> - 03475 \n<NAME> - 03480 \n \n*/ \n \n \n#include "Libs/TAD_Patricia.h" \n#include "Libs/IndInverso.h" \n#include "Libs/tst.h" \n#include "Libs/menu.h" \n#include "Libs/ConversaoPalavras.h" \n \nint ni = 0; \n \nint main(){ \n //Inicialização...
900
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 24.91, "nodes": 467, "errors": 0, "source_hash": "2a14f7e2ffd647b056b9b84c59e8fff9edd6b8550b927e31d931df59f4246f8a", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,329
c
// Copyright 2014-present <NAME>. All Rights Reserved. @interface NSSet (Additions) - (NSSet *)setBySubtractingSet:(NSSet *)set; @end
32.5
4
(translation_unit) "// Copyright 2014-present <NAME>. All Rights Reserved.\n\n@interface NSSet (Additions)\n\n- (NSSet *)setBySubtractingSet:(NSSet *)set;\n\n@end\n" (comment) "// Copyright 2014-present <NAME>. All Rights Reserved." (ERROR) "@interface NSSet (Additions)\n\n- (NSSet *)setBySubtractingSet:(NSSet *)se...
32
4
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.5, "nodes": 20, "errors": 0, "source_hash": "6f44d62d915dedca179e75c3e7aa674a88624fd9d558bd061ca1117890a8cf66", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface NSSet (...
6,330
c
//generated pixeldata #ifndef _DataGirlBall_h #define _DataGirlBall_h #include "PixelData.h" class DataGirlBall:public PixelData{ public: DataGirlBall() { width =4; height=4; centerX=2; centerY=4; int size =width*height; color = new uint8_t[size*3]; alpha = ...
21.62
82
(translation_unit) "//generated pixeldata\n#ifndef _DataGirlBall_h\n#define _DataGirlBall_h\n#include "PixelData.h"\nclass DataGirlBall:public PixelData{ \npublic:\n DataGirlBall()\n {\n width =4;\n height=4;\n centerX=2;\n centerY=4;\n int size =width*height;\n color = new ...
743
3
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 21.62, "nodes": 442, "errors": 0, "source_hash": "44ebe0e03a780e774d9c86469171d9c90f21b1002cf7cdbfad8c5c622d80becf", "categorized_nodes": 362}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,331
c
#ifndef __KERNEL_KER_DATA_H__ #define __KERNEL_KER_DATA_H__ #include <common/ccompat.h> #include <kernel/_proc.h> __EXTERN_C_BEGIN__ void proc_init __PROTO ((__proc_t * _process)); __EXTERN_C_END__ #endif /* ! defined (__KERNEL_KER_DATA_H__) */
29.75
8
(translation_unit) "#ifndef __KERNEL_KER_DATA_H__\n#define __KERNEL_KER_DATA_H__\n\n#include <common/ccompat.h>\n#include <kernel/_proc.h>\n\n__EXTERN_C_BEGIN__\n\nvoid proc_init __PROTO ((__proc_t * _process));\n\n__EXTERN_C_END__\n\n#endif /* ! defined (__KERNEL_KER_DATA_H__) */\n\n" (preproc_ifdef) "#ifndef __KER...
40
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.75, "nodes": 31, "errors": 0, "source_hash": "bfb4460a2aa2cf520e038853c43e809ba728253928345f878c03b346d6c3088a", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t...
6,332
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Holds all the protocol bits and defines used in tracker networking // // $NoKeywords: $ //============================================================================= #ifndef TRACKERPROTOCOL_H #define TRACKERPROTOCOL_H #ifdef ...
36.04
140
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: Holds all the protocol bits and defines used in tracker networking\n//\n// $NoKeywords: $\n//=============================================================================\n\n#ifndef TRACKERPROTOCOL_H\n#defi...
430
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 36.04, "nodes": 268, "errors": 0, "source_hash": "df7b02c3022a87eb43b0fe7d67bba221ceee0cc42471414a166dfe5c6dd495ec", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,333
c
#pragma once #define WIN32_LEAN_AND_MEAN #include <Windows.h> namespace LivePlusPlus { /** * \brief Register your gem with Live++. */ HMODULE Initialize(); }
16.6
10
(translation_unit) "#pragma once\n\n#define WIN32_LEAN_AND_MEAN\n#include <Windows.h>\n\nnamespace LivePlusPlus\n{\n /**\n * \brief Register your gem with Live++.\n */\n HMODULE Initialize();\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def)...
25
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.6, "nodes": 17, "errors": 0, "source_hash": "bdd03f58579cac59253a3de616b9e57ed0d082f19130b8d0440636a823eedbee", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,334
c
#ifndef PSQLTBL_H #define PSQLTBL_H #include <astring.h> #include "psqlcol.h" struct SqlTable { AString name; AVector<SqlColumn> columns; }; #endif // PSQLTBL_H
18
9
(translation_unit) "#ifndef PSQLTBL_H\n#define PSQLTBL_H\n\n#include <astring.h>\n\n#include "psqlcol.h"\n\nstruct SqlTable {\n AString name;\n\n AVector<SqlColumn> columns;\n};\n\n#endif // PSQLTBL_H\n" (preproc_ifdef) "#ifndef PSQLTBL_H\n#define PSQLTBL_H\n\n#include <astring.h>\n\n#include "psqlcol.h"\n\ns...
37
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.0, "nodes": 26, "errors": 0, "source_hash": "3e5101440e7dde70b3905a2e974b9f03b74bca3f955830c8b653978894d6b993", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PS...
6,335
c
// // AlvinBlockAction.h // Order // // Created by Admin on 9/26/14. // Copyright (c) 2014 IC. All rights reserved. // #import "AlvinAction.h" @interface AlvinBlockAction : AlvinAction -(instancetype)initWithBlock:(dispatch_block_t)block; @end
21.55
11
(translation_unit) "//\n// AlvinBlockAction.h\n// Order\n//\n// Created by Admin on 9/26/14.\n// Copyright (c) 2014 IC. All rights reserved.\n//\n\n#import "AlvinAction.h"\n\n@interface AlvinBlockAction : AlvinAction\n\n-(instancetype)initWithBlock:(dispatch_block_t)block;\n\n@end\n" (comment) "//" (comment) "/...
38
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.55, "nodes": 19, "errors": 0, "source_hash": "1340abd6b6fefa44cd7992ff4fbf783a2d7d471aac5bf18ddd4bdb83c4dc52b5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,336
c
/* Copyright (C) 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2011. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
31.25
167
(translation_unit) "/* Copyright (C) 2011 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n Contributed by <NAME> <<EMAIL>>, 2011.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published...
1,153
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 31.25, "nodes": 726, "errors": 0, "source_hash": "5d5ebe5d04fa96f53b87e781d1519ac21c59ee45449b4c2e4dc35d943a4a3e8d", "categorized_nodes": 483}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,337
c
#ifndef PINE_STD_MEMORY_H #define PINE_STD_MEMORY_H #include <pstd/new.h> #include <pstd/move.h> #include <pstd/stdint.h> #include <pstd/archive.h> #include <pstd/type_traits.h> namespace pstd { inline constexpr void memcpy(void* dst, const void* src, size_t size) { auto csrc = (const char*)src; auto cdst = ...
29.98
268
(translation_unit) "#ifndef PINE_STD_MEMORY_H\n#define PINE_STD_MEMORY_H\n\n#include <pstd/new.h>\n#include <pstd/move.h>\n#include <pstd/stdint.h>\n#include <pstd/archive.h>\n#include <pstd/type_traits.h>\n\nnamespace pstd {\n\ninline constexpr void memcpy(void* dst, const void* src, size_t size) {\n auto csrc = (c...
2,818
168
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 29.98, "nodes": 1798, "errors": 0, "source_hash": "16fc132a90aa50dc19ea236359194d090fa605116cf0561d5466bd285f483dc5", "categorized_nodes": 1192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
6,338
c
/* * Copyright (c) 2015 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
28.22
157
(translation_unit) "/*\n * Copyright (c) 2015 Cisco and/or its affiliates.\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 * ...
770
5
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 28.22, "nodes": 467, "errors": 0, "source_hash": "c9e8fb17699cf141b56870d497c58dfd4c4d9b5eba1cf92e1f979918ae2cfd97", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,339
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_ #define ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_ #include "ash/ash_export.h" #include "ash/shelf/shelf_observer.h" #...
39.96
70
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_\n#define ASH_SHELF_SHELF_TOOLTIP_MANAGER_H_\n\n#include "ash/ash_export.h"\n#include "a...
530
29
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 39.96, "nodes": 321, "errors": 0, "source_hash": "ba098ffd234fb1dcbadb8a0e02101e3a67e0e5ef628e158ec13ed37417408ea7", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,340
c
// // YiUserInfoModel.h // YiNetwork // // Created by coderyi on 15/9/16. // Copyright (c) 2015年 coderyi. All rights reserved. // #import "YiBaseModel.h" @interface YiUserInfoModel : YiBaseModel @property(nonatomic,strong) NSString<Optional> *name; @end
22.45
11
(translation_unit) "//\n// YiUserInfoModel.h\n// YiNetwork\n//\n// Created by coderyi on 15/9/16.\n// Copyright (c) 2015年 coderyi. All rights reserved.\n//\n\n#import "YiBaseModel.h"\n\n@interface YiUserInfoModel : YiBaseModel\n@property(nonatomic,strong) NSString<Optional> *name;\n\n@end\n" (comment) "//" (com...
40
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.45, "nodes": 27, "errors": 0, "source_hash": "69c06cd64a26bdc92c80c1afacbd35ce12c84327f1162c4742817175bce65ddb", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"Y...
6,341
c
#pragma once // Include MONO #include <mono/jit/jit.h> #include <mono/metadata/assembly.h> #include <mono/metadata/debug-helpers.h> class CsGame { public: CsGame(); ~CsGame(); void keyEvent(char key); bool tick(); private: // Mono generic stuff - https://www.youtube.com/watch?v=ps9EW_nzs34 MonoDomain* m_ptrM...
24.65
23
(translation_unit) "#pragma once\n\n// Include MONO\n#include <mono/jit/jit.h>\n#include <mono/metadata/assembly.h>\n#include <mono/metadata/debug-helpers.h>\n\n\nclass CsGame\n{\npublic:\n CsGame();\n ~CsGame();\n\n void keyEvent(char key);\n bool tick();\n\nprivate:\n // Mono generic stuff - https://www.youtube.com/w...
131
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 24.65, "nodes": 97, "errors": 0, "source_hash": "81aa3b6ad3ac6e9fdcc4b3ccf45ee146da0248c991e85173893b4c91d6628d8f", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,342
c
#include <windows.h> #include <shellapi.h> int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { STARTUPINFOA si; LPSTR pszCmdLine = GetCommandLineA(); if ( *pszCmdLine == '\"' ) { /* * Scan, and skip over, subsequent characters unti...
25.02
43
(translation_unit) "#include <windows.h> \n#include <shellapi.h> \n \nint PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) \n{ \n STARTUPINFOA si; \n LPSTR pszCmdLine = GetCommandLineA(); \n \n if ( *pszCmdLine == '\"' ) { \n /* \n * Scan, and skip over...
230
3
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 25.02, "nodes": 151, "errors": 0, "source_hash": "eebf2a97828d4ae43214263ee44ddf477ac3fbc487c85f21877bb21339e4b3c7", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,343
c
// // DAScratchpadView.h // DAScratchPad // // Created by <NAME> on 5/9/13. // Copyright 2013 Double Apps Inc. All rights reserved. // #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> typedef enum { DAScratchPadToolTypePaint = 0, DAScratchPadToolTypeAirBrush } DAScratchPadToolType; @interface DAScratc...
29.62
26
(translation_unit) "//\n// DAScratchpadView.h\n// DAScratchPad\n//\n// Created by <NAME> on 5/9/13.\n// Copyright 2013 Double Apps Inc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <QuartzCore/QuartzCore.h>\n\ntypedef enum {\n DAScratchPadToolTypePaint = 0,\n DAScratchPadToolTypeAirBrush\n} DAScratc...
199
35
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.62, "nodes": 139, "errors": 0, "source_hash": "577b77a6b050b5411d7f6b18585b33577ec2312788a5fe60831296b50148f1c3", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,344
c
int is_palindrome(unsigned long value){ int counter = 0; int lsize = 63; while(counter<32){ if( ( ( value >> count) &1 ) != ( (value >> lsize) &1 ) ) return 0; size--; counter++; } return 1; }
18.18
11
(translation_unit) "int is_palindrome(unsigned long value){\n int counter = 0;\n int lsize = 63;\n \n while(counter<32){\n if( ( ( value >> count) &1 ) != ( (value >> lsize) &1 ) ) return 0;\n size--;\n counter++;\n }\n return 1;\n }\n\n \n\n " (function_definition) "int is_palindrome(unsigned long value){\n i...
93
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.18, "nodes": 58, "errors": 0, "source_hash": "25b98770ce700c503cd85125b3466553de9a35442e728320cc9c0508b1d43439", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
6,345
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* f_create_unit.c :+: :+: :+: ...
25.42
115
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* f_create_unit.c ...
1,035
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 25.42, "nodes": 665, "errors": 0, "source_hash": "40381de485d4f15e101eb26f4f966c598cf5e776dff6259b4c64ca146a67018b", "categorized_nodes": 484}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,346
c
// // IphoneType.h // DSBrowser // // Created by 巩小鹏 on 2016/11/16. // Copyright © 2016年 巩小鹏. All rights reserved. // #define isiPhone2Gor3Gor3Gs ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] currentMode].size) : NO) #define isiPhone...
32
77
(translation_unit) "//\n// IphoneType.h\n// DSBrowser\n//\n// Created by 巩小鹏 on 2016/11/16.\n// Copyright © 2016年 巩小鹏. All rights reserved.\n//\n\n\n#define isiPhone2Gor3Gor3Gs ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] currentMode]...
419
7
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 32.0, "nodes": 281, "errors": 0, "source_hash": "6294380602d6ac4ab6c71d532d8021e20988c0ebe9e12830fc83d1683fb08f7c", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "e2Gor3Gor...
6,347
c
// // virtionet.c // // Network device driver for virtio // // Copyright (C) 2011 <NAME>. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain t...
36.35
221
(translation_unit) "//\n// virtionet.c\n//\n// Network device driver for virtio\n//\n// Copyright (C) 2011 <NAME>. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// \n// 1. Redistributio...
1,620
0
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 36.35, "nodes": 1038, "errors": 0, "source_hash": "4d331fb9b553f4fa8c52336bba0a35d31ba8c40d5ee57d2f2d86e8d58527d873", "categorized_nodes": 740}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,348
c
/** * \file FixedDelayLineFilter.h */ #ifndef ATK_DELAY_FIXEDDELAYFILTER_H #define ATK_DELAY_FIXEDDELAYFILTER_H #include <ATK/Core/TypedBaseFilter.h> #include <ATK/Delay/config.h> #include <ATK/Delay/DelayInterface.h> #include <vector> namespace ATK { /// Fixed delay line, max_delay should always be higher than...
29.17
47
(translation_unit) "/**\n * \file FixedDelayLineFilter.h\n */\n\n#ifndef ATK_DELAY_FIXEDDELAYFILTER_H\n#define ATK_DELAY_FIXEDDELAYFILTER_H\n\n#include <ATK/Core/TypedBaseFilter.h>\n#include <ATK/Delay/config.h>\n#include <ATK/Delay/DelayInterface.h>\n\n#include <vector>\n\nnamespace ATK\n{\n /// Fixed delay line, max...
260
21
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.17, "nodes": 159, "errors": 0, "source_hash": "09ed04935a51f1b06f99cfbf7145c59d976425f2e8cc2ea1a7ac9aa6af30d85b", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,349
c
/* 6. 만약에... (if 문) - 왜 & 대신에 &&를 쓸까? - 논리합 연산자 */ // 논리 합, 논리 부정 #include <stdio.h> int main() { int height, weight; printf("당신의 키와 몸무게를 각각 입력해주세요 : "); scanf("%d %d", &height, &weight); if (height >= 190 || weight >= 100) { printf("당신은 '거구' 입니다. \n"); } if (!(height >= 1...
21.17
18
(translation_unit) "/* 6. 만약에... (if 문)\n - 왜 & 대신에 &&를 쓸까?\n - 논리합 연산자\n*/\n// 논리 합, 논리 부정\n#include <stdio.h>\n\nint main() {\n int height, weight;\n printf("당신의 키와 몸무게를 각각 입력해주세요 : ");\n scanf("%d %d", &height, &weight);\n\n if (height >= 190 || weight >= 100) {\n printf("당신은 '거구' 입니다. \...
121
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.17, "nodes": 63, "errors": 0, "source_hash": "05a8759bb343153d8f9c3b381d68a1149801e034497bb415ba8638af712a2436", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " weigh...
6,350
c
#include <stdlib.h> #include <stdio.h> #include <inttypes.h> #include "../macros.h" /** Integrates 1/x over [a; b] with `n` trapezoids @param a Lower integral bound @param b Higher integral bound @param n Number of trapezoids **/ float trapezoid_integration(float a, float b, uint32_t n); int main(int argc...
23.19
48
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <inttypes.h>\n#include "../macros.h"\n\n/** Integrates 1/x over [a; b] with `n` trapezoids\n @param a Lower integral bound\n @param b Higher integral bound\n @param n Number of trapezoids\n**/\nfloat trapezoid_integration(float a, float b, u...
387
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.19, "nodes": 239, "errors": 0, "source_hash": "5aa764c943cb5a9675ed69fc1045b8013f80219dadc7738fe04d775c9f65c0a2", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,351
c
/* process.h. This file comes with MSDOS and WIN32 systems. */ #ifndef __PROCESS_H_ #define __PROCESS_H_ #ifdef __cplusplus extern "C" { #endif int execl(const char *path, const char *argv0, ...); int execle(const char *path, const char *argv0, ... /*, char * const *envp */); int execlp(const char *path, const cha...
44.45
33
(translation_unit) "/* process.h. This file comes with MSDOS and WIN32 systems. */\n\n#ifndef __PROCESS_H_\n#define __PROCESS_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nint execl(const char *path, const char *argv0, ...);\nint execle(const char *path, const char *argv0, ... /*, char * const *envp */);\nint exe...
567
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 44.45, "nodes": 365, "errors": 0, "source_hash": "244a8607a11e4ed41c0a27caa8da3bba722e03a9c5214359d8cbfd0dddfd6970", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,352
c
#ifndef RANGEMATCHER_H_ #define RANGEMATCHER_H_ #include "SerializeableMatcherIF.h" #include "../../serialize/SerializeAdapter.h" template<typename T> class RangeMatcher: public SerializeableMatcherIF<T> { public: bool inverted; T lowerBound; T upperBound; RangeMatcher() : inverted(true), lowerBound(1), upper...
30.53
62
(translation_unit) "#ifndef RANGEMATCHER_H_\n#define RANGEMATCHER_H_\n\n#include "SerializeableMatcherIF.h"\n#include "../../serialize/SerializeAdapter.h"\n\ntemplate<typename T>\nclass RangeMatcher: public SerializeableMatcherIF<T> {\npublic:\n bool inverted;\n T lowerBound;\n T upperBound;\n\n RangeMatcher() :\n in...
555
24
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 30.53, "nodes": 322, "errors": 0, "source_hash": "46788d18bcf9401ce9bcf70c636a534f8701a93d1f79a58a5c4af695af263310", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,353
c
//////////////////////////////////////////////////////////////////////////////////////////////// // File : HuffmanDef.h // Author : <NAME> // Last Modified : 03.24.08 // Purpose : Definition file and Prototypes for the Huffman Utilities. // Notes : Property of Full Sail University, Data Structures Course. //////...
33.07
155
(translation_unit) "////////////////////////////////////////////////////////////////////////////////////////////////\n// File : HuffmanDef.h\n// Author : <NAME>\n// Last Modified : 03.24.08\n// Purpose : Definition file and Prototypes for the Huffman Utilities.\n// Notes : Property of Full Sail University, Data ...
1,001
5
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 33.07, "nodes": 605, "errors": 0, "source_hash": "305b3f8dd96b6d19150591b7f6aee6c05ec987ba64954d861af9827988b9401e", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,354
c
///////////////////////////////////////////////////////////////////////////// // File: POP.H // // Purpose: This file provides the declarations for the POP // routines. // // Author: <NAME> // Created: 9/1/94 // Modified: // 10/4/94 JCP Added Kerberos capability // Modified: 3/3/98 <NAME> for Threa...
35.72
104
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// File: POP.H \n//\n// Purpose: This file provides the declarations for the POP\n// routines. \n//\n// Author: <NAME>\n// Created: 9/1/94\n// Modified:\n// 10/4/94 JCP Added Kerberos capability\n// Modif...
671
12
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 35.72, "nodes": 433, "errors": 0, "source_hash": "01a9134ccb6edc653709adc8e350e8b854f1a33f2bbb5ab397690167735aa2d5", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,355
c
// - <NAME> [2017], zlib/libpng licensed. #pragma once #include "CoreMinimal.h" #include "GameFramework/Pawn.h" #include "BombermanPawn.generated.h" ///////////////////////////////////////////////// ///FORWARD DECLARATIONS ///////////////////////////////////////////////// class USphereComponent; class UPawnMovementC...
39.03
105
(translation_unit) "// - <NAME> [2017], zlib/libpng licensed.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/Pawn.h"\n#include "BombermanPawn.generated.h"\n\n/////////////////////////////////////////////////\n///FORWARD DECLARATIONS\n/////////////////////////////////////////////////\nclass USphere...
549
7
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 39.03, "nodes": 329, "errors": 0, "source_hash": "39d47e4ca3167f3507bb613385f005574ba07cb1b4c59017c2d85b069f9d97de", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,356
c
/* * err.c * * error status reporting functions * * <NAME> * Cisco Systems, Inc. */ /* * * Copyright(c) 2001-2017 Cisco Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met...
33.75
99
(translation_unit) "/*\n * err.c\n *\n * error status reporting functions\n *\n * <NAME>\n * Cisco Systems, Inc.\n */\n/*\n *\n * Copyright(c) 2001-2017 Cisco Systems, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that t...
357
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 33.75, "nodes": 209, "errors": 0, "source_hash": "1156abb432a32895d70f9df856ae7e91a596481ac0aadf7d389b877607a04fab", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
6,357
c
#ifndef PRIMITIVEINPUT_h #define PRIMITIVEINPUT_h #include "GFX4d.h" class PrimitiveInput { protected: void (*callback)(int,int,int); GFX4d *gfx; uint16_t x; uint16_t w; uint16_t y; uint16_t h; uint16_t colorbp; uint16_t tcolor; uint16_t colorb; int id; bool enabled; ...
26.36
25
(translation_unit) "#ifndef PRIMITIVEINPUT_h\n#define PRIMITIVEINPUT_h\n\n#include "GFX4d.h"\n\nclass PrimitiveInput {\n protected:\n void (*callback)(int,int,int);\n GFX4d *gfx;\n uint16_t x;\n uint16_t w;\n uint16_t y;\n uint16_t h;\n uint16_t colorbp;\n uint16_t tcolor;\n uint16_t color...
224
14
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.36, "nodes": 150, "errors": 0, "source_hash": "3a2d9b6ba5666c5cb80f00d49dfe3f0a72076ffcf5277464ee2043497012db84", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,358
c
/**************************************************************************** * * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
35.87
300
(translation_unit) "/****************************************************************************\n *\n * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions...
1,686
1
{"language": "c", "success": true, "metadata": {"lines": 300, "avg_line_length": 35.87, "nodes": 909, "errors": 0, "source_hash": "b616a7c7a23d3c4b3ce07bef5372227734d6dda2137882a9be5695bea7aaac13", "categorized_nodes": 630}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,359
c
/* GUIDO Library Copyright (C) 2002 <NAME>, <NAME>, <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Th...
36.84
55
(translation_unit) "/*\n GUIDO Library\n Copyright (C) 2002 <NAME>, <NAME>, <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your opti...
177
4
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.84, "nodes": 108, "errors": 0, "source_hash": "ec5e1c60cd6e614261b6260823db1ea6b8d61aed106a7b92f04d1cf97b401068", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
6,360
c
#ifndef CONTROLCONTROLLER_H #define CONTROLCONTROLLER_H #include "controller.h" class NetworkManager; class Scheduler; class Settings; class CLIENT_API TaskController : public Controller { Q_OBJECT public: TaskController(QObject *parent = 0); ~TaskController(); bool init(NetworkManager *networkMana...
22.23
26
(translation_unit) "#ifndef CONTROLCONTROLLER_H\n#define CONTROLCONTROLLER_H\n\n#include "controller.h"\n\nclass NetworkManager;\nclass Scheduler;\nclass Settings;\n\nclass CLIENT_API TaskController : public Controller\n{\n Q_OBJECT\n\npublic:\n TaskController(QObject *parent = 0);\n ~TaskController();\n\n ...
144
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.23, "nodes": 86, "errors": 0, "source_hash": "68040512acd7cf89bf1cee4ab7c16daba32863694b2f49e5ef5b611018c8607c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,361
c
/* --COPYRIGHT--,BSD * Copyright (c) 2017, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copy...
40.21
225
(translation_unit) "/* --COPYRIGHT--,BSD\n * Copyright (c) 2017, Texas Instruments Incorporated\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source cod...
1,933
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 40.21, "nodes": 1327, "errors": 0, "source_hash": "f98127abe984b5ba7c11a4db01ec2ad7aa157cbc7253e23575192bdc1a8b42dd", "categorized_nodes": 958}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,362
c
#ifndef TRIGON_FS #define TRIGONS_FS #ifndef EPS #define EPS (0e-9) #endif #include <stdlib.h> int tf_geterr(); double sin(double); double cos(double); double tan(double); double cotan(double); #endif
15.75
12
(translation_unit) "#ifndef TRIGON_FS\n#define TRIGONS_FS\n\n#ifndef EPS\n#define EPS (0e-9)\n#endif\n\n#include <stdlib.h>\n\nint tf_geterr();\ndouble sin(double);\ndouble cos(double);\ndouble tan(double);\ndouble cotan(double);\n\n#endif\n" (preproc_ifdef) "#ifndef TRIGON_FS\n#define TRIGONS_FS\n\n#ifndef EPS\n#def...
67
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.75, "nodes": 51, "errors": 0, "source_hash": "841481104952a720d15aa8c5ca6c9923cafb9c354353457b37081e660e0b3d3b", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,363
c
/** ****************************************************************************** * @file iks01a3_conf.h * @author MEMS Application Team * @brief This file contains definitions for the MEMS components bus interfaces ****************************************************************************** * @att...
36.95
43
(translation_unit) "/**\n ******************************************************************************\n * @file iks01a3_conf.h\n * @author MEMS Application Team\n * @brief This file contains definitions for the MEMS components bus interfaces\n **************************************************************...
94
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.95, "nodes": 73, "errors": 0, "source_hash": "3e16610cd882b75270a11fdf5ea98a6a342ab84ca0975e7fa48af8cefdc68a77", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,364
c
#include "filend.h" #include "xemod_common.h" #include "xemod3.h" void body(char fileName[]) { FILE *openF = NULL; FILE *outF = NULL; int V3seed = 0; char* nameWoExt = NULL; char* fileExt = NULL; int ftNumRet = 0; nameWoExt = (char*)calloc((MAXFN+EXTENTION_LIMIT), sizeof(char)); if(!nameWoExt...
18.12
137
(translation_unit) "nclude "filend.h" \n#include "xemod_common.h" \n#include "xemod3.h" \n \nvoid body(char fileName[]) \n{ \n FILE *openF = NULL; \n FILE *outF = NULL; \n int V3seed = 0; \n \n char* nameWoExt = NULL; \n char* fileExt = NULL; \n int ftNumRet = 0; \n \n nameWoExt = (char*)calloc((MAXFN+EXTENTION_LIMIT),...
889
0
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 18.12, "nodes": 461, "errors": 0, "source_hash": "a1a27a1ee5364d56aa7a8cee924eac231ed9024c5def81207195572a8c8f19a6", "categorized_nodes": 302}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
6,365
c
/* * Copyright (c) 2015 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * 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...
41.01
103
(translation_unit) "/*\n * Copyright (c) 2015 ARM Limited. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.ap...
779
36
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 41.01, "nodes": 434, "errors": 0, "source_hash": "ae4e2a8d3d20ee28764f9ab3ff55759f834c185887b09d57112c9010b8b9cc2d", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,366
c
#ifndef CJValue_H #define CJValue_H #include <CJToken.h> #include <COptVal.h> #include <vector> class CJValue : public CJToken, public std::enable_shared_from_this<CJValue> { public: typedef std::vector<std::string> KeyNames; public: template<typename T> static std::shared_ptr<T> cast(CJValueP value) { r...
41.95
65
(translation_unit) "#ifndef CJValue_H\n#define CJValue_H\n\n#include <CJToken.h>\n#include <COptVal.h>\n#include <vector>\n\nclass CJValue : public CJToken, public std::enable_shared_from_this<CJValue> {\n public:\n typedef std::vector<std::string> KeyNames;\n\n public:\n template<typename T>\n static std::shared_pt...
980
68
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 41.95, "nodes": 553, "errors": 0, "source_hash": "d9ae69354a403f264637e53c4465b1e40b7746853d59ee0f4ab69f76c745e8ad", "categorized_nodes": 362}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,367
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject.h" #import "IDECommandHandler-Protocol.h" @interface XcodeEmptyAppCachesCommandHandler : NSObject <IDECommandHandler> { } - (BOOL)validateUserInterfaceItem:(id)arg...
26.46
13
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSObject.h"\n\n#import "IDECommandHandler-Protocol.h"\n\n@interface XcodeEmptyAppCachesCommandHandler : NSObject <IDECommandHandler>\n{\n}\n\n- (BOOL...
59
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.46, "nodes": 36, "errors": 0, "source_hash": "6af034c4ff2aec4ffa70f541723fdc7d9c4796fd126f6a7a2dcbe3241a3b4c25", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,368
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMTableView.h" @interface WCCardPkgBackTableView : MMTableView { double _maxHeight; id <WCCardPkgBackTableViewDelegate> _wx_delegate; } - (void).cxx_destruct; @property...
31.29
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "MMTableView.h"\n\n@interface WCCardPkgBackTableView : MMTableView\n{\n double _maxHeight;\n id <WCCardPkgBackTableViewDelegate> _wx_delegate;\n}\n...
107
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.29, "nodes": 67, "errors": 0, "source_hash": "e1078dea9b7b6bed6439a3199b6a2b14726d8309b34ba954c1457768d7db3862", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,369
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:38:36 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/ActionKit.framework/ActionKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME...
38.39
18
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:38:36 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/ActionKit.framework/ActionKit\n* classdump-dyld is licensed under GPLv3, Copyr...
100
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 38.39, "nodes": 59, "errors": 0, "source_hash": "caaa630eab72f9c4d08240a080d5565426e4955b8df7aee4d50fdac461f9f884", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <A...
6,370
c
// // Copyright (c) 2018 Open Whisper Systems. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface AES_CBC : NSObject /** * Encrypts with AES in CBC mode * * @param data data to encrypt * @param key AES key * @param iv Initialization vector for CBC ...
28.88
32
(translation_unit) "//\n// Copyright (c) 2018 Open Whisper Systems. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AES_CBC : NSObject\n\n/**\n * Encrypts with AES in CBC mode\n *\n * @param data data to encrypt\n * @param key AES key\n * @param iv ...
129
13
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 28.88, "nodes": 80, "errors": 0, "source_hash": "1afc4ccdd40df189ab8c68f41f3d3aad425e81ac0dd881bd8717216f65e3ddd9", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,371
c
#define VISITED 1 #define NOT_VISITED 0 int n, e; // number of nodes and edges vector<vi> graph; // adjacency list of the graph int dfsm[MAX]; // max number of vertices in the graph void dfs(int start) { dfsm[start] = VISITED; DBG(start); for (int i = 0; i < graph[start].size(); i++) { if(dfsm[graph[start][i]] ==...
21.27
26
(translation_unit) "#define VISITED 1\n#define NOT_VISITED 0\nint n, e; // number of nodes and edges\nvector<vi> graph; // adjacency list of the graph\nint dfsm[MAX]; // max number of vertices in the graph\n\nvoid dfs(int start) {\n dfsm[start] = VISITED;\n DBG(start);\n for (int i = 0; i < graph[start].size(); i++) {\...
262
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.27, "nodes": 146, "errors": 0, "source_hash": "026e0f5097593a0fb2a9f6446294e497f19b51244c91a4a2a2d2f1103e58a53c", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
6,372
c
#ifndef LINEOBJECT_H #define LINEOBJECT_H #include <QOpenGL.h> #include <QVector> #include <QVector3D> #include <ObjectBase.h> class LineObject : public ObjectBase { public: LineObject(); void Update(const QVector3D& pos, const QVector3D &n); virtual void PreDraw(); protected: virtual void BuildVertexData(); v...
18.95
21
(translation_unit) "#ifndef LINEOBJECT_H\n#define LINEOBJECT_H\n\n#include <QOpenGL.h>\n#include <QVector>\n#include <QVector3D>\n#include <ObjectBase.h>\n\nclass LineObject : public ObjectBase\n{\npublic:\n LineObject();\n void Update(const QVector3D& pos, const QVector3D &n);\n\n virtual void PreDraw();\n\nprotected:...
110
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.95, "nodes": 67, "errors": 0, "source_hash": "e083893b965228cf0f0c5c41dff6ebf205294706bf24cde77e31662c979d50e4", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,373
c
// sktoolslib - common files for SK tools // Copyright (C) 2016, 2020 <NAME> // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any late...
33.3
67
(translation_unit) "// sktoolslib - common files for SK tools\n\n// Copyright (C) 2016, 2020 <NAME>\n\n// This program is free software; you can redistribute it and/or\n// modify it under the terms of the GNU General Public License\n// as published by the Free Software Foundation; either version 2\n// of the License, o...
168
6
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 33.3, "nodes": 93, "errors": 0, "source_hash": "f2da76598ab6faaca9c9280c0cb698918681073d32b7091a3189b009a0c33abd", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,374
c
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CMDTypeBoolGPDB.h // // @doc: // Class for representing BOOL types in GPDB //--------------------------------------------------------------------------- #ifndef GP...
20.57
224
(translation_unit) "//---------------------------------------------------------------------------\n// Greenplum Database\n// Copyright (C) 2011 EMC Corp.\n//\n// @filename:\n// CMDTypeBoolGPDB.h\n//\n// @doc:\n// Class for representing BOOL types in GPDB\n//------------------------------------------------------------...
780
33
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 20.57, "nodes": 491, "errors": 0, "source_hash": "aa70860e4f3d2f71c2b39af3e5de521f62a5f3b51df1767d978cdde58106dba8", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,375
c
//########################################################################## //# # //# CLOUDCOMPARE # //# # //# This pr...
41.24
84
(translation_unit) "//##########################################################################\n//# #\n//# CLOUDCOMPARE #\n//# ...
300
16
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 41.24, "nodes": 158, "errors": 0, "source_hash": "775b605b600ba7bd8c8f35b9a8a95197aa065885569f3fbd1b7ef981764e96de", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,376
c
/* { dg-do compile } */ int kerninfo(int __bsx, double tscale) { return ( (int)(__extension__ ({ ((((__bsx) & 0xff000000u) >> 24) | (((__bsx) & 0x00ff0000) >> 8) | (((__bsx) & 0x0000ff00) << 8) | (((__bsx) & 0x000000ff) << 24) ); })) * tscale); }
19.43
14
(translation_unit) "/* { dg-do compile } */\n\nint\nkerninfo(int __bsx, double tscale)\n{\n return (\n (int)(__extension__\n ({\n ((((__bsx) & 0xff000000u) >> 24)\n | (((__bsx) & 0x00ff0000) >> 8)\n | (((__bsx) & 0x0000ff00) << 8)\n | (((__bsx) & 0x000000ff) << 24)\n ); }))\n * tscale);\n}...
119
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.43, "nodes": 63, "errors": 0, "source_hash": "88f8f0ada3801f318dc3a73bce8c447bdbe933bc57b17428ad0e30a848a8e325", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
6,377
c
#include<stdio.h> void main(){ int a, b; char op; printf("Enter Expression: "); scanf("%d, %c, %d", &a, &op, &b); switch (op) { case '+': printf("Output: %d", a+b); break; case '-': printf("Output: %d", a-b); break; case '*': printf("Outp...
18.11
28
(translation_unit) "#include<stdio.h>\n\nvoid main(){\n int a, b;\n char op;\n printf("Enter Expression: ");\n scanf("%d, %c, %d", &a, &op, &b);\n \n switch (op)\n {\n case '+':\n printf("Output: %d", a+b);\n break;\n case '-':\n printf("Output: %d", a-b);\n break;...
211
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.11, "nodes": 119, "errors": 0, "source_hash": "51ceebd23c32c418cedbc642a5fc5e73274c302734562f4bcb7d1c1c3057a3b1", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,378
c
// // QQLive.h // adsasd // // Created by Mac on 2017/11/24. // Copyright © 2017年 Mac. All rights reserved. // #import <Foundation/Foundation.h> @interface QQLive : NSObject /** 主播昵称 */ @property (nonatomic, copy) NSString *nick; /** 主播头像 */ @property (nonatomic, copy) NSString *portrait; @end
20.36
14
(translation_unit) "//\n// QQLive.h\n// adsasd\n//\n// Created by Mac on 2017/11/24.\n// Copyright © 2017年 Mac. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface QQLive : NSObject\n\n/** 主播昵称 */\n@property (nonatomic, copy) NSString *nick;\n/** 主播头像 */\n@property (nonatomic, copy) NSString...
56
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 37, "errors": 0, "source_hash": "f8e680b18a39bcbe67e1b5f8ae2da91654e2a8b25795b9d428e9e86b1d1d1138", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
6,379
c
// // BFPayViewController.h // BFSDK // // Created by JenKin on 15/4/8. // Copyright (c) 2015年 Zhejiang BeiFu Technology Co. Ltd. All rights reserved. // #import <UIKit/UIKit.h> /** 支付协议 */ @protocol BFPayDelegate <NSObject> /** 支付成功 */ @required -(void)BFPayDidSucceeded:(NSDictionary *)message; /** 支付失败 ...
23.71
77
(translation_unit) "//\n// BFPayViewController.h\n// BFSDK\n//\n// Created by JenKin on 15/4/8.\n// Copyright (c) 2015年 Zhejiang BeiFu Technology Co. Ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n/**\n 支付协议\n */\n@protocol BFPayDelegate <NSObject>\n\n/**\n 支付成功\n */\n@required\n-(void)BFPayDidSuccee...
472
59
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 23.71, "nodes": 304, "errors": 0, "source_hash": "38c438e0c53520353b040a98f7d1ab6a5c9e82837d06fd9c7093a68d0923c4da", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
6,380
c
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-Present by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #ifdef USE_TI_DATABASE @import JavaScriptCore; @import TitaniumKit.ObjcProxy; #...
34.41
46
(translation_unit) "/**\n * Appcelerator Titanium Mobile\n * Copyright (c) 2009-Present by Appcelerator, Inc. All Rights Reserved.\n * Licensed under the terms of the Apache Public License\n * Please see the LICENSE included with this distribution for details.\n */\n#ifdef USE_TI_DATABASE\n@import JavaScriptCore;\n@imp...
368
37
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 34.41, "nodes": 231, "errors": 0, "source_hash": "420b8282d42d35e21e473b66a9e8fe2e1aaca4e1b48bbfa99023ae2180254aa3", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
6,381
c
#pragma once namespace GPULightmass { #ifdef GPULIGHTMASSKERNEL_LIB #define GPULIGHTMASSKERNEL_API extern "C" __declspec(dllexport) #else #define GPULIGHTMASSKERNEL_API extern "C" __declspec(dllimport) struct int3 { int x, y, z; }; struct float2 { float x, y; }; struct float3 { float x, y, z; }; struct float4...
22.49
153
(translation_unit) "#pragma once\n\nnamespace GPULightmass\n{\n\n#ifdef GPULIGHTMASSKERNEL_LIB\n#define GPULIGHTMASSKERNEL_API extern "C" __declspec(dllexport)\n#else\n\n#define GPULIGHTMASSKERNEL_API extern "C" __declspec(dllimport)\n\nstruct int3\n{\n int x, y, z;\n};\n\nstruct float2\n{\n float x, y;\n};\n\nstruct f...
771
13
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 22.49, "nodes": 459, "errors": 0, "source_hash": "e731eaaa3081800a39380ca387acca782e1b0fc190cdc81f718841ab710563f0", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,382
c
// // scanner.h // Krim // // Created by <NAME> on 2021-03-23. // #include <tokens.h> typedef struct { TokenType type; const char* start; int length; int line; } Token; class Scanner { public: const char* start; const char* current; int line; Token scanToken(); void initScanner(const char* s...
13.95
22
(translation_unit) "//\n// scanner.h\n// Krim\n//\n// Created by <NAME> on 2021-03-23.\n//\n#include <tokens.h>\n\n\ntypedef struct {\n TokenType type;\n const char* start;\n int length;\n int line;\n} Token;\n\nclass Scanner {\npublic:\n const char* start;\n const char* current;\n int line;\n Token sca...
93
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 13.95, "nodes": 53, "errors": 0, "source_hash": "b002b0745a2c50ec03756988b12cbfe5057ae84826a2acbe762cd4a6bd09024c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,383
c
#ifndef SUBMODULE_CONFIG_CACHE_H #define SUBMODULE_CONFIG_CACHE_H #include "hashmap.h" #include "strbuf.h" /* * Submodule entry containing the information about a certain submodule * in a certain revision. */ struct submodule { const char *path; const char *name; const char *url; int fetch_recurse; const char...
33.69
26
(translation_unit) "#ifndef SUBMODULE_CONFIG_CACHE_H\n#define SUBMODULE_CONFIG_CACHE_H\n\n#include "hashmap.h"\n#include "strbuf.h"\n\n/*\n * Submodule entry containing the information about a certain submodule\n * in a certain revision.\n */\nstruct submodule {\n const char *path;\n const char *name;\n const char *url...
217
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.69, "nodes": 139, "errors": 0, "source_hash": "4722ec8a38edaf95d83fa723aa4ca9cb104f304128195301d253a6840d364b51", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,384
c
/*** * @Author: Xu.WANG * @Date: 2021-07-30 11:10:34 * @LastEditTime: 2021-08-21 19:28:11 * @LastEditors: Xu.WANG * @Description: * @FilePath: \sph_seepage_flows\seepage_flows_cuda\include\sf_cuda_define.h */ #ifndef _SF_CUDA_DEFINE_H_ #define _SF_CUDA_DEFINE_H_ #include <kiri_pbs_cuda/data/cuda_seepageflow_p...
39.32
19
(translation_unit) "/*** \n * @Author: Xu.WANG\n * @Date: 2021-07-30 11:10:34\n * @LastEditTime: 2021-08-21 19:28:11\n * @LastEditors: Xu.WANG\n * @Description: \n * @FilePath: \sph_seepage_flows\seepage_flows_cuda\include\sf_cuda_define.h\n */\n#ifndef _SF_CUDA_DEFINE_H_\n#define _SF_CUDA_DEFINE_H_\n\n#include <kiri_p...
34
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.32, "nodes": 31, "errors": 0, "source_hash": "95cfa3b7d022300e486231619bd9677078a7daf735c5a8fcb4fc5daea740130e", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,385
c
/* * This file is part of the Palacios Virtual Machine Monitor developed * by the V3VEE Project with funding from the United States National * Science Foundation and the Department of Energy. * * The V3VEE Project is a joint project between Northwestern University * and the University of New Mexico. You can f...
28.6
159
(translation_unit) "/*\n * This file is part of the Palacios Virtual Machine Monitor developed\n * by the V3VEE Project with funding from the United States National \n * Science Foundation and the Department of Energy. \n *\n * The V3VEE Project is a joint project between Northwestern University\n * and the University...
1,315
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 28.6, "nodes": 846, "errors": 0, "source_hash": "02fada50b22b21372cc74aefb933488ae27b3362d4b523d8b782012647f6bfc5", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,386
c
#ifndef _KEY_MAIN_H_ #define _KEY_MAIN_H_ #include "gpio_pub.h" #include "uart_pub.h" #define KEY_DEBUG #ifdef KEY_DEBUG #define KEY_PRT os_printf #define KEY_WPRT warning_prf #else #define KEY_PRT os_null_printf #define KEY_WPRT os_null_printf #endif #d...
26.83
18
(translation_unit) "#ifndef _KEY_MAIN_H_\n#define _KEY_MAIN_H_\n\n#include "gpio_pub.h"\n#include "uart_pub.h"\n\n#define KEY_DEBUG\n\n#ifdef KEY_DEBUG\n#define KEY_PRT os_printf\n#define KEY_WPRT warning_prf\n#else\n#define KEY_PRT os_null_printf\n#define KEY_WPRT ...
90
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.83, "nodes": 73, "errors": 0, "source_hash": "3b0a66d7cbe5ab77d95c30eaf80e57cda4ebcd446dccca2484a2f0c348396c98", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,387
c
#include "zfile.h" #include <linux/buffer_head.h> #include <linux/errno.h> #include <linux/fadvise.h> #include <linux/fs.h> #include <linux/kallsyms.h> #include <linux/lz4.h> #include <linux/mm.h> #include <linux/mman.h> #include <linux/slab.h> #include <linux/uaccess.h> #include <linux/uio.h> #include <linux/vmalloc....
25.7
287
(translation_unit) "#include "zfile.h"\n\n#include <linux/buffer_head.h>\n#include <linux/errno.h>\n#include <linux/fadvise.h>\n#include <linux/fs.h>\n#include <linux/kallsyms.h>\n#include <linux/lz4.h>\n#include <linux/mm.h>\n#include <linux/mman.h>\n#include <linux/slab.h>\n#include <linux/uaccess.h>\n#include <linux...
2,632
0
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 25.7, "nodes": 1652, "errors": 0, "source_hash": "c45c88c8397c47223fa9db62c7243f5ea5f733b290205ff309dfc4c005af60a0", "categorized_nodes": 1217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,388
c
///////////////////////////////////////////////// // Author: <NAME> // Create Time: 2021-05-24 23:08:49 // Modified by: <NAME> // Modified time: 2021-05-31 01:12:18 ////////////////////////////////////////////////// #ifndef _WINDOW_H_ #define _WINDOW_H_ #include <stdbool.h> #include "../freeglut/include/GL...
33.5
46
(translation_unit) "/////////////////////////////////////////////////\n // Author: <NAME>\n // Create Time: 2021-05-24 23:08:49\n // Modified by: <NAME>\n // Modified time: 2021-05-31 01:12:18\n //////////////////////////////////////////////////\n\n#ifndef _WINDOW_H_\n#define _WINDOW_H_\n\n#include <stdbool.h>\n\n#...
218
4
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 33.5, "nodes": 140, "errors": 0, "source_hash": "15ce225fc6fdee6ac0d9a0addf8772219b3c79e681577b55d653cea51a2a32cf", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,389
c
#pragma once #include "physics/iphysics_shape.h" namespace sulphur { namespace physics { /** * @class sulphur::physics::IPhysicsSphereShape : public sulphur::physics::IPhysicsShape * @brief The interface for sphere shapes. * @author <NAME>, <NAME> */ class IPhysicsSphereShape : public IPhy...
27
31
(translation_unit) "#pragma once\n\n#include "physics/iphysics_shape.h"\n\nnamespace sulphur\n{\n namespace physics\n {\n /**\n * @class sulphur::physics::IPhysicsSphereShape : public sulphur::physics::IPhysicsShape\n * @brief The interface for sphere shapes.\n * @author <NAME>, <NAME>\n */\n class ...
95
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.0, "nodes": 50, "errors": 0, "source_hash": "386a27fc00a65b5ff3a0888c18a99057d3f1cbe6b5f0e7c6f6c0ba6856212911", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,390
c
#ifndef MAPEVENTSTAIRS_H #define MAPEVENTSTAIRS_H #include "MapEventTile.h" class MapEventStairs : public MapEventTile { public: MapEventStairs(); MapEventStairs(bool next, int x, int y); virtual ~MapEventStairs(); virtual void Activate(); template<class Archive> ...
26.44
27
(translation_unit) "#ifndef MAPEVENTSTAIRS_H\n#define MAPEVENTSTAIRS_H\n\n#include "MapEventTile.h"\n\n\nclass MapEventStairs : public MapEventTile\n{\n public:\n MapEventStairs();\n MapEventStairs(bool next, int x, int y);\n virtual ~MapEventStairs();\n virtual void Activate();\n\n ...
192
15
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.44, "nodes": 113, "errors": 0, "source_hash": "b52e19dd519e67336d4aa89868d66e686cd4613ddd5e1571c6a06cd8ee74adb5", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,391
c
//--------------------------------------------------------------------------- // E L E N A P r o j e c t: ELENA Compiler Engine // // This file contains Console Helper. // Supported platforms: WinAPI // (C)2005-2017, by <NAME> //----------------------------------------...
29.37
19
(translation_unit) "//---------------------------------------------------------------------------\n// E L E N A P r o j e c t: ELENA Compiler Engine\n//\n// This file contains Console Helper.\n// Supported platforms: WinAPI\n// (C)2005-2017, by <NAME>\n//--------------...
66
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.37, "nodes": 30, "errors": 0, "source_hash": "86240e46887a0d484ea8efe87089fcf7b98bf3cb51a40985046fd41d8bd9022a", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,392
c
#pragma once #include "CoreMinimal.h" #include "Systems/Public/Iterator/ConvertersDecl.h" #include "Systems/Public/Iterator/Converters.h" #include "Systems/Public/Iterator/Macros.h" #include "Systems/Public/Iterator/SizeHint.h" template <typename T, typename I> struct TIterCast { public: using Self = TIterCast<T, ...
17.71
51
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n\n#include "Systems/Public/Iterator/ConvertersDecl.h"\n\n#include "Systems/Public/Iterator/Converters.h"\n#include "Systems/Public/Iterator/Macros.h"\n#include "Systems/Public/Iterator/SizeHint.h"\n\ntemplate <typename T, typename I>\nstruct TIterCast\n{\npu...
316
9
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 17.71, "nodes": 188, "errors": 0, "source_hash": "04058b334811d30a4c8151610a4fe19bcd45111e4d8aeb40473735cf05e7b536", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,393
c
#ifndef WAVDECODER_H #define WAVDECODER_H #include <plugin/IDecoder.h> #include <inttypes.h> #include <fstream> using namespace std; using namespace mous; #pragma pack(push, 1) struct WavHeader { // RIFF chunk char riffId[4]; uint32_t lenAfterRiff; char riffType[4]; // format chunk char form...
25.97
65
(translation_unit) "#ifndef WAVDECODER_H\n#define WAVDECODER_H\n\n#include <plugin/IDecoder.h>\n#include <inttypes.h>\n#include <fstream>\nusing namespace std;\nusing namespace mous;\n\n#pragma pack(push, 1)\n\nstruct WavHeader\n{\n // RIFF chunk\n char riffId[4];\n uint32_t lenAfterRiff;\n char riffType[4]...
380
16
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.97, "nodes": 244, "errors": 0, "source_hash": "d5c3bc9589985fd52d463edd1d8ac4fe35c61bdfb1151ed03140694c4207e2df", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,394
c
/** * Copyright 2018-2019 Dynatrace LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
30.11
63
(translation_unit) "/**\n* Copyright 2018-2019 Dynatrace LLC\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by ...
125
3
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.11, "nodes": 60, "errors": 0, "source_hash": "ff61505e4406847eeaac4691278fb4ee30f69b681342753729e9e34e35ba1ac0", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,395
c
// // ProgressView.h // 下载进度 // // Created by Mac on 16/10/8. // Copyright © 2016年 Mac. All rights reserved. // #import <UIKit/UIKit.h> @interface ProgressView : UIView @property(nonatomic,assign) float progress; @end
19.18
11
(translation_unit) "//\n// ProgressView.h\n// 下载进度\n//\n// Created by Mac on 16/10/8.\n// Copyright © 2016年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ProgressView : UIView\n@property(nonatomic,assign) float progress;\n@end\n" (comment) "//" (comment) "// ProgressView.h" (comment)...
34
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.18, "nodes": 20, "errors": 0, "source_hash": "ffc3f4662cc795479e9274eef7ac4c3e4c4f7601c42ec7cb0c279199839ca2ee", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
6,396
c
/*--------------------------------------------------------- Tunes.c ---------------------------------------------------------*/ #include "Tunes.h" #include "lcd.h" #include "keybrd.h" #include "measure.h" #include "Sensor.h" #include "utils.h" //--------------------------------------------------------- BYTE TunesIt...
25.07
28
(translation_unit) "/*---------------------------------------------------------\n Tunes.c\n---------------------------------------------------------*/\n\n#include "Tunes.h"\n#include "lcd.h"\n#include "keybrd.h"\n#include "measure.h"\n#include "Sensor.h"\n#include "utils.h"\n\n//---------------------------------------...
249
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.07, "nodes": 143, "errors": 0, "source_hash": "317402cca14fcbd2ba842d05b8d1f8f403dee7fb23f5c52f58a1cbff413672b1", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,397
c
// // Panoflex Plugin // // #ifndef __SPLUGIN_H__ #define __SPLUGIN_H__ #include <View.h> #include <Bitmap.h> #include <Rect.h> #include <image.h> #include <Window.h> #include <MenuField.h> #include <PopUpMenu.h> #include <MenuItem.h> #include "ImmersiveVideoPlugin.h" class SpiegelPlugin: public ImmersiveVideoPlugin{...
18.81
31
(translation_unit) "//\n// Panoflex Plugin\n//\n//\n#ifndef __SPLUGIN_H__\n#define __SPLUGIN_H__\n#include <View.h>\n#include <Bitmap.h>\n#include <Rect.h>\n#include <image.h>\n#include <Window.h>\n#include <MenuField.h>\n#include <PopUpMenu.h>\n#include <MenuItem.h>\n#include "ImmersiveVideoPlugin.h"\n\n\nclass Spiege...
172
2
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 18.81, "nodes": 120, "errors": 0, "source_hash": "2b78219f3b7e52bb28ae09022bf7a556d248dc30abe7c05bba9f9b848b646912", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,398
c
#ifndef _VULKAN_PHYSICAL_DEVICE_H_ #define _VULKAN_PHYSICAL_DEVICE_H_ #include "Globals.h" #include "vulkan/vulkan.hpp" #include <vector> #include <optional> //Device Extensions needed inline std::array<const char*, 1> device_desired_extensions = { VK_KHR_SWAPCHAIN_EXTENSION_NAME }; enum class PHYSICAL_FAMILY_INDEX ...
27.88
91
(translation_unit) "#ifndef _VULKAN_PHYSICAL_DEVICE_H_\n#define _VULKAN_PHYSICAL_DEVICE_H_\n\n#include "Globals.h"\n#include "vulkan/vulkan.hpp"\n#include <vector>\n#include <optional>\n\n//Device Extensions needed\ninline std::array<const char*, 1> device_desired_extensions = { VK_KHR_SWAPCHAIN_EXTENSION_NAME };\n\nen...
667
36
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.88, "nodes": 381, "errors": 0, "source_hash": "4b191f12274887d283509c9142d458f238545d249f5d369d9659c4ae1cc4f1a8", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,399