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
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation */ @interface SBFTouchPassThroughView : UIView - (id)hitTest:(struct CGPoint { double x1; double x2; })arg1 withEvent:(id)arg2; @end
42.83
6
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation\n */\n\n@interface SBFTouchPassThroughView : UIView\n\n- (id)hitTest:(struct CGPoint { double x1; double x2; })arg1 withEvent:(id)arg2;\n\n@end\n" (comment) "/* Generat...
51
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 42.83, "nodes": 30, "errors": 0, "source_hash": "73ff5e4e90a8dd348a9bbfbddcb2ebd233d3c5d7cc545e5303e360cd6d0db845", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SBFTou...
12,400
c
#ifndef _MULTIBOOT_H #define _MULTIBOOT_H /* The magic field should contain this. */ #define MULTIBOOT_HEADER_MAGIC 0x1BADB002 /* This should be in %eax. */ #define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002 /* Alignment of multiboot modules. */ #define MULTIBOOT_MOD_ALIGN 0x00001000 /* Alignment of the multiboot info s...
31.82
179
(translation_unit) "#ifndef _MULTIBOOT_H\n#define _MULTIBOOT_H\n\n/* The magic field should contain this. */\n#define MULTIBOOT_HEADER_MAGIC 0x1BADB002\n\n/* This should be in %eax. */\n#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002\n\n/* Alignment of multiboot modules. */\n#define MULTIBOOT_MOD_ALIGN 0x00001000\n\n/* A...
729
0
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 31.82, "nodes": 555, "errors": 0, "source_hash": "a7a5b5da7066059d2f2ceec0b219539b5b9c09aa6e74b9772e9bd0abd51a256a", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,401
c
/** * \file * * \brief SAM QUAD DECODER Driver for SAMB11 * * 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 a...
30.99
311
(translation_unit) "/**\n * \file\n *\n * \brief SAM QUAD DECODER Driver for SAMB11\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...
291
0
{"language": "c", "success": true, "metadata": {"lines": 311, "avg_line_length": 30.99, "nodes": 185, "errors": 0, "source_hash": "08f77cb245f45f20cce711218ab28d5b0e338b24d96a1a14709d1b2f5ff2c183", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,402
c
/*PowerBase.h $Author: jlconlin $ $Id: PowerBase.h 239 2008-01-07 17:47:47Z jlconlin $ $Revision: 239 $ $Date: 2008-01-07 10:47:47 -0700 (Mon, 07 Jan 2008) $ The PowerBase class is intended to be used as a Python base object. It is written in C++ to facilitate using the score function. */ #ifndef POWERBASE_H ...
34.25
32
(translation_unit) "/*PowerBase.h\n $Author: jlconlin $\n $Id: PowerBase.h 239 2008-01-07 17:47:47Z jlconlin $\n $Revision: 239 $\n $Date: 2008-01-07 10:47:47 -0700 (Mon, 07 Jan 2008) $\n\n The PowerBase class is intended to be used as a Python base object. It is\n written in C++ to facilitate using the score function...
309
11
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.25, "nodes": 186, "errors": 0, "source_hash": "9fbc3d210e0dabc1e0f21390ea644085d4ac46b2fef48fe9c2071d368ba53e6a", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,403
c
/* * QEMU SDL display driver * * Copyright (c) 2003 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
33.77
141
(translation_unit) "/*\n * QEMU SDL display driver\n *\n * Copyright (c) 2003 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitatio...
873
3
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 33.77, "nodes": 544, "errors": 0, "source_hash": "e17c10ff5663da2dc8c8a685bd8e622805174f97a567f0a40484deb0f84bfb5d", "categorized_nodes": 403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,404
c
#include "colr.h" int main(void) { // Basic colors: char* s = colr_cat( fore(RED), "This is a test", fore(BLUE), " and only a test." ); printf("%s\n", s); free(s); // Color names: char* n = colr_cat( fore("red"), "This is red." ); pri...
22.97
38
(translation_unit) "#include "colr.h"\n\nint main(void) {\n // Basic colors:\n char* s = colr_cat(\n fore(RED),\n "This is a test",\n fore(BLUE),\n " and only a test."\n );\n printf("%s\n", s);\n free(s);\n\n // Color names:\n char* n = colr_cat(\n fore("red"),\n ...
324
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.97, "nodes": 165, "errors": 0, "source_hash": "97b4fc30ed40d982b95b05038d92194c80ba3bf6d8b78d6387cd376db3de24db", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,405
c
////////////////////////////////////////////////////////////////////////// // CreateDeleteTransform.h // // Transforms an incoming Delete operation against an applied Create operation. // // Copyright (C) 2014 Microsoft Corp. All Rights Reserved ///////////////////////////////////////////////////////////////////////...
33.65
20
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n// CreateDeleteTransform.h\n//\n// Transforms an incoming Delete operation against an applied Create operation. \n//\n// Copyright (C) 2014 Microsoft Corp. All Rights Reserved\n/////////////////////////////////////////////...
80
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.65, "nodes": 39, "errors": 0, "source_hash": "9bd32b8df3775b7a3756eb3be911d5964452dea3fdbb00778d5fe6ab9f7069bb", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,406
c
#pragma once #include "cocos2d.h" #include "Macros.h" using namespace cocos2d; NS_CCR_BEGIN enum { SHADER_DEFAULT_ID, SHADER_GRAY_ID , SHADER_WATER_WAVE_ID, SHADER_WATER_ID, SHADER_SPINE_GRAY_ID, SHADER_SPRITE_LIGHT_ID, SHADER_PLAYER_LIGHT, SHADER_DES_LIGHT, SHADER_HIGH_LIGHT_ID, SHADER_HIGH_LIGHT2_ID, ...
20.62
37
(translation_unit) "#pragma once\n\n#include "cocos2d.h"\n#include "Macros.h"\n\n\nusing namespace cocos2d;\nNS_CCR_BEGIN\n\nenum \n{\n SHADER_DEFAULT_ID,\n SHADER_GRAY_ID ,\n SHADER_WATER_WAVE_ID,\n SHADER_WATER_ID,\n SHADER_SPINE_GRAY_ID,\n SHADER_SPRITE_LIGHT_ID,\n SHADER_PLAYER_LIGHT,\n SHADER_DES_LIGHT,\n SHADER_H...
197
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 20.62, "nodes": 108, "errors": 0, "source_hash": "41db515bc66c03c2cc88c02a268726d3b662473f45b5f95a2f9f91a705113c70", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,407
c
/* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> #include <misc/dlist.h> static sys_dlist_t test_list; struct container_node { sys_dnode_t node; int unused; }; static struct container_node test_node_1; static struct container_node test_node_2; static stru...
25.46
248
(translation_unit) "/*\n * Copyright (c) 2017 Intel Corporation\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <ztest.h>\n#include <misc/dlist.h>\n\nstatic sys_dlist_t test_list;\n\nstruct container_node {\n sys_dnode_t node;\n int unused;\n};\n\nstatic struct container_node test_node_1;\nstatic struct co...
1,962
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 25.46, "nodes": 1016, "errors": 0, "source_hash": "788cb6987e41f87fc8d6db7a14048c6aa9e7ff09a1421136802cd0b70ecba5f5", "categorized_nodes": 781}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,408
c
#ifndef SRC1_H #define SRC1_H int function(int i); #endif
13.5
4
(translation_unit) "#ifndef SRC1_H\n#define SRC1_H\n\nint function(int i);\n\n#endif\n" (preproc_ifdef) "#ifndef SRC1_H\n#define SRC1_H\n\nint function(int i);\n\n#endif" (#ifndef) "#ifndef" (identifier) "SRC1_H" (preproc_def) "#define SRC1_H\n" (#define) "#define" (identifier) "SRC1_H" (d...
19
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 13.5, "nodes": 14, "errors": 0, "source_hash": "9cdd03dcba4f4e0f3900f2aeeb20231304bba736342239d17f00b99a267b2b81", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SRC...
12,409
c
#import <Foundation/Foundation.h> @interface listModel : NSObject @property(copy, nonatomic) NSString *user_id; @property(copy, nonatomic) NSString *avatar; @property(copy, nonatomic) NSString *nickname; @property(copy, nonatomic) NSString *level; -(instancetype)initWithDic:(NSDictionary *)dic; +(instancetype)model...
37.89
9
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface listModel : NSObject\n\n@property(copy, nonatomic) NSString *user_id;\n@property(copy, nonatomic) NSString *avatar;\n@property(copy, nonatomic) NSString *nickname;\n@property(copy, nonatomic) NSString *level;\n\n-(instancetype)initWithDic:(NSDictionary...
116
22
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 37.89, "nodes": 85, "errors": 0, "source_hash": "d0bef201045c6904c39ceedd84d50efc52b5fec1b094912ebf4ac70a545dd708", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
12,410
c
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: euf_etable.h Author: <NAME> (leonardo) 2008-02-19. Revision History: copied from smt_cg_table --*/ #pragma once #include "ast/euf/euf_enode.h" #include "util/hashtable.h" #include "util/chashtable.h" namespace euf { // one table p...
35.78
146
(translation_unit) "/*++ Copyright (c) 2006 Microsoft Corporation\n\nModule Name:\n\n euf_etable.h\n\nAuthor:\n\n <NAME> (leonardo) 2008-02-19.\n\nRevision History:\n\n copied from smt_cg_table\n\n--*/\n\n#pragma once\n\n#include "ast/euf/euf_enode.h"\n#include "util/hashtable.h"\n#include "util/chashtable.h"\...
1,447
137
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 35.78, "nodes": 923, "errors": 0, "source_hash": "f22f439a92d702047a4838026dfbbe13279af81d128b5425cec29e6abda9435f", "categorized_nodes": 542}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,411
c
/* * Copyright (c) 2014-2020 JL1TTD <NAME> * * File: thunderbolt.h * Author: JL1TTD <NAME> * * Created on August 18, 2020, 1:53 AM */ #ifndef UART_H #define UART_H #include <stdio.h> #include <stdint.h> #include <stdbool.h> #define DLE 0x10 #define ETX 0x03 #define RX_STATE_IDLE 0 #define RX_STATE_D...
22.36
59
(translation_unit) "/* \n * Copyright (c) 2014-2020 JL1TTD <NAME>\n * \n * File: thunderbolt.h\n * Author: JL1TTD <NAME>\n *\n * Created on August 18, 2020, 1:53 AM\n */\n\n#ifndef UART_H\n#define UART_H\n\n#include <stdio.h>\n#include <stdint.h>\n#include <stdbool.h>\n\n#define DLE 0x10\n#define ETX 0x03\n\n#define ...
195
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 22.36, "nodes": 166, "errors": 0, "source_hash": "068425d9c3b310a4b5c6cd7e0281e32db9efe209b40c2ea35a1de8e70fc4f1f1", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,412
c
#ifndef __HOOK_PARSER_H__ #define __HOOK_PARSER_H__ #include "perl.h" #include "hook_op_check.h" hook_op_check_id hook_parser_setup (pTHX); void hook_parser_teardown (hook_op_check_id id); char *hook_parser_get_linestr (pTHX); IV hook_parser_get_linestr_offset (pTHX); void hook_parser_set_linestr (pTHX_ const char *n...
37.56
18
(translation_unit) "#ifndef __HOOK_PARSER_H__\n#define __HOOK_PARSER_H__\n\n#include "perl.h"\n#include "hook_op_check.h"\n\nhook_op_check_id hook_parser_setup (pTHX);\nvoid hook_parser_teardown (hook_op_check_id id);\nchar *hook_parser_get_linestr (pTHX);\nIV hook_parser_get_linestr_offset (pTHX);\nvoid hook_parser_se...
182
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.56, "nodes": 137, "errors": 0, "source_hash": "ce01b6ca81ab3c49d993a32b5bba1e5817b3d8290ce2952d70be75f8457ec5aa", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,413
c
/* * %CopyrightBegin% * * Copyright Ericsson AB 2000-2016. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
28.6
163
(translation_unit) "/*\n * %CopyrightBegin%\n *\n * Copyright Ericsson AB 2000-2016. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache...
1,281
1
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 28.6, "nodes": 795, "errors": 0, "source_hash": "2f3fff83d1be6225df0a675627112e8daf238bd04bdc56b136c0f0cc9c64ff6b", "categorized_nodes": 599}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
12,414
c
#pragma once #include <gtest/gtest.h> namespace rsvm::tests { class ByteTest : public ::testing::Test {}; } // namespace rsvm::tests
25.6
5
(translation_unit) "#pragma once\n#include <gtest/gtest.h>\nnamespace rsvm::tests {\n\nclass ByteTest : public ::testing::Test {};\n\n} // namespace rsvm::tests\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <gtest/gtest.h>\n" (#include)...
35
2
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 25.6, "nodes": 16, "errors": 0, "source_hash": "f6ec3b3893987f95a6c720b2302fb8d1d049de31fecc60cb5cbbba687e9b36c4", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
12,415
c
#pragma once class JoystickDebug { public: static void do_imgui(); };
9.29
7
(translation_unit) "#pragma once\n\n\nclass JoystickDebug\n{\npublic:\n\n static void do_imgui();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class JoystickDebug\n{\npublic:\n\n static void do_imgui();\n}" (type_identifier) "class" ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 9.29, "nodes": 11, "errors": 0, "source_hash": "689bf0b40c723d9b9a0b43b6191dbdd5f196e5e9bef902e1147d83bd3a045a31", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
12,416
c
#ifndef _VSOCK_H_ #define _VSOCK_H_ #include "event.h" #include "../config.h" #ifdef HAVE_VSOCK int probe_vsock_device(void); int hyper_create_vsock_listener(unsigned short port); int hyper_vsock_accept(struct hyper_event *he, int efd, struct hyper_event *ne, struct hyper_event_ops *ops); #else /*HAVE_VSOCK*...
23.72
25
(translation_unit) "#ifndef _VSOCK_H_\n#define _VSOCK_H_\n\n#include "event.h"\n#include "../config.h"\n\n#ifdef HAVE_VSOCK\nint probe_vsock_device(void);\nint hyper_create_vsock_listener(unsigned short port);\nint hyper_vsock_accept(struct hyper_event *he, int efd,\n struct hyper_event *ne, struct hyper_event_...
168
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.72, "nodes": 117, "errors": 0, "source_hash": "8bccde37c0227188471f48e9e335c55ea39c21dbfbbc985103b2e48a512ab032", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,417
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Catalyst.framework/Catalyst */ @interface _CATArbitratorResourceProxy : NSProxy <CATArbitratorProxy> { bool _isExclusive; _CATArbitratorRegistrationEntry * mRegistration; id mResource; } @property (readonly, copy) NSString *debu...
35.61
23
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/Catalyst.framework/Catalyst\n */\n\n@interface _CATArbitratorResourceProxy : NSProxy <CATArbitratorProxy> {\n bool _isExclusive;\n _CATArbitratorRegistrationEntry * mRegistration;\n id mResource;\n}\n\n@property (...
248
23
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 35.61, "nodes": 154, "errors": 0, "source_hash": "1daa070304386eb276ef435fcfbf14105de82c48dbf2f3530e63b13e539c7051", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
12,418
c
//==========================================================================// // Copyright <NAME> (<EMAIL>). All Rights Reserved. //================== http://unrealengineresources.com/ =====================// #pragma once #include "EditorWidgetBase.h" #include "AssetThumbnailWidget.generated.h" class FAssetThumbna...
36.82
39
(translation_unit) "//==========================================================================//\n// Copyright <NAME> (<EMAIL>). All Rights Reserved.\n//================== http://unrealengineresources.com/ =====================//\n\n#pragma once\n\n#include "EditorWidgetBase.h"\n#include "AssetThumbnailWidget.generat...
295
9
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 36.82, "nodes": 175, "errors": 0, "source_hash": "3ae355f328cfac375a3f09dc48b9ae9c455f2a004c889c34872791367d41e98e", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,419
c
/********************************************************************** GAPC -- A genetic algorithm for protected clusters Copyright (C) 2010-2011 by <NAME> This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distribut...
25.6
161
(translation_unit) "/**********************************************************************\n GAPC -- A genetic algorithm for protected clusters\n\n Copyright (C) 2010-2011 by <NAME>\n\n This source code is released under the New BSD License, (the "License").\n\n Unless required by applicable law or agreed to in wr...
515
18
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 25.6, "nodes": 336, "errors": 0, "source_hash": "22366d08a40ebc82b7a477af50f18bbc22ea1ccfa9ede51f551516dbd5d33cec", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,420
c
#ifndef SOCKS5_C_CLIENT_SOCKS5_H #define SOCKS5_C_CLIENT_SOCKS5_H #pragma once #include "xsocks/tls.h" int xsocks_socks5_connect(struct xsocks_openssl_ctx* tls, const char *xap_v6_addr, int xap_v6_port); #endif
27.33
9
(translation_unit) "#ifndef SOCKS5_C_CLIENT_SOCKS5_H\n#define SOCKS5_C_CLIENT_SOCKS5_H\n#pragma once\n\n#include "xsocks/tls.h"\n\nint\nxsocks_socks5_connect(struct xsocks_openssl_ctx* tls,\n const char *xap_v6_addr,\n int xap_v6_port);\n\n#endif\n" (preproc_ifdef) "#ifndef S...
44
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.33, "nodes": 33, "errors": 0, "source_hash": "0df749ac0f9290e390bf4ea4bfe75c4d95fd04b97ada70959a7abcaab3930607", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
12,421
c
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <stddef.h> void *memset(void *s, int c, size_t n); void *memcpy(void *dest, const void *src, size_t n); void print(char *s);
39.57
7
(translation_unit) "// Copyright lowRISC contributors.\n// Licensed under the Apache License, Version 2.0, see LICENSE for details.\n// SPDX-License-Identifier: Apache-2.0\n\n#include <stddef.h>\n\nvoid *memset(void *s, int c, size_t n);\nvoid *memcpy(void *dest, const void *src, size_t n);\n\nvoid print(char *s);\n" ...
70
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 39.57, "nodes": 51, "errors": 0, "source_hash": "7842af3d4896438529daac7236fbca038e7532355e0b10d37172407df8f6c760", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,422
c
#include "stdafx.h" #pragma once using namespace std; #if (!defined(_UTILITIES_H_)) #define _UTILITIES_H_ class Utilities { public: static VOID ToUpper(std::wstring& value); static VOID ToLower(std::wstring& value); static BOOL FileExists(const std::wstring& fileName); static std::wstring GetFileDirectory(...
26.97
35
(translation_unit) "#include "stdafx.h"\n\n#pragma once\n\nusing namespace std;\n\n#if (!defined(_UTILITIES_H_))\n#define _UTILITIES_H_\n\nclass Utilities\n{\n public:\n static VOID ToUpper(std::wstring& value);\n static VOID ToLower(std::wstring& value);\n static BOOL FileExists(const std::wstring& fileName);\n st...
362
21
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.97, "nodes": 206, "errors": 0, "source_hash": "a0715575a01b2682bb792b45966b2d98d51dadbc38d55d733f3a682b189616b9", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,423
c
#ifndef __JUCE_RSPLOTFILESETUP_JUCEHEADER__ #define __JUCE_RSPLOTFILESETUP_JUCEHEADER__ #include "../JuceLibraryCode/JuceHeader.h" using namespace juce; using namespace jura; class RSPlotFileSetup : public Component { public: RSPlotFileSetup(); /**< Constructor. */ virtual ~RSPlotFileSetup(); /**< Destruct...
32.49
37
(translation_unit) "#ifndef __JUCE_RSPLOTFILESETUP_JUCEHEADER__\n#define __JUCE_RSPLOTFILESETUP_JUCEHEADER__\n\n#include "../JuceLibraryCode/JuceHeader.h"\nusing namespace juce;\nusing namespace jura;\n\nclass RSPlotFileSetup : public Component\n{\n\npublic:\n\n RSPlotFileSetup();\n /**< Constructor. */\n\n virtual ...
160
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 32.49, "nodes": 97, "errors": 0, "source_hash": "878363d3286d5ba35e570633a90b6aa2d5e342ec44acbd197740604206936f2d", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,424
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSCopying.h" @class NSMutableArray, NSString; @interface SpritePackageModel : NSObject <NSCopying> { int _packageId; int _type; int _version; ...
35.26
39
(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 "NSObject.h"\n\n#import "NSCopying.h"\n\n@class NSMutableArray, NSString;\n\n@interface SpritePackageModel : NSObject <NSCopying>\n{\n int _packageId;...
340
37
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.26, "nodes": 225, "errors": 0, "source_hash": "182f69bdd8a0ffc4e10805a75d0c027be46ee31fd754611836c0c2743d8b1aad", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,425
c
/*-------------------------------------------------------*/ /* kaede.c ( SunOfBeach SOB BBS Ver 0.00 ) */ /*-------------------------------------------------------*/ /* target : Kaede's functions */ /* create : 96/03/23 */ /* update : 96/03/23...
20.19
213
(translation_unit) "/*-------------------------------------------------------*/\n/* kaede.c ( SunOfBeach SOB BBS Ver 0.00 ) */\n/*-------------------------------------------------------*/\n/* target : Kaede's functions */\n/* create : 96/03/23 ...
1,206
3
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 20.19, "nodes": 685, "errors": 0, "source_hash": "fe466727968dca6478937b145113986d6763f8292558e921c49b815a20671043", "categorized_nodes": 497}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,426
c
/* * Copyright (c) 2020 Huawei Device Co., Ltd. * 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 ...
31.4
50
(translation_unit) "/*\n * Copyright (c) 2020 Huawei Device Co., Ltd.\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...
151
5
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.4, "nodes": 86, "errors": 0, "source_hash": "441a8c3286fb62ba38a23931a2f5d4723ca837fe49945f872fc29bc662b2fef4", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
12,427
c
#pragma once #define STRICT #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <commdlg.h> #include <XInput.h> #include <tchar.h> #include <stdio.h> #include "Resource.h" #define XINPUT_GAMEPAD_GUIDE 0x400
17.83
12
(translation_unit) "#pragma once \n \n#define STRICT \n#define WIN32_LEAN_AND_MEAN \n#include <windows.h> \n#include <commdlg.h> \n#include <XInput.h> \n#include <tchar.h> \n#include <stdio.h> \n#include "Resource.h" \n \n#define XINPUT_GAMEPAD_GUIDE 0x400 \n" (preproc_call) "#pragma once \n" (preproc_directive) ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.83, "nodes": 31, "errors": 0, "source_hash": "dbc8676f97d80835fef1e3703f87de3c9e6dc8455858ee3f71794e3988c4bdab", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,428
c
#ifndef KIWI_MD5_H #define KIWI_MD5_H /* * kiwi. * * postgreSQL protocol interaction library. */ typedef struct kiwi_md5 kiwi_md5_t; struct kiwi_md5 { uint32_t state[4]; uint64_t count; uint8_t buffer[64]; }; void kiwi_md5_init(kiwi_md5_t*); void kiwi_md5_update(kiwi_md5_t*, void *input, size_t len); void ki...
22.32
19
(translation_unit) "#ifndef KIWI_MD5_H\n#define KIWI_MD5_H\n\n/*\n * kiwi.\n *\n * postgreSQL protocol interaction library.\n*/\n\ntypedef struct kiwi_md5 kiwi_md5_t;\n\nstruct kiwi_md5\n{\n uint32_t state[4];\n uint64_t count;\n uint8_t buffer[64];\n};\n\nvoid kiwi_md5_init(kiwi_md5_t*);\nvoid kiwi_md5_update(kiwi_md...
119
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.32, "nodes": 84, "errors": 0, "source_hash": "7ceb92e72f2a10f68ec0ddf948292c8c6c1dbe5237e76d1db251d44255102e92", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,429
c
#pragma once #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include <SDL2/SDL_syswm.h> #include <memory> #include <string> namespace dante::sdl { class WindowPtr : public std::unique_ptr<SDL_Window, decltype(&SDL_DestroyWindow)> { public: WindowPtr(); WindowPtr(const std::string& title, si...
23.3
20
(translation_unit) "#pragma once\n#define SDL_MAIN_HANDLED\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_syswm.h>\n#include <memory>\n#include <string>\n\nnamespace dante::sdl\n{\n class WindowPtr : public std::unique_ptr<SDL_Window, decltype(&SDL_DestroyWindow)>\n {\n public:\n WindowPtr();\n Windo...
131
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.3, "nodes": 78, "errors": 0, "source_hash": "fb51b769d76f844ce68488700154e620e5824e40489409346924ddfb771f2176", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,430
c
/** * \file funcrypt.c * * \brief Functions for cryptographic stuff in softcode * * */ #include "copyrite.h" #include "config.h" #include <time.h> #include <string.h> #include <ctype.h> #include "conf.h" #include "case.h" #include "externs.h" #include "version.h" #include "extchat.h" #include "htab.h" #include "...
24.49
305
(translation_unit) "/**\n * \file funcrypt.c\n *\n * \brief Functions for cryptographic stuff in softcode\n *\n *\n */\n#include "copyrite.h"\n\n#include "config.h"\n#include <time.h>\n#include <string.h>\n#include <ctype.h>\n#include "conf.h"\n#include "case.h"\n#include "externs.h"\n#include "version.h"\n#include "ex...
2,835
0
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 24.49, "nodes": 1664, "errors": 0, "source_hash": "82e97a3edc75ef9389102a4f36b469a0b4e9abc178a16f0c4e7198e5000c79f5", "categorized_nodes": 1139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,431
c
/*********************************************************** dragon2.c -- ドラゴンカーブ ***********************************************************/ #include "svgplot.c" /* または epsplot.c */ #define ORDER 10 /* 位数 */ enum {RIGHT, LEFT}; int main(void) { int k, i, p, q, dx, dy, dx1, dy1; stat...
28.97
33
(translation_unit) "/***********************************************************\n dragon2.c -- ドラゴンカーブ\n***********************************************************/\n#include "svgplot.c" /* または epsplot.c */\n#define ORDER 10 /* 位数 */\nenum {RIGHT, LEFT};\n\nint main(void)\n{\n int k, i, p, ...
324
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.97, "nodes": 196, "errors": 0, "source_hash": "252e4551bcf71dd77d3c0b176c1d846cbe2f7c225a3bc807344878ba2b1fb173", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lot....
12,432
c
// // ViewController.h // ClassRoster // // Created by <NAME> on 11/16/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
17.73
11
(translation_unit) "//\n// ViewController.h\n// ClassRoster\n//\n// Created by <NAME> on 11/16/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// Clas...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.73, "nodes": 11, "errors": 0, "source_hash": "025c354d2d79d852cb66da87d91889c07acee38935cfa1b8ed68ed4effe7f3a2", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
12,433
c
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> static void expect_one_parameter(int a) { ztest_check_expected_value(a); } static void expect_two_parameters(int a, int b) { ztest_check_expected_value(a); ztest_check_expected_value(b); } static void para...
22.07
40
(translation_unit) "/*\n * Copyright (c) 2016 Intel Corporation\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <ztest.h>\n\nstatic void expect_one_parameter(int a)\n{\n ztest_check_expected_value(a);\n}\n\nstatic void expect_two_parameters(int a, int b)\n{\n ztest_check_expected_value(a);\n ztest_check_ex...
236
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 22.07, "nodes": 123, "errors": 0, "source_hash": "8f41215e8a9730e91fd011dbe49c97782612815843dfef88edd077f537020043", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,434
c
// // UIImageView+SFExtension.h // SFExtension // // Created by 花菜 on 2017/7/26. // Copyright © 2017年 Caiflower. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImageView (SFExtension) // 播放GIF - (void)sf_playGifAnim:(NSArray *)images; // 停止动画 - (void)sf_stopGifAnim; @end
19.71
14
(translation_unit) "//\n// UIImageView+SFExtension.h\n// SFExtension\n//\n// Created by 花菜 on 2017/7/26.\n// Copyright © 2017年 Caiflower. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImageView (SFExtension)\n// 播放GIF\n- (void)sf_playGifAnim:(NSArray *)images;\n// 停止动画\n- (void)sf_stopGifAnim;...
58
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.71, "nodes": 33, "errors": 0, "source_hash": "9892a49ec64e6a08508c91d5f7b2422f600176ea3a5b05b561e4ecce221f6a81", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
12,435
c
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "WorkflowTabFactory.h" class UPhysicsAsset; struct FPhysicsAssetEditorProfilesSummoner : public FWorkflowTabFactory { public: FPhysicsAssetEditorProfilesSummoner(TSharedPtr<FAssetEditorToolkit> InHostingApp, UPhysicsAsset* InPhysics...
45.43
14
(translation_unit) "// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "WorkflowTabFactory.h"\n\nclass UPhysicsAsset;\n\nstruct FPhysicsAssetEditorProfilesSummoner : public FWorkflowTabFactory\n{\npublic:\n FPhysicsAssetEditorProfilesSummoner(TSharedPtr<FAssetEditorToolkit> InHosti...
104
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.43, "nodes": 63, "errors": 0, "source_hash": "b9c5ff071b2924be378d43c747aa0bcf2aa45b8b402259e2b5d5be57da80659c", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,436
c
/* * cartridge.h * * Created on: Jan 2, 2020 * Author: andrju */ #ifndef INC_CARTRIDGE_H_ #define INC_CARTRIDGE_H_ #include <stdint.h> #define RAM_SIZE (128*1024) #define RAM1_SIZE (96*1024) #define RAM2_SIZE (32*1024) #define ROM_SAVE_ADDR 0x08020000 #define SRAM_SAVE_ADDR 0x080E0000 #define ROM_MAX_SI...
22.47
30
(translation_unit) "/*\n * cartridge.h\n *\n * Created on: Jan 2, 2020\n * Author: andrju\n */\n\n#ifndef INC_CARTRIDGE_H_\n#define INC_CARTRIDGE_H_\n\n#include <stdint.h>\n\n#define RAM_SIZE (128*1024)\n#define RAM1_SIZE (96*1024)\n#define RAM2_SIZE (32*1024)\n\n#define ROM_SAVE_ADDR 0x08020000\n#define SRAM_SAV...
138
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 22.47, "nodes": 106, "errors": 0, "source_hash": "c46fe9ce938bafe93e4bdfdcabd58f71e0cde30bcc93c3b13ee818ad86ea9494", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,437
c
// // SSLoadingView.h // SSToolkit // // Created by <NAME> on 7/8/09. // Copyright 2009-2011 <NAME>. All rights reserved. // /** An easy view to show loading similar to the loading screens in the iTunes or App Store applications. The view is intended to cover another view while it is loading and the removed once...
27.62
58
(translation_unit) "//\n// SSLoadingView.h\n// SSToolkit\n//\n// Created by <NAME> on 7/8/09.\n// Copyright 2009-2011 <NAME>. All rights reserved.\n//\n\n/**\n An easy view to show loading similar to the loading screens in the iTunes or App Store applications. The view is\n intended to cover another view while it i...
176
19
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.62, "nodes": 109, "errors": 0, "source_hash": "058efbc097d510f6fb47dcd833c9c5bfd056aca69a25d7ddcf6ddba0650fafa4", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
12,438
c
/* ========================= eCAL LICENSE ================================= * * Copyright (C) 2016 - 2019 Continental Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
32.98
56
(translation_unit) "/* ========================= eCAL LICENSE =================================\n *\n * Copyright (C) 2016 - 2019 Continental Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy...
308
12
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 32.98, "nodes": 204, "errors": 0, "source_hash": "78fc330fb7937e81350369e07c039876498fbf0f742420a52b51946c7057728f", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,439
c
#ifndef __GEOMETRY_2D_H_ #define __GEOMETRY_2D_H_ #include "geometry_base.h" namespace Mu { class Triangle : public ConvexGeometry { protected: double radius ; Point circumCenter ; void computeCircumCenter() ; virtual void computeCenter() ; public: Triangle() ; Triangle(const Point p0, const Point p1, cons...
23.77
199
(translation_unit) "#ifndef __GEOMETRY_2D_H_\n#define __GEOMETRY_2D_H_\n\n#include "geometry_base.h"\n\nnamespace Mu\n{\n\nclass Triangle : public ConvexGeometry\n{\nprotected:\n double radius ;\n Point circumCenter ;\n \n void computeCircumCenter() ;\n virtual void computeCenter() ;\n \npublic:\n Triangle() ;\n Triang...
938
65
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 23.77, "nodes": 560, "errors": 0, "source_hash": "c2a15b35b93a159cd96078a6313f60eff77939ef78aa877673486aeb26ed954d", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,440
c
// // FMRouterExtensions.h // FMPageRouter // // Created by Fantasy on 2017/5/2. // Copyright © 2017年 fantasy. All rights reserved. // #import "NSNull+FMRouter.h" #import "NSString+FMRouter.h" #import "NSArray+FMRouter.h" #import "NSDictionary+FMRouter.h" #import "NSObject+FMRouter.h"
23.17
12
(translation_unit) "//\n// FMRouterExtensions.h\n// FMPageRouter\n//\n// Created by Fantasy on 2017/5/2.\n// Copyright © 2017年 fantasy. All rights reserved.\n//\n\n#import "NSNull+FMRouter.h"\n#import "NSString+FMRouter.h"\n#import "NSArray+FMRouter.h"\n#import "NSDictionary+FMRouter.h"\n#import "NSObject+FMRouter....
23
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 15, "errors": 0, "source_hash": "71aa8f13ac8b2da39c9b72bd452dd1a4a19fd2cac3817279e59202495e8c8c9f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"NSN...
12,441
c
#pragma once #include "proto/proto.h" #include "common/id.h" #include <vector> #include <set> struct calvin_epoch_ops { uint64_t epoch_; std::set<shard_id_t> shard_ids_; std::set<node_id_t> node_ids_; std::vector<ptr<tx_request>> reqs_; };
21.55
11
(translation_unit) "#pragma once\n\n#include "proto/proto.h"\n#include "common/id.h"\n#include <vector>\n#include <set>\n\nstruct calvin_epoch_ops {\n uint64_t epoch_;\n std::set<shard_id_t> shard_ids_;\n std::set<node_id_t> node_ids_;\n std::vector<ptr<tx_request>> reqs_;\n};" (preproc_call) "#pragma once\n" ...
68
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.55, "nodes": 47, "errors": 0, "source_hash": "0cf72ccc0225589860280cd45e603e997c6621fabb8cd379cec8baf9d1cc7a68", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,442
c
// // PISPPeopleCountModel.h // PublicInformationServicePlatform // // Created by LiDinggui on 2018/4/4. // Copyright © 2018年 DAQSoft. All rights reserved. // #import "LDGBaseModel.h" @interface PISPPeopleCountModel : LDGBaseModel @property (nonatomic, assign) NSInteger maxCapacity; @property (nonatomic, assign)...
28
12
(translation_unit) "//\n// PISPPeopleCountModel.h\n// PublicInformationServicePlatform\n//\n// Created by LiDinggui on 2018/4/4.\n// Copyright © 2018年 DAQSoft. All rights reserved.\n//\n\n#import "LDGBaseModel.h"\n\n@interface PISPPeopleCountModel : LDGBaseModel\n\n@property (nonatomic, assign) NSInteger maxCapacit...
50
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.0, "nodes": 33, "errors": 0, "source_hash": "0f67a1bbf153839931efb9e0858a7fe1fba8b58bc8b81e140fd33e85eb95504c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"LDG...
12,443
c
#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LAPLACIAN_BLUR_H #define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LAPLACIAN_BLUR_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // ...
33.98
57
(translation_unit) "#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LAPLACIAN_BLUR_H\n#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LAPLACIAN_BLUR_H\n//\n// OpenTissue Template Library\n// - A generic toolbox for physics-based modeling and simulation.\n// Copyright (C) 2008 Department of Computer Science, Univers...
250
9
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 33.98, "nodes": 152, "errors": 0, "source_hash": "1de2c5d09b403305c3aa043eb4f7804bdb3910e840a691bd718adbbe5346126a", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,444
c
#ifndef INPUT_H #define INPUT_H #include <SDL.h> //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ class Input { public: //-------------------------------------------------------------------------- ...
34.39
54
(translation_unit) "#ifndef INPUT_H\n#define INPUT_H\n\n#include <SDL.h>\n\n//------------------------------------------------------------------------------\n//------------------------------------------------------------------------------\nclass Input\n{\n public:\n //-----------------------------------------------...
226
5
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 34.39, "nodes": 146, "errors": 0, "source_hash": "f7c271a79eda1218b1428fa6851032f53c87efe603ddd32d8ce23b468bec9fd1", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,445
c
#pragma once namespace SOUI { class SAnimator { public: enum { ABORT = -1, PER_START = 0, PER_END = 100, }; typedef void (*AnimatorStateHandler)(int percent,LPARAM lp); SAnimator():m_uDuration(0),m_funAnimatorStateHandler(NULL),m_lpUs...
27.44
59
(translation_unit) "ragma once\n\nnamespace SOUI\n{\n class SAnimator\n {\n public:\n enum {\n ABORT = -1,\n PER_START = 0,\n PER_END = 100,\n };\n\n typedef void (*AnimatorStateHandler)(int percent,LPARAM lp);\n\n SAnimator():m_uDuration(0),m_funA...
371
3
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.44, "nodes": 213, "errors": 0, "source_hash": "3b3615d189ef8f5af09e22976d21ce5340d130a7b50a0bb496332c622b5fbace", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
12,446
c
/* ============================================================================== SliderController.h Created: 23 May 2020 11:04:50pm Author: <NAME> ============================================================================== */ #pragma once #include "../JuceLibraryCode/JuceHeader.h" ...
26.12
24
(translation_unit) "/* \n ============================================================================== \n \n SliderController.h \n Created: 23 May 2020 11:04:50pm \n Author: <NAME> \n \n ============================================================================== \n*/ \n \n#pragma once \n#include "../Ju...
117
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.12, "nodes": 74, "errors": 0, "source_hash": "62a3b60b82106d749160279545ee83c4c3c249d1e7da4121e9d3e0b7b91e3e9f", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,447
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "core/providers/cuda/math/binary_elementwise_ops.h" namespace onnxruntime { namespace contrib { namespace cuda { using namespace ::onnxruntime::cuda; template <typename T, bool is_conj> class Comple...
33.53
17
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n#include "core/providers/cuda/math/binary_elementwise_ops.h"\n\nnamespace onnxruntime {\nnamespace contrib {\nnamespace cuda {\n\nusing namespace ::onnxruntime::cuda;\n\ntemplate <typena...
116
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.53, "nodes": 62, "errors": 0, "source_hash": "a6e427b5fe5a246d01f60f679404724315b60b7bbadd5ac6c6fcae30abe1e6dd", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,448
c
#include <gmock/gmock.h> #include <list> #include <string> #include <vector> #include "src/io_scheduler/io_worker.h" namespace pos { class MockIOWorker : public IOWorker { public: using IOWorker::IOWorker; MOCK_METHOD(void, EnqueueUbio, (UbioSmartPtr), (override)); MOCK_METHOD(uint32_t, RemoveDevice, (Ub...
23.53
15
(translation_unit) "#include <gmock/gmock.h>\n\n#include <list>\n#include <string>\n#include <vector>\n\n#include "src/io_scheduler/io_worker.h"\n\nnamespace pos\n{\nclass MockIOWorker : public IOWorker\n{\npublic:\n using IOWorker::IOWorker;\n MOCK_METHOD(void, EnqueueUbio, (UbioSmartPtr), (override));\n MOCK...
89
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.53, "nodes": 46, "errors": 0, "source_hash": "88671687c242574812252831d9debba9588bfee3be5afc033c7e1009572d98c2", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,449
c
// // PNPieChart.h // PNChartDemo // // Created by <NAME> on 14-5-5. // Copyright (c) 2014年 kevinzhow. All rights reserved. // #import <UIKit/UIKit.h> #import "PNPieChartDataItem.h" #import "PNGenericChart.h" @interface PNPieChart : PNGenericChart - (id)initWithFrame:(CGRect)frame items:(NSArray *)items; @prope...
33.67
30
(ERROR) "//\n// PNPieChart.h\n// PNChartDemo\n//\n// Created by <NAME> on 14-5-5.\n// Copyright (c) 2014年 kevinzhow. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "PNPieChartDataItem.h"\n#import "PNGenericChart.h"\n\n@interface PNPieChart : PNGenericChart\n\n- (id)initWithFrame:(CGRect)frame items:(N...
131
15
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 33.67, "nodes": 76, "errors": 0, "source_hash": "7318314977aa4005e3e824d66f3ffbfa99179cec11adcbda8f589add56573c70", "categorized_nodes": 49}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// PNPieChart.h\n// P...
12,450
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_PUBLIC_CPP_WALLPAPER_CONTROLLER_CLIENT_H_ #define ASH_PUBLIC_CPP_WALLPAPER_CONTROLLER_CLIENT_H_ #include "ash/public/cpp/ash_public_export.h"...
44.32
22
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ASH_PUBLIC_CPP_WALLPAPER_CONTROLLER_CLIENT_H_\n#define ASH_PUBLIC_CPP_WALLPAPER_CONTROLLER_CLIENT_H_\n\n#include "ash/publ...
97
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 44.32, "nodes": 56, "errors": 0, "source_hash": "3539ef5fa823f5ed8e6305e4690b2701228153f3c8631ed1a7db33b5d5187bf2", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,451
c
#ifndef _F2DOT_HPP #define _F2DOT_HPP 1 namespace dotify { enum attr_set { types = (1 << 0), moretypes = (1 << 1) + types, decllinks = (1 << 2), symbols = (1 << 3), builtins = (1 << 4), //~ labels = (1 << 3), simple = 0, balanced = (types | decllinks), full ...
32.4
25
(translation_unit) "#ifndef _F2DOT_HPP\n\n#define _F2DOT_HPP 1\n\nnamespace dotify\n{\n enum attr_set\n {\n types = (1 << 0),\n moretypes = (1 << 1) + types,\n decllinks = (1 << 2),\n symbols = (1 << 3),\n builtins = (1 << 4),\n //~ labels = (1 << 3),\n simple = 0,\n balanced = (...
173
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.4, "nodes": 118, "errors": 0, "source_hash": "47f99de61ed45de51dd03e5235b21b1e8a1f6a86c88fde8f832672a03122efb6", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,452
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject.h" @interface DVTMainViewControllerMonitor : NSObject { } + (void)stopMonitoringMainViewControllerInWindow:(id)arg1; + (void)startMonitoringMainViewControllerInWind...
26.31
13
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSObject.h"\n\n@interface DVTMainViewControllerMonitor : NSObject\n{\n}\n\n+ (void)stopMonitoringMainViewControllerInWindow:(id)arg1;\n+ (void)startM...
63
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.31, "nodes": 36, "errors": 0, "source_hash": "75db04c69538a6a825197a990c4d0e65d3ffdb139d844bf9393327d4d8851dff", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,453
c
#pragma once #include "BulletBase.h" class CYamadaWorld : public CBulletBase { private: static const int m_AttackCount = 10; int m_Attack[m_AttackCount] = { 5,10,15,20,30,50,80,100,120,150 }; float m_GoalRadius; CRectangle m_AreaRect; public: CYamadaWorld(); ~CYamadaWorld(); void Initialize(int playerno, int...
24.33
18
(translation_unit) "#pragma once\n#include "BulletBase.h"\nclass CYamadaWorld : public CBulletBase\n{\nprivate:\n static const int m_AttackCount = 10;\n int m_Attack[m_AttackCount] = { 5,10,15,20,30,50,80,100,120,150 };\n\n float m_GoalRadius;\n CRectangle m_AreaRect;\n\npublic:\n CYamadaWorld();\n ~CYamadaWorld();\n\...
156
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.33, "nodes": 93, "errors": 0, "source_hash": "a7ff96e3c86d349132f64f8cbec9fa32118f52bc3a2977c61bc629b4849db29f", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,454
c
/* This file defines some parameters of the implementation in the parent directory. */ #define KeccakP1600times4_implementation_config "AVX2, 12 rounds unrolled" #define KeccakP1600times4_unrolling 12 #define KeccakP1600times4_useAVX2
38.17
6
(translation_unit) "/*\nThis file defines some parameters of the implementation in the parent directory.\n*/\n\n#define KeccakP1600times4_implementation_config "AVX2, 12 rounds unrolled"\n#define KeccakP1600times4_unrolling 12\n#define KeccakP1600times4_useAVX2\n" (comment) "/*\nThis file defines some parameters of t...
13
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 38.17, "nodes": 11, "errors": 0, "source_hash": "9b7b6e429af6dc07c902ac0f12464123b3b4a0b8cc25812af35f378c58184250", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define Kecc...
12,455
c
#include <pbase/rhc/log.h> #include "visu/object/mesh.h" #include "objectbase.h" #include "mesh_operations.h" #define PRELOG "[Visu::MeshColored] " static const char *vertex_code = "#version 330\n" "layout(location = 0) in vec4 position;" "layout(location = 1) in vec4 color;" "layout(l...
39.34
177
(translation_unit) "#include <pbase/rhc/log.h>\n#include "visu/object/mesh.h"\n#include "objectbase.h"\n#include "mesh_operations.h"\n\n#define PRELOG "[Visu::MeshColored] "\n\nstatic const char *vertex_code =\n "#version 330\n"\n "layout(location = 0) in vec4 position;"\n "layout(location = 1) in ...
1,673
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 39.34, "nodes": 953, "errors": 0, "source_hash": "a19a73c02dd8be6f4bacac59b0ddf0da17277e91893b216a5700bd8aaa4e66f9", "categorized_nodes": 749}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,456
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
35.71
192
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apach...
567
33
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 35.71, "nodes": 344, "errors": 0, "source_hash": "9f46901cbad88c61109c33da58d0954601048f1f2bc3dff03b3d847b44f751a7", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,457
c
#ifndef GLOBALS_H #define GLOBALS_H #define MODE_RECEIVING 0 #define MODE_SENDING 1 #define MODE_RELAY 2 #endif
19.17
6
(translation_unit) "#ifndef GLOBALS_H\n#define GLOBALS_H\n\n#define MODE_RECEIVING 0\n#define MODE_SENDING 1\n#define MODE_RELAY 2\n\n#endif\n\n" (preproc_ifdef) "#ifndef GLOBALS_H\n#define GLOBALS_H\n\n#define MODE_RECEIVING 0\n#define MODE_SENDING 1\n#define MODE_RELAY 2\n\n#endif" (#ifndef) "...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 19.17, "nodes": 19, "errors": 0, "source_hash": "1c4b9448c29e774030098cad40d335a1f42c6071259dac9707ab56af3908e1dd", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GL...
12,458
c
#pragma once #include "Engine/GameEngine.h" class GameStartScene : public Scene { public: //Creates Start Scene. GameStartScene(); }; typedef std::shared_ptr<GameStartScene> GameStartScenePtr;
20.67
9
(translation_unit) "#pragma once\n\n#include "Engine/GameEngine.h"\n\nclass GameStartScene : public Scene\n{\npublic:\n //Creates Start Scene.\n GameStartScene();\n};\n\ntypedef std::shared_ptr<GameStartScene> GameStartScenePtr;\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) ...
45
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.67, "nodes": 23, "errors": 0, "source_hash": "687858fea3e6866d8804b49ea14e45373ca68e85c43a58bcea0b025ebcce7d09", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,459
c
// Apache License. Version 2.0, January 2004 // // Copyright (c) 2016-2020 Trusona Inc (https://trusona.com) All Rights Reserved // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
36.69
54
(translation_unit) "// Apache License. Version 2.0, January 2004\n//\n// Copyright (c) 2016-2020 Trusona Inc (https://trusona.com) All Rights Reserved\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of...
561
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 36.69, "nodes": 339, "errors": 0, "source_hash": "92864931402932822077ead259ba19f6ea856ca0473e3d7f86f3e465c2a210ed", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,460
c
// Copyright (c) 2017-2020 The Khronos Group Inc // // SPDX-License-Identifier: Apache-2.0 #pragma once #include <string> #include <locale> #include <algorithm> #include <stdarg.h> #include <stddef.h> // Macro to generate stringify functions for OpenXR enumerations based data provided in openxr_reflection.h // clang...
42.31
74
(translation_unit) "// Copyright (c) 2017-2020 The Khronos Group Inc\n//\n// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include <string>\n#include <locale>\n#include <algorithm>\n#include <stdarg.h>\n#include <stddef.h>\n\n// Macro to generate stringify functions for OpenXR enumerations based data provided...
938
42
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 42.31, "nodes": 538, "errors": 0, "source_hash": "ce93653678d74901758327c3343f331af545666c31049a86a74815bfc5b4d02b", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,461
c
/******************************************************************** * BenchIT - Performance Measurement for Scientific Applications * Contact: <EMAIL> * * $Id: simple.h 1 2009-09-11 12:26:19Z william $ * $URL: svn+ssh://<EMAIL>/svn-base/benchit-root/BenchITv6/kernel/sort/bubblesort/C/0/0/float/simple.h $ * For ...
29.14
42
(translation_unit) "/********************************************************************\n * BenchIT - Performance Measurement for Scientific Applications\n * Contact: <EMAIL>\n *\n * $Id: simple.h 1 2009-09-11 12:26:19Z william $\n * $URL: svn+ssh://<EMAIL>/svn-base/benchit-root/BenchITv6/kernel/sort/bubblesort/C/0/0...
157
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 29.14, "nodes": 120, "errors": 0, "source_hash": "7e9227057a4f193a90887d5c70accd8fd72fe3a68c9bf1b673de8a837738b2e8", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,462
c
#ifndef JOS_INC_SETJMP_H #define JOS_INC_SETJMP_H #include <arch/i386/setjmp.h> int jos_setjmp(volatile struct jos_jmp_buf *buf); void jos_longjmp(volatile struct jos_jmp_buf *buf, int val) __attribute__((__noreturn__, JOS_LONGJMP_GCCATTR)); #endif
34.86
7
(translation_unit) "#ifndef JOS_INC_SETJMP_H\n#define JOS_INC_SETJMP_H\n\n#include <arch/i386/setjmp.h>\n\nint jos_setjmp(volatile struct jos_jmp_buf *buf);\nvoid jos_longjmp(volatile struct jos_jmp_buf *buf, int val)\n __attribute__((__noreturn__, JOS_LONGJMP_GCCATTR));\n\n#endif\n" (preproc_ifdef) "#ifndef JOS_INC...
59
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.86, "nodes": 46, "errors": 0, "source_hash": "c9829d0bc63a07a958d2d72dc6ade0bd481a5b1f2a58908a716c235b77cf667a", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef J...
12,463
c
# ifndef ALIGNED_BUFFER_H # define ALIGNED_BUFFER_H _STLP_BEGIN_NAMESPACE // this is for fake initialization template<class T> union _Stl_aligned_buffer { char buf[sizeof(T)]; struct { double a; double b; } padding; }; _STLP_END_NAMESPACE # endif
21.91
11
(translation_unit) "# ifndef ALIGNED_BUFFER_H\n# define ALIGNED_BUFFER_H\n\n_STLP_BEGIN_NAMESPACE\n// this is for fake initialization\ntemplate<class T>\nunion _Stl_aligned_buffer {\n char buf[sizeof(T)];\n struct { double a; double b; } padding;\n};\n_STLP_END_NAMESPACE\n\n# endif\n" (preproc_ifdef) "# ifndef ALI...
55
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.91, "nodes": 34, "errors": 0, "source_hash": "4ee23f39c5d595b6c77a4dec55936d7a904c26e1ac452505eeb2c3b324341f65", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "# ifndef...
12,464
c
/*- * Copyright (c) 2015 Nuxi, https://nuxi.nl/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the f...
34.62
164
(translation_unit) "/*-\n * Copyright (c) 2015 Nuxi, https://nuxi.nl/\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this l...
1,179
2
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 34.62, "nodes": 705, "errors": 0, "source_hash": "7a8078982277d99f32067b270a8a4198ede75d9fb24ccf8d12d5806c62c964a1", "categorized_nodes": 526}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,465
c
#include <stdlib.h> #include <string.h> #include "hashmap.h" internal ulong _hashmap_crc32s[256]; internal ulong _hashmap_crc32(const byte *data, size_t length) { const ubyte *udata = (ubyte *)data; ulong crc = 0; size_t i; for (i = 0; i < length; i++) crc = _hashmap_crc32s[(crc ^ udata[i]) & 0xff] ^ (crc >> ...
36.86
191
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n\n#include "hashmap.h"\n\ninternal ulong _hashmap_crc32s[256];\n\ninternal ulong\n_hashmap_crc32(const byte *data, size_t length)\n{\n const ubyte *udata = (ubyte *)data;\n ulong crc = 0;\n size_t i;\n\n for (i = 0; i < length; i++)\n crc = _hashmap_crc32s[...
2,006
5
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 36.86, "nodes": 1214, "errors": 0, "source_hash": "48c20aefe784443d68ed5c61073e7100f4abddc39195e877c1c2eeb7d1c2576c", "categorized_nodes": 991}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,466
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "GO2OServiceObject.h" @class NSString; @interface GO2OSearchTipRequest : GO2OServiceObject { NSString *_cityCode; double _l...
36.64
22
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "GO2OServiceObject.h"\n\n@class NSString;\n\n@interface GO2OSearchTipRequest : GO2OServiceObject\n{\n NS...
154
20
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.64, "nodes": 99, "errors": 0, "source_hash": "da6ae6f9a30f01cb702745b62851253142f3175dd31f99aa65d9c95fe41b5787", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,467
c
// // UIFont+SPUFont.h // ShinobiPlayUtils // // Created by <NAME> on 06/01/2015. // // Copyright 2014 <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.apac...
34.22
27
(translation_unit) "//\n// UIFont+SPUFont.h\n// ShinobiPlayUtils\n//\n// Created by <NAME> on 06/01/2015.\n//\n// Copyright 2014 <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 Lic...
110
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.22, "nodes": 56, "errors": 0, "source_hash": "5e65cac6f2c5a427a65816cb8ea261647f7d51e726b58bd1d82747386a138818", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,468
c
// // Caccount.h // #ifndef _INC_CACCOUNT_H #define _INC_CACCOUNT_H #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CClient; class CAccount : public CMemDynamic, public CScriptObj, public CThreadLockableObj { // RES_ACCOUNT static LPCTSTR const sm_szVerbKeys[]; static LPCTSTR const sm_szLoadKey...
35.45
195
(translation_unit) "//\n// Caccount.h\n//\n\n#ifndef _INC_CACCOUNT_H\n#define _INC_CACCOUNT_H\n#if _MSC_VER >= 1000\n#pragma once\n#endif // _MSC_VER >= 1000\n\nclass CClient;\n\nclass CAccount : public CMemDynamic, public CScriptObj, public CThreadLockableObj\n{\n // RES_ACCOUNT\n static LPCTSTR const sm_szVerbKeys[];...
1,376
31
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 35.45, "nodes": 865, "errors": 0, "source_hash": "662d753621871e161d5050868c22e4200b3a147404d2e83c41323b863f977f0e", "categorized_nodes": 586}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,469
c
/** * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.com) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.com/LICENSE.txt * * * \file IElementWiseTransientLinearEQSLocalAssembler.h * * Created on 20...
30.25
44
(translation_unit) "/**\n * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.com)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.com/LICENSE.txt\n *\n *\n * \file IElementWiseTransientLinearEQSLocalAsse...
149
9
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 30.25, "nodes": 69, "errors": 0, "source_hash": "8c96e79b46272463367215e6746e181894c41099867cba0538c0205975b91531", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,470
c
/* { dg-do run } */ /* { dg-options "-fno-builtin-memset" } */ /* { dg-shouldfail "asan" } */ extern #ifdef __cplusplus "C" #endif void *memset (void *, int, __SIZE_TYPE__); volatile int ten = 10; int main() { static char XXX[10]; static char YYY[10]; static char ZZZ[10]; memset(XXX, 0, 10); memset(YYY, 0,...
33.29
24
(translation_unit) "/* { dg-do run } */\n/* { dg-options "-fno-builtin-memset" } */\n/* { dg-shouldfail "asan" } */\n\nextern\n#ifdef __cplusplus\n"C"\n#endif\nvoid *memset (void *, int, __SIZE_TYPE__);\n\nvolatile int ten = 10;\n\nint main() {\n static char XXX[10];\n static char YYY[10];\n static char ZZZ[10];\n ...
163
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.29, "nodes": 96, "errors": 0, "source_hash": "652a970b03d520cff4ad87a6b9ebee52cc54d281179b8d86169564742a1ce31b", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "extern", "parent...
12,471
c
/* * Responder.h * * Created on: 26 juil. 2014 * Author: FrancisANDRE */ #ifndef ALS_TSAP_USER_RESPONDER_H_ #define ALS_TSAP_USER_RESPONDER_H_ #include "als/base/user/Indication.h" using ALS::BASE::USER::Indication; #include "als/nsap/addr/TSAPAddr.h" #include "als/nsap/QualityOfService.h" using ALS::NSAP...
27.38
52
(translation_unit) "/*\n * Responder.h\n *\n * Created on: 26 juil. 2014\n * Author: FrancisANDRE\n */\n\n#ifndef ALS_TSAP_USER_RESPONDER_H_\n#define ALS_TSAP_USER_RESPONDER_H_\n\n#include "als/base/user/Indication.h"\nusing ALS::BASE::USER::Indication;\n\n#include "als/nsap/addr/TSAPAddr.h"\n#include "als/nsap/Q...
289
20
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.38, "nodes": 151, "errors": 0, "source_hash": "daec941a19874bdf0c726cd28eac6d2f180e9b04d6b4b8ec4e8799c63dc34fe3", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,472
c
/* WeatherStation.h Created by <NAME>, August 1, 2017. */ #ifndef WeatherStation_h #define WeatherStation_h #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> class WeatherStation { private: const String Version = "1.1.0"; int anemometer_count = 0; void anemometer_pulse(voi...
23.6
30
(translation_unit) "/*\n WeatherStation.h\n Created by <NAME>, August 1, 2017.\n*/\n#ifndef WeatherStation_h\n\n #define WeatherStation_h\n\n #include <Adafruit_Sensor.h>\n #include <Adafruit_BME280.h>\n\n class WeatherStation\n {\n private:\n const String Version = "1.1.0";\n int anemometer_count =...
186
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.6, "nodes": 124, "errors": 0, "source_hash": "660e25ea78635149d27e01ada6ee465737ac8fe168ab0180aaaab931f22cbe6e", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,473
c
// Generated by Haxe 4.0.0-preview.5 #ifndef INCLUDED_nape_constraint_Constraint #define INCLUDED_nape_constraint_Constraint #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS2(nape,callbacks,CbTypeList) HX_DECLARE_CLASS2(nape,constraint,Constraint) HX_DECLARE_CLASS2(nape,geom,MatMN) HX_DECLARE_CLASS2(nape,ge...
36.23
120
(translation_unit) "// Generated by Haxe 4.0.0-preview.5\n#ifndef INCLUDED_nape_constraint_Constraint\n#define INCLUDED_nape_constraint_Constraint\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS2(nape,callbacks,CbTypeList)\nHX_DECLARE_CLASS2(nape,constraint,Constraint)\nHX_DECLARE_CLASS2(nape,geom,Ma...
1,466
99
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 36.23, "nodes": 775, "errors": 0, "source_hash": "e3295031df6a809cd6f1eddf04d4d59803eaf931f3ec53b6ed12a63ba60db145", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,474
c
// // PlaceholderViewController0.h // iPodcast // // Created by ParkourH on 16/10/18. // Copyright © 2016年 ParkourH. All rights reserved. // #import <UIKit/UIKit.h> @interface PlaceholderViewController0 : UIViewController @end
22.1
10
(translation_unit) "//\n// PlaceholderViewController0.h\n// iPodcast\n//\n// Created by ParkourH on 16/10/18.\n// Copyright © 2016年 ParkourH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PlaceholderViewController0 : UIViewController\n\n@end\n" (comment) "//" (comment) "// PlaceholderViewCo...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.1, "nodes": 10, "errors": 0, "source_hash": "5521e4417836ee73eb794655f5bbeced45b24878cc25e57d15c997a8ca1c3792", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
12,475
c
#ifndef COMPASS_BIN_DATA_FLOW_PREREQUISITE_H #define COMPASS_BIN_DATA_FLOW_PREREQUISITE_H #include "AuxiliaryInfoPrerequisite.h" class BinDataFlowPrerequisite: public Prerequisite { RoseBin_DataFlowAnalysis* dfanalysis; RoseBin_Graph* graph; public: BinDataFlowPrerequisite(): Prerequisite("BinDataFlow")...
38.16
45
(translation_unit) "#ifndef COMPASS_BIN_DATA_FLOW_PREREQUISITE_H\n#define COMPASS_BIN_DATA_FLOW_PREREQUISITE_H\n\n#include "AuxiliaryInfoPrerequisite.h"\n\n class BinDataFlowPrerequisite: public Prerequisite {\n RoseBin_DataFlowAnalysis* dfanalysis;\n RoseBin_Graph* graph;\n public:\n BinDataFlowPrerequisite()...
434
13
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 38.16, "nodes": 265, "errors": 0, "source_hash": "e9ebf8c838cd20279d597c2496dd59bc64cd46ee9c07a334aaba86b52d78530a", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,476
c
#ifndef CQILLUSTARTOR_SHAPE_DRAWER_H #define CQILLUSTARTOR_SHAPE_DRAWER_H #include <QFont> #include <QTransform> #include <QImage> #include <CBBox2D.h> #include <CMatrix2D.h> #include <CFont.h> #include <CImageLib.h> #include <CFillType.h> class QPainter; class CQIllustrator; class CQIllustratorShape; class CQIllust...
37.04
80
(translation_unit) "#ifndef CQILLUSTARTOR_SHAPE_DRAWER_H\n#define CQILLUSTARTOR_SHAPE_DRAWER_H\n\n#include <QFont>\n#include <QTransform>\n#include <QImage>\n#include <CBBox2D.h>\n#include <CMatrix2D.h>\n#include <CFont.h>\n#include <CImageLib.h>\n#include <CFillType.h>\n\nclass QPainter;\n\nclass CQIllustrator;\nclass...
728
35
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 37.04, "nodes": 416, "errors": 0, "source_hash": "c6bd32771b21a002ed22f8b228969b53dfb44acc828fcd1503e5c954b38a15fe", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CQILLU...
12,477
c
// // Created by <NAME> on 6/1/21. // /* Prints a bad pun */ #include <stdio.h> void print_pun(void) { printf("To C, or not to C: that is the question.\n"); } int main(void) { print_pun(); return 0; }
16.75
12
(translation_unit) "//\n// Created by <NAME> on 6/1/21.\n//\n\n/* Prints a bad pun */\n\n#include <stdio.h>\n\nvoid print_pun(void) {\n printf("To C, or not to C: that is the question.\n");\n}\n\nint main(void) {\n print_pun();\n return 0;\n}" (comment) "//" (comment) "// Created by <NAME> on 6/1/21." (c...
55
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.75, "nodes": 27, "errors": 0, "source_hash": "73846dca086403c829b681d070809dd9ae59b5dc570ea31a90018e39d8e8f7f0", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,478
c
#include "interpreter.h" #include <stdio.h> void init_interpreter(int mode){ printf("Interpeter\n"); }
20.4
5
(translation_unit) "#include "interpreter.h"\n#include <stdio.h>\n\nvoid init_interpreter(int mode){\n printf("Interpeter\n");\n}" (preproc_include) "#include "interpreter.h"\n" (#include) "#include" (string_literal) ""interpreter.h"" (") """ (string_content) "interpreter.h" (") """ (pr...
35
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.4, "nodes": 19, "errors": 0, "source_hash": "3420b7c9d15876aa587a5ea20ae8e81ae8c16c8923a1c21da7d0d9de95b1f256", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,479
c
// // MainTabBar.h // kaiyan // // Created by <NAME> on 15/9/4. // Copyright (c) 2015年 BirdMIchael. All rights reserved. // #define TabBarH (35) #import <UIKit/UIKit.h> @protocol MainTabBarDelegate <NSObject> @optional - (void)mainTabBar:(UIView *)tabar didSelectBtnfrom:(NSInteger)from to:(NSInteger)to; @end @in...
25.94
17
(translation_unit) "//\n// MainTabBar.h\n// kaiyan\n//\n// Created by <NAME> on 15/9/4.\n// Copyright (c) 2015年 BirdMIchael. All rights reserved.\n//\n#define TabBarH (35)\n\n#import <UIKit/UIKit.h>\n@protocol MainTabBarDelegate <NSObject>\n\n@optional\n- (void)mainTabBar:(UIView *)tabar didSelectBtnfrom:(NSInteger...
114
17
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.94, "nodes": 77, "errors": 0, "source_hash": "5527cfba0d0f36a939cdd8c950729e15e95c596f27d096348f5314dd708445f1", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "efine TabB...
12,480
c
/* * TODO: use a mailbox to pass data to the emit_spi function to please JD */ #include <stdio.h> #include <assert.h> #include "mtltouch.h" #include "system.h" #include "includes.h" #include "utils.h" #define X_THRESHOLD 400 #define MTL_TOUCH_X1 (((int *) MTL_TOUCH_BASE) + 0) #define MTL_TOUCH_Y1 (((int *) MTL_T...
34.88
110
(translation_unit) "/*\n * TODO: use a mailbox to pass data to the emit_spi function to please JD\n */\n\n#include <stdio.h>\n#include <assert.h>\n#include "mtltouch.h"\n#include "system.h"\n#include "includes.h"\n\n#include "utils.h"\n\n#define X_THRESHOLD 400\n\n#define MTL_TOUCH_X1 (((int *) MTL_TOUCH_BASE) + 0)\n#...
945
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 34.88, "nodes": 602, "errors": 0, "source_hash": "07f40bf84d35ff4e718bc3f8ef48aca2896db8948e75feacabfc8e2a75cdc0bd", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,481
c
#include <string.h> extern int yydebug; int yyparse(void); int main(int argc, char const *argv[]) { for (int i = 1; i < argc; i++) if (!strcmp(argv[i], "-p")) yydebug = 1; return yyparse(); }
21.89
9
(translation_unit) "#include <string.h>\n\nextern int yydebug;\nint yyparse(void);\n\nint main(int argc, char const *argv[]) {\n for (int i = 1; i < argc; i++)\n if (!strcmp(argv[i], "-p"))\n yydebug = 1;\n\n return yyparse();\n}\n" (preproc_include) "#include <string.h>\n" (#include) "#include" (sy...
99
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.89, "nodes": 62, "errors": 0, "source_hash": "1ca52955a728b5d9800d8b99aa17559fc26683b880ab27501d998fbe81d2fa5f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,482
c
#pragma once #include "bitops/mum.h" #include <cstdint> inline size_t robin_hood_hash_int(uint64_t obj) noexcept { static constexpr uint64_t k = UINT64_C(0xde5fb9d2630458e9); return muma(obj, k); } inline size_t robin_hood_hash_int_4_0_0(uint64_t x) noexcept { auto h1 = x * UINT64_C(0xA24BAED4963EE407);...
33.31
13
(translation_unit) "#pragma once\n\n#include "bitops/mum.h"\n\n#include <cstdint>\n\ninline size_t robin_hood_hash_int(uint64_t obj) noexcept {\n static constexpr uint64_t k = UINT64_C(0xde5fb9d2630458e9);\n return muma(obj, k);\n}\n\ninline size_t robin_hood_hash_int_4_0_0(uint64_t x) noexcept {\n auto h1 = x...
145
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.31, "nodes": 104, "errors": 0, "source_hash": "0790ec6abe8885d3886b1ecdc0e3f851e9d8a13c31b4ddf53d70731bb291f2bc", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,483
c
#ifndef USE_RAPIDJSON_H__ #define USE_RAPIDJSON_H__ #include <string> #include <iostream> #include "rapidjson/document.h" namespace jsonkit { bool read_string(rapidjson::Document& doc, const char* psz, size_t len); bool read_string(rapidjson::Document& doc, const std::string& str); bool read_stream(rapidjson::...
34.07
14
(translation_unit) "#ifndef USE_RAPIDJSON_H__\n#define USE_RAPIDJSON_H__\n\n#include <string>\n#include <iostream>\n\n#include "rapidjson/document.h"\n\nnamespace jsonkit\n{\n \nbool read_string(rapidjson::Document& doc, const char* psz, size_t len);\nbool read_string(rapidjson::Document& doc, const std::string& str...
135
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.07, "nodes": 82, "errors": 0, "source_hash": "4000af7713216c1d71c1874b105a67e814474c0f0e1349b38dbe3675ef41bec3", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,484
c
#pragma once #include "motis/routing/label/criteria/transfers.h" #include "motis/routing/label/criteria/travel_time.h" namespace motis::routing { constexpr auto TRANSFER_COST = 20; constexpr auto MAX_WEIGHTED = MAX_TRAVEL_TIME + TRANSFER_COST * MAX_TRANSFERS; struct weighted { duration weighted_, weighted_lb_; };...
32.59
68
(translation_unit) "#pragma once\n\n#include "motis/routing/label/criteria/transfers.h"\n#include "motis/routing/label/criteria/travel_time.h"\n\nnamespace motis::routing {\n\nconstexpr auto TRANSFER_COST = 20;\nconstexpr auto MAX_WEIGHTED = MAX_TRAVEL_TIME + TRANSFER_COST * MAX_TRANSFERS;\n\nstruct weighted {\n durat...
722
46
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 32.59, "nodes": 436, "errors": 0, "source_hash": "4f30dfa3cc4ca8bf74352d1a03dd270a9a1279f77352012c9624a333d4ef86ff", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,485
c
/* * ap.c * * Created on: 2018. 5. 12. * Author: Baram */ #include "ap.h" uint32_t flash_addr = 0x8008000; uint32_t flash_size = 96 * 1024; bool runEraseFlash(void); bool runShowFlash(void); bool runVerifyEmpty(void); bool runTestWrite(void); void apInit(void) { uartOpen(_DEF_UART1, 115200); } ...
16.67
135
(translation_unit) "/*\n * ap.c\n *\n * Created on: 2018. 5. 12.\n * Author: Baram\n */\n\n\n#include "ap.h"\n\n\n\n\nuint32_t flash_addr = 0x8008000;\nuint32_t flash_size = 96 * 1024;\n\n\n\nbool runEraseFlash(void);\nbool runShowFlash(void);\nbool runVerifyEmpty(void);\nbool runTestWrite(void);\n\n\n\nvoid apIn...
846
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 16.67, "nodes": 471, "errors": 0, "source_hash": "c5b92f3448778cca2e82acaac896da363b7976bf0e90b0a2e815dcd6e0c60dd5", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,486
c
/* * ADC USING POLLING.c * * Created: 07-May-18 12:36:03 PM * Author : QAZ */ #include <avr/io.h> int main(void) { DDRB = 0xFF; DDRD = 0xFF; DDRA = 0x00; PORTA = 0xFF; ADCSRA = 0x80; ADMUX = 0x40; while (1) { ADCSRA |= (1<<ADSC); while((ADCSRA &(1<<ADIF))==0); ...
12.62
29
(translation_unit) "/* \n * ADC USING POLLING.c \n * \n * Created: 07-May-18 12:36:03 PM \n * Author : QAZ \n */ \n \n#include <avr/io.h> \n \n \nint main(void) \n{ \n DDRB = 0xFF; \n DDRD = 0xFF; \n DDRA = 0x00; \n PORTA = 0xFF; \n ADCSRA = 0x80; \n ADMUX = 0x40; \n \n while (1) \n { \n ADCSRA |= (1<<ADSC...
121
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 12.62, "nodes": 74, "errors": 0, "source_hash": "76ad2d437edb2d9e2a14b75d03c8d1335279bdfed6ee05b3a50237498bf3aded", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,487
c
#pragma once #include <lrcpp/Components.h> #include <stdint.h> class Perf : public lrcpp::Perf { public: bool init(); void destroy(); static uint64_t getTimeUs(); static uint64_t getTimeNs(); // lrcpp::Perf virtual retro_time_t getTimeUsec() override; virtual uint64_t getCpuFeatures() o...
32.44
18
(translation_unit) "#pragma once\n\n#include <lrcpp/Components.h>\n\n#include <stdint.h>\n\nclass Perf : public lrcpp::Perf {\npublic:\n bool init();\n void destroy();\n\n static uint64_t getTimeUs();\n static uint64_t getTimeNs();\n\n // lrcpp::Perf\n virtual retro_time_t getTimeUsec() override;\n ...
152
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.44, "nodes": 99, "errors": 0, "source_hash": "82ae5e8e3c5130c8b5a414930ebd2acba7010c98c7aa9031da63348a7fbc9ab7", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,488
c
/* Automatically generated header (sfdc 1.4)! Do not edit! */ #ifndef PROTO_BITMAP_H #define PROTO_BITMAP_H #include <clib/bitmap_protos.h> #ifndef _NO_INLINE # if defined(__GNUC__) # ifdef __AROS__ # include <defines/bitmap.h> # else # include <inline/bitmap.h> # endif # else # include <pragmas/bitmap_pragm...
24.45
29
(translation_unit) "/* Automatically generated header (sfdc 1.4)! Do not edit! */\n\n#ifndef PROTO_BITMAP_H\n#define PROTO_BITMAP_H\n\n#include <clib/bitmap_protos.h>\n\n#ifndef _NO_INLINE\n# if defined(__GNUC__)\n# ifdef __AROS__\n# include <defines/bitmap.h>\n# else\n# include <inline/bitmap.h>\n# endif\n# els...
89
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.45, "nodes": 75, "errors": 0, "source_hash": "bad7435b2b287beb05da752b1076b5a664bb991be6cb68260d01987a0c174288", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,489
c
// // Copyright (c) 2014 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>. All rights reserved. // #import <UIAutomation/UIAElementNil.h> #import <UIAutomation/UIAElementArray.h> @interface UIAElementNil (Fixes) - (UIAElementArray*)elementsArray; - (BOOL)isVisibleBool; - (BOOL)isEnabledBool; - (id)objectAtIndexedSubscript:(NSU...
29.27
11
(translation_unit) "//\n// Copyright (c) 2014 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>. All rights reserved.\n//\n\n#import <UIAutomation/UIAElementNil.h>\n#import <UIAutomation/UIAElementArray.h>\n\n@interface UIAElementNil (Fixes)\n\n- (UIAElementArray*)elementsArray;\n\n- (BOOL)isVisibleBool;\n- (BOOL)isEnabledBool;\n\n-...
72
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.27, "nodes": 44, "errors": 0, "source_hash": "627d7890e08e71de2da4810844b1e8e3de3047317738335846beb0d2adaafbe1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,490
c
#include <stdio.h> #include <getopt.h> #include <libubox/uloop.h> #include <libubox/usock.h> #include "log.h" #include "uci_.h" #include "ubus.h" static void print_usage(const char *exe) { fprintf(stderr, "Usage : %s [<options>]\n" "Options:\n" " -s <socket-path> usbus socket to connect...
26.75
61
(translation_unit) "#include <stdio.h>\n#include <getopt.h>\n\n#include <libubox/uloop.h>\n#include <libubox/usock.h>\n\n#include "log.h"\n#include "uci_.h"\n#include "ubus.h"\n\nstatic\nvoid print_usage(const char *exe) {\n fprintf(stderr, "Usage : %s [<options>]\n"\n "Options:\n"\n " -s <so...
402
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 26.75, "nodes": 238, "errors": 0, "source_hash": "0d7581b7edf8c5e351dad8f0e8192bd722de78ab54d06c22bd6c9dcbb9037f33", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,491
c
// // Copyright (c) 2008-present, Meitu, Inc. // All rights reserved. // // This source code is licensed under the license found in the LICENSE file in // the root directory of this source tree. // // Created on: 2017/9/1 // Created by: 潘名扬 // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class MTHNetworkTaskAdv...
26.33
18
(translation_unit) "//\n// Copyright (c) 2008-present, Meitu, Inc.\n// All rights reserved.\n//\n// This source code is licensed under the license found in the LICENSE file in\n// the root directory of this source tree.\n//\n// Created on: 2017/9/1\n// Created by: 潘名扬\n//\n\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNU...
47
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.33, "nodes": 30, "errors": 0, "source_hash": "8cf519c65ae61e7e6a0597464f055c2bb09fd3c5871d68f0f9d9397aead05167", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
12,492
c
#pragma once #include "NamelessCore.hpp" #include "NLphysxCollider.h" namespace _NL { namespace Component { class NLphysxRigidBody { public: NLphysxRigidBody(); ~NLphysxRigidBody(); _NL::Element::NLphysxCollider* Collider; }; } }
15.87
15
(translation_unit) "#pragma once\n#include "NamelessCore.hpp"\n#include "NLphysxCollider.h"\n\nnamespace _NL {\n namespace Component {\n class NLphysxRigidBody\n {\n public:\n NLphysxRigidBody();\n ~NLphysxRigidBody();\n \n _NL::Element::NLphysxCollider* Collider;\n };\n\n }\n}\n\n" (preproc_call) "#pragm...
71
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 15.87, "nodes": 35, "errors": 0, "source_hash": "52322144bfa7b89128838f13d15cc54b40fd89eeee9096b823ab307443267e2a", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,493
c
#ifndef XWATER_H__ #define XWATER_H__ enum { WATERSHADER_SCALEX = 1000, // REAL WATERSHADER_SCALEY = 1001, // REAL WATERSHADER_FREQUENCY = 1002, // REAL WATERSHADER_WIND = 1003, // REAL WATERSHADER_COLOR = 1006 // GRADIENT }; #endif // XWATER_H__
23
11
(translation_unit) "#ifndef XWATER_H__\n#define XWATER_H__\n\nenum\n{\n WATERSHADER_SCALEX = 1000, // REAL\n WATERSHADER_SCALEY = 1001, // REAL\n WATERSHADER_FREQUENCY = 1002, // REAL\n WATERSHADER_WIND = 1003, // REAL\n WATERSHADER_COLOR = 1006 // GRADIENT\n};\n\n#endif // XWATER_H__\n" (preproc_ifdef) "...
44
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.0, "nodes": 30, "errors": 0, "source_hash": "3cf6f0bf6cf019979864cee7c6514036199a0ab62588628e3a981d9c455a05d1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef X...
12,494
c
typedef union { unsigned int raw; struct { unsigned int mini_uart : 1; unsigned int spi1 : 1; unsigned int spi2 : 1; unsigned int reserved : 29; } bits; } aux_reg; typedef union { unsigned int raw; struct { unsigned int data : 8; unsigned int reserved : 24; } bits; } aux_mu_io_reg; typedef union ...
27.81
202
(translation_unit) "typedef union {\n unsigned int raw;\n \n struct {\n unsigned int mini_uart : 1;\n unsigned int spi1 : 1;\n unsigned int spi2 : 1;\n unsigned int reserved : 29;\n } bits;\n} aux_reg;\n\ntypedef union {\n unsigned int raw;\n\n struct {\n unsigned int data : 8;\n unsigned int reserved : 24;\n } b...
1,366
0
{"language": "c", "success": true, "metadata": {"lines": 202, "avg_line_length": 27.81, "nodes": 969, "errors": 0, "source_hash": "fac6ec1acabfabc9a3f411b3276edc01d8a07656bc5cc3b96d17a28323c5f27c", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typ...
12,495
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "TETabBar.h" #import "TETabBarDelegate.h" #import "TETabBarButton.h" #import "TETabBarController.h" #import "TETabBar...
25.84
19
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "TETabBar.h"\n#import "TETabBarDelegate.h"\n#import "TETabBarButton.h"\n#import "TETa...
70
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.84, "nodes": 60, "errors": 0, "source_hash": "ef1cdfbf6549e13016639383b28ad10f139d8bd8ad29af6fb954a5afc8dd1c9a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
12,496
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:54:54 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
25.72
29
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:54:54 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport\n* classdump-dyld is licensed under GPLv...
200
11
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.72, "nodes": 108, "errors": 0, "source_hash": "da94b360a17541d309d6708d7c40709300eb35843bfec1108b6849ccb29f5db3", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": n...
12,497
c
#ifndef PROJECT_HEADER_component1078_128_H #define PROJECT_HEADER_component1078_128_H int component1078_128(); #endif // PROJECT_HEADER_component1078_128_H
30.4
5
(translation_unit) "#ifndef PROJECT_HEADER_component1078_128_H\n#define PROJECT_HEADER_component1078_128_H\n\n\n\nint component1078_128();\n\n#endif // PROJECT_HEADER_component1078_128_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component1078_128_H\n#define PROJECT_HEADER_component1078_128_H\n\n\n\nint component1078_1...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.4, "nodes": 12, "errors": 0, "source_hash": "fd4ecc89fc024ad8ee5d619ad2ea42a642b0739fcc085dc7a56330bc4800d9a2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
12,498
c
#include "CharRow.h" #include <stdlib.h> #include "CharsTable.h" void CrInit(CharRow *vector) { vector->VecBase = VecInit(&vector->Data, sizeof(char)); VecAppend(&vector->VecBase, ""); } void CrAppend(CharRow* vector, const char* value, const uint valueLen) { VecRepOrInsRangeAt(&vector->VecBase, vector->VecBase.Si...
24.91
22
(translation_unit) "#include "CharRow.h"\n#include <stdlib.h>\n#include "CharsTable.h"\n\nvoid CrInit(CharRow *vector)\n{\n vector->VecBase = VecInit(&vector->Data, sizeof(char));\n VecAppend(&vector->VecBase, "");\n}\n\nvoid CrAppend(CharRow* vector, const char* value, const uint valueLen)\n{\n VecRepOrInsRangeAt(&vec...
234
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.91, "nodes": 138, "errors": 0, "source_hash": "5761c50134356fb33b46a9f01cdcf8122ea62b0d4e506691e2cb6ad1714d470b", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,499