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
// // NSCache+NJF_Cache.h // NJF_FMDB // // Created by niujf on 2018/10/17. // Copyright © 2018年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSCache (NJF_Cache) + (instancetype)njf_cache; @end NS_ASSUME_NONNULL_END
20.23
13
(translation_unit) "//\n// NSCache+NJF_Cache.h\n// NJF_FMDB\n//\n// Created by niujf on 2018/10/17.\n// Copyright © 2018年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSCache (NJF_Cache)\n\n+ (instancetype)njf_cache;\n\n@end\n\nNS_ASSUME_NONNULL_END\...
35
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.23, "nodes": 21, "errors": 0, "source_hash": "b43cf2104474a8a4703a6ccf5d3f035fc915822afcaa8dd8c3919e2761726006", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
1,600
c
// Standard structure for info passed to the kernel by multiboot typedef struct Multiboot_info { unsigned int memp : 1; unsigned int boot_device_p : 1; unsigned int cmdlinep : 1; unsigned int aoutp : 1; unsigned int elfp : 1; unsigned int mmapp : 1; unsigned in...
29.03
36
(translation_unit) "// Standard structure for info passed to the kernel by multiboot\n\ntypedef struct Multiboot_info\n{\n unsigned int memp : 1;\n unsigned int boot_device_p : 1;\n unsigned int cmdlinep : 1;\n unsigned int aoutp : 1;\n unsigned int elfp : 1;\n unsigned int mmap...
193
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.03, "nodes": 142, "errors": 0, "source_hash": "d63efc33d9aafa69b6b18bcc76c9a156313ba1d3f1249a55d9221403128421fa", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typed...
1,601
c
#include <stdio.h> FILE * freopen(file, mode, iop) char *file; register char *mode; register FILE *iop; { register f; fclose(iop); if (*mode=='w') f = creat(file, 0666); else if (*mode=='a') { if ((f = open(file, 1)) < 0) f = creat(file, 0666); lseek(f, 0L, 2); } else f = open(file, 0); if (f < 0) ...
15.88
26
(translation_unit) "#include <stdio.h>\n\nFILE *\nfreopen(file, mode, iop)\nchar *file;\nregister char *mode;\nregister FILE *iop;\n{\n register f;\n\n fclose(iop);\n if (*mode=='w')\n f = creat(file, 0666);\n else if (*mode=='a') {\n if ((f = open(file, 1)) < 0)\n f = creat(file, 0666);\n lseek(f, 0L, 2);\n } els...
234
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 15.88, "nodes": 154, "errors": 0, "source_hash": "f0cb011dd4d241703d59494b88b52eabd26316278bf75f2266350e6fb3b57a98", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,602
c
#include <stdio.h> #include <stdlib.h> #include "PID.h" /* Controller parameters */ #define PID_KP 2.0f #define PID_KI 0.5f #define PID_KD 0.25f #define PID_TAU 0.02f #define PID_LIM_MIN -10.0f #define PID_LIM_MAX 10.0f #define PID_LIM_MIN_INT -5.0f #define PID_LIM_MAX_INT 5.0f #define SAMPLE_TIME_S 0.01f /...
32.07
44
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "PID.h"\n\n/* Controller parameters */\n#define PID_KP 2.0f\n#define PID_KI 0.5f\n#define PID_KD 0.25f\n\n#define PID_TAU 0.02f\n\n#define PID_LIM_MIN -10.0f\n#define PID_LIM_MAX 10.0f\n\n#define PID_LIM_MIN_INT -5.0f\n#define PID_LIM_MAX_INT ...
287
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.07, "nodes": 187, "errors": 0, "source_hash": "5b2e30278edf63940f863856dcc4f0afb09da803ef564cc7004f89582a430504", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,603
c
/* * cog-launcher.h * Copyright (C) 2021 Igalia S.L. * Copyright (C) 2017 <NAME> <<EMAIL>> * * Distributed under terms of the MIT license. */ #ifndef COG_LAUNCHER_H #define COG_LAUNCHER_H #if !(defined(COG_INSIDE_COG__) && COG_INSIDE_COG__) # error "Do not include this header directly, use <cog.h> instead" #end...
35.97
34
(translation_unit) "/*\n * cog-launcher.h\n * Copyright (C) 2021 Igalia S.L.\n * Copyright (C) 2017 <NAME> <<EMAIL>>\n *\n * Distributed under terms of the MIT license.\n */\n\n#ifndef COG_LAUNCHER_H\n#define COG_LAUNCHER_H\n\n#if !(defined(COG_INSIDE_COG__) && COG_INSIDE_COG__)\n# error "Do not include this header dir...
213
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 35.97, "nodes": 150, "errors": 0, "source_hash": "2a2ad1525017fb1c0f291527ae848a70a1b5404036e60e1e346834ceed075862", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,604
c
// Copyright (c) 2004-2022 <NAME> et al. // // This file is part of TNL - Template Numerical Library (https://tnl-project.org/) // // SPDX-License-Identifier: MIT #pragma once namespace noa::TNL { /** * \brief Namespace for solvers. */ namespace Solvers {} // namespace Solvers } // namespace noa::TNL
24.5
12
(translation_unit) "// Copyright (c) 2004-2022 <NAME> et al.\n//\n// This file is part of TNL - Template Numerical Library (https://tnl-project.org/)\n//\n// SPDX-License-Identifier: MIT\n\n#pragma once\n\nnamespace noa::TNL {\n\n/**\n * \brief Namespace for solvers.\n */\nnamespace Solvers {} // namespace Solvers\n} ...
28
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.5, "nodes": 11, "errors": 0, "source_hash": "b1bf581ad0d303df8b3fa1464251afd5d02ebf1354061c41ee346d76ac8782b7", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
1,605
c
/** *@file ql_voicecall.h *@date 2017-05-02 *@author *@brief */ #ifndef __QL_VCALL_H__ #define __QL_VCALL_H__ #define QL_QMI_VCALL_ECALL_MSD_MAX_LEN 140 //-------------------------------------------------------------------------------------------------- /** * Reference returned by Start functio...
34.57
257
(translation_unit) "/**\n *@file ql_voicecall.h\n *@date 2017-05-02\n *@author \n *@brief \n */\n\n#ifndef __QL_VCALL_H__\n#define __QL_VCALL_H__\n\n#define QL_QMI_VCALL_ECALL_MSD_MAX_LEN 140\n\n\n//--------------------------------------------------------------------------------------------------\n/**\n * ...
581
0
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 34.57, "nodes": 364, "errors": 0, "source_hash": "b6d68c8a5321c658b835dd69f5b50e002991ee668d5b8ac7b04ac94b724bafb1", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,606
c
#ifndef PLATFORM_H #define PLATFORM_H 1 #ifdef __cplusplus extern "C" { #endif #if defined(__linux__) || defined(__linux) #include <values.h> #include <malloc.h> #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include <limits.h> #include <sys/malloc.h> #elif ...
18.11
37
(translation_unit) "#ifndef PLATFORM_H\n#define PLATFORM_H 1\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n \n#if defined(__linux__) || defined(__linux)\n #include <values.h>\n #include <malloc.h>\n#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)\n #include <limits.h>\n...
147
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.11, "nodes": 120, "errors": 0, "source_hash": "3aaf4c396273c61a9b1a6e06a3c6f718d4c058dfcd8ffc1332ee5f498335bc03", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,607
c
/* * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "...
35.61
44
(translation_unit) "/*\n * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License").\n * You may not use this file except in compliance with the License.\n * A copy of the License is located at\n *\n * http://aws.amazon.com/a...
307
19
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 35.61, "nodes": 173, "errors": 0, "source_hash": "665a622ab9d1a7ada7c831bc7da5970cf28b08e2dc32fe01ece066c46f1608c0", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,608
c
#include <stdio.h> #include "File_private.h" static long BUFSIZE = 1024; FileVtable File = { .new = &new_File, .init = &init_File, .del = &del_File, .cstr = &cstr_File, .equals = &equals_File, .size = &size_File, .name = &name_File, .namestr = &namestr_File, .namepa...
25.59
234
(translation_unit) "#include <stdio.h>\n\n#include "File_private.h"\n\nstatic long BUFSIZE = 1024;\n\nFileVtable File = {\n .new = &new_File,\n .init = &init_File,\n .del = &del_File,\n \n .cstr = &cstr_File,\n .equals = &equals_File,\n \n .size = &size_File,\n \n .name = &name_File,\n ...
2,217
0
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 25.59, "nodes": 1389, "errors": 0, "source_hash": "94c77e2a22ecd5fb8020ece03c43d6bdeb71489228a8f969dd06a5ef79747811", "categorized_nodes": 969}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,609
c
/* * foo-tools, a collection of utilities for glftpd users. * Copyright (C) 2003 Tanesha FTPD Project, www.tanesha.net * * This file is part of foo-tools. * * foo-tools 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 Soft...
29.59
64
(translation_unit) "/*\n * foo-tools, a collection of utilities for glftpd users.\n * Copyright (C) 2003 Tanesha FTPD Project, www.tanesha.net\n *\n * This file is part of foo-tools.\n *\n * foo-tools is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as pu...
197
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 29.59, "nodes": 147, "errors": 0, "source_hash": "f8b8f344a828f4b3ef01d48f7cc565ff0b760210971b891f9831240bdfd17188", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,610
c
version https://git-lfs.github.com/spec/v1 oid sha256:b911a497aa51360d2182fc03b43845bde9603a319bb153aa1e77d2b2f8ae69ca size 518
41.67
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:b911a497aa51360d2182fc03b43845bde9603a319bb153aa1e77d2b2f8ae69ca\nsize 518\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (co...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 41.67, "nodes": 10, "errors": 0, "source_hash": "7d4b45b67076e8d08af8d9546d4e2cd9fa9b28900c2aa9833d0d0c6c4318a709", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version http...
1,611
c
#pragma once #include <vulkan/vulkan.hpp> #define NVVK_ALLOC_DEDICATED #include "nvvk/allocator_vk.hpp" #include "nvvk/appbase_vkpp.hpp" #include "nvvk/debug_util_vk.hpp" #include "nvvk/descriptorsets_vk.hpp" #include "nvvk/context_vk.hpp" #include "nvvk/profiler_vk.hpp" // #VKRay #include "nvh/gltfscene....
23.3
105
(translation_unit) "#pragma once \n#include <vulkan/vulkan.hpp> \n \n#define NVVK_ALLOC_DEDICATED \n#include "nvvk/allocator_vk.hpp" \n#include "nvvk/appbase_vkpp.hpp" \n#include "nvvk/debug_util_vk.hpp" \n#include "nvvk/descriptorsets_vk.hpp" \n#include "nvvk/context_vk.hpp" \n#include "nvvk/profiler_vk.hpp" \n \n// #...
592
30
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 23.3, "nodes": 336, "errors": 0, "source_hash": "10f3cb28664939c609b621ab572bee00a94d4e712f7c8da306d4761511a40fba", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,612
c
// SPDX-License-Identifier: GPL-2.0-only /* * OMAP2/3 PRM module functions * * Copyright (C) 2010-2011 Texas Instruments, Inc. * Copyright (C) 2010 Nokia Corporation * <NAME> * <NAME> */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/err.h> #include <linux/io.h> #include "powerdomain.h" #in...
34.36
194
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-only\n/*\n * OMAP2/3 PRM module functions\n *\n * Copyright (C) 2010-2011 Texas Instruments, Inc.\n * Copyright (C) 2010 Nokia Corporation\n * <NAME>\n * <NAME>\n */\n\n#include <linux/kernel.h>\n#include <linux/errno.h>\n#include <linux/err.h>\n#include <linux/io...
1,025
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 34.36, "nodes": 649, "errors": 0, "source_hash": "ee4995c3c4054d8510322d1f892bbfa49933d927baa47719ce35ec0c5959c92b", "categorized_nodes": 524}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,613
c
// // ESMediator.h // ESMediator // // Created by 翟泉 on 2017/1/10. // Copyright © 2017年 翟泉. All rights reserved. // #import <Foundation/Foundation.h> @interface ESMediator : NSObject + (instancetype)sharedInstance; // 本地组件调用入口 【通过类方法调用 [targetName actionName:params] + (id)performTarget:(NSString *)targetName a...
36.42
19
(translation_unit) "//\n// ESMediator.h\n// ESMediator\n//\n// Created by 翟泉 on 2017/1/10.\n// Copyright © 2017年 翟泉. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ESMediator : NSObject\n\n+ (instancetype)sharedInstance;\n\n// 本地组件调用入口 【通过类方法调用 [targetName actionName:params]\n+ (id)per...
172
25
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.42, "nodes": 109, "errors": 0, "source_hash": "b005220efa85769583139a76889c04380912d8309fe6c80b060da5eb93e52ffd", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation...
1,614
c
/** * @file coatlParseInt.h * * This header file defines parsing utilities. * * @see coatlJson.h * * @beginprivate @cond PRIVATE */ #ifndef _COATL_PARSE_INT #define _COATL_PARSE_INT /* ===========================================================================*//*! \internal \defgroup parsing Parsing Utilitie...
37.01
117
(translation_unit) "/**\n * @file coatlParseInt.h\n *\n * This header file defines parsing utilities.\n *\n * @see coatlJson.h\n *\n * @beginprivate @cond PRIVATE\n */\n\n#ifndef _COATL_PARSE_INT\n#define _COATL_PARSE_INT\n\n/*\n===========================================================================*//*!\n\internal...
68
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 37.01, "nodes": 36, "errors": 0, "source_hash": "a32a3c36887c3d2bb85b783a75a4788d2d0b689c88067f9add43afb2fb29884a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,615
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * include/configs/rcar-gen3-common.h * This file is R-Car Gen3 common configuration file. * * Copyright (C) 2015-2017 Renesas Electronics Corporation */ #ifndef __RCAR_GEN3_COMMON_H #define __RCAR_GEN3_COMMON_H #include <asm/arch/rmobile.h> #define CONFIG_REMAKE_ELF #d...
35.21
52
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * include/configs/rcar-gen3-common.h\n * This file is R-Car Gen3 common configuration file.\n *\n * Copyright (C) 2015-2017 Renesas Electronics Corporation\n */\n\n#ifndef __RCAR_GEN3_COMMON_H\n#define __RCAR_GEN3_COMMON_H\n\n#include <asm/arch/rmobile.h...
142
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 35.21, "nodes": 133, "errors": 0, "source_hash": "365bdae1bfaedfa705fbca789bbb46f5d44803235d321de8dce3cd8a7ded02a5", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,616
c
/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xf86fpoly.c,v 3.0 1996/11/18 13:22:17 dawes Exp $ */ /* * Copyright 1996 The XFree86 Project * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the ...
23.95
252
(translation_unit) "/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xf86fpoly.c,v 3.0 1996/11/18 13:22:17 dawes Exp $ */\n\n/*\n * Copyright 1996 The XFree86 Project\n *\n * Permission is hereby granted, free of charge, to any person obtaining a \n * copy of this software and associated documentation files (the "Softw...
1,486
1
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 23.95, "nodes": 909, "errors": 0, "source_hash": "5e8509376a2807cbdfcc649b73ac7285ec73849a703bb3921ef061a8c1f20de0", "categorized_nodes": 678}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,617
c
#ifndef AMICI_INTERFACE_MATLAB_H #define AMICI_INTERFACE_MATLAB_H #include "amici/amici.h" #include <mex.h> #include <memory> namespace amici { namespace generic_model { extern std::unique_ptr<amici::Model> getModel(); } // namespace generic_model class Model; class ReturnDataMatlab; /** * @brief setModelData ...
38.59
58
(translation_unit) "#ifndef AMICI_INTERFACE_MATLAB_H\n#define AMICI_INTERFACE_MATLAB_H\n\n#include "amici/amici.h"\n\n#include <mex.h>\n#include <memory>\n\n\nnamespace amici {\n\nnamespace generic_model {\nextern std::unique_ptr<amici::Model> getModel();\n} // namespace generic_model\n\nclass Model;\nclass ReturnDataM...
347
6
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.59, "nodes": 209, "errors": 0, "source_hash": "fd6c339422f0e95334d61492a103500592e5316b4ce0b4ebc6e89e81e24984e1", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,618
c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <time.h> #include "lrpc_main.h" #define CONFIG_TBL_NAME "config_table" int read_config(lua_State *L, const char *file_name) { int r = luaL_loadfile(L, file_name); if (r != 0) re...
26.49
95
(translation_unit) "#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <errno.h>\n#include <unistd.h>\n\n#include <string.h>\n#include <time.h>\n#include "lrpc_main.h"\n\n#define CONFIG_TBL_NAME "config_table"\n\nint read_config(lua_State *L, const char *file_name)\n{\n int r = luaL_loadfile...
902
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.49, "nodes": 534, "errors": 0, "source_hash": "1d9e38114ba13995c8f84e8db86a61c77079b1dd7172f501b593accdcf829fa0", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,619
c
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<sys/socket.h> #include <sys/types.h> #include <netdb.h> #include <unistd.h> #define PORTNO "3490" #define MAXBUFLEN 100 int main() { struct addrinfo hints, *res; int sockfd,len, numbytes, status; char buf[MAXBUFLEN]; char msg[MAXBUFLEN]; memset(&h...
19.89
91
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<sys/socket.h>\n#include <sys/types.h>\n#include <netdb.h>\n#include <unistd.h>\n\n#define PORTNO "3490"\n#define MAXBUFLEN 100\n\nint main()\n{\n struct addrinfo hints, *res;\n int sockfd,len, numbytes, status;\n char buf[MAXBUFLEN]...
741
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 19.89, "nodes": 401, "errors": 0, "source_hash": "19c7edb34b911305ffc1e7125a2f651f9940fd3764ead82d616645a91faad091", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,620
c
#include "keypad.h" #include "screen.h" #include "lcd_hd44780.h" /** * kp_btn_enable() - enable interrupts on GLSK SWT buttons. * * Return: void. */ void kp_btn_enable(void); /** * kp_btn_disable() - disable interrupts on GLSK SWT buttons. * * Return: void. */ void kp_btn_disable(void); /** * kp_lock_keypad...
27.92
91
(translation_unit) "#include "keypad.h"\n#include "screen.h"\n#include "lcd_hd44780.h"\n\n/**\n * kp_btn_enable() - enable interrupts on GLSK SWT buttons.\n *\n * Return: void.\n */\nvoid kp_btn_enable(void);\n\n/**\n * kp_btn_disable() - disable interrupts on GLSK SWT buttons.\n *\n * Return: void.\n */\nvoid kp_btn_d...
197
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.92, "nodes": 143, "errors": 0, "source_hash": "12ffeeab2a36ee8c3043ba2069b6d4abcb9e62fce42dceb38b325e7feb99b11b", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,621
c
/* * $Id: stmql.h,v 1.5 2002/09/15 22:41:47 jan Exp $ * * Copyright (c) 2002 <NAME> * See the file "COPYING" for copying permission. * */ #ifndef STMQL_INCLUDED #define STMQL_INCLUDED #include <tm.h> #include "topicset.h" #include "topicmap.h" enum { SUBJECT_REPR_TYPE_LOCATOR, SUBJECT_REPR_TYPE_NODE, SUBJE...
21.61
66
(translation_unit) "/*\n * $Id: stmql.h,v 1.5 2002/09/15 22:41:47 jan Exp $\n *\n * Copyright (c) 2002 <NAME>\n * See the file "COPYING" for copying permission.\n *\n */\n\n#ifndef STMQL_INCLUDED\n#define STMQL_INCLUDED \n\n#include <tm.h>\n#include "topicset.h"\n#include "topicmap.h"\n\nenum {\n SUBJECT_REPR_TYPE_LOCA...
258
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 21.61, "nodes": 174, "errors": 0, "source_hash": "9213beb141729d25a961fbfbf33a36f6cda57eb1a7a7a57d6ee400c54935e673", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,622
c
#include <stdio.h> #include <stdint.h> #include "trace.h" void debug_trace_open(void) { printf("TRACE: "); } void debug_trace_char(char c) { printf("%c", c); } void debug_trace_close(void) { printf("\n"); } void debug_trace_int(long i) { printf("TRACE: %ld\n", i); }
17.33
15
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include "trace.h"\n\nvoid debug_trace_open(void) {\n printf("TRACE: ");\n}\n\nvoid debug_trace_char(char c) {\n printf("%c", c);\n}\n\nvoid debug_trace_close(void) {\n printf("\n");\n}\n\nvoid debug_trace_int(long i) {\n printf("TRACE: %ld\n", i);\n}\n" ...
113
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.33, "nodes": 60, "errors": 0, "source_hash": "51e4ce1dda81ef9d3a7855ac6f85d515dff73c8ab79874105ab72c74d96714f4", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,623
c
#ifndef NEW_MAP_DIALOG_H #define NEW_MAP_DIALOG_H #include <QDialog> #include <hexmap/data/hex_grid.h> namespace Ui { class new_map_dialog_t; } namespace asdf { namespace hexmap { namespace data { struct terrain_bank_t; }}} class new_map_dialog_t : public QDialog { Q_OBJECT public: explicit new_map_d...
23.28
25
(translation_unit) "#ifndef NEW_MAP_DIALOG_H\n#define NEW_MAP_DIALOG_H\n\n#include <QDialog>\n\n#include <hexmap/data/hex_grid.h>\n\nnamespace Ui {\nclass new_map_dialog_t;\n}\n\nnamespace asdf { namespace hexmap { namespace data\n{\n struct terrain_bank_t;\n}}}\n\n\nclass new_map_dialog_t : public QDialog\n{\n Q...
157
10
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.28, "nodes": 88, "errors": 0, "source_hash": "0ac8ebc6a624cb8e31be3df58ad3f522bdad7a01f7cc4244b60dd80272f99c69", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,624
c
// // WtCore.h // WtCore // // Created by wtfan on 2017/8/30. // Copyright © 2017 wtfan. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <Foundation/Foundation.h> // Category #import "NSString+WtEncrypt.h" #import "NSStr...
24.81
37
(translation_unit) "//\n// WtCore.h\n// WtCore\n//\n// Created by wtfan on 2017/8/30.\n// Copyright © 2017 wtfan.\n//\n// This source code is licensed under the MIT-style license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n#import <Foundation/Foundation.h>\n\n// Category\n#import "NS...
82
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.81, "nodes": 44, "errors": 0, "source_hash": "928148f0a8c5551b4ba4be7b2b8662e1014c7b092e6503032c459b0c24517d90", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
1,625
c
// // Created by artem on 14.08.20. // #ifndef SIMPLE_WEB_SERVER_UTILS_H #define SIMPLE_WEB_SERVER_UTILS_H #include <boost/algorithm/hex.hpp> #include <string> void remove0x(std::string &s); Hash sha256bytes(const std::string &strBytes); Hash hexStrToHash(const std::string &s); Signature hexStrToSig(const std::stri...
29.56
36
(translation_unit) "//\n// Created by artem on 14.08.20.\n//\n\n#ifndef SIMPLE_WEB_SERVER_UTILS_H\n#define SIMPLE_WEB_SERVER_UTILS_H\n\n#include <boost/algorithm/hex.hpp>\n#include <string>\n\nvoid remove0x(std::string &s);\nHash sha256bytes(const std::string &strBytes);\n\nHash hexStrToHash(const std::string &s);\nSig...
466
27
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.56, "nodes": 268, "errors": 0, "source_hash": "ec1a34ce52c1b98695034354e49674849d4cc15857f7acaa49231f132e27d317", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,626
c
/** * Nsmf_PDUSession * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * * The version of the OpenAPI document: 1.1.0.alpha-1 * * * NOTE: This class is auto generated by OpenAPI Generator * (https://openapi-generator.tech). https:...
24.59
71
(translation_unit) "/**\n * Nsmf_PDUSession\n * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,\n * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.\n *\n * The version of the OpenAPI document: 1.1.0.alpha-1\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator\n * (https://op...
307
18
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 24.59, "nodes": 181, "errors": 0, "source_hash": "dc5d4900a082fd36dad4a3276ed4dc676feb4f13b62d7f20687b30b43423424a", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
1,627
c
// Advent of Code 2021 - Day 06 // Written by <NAME> /* Really simple */ #include <stdio.h> #include <stdlib.h> #include "strmanip.h" // Function declarations void get_fish(unsigned long *f); void step_fish(unsigned long *f); unsigned long sum_fish(unsigned long *f); int main(void) { unsigned long fish[9] = { 0 }...
19.58
45
(translation_unit) "// Advent of Code 2021 - Day 06\n// Written by <NAME>\n\n/* Really simple */\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "strmanip.h"\n\n// Function declarations\nvoid get_fish(unsigned long *f);\nvoid step_fish(unsigned long *f);\nunsigned long sum_fish(unsigned long *f);\n\nint main(voi...
421
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 19.58, "nodes": 283, "errors": 0, "source_hash": "377af611e12a4777501f8738122b8a5d3b3951b1b7f9928d0280ffec221e7e7a", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,628
c
// // LoginCommand.h // // Created by <NAME> on 8/5/11. // // #import "BaseCommand.h" @interface LoginCommand : BaseCommand { NSString *user; NSString *pwd; } @property (retain, nonatomic) NSString * user; @property (retain, nonatomic) NSString * pwd; @end
18.21
14
(translation_unit) "//\n// LoginCommand.h\n//\n// Created by <NAME> on 8/5/11.\n// \n//\n\n#import "BaseCommand.h"\n\n@interface LoginCommand : BaseCommand {\n NSString *user;\n NSString *pwd;\n}\n\n@property (retain, nonatomic) NSString * user;\n@property (retain, nonatomic) NSString * pwd;\n@end\n" (commen...
74
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.21, "nodes": 46, "errors": 0, "source_hash": "06652cebf59a8037f35eac60236497cafae6944391af2030aa75e5d6d73cb19c", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
1,629
c
#ifndef INCLUDE_GUARD_CUDA_CUPY_CUSPARSELT_H #define INCLUDE_GUARD_CUDA_CUPY_CUSPARSELT_H #include <library_types.h> #include <cusparseLt.h> #if CUSPARSELT_VERSION < 100 // Added in cuSPARSELt 0.1.0 cusparseStatus_t cusparseLtMatDescriptorDestroy(...) { return CUSPARSE_STATUS_NOT_SUPPORTED; } cusparseStatus_t c...
32
23
(translation_unit) "#ifndef INCLUDE_GUARD_CUDA_CUPY_CUSPARSELT_H\n#define INCLUDE_GUARD_CUDA_CUPY_CUSPARSELT_H\n\n#include <library_types.h>\n#include <cusparseLt.h>\n\n#if CUSPARSELT_VERSION < 100\n// Added in cuSPARSELt 0.1.0\n\ncusparseStatus_t cusparseLtMatDescriptorDestroy(...) {\n return CUSPARSE_STATUS_NOT_SU...
105
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.0, "nodes": 56, "errors": 0, "source_hash": "3b41e64982e8520e64f6a60e5bf0cebad812abf673c3de94bda0c9295996243d", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
1,630
c
// generated from rosidl_generator_c/resource/idl__struct.h.em // with input from halodi_msgs:msg/JointStatus.idl // generated code does not contain a copyright notice #ifndef HALODI_MSGS__MSG__JOINT_STATUS__FUNCTIONS_H_ #define HALODI_MSGS__MSG__JOINT_STATUS__FUNCTIONS_H_ #ifdef __cplusplus extern "C" { #endif #inc...
35.64
109
(translation_unit) "// generated from rosidl_generator_c/resource/idl__struct.h.em\n// with input from halodi_msgs:msg/JointStatus.idl\n// generated code does not contain a copyright notice\n\n#ifndef HALODI_MSGS__MSG__JOINT_STATUS__FUNCTIONS_H_\n#define HALODI_MSGS__MSG__JOINT_STATUS__FUNCTIONS_H_\n\n#ifdef __cplusplu...
193
7
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 35.64, "nodes": 130, "errors": 0, "source_hash": "158cfad0956a1772ee9c393e211b78bd6f063149e811a62f8ec3f6a15a40f06f", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,631
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QFile> #include <QMainWindow> #include <QNetworkAccessManager> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void onDownloadProgress(qint...
21.96
26
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QFile>\n#include <QMainWindow>\n#include <QNetworkAccessManager>\n\nnamespace Ui {\nclass MainWindow;\n}\n\nclass MainWindow : public QMainWindow {\n Q_OBJECT\n\npublic:\n explicit MainWindow(QWidget *parent = 0);\n ~MainWindow();\n\nprivate...
146
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.96, "nodes": 95, "errors": 0, "source_hash": "0b7d760b70b69c6def1d2cb963830378ec551b591eca1e088e8ab60d5f9fdc0e", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,632
c
#pragma once #include "renderer/camera/camera.h" #include "renderer/renderer.h" #include <string> namespace Lynton { class Layer { public: // todo: make renderer be defined here Layer(const std::string& name, vec3 camera_origin = {-1, -1, 1}, scalar camera_width = 2, scalar camera_height = 2); virtual ~...
33.56
34
(translation_unit) "#pragma once\n\n#include "renderer/camera/camera.h"\n#include "renderer/renderer.h"\n\n#include <string>\n\nnamespace Lynton {\n\nclass Layer {\npublic:\n // todo: make renderer be defined here\n Layer(const std::string& name, vec3 camera_origin = {-1, -1, 1}, scalar camera_width = 2, scalar c...
260
20
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.56, "nodes": 160, "errors": 0, "source_hash": "ffe6bb5fd0bb2b4581f7d1558dd9f0e215a5d1b69bfba3314fec9e542ddeec19", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,633
c
// // DJLayoutModel.h // DJPictureViewerExample // // Created by djl on 2016. // Copyright © 2016年 djl. djliu( https://github.com/djliu328 ) // #import <UIKit/UIKit.h> @interface DJLayoutModel : NSObject /** 图片高度 */ @property(nonatomic,assign) CGFloat height; /** 图片链接 */ @property(nonatomic,copy) NSString *imgur...
23.17
18
(translation_unit) "//\n// DJLayoutModel.h\n// DJPictureViewerExample\n//\n// Created by djl on 2016.\n// Copyright © 2016年 djl. djliu( https://github.com/djliu328 )\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DJLayoutModel : NSObject\n\n/** 图片高度 */\n@property(nonatomic,assign) CGFloat height;\n/** 图片链接 */\n@prope...
90
18
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.17, "nodes": 57, "errors": 0, "source_hash": "8818570329580170782faa3165ef9e375884e18c4cc0588a2b671c100b59ab38", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,634
c
/* ** Copyright (c) 2003-2016, <NAME> <<EMAIL>> ** All rights reserved. ** ** This code is released under 2-clause BSD license. Please see the ** file at : https://github.com/libsndfile/libsamplerate/blob/master/COPYING */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <samplerate.h> #include "u...
33.03
136
(translation_unit) "/*\n** Copyright (c) 2003-2016, <NAME> <<EMAIL>>\n** All rights reserved.\n**\n** This code is released under 2-clause BSD license. Please see the\n** file at : https://github.com/libsndfile/libsamplerate/blob/master/COPYING\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#inc...
1,468
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 33.03, "nodes": 809, "errors": 0, "source_hash": "84210d6bec49ce57e4172a62c1cb72c727e9abd2d4b9477afdc4b844de47e0ac", "categorized_nodes": 569}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,635
c
/** * @file non_copyable_movable.h * @author Sigma711 (sigma711 at foxmail dot com) * @brief Base classes for disable Copy" semantics and "Move" semantics (can be * used to build "Singleton" patterns). * @date 2021-11-25 * * @copyright Copyright (c) 2021 Sigma711 * */ #ifndef TAOTU_SRC_NON_COPYABLE_MOVABLE_H_...
28.69
29
(translation_unit) "/**\n * @file non_copyable_movable.h\n * @author Sigma711 (sigma711 at foxmail dot com)\n * @brief Base classes for disable Copy" semantics and "Move" semantics (can be\n * used to build "Singleton" patterns).\n * @date 2021-11-25\n *\n * @copyright Copyright (c) 2021 Sigma711\n *\n */\n\n#ifndef TA...
103
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.69, "nodes": 54, "errors": 0, "source_hash": "ec22d92edac018010d49ec5574024c16a5b8bbd48530c90bd18aa765e63488aa", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,636
c
////////////////////////////////////////////////////////////////// // (c) Copyright 2003- by <NAME> ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // <NAME> // National Center for Supercomputing Applications & // Materials Comp...
31.92
50
(translation_unit) "//////////////////////////////////////////////////////////////////\n// (c) Copyright 2003- by <NAME>\n//////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////\n// <NAME>\n// National Center for Supercomputing Applicati...
152
6
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.92, "nodes": 68, "errors": 0, "source_hash": "5243bef5a00c7e6b6e640f1b24dc5961a44c17f77b4ed9f2a7623fcdd2da3813", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,637
c
#ifndef TAPTESTREPORTER_H #define TAPTESTREPORTER_H #include "testReporter.h" #include <iostream> struct TapTestReporter : TestReporter { TapTestReporter(std::ostream& outStream = std::cout); void printPlan(size_t testCount); void printResult(TestResult::Result result, size_t testNumber, ...
28.78
18
(translation_unit) "#ifndef TAPTESTREPORTER_H\n#define TAPTESTREPORTER_H\n\n#include "testReporter.h"\n\n#include <iostream>\nstruct TapTestReporter : TestReporter\n{\n TapTestReporter(std::ostream& outStream = std::cout);\n \n void printPlan(size_t testCount);\n\n void printResult(TestResult::Result result...
129
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.78, "nodes": 79, "errors": 0, "source_hash": "31856d288ebe2a98a89e64a2286cf03c104edb8269295d151957273d293eb451", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,638
c
// // CacheManager.h // Clan // // Created by 昔米 on 15/7/7. // Copyright (c) 2015年 Youzu. All rights reserved. // #import <Foundation/Foundation.h> @interface CacheManager : NSObject + (id)sharedCacheManager; @end
18.82
11
(translation_unit) "//\n// CacheManager.h\n// Clan\n//\n// Created by 昔米 on 15/7/7.\n// Copyright (c) 2015年 Youzu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CacheManager : NSObject\n\n+ (id)sharedCacheManager;\n\n@end\n" (comment) "//" (comment) "// CacheManager.h" (comment)...
32
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.82, "nodes": 17, "errors": 0, "source_hash": "97f9f9da2089565c6c1596e8e85803d260385bed32a7649b9db25d1511fd9800", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Foundat...
1,639
c
// // LoginController.h // iosAppByObjectiveC // // Created by shijun.lisj on 16/1/17. // Copyright © 2016年 shijun.lisj. All rights reserved. // #import <UIKit/UIKit.h> @interface LoginController : UIViewController<UITextFieldDelegate> @property(nonatomic, strong) UITextField *userNameField; @property(nonatomic...
28.92
12
(translation_unit) "//\n// LoginController.h\n// iosAppByObjectiveC\n//\n// Created by shijun.lisj on 16/1/17.\n// Copyright © 2016年 shijun.lisj. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LoginController : UIViewController<UITextFieldDelegate>\n\n@property(nonatomic, strong) UITextField *use...
57
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.92, "nodes": 40, "errors": 0, "source_hash": "9cfc293eba9f460e6c05e4c32910ba1aa6bc3e97465d7f6e4dbb4a97ebc25c1e", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,640
c
#include <stdio.h> #include "pe12-2a.h" int main(void) { int mode; int status = 0; printf("Enter 0 for metric mode, 1 for US mode: "); status = scanf("%d", &mode); while (mode >= 0) { if (status) { setmode(mode); get_info(); show_info(); printf("Enter 0 for metric mode, 1 for US mode"); printf...
15.67
30
(translation_unit) "#include <stdio.h>\n#include "pe12-2a.h"\nint main(void)\n{\n int mode;\n int status = 0; \n printf("Enter 0 for metric mode, 1 for US mode: ");\n status = scanf("%d", &mode);\n while (mode >= 0)\n {\n if (status)\n {\n setmode(mode);\n get_info();\n show_info();\n printf("Enter 0 for metr...
197
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 15.67, "nodes": 100, "errors": 0, "source_hash": "7f9455a92fddcb3905f947129f0f83cc01282497095c9715c80ced929a1d0f74", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,641
c
#pragma once #include <cstring> namespace Core { const char* GetFileExtension(const char* file) { size_t len = strlen(file); //const char* pos = file + len - 1; for (const char* pos = file + len - 1; pos != file; --pos) { if (*pos == '.') return pos + 1; } return nullptr; } }
17.69
16
(translation_unit) "#pragma once\n\n#include <cstring>\n\nnamespace Core\n{\n const char* GetFileExtension(const char* file)\n {\n size_t len = strlen(file);\n //const char* pos = file + len - 1;\n for (const char* pos = file + len - 1; pos != file; --pos)\n {\n if (*pos == '.')\n return pos + 1;\n }\n retur...
105
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.69, "nodes": 70, "errors": 0, "source_hash": "d34c4cd0a3eb60b033a395049101f07b7d8d704a4196191d56e0e5b37edc89c0", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,642
c
// // ILDreamInspireDetailViewController.h // dream100 // // Created by <NAME> on 16/10/21. // Copyright © 2016年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "ILDreamBasedViewController.h" @interface ILDreamInspireDetailViewController : ILDreamBasedViewController @property(strong, nonatomic) I...
31.08
13
(translation_unit) "//\n// ILDreamInspireDetailViewController.h\n// dream100\n//\n// Created by <NAME> on 16/10/21.\n// Copyright © 2016年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ILDreamBasedViewController.h"\n\n@interface ILDreamInspireDetailViewController : ILDreamBasedViewController\...
60
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.08, "nodes": 43, "errors": 0, "source_hash": "1068950a1173f3b442b6ee12de71ef483995e92cadc61e7e3877cde1fe8c35b7", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,643
c
// // AddressBookModel.h // FastContact // // Created by YTYanK on 17/1/14. // Copyright © 2017年 YTYanK. All rights reserved. // #import <Foundation/Foundation.h> @interface AddressBookModel : NSObject @property (assign, nonatomic) NSNumber *peta_rn; /** * 姓名 */ @property (copy, nonatomic) NSString *name; /** ...
18.87
23
(translation_unit) "//\n// AddressBookModel.h\n// FastContact\n//\n// Created by YTYanK on 17/1/14.\n// Copyright © 2017年 YTYanK. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface AddressBookModel : NSObject\n@property (assign, nonatomic) NSNumber *peta_rn;\n/**\n * 姓名\n */\n@property (cop...
96
18
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 18.87, "nodes": 68, "errors": 0, "source_hash": "ca64c740e74cce9cd617784fb0d9e0f64956b0d3e4a4962ffd9aeff81a99a98a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
1,644
c
/* $Xorg: OidStrs.h,v 1.4 2001/03/14 18:45:40 pookie Exp $ */ /* (c) Copyright 1996 Hewlett-Packard Company (c) Copyright 1996 International Business Machines Corp. (c) Copyright 1996 Sun Microsystems, Inc. (c) Copyright 1996 Novell, Inc. (c) Copyright 1996 Digital Equipment Corp. (c) Copyright 1996 Fujitsu Limited (c)...
31.22
167
(translation_unit) "/* $Xorg: OidStrs.h,v 1.4 2001/03/14 18:45:40 pookie Exp $ */\n/*\n(c) Copyright 1996 Hewlett-Packard Company\n(c) Copyright 1996 International Business Machines Corp.\n(c) Copyright 1996 Sun Microsystems, Inc.\n(c) Copyright 1996 Novell, Inc.\n(c) Copyright 1996 Digital Equipment Corp.\n(c) Copyrig...
1,376
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 31.22, "nodes": 418, "errors": 0, "source_hash": "de0ebf01172991db24f8382f7935239583178c0e2f8fbb1b29ab9075837c1a0f", "categorized_nodes": 276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static ...
1,645
c
// Copyright 2015-present 650 Industries. All rights reserved. #import <ABI39_0_0UMCore/ABI39_0_0UMViewManager.h> #import <ABI39_0_0UMCore/ABI39_0_0UMExportedModule.h> @interface ABI39_0_0EXLinearGradientManager : ABI39_0_0UMViewManager @end
47.4
5
(translation_unit) "// Copyright 2015-present 650 Industries. All rights reserved.\n\n#import <ABI39_0_0UMCore/ABI39_0_0UMViewManager.h>\n#import <ABI39_0_0UMCore/ABI39_0_0UMExportedModule.h>\n\n@interface ABI39_0_0EXLinearGradientManager : ABI39_0_0UMViewManager\n\n@end\n" (comment) "// Copyright 2015-present 650 In...
16
3
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 47.4, "nodes": 12, "errors": 0, "source_hash": "83bba3afd3057f6bdc51270f213ae2ed388b8344c20e2d9a25a228837102047c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <ABI...
1,646
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMService.h" #import "MMService.h" #import "PBMessageObserverDelegate.h" @class NSString; @interface MyInvoiceLogicMgr : MMService <MMService, PBMessageObserverDelegate> { } ...
30.69
29
(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 "MMService.h"\n\n#import "MMService.h"\n#import "PBMessageObserverDelegate.h"\n\n@class NSString;\n\n@interface MyInvoiceLogicMgr : MMService <MMService,...
270
26
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.69, "nodes": 170, "errors": 0, "source_hash": "3b0f5f2c16b5a0982def8dc83ea8b7ceaabe3dd5d8779865209b5e36fb589834", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,647
c
//---------------------------------------------------------------------------- // // Project : Call To Power 2 // File type : C++ header file // Description : // Id : $Id$ // //---------------------------------------------------------------------------- // // Disclaimer // // THIS FILE IS NOT GENERAT...
24.35
51
(translation_unit) "//----------------------------------------------------------------------------\n//\n// Project : Call To Power 2\n// File type : C++ header file\n// Description :\n// Id : $Id$\n//\n//----------------------------------------------------------------------------\n//\n// Disclaimer\n...
165
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.35, "nodes": 92, "errors": 0, "source_hash": "e5d94f36317cd7fce84db6185b9a19946de83993dea21eb51f08e98aaef0d4d9", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef H...
1,648
c
#include <ruby.h> #ifdef RUBY19 #define VM_FRAME_MAGIC_METHOD 0x11 #define VM_FRAME_MAGIC_BLOCK 0x21 #define VM_FRAME_MAGIC_CLASS 0x31 #define VM_FRAME_MAGIC_TOP 0x41 #define VM_FRAME_MAGIC_FINISH 0x51 #define VM_FRAME_MAGIC_CFUNC 0x61 #define VM_FRAME_MAGIC_PROC 0x71 #define VM_FRAME_MAGIC_IFUNC 0x81 #defin...
32.48
141
(translation_unit) "#include <ruby.h>\n\n#ifdef RUBY19\n\n#define VM_FRAME_MAGIC_METHOD 0x11\n#define VM_FRAME_MAGIC_BLOCK 0x21\n#define VM_FRAME_MAGIC_CLASS 0x31\n#define VM_FRAME_MAGIC_TOP 0x41\n#define VM_FRAME_MAGIC_FINISH 0x51\n#define VM_FRAME_MAGIC_CFUNC 0x61\n#define VM_FRAME_MAGIC_PROC 0x71\n#define VM...
515
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 32.48, "nodes": 376, "errors": 0, "source_hash": "6f90877365afb3d5f1a56c1508ce670885b1a336355423ee4b427cd589b49277", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,649
c
/* * $Id: mainpage.h 63 2011-08-20 15:27:52Z xander $ */ /** \mainpage ROBOTC Driver Suite * * \author <NAME> * * \section intro Introduction * The aim of this project is to create an easy to use suite of drivers for ROBOTC. * ROBOTC supports many of the devices listed below. However, these built-in drivers * are of...
29.81
42
(translation_unit) "/*\n * $Id: mainpage.h 63 2011-08-20 15:27:52Z xander $\n */\n\n/** \mainpage ROBOTC Driver Suite\n*\n* \author <NAME>\n*\n* \section intro Introduction\n* The aim of this project is to create an easy to use suite of drivers for ROBOTC.\n* ROBOTC supports many of the devices listed below. However, t...
10
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 29.81, "nodes": 0, "errors": 0, "source_hash": "c0f797324665a806d2383d01b37d697d6889cfdffa7fff9e7a41fd3efb75a299", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
1,650
c
/* * Copyright 1994-2018 <NAME>, <NAME>, CA */ #include "config.h" #if ! _lib_strdup # include "di.h" #if _hdr_stdio # include <stdio.h> #endif # if _hdr_stdlib # include <stdlib.h> # endif # if _hdr_memory # include <memory.h> # endif # if _hdr_malloc # include <malloc.h> # endif # if _hdr_string # include ...
14.82
49
(translation_unit) "/*\n * Copyright 1994-2018 <NAME>, <NAME>, CA\n */\n\n#include "config.h"\n\n#if ! _lib_strdup\n\n# include "di.h"\n\n#if _hdr_stdio\n# include <stdio.h>\n#endif\n# if _hdr_stdlib\n# include <stdlib.h>\n# endif\n# if _hdr_memory\n# include <memory.h>\n# endif\n# if _hdr_malloc\n# include <malloc...
217
4
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 14.82, "nodes": 164, "errors": 0, "source_hash": "42c3e35fea88ecfd8f7fb7816414dbd566f45eb2322059b7bcf050bdf42e553a", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,651
c
// // WVRPostRequest.h // VRManager // // Created by <NAME> on 16/6/15. // Copyright © 2016年 Snailvr. All rights reserved. // #import <Foundation/Foundation.h> #import "WVRBaseRequest.h" #import "WVRRequestProtocol.h" #import "WVRRequestPage.h" typedef void (^onComplete)(id complete); typedef void (^onSuccessed)(...
33.08
26
(translation_unit) "//\n// WVRPostRequest.h\n// VRManager\n//\n// Created by <NAME> on 16/6/15.\n// Copyright © 2016年 Snailvr. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "WVRBaseRequest.h"\n#import "WVRRequestProtocol.h"\n#import "WVRRequestPage.h"\n\ntypedef void (^onComplete)(id comple...
228
37
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.08, "nodes": 172, "errors": 0, "source_hash": "3ee128ff94787db6602936cd59cef61f30e1057558a19b03c7546e518c7208b5", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
1,652
c
#include <stdlib.h> #include <stdio.h> int male(int n); int female(int n); int main() { int i; for(i=0; i < 10; i++) { int result = male(i); printf("Result: %d \n",result); } return 0; } int male(int n) { if(n == 0) { return female(n); } if(n > 0) { return n - male(female(n-1)); // 1 ...
10.05
41
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\nint male(int n);\nint female(int n);\n\nint main() {\n \n int i;\n \n for(i=0; i < 10; i++) {\n \n int result = male(i);\n \n printf("Result: %d \n",result);\n }\n \n return 0;\n}\n\nint male(int n) {\n \n if(n == 0) {\n return female(n);\n }\n\n if(n ...
229
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 10.05, "nodes": 138, "errors": 0, "source_hash": "75e9257508fa05b7c06e86b9f3cadc59915db3390193d85e9723a66cc334a0c3", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,653
c
// // WARFeedModel.h // WARControl // // Created by helaf on 2018/4/25. // #import <Foundation/Foundation.h> #import "YYText.h" #import "WARFeedEnum.h" #define WARFeedImageComponentMediaPhoto @"PHOTO" #define WARFeedImageComponentMediaVideo @"VIDEO" @interface WARFeedModel ...
28.62
222
(translation_unit) "//\n// WARFeedModel.h\n// WARControl\n//\n// Created by helaf on 2018/4/25.\n//\n\n#import <Foundation/Foundation.h>\n#import "YYText.h"\n#import "WARFeedEnum.h"\n\n#define WARFeedImageComponentMediaPhoto @"PHOTO"\n#define WARFeedImageComponentMediaVideo @"...
1,618
333
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 28.62, "nodes": 1161, "errors": 0, "source_hash": "f330b0dcb432956b26fd689a0cc2f62a841409b162b69155f4d4ca7740ba5d74", "categorized_nodes": 654}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impo...
1,654
c
#ifndef __MFTP_CLIENT__ #define __MFTP_CLIENT__ #include "config.h" #include "bar.h" typedef struct { pthread_t tid; bool is_finished; char file_path[MAX_PATH_LENGTH]; int bar_index; } thread_info_c; int run_client(); #endif
20.42
12
(translation_unit) "#ifndef __MFTP_CLIENT__\n#define __MFTP_CLIENT__\n\n#include "config.h"\n#include "bar.h"\n\ntypedef struct {\n pthread_t tid;\n bool is_finished;\n char file_path[MAX_PATH_LENGTH];\n int bar_index;\n} thread_info_c;\n\nint run_client();\n\n#endif\n" (preproc_ifdef) "#i...
57
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.42, "nodes": 37, "errors": 0, "source_hash": "cf90b08e8a181ae0efd38451dac40da0dfe599fdc1a0c27f5f232fe2ce276853", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,655
c
/*- * Copyright (c) 2015 The FreeBSD Foundation * All rights reserved. * * This software was developed by Semihalf under * the sponsorship of the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are...
30.81
280
(translation_unit) "/*-\n * Copyright (c) 2015 The FreeBSD Foundation\n * All rights reserved.\n *\n * This software was developed by Semihalf under\n * the sponsorship of the FreeBSD Foundation.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the...
1,841
1
{"language": "c", "success": true, "metadata": {"lines": 280, "avg_line_length": 30.81, "nodes": 1053, "errors": 0, "source_hash": "51cc92963d670e4d478806a1c0ee00681a974311e743524495b15edb20ef2cf5", "categorized_nodes": 832}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,656
c
static void foo(void) { } static void foo(void) { }
25
2
(translation_unit) "static void foo(void) { }\nstatic void foo(void) { }\n" (function_definition) "static void foo(void) { }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "foo(void)" (identifier) "foo" (parameter_list) "(void)" ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 25.0, "nodes": 14, "errors": 0, "source_hash": "6d39fe34dc8fa79b23c6cc6fb18fbed0bc541c495a45b8b1a5f8d8e6ebdf70f7", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "stati...
1,657
c
#include <stdio.h> #include "buscaminas.h" int main() { extern char hash[CONTL][CONTL]; int pos, lett, c; //numero de casilla y letra de arriba int flag = 1, i, a, b; bombs(); // Genera bombas y numeros en su posicion forloop(i, CONTL*CONTL) //Poner numero a las minas cercanas neighbours(i); forloop(i, C...
29
49
(translation_unit) "#include <stdio.h>\n#include "buscaminas.h"\n\nint main() {\n \n extern char hash[CONTL][CONTL];\n int pos, lett, c; //numero de casilla y letra de arriba \n int flag = 1, i, a, b;\n \n bombs(); // Genera bombas y numeros en su posicion\n forloop(i, CONTL*CONTL) //Poner numero a las minas cercanas\n...
603
1
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.0, "nodes": 334, "errors": 0, "source_hash": "01347a40df0ad86ae7fb8721c621d765a8fd4ec1d76b7d3f7ae99ff40597f853", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,658
c
/* xsh_argecho.c - xsh_argecho */ #include <xinu.h> #include <stdio.h> /*------------------------------------------------------------------------ * xhs_argecho - display argecho message that lists shell commands *------------------------------------------------------------------------ */ shellcmd xsh_argecho(int n...
28.29
17
(translation_unit) "/* xsh_argecho.c - xsh_argecho */\n\n#include <xinu.h>\n#include <stdio.h>\n\n/*------------------------------------------------------------------------\n * xhs_argecho - display argecho message that lists shell commands\n *------------------------------------------------------------------------\n *...
106
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 28.29, "nodes": 59, "errors": 0, "source_hash": "b64e78de1cac2750aca0a97f22a790705472a22e8a6ae7a523cb2baf97367bfa", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,659
c
#pragma once struct sc { int cursorX; int cursorY; int defaultColor; char *vga; }; static struct sc *Screen = (struct sc *)0xAA; void screen_init(); void clearScreen(); void printChar(char ch, int color); void print(const char *str, int color); void printW(const char *str); void setScreenColor(int...
22.5
20
(translation_unit) "#pragma once \nstruct sc \n{ \n int cursorX; \n int cursorY; \n int defaultColor; \n char *vga; \n}; \nstatic struct sc *Screen = (struct sc *)0xAA; \nvoid screen_init(); \nvoid clearScreen(); \nvoid printChar(char ch, int color); \nvoid print(const char *str, int color); \nvoid printW(const cha...
180
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.5, "nodes": 126, "errors": 0, "source_hash": "ce3b46ac36d887aace3bcde3d07fa157494eb031488128b38c0e7c3d2b050696", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,660
c
// // Copyright (C) 2014 About Objects, Inc. All Rights Reserved. // See LICENSE.txt for this example's licensing information. // #import <Foundation/Foundation.h> FOUNDATION_EXPORT double ReadingListModelVersionNumber; FOUNDATION_EXPORT const unsigned char ReadingListModelVersionString[];
40.57
7
(translation_unit) "//\n// Copyright (C) 2014 About Objects, Inc. All Rights Reserved.\n// See LICENSE.txt for this example's licensing information.\n//\n#import <Foundation/Foundation.h>\n\nFOUNDATION_EXPORT double ReadingListModelVersionNumber;\nFOUNDATION_EXPORT const unsigned char ReadingListModelVersionString[];\n...
27
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 40.57, "nodes": 15, "errors": 0, "source_hash": "461477419adf5f3b24868474134cc011e14e007f5899a7e2e344ef5b2951bb6e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
1,661
c
#include <stdbool.h> #include <string.h> #include "regex_light.h" #include "common.h" #define REGEX_ALLOC(size) mmrbc_alloc(size) #define REGEX_FREE(ptr) mmrbc_free(ptr) typedef enum { RE_TYPE_TERM, // sentinel of finishing expression RE_TYPE_LIT, // literal RE_TYPE_DOT, // . RE_TYPE_QUES...
27.93
347
(translation_unit) "#include <stdbool.h>\n#include <string.h>\n#include "regex_light.h"\n\n#include "common.h"\n#define REGEX_ALLOC(size) mmrbc_alloc(size)\n#define REGEX_FREE(ptr) mmrbc_free(ptr)\n\n\ntypedef enum {\n RE_TYPE_TERM, // sentinel of finishing expression\n RE_TYPE_LIT, // literal\n RE_TY...
3,516
0
{"language": "c", "success": true, "metadata": {"lines": 347, "avg_line_length": 27.93, "nodes": 2220, "errors": 0, "source_hash": "a8b0f9097abde85b67eb37cfb934b687da4ea6f7460c26a14ea15b34b1dd915d", "categorized_nodes": 1557}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,662
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_HZScanUIDemoVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_HZScanUIDemoVersionStrin...
22.14
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_HZScanUIDemoVersionNumber;\nFOUNDATION_EXPORT const unsigned ...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.14, "nodes": 42, "errors": 0, "source_hash": "e57c20c8bf0f322705425974962ce654c4c250663e508ae089bcfb60cdb412b6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
1,663
c
#pragma once #include "precompiled.h" #include "building_graph.h" #include "layer_information.h" namespace traversal { namespace impl { class vertex_wrapper { private: // Unfortunately, these need to be default-constructible because they're // stored in an std::vector. BUT DON'T DO THAT. const building_graph *...
26.59
37
(translation_unit) "#pragma once\n\n#include "precompiled.h"\n\n#include "building_graph.h"\n#include "layer_information.h"\n\nnamespace traversal {\n\nnamespace impl {\n\nclass vertex_wrapper {\nprivate:\n // Unfortunately, these need to be default-constructible because they're \n // stored in an std::vector. BUT DON'...
312
12
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.59, "nodes": 162, "errors": 0, "source_hash": "b18ecf4203910d0f7e19d7737927a49b6ed032db737221b7cd97b40bf258ac6a", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,664
c
/* * Copyright (c) 2019 -2021 MINRES Technolgies GmbH * * SPDX-License-Identifier: Apache-2.0 */ #ifndef PLATFORM_SRC_CLIPARSER_H_ #define PLATFORM_SRC_CLIPARSER_H_ #include <boost/program_options.hpp> #include <memory> class CLIParser { public: CLIParser(int argc, char *argv[]); virtual ~CLIParser(); ...
31.12
24
(translation_unit) "/*\n * Copyright (c) 2019 -2021 MINRES Technolgies GmbH\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#ifndef PLATFORM_SRC_CLIPARSER_H_\n#define PLATFORM_SRC_CLIPARSER_H_\n\n#include <boost/program_options.hpp>\n#include <memory>\n\nclass CLIParser {\npublic:\n CLIParser(int argc, char *arg...
219
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.12, "nodes": 126, "errors": 0, "source_hash": "964eb78ac41ad2e794e70f4450bc2d0828f40bdba3ab63b7a91c639e3ba417f4", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,665
c
#include <string> using namespace std; class vehicle { private: int seats; int wheels; int max_speed; string color; public: vehicle(); //Set/get number of seats void set_maxspeed(int s); int get_maxspeed(); //Set/get number of seats void set_seats(int s); int get_seats(); //Set/get number of wheels v...
16.83
24
(translation_unit) "#include <string>\n\nusing namespace std;\n\nclass vehicle\n{\nprivate:\n int seats;\n int wheels;\n int max_speed;\n string color;\n\npublic:\n vehicle();\n\n //Set/get number of seats\n void set_maxspeed(int s);\n int get_maxspeed();\n\n //Set/get number of seats\n void set_seats(int s);\n int get...
127
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 16.83, "nodes": 79, "errors": 0, "source_hash": "1bb3620efce7d101135e02569de82b46bc8536f8037165df54afaf78eb554290", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,666
c
/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call i...
34.18
39
(translation_unit) "/****************************************************************************\n ****************************************************************************\n ***\n *** This header was automatically generated from a Linux kernel header\n *** of the same name, to make information necessary for us...
109
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.18, "nodes": 107, "errors": 0, "source_hash": "a538bd4c18eb926b82537f95416c4f8960242a7b8b184853c0485f96b091957a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,667
c
/**************************************************************************** ** ** Copyright (C) 2020 @scriptiot ** ** EVM是一款通用化设计的虚拟机引擎,拥有语法解析前端接口、编译器、虚拟机和虚拟机扩展接口框架。 ** 支持js、python、qml、lua等多种脚本语言,纯C开发,零依赖,内置REPL,支持主流 ROM > 40KB, RAM > 2KB的MCU; ** 自带垃圾回收(GC)先进的内存管理,采用最复杂的压缩算法,无内存碎片(大部分解释器都存在内存碎片) ** Version : 1.0 ...
34.03
114
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2020 @scriptiot\n**\n** EVM是一款通用化设计的虚拟机引擎,拥有语法解析前端接口、编译器、虚拟机和虚拟机扩展接口框架。\n** 支持js、python、qml、lua等多种脚本语言,纯C开发,零依赖,内置REPL,支持主流 ROM > 40KB, RAM > 2KB的MCU;\n** 自带垃圾回收(GC)先进的内存管理,采用最复杂的压缩算法,无内存碎片(大部分解释器都...
1,081
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 34.03, "nodes": 686, "errors": 0, "source_hash": "df2fc31e4917de3c091d428963235295ffbb6e9d5751029407f001be28c2aea9", "categorized_nodes": 471}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "(vo...
1,668
c
#include "global.h" typedef int elemType; /*structure of single list*/ typedef struct Node { elemType element; struct Node *next; }Node; Node *initList( void ) { Node *p; p = (Node *)malloc(sizeof(Node)); if( p == NULL ) { printf("内存分配失败!\n"); exit(0); } p->next = NULL; return p; } void showList(Node *...
13.96
225
(translation_unit) "#include "global.h"\n\ntypedef int elemType;\n\n/*structure of single list*/\ntypedef struct Node {\n elemType element;\n struct Node *next;\n}Node;\n\nNode *initList( void )\n{\n Node *p;\n p = (Node *)malloc(sizeof(Node));\n if( p == NULL )\n {\n printf("内存分配失败!\n");\n exit(0);\n }\n p->next = N...
1,632
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 13.96, "nodes": 912, "errors": 0, "source_hash": "9d7f236b84da19a92a1abc20b4db0cdc51946c590db670d0a4290639b60b00f8", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,669
c
// // AddClickButton.h // MVC // // Created by liushaohua on 2016/10/28. // Copyright © 2016年 liushaohua. All rights reserved. // #import <UIKit/UIKit.h> /*本类用户扩大按钮的点击区域,按照官方建议不小于44 point*/ @interface LLClickButton : UIButton @end
20.36
11
(translation_unit) "//\n// AddClickButton.h\n// MVC\n//\n// Created by liushaohua on 2016/10/28.\n// Copyright © 2016年 liushaohua. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n/*本类用户扩大按钮的点击区域,按照官方建议不小于44 point*/\n@interface LLClickButton : UIButton\n\n@end\n" (comment) "//" (comment) "// AddClickButton...
20
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.36, "nodes": 10, "errors": 0, "source_hash": "19cd182914864b431e446f6643b676ce55406bec2ee248b1e47a590134a212d6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
1,670
c
#include "interfaces.h" int main(void) { return (interfaces()); }
32
2
(translation_unit) "#include "interfaces.h"\n\nint main(void) { return (interfaces()); }\n" (preproc_include) "#include "interfaces.h"\n" (#include) "#include" (string_literal) ""interfaces.h"" (") """ (string_content) "interfaces.h" (") """ (function_definition) "int main(void) { return (...
30
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 32.0, "nodes": 15, "errors": 0, "source_hash": "5df85ad71891d4c7af727c7c2970629c9b0b17d23769e0bbbc4ff294c62214c7", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,671
c
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unreachable-code %s typedef __attribute__(( ext_vector_type(4) )) int int4; static int4 test1(void) { int4 vec, rv; // comparisons to self... return vec == vec; // expected-warning{{self-comparison always evaluates to true}} return vec != vec; // expected-warning...
41.83
36
(translation_unit) "// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unreachable-code %s\n\ntypedef __attribute__(( ext_vector_type(4) )) int int4;\n\nstatic int4 test1(void) {\n int4 vec, rv;\n\n // comparisons to self...\n return vec == vec; // expected-warning{{self-comparison always evaluates to true}}\n return ve...
270
2
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 41.83, "nodes": 160, "errors": 0, "source_hash": "304671e1312185ae52143e18717ed0d25ce80d4e1c5b7aaae73a3f47a145af5a", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
1,672
c
#ifndef INT32_STATE_H #define INT32_STATE_H typedef struct { uint8_t offset; int32_t value; } int32_state_t; static void int32_state_init(int32_state_t *state) { ASSERT(state); state->offset = 0; state->value = 0; } static uint32_t int32_state_calc_shift(uint8_t offset) { uint32_t shift_bytes...
26.97
33
(translation_unit) "#ifndef INT32_STATE_H\n#define INT32_STATE_H\n\ntypedef struct {\n uint8_t offset;\n int32_t value;\n} int32_state_t;\n\nstatic void int32_state_init(int32_state_t *state) {\n ASSERT(state);\n state->offset = 0;\n state->value = 0;\n}\n\nstatic uint32_t int32_state_calc_shift(uint8_t ...
284
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.97, "nodes": 177, "errors": 0, "source_hash": "3ac724bc9ad4af2c1f19068a8f11ac4975d217244ef5dd8c34fb6a3c9247e02e", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,673
c
// // AshHierachyTreeBuilder.h // AshHierachyTreeView // // Created by 陈震 on 2018/8/28. // #import <Foundation/Foundation.h> #import "AshHierachyData.h" @interface AshHierachyTreeBuilder : NSObject @property(nonatomic ,strong) UIFont *entryFont; @property(nonatomic ,strong) UIColor *entryColor; @property(nonatomi...
32.35
17
(translation_unit) "//\n// AshHierachyTreeBuilder.h\n// AshHierachyTreeView\n//\n// Created by 陈震 on 2018/8/28.\n//\n\n#import <Foundation/Foundation.h>\n#import "AshHierachyData.h"\n\n@interface AshHierachyTreeBuilder : NSObject\n\n@property(nonatomic ,strong) UIFont *entryFont;\n@property(nonatomic ,strong) UIColo...
142
30
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.35, "nodes": 105, "errors": 0, "source_hash": "507f47dc782f4ca10b43c45c5331585f2e3085f130c2c050d98430808871c66e", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Fou...
1,674
c
/* * Copyright (c) The Libre Solar Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ #include "board.h" #include "bms.h" #include "registers.h" #include "interface.h" #include "helper.h" #include <math.h> // log for thermistor calculation #include <stdlib.h> // for abs() function #include...
28.77
181
(translation_unit) "/*\n * Copyright (c) The Libre Solar Project Contributors\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include "board.h"\n\n#include "bms.h"\n#include "registers.h"\n#include "interface.h"\n#include "helper.h"\n\n#include <math.h> // log for thermistor calculation\n#include <stdlib.h> ...
1,285
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 28.77, "nodes": 822, "errors": 0, "source_hash": "f7f25567fd78f9543843eab938dabddf8392e7ee266658f943dbbe3f11ee9373", "categorized_nodes": 609}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,675
c
#pragma once #include <Arduino.h> constexpr uint8_t kPinNotUsed{255}; class TB9051FTGMotorCarrier { public: /** * Custom constructor. */ TB9051FTGMotorCarrier(uint8_t pwm1, uint8_t pwm2, uint8_t ocm = kPinNotUsed, uint...
32.14
44
(translation_unit) "#pragma once\n\n#include <Arduino.h>\n\nconstexpr uint8_t kPinNotUsed{255};\n\nclass TB9051FTGMotorCarrier {\npublic:\n /**\n * Custom constructor.\n */\n TB9051FTGMotorCarrier(uint8_t pwm1,\n uint8_t pwm2,\n uint8_t ocm = kPinNotUsed...
276
15
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.14, "nodes": 173, "errors": 0, "source_hash": "920d2e6af24a550734550a67fe80cffed0c21f7c3f818bed13a10da954406f0e", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,676
c
/* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
29.93
44
(translation_unit) "/*\n * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE...
112
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 29.93, "nodes": 58, "errors": 0, "source_hash": "37ceec7f70efe3ae635f49aae394b1dea725aaad3a8e4176cef34abd1ca9bdd1", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,677
c
// Copyright (C) 2016 <NAME> // This file is part of the Ouzel engine. #pragma once #include "graphics/VertexBuffer.h" namespace ouzel { namespace graphics { class VertexBufferEmpty: public VertexBuffer { public: VertexBufferEmpty(); protected: virtual...
20.18
17
(translation_unit) "// Copyright (C) 2016 <NAME>\n// This file is part of the Ouzel engine.\n\n#pragma once\n\n#include "graphics/VertexBuffer.h"\n\nnamespace ouzel\n{\n namespace graphics\n {\n class VertexBufferEmpty: public VertexBuffer\n {\n public:\n VertexBufferEmpty();\n\n ...
61
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.18, "nodes": 29, "errors": 0, "source_hash": "5dc5dbcb1edd7e002942b024f54209f0399df86d00765bcbbdac2274a3409ab2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,678
c
//===----------------------------------------------------------------------===// // // Peloton // // multi_constraint.h // // Identification: src/include/catalog/multi_constraint.h // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===----------------------------------...
38.06
53
(translation_unit) "//===----------------------------------------------------------------------===//\n//\n// Peloton\n//\n// multi_constraint.h\n//\n// Identification: src/include/catalog/multi_constraint.h\n//\n// Copyright (c) 2015-2017, Carnegie Mellon University Database Group\n//\n//===----...
288
15
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 38.06, "nodes": 146, "errors": 0, "source_hash": "25b404510e01540a5c2390b72bdc4d55a79e096315ad709144f06e4c83a6ccd8", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,679
c
/* Copyright (c) 2020, GO63-samara <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. */ #pragma once #include "api/plugin-api.hpp" #in...
32.3
64
(translation_unit) "/* Copyright (c) 2020, GO63-samara <<EMAIL>> \n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n */\n\n#pragma once\n\n#inc...
558
12
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.3, "nodes": 282, "errors": 0, "source_hash": "94c0f5c0b87ed31203ec69474597f48cfdc85cdd22f087c52b66145261c40e6c", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,680
c
// // TGGeoPolyline.h // TangramMap // // Created by <NAME> on 10/27/16. // Updated by <NAME> on 8/21/18. // Copyright (c) 2017 Mapzen. All rights reserved. // #import <CoreLocation/CoreLocation.h> #import <Foundation/Foundation.h> #import "TGExport.h" NS_ASSUME_NONNULL_BEGIN /** A shape made of connected line...
32.03
30
(translation_unit) "//\n// TGGeoPolyline.h\n// TangramMap\n//\n// Created by <NAME> on 10/27/16.\n// Updated by <NAME> on 8/21/18.\n// Copyright (c) 2017 Mapzen. All rights reserved.\n//\n\n#import <CoreLocation/CoreLocation.h>\n#import <Foundation/Foundation.h>\n#import "TGExport.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n...
98
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 32.03, "nodes": 58, "errors": 0, "source_hash": "38c44c5ecb22344f520f6ca10fffd63824ec6c8b0c47c7ba3291cba95b8e7b44", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,681
c
#include <stdbool.h> #include <stdint.h> #include <emscripten.h> uint8_t kb_Data[8] = {0}; uint8_t *get_kb_Data(void){ return kb_Data; } uint8_t kb_AnyKey(void) { emscripten_sleep(5); for(int i = 1; i < 8; i++) { if(kb_Data[i]) return true; } return false; }
18
14
(translation_unit) "#include <stdbool.h>\n#include <stdint.h>\n#include <emscripten.h>\n\nuint8_t kb_Data[8] = {0};\n\nuint8_t *get_kb_Data(void){\n return kb_Data;\n}\n\nuint8_t kb_AnyKey(void) {\n emscripten_sleep(5);\n for(int i = 1; i < 8; i++) {\n if(kb_Data[i]) return true;\n }\n return false;\n}\n" (preproc_i...
102
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.0, "nodes": 63, "errors": 0, "source_hash": "3204690628ff29603294e5115502bc60b63eca56a92cfe043d70a4d21aef3596", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,682
c
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/OfficeImport-Structs.h> #import <OfficeImport/XXUnknownSuperclass.h> @class NSString; __attribute__((visibility("hidden"))) @interface STStgInfo : XXUnkn...
33.58
40
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2b.\n *\n * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport\n */\n\n#import <OfficeImport/OfficeImport-Structs.h>\n#import <OfficeImport/XXUnknownSuperclass.h>\n\n@class NSString;\n\n__attribute__((visibility("hidden"))...
376
22
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.58, "nodes": 216, "errors": 0, "source_hash": "8f75a92f8301f9e4736beb1201f3e6953bec7b91270b72ba3274526f7b01f35b", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
1,683
c
#include "../Buff_private.h" //======================================================================= // 加攻 //======================================================================= void HuiMaQiangA_Buff_Start(struct Buff* self, struct BuffList* list); void HuiMaQiangA_Buff_Stop(struct Buff* self, struct BuffList* l...
27.03
61
(translation_unit) "nclude "../Buff_private.h"\n\n//=======================================================================\n// 加攻\n//=======================================================================\nvoid HuiMaQiangA_Buff_Start(struct Buff* self, struct BuffList* list);\nvoid HuiMaQiangA_Buff_Stop(struct Buff* s...
424
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.03, "nodes": 287, "errors": 0, "source_hash": "b5ae32ebb437d42c8427c10618bedfc72191cdddb1607a509b6a4d1693ac06b4", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
1,684
c
/*------------------------------------------------------------------------------ * Copyright (C) 2003-2006 <NAME> * * Distributable under the terms of either the Apache License (Version 2.0) or * the GNU Lesser General Public License, as specified in the COPYING file. -------------------------------------------------...
30.45
116
(translation_unit) "/*------------------------------------------------------------------------------\n* Copyright (C) 2003-2006 <NAME>\n* \n* Distributable under the terms of either the Apache License (Version 2.0) or \n* the GNU Lesser General Public License, as specified in the COPYING file.\n------------------------...
915
53
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 30.45, "nodes": 575, "errors": 0, "source_hash": "bc5e3aaa1b5b8c365198d47c538e140f592b2f4ae97ff59a500cf0d3bdfb7479", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,685
c
integer problem_size parameter (problem_size=12)
26
2
(translation_unit) "integer problem_size\n parameter (problem_size=12)\n" (declaration) "integer problem_size" (type_identifier) "integer" (identifier) "problem_size" (;) "" (expression_statement) "parameter (problem_size=12)" (call_expression) "parameter (problem_size=12)" (identifier) "p...
16
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 26.0, "nodes": 10, "errors": 0, "source_hash": "2cce039cf54c16789ff9981696d6b7e3bcbd02d66287dcf75d47810e93e479c3", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "integer probl...
1,686
c
#include <math.h> #include <stdio.h> #include "forge.h" #include "imagine.h" typedef unsigned long long uint64; #include "keep.h" typedef enum{ K_I_ADDRESS, K_I_TEXT, K_I_TIME, K_I_LOCATION, K_I_COUNT }KIntex; typedef struct{ uint64 address[256]; uint64 list; }KIndexAdress; uint64 keep_index_text_allocate(KSe...
25.54
245
(translation_unit) "#include <math.h>\n#include <stdio.h>\n#include "forge.h"\n#include "imagine.h"\ntypedef unsigned long long uint64;\n#include "keep.h"\n\ntypedef enum{\n K_I_ADDRESS,\n K_I_TEXT,\n K_I_TIME,\n K_I_LOCATION,\n K_I_COUNT\n}KIntex;\n\ntypedef struct{\n uint64 address[256];\n uint64 list;\n}KIndexAdress...
2,334
0
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 25.54, "nodes": 1417, "errors": 0, "source_hash": "2839e260454a6c61ab3687680be50830a79d5f20298894656b1f9175b78f5638", "categorized_nodes": 1065}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,687
c
// // STMenuMaker.h // STMenuKit // // Created by <NAME> on 11/15/09. // Copyright 2009 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> /* STMenuMaker =========== The goal of STMenuMaker is to create instances of classes from some data. STMenuMaker Item Format ----------------------- ...
35.59
78
(ERROR) "//\n// STMenuMaker.h\n// STMenuKit\n//\n// Created by <NAME> on 11/15/09.\n// Copyright 2009 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/*\n \n STMenuMaker\n ===========\n \n The goal of STMenuMaker is to create instances of classes from some data.\n \n STMenuMaker Item Format...
289
21
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 35.59, "nodes": 162, "errors": 0, "source_hash": "adf57d1517839701ac78101b96f62c4b1b7d2f97693171bcd5d27ece97a87b53", "categorized_nodes": 99}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// STMenuMaker.h\n// ...
1,688
c
/** * \file * * \brief SAM RTC Count Unit test * * Copyright (C) 2015-2016 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
33.42
275
(translation_unit) "/**\n * \file\n *\n * \brief SAM RTC Count Unit test\n *\n * Copyright (C) 2015-2016 Atmel Corporation. All rights reserved.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the f...
1,002
0
{"language": "c", "success": true, "metadata": {"lines": 275, "avg_line_length": 33.42, "nodes": 546, "errors": 0, "source_hash": "6901b33b8ab7748b72e46f7c7d23b9081bfc24bc0e8e3e35580c02013115d180", "categorized_nodes": 419}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,689
c
/* Commande interne bg */ #ifndef __CMD_BG_H #define __CMD_BG_H void cmd_bg(char **cmd_line, char *in); #endif
21.2
5
(translation_unit) "/* Commande interne bg */\n\n#ifndef __CMD_BG_H\n#define __CMD_BG_H\n\nvoid cmd_bg(char **cmd_line, char *in);\n\n#endif\n" (comment) "/* Commande interne bg */" (preproc_ifdef) "#ifndef __CMD_BG_H\n#define __CMD_BG_H\n\nvoid cmd_bg(char **cmd_line, char *in);\n\n#endif" (#ifndef) "#ifndef" ...
30
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 21.2, "nodes": 24, "errors": 0, "source_hash": "4da8ed68abad7ee37145bf95cd94b051bd80d6e89d558133623286d264fb8bb0", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
1,690
c
#pragma once #include "..\..\basebot.h" /** BadEcoBot: Attempts to emulate someone who has never looked into economics. */ class BadEcoBot : public BaseBot { public: BadEcoBot(int n); // Inherited via BaseBot virtual void Turn(std::vector<Contribution*> avail, int pts) override; virtual void Success(int invest...
23.33
18
(translation_unit) "#pragma once\n#include "..\..\basebot.h"\n\n/**\n BadEcoBot:\n Attempts to emulate someone who has never looked into economics.\n*/\nclass BadEcoBot : public BaseBot\n{\npublic:\n BadEcoBot(int n);\n // Inherited via BaseBot\n virtual void Turn(std::vector<Contribution*> avail, int pts) override;\n...
115
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.33, "nodes": 73, "errors": 0, "source_hash": "39fe1db34160003557ef6b79023e65f2dab1c7c1bb757ab649e28b7ebbe10acb", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,691
c
// // DottedLineView.h // FreshMakeupDemo // // Created by chenao on 15/9/8. // Copyright (c) 2015年 chenao. All rights reserved. // #import <UIKit/UIKit.h> @interface DottedLineView : UIView @end
19
10
(translation_unit) "//\n// DottedLineView.h\n// FreshMakeupDemo\n//\n// Created by chenao on 15/9/8.\n// Copyright (c) 2015年 chenao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DottedLineView : UIView\n\n@end\n" (comment) "//" (comment) "// DottedLineView.h" (comment) "// FreshMakeupDe...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.0, "nodes": 10, "errors": 0, "source_hash": "3d5b7c93b8ff011ed22b262cb4fa47fcaf8cfd1edee373f39bec82055edace46", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
1,692
c
#ifndef GURUM_AUDIO_DECODER_H_ #define GURUM_AUDIO_DECODER_H_ #include "frame_decoder.h" #include "simplemedia/types.h" #include "simplemedia/resampler.h" namespace gurum { class AudioDecoder: public FrameDecoder { public: virtual AVMediaType MediaType() const override {return AVMEDIA_TYPE_AUDIO;} int samplerat...
31.18
17
(translation_unit) "#ifndef GURUM_AUDIO_DECODER_H_\n#define GURUM_AUDIO_DECODER_H_\n\n#include "frame_decoder.h"\n#include "simplemedia/types.h"\n#include "simplemedia/resampler.h"\n\nnamespace gurum {\n\nclass AudioDecoder: public FrameDecoder {\npublic:\n virtual AVMediaType MediaType() const override {return AVMEDI...
128
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.18, "nodes": 71, "errors": 0, "source_hash": "f8efd03b33964b9be18c9b7f1ead596fe8736040cd04eb314f5842d40615c580", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,693
c
/** * Copyright 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
36.13
90
(translation_unit) "/**\n * Copyright 2020 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by app...
422
34
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 36.13, "nodes": 260, "errors": 0, "source_hash": "1090fe41ef1368ac7e1160294f9960993f9fc329be43d0cf5d40808716d55c33", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,694
c
#ifndef PARAVIEWNETWORKEDITOR_PLUGIN_NETWORKEDITOR_H_ #define PARAVIEWNETWORKEDITOR_PLUGIN_NETWORKEDITOR_H_ #include <QGraphicsScene> #include <QGraphicsItem> #include <map> #include <tuple> class pqPipelineSource; class QGraphicsSceneContextMenuEvent; class pqDeleteReaction; class vtkSMProxy; namespace ParaViewNetw...
36.99
96
(ERROR) "#ifndef PARAVIEWNETWORKEDITOR_PLUGIN_NETWORKEDITOR_H_\n#define PARAVIEWNETWORKEDITOR_PLUGIN_NETWORKEDITOR_H_\n\n#include <QGraphicsScene>\n#include <QGraphicsItem>\n#include <map>\n#include <tuple>\n\nclass pqPipelineSource;\nclass QGraphicsSceneContextMenuEvent;\nclass pqDeleteReaction;\nclass vtkSMProxy;\n\n...
909
35
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 36.99, "nodes": 604, "errors": 0, "source_hash": "747ae3c8cb49a0470d8b51289dca6bb867380893c9ac7177fbc1599e3f114a76", "categorized_nodes": 387}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PARAVIEWNETWORKED...
1,695
c
#pragma once #include "literal/debug.h" #include "literal/list/node.h" namespace literal { template <typename Type> class singly_list { public: using value_type = Type; using node_type = singly_list_node<Type>; using iterator = node_type*; using constant_iterator = const node_type*; singly_list...
27.94
87
(translation_unit) "#pragma once\n\n#include "literal/debug.h"\n#include "literal/list/node.h"\n\nnamespace literal\n{\n\ntemplate <typename Type>\nclass singly_list\n{\npublic:\n using value_type = Type;\n using node_type = singly_list_node<Type>;\n using iterator = node_type*;\n using constant_iterator =...
752
24
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 27.94, "nodes": 456, "errors": 0, "source_hash": "913757ca095339ee84ed1db877c3d4261e463e4d429026ef25aec044d358c004", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,696
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double IceAndFireKitVersionNumber; FOUNDATION_EXPORT const unsigned char IceAndFireKitVersionString[];
35.5
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double IceAndFireKitVersionNumber;\nFOUNDATION_EXPORT const unsigned char IceAndFireKitVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_E...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 35.5, "nodes": 15, "errors": 0, "source_hash": "0e1d6103ff9b35c3a9ecd2a50678a282584bcb1b7f7c1a032689f562e188b086", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
1,697
c
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* Properties of Unicode characters. */ /* Generated automatically by gen-uni-tables.c for Unicode 9.0.0. */ #define header_0 16 #define header_2 9 #define header_3 127 #define header_4 15 static const struct { int header[1]; int level1[2]; short level2[2 << 7...
21.44
355
(translation_unit) "/* DO NOT EDIT! GENERATED AUTOMATICALLY! */\n/* Properties of Unicode characters. */\n/* Generated automatically by gen-uni-tables.c for Unicode 9.0.0. */\n#define header_0 16\n#define header_2 9\n#define header_3 127\n#define header_4 15\nstatic const\nstruct\n {\n int header[1];\n int lev...
1,636
0
{"language": "c", "success": true, "metadata": {"lines": 355, "avg_line_length": 21.44, "nodes": 935, "errors": 0, "source_hash": "88fad8a4cad407a0b2cdb2f7477c8e3d4213f11e19420d137b19c855d3fe2f04", "categorized_nodes": 748}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
1,698
c
// // face_attribute.hpp // skinsoften_iOS_full // // Created by linfeng on 2018/4/28. // Copyright © 2018年 <NAME>. All rights reserved. // #ifndef _FACE_SMILE_H_ #define _FACE_SMILE_H_ #include <string> #include <vector> #include <sys/time.h> #include <MNN/Interpreter.hpp> #include <MNN/Tensor.hpp> #include <MNN...
27.38
52
(translation_unit) "//\n// face_attribute.hpp\n// skinsoften_iOS_full\n//\n// Created by linfeng on 2018/4/28.\n// Copyright © 2018年 <NAME>. All rights reserved.\n//\n\n#ifndef _FACE_SMILE_H_\n#define _FACE_SMILE_H_\n\n#include <string>\n#include <vector>\n#include <sys/time.h>\n#include <MNN/Interpreter.hpp>\n#inc...
378
10
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.38, "nodes": 266, "errors": 0, "source_hash": "7437177846fc7533166661398586344a5b4649d983fb3ede5af1cab9d8e91f18", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef _...
1,699