language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef _NS_IMPORT_CLASS_H_ #define _NS_IMPORT_CLASS_H_ #include "stdafx.h" #include "NSImport.h" #include <stdio.h> class NSImportClass { private: // Structures used and needed // Mine typedef struct CCharArrList_tag { char * lpszItem; CCharArrList_tag * pNext; } CCharArrList; // From NS import code...
33.09
133
(translation_unit) "#ifndef _NS_IMPORT_CLASS_H_\n#define _NS_IMPORT_CLASS_H_\n\n#include "stdafx.h"\n#include "NSImport.h"\n#include <stdio.h>\n\n\nclass NSImportClass\n{\nprivate:\n // Structures used and needed \n // Mine\n typedef struct CCharArrList_tag\n {\n char * lpszItem;\n CCharArrList_tag * pNext;\n\n } ...
1,047
4
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 33.09, "nodes": 711, "errors": 0, "source_hash": "7784c6c149ca6384fa45a6b7b29209130744c5340d05928932812101473c22a9", "categorized_nodes": 403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,400
c
/* Author(s): <NAME> (msc37) Project: sprog (gas-phase chemical kinetics). Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 <NAME>. File purpose: This files contains the definition of a structure for chemical species thermodynamic fitting parameters. Thermo p...
34.7
63
(translation_unit) "/*\n Author(s): <NAME> (msc37)\n Project: sprog (gas-phase chemical kinetics).\n Sourceforge: http://sourceforge.net/projects/mopssuite\n\n Copyright (C) 2008 <NAME>.\n\n File purpose:\n This files contains the definition of a structure for chemical species thermodynamic\n ...
166
6
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 34.7, "nodes": 102, "errors": 0, "source_hash": "5ef787850d26a25476ed3f3dfa2d37fefd3ca9d547851d477c03528ba72d697b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,401
c
/* Marquinhos e o telefone borrado */ #include <stdio.h> // Verificando os numeros primos int verif_primo(int a) { int i, somador=0; for(i = 1; i<=a ; i++) { // A passagem de A -> Ver se for primo if(a % i == 0) { somador ++; // Caso entre, contador soma +1 } } if(somador == 2) { //...
22.27
44
(translation_unit) "/* Marquinhos e o telefone borrado */\n#include <stdio.h>\n\n// Verificando os numeros primos\nint verif_primo(int a)\n{\n\n int i, somador=0;\n\n for(i = 1; i<=a ; i++) { // A passagem de A -> Ver se for primo\n if(a % i == 0) {\n somador ++; // Caso entre, contador soma +1\n ...
406
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 22.27, "nodes": 231, "errors": 0, "source_hash": "e753736634ce9b474bbf662b3ed5cc7d13e20a43e8f144b957714ea8e764bb76", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,402
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 * */ #ifndef CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H #define CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H #pragma onc...
37.23
31
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n\n#ifndef CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H\n#define CRYINCLUDE_CRYMO...
154
7
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 37.23, "nodes": 83, "errors": 0, "source_hash": "d2d193974bdf067a1a52fcd66874dbbfd1af719f0205ca1d1b6e62983bf425c0", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,403
c
#ifndef MXPROFILE_H #define MXPROFILE_H #include <wx/dialog.h> #include <wx/textctrl.h> #include <wx/listctrl.h> #include "ConfigManager.h" #include <wx/imaglist.h> #include <wx/arrstr.h> class mxProfile: public wxDialog { private: wxListCtrl *list; wxTextCtrl *text; wxTextCtrl *search; wxArrayString perfiles; wx...
25
33
(translation_unit) "#ifndef MXPROFILE_H\n#define MXPROFILE_H\n#include <wx/dialog.h>\n#include <wx/textctrl.h>\n#include <wx/listctrl.h>\n#include "ConfigManager.h"\n#include <wx/imaglist.h>\n#include <wx/arrstr.h>\n\nclass mxProfile: public wxDialog {\nprivate:\n wxListCtrl *list;\n wxTextCtrl *text;\n wxTextCtrl *sea...
234
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.0, "nodes": 152, "errors": 0, "source_hash": "56231b480c24f1248f3f9cf07bfa06fb99259dca299afedaeaeccf9ababee84a", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,404
c
#pragma once #include "./Generator.h" class Counter: public Generator<int> { private: protected: int counter; public: //Default Counter(); Counter(int startingIndex); // Copy constructor Counter(const Counter&) = default; // Move constructor Counter(Counter&&) = default; // Copy assignment opera...
23.43
23
(translation_unit) "#pragma once\n\n#include "./Generator.h"\n\nclass Counter: public Generator<int> {\nprivate:\nprotected:\n int counter;\npublic:\n //Default\n Counter();\n\n Counter(int startingIndex);\n\n // Copy constructor\n Counter(const Counter&) = default;\n\n // Move constructor\n Counter(Counter&&) ...
173
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.43, "nodes": 100, "errors": 0, "source_hash": "eff8cec42f5b9f9dfa1e18a12858559e3dd5f96328d2a195ce90bd8f1af2832f", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,405
c
/* -*- mode: C; mode: folding; fill-column: 70; -*- */ /* Copyright 2010-2011, Georgia Institute of Technology, USA. */ /* See COPYING for license. */ #include "compat.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include "xa...
29.19
155
(translation_unit) "/* -*- mode: C; mode: folding; fill-column: 70; -*- */\n/* Copyright 2010-2011, Georgia Institute of Technology, USA. */\n/* See COPYING for license. */\n#include "compat.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n\n#i...
1,471
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 29.19, "nodes": 891, "errors": 0, "source_hash": "3523d85fd68952097a29a142366ceab84b0afb40582b1c27bc9d97d6fb32bb75", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,406
c
#ifndef BIG_PROD_SUB_H #define BIG_PROD_SUB_H #include <big_types.h> namespace big { /** * Compute y -= prod(A,x) * * @param A A compressed matrix. * @param x A vector. * @param y Upon return this argument holds the * result subtracting the value of A times x to the * ...
24.69
26
(translation_unit) "#ifndef BIG_PROD_SUB_H\n#define BIG_PROD_SUB_H\n\n#include <big_types.h>\n\n\nnamespace big\n{\n \n /**\n * Compute y -= prod(A,x)\n *\n * @param A A compressed matrix.\n * @param x A vector.\n * @param y Upon return this argument holds the\n * result subtracting t...
98
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.69, "nodes": 62, "errors": 0, "source_hash": "0fc021f22424a56d7b13bb0cde90eabb47350302b941ba669f38f52295b1fddb", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,407
c
/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <hal/nrf_clock.h> #if defined(NRF_UARTE0) || defined(NRF_UARTE1) #include <hal/nrf_uarte.h> #endif #if defined(NRF_RTC0) || defined(NRF_RTC1) || defined(NRF_RTC2) #include <hal/nrf_rtc.h...
33.23
74
(translation_unit) "/*\n * Copyright (c) 2020 Nordic Semiconductor ASA\n *\n * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic\n */\n\n#include <hal/nrf_clock.h>\n#if defined(NRF_UARTE0) || defined(NRF_UARTE1)\n #include <hal/nrf_uarte.h>\n#endif\n#if defined(NRF_RTC0) || defined(NRF_RTC1) || defined(NRF_RTC...
457
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 33.23, "nodes": 300, "errors": 0, "source_hash": "74de35bd64fbcc5f18b6b0867b964a2fc536575aedea465cc763a80451982140", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,408
c
// // PushNewsTableViewCell.h // CMDriver // // Created by 凯东源 on 17/3/30. // Copyright © 2017年 城马联盟. All rights reserved. // #import <UIKit/UIKit.h> #import "PushNewsModel.h" @interface PushNewsTableViewCell : UITableViewCell @property (strong, nonatomic) PushNewsModel *pushNewsM; @end
23.33
12
(translation_unit) "//\n// PushNewsTableViewCell.h\n// CMDriver\n//\n// Created by 凯东源 on 17/3/30.\n// Copyright © 2017年 城马联盟. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "PushNewsModel.h"\n\n@interface PushNewsTableViewCell : UITableViewCell\n\n@property (strong, nonatomic) PushNewsModel *pushNews...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.33, "nodes": 25, "errors": 0, "source_hash": "ab490fcdce19b1e720363f2650ca6edb6d268a109eca6c2a5262ced17641d160", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit.h>\n#...
7,409
c
// // CHTools.h // lost02 // // Created by moxuyou on 16/9/24. // Copyright © 2016年 moxuyou. All rights reserved. // #import <Foundation/Foundation.h> @interface CHTools : NSObject /**根据key在沙盒中取出value*/ + (NSString *)valueForKey:(NSString *)key; /**获得当前版本*/ + (NSString *)currentVersion; /**以这个key把value保存到偏好设置中去*/...
21.44
18
(translation_unit) "//\n// CHTools.h\n// lost02\n//\n// Created by moxuyou on 16/9/24.\n// Copyright © 2016年 moxuyou. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CHTools : NSObject\n/**根据key在沙盒中取出value*/\n+ (NSString *)valueForKey:(NSString *)key;\n/**获得当前版本*/\n+ (NSString *)currentV...
94
10
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.44, "nodes": 55, "errors": 0, "source_hash": "511900bf10d5ea1f2657e19fc18c64337167e268dfa87100e95a1bc74ebeafd7", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
7,410
c
#pragma once #include <stdint.h> uint32_t car_random_get_int(void);
21.67
3
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\nuint32_t car_random_get_int(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (declaration) "uint32...
17
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.67, "nodes": 13, "errors": 0, "source_hash": "6fd368ebb7b8c2448d86c4cddc92cab3b0ebd92a188b9182dcd9ba913b3222e6", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,411
c
/** * \file Cpu1_Main.c * \brief Main function definition for Cpu core 1 . * * \copyright Copyright (c) 2018 Infineon Technologies AG. All rights reserved. * * * * IMPORTANT NOTICE * * * Infineon Technologies AG (Infineon) is supplying this file for use * exclusively with Inf...
31.57
42
(translation_unit) "/**\n * \file Cpu1_Main.c\n * \brief Main function definition for Cpu core 1 .\n *\n * \copyright Copyright (c) 2018 Infineon Technologies AG. All rights reserved.\n *\n *\n *\n * IMPORTANT NOTICE\n *\n *\n * Infineon Technologies AG (Infineon) is supplying this file ...
90
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.57, "nodes": 44, "errors": 0, "source_hash": "2ed33f4f1e3bd2eaa02d3dabc9b6557f0b863b257c703f1b1de0a0c59935ddc8", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,412
c
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
37.71
82
(translation_unit) "/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Library General Public\n License as published by the Free Software Foundation; either\n version 2 of the License,...
569
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 37.71, "nodes": 421, "errors": 0, "source_hash": "1dc43caa8e9660fdb9a376c76f821a0d360d1bb7beea3199169dab238cf0b074", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,413
c
#ifndef __MIL_BLOCK_UCHAR_H__ #define __MIL_BLOCK_UCHAR_H__ #define __MIL_TYPE uchar #include "_block_generic.h" #undef ___MIL_TYPE #endif
22.17
6
(translation_unit) "#ifndef __MIL_BLOCK_UCHAR_H__\n#define __MIL_BLOCK_UCHAR_H__\n\n#define __MIL_TYPE uchar\n#include "_block_generic.h"\n#undef ___MIL_TYPE\n\n#endif" (preproc_ifdef) "#ifndef __MIL_BLOCK_UCHAR_H__\n#define __MIL_BLOCK_UCHAR_H__\n\n#define __MIL_TYPE uchar\n#include "_block_generic.h"\n#undef ___MIL...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.17, "nodes": 17, "errors": 0, "source_hash": "4bcd60f160fa75b198ef7d4f39daf692cedbcc3dbaf40cb0e8737c357382333d", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,414
c
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. // ************************************************************************* // // ...
40.72
25
(translation_unit) "// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt\n// Project developers. See the top-level LICENSE file for dates and other\n// details. No copyright assignment is required to contribute to VisIt.\n\n// *********************************************************************...
55
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.72, "nodes": 30, "errors": 0, "source_hash": "52b1492fb2031df7f7da8765d522c315f3e654b5de5c2ed3fde0456f57c9e322", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,415
c
#include <stdlib.h> #include <math.h> #include "utone.h" #include "openlpc.h" int ut_lpc_create(ut_lpc **lpc) { *lpc = malloc(sizeof(ut_lpc)); return UT_OK; } int ut_lpc_destroy(ut_lpc **lpc) { ut_lpc *plpc; plpc = *lpc; ut_auxdata_free(&plpc->m_e); ut_auxdata_free(&plpc->m_d); ut_auxdata_...
26.87
87
(translation_unit) "#include <stdlib.h>\n#include <math.h>\n#include "utone.h"\n#include "openlpc.h"\n\nint ut_lpc_create(ut_lpc **lpc)\n{\n *lpc = malloc(sizeof(ut_lpc));\n return UT_OK;\n}\n\nint ut_lpc_destroy(ut_lpc **lpc)\n{\n ut_lpc *plpc;\n plpc = *lpc;\n ut_auxdata_free(&plpc->m_e);\n ut_auxda...
982
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 26.87, "nodes": 630, "errors": 0, "source_hash": "02ebf56b652fe794a2f401e90a8ecf0841e4fb11a97173beac5f56fc5c9bcf01", "categorized_nodes": 498}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,416
c
#ifndef _ASSIGNMENTS_H #define _ASSIGNMENTS_H // header for assignment manipulation/updating for characters #include "JA2Types.h" #include "Strategic/StrategicMovement.h" // this distinguishes whether we're only looking for patients healable THIS HOUR // (those that have been on their assignment long enough), or tho...
37.74
172
(translation_unit) "#ifndef _ASSIGNMENTS_H\n#define _ASSIGNMENTS_H\n\n// header for assignment manipulation/updating for characters\n\n#include "JA2Types.h"\n#include "Strategic/StrategicMovement.h"\n\n// this distinguishes whether we're only looking for patients healable THIS HOUR\n// (those that have been on their as...
1,043
7
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 37.74, "nodes": 729, "errors": 0, "source_hash": "99715ed3279680056a3151a22cb8ed4f0588f6e0f7273d134a1778b503a48aa6", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,417
c
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved // // Contents: M...
27.2
79
(translation_unit) " THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \n// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \n// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A \n// PARTICULAR PURPOSE. \n// \n// Copyright (c) Microsoft Corporation. All rights reserved ...
377
5
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 27.2, "nodes": 240, "errors": 0, "source_hash": "ad5e52aaf945ea40e52a377f4b33407cd653ef0ce10594a884ec9a7d9f50bc08", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclud...
7,418
c
/* * visitlog.h * * Copyright (c) 2008, Ueda Laboratory LMNtal Group * <<EMAIL>> 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 ret...
29.81
223
(translation_unit) "/*\n * visitlog.h\n *\n * Copyright (c) 2008, Ueda Laboratory LMNtal Group\n * <<EMAIL>> All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * 1. Redistrib...
1,389
21
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 29.81, "nodes": 900, "errors": 0, "source_hash": "06d04e61dd8da799acc140c06fed7059109614c16f36b63cab8d177f978e3e16", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,419
c
/****************************************************************************** MIT License Copyright (c) 2020 Mom's Friendly Robot Company Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without...
29.82
129
(translation_unit) "/******************************************************************************\nMIT License\n\nCopyright (c) 2020 Mom's Friendly Robot Company\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to de...
701
26
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 29.82, "nodes": 373, "errors": 0, "source_hash": "9a4a572c2e4f05f302b28ad2e1c4d254dcae82ad3ea34e1634159e9b2d7b92cc", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,420
c
// // FPPhotosGroupController.h // 判断相片是否存在 // // Created by 金医桥 on 2018/12/3. // Copyright © 2018 forping. All rights reserved. // #import <UIKit/UIKit.h> #import "FPPhotosConfig.h" NS_ASSUME_NONNULL_BEGIN @interface FPPhotosGroupController : UITableViewController @property (nonatomic , strong) FPPhotosConfig ...
23
15
(translation_unit) "//\n// FPPhotosGroupController.h\n// 判断相片是否存在\n//\n// Created by 金医桥 on 2018/12/3.\n// Copyright © 2018 forping. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "FPPhotosConfig.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FPPhotosGroupController : UITableViewController\n\n@property (...
48
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.0, "nodes": 33, "errors": 0, "source_hash": "34d68fab17a03f869e62369133b59cbef83947952f0c59201d2d37711f8e8625", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\n#import ...
7,421
c
#ifndef __XG_IOS_LUA_CALL_MANAGER_H__ #define __XG_IOS_LUA_CALL_MANAGER_H__ #include <iostream> class IosLuaCallManager { public: static IosLuaCallManager* getInstance(); IosLuaCallManager(); virtual ~IosLuaCallManager(); virtual void init(); /** Lua 调用 OC @param nKey key ...
18.61
28
(translation_unit) "#ifndef __XG_IOS_LUA_CALL_MANAGER_H__\n#define __XG_IOS_LUA_CALL_MANAGER_H__\n\n#include <iostream>\n\nclass IosLuaCallManager\n{\npublic:\n static IosLuaCallManager* getInstance();\n IosLuaCallManager();\n virtual ~IosLuaCallManager();\n virtual void init();\n \n /**\n Lua 调用 ...
103
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.61, "nodes": 66, "errors": 0, "source_hash": "b4477f4ad9ebf646ad8c756393c365e99ca1bcb5a6d5057c72be7564aab75a19", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,422
c
/* -- MIT License Copyright (c) 2018 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
28.2
69
(translation_unit) "/* --\nMIT License\n\nCopyright (c) 2018 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, ...
210
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 28.2, "nodes": 145, "errors": 0, "source_hash": "48f25beba52d716385ebbd469cdfb941623047c1ad79ac64a81743dfdb2ccbdd", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,423
c
/* * Generated by cppsrc.sh * On 2017-02-10 21:54:06,96 * by Kalessin */ /*--END OF HEADER BLOCK--*/ #pragma once namespace MoonGlare::Renderer::Device { struct ErrorHandler { static void RegisterErrorCallback(); static void CheckError() { GLenum err = glGetError(); if (err != GL_NO_ERROR) { auto ptr = (ch...
21.5
20
(translation_unit) "/*\n* Generated by cppsrc.sh\n* On 2017-02-10 21:54:06,96\n* by Kalessin\n*/\n/*--END OF HEADER BLOCK--*/\n\n#pragma once\n\nnamespace MoonGlare::Renderer::Device {\n\nstruct ErrorHandler {\n static void RegisterErrorCallback();\n\n static void CheckError() {\n GLenum err = glGetError();\n if (err...
119
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.5, "nodes": 68, "errors": 0, "source_hash": "0b8b293ac36d28b7c38a510d8796c9a9f82cffe1e91ad5bbd4915e7a37d25429", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,424
c
// Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #pragma once #include <memory> #include <utility> #include "reductions_fwd.h" #include "rand_state.h" #include "version.h"...
33.59
27
(translation_unit) "// Copyright (c) by respective owners including Yahoo!, Microsoft, and\n// individual contributors. All rights reserved. Released under a BSD (revised)\n// license as described in the file LICENSE.\n\n#pragma once\n\n#include <memory>\n#include <utility>\n#include "reductions_fwd.h"\n#include "rand_...
205
14
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.59, "nodes": 126, "errors": 0, "source_hash": "07c09d5bd8913a4c4cf4c9e6153d91d465158107d05ce79ba084bd2d2fffa39a", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,425
c
#include <stddef.h> /* for size_t */ #include <string.h> void *memset(void * const ptr, const int value, const size_t num) { unsigned char * const buffer = (unsigned char * const)ptr; for(size_t i = 0; i < num; ++i) { buffer[i] = (unsigned char) value; } return ptr; }
31.56
9
(translation_unit) "#include <stddef.h> /* for size_t */\n#include <string.h>\n\nvoid *memset(void * const ptr, const int value, const size_t num) {\n unsigned char * const buffer = (unsigned char * const)ptr;\n\n for(size_t i = 0; i < num; ++i) {\n buffer[i] = (unsigned char) value;\n }\n\n return p...
106
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 31.56, "nodes": 68, "errors": 0, "source_hash": "d0847ff27a87a81ad1e08b93a9ddbab9bdbca61e300d98ee93649389aafe7bf4", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,426
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMWebViewPluginBase.h" @interface MMWebViewPlugin_MenuWebSearch : MMWebViewPluginBase { BOOL _menuNotificationRegistered; u...
41.59
22
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "MMWebViewPluginBase.h"\n\n@interface MMWebViewPlugin_MenuWebSearch : MMWebViewPluginBase\n{\n BOOL _men...
165
15
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 41.59, "nodes": 102, "errors": 0, "source_hash": "06dd165e99442b6d86237b48cbb0d086a7d458da6da9da9f5e8cad6237021bbc", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,427
c
/* * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in t...
34.04
199
(translation_unit) "/*\n * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those terms.\n *\n * This ...
1,279
0
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 34.04, "nodes": 851, "errors": 0, "source_hash": "9c3ea8d4e0c0c6cacac8ba9f3b8ceb6aaab56346185990e7f2c133c2657c7d95", "categorized_nodes": 503}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,428
c
// // UILabel+BAppend.h // Fch_OA // // Created by bai on 2016/10/21. // Copyright © 2016年 bai.xianzhi. All rights reserved. // #import <UIKit/UIKit.h> /** 为lable添加其他文字的cotegray 本cotegray依赖UILabel+BAtt.h */ @interface UILabel (BAppend) /** 为lable添加后续文字 @param appendText 添加的文字 */ -(void)B_appendText:(NSStr...
20.81
31
(translation_unit) "//\n// UILabel+BAppend.h\n// Fch_OA\n//\n// Created by bai on 2016/10/21.\n// Copyright © 2016年 bai.xianzhi. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\n 为lable添加其他文字的cotegray 本cotegray依赖UILabel+BAtt.h\n */\n@interface UILabel (BAppend)\n\n/**\n 为lable添加后续文字\n\n @param appendTex...
117
16
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.81, "nodes": 74, "errors": 0, "source_hash": "6ef2ea0081411df914966dc94d3cd06a964ddc2c529ba40e03d152065c4345e5", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,429
c
#pragma once #include <deque> #include <memory> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "parser/ast/context.h" #include "parser/common.h" namespace seq { namespace ast { namespace TypeItem { class Import; class Static; class Var; class Func; c...
37.17
156
(translation_unit) "#pragma once\n\n#include <deque>\n#include <memory>\n#include <stack>\n#include <string>\n#include <unordered_map>\n#include <unordered_set>\n#include <vector>\n\n#include "parser/ast/context.h"\n#include "parser/common.h"\n\nnamespace seq {\nnamespace ast {\n\nnamespace TypeItem {\n\nclass Import;\...
1,862
101
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 37.17, "nodes": 1009, "errors": 0, "source_hash": "61b399706ddd1f23f362cdd5f92a7f3e310e5ed16ba87284389780272e2893fd", "categorized_nodes": 674}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
7,430
c
#pragma once #include <vector> #include "Token.h" // // the tokens class Tokens : public std::vector<Token*> { public: Tokens(); ~Tokens(); };
12.36
11
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include "Token.h"\n\n//\n// the tokens\nclass Tokens : public std::vector<Token*>\n{\npublic:\n Tokens();\n ~Tokens();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <vector>\n" ...
53
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 12.36, "nodes": 27, "errors": 0, "source_hash": "895de7a3664a3287439542884dc229dc16161159a075de0f8a4709306164ddd4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,431
c
#include <wayland-client.h> #include "utils.h" #include "buffer.h" #define FB_COORDS(name, tx, ty) \ static void fb_coords_##name(uint32_t width, uint32_t height, \ uint32_t ox, uint32_t oy, \ uint32_t *fb_x, uint32_t *fb_y) \ { \ *fb_x = (tx);\ *fb_y = (ty); \ } FB_COORDS(normal, ox, hei...
37.5
80
(translation_unit) "#include <wayland-client.h>\n\n#include "utils.h"\n\n#include "buffer.h"\n\n\n#define FB_COORDS(name, tx, ty) \\n static void fb_coords_##name(uint32_t width, uint32_t height, \\n uint32_t ox, uint32_t oy, \\n uint32_t *fb_x, uint32_t *fb_y) \\n { \\n *fb_x = (tx);\\n *fb_y = (ty);...
613
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 37.5, "nodes": 392, "errors": 0, "source_hash": "015ea2c4ace9f216599de687acd8537b1f29f3ac5a099652dab883902169c99d", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,432
c
#include <stdio.h> #define SUNNY 01 // 001 #define RAINING 02 // 010 #define WINDY 04 // 100 struct flags { unsigned is_sunny: 1; unsigned is_raining: 1; unsigned is_windy: 1; }; typedef struct flags flags_t; void forecast_flags( flags_t f ) { // test if any of the fs are set // test if none of the f are s...
21.47
43
(translation_unit) "#include <stdio.h>\n\n#define SUNNY 01 // 001\n#define RAINING 02 // 010\n#define WINDY 04 // 100\n\nstruct flags {\n unsigned is_sunny: 1;\n unsigned is_raining: 1;\n unsigned is_windy: 1;\n};\n\ntypedef struct flags flags_t;\n\nvoid forecast_flags( flags_t f )\n{\n // test if any of the fs are...
325
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 21.47, "nodes": 175, "errors": 0, "source_hash": "16f137d8ce959d1e194b4e8eb254b1b467fe8e5d835045b6974bd0ef4d8708ec", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,433
c
#pragma once #include "VulkanContext.h" #include "VulkanRenderer.h" #include "VulkanSet.h" class VulkanRenderPipeline { public: ////////////////////////// //// Constructors / Descructor ///////////////////////// VulkanRenderPipeline( VulkanContextPtr ctx, VulkanShaderRef shader, Vulka...
29.58
67
(translation_unit) "#pragma once\n\n#include "VulkanContext.h"\n#include "VulkanRenderer.h"\n#include "VulkanSet.h"\n\nclass VulkanRenderPipeline\n{\npublic:\n\n //////////////////////////\n //// Constructors / Descructor\n /////////////////////////\n\n VulkanRenderPipeline(\n VulkanContextPtr ctx,\n V...
514
33
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 29.58, "nodes": 310, "errors": 0, "source_hash": "c2e039661962ef94cb768b890dfd4ffe2eb49ced15d02d9ed62c939ed7030f8a", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,434
c
#import <Foundation/Foundation.h> #import "CMObject.h" /** * virusapi * The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.c...
26.32
28
(translation_unit) "#import <Foundation/Foundation.h>\n#import "CMObject.h"\n\n/**\n* virusapi\n* The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.\n*\n* OpenAPI spec version: v1\n* \n*\n* NOTE: This class is auto generated by the swagger code generat...
71
15
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.32, "nodes": 55, "errors": 0, "source_hash": "91502f1e702e24947686e052f2a3dd78c5d3cfdcc6f075747913035d55b1903b", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,435
c
#include "zero_latency_convolve.h" void *largest_partition_time_alloc(AH_UIntPtr size, AH_UIntPtr nom_size) { return partition_convolve_new(16384, (size > 16384 ? size : 16384) - 8192, 8192, 0); } void *largest_partition_fft1_alloc(AH_UIntPtr size, AH_UIntPtr nom_size) { return partition_convolve_new(1638...
32.46
224
(translation_unit) "#include "zero_latency_convolve.h"\n\n\nvoid *largest_partition_time_alloc(AH_UIntPtr size, AH_UIntPtr nom_size)\n{\n return partition_convolve_new(16384, (size > 16384 ? size : 16384) - 8192, 8192, 0);\n}\n\n\nvoid *largest_partition_fft1_alloc(AH_UIntPtr size, AH_UIntPtr nom_size)\n{\n retur...
1,802
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 32.46, "nodes": 1134, "errors": 0, "source_hash": "945fd8009adbb29bcbb599c42992b0bcf5ecbd61df03ff67e33ea7335df3f91a", "categorized_nodes": 855}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,436
c
#ifndef WINDOW_H #define WINDOW_H #include <QMainWindow> #include <QWidget> #include <QLCDNumber> #include <QSlider> #include <QPushButton> #include <QLabel> #include <QComboBox> #include <QCheckBox> using namespace std; class GLWidget; class Window : public QMainWindow { Q_OBJECT public slots: void about(); p...
19.94
36
(translation_unit) "#ifndef WINDOW_H\n#define WINDOW_H\n\n#include <QMainWindow>\n#include <QWidget>\n#include <QLCDNumber>\n#include <QSlider>\n#include <QPushButton>\n#include <QLabel>\n#include <QComboBox>\n#include <QCheckBox>\nusing namespace std;\n\nclass GLWidget;\n\nclass Window : public QMainWindow\n{\n Q_OBJ...
201
7
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 19.94, "nodes": 137, "errors": 0, "source_hash": "dd1d5d3ee33ff721c5215e991ae1c24c92e208a70c24e0237620bbe2784ab750", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,437
c
// // View.h // View // // Created by <NAME> on 01/06/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for View. FOUNDATION_EXPORT double ViewVersionNumber; //! Project version string for View. FOUNDATION_EXPORT const unsigned char ViewVersionString[]; ...
33.38
13
(translation_unit) "//\n// View.h\n// View\n//\n// Created by <NAME> on 01/06/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for View.\nFOUNDATION_EXPORT double ViewVersionNumber;\n\n//! Project version string for View.\nFOUNDATION_EXPORT const u...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.38, "nodes": 15, "errors": 0, "source_hash": "41053b0de8bd64ea0899238d61521fb936b55ca14fac0220c6c88794d9c61fbf", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
7,438
c
#ifndef SMPL_API_H #define SMPL_API_H #define sp_push_String(S,s) sp_push_string((S), (s)->src, (s)->len) /* * * Wrappers for getting globals * */ /* ** given an SMPL string and a mask */ #define sp_Smget_global(S,m,s) (sp_mget_global((S), (m), (s)->src, (s)->len)) /* ** given an C string *...
26.18
66
(translation_unit) "#ifndef SMPL_API_H \n#define SMPL_API_H \n \n \n#define sp_push_String(S,s) sp_push_string((S), (s)->src, (s)->len) \n \n \n/* \n* \n* Wrappers for getting globals \n* \n*/ \n \n \n/* \n** given an SMPL string and a mask \n*/ \n#define sp_Smget_global(S,m,s) (sp_mget_global((S), (m), (s)->src, (s)-...
219
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 26.18, "nodes": 146, "errors": 0, "source_hash": "5957854f6adc49c6bf1cdac3002016ac15a4575b3604cfc9c62bf678256d044b", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,439
c
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <stdint.h> #include <string> /** * An instance of this class provides operations for allocating and free...
32.11
35
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <stdint.h>\n#include <string>\n\n/**\n * An instance of this class provides o...
202
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.11, "nodes": 125, "errors": 0, "source_hash": "0f744424afd923755a2bc472ab22fd95be9b9f6f252c4aebad4871a2898fda91", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,440
c
// // Created by MichelT on 14/02/2020. // #ifndef GRAPH_LIST_H #define GRAPH_LIST_H typedef struct node { int key; struct node *prev; struct node *next; } node; node *create_linked_list(); node *create_node(int key); node *get_tail(node *head); node *add_begin(node *head, int key); node *add_end(nod...
27.91
23
(translation_unit) "//\n// Created by MichelT on 14/02/2020.\n//\n\n#ifndef GRAPH_LIST_H\n#define GRAPH_LIST_H\n\ntypedef struct node {\n int key;\n struct node *prev;\n struct node *next;\n} node;\n\nnode *create_linked_list();\n\nnode *create_node(int key);\n\nnode *get_tail(node *head);\n\nnode *add_begin(n...
253
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.91, "nodes": 196, "errors": 0, "source_hash": "fd112ae54f230d054a3ea789e7b4233afcc2b20f32a49316e1f393da09a3f279", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,441
c
// // LKBView.h // mytool-oc // // Created by Apple on 17/3/8. // Copyright © 2017年 lkb-求工作qq:1218773641. All rights reserved. // #import <UIKit/UIKit.h> @interface LKBView : UIView @end
18.1
10
(translation_unit) "//\n// LKBView.h\n// mytool-oc\n//\n// Created by Apple on 17/3/8.\n// Copyright © 2017年 lkb-求工作qq:1218773641. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LKBView : UIView\n\n@end\n" (comment) "//" (comment) "// LKBView.h" (comment) "// mytool-oc" (comment) "//" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.1, "nodes": 9, "errors": 0, "source_hash": "a7196385d7607772d1786fa73e5b2d40a7c6c6cf5f6144c19285f16aca1f446c", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit....
7,442
c
// // XZThemeDefines.h // XZKit // // Created by mlibai on 2017/10/14. // #import <Foundation/Foundation.h> /// 主题标识符,复合标识符用空格间隔。 /// @note 请不要使用空字符串作为标识符。 /// @note 在 Swift 中,复合标识符可以用数组表示,Objective-C 中只能使用空格隔开的字符串。 /// @note 在 Swift 中,可以使用字符串字面量创建标识符,可以使用 for-in 遍历其中的子标识符。 typedef NSString * XZThemeIdentifier NS_...
34.11
18
(translation_unit) "//\n// XZThemeDefines.h\n// XZKit\n//\n// Created by mlibai on 2017/10/14.\n//\n\n#import <Foundation/Foundation.h>\n\n/// 主题标识符,复合标识符用空格间隔。\n/// @note 请不要使用空字符串作为标识符。\n/// @note 在 Swift 中,复合标识符可以用数组表示,Objective-C 中只能使用空格隔开的字符串。\n/// @note 在 Swift 中,可以使用字符串字面量创建标识符,可以使用 for-in 遍历其中的子标识符。\ntypedef...
78
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.11, "nodes": 48, "errors": 0, "source_hash": "ce26f5559b15a10129476039ff42f00714cbcd0023467824cadde85a0d8608ca", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,443
c
int foo() { static int f=0; f += 2; return f; }
11
5
(translation_unit) "int foo() {\n static int f=0;\n f += 2;\n return f;\n}\n" (function_definition) "int foo() {\n static int f=0;\n f += 2;\n return f;\n}" (primitive_type) "int" (function_declarator) "foo()" (identifier) "foo" (parameter_list) "()" (() "(" ()) "...
30
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 11.0, "nodes": 17, "errors": 0, "source_hash": "6623bd9a5528e5f3b7bfcc407f8ab09a641c67f2875311701ac1912a11193d24", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int ...
7,444
c
/* * CoreUtils.h * Developed by <NAME> * Contact me @ <EMAIL> * https://owner.erratums.com * Date created: 07-June-2020 */ #ifndef CLIENT_H_ #define CLIENT_H_ #include <ESP8266WiFi.h> const byte cHTTP_REQUEST_TYPE_GET = 0; const byte cHTTP_REQUEST_TYPE_POST = 1; const IPAddress cSA_API_IPAdd...
22.81
42
(translation_unit) "/* \n * CoreUtils.h \n * Developed by <NAME> \n * Contact me @ <EMAIL> \n * https://owner.erratums.com \n * Date created: 07-June-2020 \n */ \n \n#ifndef CLIENT_H_ \n#define CLIENT_H_ \n \n#include <ESP8266WiFi.h> \n \nconst byte cHTTP_REQUEST_TYPE_GET = 0; \nconst byte cHTTP_REQUEST_TYPE_POST = 1; ...
207
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.81, "nodes": 127, "errors": 0, "source_hash": "adbfc846ee8aa25256cce9c3385dc0dd2de5461c9b07ae976a217198e9266309", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,445
c
/* * Copyright (c) 2020 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU) * OS-Lab-2020 (i.e., ChCore) is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * ...
36.12
51
(translation_unit) "/*\n * Copyright (c) 2020 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU)\n * OS-Lab-2020 (i.e., ChCore) is licensed under the Mulan PSL v1.\n * You can use this software according to the terms and conditions of the Mulan PSL v1.\n * You may obtain a copy ...
336
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.12, "nodes": 253, "errors": 0, "source_hash": "1c04332471cc01ed69b23d901f2039386f56947271affce7607a1d8f0ade9b3f", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,446
c
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_COMMON_JPEG_IMAGE_H #define VSNRAY_COMMON_JPEG_IMAGE_H #if defined(VSNRAY_HAVE_JPEG) #include <cstddef> #include <string> #include <vector> namespace visionaray { class jpeg_image { public: jpe...
25.08
26
(translation_unit) "// This file is distributed under the MIT license.\n// See the LICENSE file for details.\n\n#pragma once\n\n#ifndef VSNRAY_COMMON_JPEG_IMAGE_H\n#define VSNRAY_COMMON_JPEG_IMAGE_H\n\n#if defined(VSNRAY_HAVE_JPEG)\n\n#include <cstddef>\n#include <string>\n#include <vector>\n\nnamespace visionaray\n{\n...
156
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.08, "nodes": 87, "errors": 0, "source_hash": "9a0c9577f70e7734ce36b0a11ee86f4a786197270225c7348f5a05b4a7e97d27", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,447
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import <XXUnknownSuperclass.h> // Unknown library #import "AWSCognitoIdentityProvider.h" @class NSString, NSDictionary; @interface AWSAbstractIdentityProvider : XXU...
33.97
32
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import <XXUnknownSuperclass.h> // Unknown library\n#import "AWSCognitoIdentityProvider.h"\n\n@class NSString, NSDictionary;\n\n@interface A...
299
28
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.97, "nodes": 194, "errors": 0, "source_hash": "a3cdf0a3cf81d5994d892ace365899acc62a7248f73299cfbc04824333bd7da4", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,448
c
#ifndef IHMM_SEQ_H #define IHMM_SEQ_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "tldevel.h" #include "global.h" #include "distributions.h" #include <stdint.h> #include <ctype.h> #define BLOCK_LEN 70 #define IHMM_SEQ_READ_ALL 0 #define IHMM_SEQ_READ_ONLY_SEQ 1 struct ihmm_sequence{ uint...
41.75
65
(translation_unit) "#ifndef IHMM_SEQ_H\n#define IHMM_SEQ_H\n\n\n\n#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif\n\n#include "tldevel.h"\n\n#include "global.h"\n#include "distributions.h"\n\n#include <stdint.h>\n#include <ctype.h>\n\n\n#define BLOCK_LEN 70\n\n#define IHMM_SEQ_READ_ALL 0\n\n#define IHMM_SEQ_READ_ONLY...
748
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 41.75, "nodes": 606, "errors": 0, "source_hash": "33e2c57a22a1d58888f22e480caa1a8f57d25aa50d7806dbe7777a85cb931e84", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,449
c
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "util.h" #if defined(__i386__) #define IP eip #elif defined(__x86_64__) #define IP rip #else #error unknown architecture #endif static void breakpoint(void) {} int main(void) { pid_t child; int status; struct user_regs_str...
32.98
51
(translation_unit) "/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */\n\n#include "util.h"\n\n#if defined(__i386__)\n#define IP eip\n#elif defined(__x86_64__)\n#define IP rip\n#else\n#error unknown architecture\n#endif\n\nstatic void breakpoint(void) {}\n\nint main(void) {\n pid_t child;\n...
668
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.98, "nodes": 405, "errors": 0, "source_hash": "a2ee4bda268fc98dc74ab2e21d8eadea79a389d99e6960e922d8eb75d673b2da", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,450
c
/* * Copyright (c) 2019 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define CA_CERTIFICATE_TAG 1 #define TLS_PEER_HOSTNAME "localhost" /* This is the same cert as what is found in net-tools/https-cert.pem file */ static const unsigned char ca_certificate[] = { #include "https-cert.der.inc" };
25.33
12
(translation_unit) "/*\n * Copyright (c) 2019 Intel Corporation\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#define CA_CERTIFICATE_TAG 1\n\n#define TLS_PEER_HOSTNAME "localhost"\n\n/* This is the same cert as what is found in net-tools/https-cert.pem file\n */\nstatic const unsigned char ca_certificate[] = {\n#...
35
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.33, "nodes": 20, "errors": 0, "source_hash": "5da91afdc91c005edebd1be367b4062c6243f3b520893aa8ea744a3cc85822f3", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CA_...
7,451
c
/* Memory layout and register descriptions for the TSUNAMI/TYPHOON chipset. Copyright (C) 2011 <NAME> This file is part of QEMU PALcode. 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 Foundatio...
32.18
163
(translation_unit) "/* Memory layout and register descriptions for the TSUNAMI/TYPHOON chipset.\n\n Copyright (C) 2011 <NAME>\n\n This file is part of QEMU PALcode.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n ...
747
109
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 32.18, "nodes": 619, "errors": 0, "source_hash": "e0c08b67c1e4851bb46224c5cc8b1ddba4d835b1e8300f0084df38f7dc8c41a7", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,452
c
/* * config.h * * Created on: 26.07.2017 * Author: de1m */ #ifndef MAIN_CONFIG_H_ #define MAIN_CONFIG_H_ #endif /* MAIN_CONFIG_H_ */ #include <string.h> #include <stdlib.h> #include "esp_system.h" struct wCLIENTCFG { char ssid[32]; char password[64]; char ip[15]; char netmask[15]; char gw[15]; char...
22.36
42
(translation_unit) "/*\n * config.h\n *\n * Created on: 26.07.2017\n * Author: de1m\n */\n\n#ifndef MAIN_CONFIG_H_\n#define MAIN_CONFIG_H_\n\n#endif /* MAIN_CONFIG_H_ */\n\n#include <string.h>\n#include <stdlib.h>\n#include "esp_system.h"\n\nstruct wCLIENTCFG {\n char ssid[32];\n char password[64];\n char ip[15];...
188
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.36, "nodes": 116, "errors": 0, "source_hash": "7b746722ef0980845d066419591630e0bb699381180c76be4a6f01dd4a4407e1", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,453
c
#pragma once #include <gtest/gtest.h> #define JTEST_NAME(SUITE, NAME) GTEST_TEST(SUITE, NAME) #define JTEST_TRUE(CONDITION) EXPECT_TRUE(CONDITION) #define JTEST_EQ(VALUE1, VALUE2) EXPECT_EQ(VALUE1, VALUE2)
40.2
5
(translation_unit) "#pragma once\n\n#include <gtest/gtest.h>\n\n#define JTEST_NAME(SUITE, NAME) GTEST_TEST(SUITE, NAME)\n#define JTEST_TRUE(CONDITION) EXPECT_TRUE(CONDITION)\n#define JTEST_EQ(VALUE1, VALUE2) EXPECT_EQ(VALUE1, VALUE2)\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_ar...
35
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 40.2, "nodes": 26, "errors": 0, "source_hash": "e4716816e4459f5048f138ed21dea8298a388aa75cfc442bdb6f30e7fdc01888", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,454
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> #import "BKFirstBootTokenProviding-Protocol.h" @class NSString; @interface BKFirstBootKernelSemaphoreToken : NSObject <BKFir...
34.65
23
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n#import "BKFirstBootTokenProviding-Protocol.h"\n\n@class NSString;\n\n@interface BKFirstBootKernel...
162
16
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.65, "nodes": 101, "errors": 0, "source_hash": "268b41d8c1895fc885b5ab22cd2f364d373b605cd5fa82da70d7898e94ffca23", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,455
c
/******************************************************************************* * * DO NOT EDIT THIS FILE! * This file is auto-generated by fltg from * INTERNAL/fltg/xgs/tm/bcm56996_a0/bcm56996_a0_TM_SHAPER_NODE.map.ltl for * bcm56996_a0 * * Tool: $SDK/INTERNAL/fltg/bin/fltg * * Edits to this file wil...
31.99
232
(translation_unit) "/*******************************************************************************\n *\n * DO NOT EDIT THIS FILE!\n * This file is auto-generated by fltg from\n * INTERNAL/fltg/xgs/tm/bcm56996_a0/bcm56996_a0_TM_SHAPER_NODE.map.ltl for\n * bcm56996_a0\n *\n * Tool: $SDK/INTERNAL/fltg/bin/fltg\n...
1,361
0
{"language": "c", "success": true, "metadata": {"lines": 232, "avg_line_length": 31.99, "nodes": 861, "errors": 0, "source_hash": "5fa672108aac3184c4c1a64de7c3b3d8ebfd0b956077d916f39eecd732232c3d", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,456
c
class IBar; class Foo { public: Foo(IBar& bar); bool baz(bool useQux); protected: IBar& m_bar; };
11
10
(translation_unit) "class IBar; \n \nclass Foo \n{ \npublic: \n Foo(IBar& bar); \n bool baz(bool useQux); \nprotected: \n IBar& m_bar; \n}; \n" (declaration) "class IBar;" (type_identifier) "class" (identifier) "IBar" (;) ";" (function_definition) "class Foo \n{ \npublic: \n Foo(IBar& bar); ...
47
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 11.0, "nodes": 23, "errors": 0, "source_hash": "6d5e9fd18348cf6eaf76893e5d7db555ee6dc194c8ff0aed65a073221ee3bce9", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "class IBar;...
7,457
c
// RUN: %cml %s -o %t && %t | FileCheck %s #include <stdint.h> #include <stdio.h> int main() { int64_t l = 9223372036854775807; // CHECK: 9223372036854775807 printf("%ld\n", l); return 0; }
21
9
(translation_unit) "// RUN: %cml %s -o %t && %t | FileCheck %s\n#include <stdint.h>\n#include <stdio.h>\n\nint main() {\n int64_t l = 9223372036854775807;\n // CHECK: 9223372036854775807\n printf("%ld\n", l);\n return 0;\n}\n" (comment) "// RUN: %cml %s -o %t && %t | FileCheck %s" (preproc_include) "#include <s...
44
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.0, "nodes": 25, "errors": 0, "source_hash": "5655fa946b04c194381fc823a084b37b13f5267809246cecceea6b6510e9fabb", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,458
c
/* * This file is included by the CSV ".c" files in the csv directory. */ #include <stdio.h> /* Data structures */ typedef const char * datafile_rows_t; typedef struct datafile_s { const char *name; const datafile_rows_t **rows; } datafile_t;
24
10
(translation_unit) "/*\n * This file is included by the CSV ".c" files in the csv directory.\n */\n\n#include <stdio.h>\n\n/* Data structures */\ntypedef const char * datafile_rows_t;\ntypedef struct datafile_s {\n const char *name;\n const datafile_rows_t **rows; \n} datafile_t;\n" (comment) "/*\n * This file is i...
43
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.0, "nodes": 27, "errors": 0, "source_hash": "87b39b0c56061a285e03aef8c5b15f973c934da12df7f566565da6ccd547e07a", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,459
c
#define IDC_STATIC -1 #define IDR_RT_MANIFEST CREATEPROCESS_MANIFEST_RESOURCE_ID #define IDR_CABINET 100 #define IDR_LICENSE 101 #define IDI_SETUP 100 #define IDD_LICENSE 100 #define IDC_LICENSE_BO...
47.29
7
(translation_unit) "#define IDC_STATIC -1\n\n#define IDR_RT_MANIFEST CREATEPROCESS_MANIFEST_RESOURCE_ID\n\n#define IDR_CABINET 100\n#define IDR_LICENSE 101\n\n#define IDI_SETUP 100\n\n#define IDD_LICENSE ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 47.29, "nodes": 28, "errors": 0, "source_hash": "6d17cd25d085c93a8fca02cfb3df0f7cb6a17f1497432f932f3831578e7ad49c", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define IDC_...
7,460
c
/* C O N V A S S E M . C * BRL-CAD * * Copyright (c) 1990-2019 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 ...
28.54
193
(translation_unit) "/* C O N V A S S E M . C\n * BRL-CAD\n *\n * Copyright (c) 1990-2019 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Pub...
1,390
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 28.54, "nodes": 819, "errors": 0, "source_hash": "fd2da253cead3c478132dcab51bc0672e445e8deace11716543f67c026c2cdf1", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,461
c
#include "transaction.h" /*#include "../provided/provided.h" */ /** * find_unspent - finds unspent matching txo * @node: current node, unspent_txo_t * @arg: txo id * Return: 0 if continue else 1 */ int find_unspent(llist_node_t node, void *arg) { unspent_tx_out_t *utxo = node; if (!memcmp(arg, utxo->out.hash,...
23.95
95
(translation_unit) "#include "transaction.h"\n/*#include "../provided/provided.h"\n */\n\n/**\n * find_unspent - finds unspent matching txo\n * @node: current node, unspent_txo_t\n * @arg: txo id\n * Return: 0 if continue else 1\n */\nint find_unspent(llist_node_t node, void *arg)\n{\n unspent_tx_out_t *utxo = node;\n\...
598
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 23.95, "nodes": 364, "errors": 0, "source_hash": "1fabd3c5c782157359af0ed39c660c06a1f3ccc489ad6d5aab3d759908048e8a", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,462
c
// // RippleTests.h // RippleTests // // Created by Forbes, <NAME>. on 1/11/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> @interface RippleTests : SenTestCase @end
22.1
10
(translation_unit) "//\n// RippleTests.h\n// RippleTests\n//\n// Created by Forbes, <NAME>. on 1/11/12.\n// Copyright (c) 2012 __MyCompanyName__. All rights reserved.\n//\n\n#import <SenTestingKit/SenTestingKit.h>\n\n@interface RippleTests : SenTestCase\n\n@end\n" (comment) "//" (comment) "// RippleTests.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.1, "nodes": 9, "errors": 0, "source_hash": "02e3d1477bb0aacd0b87c66f4bb6c2e47370d55b359327d414987baf0147ab6d", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Sen...
7,463
c
#pragma once class Vector2 { public: float x, y; Vector2(float x = 0, float y = 0); Vector2 operator+(Vector2& rhsVector); void operator+=(Vector2& rhsVector); ~Vector2(); };
17
10
(translation_unit) "#pragma once\n\nclass Vector2\n{\npublic:\n float x, y;\n Vector2(float x = 0, float y = 0);\n Vector2 operator+(Vector2& rhsVector);\n void operator+=(Vector2& rhsVector);\n ~Vector2();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_def...
78
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.0, "nodes": 46, "errors": 0, "source_hash": "42b186b35afb20036ee9a977680b46b24b177a97640b0c0e12ea1cbfd081adc2", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,464
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <FrontBoardServices/FBSServiceFacilityClient.h> @interface FBSOrientationObserverClient : FBSServiceFacilityClient { id <FBSOrientationObserverClientDelegate> _delegate; ...
38.14
21
(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 <FrontBoardServices/FBSServiceFacilityClient.h>\n\n@interface FBSOrientationObserverClient : FBSServiceFacilityClient\n{\n id <FBSOrientationObserverC...
196
16
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 38.14, "nodes": 117, "errors": 0, "source_hash": "a3df4163d0d0f8240377c017eb840982c692c5770bb635492d2dbd48a652e6cc", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,465
c
#if wxOSX_USE_CARBON #include "wx/osx/carbon/statbmp.h" #else #define wxGenericStaticBitmap wxStaticBitmap #include "wx/generic/statbmpg.h" #endif
24.33
6
(translation_unit) "#if wxOSX_USE_CARBON \n#include "wx/osx/carbon/statbmp.h" \n#else \n#define wxGenericStaticBitmap wxStaticBitmap \n#include "wx/generic/statbmpg.h" \n#endif \n" (preproc_if) "#if wxOSX_USE_CARBON \n#include "wx/osx/carbon/statbmp.h" \n#else \n#define wxGenericStaticBitmap wxStaticBitmap \n#include...
24
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.33, "nodes": 17, "errors": 0, "source_hash": "c19001d937f3edda3c763be7fadfe865e5562c452eff924a4b1b63a5d822741d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if wxOSX_US...
7,466
c
/* * MIT License * * Copyright(c) 2011-2020 The Maintainers of Nanvix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
27.82
200
(translation_unit) "/*\n * MIT License\n *\n * Copyright(c) 2011-2020 The Maintainers of Nanvix\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including withou...
559
5
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 27.82, "nodes": 333, "errors": 0, "source_hash": "7dd01fdd52f3f19f21067b72e40c864854b57ac14e843214421ac11263117d2c", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,467
c
#include "../tormdefs.h" inherit "/d/dagger/Torm/sewers/sewer.c"; void create(){ ::create(); set_exits(([ "north":SEW+"s28.c", "south":SEW+"s39.c", "east":SEW+"s33.c", ])); #include "../tormdefs.h" }
18.73
11
(translation_unit) "#include "../tormdefs.h"\ninherit "/d/dagger/Torm/sewers/sewer.c";\nvoid create(){\n ::create();\n set_exits(([\n "north":SEW+"s28.c",\n "south":SEW+"s39.c",\n "east":SEW+"s33.c",\n ]));\n#include "../tormdefs.h"\n}\n" (preproc_include) "#include "../tormdefs.h"\n" (#include) "#incl...
97
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.73, "nodes": 41, "errors": 0, "source_hash": "b879f27b8aeb3b11a714dde36da6894ff7de2002de27fd11abb57af113b325c0", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,468
c
#pragma once #include "GoComponent.h" class GoFader : public GoComponent { public: };
16.2
5
(translation_unit) "#pragma once\n\n#include "GoComponent.h"\n\nclass GoFader : public GoComponent {\npublic:\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "GoComponent.h"\n" (#include) "#include" (string_literal) ""GoComponent....
27
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 16.2, "nodes": 11, "errors": 0, "source_hash": "e5ec4d771e9e54708964ee4ca1c14574b2002c7c37c4d6fd79801a3d4186227f", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
7,469
c
// // NSNumber+SBJson5.h // SBWallet // // Created by Mike on 2019/10/21. // Copyright © 2019 XXXX科技公司. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN static inline NSNumber * _Nullable strToNumber(char *str) { const char *str2 = str; char *target = malloc(strlen(str) +...
22.34
67
(translation_unit) "//\n// NSNumber+SBJson5.h\n// SBWallet\n//\n// Created by Mike on 2019/10/21.\n// Copyright © 2019 XXXX科技公司. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nstatic inline NSNumber * _Nullable strToNumber(char *str) {\n const char *str2 = str;\n c...
494
6
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 22.34, "nodes": 342, "errors": 0, "source_hash": "6306b255db01b1b8c4e4d3ca26491496ac92b39bea9412e1b88d8974d337ecc3", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundat...
7,470
c
// PlaatCraft - Text Texture Header #ifndef TEXT_TEXTURE_H #define TEXT_TEXTURE_H #include "font.h" #include "color.h" #include "textures/texture.h" typedef struct TextTexture { char* text; Texture* texture; Font* font; int text_size; Color text_color; } TextTexture; TextTexture* text_texture_n...
28.47
17
(translation_unit) "// PlaatCraft - Text Texture Header\n\n#ifndef TEXT_TEXTURE_H\n#define TEXT_TEXTURE_H\n\n#include "font.h"\n#include "color.h"\n#include "textures/texture.h"\n\ntypedef struct TextTexture {\n char* text;\n Texture* texture;\n\n Font* font;\n int text_size;\n Color text_color;\n} TextT...
124
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 28.47, "nodes": 91, "errors": 0, "source_hash": "b29d3d2d03a16b916dddc0fd029088a266e0c5bd0577e6574055ccf9b916da5a", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,471
c
#ifndef __QUEUE_H__ #define __QUEUE_H__ typedef struct _queue_t { int headi; int taili; int *queue_arr; int arr_len; int num_entries; } queue_t; int alloc_queue(queue_t *q, int qlen); int free_queue(queue_t *q); int queue_is_full(queue_t *q); int enq(queue_t *q, int e); int queue_is_empty(que...
21.21
19
(translation_unit) "#ifndef __QUEUE_H__\n#define __QUEUE_H__\n\ntypedef struct _queue_t {\n int headi;\n int taili;\n int *queue_arr;\n int arr_len;\n int num_entries;\n} queue_t;\n\n\nint alloc_queue(queue_t *q, int qlen);\n\nint free_queue(queue_t *q);\n\nint queue_is_full(queue_t *q);\n\nint enq(queue...
159
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.21, "nodes": 121, "errors": 0, "source_hash": "dbcf9e5ae4170ff3fea670c47d0191c2842f03d73c80d3f67eddc5c602ab9d84", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,472
c
/** * isr.h */ #ifndef _ISR_H_ #define _ISR_H_ #include <types.h> struct registers_struct { // Data segment uint32 ds; // Pushed by pusha uint32 edi, esi, ebp, esp, ebx, edx, ecx, eax; // Arguments uint32 int_no, err_code; // Pushed by CLI uint32 eip, cs, eflags, useresp, ss; }; typedef struct regi...
31.48
58
(translation_unit) "/**\n * isr.h\n */\n\n#ifndef _ISR_H_\n#define _ISR_H_\n\n#include <types.h>\n\nstruct registers_struct\n{\n // Data segment\n uint32 ds;\n\n // Pushed by pusha\n uint32 edi, esi, ebp, esp, ebx, edx, ecx, eax;\n\n // Arguments\n uint32 int_no, err_code; \n\n // Pushed by CLI\n uint32 eip, cs, efl...
434
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 31.48, "nodes": 275, "errors": 0, "source_hash": "e7cfc271e6fdbdf65481d03f4457c39167bcede9e3eaa9bd8823d0d57c4f4676", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,473
c
// // main.c // Exercise 1-3 // // Created by <NAME> on 6/6/20. // Copyright © 2020 <NAME>. All rights reserved. // #include <stdio.h> #define LOWER 0 #define UPPER 300 #define STEP 20 int main(int argc, const char * argv[]) { float fahr; float celsius = 0; fahr = LOWER; printf("Fahrenheit-Cels...
19.62
24
(translation_unit) "//\n// main.c\n// Exercise 1-3\n//\n// Created by <NAME> on 6/6/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#include <stdio.h>\n\n#define LOWER 0\n#define UPPER 300\n#define STEP 20\n\nint main(int argc, const char * argv[]) {\n float fahr;\n float celsius = 0;\n\n fahr...
138
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 19.62, "nodes": 83, "errors": 0, "source_hash": "7a8fb38213452bb2c10c95e8b060c032c692b8f629c1901e5ef9b5e2900b57fc", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "includ...
7,474
c
/* Copyright (c) 2010 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 PPAPI_C_PP_POINT_H_ #define PPAPI_C_PP_POINT_H_ /** * @file * Defines the API ... * * @addtogroup PP * @{ */ #include "ppapi/c/pp_m...
20.13
31
(translation_unit) "/* Copyright (c) 2010 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 PPAPI_C_PP_POINT_H_\n#define PPAPI_C_PP_POINT_H_\n\n/**\n * @file\n * Defines the API ...\n *\n * @addtogroup PP\n ...
98
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.13, "nodes": 60, "errors": 0, "source_hash": "87d1a652a75116a9edea2aedd3417ff26adc99f9d434d9fdfddb980d963dc38e", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,475
c
#pragma once #include "Arduino.h" namespace CharacterEncoding { static const uint8_t breakLength = 10; // in number of bits static const uint8_t ceilOfBreakLengthExp = 4; // ceil(log2(breakLength)) static const uint8_t payloadLength = 8; // in number of bits static const uint8_t totalLength = breakLength ...
34.85
26
(translation_unit) "#pragma once\n\n#include "Arduino.h"\n\nnamespace CharacterEncoding {\n static const uint8_t breakLength = 10; // in number of bits\n static const uint8_t ceilOfBreakLengthExp = 4; // ceil(log2(breakLength))\n static const uint8_t payloadLength = 8; // in number of bits\n static const uint8_t to...
167
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 34.85, "nodes": 96, "errors": 0, "source_hash": "3d486eb38e3c77e205b3c3a2e5f7142f0d27d0a42ae08900819f03c1a07688ea", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,476
c
/** @file @brief Kernelspace/userspace boundary breaking headerfile. Part of Georgios Portokalidis' Aho Corasick algorithm. FIXME: the same functionality is delivered by support/spaces.h remove this file and all references to it. ---- Fairly Fast Packet Filter http://ffpf.sourceforge.n...
28.92
50
(translation_unit) "/**\n\n @file\n \n @brief Kernelspace/userspace boundary breaking headerfile.\n \n Part of Georgios Portokalidis' Aho Corasick algorithm.\n \n FIXME: the same functionality is delivered by support/spaces.h\n remove this file and all references to it.\n \n ----\n \n Fairly Fast Packet F...
78
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.92, "nodes": 64, "errors": 0, "source_hash": "3fef39c7526330a2a697c707e382b5d605c5a38d24b9ae504d05bf18b0597570", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,477
c
#import <Cocoa/Cocoa.h> FOUNDATION_EXPORT double Pods_OsXBase_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_OsXBase_ExampleVersionString[];
39
4
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n\nFOUNDATION_EXPORT double Pods_OsXBase_ExampleVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_OsXBase_ExampleVersionString[];\n\n" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (declaration)...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.0, "nodes": 15, "errors": 0, "source_hash": "956d82a6c714d027121e5d15c6ac41d629aa08cbf8e36e24593669d0cea8eb3b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Co...
7,478
c
#ifndef ORGF_BITMAP_H #define ORGF_BITMAP_H 1 #include <mruby.h> #include <mruby/data.h> #include <rayfork.h> #include <orgf/drawable.h> #ifdef __cplusplus extern "C" { #endif typedef struct rf_bitmap rf_bitmap; extern const struct mrb_data_type mrb_bitmap_data_type; extern const char *MRB_IMAGE_EX...
17.28
60
(translation_unit) "#ifndef ORGF_BITMAP_H \n#define ORGF_BITMAP_H 1 \n \n#include <mruby.h> \n#include <mruby/data.h> \n#include <rayfork.h> \n \n#include <orgf/drawable.h> \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \ntypedef struct rf_bitmap rf_bitmap; \n \nextern const struct mrb_data_type mrb_bitmap_data_typ...
279
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 17.28, "nodes": 179, "errors": 0, "source_hash": "b9731e2df679572a42320321d2f7df528854cfbb67c2b6f57d4827d48dfaa3e9", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,479
c
#pragma once #include "hnrt/WindowsHandle.h" namespace hnrt { template<typename T> class SharedMemory { public: SharedMemory(); SharedMemory(const SharedMemory&) = delete; ~SharedMemory(); void operator =(const SharedMemory&) = delete; const ...
20.53
104
(translation_unit) "#pragma once \n \n \n#include "hnrt/WindowsHandle.h" \n \n \nnamespace hnrt \n{ \n template<typename T> \n class SharedMemory \n { \n public: \n \n SharedMemory(); \n SharedMemory(const SharedMemory&) = delete; \n ~SharedMemory(); \n void operator =(const Shar...
621
29
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 20.53, "nodes": 370, "errors": 0, "source_hash": "f0082fd2553f019d529165abc20fd97159879b5d9e5662689777eab46ef8740d", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,480
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/HomeUI.framework/HomeUI */ @interface HUGridCellVibrancyEffect : UIVisualEffect + (id)vibrancyEffect; - (id)copyWithZone:(struct _NSZone { }*)arg1; - (id)effectConfig; @end
30.12
8
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/HomeUI.framework/HomeUI\n */\n\n@interface HUGridCellVibrancyEffect : UIVisualEffect\n\n+ (id)vibrancyEffect;\n\n- (id)copyWithZone:(struct _NSZone { }*)arg1;\n- (id)effectConfig;\n\n@end\n" (comment) "/* Generated by Runt...
57
6
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 30.12, "nodes": 33, "errors": 0, "source_hash": "477742a39b6fed3ba84714883ab6c91f9d03ab928fe72f4ff6f2c6d3484129a9", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface HUGrid...
7,481
c
/* * ContinueStatement.h * * Created on: 2019/02/05 * Author: iizuka */ #ifndef SC_STATEMENT_CTRL_CONTINUESTATEMENT_H_ #define SC_STATEMENT_CTRL_CONTINUESTATEMENT_H_ #include "lang/sc_statement/AbstractStatement.h" namespace alinous { class ContinueStatement: public AbstractStatement { public: ContinueS...
31.12
26
(translation_unit) "/*\n * ContinueStatement.h\n *\n * Created on: 2019/02/05\n * Author: iizuka\n */\n\n#ifndef SC_STATEMENT_CTRL_CONTINUESTATEMENT_H_\n#define SC_STATEMENT_CTRL_CONTINUESTATEMENT_H_\n\n#include "lang/sc_statement/AbstractStatement.h"\n\nnamespace alinous {\n\nclass ContinueStatement: public Abst...
185
13
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.12, "nodes": 126, "errors": 0, "source_hash": "974d27804b874a15f9216a02df7782fbef40552964e4508993f63035d2c1574f", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,482
c
/* PROGRAM * 2dhist * * SYNOPSIS * 2dhist [<x_image><y_image>] [-zhb] | pipeout * * DESCRIPTION * Creates a 256x256 hips image output representing * the two dimensional histogram of the image pair. * Input images may be from a pipe or 2 specif...
28.19
162
(translation_unit) "/* PROGRAM\n * 2dhist\n *\n * SYNOPSIS\n * 2dhist [<x_image><y_image>] [-zhb] | pipeout\n *\n * DESCRIPTION\n * Creates a 256x256 hips image output representing\n * the two dimensional histogram of the image pair.\n * Input images m...
1,599
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 28.19, "nodes": 952, "errors": 0, "source_hash": "4d1b26f8c765b8454bd86bb49f781930e92531a69a12ddb9541e0ad2c0378399", "categorized_nodes": 693}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,483
c
// // Cursor.h // ofxGrabScene // #pragma once #include "ofMain.h" namespace GrabScene { //---------- class Cursor { public: Cursor(); ofVec2f screen; ofVec3f world; bool worldValid; bool button[3]; bool captured; virtual void draw() const; }; //---------- class MovingCursor : public Cursor...
16.77
47
(translation_unit) "//\n// Cursor.h\n// ofxGrabScene\n//\n#pragma once\n\n#include "ofMain.h"\n\nnamespace GrabScene {\n //----------\n class Cursor {\n public:\n Cursor();\n ofVec2f screen;\n ofVec3f world;\n bool worldValid;\n bool button[3];\n bool captured;\n \n virtual void draw() const;\n };\n \n //----...
211
6
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 16.77, "nodes": 113, "errors": 0, "source_hash": "a9e2620357b73fda1969e5090bb1a061bcec86d1c918d473eb362250975c731e", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,484
c
// // BreedNameCellTableViewCell.h // BreedFinder // // Created by sxsasha on 3/7/17. // Copyright © 2017 sasha. All rights reserved. // #import <UIKit/UIKit.h> @interface BreedNameCell : UITableViewCell @property (nonatomic, weak) IBOutlet UILabel *label; @property (nonatomic, weak) IBOutlet UIImageView *imageF...
26.5
12
(translation_unit) "//\n// BreedNameCellTableViewCell.h\n// BreedFinder\n//\n// Created by sxsasha on 3/7/17.\n// Copyright © 2017 sasha. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BreedNameCell : UITableViewCell\n\n@property (nonatomic, weak) IBOutlet UILabel *label;\n@property (nonatomic, w...
58
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.5, "nodes": 39, "errors": 0, "source_hash": "37efd8bfb61724109a8fa78c46eb6efa559d0bf964e72140e5d61f4c76a6b798", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
7,485
c
#include "commands.h" #include "util.h" #include <stdio.h> void dispatch(int argc, char **argv, volatile int *is_running) { char *label = argv[0]; if (eq_ignore_case("HELP", label)) { return help(); } if (eq_ignore_case("GET", label)) { return get(argc, argv); } if (eq_ignore...
27.94
34
(translation_unit) "#include "commands.h"\n#include "util.h"\n#include <stdio.h>\n\nvoid dispatch(int argc, char **argv, volatile int *is_running) {\n char *label = argv[0];\n\n if (eq_ignore_case("HELP", label)) {\n return help();\n }\n\n if (eq_ignore_case("GET", label)) {\n return get(argc,...
348
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.94, "nodes": 166, "errors": 0, "source_hash": "f2a03a0fbb74c8423f86b6f6746211ec92212437f3c0be9bea8e98dfcd7463bd", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,486
c
/******************************************************************************* * - FILE: results.c * - DESC: RESULTS object *******************************************************************************/ /* imports */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdbool.h> #incl...
25.53
74
(translation_unit) "/*******************************************************************************\n * - FILE: results.c\n * - DESC: RESULTS object\n *******************************************************************************/\n\n/* imports */\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h...
488
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 25.53, "nodes": 310, "errors": 0, "source_hash": "136061370a649e06fe0482eb3addf5c7905f3c228c4b8dfe0afc6337fafd73b0", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,487
c
#ifndef DetLayers_RodBarrelLayer_H #define DetLayers_RodBarrelLayer_H /** \class RodBarrelLayer * Abstract class for a cylinder composed of rods of detetors. */ #include "TrackingTools/DetLayers/interface/BarrelDetLayer.h" class DetRod; class MeasurementEstimator; using RodBarrelLayer=BarrelDetLayer; #endif
30.2
10
(translation_unit) "#ifndef DetLayers_RodBarrelLayer_H\n#define DetLayers_RodBarrelLayer_H\n\n/** \class RodBarrelLayer\n * Abstract class for a cylinder composed of rods of detetors.\n */\n\n#include "TrackingTools/DetLayers/interface/BarrelDetLayer.h"\n\nclass DetRod;\nclass MeasurementEstimator;\n\nusing RodBarrelL...
30
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.2, "nodes": 20, "errors": 0, "source_hash": "b49d62e677af82a60eeac03a20ab15ba1425905ac6301d2064a1a180d6b8d21e", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
7,488
c
#pragma once #if USE_AVX #include <iostream> #include <vector> #include <array> #include <Eigen/Core> #include <Eigen/Dense> #include <Eigen/Sparse> #include "AVX_math.h" #include "Utilities/BinaryFileReaderWriter.h" namespace SPH { class CholeskySparseMatrixfAVX { public: // Fields //// AVX CRS Sparse matri...
28.52
65
(translation_unit) "#pragma once\n\n#if USE_AVX\n\n#include <iostream>\n#include <vector>\n#include <array>\n#include <Eigen/Core>\n#include <Eigen/Dense>\n#include <Eigen/Sparse>\n\n#include "AVX_math.h"\n#include "Utilities/BinaryFileReaderWriter.h"\n\nnamespace SPH\n{\n class CholeskySparseMatrixfAVX\n {\n public:\n...
423
17
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 28.52, "nodes": 257, "errors": 0, "source_hash": "f230cd14427b52eecc67f63dfe37fb74f8d6d0b1428b13eb6271a5d862130bc3", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,489
c
#include "jstools.h" #include <stdio.h> #include <stdlib.h> int main( void ) { const char * json_filename = "data/object.json"; JST_Element root = JST_Element_Zero; JST_SyntaxError syntax_error = JST_SyntaxError_Zero; JST_Error err = JST_load_from_file( json_filename, &roo...
32.19
27
(translation_unit) "#include "jstools.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint main( void ) {\n const char * json_filename = "data/object.json";\n JST_Element root = JST_Element_Zero;\n JST_SyntaxError syntax_error = JST_SyntaxError_Zero;\n JST_Error err = JST_load_f...
256
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.19, "nodes": 155, "errors": 0, "source_hash": "96ec2f33458eb6ad701f13a520c54184f452ecf1fdde7197e64b7767eeaa3e93", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,490
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { if ( argc != 2 ) { printf("Invocation: q1 <PID>\n"); return 1; } int limit = (int)(*(int*)argv[1]); int check = limit; int addend = limit & 0xFF; for (int iter = 1; iter <= limit; iter++) { check = ...
19.32
19
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char** argv) {\n \n if ( argc != 2 ) {\n printf("Invocation: q1 <PID>\n");\n return 1;\n }\n \n int limit = (int)(*(int*)argv[1]);\n int check = limit;\n int addend = limit & 0xFF;\n \n for (int iter = 1; iter ...
145
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.32, "nodes": 94, "errors": 0, "source_hash": "49d05aa42009774ace6628f998ee3d54a7d2e6409da700db14f56d11f660ae5e", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,491
c
/* GOCR Copyright (C) 2000 <NAME> <EMAIL> GOCR API Copyright (C) 2001 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later...
28.98
84
(translation_unit) "/*\nGOCR Copyright (C) 2000 <NAME> <EMAIL> \nGOCR API Copyright (C) 2001 <NAME> <<EMAIL>>\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or...
284
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 28.98, "nodes": 185, "errors": 0, "source_hash": "bd2564c76da33cda1345dd2dff351c2c8ad351b0bd0274ac8d399ab13305531d", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,492
c
#pragma once namespace Cocos { enum class VertexType{Float1,Float2,Float3,Float4}; class SceneVertexArrary { public: SceneVertexArrary(float *data,size_t size,VertexType type) :m_data(data) ,m_size(size) ,m_type(type){ } const float* GetData() { return m_data; }; const size_t& GetSize() { ...
18.42
24
(translation_unit) "#pragma once\n\nnamespace Cocos {\n enum class VertexType{Float1,Float2,Float3,Float4};\n\n class SceneVertexArrary {\n public:\n SceneVertexArrary(float *data,size_t size,VertexType type)\n :m_data(data)\n ,m_size(size)\n ,m_type(type){\n\n }\n\n\n const float* GetData() {\n return m_data;\...
165
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 18.42, "nodes": 83, "errors": 0, "source_hash": "d44ead4f693a5fdf4c36743e24811adda42f22734961049150ce99c75251fde7", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,493
c
#include <Python.h> #include <stdbool.h> #include "mrcacheclient.h" #include "mrcacheprotocol.h" #include "common.h" #include "module.h" static int connmap[4096]; static char hexchar[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
40.95
169
(translation_unit) "#include <Python.h>\n#include <stdbool.h>\n\n#include "mrcacheclient.h"\n#include "mrcacheprotocol.h"\n#include "common.h"\n#include "module.h"\n\nstatic int connmap[4096];\n\nstatic char hexchar[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \n 0, 0, 0, 0, 0, 0...
2,372
12
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 40.95, "nodes": 1424, "errors": 0, "source_hash": "4a3ab3ed4559f737a7f9d60e32351979f40856a0e72b4b1d4d9689508ad9851e", "categorized_nodes": 1081}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
7,494
c
/* * vim: ts=8:sw=8:tw=79:noet * * Copyright (c) 2011-2012, the Locksmith authors. * 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 abov...
31.71
127
(translation_unit) "/*\n * vim: ts=8:sw=8:tw=79:noet\n *\n * Copyright (c) 2011-2012, the Locksmith authors.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * \n * Redistributions of sou...
1,035
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 31.71, "nodes": 609, "errors": 0, "source_hash": "f468d292009b122fc599de1f811de93b93d8868b7c6e174248a190d9c900fbf2", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,495
c
#pragma once #include "helpers.h" #include "filesystem.h" #define TELEMETRY HELPERS_NAMESPACE_DECL::Telemetry::TelemetryLog() #define FATAL_ERROR HELPERS_NAMESPACE_DECL::Telemetry::FatalErrorLog() HELPERS_NAMESPACE_BEGIN /** The telemetry collector and manager. During the execution, teleme...
32.17
168
(translation_unit) "#pragma once \n \n#include "helpers.h" \n#include "filesystem.h" \n \n#define TELEMETRY HELPERS_NAMESPACE_DECL::Telemetry::TelemetryLog() \n#define FATAL_ERROR HELPERS_NAMESPACE_DECL::Telemetry::FatalErrorLog() \n \nHELPERS_NAMESPACE_BEGIN \n \n /** The telemetry collector and manager. \n \n ...
1,149
56
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 32.17, "nodes": 608, "errors": 0, "source_hash": "ded4079266222269ead4ebcc98880ac7456192a7fcf71c615c045862ce4bed1f", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,496
c
#pragma once #ifdef USE_M2_MODELS #include "../Creature/Creature.h" #include "CharacterTemplate.h" #include "../CharacterItem/CharacterItem.h" class ZN_API CCharacter : public CCreature { public: CCharacter(IScene& Scene, CWorldClient& WorldClient, const std::shared_ptr<CM2>& M2Object, const SCharacterVisualT...
38.95
37
(translation_unit) "#pragma once\n\n#ifdef USE_M2_MODELS\n\n#include "../Creature/Creature.h"\n#include "CharacterTemplate.h"\n\n#include "../CharacterItem/CharacterItem.h"\n\nclass ZN_API CCharacter \n : public CCreature\n{\npublic:\n CCharacter(IScene& Scene, CWorldClient& WorldClient, const std::shared_ptr<CM2>& ...
316
20
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 38.95, "nodes": 190, "errors": 0, "source_hash": "73df57eac718c633dba3a819ce12e4d0448ed703e7a72fda2861b1787609fe64", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,497
c
// // WHSquarePreviewView.h // 易书 // // Created by 张成敏 on 2021/4/2. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface WHSquarePreviewView : UIView - (instancetype)initWithPreviewImage:(nullable UIImage *)image; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; - (void)setBac...
27.67
18
(translation_unit) "//\n// WHSquarePreviewView.h\n// 易书\n//\n// Created by 张成敏 on 2021/4/2.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WHSquarePreviewView : UIView\n\n- (instancetype)initWithPreviewImage:(nullable UIImage *)image;\n\n- (instancetype)init NS_UNAVAILABLE;\n\n+ (instancetyp...
134
15
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.67, "nodes": 85, "errors": 0, "source_hash": "589745d69c94ae7553860f632463f2ca61a7d4db5047139f561857dafff8ffa9", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "IKit/UIKi...
7,498
c
#include "stdint.h" #include "reg.h" uint32_t regread32(uint32_t address) { return REG(address); } void regwrite32(uint32_t address, uint32_t value) { REG(address) = value; } void regmask32(uint32_t address, uint32_t mask, uint32_t value) { uint32_t contents = regread32(address); contents &= ~m...
17.95
20
(translation_unit) "#include "stdint.h"\n#include "reg.h"\n\n\n\nuint32_t regread32(uint32_t address)\n{\n return REG(address);\n}\n\n\n\nvoid regwrite32(uint32_t address, uint32_t value)\n{\n REG(address) = value;\n}\n\n\n\nvoid regmask32(uint32_t address, uint32_t mask, uint32_t value)\n{\n uint32_t contents...
120
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.95, "nodes": 75, "errors": 0, "source_hash": "50c0e2e88617b45d33e69d2817d7719988d2044a462f57e474b7e1d3d3fb6045", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,499