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
/* TEST_OUTPUT: --- fail_compilation/testTypeof.c(8): Error: `typeof` operator expects an expression or type name in parentheses fail_compilation/testTypeof.c(8): Error: identifier or `(` expected --- */ typeof(1;2) x;
30.29
7
(translation_unit) "/* TEST_OUTPUT:\n---\nfail_compilation/testTypeof.c(8): Error: `typeof` operator expects an expression or type name in parentheses\nfail_compilation/testTypeof.c(8): Error: identifier or `(` expected\n---\n*/\n\ntypeof(1;2) x;\n" (comment) "/* TEST_OUTPUT:\n---\nfail_compilation/testTypeof.c(8): E...
15
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 30.29, "nodes": 7, "errors": 0, "source_hash": "6355bfdd1a40a87f24e114a3dfee6344bd2bbe76fe4aff929df7b383fd1406b2", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "typeof(1;...
12,200
c
/* The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-) Copyright (C) 2001,2002,2003 <NAME> <EMAIL> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either ...
28.08
310
(translation_unit) "/*\n The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)\n Copyright (C) 2001,2002,2003 <NAME> <EMAIL>\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Sof...
2,528
0
{"language": "c", "success": true, "metadata": {"lines": 310, "avg_line_length": 28.08, "nodes": 1463, "errors": 0, "source_hash": "b5c66e6d9ef2da87b2df5210e847e73cbb2a94248d38341ba3b60e8dad4577b4", "categorized_nodes": 1026}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,201
c
#import <Preferences/PSListController.h> #import <Preferences/PSTableCell.h> #import <Preferences/PSSpecifier.h> @interface IMPRootListController : PSListController @end @interface ImperiumApplicationsListController : PSListController @end @interface ImperiumHideItemsListController : PSListController @end @interfac...
34.54
13
(translation_unit) "#import <Preferences/PSListController.h>\n#import <Preferences/PSTableCell.h>\n#import <Preferences/PSSpecifier.h>\n\n@interface IMPRootListController : PSListController\n@end\n\n@interface ImperiumApplicationsListController : PSListController\n@end\n\n@interface ImperiumHideItemsListController : PS...
86
16
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.54, "nodes": 63, "errors": 0, "source_hash": "ca76237183e0d5c88b122f39f4bd18e902d4950db334f6ea623bd81b8f2eeaa7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,202
c
#include <stdio.h> int main(void) { int x, v0; printf("Enter a number: "); scanf("%d", &x); v0 = x & 1; if (v0 == 1) goto odd; printf("Even\n"); goto end; odd: printf("Odd\n"); end: return 0; }
16
14
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n int x, v0;\n\n printf("Enter a number: ");\n scanf("%d", &x);\n\n v0 = x & 1;\n if (v0 == 1) goto odd;\n printf("Even\n");\n goto end;\nodd:\n printf("Odd\n");\nend:\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\...
108
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.0, "nodes": 56, "errors": 0, "source_hash": "34d9793ad490165a1ee98b0e4840aa36a717ed7e5b1833e5ca61b8109a0cf4b7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,203
c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
32.82
67
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0...
370
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.82, "nodes": 278, "errors": 0, "source_hash": "25618edb8943c79b6ae3588e66081be391188d455552cd8a6f5e842955cb4640", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,204
c
// // BPhotoScrollView.h // iLookForiPhone // // Created by <NAME> on 12-9-3. // Copyright (c) 2012年 LavaTech. All rights reserved. // #import <UIKit/UIKit.h> #import "XUIImageView.h" @interface BPhotoView : UIButton @property (nonatomic, retain) id userInfo; @property (nonatomic, retain) NSString *thumbnail; @pr...
29.61
18
(translation_unit) "//\n// BPhotoScrollView.h\n// iLookForiPhone\n//\n// Created by <NAME> on 12-9-3.\n// Copyright (c) 2012年 LavaTech. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "XUIImageView.h"\n\n@interface BPhotoView : UIButton\n@property (nonatomic, retain) id userInfo;\n@property (nonatomic,...
137
28
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.61, "nodes": 97, "errors": 0, "source_hash": "fda7d9c42c5a09be8f4668be0b005e55015bc58f9273956f20a80dc6398b1e9c", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
12,205
c
/* C语言标准函数库 iscntrl */ #include <ctype.h> int iscntrl(int c) { /* 控制字符返回2,否则返回0 */ if ( c == 127 || (c >= 0 && c <= 31) ) return 2; return 0; }
20
7
(translation_unit) "/* C语言标准函数库 iscntrl */\n#include <ctype.h>\n\nint iscntrl(int c) {\n /* 控制字符返回2,否则返回0 */\n if ( c == 127 || (c >= 0 && c <= 31) ) return 2;\n return 0;\n}\n" (comment) "/* C语言标准函数库 iscntrl */\n#include <cty" (preproc_include) "e.h>\n\nint iscntrl(i" (#include) "e.h>\n\nin" (system_lib_st...
51
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.0, "nodes": 34, "errors": 0, "source_hash": "9f8ba514757477c7361804fe042d0f34ab8563d316047c275caf1147f872d7a6", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "e.h>\n\n...
12,206
c
/////////////////////////////////////////////////////////////////////////////// // // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright o...
33.62
82
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n//\n// @@@ START COPYRIGHT @@@\n//\n// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional informatio...
230
1
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.62, "nodes": 155, "errors": 0, "source_hash": "b43ab80ecfb4a3b88efa042664f8beafb5c8e344de07533463a8347407e827ff", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,207
c
#include <stdio.h> float v,t,d; int main() { printf("pls. insert velocity(v) in meter/second:"); scanf("%f",&v); printf("Pls. insert time(t) in second:"); scanf("%f",&t); d=v*t; printf("distance=%0.2f meter",d); return 0; }
20.92
12
(translation_unit) "#include <stdio.h> \nfloat v,t,d; \nint main() \n{ \n printf("pls. insert velocity(v) in meter/second:"); \n scanf("%f",&v); \n printf("Pls. insert time(t) in second:"); \n scanf("%f",&t); \n d=v*t; \n printf("distance=%0.2f meter",d); \n return 0; \n} \n \n" (preproc_include)...
100
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.92, "nodes": 47, "errors": 0, "source_hash": "355ad09ae0cd87a71dfa24cc47711d4bf52fb9f4aea69fd8af580339cb954f75", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,208
c
// qtbase/src/network/kernel/qurltlds_p.h #ifndef QURLTLD_P_H #define QURLTLD_P_H #include <QtNetwork/private/qtnetworkglobal_p.h> QT_BEGIN_NAMESPACE static const quint16 tldCount = 1; static constexpr quint32 tldIndices[tldCount + 1] = {0, 1}; static const quint16 tldChunkCount = 2; static const char * const tld...
36.42
12
(translation_unit) "// qtbase/src/network/kernel/qurltlds_p.h\n\n#ifndef QURLTLD_P_H\n#define QURLTLD_P_H\n\n#include <QtNetwork/private/qtnetworkglobal_p.h>\n\nQT_BEGIN_NAMESPACE\n\nstatic const quint16 tldCount = 1;\n\nstatic constexpr quint32 tldIndices[tldCount + 1] = {0, 1};\n\nstatic const quint16 tldChunkCount =...
112
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 36.42, "nodes": 66, "errors": 0, "source_hash": "c08e5edc94e6897dc1ab8bede8338388cd8c97b5ed718060cf4c965db2f665ee", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,209
c
/*****************************************************/ /* lean Smart (c) <NAME> 2011 */ /*****************************************************/ #pragma once #ifndef LEAN_SMART_SMART #define LEAN_SMART_SMART namespace lean { /// Defines RAII-style classes that automatically take care of r...
22.41
32
(translation_unit) "/*****************************************************/ \n/* lean Smart (c) <NAME> 2011 */ \n/*****************************************************/ \n \n#pragma once \n#ifndef LEAN_SMART_SMART \n#define LEAN_SMART_SMART \n \nnamespace lean \n{ \n /// Defines RAII-style classes tha...
99
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.41, "nodes": 52, "errors": 0, "source_hash": "070d4f65a42ca305b59f6467d0bec98f680b634ac2f9ed45b1380898c23f0380", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,210
c
// Copyright 2020 The Fuchsia 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 SRC_TESTS_BENCHMARKS_FIDL_LLCPP_SEND_EVENT_BENCHMARK_UTIL_H_ #define SRC_TESTS_BENCHMARKS_FIDL_LLCPP_SEND_EVENT_BENCHMARK_UTIL_H_ #include <lib/fi...
36.6
72
(translation_unit) "// Copyright 2020 The Fuchsia 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 SRC_TESTS_BENCHMARKS_FIDL_LLCPP_SEND_EVENT_BENCHMARK_UTIL_H_\n#define SRC_TESTS_BENCHMARKS_FIDL_LLCPP_SEND_EVENT_BENCHMARK_...
749
32
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 36.6, "nodes": 428, "errors": 0, "source_hash": "f60d2ea33afffa71b6f3280cbdf7c06d6e59cfbd0a8a76819cafc0fdcdaca0cd", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,211
c
#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define MALLOC(n) safe_malloc(n, __LINE__) /* Structures */ typedef struct { int err_status; char *err_msg; } loess_errstatus; typedef struct { long n; long p; double *y; double *x; double *weights; }...
30.81
127
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define TRUE 1\n#define FALSE 0\n#define MALLOC(n) safe_malloc(n, __LINE__)\n\n/* Structures */\n\ntypedef struct {\n int err_status;\n char *err_msg;\n } loess_errstatus;\n\ntypedef struct {\n long n;\n long p;\n double *y;\n d...
1,281
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 30.81, "nodes": 1004, "errors": 0, "source_hash": "e15d7cbc1aead7c20c02a6be85f837765100fb09169208d29387176f8c6a682a", "categorized_nodes": 515}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,212
c
/****************************************************************************** * Copyright (C) 2002 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /****************************************************************...
35.43
81
(translation_unit) "/******************************************************************************\n* Copyright (C) 2002 - 2020 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/\n\n/***************************************...
105
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.43, "nodes": 49, "errors": 0, "source_hash": "d6a667a9e8ce8861eb8c8954d8eafcae85694b05e4042c0485f432d42776459f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,213
c
/**************************************************************************** * * Copyright 2021 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License\n"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
39.41
41
(translation_unit) "/****************************************************************************\n *\n * Copyright 2021 Samsung Electronics All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License\n");\n * you may not use this file except in compliance with the License.\n * You may obt...
130
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 39.41, "nodes": 96, "errors": 0, "source_hash": "b64252b345cc582a415f677f626c4dd4e58720951ccafd9ca84a9c3aa1b5b00b", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,214
c
// // CarInfo+CoreDataProperties.h // // // Created by 冰泪 on 17/1/6. // // This file was automatically generated and should not be edited. // #import "CarInfo+CoreDataClass.h" NS_ASSUME_NONNULL_BEGIN @interface CarInfo (CoreDataProperties) + (NSFetchRequest<CarInfo *> *)fetchRequest; @property (nullable, non...
25.89
18
(translation_unit) "//\n// CarInfo+CoreDataProperties.h\n// \n//\n// Created by 冰泪 on 17/1/6.\n//\n// This file was automatically generated and should not be edited.\n//\n\n#import "CarInfo+CoreDataClass.h"\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CarInfo (CoreDataProperties)\n\n+ (NSFetchRequest<CarInfo *> *)fet...
102
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.89, "nodes": 65, "errors": 0, "source_hash": "4acfb2769e75028637fa683c717e65ba0b66ae27c3232dfb54054c1378e3a3fd", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort \"Car...
12,215
c
#pragma once #include "Core.h" #include <string> namespace TomFrame { class WindowSettings; } namespace TomFrame { class World; class GameWorld; class TOMFRAME_API Application { public: Application(); virtual ~Application(); /*Runs the engine*/ void Run(GameWorld* world); protected: /*Contains a...
19.16
25
(translation_unit) "#pragma once\n#include "Core.h"\n#include <string>\n\nnamespace TomFrame\n{\n class WindowSettings;\n}\n\nnamespace TomFrame {\n class World;\n class GameWorld;\n\n class TOMFRAME_API Application\n {\n public:\n Application();\n virtual ~Application();\n\n /*Runs the engine*/\n void Run(GameWorl...
107
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.16, "nodes": 64, "errors": 0, "source_hash": "aa62228f99d8c437caaca1278445f6606ed7e428518215a636a81b5efbe6efaa", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,216
c
#include <stdio.h> #include <stdlib.h> unsigned long long fact(int m); int main() { int num; unsigned long long factorial; scanf("%d", &num); factorial = fact(num); printf("Factorial of %d is %llu", num, factorial); return 0; } unsigned long long fact(int num) { if(num == 0) retur...
17.55
20
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\nunsigned long long fact(int m);\n\nint main()\n{\n int num;\n unsigned long long factorial;\n scanf("%d", &num);\n factorial = fact(num);\n printf("Factorial of %d is %llu", num, factorial);\n return 0;\n}\n \nunsigned long long fact(int num...
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.55, "nodes": 83, "errors": 0, "source_hash": "614215fd58ec48ccf212d4d48320e458b26e9d48f75784acdc3517d1a27ce613", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,217
c
#include <stdio.h> #include <stdlib.h> #include <solution.h> int trap_rain(int *buf, size_t len) { size_t l = 0; size_t lmax = 0; size_t r; size_t rmax = 0; int total = 0; if (len == 0) { return 0; } r = len - 1; while (l < r) { if (buf[lmax] < buf[l]) { ...
18.9
31
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <solution.h>\n\nint trap_rain(int *buf, size_t len)\n{\n size_t l = 0;\n size_t lmax = 0;\n size_t r;\n size_t rmax = 0;\n int total = 0;\n\n if (len == 0) {\n return 0;\n }\n\n r = len - 1;\n\n while (l < r) {\n ...
225
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 18.9, "nodes": 141, "errors": 0, "source_hash": "cf9cba347a328a368340cf6c996d0cf70caaf9d85f033bb1fafb9ca36185ce88", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,218
c
/* * Copyright (c) 2019 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @file functions to analyze mesh topology for static meshes * @details the functions only care about the topology. Geometry (coordinate) informatio...
31.66
222
(translation_unit) "/*\n * Copyright (c) 2019 <NAME>\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @file functions to analyze mesh topology for static meshes\n * @details the functions only care about the topology. Geo...
1,337
120
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 31.66, "nodes": 906, "errors": 0, "source_hash": "a0f1a539c2c4e8434877d913dc6c3ba827c7885986ee17097ebfd5ca810910c5", "categorized_nodes": 535}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,219
c
#include "caliper/RegionProfile.h" namespace cali { class BufferedRegionProfile : private RegionProfile { struct BufferedRegionProfileImpl; std::shared_ptr<BufferedRegionProfileImpl> mP; public: BufferedRegionProfile(); ~BufferedRegionProfile(); void start(); void stop(); void ...
27.67
21
(translation_unit) "#include "caliper/RegionProfile.h"\n\nnamespace cali\n{\n\nclass BufferedRegionProfile : private RegionProfile\n{\n struct BufferedRegionProfileImpl;\n std::shared_ptr<BufferedRegionProfileImpl> mP;\n\npublic:\n\n BufferedRegionProfile();\n ~BufferedRegionProfile();\n\n void start()...
166
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.67, "nodes": 91, "errors": 0, "source_hash": "45c2da0cd8c44755f00ac4b874ab5355a47a924df64b9de037eedb0e97652a61", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,220
c
// // AMapGeoFenceRegionObj.h // AMapLocationKit // // Created by hanxiaoming on 16/12/5. // Copyright © 2016年 Amap. All rights reserved. // #import "AMapLocationCommonObj.h" ///AMapGeoFence Region State typedef NS_ENUM(NSInteger, AMapGeoFenceRegionStatus) { AMapGeoFenceRegionStatusUnknown = 0, ///< 未...
24.73
79
(translation_unit) "//\n// AMapGeoFenceRegionObj.h\n// AMapLocationKit\n//\n// Created by hanxiaoming on 16/12/5.\n// Copyright © 2016年 Amap. All rights reserved.\n//\n\n#import "AMapLocationCommonObj.h"\n\n\n///AMapGeoFence Region State\ntypedef NS_ENUM(NSInteger, AMapGeoFenceRegionStatus)\n{\n AMapGeoFenceRegi...
321
45
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 24.73, "nodes": 231, "errors": 0, "source_hash": "c6f347d16445781f518ea70a13357e536be2617d8a4e217ca307674032159f16", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"...
12,221
c
/** * * 面试题 17.10. 主要元素 数组中占比超过一半的元素称之为主要元素。给定一个整数数组,找到它的主要元素。若没有,返回-1。 示例 1: 输入:[1,2,5,9,5,9,5,5,5] 输出:5 示例 2: 输入:[3,2] 输出:-1 示例 3: 输入:[2,2,1,1,1,2,2] 输出:2 说明: 你有办法在时间复杂度为 O(N),空间复杂度为 O(1) 内完成吗? * */ int majorityElement(int* nums, int numsSize){ int sum = 1; int cur = nums[0]; for (int ...
14.97
36
(translation_unit) "/**\n * \n * 面试题 17.10. 主要元素\n数组中占比超过一半的元素称之为主要元素。给定一个整数数组,找到它的主要元素。若没有,返回-1。\n\n示例 1:\n\n输入:[1,2,5,9,5,9,5,5,5]\n输出:5\n \n\n示例 2:\n\n输入:[3,2]\n输出:-1\n \n\n示例 3:\n\n输入:[2,2,1,1,1,2,2]\n输出:2\n \n\n说明:\n你有办法在时间复杂度为 O(N),空间复杂度为 O(1) 内完成吗?\n * \n */\n\nint majorityElement(int* nums, int numsSize){\n ...
132
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 14.97, "nodes": 74, "errors": 0, "source_hash": "f9601ef8a4dcbcf6d880a733c97a2d4d6f4948f2a8fa063063a6d308b2395285", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": ";\...
12,222
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" @class NSBundle; @interface EXSDataConsumerPlugin : NSObject { Class _dataConsumerClass; NSBundle *_bundle; long long _interestedDataclass; long lon...
39.67
24
(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@class NSBundle;\n\n@interface EXSDataConsumerPlugin : NSObject\n{\n Class _dataConsumerClass;\n NSBundle *_bundle;\n long long ...
208
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 39.67, "nodes": 130, "errors": 0, "source_hash": "1c38239b6d47b743711e9d0d926f0099182e89fabd0169de0b69df62ca557caf", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
12,223
c
int main(){while(0)return 0; return 15;}
40
1
(translation_unit) "int main(){while(0)return 0; return 15;}\n" (function_definition) "int main(){while(0)return 0; return 15;}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{while(0)return...
25
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 40.0, "nodes": 12, "errors": 0, "source_hash": "d3b2106f2e651f131dd2a0a81c6f31528d4d38df9a08fd38664c1441bfce6b8e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int ...
12,224
c
// // iCocosPushNoticeViewController.h // 01-iCocos // // Created by apple on 13-12-23. // Copyright (c) 2013年 itcast. All rights reserved. // 推送和提醒 #import "iCocosBaseSettingViewController.h" @interface iCocosPushNoticeViewController : iCocosBaseSettingViewController @end
26.9
10
(translation_unit) "//\n// iCocosPushNoticeViewController.h\n// 01-iCocos\n//\n// Created by apple on 13-12-23.\n// Copyright (c) 2013年 itcast. All rights reserved.\n// 推送和提醒\n\n#import "iCocosBaseSettingViewController.h"\n\n@interface iCocosPushNoticeViewController : iCocosBaseSettingViewController\n\n@end\n" (...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.9, "nodes": 12, "errors": 0, "source_hash": "c138309f823eb728aeb5093efc2dc9f959d2ba596b7f41140e6235b4e5171d1a", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "cosBaseSett...
12,225
c
#include <stdlib.h> #include "../msfpattern.h" int main() { char ownme[256]; msf_pattern_create(500, ownme); printf("%s\n", ownme); return (0); }
19.25
8
(translation_unit) "#include <stdlib.h>\n#include "../msfpattern.h"\n\nint main() {\n char ownme[256];\n\n msf_pattern_create(500, ownme);\n printf("%s\n", ownme);\n return (0);\n}\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_includ...
59
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.25, "nodes": 30, "errors": 0, "source_hash": "e17282a9bdfb1b9f3ce482debd0b13ff436b0468c9f7262c7d531271a0659b37", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,226
c
/* * Copyright 2019 Side Effects Software Inc. * * 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 la...
34.56
68
(translation_unit) "/*\n * Copyright 2019 Side Effects Software Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unl...
253
18
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 34.56, "nodes": 158, "errors": 0, "source_hash": "cf17a062dcdc39857fba5bc250e46dd01ac5336932a71f2b7b7124671a25f6d2", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,227
c
#ifndef _VIEW_H_ #define _VIEW_H_ #include <map> #include <LGFX_TFT_eSPI.hpp> #include "FunctionButton.h" class View { private: boolean _enable = false; TFT_eSPI *_lcd; public: View(TFT_eSPI *lcd) { _lcd = lcd; } inline TFT_eSPI *getLcd() { return _lcd; } inline boolean isEnable() ...
22.73
103
(translation_unit) "#ifndef _VIEW_H_\n#define _VIEW_H_\n#include <map>\n#include <LGFX_TFT_eSPI.hpp>\n#include "FunctionButton.h"\n\nclass View\n{\nprivate:\n boolean _enable = false;\n TFT_eSPI *_lcd;\n\npublic:\n View(TFT_eSPI *lcd)\n {\n _lcd = lcd;\n }\n inline TFT_eSPI *getLcd() { return _...
807
5
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 22.73, "nodes": 464, "errors": 0, "source_hash": "7e0086c2bfa4dce89b68ffab3ea0c17a2e1012c28874c933c72be149d061f258", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,228
c
#define JSI_LITE_ONLY 1 #include "jsi.c" Jsi_RC mycall(Jsi_Tree* treePtr, Jsi_TreeEntry* hPtr, void *data) { printf("CALL: %s(%d) : %ld\n", (char*)Jsi_TreeKeyGet(hPtr), jsi_nodeDepth(hPtr), (long)Jsi_TreeValueGet(hPtr)); return JSI_OK; } static void TreeTest(Jsi_Interp* interp) { Jsi_Tree *st, *wt, *mt; ...
31.33
81
(translation_unit) "#define JSI_LITE_ONLY 1\n#include "jsi.c"\n\nJsi_RC mycall(Jsi_Tree* treePtr, Jsi_TreeEntry* hPtr, void *data)\n{\n printf("CALL: %s(%d) : %ld\n", (char*)Jsi_TreeKeyGet(hPtr), jsi_nodeDepth(hPtr), (long)Jsi_TreeValueGet(hPtr));\n return JSI_OK;\n}\n\nstatic void TreeTest(Jsi_Interp* interp) {\...
1,069
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 31.33, "nodes": 586, "errors": 0, "source_hash": "eb7d985242295fe33308993e2e189cdeebe20684db9149b443d9821f9378f2fe", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
12,229
c
#pragma once #include "engine/blackboard/BBIdent.h" #include <assert.h> #include <stdint.h> #include <string.h> //for memcopy namespace alica { class Variant { enum Type { TypeDouble = 0, // blatant optimization for the gradient solver case TypeFloat, TypeBool, TypePtr, ...
22.62
154
(translation_unit) "#pragma once\n#include "engine/blackboard/BBIdent.h"\n#include <assert.h>\n#include <stdint.h>\n#include <string.h> //for memcopy\n\nnamespace alica\n{\n\nclass Variant\n{\n\n enum Type\n {\n TypeDouble = 0, // blatant optimization for the gradient solver case\n TypeFloat,\n ...
1,021
20
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 22.62, "nodes": 604, "errors": 0, "source_hash": "fe49013cb50b6b5f56a484b7fc0bda4da4d7333b599ef4c52757a202c3569fe7", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,230
c
/* * ConstraintBlockImpl.h * * Copyright 2016 Mentor Graphics Corporation * All Rights Reserved Worldwide * * 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...
25.75
57
(translation_unit) "/* \n * ConstraintBlockImpl.h \n * \n * Copyright 2016 Mentor Graphics Corporation \n * All Rights Reserved Worldwide \n * \n * Licensed under the Apache License, Version 2.0 (the \n * "License"); you may not use this file except in \n * compliance with the License. You may obtain a copy of \n * ...
194
17
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 25.75, "nodes": 114, "errors": 0, "source_hash": "cd218f6392da4ace3c771d0bd62abff5010bf1b34d6f820517da1760632267ef", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,231
c
// // Created by byter on 12/20/17. // #ifndef THREEPPQ_FOG_H #define THREEPPQ_FOG_H #include <QObject> #include <QColor> #include <threepp/scene/Fog.h> namespace three { namespace quick { class FogBase : public QObject { Q_OBJECT Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) protected: ...
22.56
79
(translation_unit) "//\n// Created by byter on 12/20/17.\n//\n\n#ifndef THREEPPQ_FOG_H\n#define THREEPPQ_FOG_H\n\n#include <QObject>\n#include <QColor>\n#include <threepp/scene/Fog.h>\n\nnamespace three {\nnamespace quick {\n\nclass FogBase : public QObject\n{\nQ_OBJECT\n Q_PROPERTY(QColor color READ color WRITE setCo...
609
23
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 22.56, "nodes": 347, "errors": 0, "source_hash": "025c4681082adeab4751ea5f9d088c78dd3507c417f272c660f892acf3706559", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,232
c
#include <stdlib.h> #include <string/stdstring.h> #include "element.h" void element_init(element_t *elem, const char *name, int components_count) { elem->name = string_init(name); elem->state = -1; elem->o_bind = -1; elem->i_bind = -1; elem->i_mask ...
34.63
60
(translation_unit) "#include <stdlib.h>\n\n#include <string/stdstring.h>\n\n#include "element.h"\n\nvoid element_init(element_t *elem, const char *name, int components_count)\n{\n elem->name = string_init(name);\n elem->state = -1;\n elem->o_bind = -1;\n elem->i_bind =...
674
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 34.63, "nodes": 441, "errors": 0, "source_hash": "81f79637a6caae59d3967a0336bec50272ec6733bf48b79618751b9938c94a6d", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,233
c
//https://code.google.com/p/nya-engine/ #pragma once #include "resources/shared_resources.h" #include "render/texture.h" namespace nya_resources { typedef shared_resources<nya_render::texture,8> shared_textures; typedef shared_textures::shared_resource_ref texture_ref; class shared_textures_manager: pub...
34.4
15
(translation_unit) "//https://code.google.com/p/nya-engine/\n\n#pragma once\n\n#include "resources/shared_resources.h"\n#include "render/texture.h"\n\nnamespace nya_resources\n{\n typedef shared_resources<nya_render::texture,8> shared_textures;\n typedef shared_textures::shared_resource_ref texture_ref;\n\n cl...
109
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.4, "nodes": 63, "errors": 0, "source_hash": "46833580d94d48357dd5f8a63d4811c315dadfb48738ecc0f9a814169b52b6ec", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,234
c
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Stats/Stats.h" #include "Core/Interface/ISGMessageContext.h" #include "Core/Interface/ISGMessageBusListener.h" #include "Core/Bus/SGMessageTracer.h" class ISGMessageReceiver; /** * Implements an asynchronous task for...
29.65
127
(translation_unit) "// Copyright Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Stats/Stats.h"\n#include "Core/Interface/ISGMessageContext.h"\n#include "Core/Interface/ISGMessageBusListener.h"\n#include "Core/Bus/SGMessageTracer.h"\n\nclass ISGMessageReceiver;\n\n/**\n * Im...
453
35
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 29.65, "nodes": 237, "errors": 0, "source_hash": "443fd1812e53e60ba3b371a889135741011033a925252028b529ede4b2386cc1", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,235
c
// // ImagePreviewViewController.h // SalonStaff // // Created by <NAME> on 09/05/16. // Copyright © 2016 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @protocol ImagePreviewDelegate; @interface ImagePreviewViewController : UIViewController @property (nonatomic, retain) id<ImagePreviewDelegate> deleg...
34.16
19
(translation_unit) "//\n// ImagePreviewViewController.h\n// SalonStaff\n//\n// Created by <NAME> on 09/05/16.\n// Copyright © 2016 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol ImagePreviewDelegate;\n\n@interface ImagePreviewViewController : UIViewController\n\n@property (nonatomic, reta...
141
30
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.16, "nodes": 100, "errors": 0, "source_hash": "70986827d2f5f2c70a0993643927e09e9556ea0d9f5fb1f17c9919e590682491", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
12,236
c
#ifndef MPM_READ_MESH_ASCII_H_ #define MPM_READ_MESH_ASCII_H_ #include <vector> #include "Eigen/Dense" #include "read_mesh.h" //! MPM namespace namespace mpm { //! Global index type for the cell using Index = unsigned long long; //! ReadMeshAscii class //! \brief Derived class that returns mesh and particles loca...
41.07
73
(translation_unit) "#ifndef MPM_READ_MESH_ASCII_H_\n#define MPM_READ_MESH_ASCII_H_\n\n#include <vector>\n\n#include "Eigen/Dense"\n\n#include "read_mesh.h"\n\n//! MPM namespace\nnamespace mpm {\n\n//! Global index type for the cell\nusing Index = unsigned long long;\n\n//! ReadMeshAscii class\n//! \brief Derived class ...
557
38
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 41.07, "nodes": 325, "errors": 0, "source_hash": "0ac99a88af51a93739aef153db8f4ed0f09abaa7a6c3274a06f5f972727f5d06", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,237
c
/* * UploadSkinRequest.h * * */ #ifndef _UploadSkinRequest_H_ #define _UploadSkinRequest_H_ #include <string> #include "SkinModel.h" #include "Object.h" /** \defgroup Models Data Structures for API * Classes containing all the Data Structures needed for calling/returned by API endpoints * */ namespace Tiz...
18.69
59
(translation_unit) "/*\n * UploadSkinRequest.h\n *\n * \n */\n\n#ifndef _UploadSkinRequest_H_\n#define _UploadSkinRequest_H_\n\n\n#include <string>\n#include "SkinModel.h"\n#include "Object.h"\n\n/** \defgroup Models Data Structures for API\n * Classes containing all the Data Structures needed for calling/returned by ...
192
5
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 18.69, "nodes": 110, "errors": 0, "source_hash": "624fd43032b9aed94ccc639fe2d9f966f91106410e74131c60d88f0ecb4a75ae", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,238
c
/* * Copyright (C) 2017, Nayuta, Inc. All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownersh...
33.74
189
(translation_unit) "/*\n * Copyright (C) 2017, Nayuta, Inc. All Rights Reserved\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * ...
1,216
4
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 33.74, "nodes": 715, "errors": 0, "source_hash": "5785c68c313a2a6a39e8f27b58278241f9cc677e7b518688e54e306b78c39504", "categorized_nodes": 475}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lud...
12,239
c
#ifndef FOOD_H #define FOOD_H class food { public: int x; int y; int kind; food(); bool print_food(int x, int y); }; #endif
11
12
(translation_unit) "#ifndef FOOD_H\n#define FOOD_H\n\nclass food\n{\npublic:\n int x;\n int y;\n int kind;\n food();\n bool print_food(int x, int y);\n};\n\n#endif" (preproc_ifdef) "#ifndef FOOD_H\n#define FOOD_H\n\nclass food\n{\npublic:\n int x;\n int y;\n int kind;\n food();\n bool pr...
53
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 11.0, "nodes": 33, "errors": 0, "source_hash": "3672109d57c38da48e096c67149da50821e8bf2744bc1cf9c087e20a7b8bf1bd", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
12,240
c
// Copyright (c) 2014-present 650 Industries, Inc. All rights reserved. #import "CNNativeBindingProtocol.h" @protocol IosLoggingExports <JSExport> - (void)logError:(NSString *)message; - (void)logWarning:(NSString *)message; - (void)logInfo:(NSString *)message; - (void)logDebug:(NSString *)message; - (void)logVerbos...
35.33
12
(translation_unit) "// Copyright (c) 2014-present 650 Industries, Inc. All rights reserved.\n\n#import "CNNativeBindingProtocol.h"\n\n@protocol IosLoggingExports <JSExport>\n\n- (void)logError:(NSString *)message;\n- (void)logWarning:(NSString *)message;\n- (void)logInfo:(NSString *)message;\n- (void)logDebug:(NSString...
125
21
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.33, "nodes": 80, "errors": 0, "source_hash": "6adade5c15cea503abd8edaf031eb40736b255e779351286072d9dd74cd89e74", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
12,241
c
#ifndef IDK_GRAPHICS_RENDER_STATES_H #define IDK_GRAPHICS_RENDER_STATES_H #include "idk/core/common.h" IDK_C_API_BEGIN #include "idk/core/matrix4.h" #include "idk/graphics/blend_mode.h" #include "idk/graphics/shader.h" typedef struct idk_render_states { idk_mat4_t currentMatrix; idk_blend_mode_t currentBlen...
25.6
15
(translation_unit) "#ifndef IDK_GRAPHICS_RENDER_STATES_H\n#define IDK_GRAPHICS_RENDER_STATES_H\n\n#include "idk/core/common.h"\n\nIDK_C_API_BEGIN\n\n#include "idk/core/matrix4.h"\n#include "idk/graphics/blend_mode.h"\n#include "idk/graphics/shader.h"\n\ntypedef struct idk_render_states\n{\n idk_mat4_t currentMatrix;...
58
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.6, "nodes": 36, "errors": 0, "source_hash": "bb4cdad875cc75b9b3cef027361b87cc847246d38f3c165c7d18283ccb226286", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
12,242
c
// // UIView+GradientMask.h // JKNews // // Created by NEVER.FADE.SOUL on 13/09/2017. // Copyright © 2017 people.cn. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (GradientMask) + (UIView *)viewForGradientMaskStartAtPoint:(CGPoint)startPoint fromColor:(UIColor *)fromColor toColor:(UIColor *)t...
38.59
17
(translation_unit) "//\n// UIView+GradientMask.h\n// JKNews\n//\n// Created by NEVER.FADE.SOUL on 13/09/2017.\n// Copyright © 2017 people.cn. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (GradientMask)\n\n+ (UIView *)viewForGradientMaskStartAtPoint:(CGPoint)startPoint fromColor:(UIColor ...
115
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 38.59, "nodes": 59, "errors": 0, "source_hash": "962a7e6582f1b2c4e7a7ae102f10b831d7c2e2f75408bc4674a3abdd81c7cf51", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,243
c
/* * StackDepthAnnotation.h * * Created on: Jan 22, 2013 * Author: belyaev */ #ifndef STACKDEPTHANNOTATION_H_ #define STACKDEPTHANNOTATION_H_ #include "Annotation/Annotation.h" #include "Annotation/AnnotationNames.hpp" namespace borealis { /** protobuf -> Annotation/StackDepthAnnotation.proto import "Ann...
32.26
47
(translation_unit) "/*\n * StackDepthAnnotation.h\n *\n * Created on: Jan 22, 2013\n * Author: belyaev\n */\n\n#ifndef STACKDEPTHANNOTATION_H_\n#define STACKDEPTHANNOTATION_H_\n\n#include "Annotation/Annotation.h"\n#include "Annotation/AnnotationNames.hpp"\n\nnamespace borealis {\n\n/** protobuf -> Annotation/Sta...
379
18
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.26, "nodes": 198, "errors": 0, "source_hash": "e83823277905b5476d9da570e1b3e0eff7b8cd91970d04e59d8f30d22ba9b906", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,244
c
/* * Copyright (c) 2009-2012 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
37.11
94
(translation_unit) "/*\n * Copyright (c) 2009-2012 jMonkeyEngine\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyrigh...
361
14
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 37.11, "nodes": 210, "errors": 0, "source_hash": "175b88173d7fb6bed98d321296158bab71ebc83979fa560f6aef7b664a8634b4", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,245
c
#include <stdio.h> /* printf, sprintf, fopen, fread, fclose */ #define MIN_ASCII 32 #define MAX_ASCII 126 /******************************************************************************* Function: format Description: Given an array of characters, formats the characters as a line of hexadecimal numbe...
39.25
76
(translation_unit) "#include <stdio.h> /* printf, sprintf, fopen, fread, fclose */\n\n#define MIN_ASCII 32\n#define MAX_ASCII 126\n\n/*******************************************************************************\n Function: format\n\nDescription: Given an array of characters, formats the characters as a line of\n ...
541
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 39.25, "nodes": 303, "errors": 0, "source_hash": "8292955ccf1881edb6b8fc0a1c0199628a747987afc63df03c66d3c33162a2db", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,246
c
// // Copyright 2012 MultiMC Contributors // // 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...
26.6
123
(translation_unit) "// \n// Copyright 2012 MultiMC Contributors\n// \n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// \n// http://www.apache.org/licenses/LICENSE-2.0\n...
583
9
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 26.6, "nodes": 415, "errors": 0, "source_hash": "f49ec3e754a73fd32132cc98eb09a29faf8891d0fe67134818a3af922328fe2d", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,247
c
/* * Generate/lexinit.c -- Initialize lexical table. * * Author: <NAME> * Creation: 12/20/88 * Revision History: * 12/20/88, kmh Written to eliminate some startup code. * 06/25/92, ron Added a separate table for the Mac, which treats * some characters differently. */ #include "../defs.h...
24.2
69
(translation_unit) "/*\n * Generate/lexinit.c -- Initialize lexical table.\n *\n * Author: <NAME>\n * Creation: 12/20/88\n * Revision History:\n * 12/20/88, kmh Written to eliminate some startup code.\n * 06/25/92, ron Added a separate table for the Mac, which treats\n * some characters different...
647
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 24.2, "nodes": 401, "errors": 0, "source_hash": "dc7307e419316002a367b0f1ba1daa5e3080c87e48fd670b04d069b870bd237e", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,248
c
#include "ush.h" /* * Get substitution. */ static char *get_subst(char *s, int *len) { char *subst = NULL; int i = 0; if (s[0] == '$' && s[1] == '(') { i = mx_get_char_index_quote(s, ")", "\'"); if (i < 0) return NULL; subst = mx_strndup(&s[2], i - 2); *len = i...
24.04
57
(translation_unit) "#include "ush.h"\n/*\n * Get substitution.\n */\nstatic char *get_subst(char *s, int *len) {\n char *subst = NULL;\n int i = 0;\n\n if (s[0] == '$' && s[1] == '(') {\n i = mx_get_char_index_quote(s, ")", "\'");\n if (i < 0)\n return NULL;\n subst = mx_strndup...
579
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 24.04, "nodes": 365, "errors": 0, "source_hash": "d43da5cac6f76855eaa1c8e339b274390d2d09f28cf9623c9052e414ef9c15c0", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,249
c
#pragma once #include <fstream> #include <iostream> #include <string> #include <sstream> #include <algorithm> #include "../SimpleMesh.h" #include "../point3d.h" struct plyFile { UInt num_cols; UInt num_rows; UInt numV; UInt numG; UInt numF; plyFile() : num_cols(0), num_rows(0), numV(0), numG(0), numF(0), ver...
25.7
186
(translation_unit) "#pragma once\n\n#include <fstream>\n#include <iostream>\n#include <string>\n#include <sstream>\n#include <algorithm>\n\n#include "../SimpleMesh.h"\n#include "../point3d.h"\n\nstruct plyFile {\n\n UInt num_cols;\n UInt num_rows;\n UInt numV;\n UInt numG;\n UInt numF;\n\n plyFile() : num_cols(0), num_...
2,326
146
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 25.7, "nodes": 1451, "errors": 0, "source_hash": "8b6999ca68579972bd5a40c04062ea1060326adbbd3bfe9a4fe49b0b0b4ece5a", "categorized_nodes": 982}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,250
c
// // Copyright 2013 Facebook // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
36.87
60
(translation_unit) "//\n// Copyright 2013 Facebook\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by app...
324
30
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 36.87, "nodes": 208, "errors": 0, "source_hash": "0d86df8bf30abbc4bc1b19fc86a74320d4308d317f92659bc76176155d9c92eb", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,251
c
#ifndef DALI_GRAPHICS_SAMPLER_CREATE_INFO_H #define DALI_GRAPHICS_SAMPLER_CREATE_INFO_H /* * Copyright (c) 2021 Samsung Electronics 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 Licens...
23.97
212
(ERROR) "#ifndef DALI_GRAPHICS_SAMPLER_CREATE_INFO_H\n#define DALI_GRAPHICS_SAMPLER_CREATE_INFO_H\n\n/*\n * Copyright (c) 2021 Samsung Electronics Co., Ltd.\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 c...
616
41
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 23.97, "nodes": 336, "errors": 0, "source_hash": "e9088e91afc11ba635e9bc072b6f85189bbd8fa84e63afd7f8f5fd5df1941ab6", "categorized_nodes": 233}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef DALI_GRAPHICS_SA...
12,252
c
#ifndef GAMEDEV3D_CHASECAMERA_H #define GAMEDEV3D_CHASECAMERA_H #include "Camera.h" #include "../scene/planet/Planet.h" class ChaseCamera: public Camera { std::shared_ptr<ISceneObject> mTargetObject; std::shared_ptr<Planet> mPlanet; const unsigned long mChaseObjectId; public: static const std::string& SERIALIZ...
35.85
26
(translation_unit) "#ifndef GAMEDEV3D_CHASECAMERA_H\n#define GAMEDEV3D_CHASECAMERA_H\n\n#include "Camera.h"\n#include "../scene/planet/Planet.h"\n\n\nclass ChaseCamera: public Camera {\n\n std::shared_ptr<ISceneObject> mTargetObject;\n std::shared_ptr<Planet> mPlanet;\n\n const unsigned long mChaseObjectId;\npublic:\n ...
280
12
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.85, "nodes": 163, "errors": 0, "source_hash": "0491ccbf5ef7e200687167c7ba29abf0af0bd6bd1430a583fc0c0b4427736e1d", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,253
c
// BlueprintGeneratedClass CommonUI_KeyboardBrushData.CommonUI_KeyboardBrushData_C // Size: 0xa8 (Inherited: 0xa8) struct UCommonUI_KeyboardBrushData_C : UFortInputControllerData { };
45
4
(translation_unit) "// BlueprintGeneratedClass CommonUI_KeyboardBrushData.CommonUI_KeyboardBrushData_C\n// Size: 0xa8 (Inherited: 0xa8)\nstruct UCommonUI_KeyboardBrushData_C : UFortInputControllerData {\n};\n\n" (comment) "// BlueprintGeneratedClass CommonUI_KeyboardBrushData.CommonUI_KeyboardBrushData_C" (comment)...
15
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 45.0, "nodes": 5, "errors": 0, "source_hash": "be7924044ae512d4d80e521f4976b29f910ff51221753107c281741c09f00936", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "struct...
12,254
c
#include <postgres.h> #include "funcapi.h" #include "mb/pg_wchar.h" #include "parser/keywords.h" #if 1 #define talloc(len) malloc(len) #define trealloc(p, len) realloc(p, len) #define tfree(p) free(p) #else #define talloc(len) palloc(len) #define trealloc(p, len) repalloc(p, len) #define t...
24.1
305
(translation_unit) "#include <postgres.h>\n#include "funcapi.h"\n#include "mb/pg_wchar.h"\n#include "parser/keywords.h"\n\n#if 1\n#define talloc(len) malloc(len)\n#define trealloc(p, len) realloc(p, len)\n#define tfree(p) free(p)\n#else\n#define talloc(len) palloc(len)\n#define trealloc(p, len...
2,691
0
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 24.1, "nodes": 1791, "errors": 0, "source_hash": "153fa3458bbba70d46e3d283987083439ddcf48373f9e8adb684adb155cead9b", "categorized_nodes": 1135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,255
c
/** * Note: The returned array must be malloced, assume caller calls free(). */ typedef struct{ int num; int sub; }table; int cmp( const void *a , const void *b ){ return ((table *)a)->num - ((table *)b)->num; } table* search(table* pTable, int Size, int Target){ int m = Size>>1; if(pTable...
24.91
45
(translation_unit) "/**\n * Note: The returned array must be malloced, assume caller calls free().\n */\ntypedef struct{\n int num;\n int sub;\n}table;\n\nint cmp( const void *a , const void *b ){\n return ((table *)a)->num - ((table *)b)->num; \n}\n\ntable* search(table* pTable, int Size, int Target){\n in...
470
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.91, "nodes": 301, "errors": 0, "source_hash": "c814d17772fec3e12a30c9e1425ab20b2f37985ef495db97682c2e8de216f6aa", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
12,256
c
include <stdio.h> #include <cs50.h> #include <ctype.h> #include <string.h> #include <math.h> int count_letters(string data); int count_words(string data); int count_sentences(string data); int main(void) { // Prompting user to input the string string data = get_string("Text: "); int words = count_words(d...
27.64
80
(translation_unit) "include <stdio.h>\n#include <cs50.h>\n#include <ctype.h>\n#include <string.h>\n#include <math.h>\n\nint count_letters(string data);\nint count_words(string data);\nint count_sentences(string data);\n\nint main(void)\n{\n // Prompting user to input the string\n string data = get_string("Text: "...
504
1
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 27.64, "nodes": 316, "errors": 0, "source_hash": "4cf3349386075e5a8e8e927d9d05277bfa7ff378c5d82482897201a99759990c", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "include <stdio...
12,257
c
/** * Copyright (c) 2021 <NAME> <alban dot fichet at gmx dot fr> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * ...
38.67
69
(translation_unit) "/**\n * Copyright (c) 2021 <NAME> <alban dot fichet at gmx dot fr>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must re...
294
17
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 38.67, "nodes": 182, "errors": 0, "source_hash": "0dd6b1a8d9d89828472e3aa9b8c7633a1eb98471603126dbd336503303aa4437", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,258
c
#ifndef CREATEDECK_H #define CREATEDECK_H /** * CreateDeck * @author <NAME> * **/ #include "../Card/Card.h" #include "../Card/Beast.h" #include "../Card/Spell.h" #include "../Card/Hero.h" #include "../Card/Capacity.h" #include "../Effect/Effect.h" #include "cstdlib" #include "iostream" #include "ctime" /** * ju...
16.48
33
(translation_unit) "#ifndef CREATEDECK_H\n#define CREATEDECK_H\n\n/** \n* CreateDeck\n* @author <NAME>\n*\n**/\n\n#include "../Card/Card.h"\n#include "../Card/Beast.h"\n#include "../Card/Spell.h"\n#include "../Card/Hero.h"\n#include "../Card/Capacity.h"\n#include "../Effect/Effect.h"\n#include "cstdlib"\n#include "io...
118
3
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.48, "nodes": 69, "errors": 0, "source_hash": "5d72a5c2548bca622164e8940a81360d280b073f8c36dff41b34f73ecbc1cc9c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,259
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:31:21 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCalculationEngine.framework/TSCalculationEngine * classdump-dyld ...
40.69
16
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 12:31:21 PM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCalculationEngine.framework/TSCalculation...
99
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 40.69, "nodes": 62, "errors": 0, "source_hash": "bfe94789bd5d651598b84c125df94601db8d74b7ee3add362c985fc6449315bf", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
12,260
c
/* Generated by RuntimeBrowser Image: /usr/lib/libAWDSupportFramework.dylib */ @interface AWDAppBBPower : PBCodable <NSCopying> { NSString * _bundleName; struct { unsigned int powerMicroWatt : 1; unsigned int rAT : 1; } _has; unsigned int _powerMicroWatt; int _rAT; } @pro...
28.07
42
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /usr/lib/libAWDSupportFramework.dylib\n */\n\n@interface AWDAppBBPower : PBCodable <NSCopying> {\n NSString * _bundleName;\n struct { \n unsigned int powerMicroWatt : 1; \n unsigned int rAT : 1; \n } _has;\n unsigned int _powerMic...
473
35
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.07, "nodes": 295, "errors": 0, "source_hash": "71aa0ebedc3ce3fcf32a9dadca32c01d67376bd658d0ae743e08857d848a8297", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
12,261
c
/******************************************************************************* <NAME> <EMAIL> *****************************************************************************/ #ifndef _BITMAP_ #define _BITMAP_ /*----------------------------------------------------------------------------*/ /* ### IN...
32.81
72
(translation_unit) "/******************************************************************************* \n <NAME> \n <EMAIL> \n *****************************************************************************/ \n \n#ifndef _BITMAP_ \n#define _BITMAP_ \n \n/*-------------------------------------------------------------...
194
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 32.81, "nodes": 128, "errors": 0, "source_hash": "971dc5d5ea048b2a33f9ad56858e1a9d0dfe8b84af7be0d1e5547426176d30a8", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,262
c
/* * Copyright (c) 1991 - 1993, <NAME> * Copyright (c) 1991 - 1993, <NAME> * Copyright (c) 1996 - 2000, <NAME> * Copyright (c) 2003 - 2005, <NAME> * Copyright (c) 2008 - 2010, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
34
89
(translation_unit) "/*\n * Copyright (c) 1991 - 1993, <NAME>\n * Copyright (c) 1991 - 1993, <NAME>\n * Copyright (c) 1996 - 2000, <NAME>\n * Copyright (c) 2003 - 2005, <NAME>\n * Copyright (c) 2008 - 2010, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * mod...
370
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 34.0, "nodes": 219, "errors": 0, "source_hash": "2feaf2dcac2563cb256c30c582bc038d390bd7d4470d965705937532d4fd83c1", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,263
c
#include "scheduler.h" #include <stdio.h> /* This function runs the scheduler which is the INT 0 code. */ void runInt0Code() { struct address translated_addr; if(getType(reg[SP_REG]) == TYPE_STR || getType(reg[PTLR_REG]) == TYPE_STR) { exception("Illegal Register value", EX_ILLMEM, 0); return; } if(getInteg...
30.03
32
(translation_unit) "#include "scheduler.h"\n#include <stdio.h>\n\n/*\n This function runs the scheduler which is the INT 0 code.\n*/\nvoid runInt0Code()\n{\n struct address translated_addr;\n if(getType(reg[SP_REG]) == TYPE_STR || getType(reg[PTLR_REG]) == TYPE_STR)\n {\n exception("Illegal Register value", EX_ILLMEM...
312
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.03, "nodes": 178, "errors": 0, "source_hash": "0ea7f525ed3aab2f2863433401fd19343f88c601e7ae5d233a0d7a1c629d3665", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,264
c
/* Auto-generated file - don't edit. */ #define PDS_TQ_DMA_ONLY_DATA_SEGMENT_SIZE (48UL) static const IMG_UINT32 g_pui32PDSTQ_DMA_ONLY[16] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x07030203, 0x170008E0, 0x070703...
30.98
49
(translation_unit) "/* Auto-generated file - don't edit. */\n\n#define PDS_TQ_DMA_ONLY_DATA_SEGMENT_SIZE (48UL)\nstatic const IMG_UINT32 g_pui32PDSTQ_DMA_ONLY[16] = {\n0x00000000, 0x00000000, 0x00000000, 0x00000000,\n0x00000000, 0x00000000, 0x00000000, 0x00000000,\n0x00000000, 0x00000000, 0x00000000, 0x00000000,\n0x070...
255
5
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.98, "nodes": 178, "errors": 0, "source_hash": "dde4df1a03191900285bf2ca0c9f3fd3c4c16f1b0eb4ff63eef1376bd35d06b9", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
12,265
c
/* * ===================================================================================== * * Filename: max_heap.h * * Description: max heap class definition. * * Version: 1.0 * Created: 09/08/2020 * Revision: none * Compiler: gcc * * Author: zhulin, <EMAIL...
26.14
208
(translation_unit) "/*\n * =====================================================================================\n *\n * Filename: max_heap.h\n *\n * Description: max heap class definition.\n *\n * Version: 1.0\n * Created: 09/08/2020\n * Revision: none\n * Compiler: gcc\n *\n *...
2,136
79
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 26.14, "nodes": 1384, "errors": 0, "source_hash": "c203a1eb4e44e9baf4c3617d25b529842475bcdeda3eba8b7367aeada8ae8b8d", "categorized_nodes": 956}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
12,266
c
/* * Copyright (c) 2014 Mell<NAME>, Inc. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include <stdio.h> #include <shmem.h> #warning This application uses deprecated API see http://www.open-mpi.org/ #define SIZE 16 int main(int argc, ...
24.71
45
(translation_unit) "/*\n * Copyright (c) 2014 Mell<NAME>, Inc.\n * All rights reserved.\n * $COPYRIGHT$\n *\n * Additional copyrights may follow\n *\n * $HEADER$\n */\n\n#include <stdio.h>\n#include <shmem.h>\n\n#warning This application uses deprecated API see http://www.open-mpi.org/\n\n#...
270
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.71, "nodes": 150, "errors": 0, "source_hash": "36143851bda12aacc46c6b6ce9266e18667203fab709144d729590f349f2ee4f", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,267
c
/* * Copyright (c) 2011 <NAME> <<EMAIL>> * Rights to this code are as documented in doc/LICENSE. * * Clean obnoxious nicknames, such as LaMENiCK -> lamenick. */ #include "atheme-compat.h" #define LAMENESS_WEIGHT 0.35f /* * Determine if a nickname is lame. Non-alphabetical characters * are penalized twice, u...
26.07
89
(translation_unit) "/*\n * Copyright (c) 2011 <NAME> <<EMAIL>>\n * Rights to this code are as documented in doc/LICENSE.\n *\n * Clean obnoxious nicknames, such as LaMENiCK -> lamenick.\n */\n\n#include "atheme-compat.h"\n\n#define LAMENESS_WEIGHT 0.35f\n\n/*\n * Determine if a nickname is lame. Non-alphabetical char...
669
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 26.07, "nodes": 389, "errors": 0, "source_hash": "3d3e68c5a40c358fd11a1220068f0bd341e5fb54ffa6fafbfab996e4208327d6", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,268
c
/** * Implementation of the mini template engine in spdlog_setup. * @author <NAME> * @version 0.3.1-pre */ #pragma once #include "setup_error.h" #include "spdlog/fmt/fmt.h" #include <sstream> #include <string> #include <unordered_map> namespace spdlog_setup { namespace details { // declaration section enum cl...
28.03
151
(translation_unit) "/**\n * Implementation of the mini template engine in spdlog_setup.\n * @author <NAME>\n * @version 0.3.1-pre\n */\n\n#pragma once\n\n#include "setup_error.h"\n\n#include "spdlog/fmt/fmt.h"\n\n#include <sstream>\n#include <string>\n#include <unordered_map>\n\nnamespace spdlog_setup {\nnamespace deta...
946
43
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 28.03, "nodes": 558, "errors": 0, "source_hash": "983bdb355877cec53d39bdf479fc14688885c83db7acf2112c6c9ab6f034fbae", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,269
c
#pragma once #include <Common/GFXUtil.h> #include <vstl/MetaLib.h> #include <RenderComponent/TextureBase.h> #include <RenderComponent/Utility/IGPUAllocator.h> class ITextureAllocator : public IGPUAllocator { public: virtual void AllocateTextureHeap( GFXDevice* device, GFXFormat format, uint32_t width, uint32_t...
25.4
20
(translation_unit) "#pragma once\n#include <Common/GFXUtil.h>\n#include <vstl/MetaLib.h>\n#include <RenderComponent/TextureBase.h>\n#include <RenderComponent/Utility/IGPUAllocator.h>\nclass ITextureAllocator : public IGPUAllocator {\npublic:\n virtual void AllocateTextureHeap(\n GFXDevice* device,\n GFXFormat format,...
107
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.4, "nodes": 78, "errors": 0, "source_hash": "517e865c1ea2c738e94b0f98e770c2781b908bbceba2f70f0d89ff432bff2398", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,270
c
void platform_startup() { }
8.33
3
(translation_unit) "void platform_startup()\n{\n}\n" (function_definition) "void platform_startup()\n{\n}" (primitive_type) "void" (function_declarator) "platform_startup()" (identifier) "platform_startup" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n}" ...
11
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 8.33, "nodes": 5, "errors": 0, "source_hash": "da4a5bbf38cb7c4fddb60439f8c3cbecbc35564139834c6610de82a66379b5c1", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void p...
12,271
c
#ifndef _tinyrl_complete_h #define _tinyrl_complete_h #include <stdbool.h> struct tinyrl; char **tinyrl_add_match(const struct tinyrl *this, unsigned start, char **matches, const char *match); void tinyrl_delete_matches(char **matches); void tinyrl_display_matches(struct tinyrl * this, char *const *matches); /**...
34.29
24
(translation_unit) "#ifndef _tinyrl_complete_h\n#define _tinyrl_complete_h\n\n#include <stdbool.h>\n\nstruct tinyrl;\n\nchar **tinyrl_add_match(const struct tinyrl *this, unsigned start,\n char **matches, const char *match);\nvoid tinyrl_delete_matches(char **matches);\nvoid tinyrl_display_matches(struct tinyrl * thi...
130
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 34.29, "nodes": 102, "errors": 0, "source_hash": "384f05f3faa97864ee5e7cf7d14ef4cf005197a78b4b5ce334b217b6d1fca208", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,272
c
// Copyright (c) <NAME>. For more information see 'LICENSE.txt' #pragma once #include "Core/STL/Common/Types.h" #include "Core/STL/Common/UMax.h" namespace GX_STL { namespace CompileTime { using wchar = GXTypes::wchar; using byte = GXTypes::byte; using ubyte = GXTypes::ubyte; using ushort = GXTypes::ushort; ...
26.45
20
(translation_unit) "// Copyright (c) <NAME>. For more information see 'LICENSE.txt'\n\n#pragma once\n\n#include "Core/STL/Common/Types.h"\n#include "Core/STL/Common/UMax.h"\n\nnamespace GX_STL\n{\nnamespace CompileTime\n{\n using wchar = GXTypes::wchar;\n using byte = GXTypes::byte;\n using ubyte = GXTypes::ubyte;\...
145
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.45, "nodes": 97, "errors": 0, "source_hash": "592f01f1e836d7e4c2d4044702b72a168bd02d3350f98c480e464780a1c72ccc", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,273
c
/* * The device /dev/cryptocop is accessible using this driver using * CRYPTOCOP_MAJOR (254) and minor number 0. */ #ifndef CRYPTOCOP_H #define CRYPTOCOP_H #include <uapi/arch-v32/arch/cryptocop.h> /********** The API to use from inside the kernel. ************/ #include <arch/hwregs/dma.h> typedef enum { cryp...
33.55
124
(translation_unit) "/*\n * The device /dev/cryptocop is accessible using this driver using\n * CRYPTOCOP_MAJOR (254) and minor number 0.\n */\n#ifndef CRYPTOCOP_H\n#define CRYPTOCOP_H\n\n#include <uapi/arch-v32/arch/cryptocop.h>\n\n\n/********** The API to use from inside the kernel. ************/\n\n#include <arch/hwr...
550
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 33.55, "nodes": 396, "errors": 0, "source_hash": "460820e5c255360521de2608cad1c2f5f119a7f1d7dec813a669597248053174", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,274
c
/* * Support for Medifield PNW Camera Imaging ISP subsystem. * * Copyright (c) 2010 Intel Corporation. All Rights Reserved. * * Copyright (c) 2010 Silicon Hive www.siliconhive.com. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License ver...
25.5
171
(translation_unit) "/*\n * Support for Medifield PNW Camera Imaging ISP subsystem.\n *\n * Copyright (c) 2010 Intel Corporation. All Rights Reserved.\n *\n * Copyright (c) 2010 Silicon Hive www.siliconhive.com.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GN...
1,341
1
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 25.5, "nodes": 828, "errors": 0, "source_hash": "0a4045b562f29f9e52652a56089bdf1301f16f45b2335668e022b3c713f67dce", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,275
c
/***************************************************************************/ /* Copyright (C) 2008-2021 <NAME> */ /***************************************************************************/ #if !defined(UtMacros_H) #define UtMacros_H #define MArrayLen(Array) (sizeof(Array) / sizeo...
49.28
18
(translation_unit) "/***************************************************************************/\n/* Copyright (C) 2008-2021 <NAME> */\n/***************************************************************************/\n\n#if !defined(UtMacros_H)\n#define UtMacros_H\n\n#define MArrayLen(Ar...
63
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 49.28, "nodes": 42, "errors": 0, "source_hash": "e2623ffb3ae767662f95226921314ea688d92aee7077e4e8dfad8724378c9c66", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
12,276
c
/* * --------------------------------------------------------------------------- * Megha Operating System V2 - x86 Kernel - Basic I/O routines. * * This is not and never going to be a full featured VGA text mode driver. * Functions here will be limited to prints or printf like functions. * NOTE: Actual VGA driver will ...
40.75
16
(translation_unit) "/*\n* ---------------------------------------------------------------------------\n* Megha Operating System V2 - x86 Kernel - Basic I/O routines.\n*\n* This is not and never going to be a full featured VGA text mode driver.\n* Functions here will be limited to prints or printf like functions.\n* NOT...
30
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 40.75, "nodes": 21, "errors": 0, "source_hash": "bcb422cbd4aed56e2203c7da83c646758fea639068fceb26a3b436eabc5ddc88", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,277
c
//----------------------------------------------------------------------------- // MurmurHash3 was written by <NAME>, and is placed in the public // domain. The author hereby disclaims copyright to this source code. #ifndef _MURMURHASH3_H_ #define _MURMURHASH3_H_ //----------------------------------------------------...
39.25
51
(translation_unit) "//-----------------------------------------------------------------------------\n// MurmurHash3 was written by <NAME>, and is placed in the public\n// domain. The author hereby disclaims copyright to this source code.\n\n#ifndef _MURMURHASH3_H_\n#define _MURMURHASH3_H_\n\n//-------------------------...
231
3
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 39.25, "nodes": 186, "errors": 0, "source_hash": "19b3087373c3df235a317adb702a3ac92f79802a0e80cb11b581e4dedaf2443d", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,278
c
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #ifndef _GFXTEXTUREOBJECT_H_ #define _GFXTEXTUREOBJECT_H_ #ifndef _REFBASE_H_ #include "core/util/refBase.h" #endif #ifndef _MPOINT3_H_ #include "math/mPoint3.h" #endif #ifndef _GFXENUMS_H_ #include ...
38.52
163
(translation_unit) "// Copyright information can be found in the file named COPYING\n// located in the root directory of this distribution.\n\n#ifndef _GFXTEXTUREOBJECT_H_\n#define _GFXTEXTUREOBJECT_H_\n\n#ifndef _REFBASE_H_\n#include "core/util/refBase.h"\n#endif\n#ifndef _MPOINT3_H_\n#include "math/mPoint3.h"\n#endif...
894
37
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 38.52, "nodes": 497, "errors": 0, "source_hash": "03c4230ede03938c630ae812016618c3166bc0ad087a66e0dd33d666d9bd4fde", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _GFXT...
12,279
c
// // ANExampleTableViewCell.h // Alister // // Created by <NAME> on 7/1/16. // Copyright © 2016 <NAME>. All rights reserved. // #import "ANBaseTableViewCell.h" @interface ANExampleTableViewCell : ANBaseTableViewCell @end
21.6
10
(translation_unit) "//\n// ANExampleTableViewCell.h\n// Alister\n//\n// Created by <NAME> on 7/1/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import "ANBaseTableViewCell.h"\n\n@interface ANExampleTableViewCell : ANBaseTableViewCell\n\n@end\n" (comment) "//" (comment) "// ANExampleTableViewCell...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.6, "nodes": 9, "errors": 0, "source_hash": "bb6ffb97087ea2afc41111870aed95c3de91d1c32e53b75994e5157ba833086f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"ANB...
12,280
c
#if 0 mini_buf 256 mini_start mini_open mini_printf mini_itodec mini_atoi mini_fork mini_INCLUDESRC return #endif int main(int argc, char**argv){ int fd = open( "tmp.txt", O_RDWR|O_CREAT ); int fd2 = open( "hello.c", O_RDONLY ); //long int offset = 20; //sendfile(STDOUT_FILENO,fd,&offset,19); //while ( sendf...
19.4
20
(translation_unit) "#if 0\nmini_buf 256\nmini_start\nmini_open\nmini_printf\nmini_itodec\nmini_atoi\nmini_fork\nmini_INCLUDESRC\nreturn\n#endif\n\nint main(int argc, char**argv){\n int fd = open( "tmp.txt", O_RDWR|O_CREAT );\n int fd2 = open( "hello.c", O_RDONLY );\n //long int offset = 20;\n //sendfile(STDOUT_FILE...
105
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.4, "nodes": 65, "errors": 0, "source_hash": "8374d26018dafd1192457ee61833bcb5f2dacf156177edb6dab0399ef2d2e93c", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if 0\nmini_...
12,281
c
/************* * Header file for interp.c * 1999 <NAME> ************/ #ifndef ngspice_INTERP_H #define ngspice_INTERP_H void lincopy(struct dvec *ov, double *newscale, int newlen, struct dvec *oldscale); #endif
22.89
9
(translation_unit) "/*************\n * Header file for interp.c\n * 1999 <NAME>\n ************/\n\n#ifndef ngspice_INTERP_H\n#define ngspice_INTERP_H\n\nvoid lincopy(struct dvec *ov, double *newscale, int newlen, struct dvec *oldscale);\n\n\n#endif\n" (comment) "/*************\n * Header file for interp.c\n * 1999 <N...
42
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.89, "nodes": 34, "errors": 0, "source_hash": "717ba011b3d1532e415ac555c8b09b9a75a92e439337659f6ea698beebc01089", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef n...
12,282
c
#ifndef LLVMREWRITER_COLOR_MAP_H #define LLVMREWRITER_COLOR_MAP_H #include <vector> namespace basegraph { enum Color { WHITE = 0, GRAY = 1, GREEN = 2, BLACK = 3 }; class ColorMap { typedef long unsigned int Vertex; std::vector<uint8_t> colors; // long min_pos = 0; // long max_pos = -1; public: ...
28.34
61
(translation_unit) "#ifndef LLVMREWRITER_COLOR_MAP_H\n#define LLVMREWRITER_COLOR_MAP_H\n\n#include <vector>\n\nnamespace basegraph {\n\n enum Color {\n WHITE = 0,\n GRAY = 1,\n GREEN = 2,\n BLACK = 3\n };\n\n\n class ColorMap {\n typedef long unsigned int Vertex;\n std::vector<uint8_t> colors;\n // long min_pos ...
489
7
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 28.34, "nodes": 312, "errors": 0, "source_hash": "ff5b424719406d86ee12023d1f33e4ad423e78008749ae7591f936f1f8d6261c", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,283
c
#ifndef _FLOAT_H #define _FLOAT_H #ifdef __cplusplus extern "C" { #endif extern int __flt_rounds; #define FLT_ROUNDS __flt_rounds int __fltrounds(); #define FLT_RADIX 2 #define FLT_MANT_DIG 24 #define FLT_EPSILON 1.192092896E-07F #define FLT_DIG 6 #define FLT_MIN_EXP (-125) #define FLT_MIN 1.175494351E-38F #defin...
25.68
40
(translation_unit) "#ifndef _FLOAT_H\n#define _FLOAT_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern int __flt_rounds;\n#define FLT_ROUNDS __flt_rounds\n\nint __fltrounds();\n\n#define FLT_RADIX 2\n#define FLT_MANT_DIG 24\n#define FLT_EPSILON 1.192092896E-07F\n#define FLT_DIG 6\n#define FLT_MIN_EXP (-125)\n#de...
157
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 25.68, "nodes": 146, "errors": 0, "source_hash": "33ef252a519a17bce8600eabb9abfeda2bf05e03d08eb75c09d9dca9e9eede64", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,284
c
#ifndef __NICE_NET___ #define __NICE_NET___ #include "Service.h" #include "HttpServer.h" #include "Tcp.h" #include "Log.h" #include "Clock.h" #include "Kcp.h" #include "CopyablePtr.hpp" #include "Common.hpp" #endif
18.55
11
(translation_unit) "#ifndef __NICE_NET___\n#define __NICE_NET___\n\n#include "Service.h"\n#include "HttpServer.h"\n#include "Tcp.h"\n#include "Log.h"\n#include "Clock.h"\n#include "Kcp.h"\n#include "CopyablePtr.hpp"\n#include "Common.hpp"\n\n#endif\n" (preproc_ifdef) "#ifndef __NICE_NET___\n#define __NICE_NET___\n\n#...
56
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.55, "nodes": 31, "errors": 0, "source_hash": "ed18556c311723adda4d66f8a6ac2fcac7ac27b8b96f9475b38e7f352fce53e1", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,285
c
#ifndef ASCIIMG_ARGPARSE_H_INCLUDED #define ASCIIMG_ARGPARSE_H_INCLUDED #include <cstddef> struct env_t { size_t width; size_t height; float threshold; bool invert; const char *filepath; env_t(); }; int setup(int argc, char **argv, env_t *env); #endif /* ASCIIMG_ARGPA...
22.79
14
(translation_unit) "#ifndef ASCIIMG_ARGPARSE_H_INCLUDED\n#define ASCIIMG_ARGPARSE_H_INCLUDED\n\n#include <cstddef>\n\nstruct env_t\n{\n size_t width;\n size_t height;\n float threshold;\n bool invert;\n const char *filepath;\n\n env_t();\n};\n\nint setup(int argc, char **argv, e...
76
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.79, "nodes": 55, "errors": 0, "source_hash": "dd70c8dd0f9d6527c3d0e0fd269a693a5aabc3467cae2cc401117949f2332c7c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,286
c
/****************************************************************************** * HTTP module for NodeMCU * <EMAIL> * 2015-12-29 *******************************************************************************/ #include <c_stdlib.h> #include "module.h" #include "lauxlib.h" #include "platform.h" #include "cpu_esp8266....
30.17
239
(translation_unit) "/******************************************************************************\n * HTTP module for NodeMCU\n * <EMAIL>\n * 2015-12-29\n*******************************************************************************/\n#include <c_stdlib.h>\n#include "module.h"\n#include "lauxlib.h"\n#include "platfo...
2,151
0
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 30.17, "nodes": 1231, "errors": 0, "source_hash": "53b2bbada11d902dfd9e59af61512c787daa7898e0c1c13d2377029e56e8afae", "categorized_nodes": 814}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
12,287
c
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/syscall.h> /* For SYS_xxx definitions */ int main(int argc, char **argv) { char *cptr; int n = 4096; cptr = malloc(n); memset(cptr, 0xaa, n); free(cptr); cptr = sbrk(4096); memset(cptr, 0xaa, 4096); cptr = (void *) syscall(1...
22.89
19
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <sys/syscall.h> /* For SYS_xxx definitions */\n\nint\nmain(int argc, char **argv)\n{\n char *cptr;\n int n = 4096;\n\n cptr = malloc(n);\n memset(cptr, 0xaa, n);\n free(cptr);\n\n cptr = sbrk(4096);\n memset(cptr, 0xaa,...
153
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.89, "nodes": 97, "errors": 0, "source_hash": "428d8dba90f9c9c88206f1be4edab41ff81e7c73da5dc3fe0e1ba57837bcf38e", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,288
c
// matched-filter.h : main header file for the PROJECT_NAME application // #pragma once #ifndef __AFXWIN_H__ #error "include 'pch.h' before including this file for PCH" #endif #include "resource.h" // main symbols // CMatchedFilterApp: // See matched-filter.cpp for the implementation of this clas...
17.83
30
(translation_unit) "// matched-filter.h : main header file for the PROJECT_NAME application \n// \n \n#pragma once \n \n#ifndef __AFXWIN_H__ \n#error "include 'pch.h' before including this file for PCH" \n#endif \n \n#include "resource.h" // main symbols \n \n// CMatchedFilterApp: \n// See matched-filter.cpp for...
73
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 17.83, "nodes": 37, "errors": 0, "source_hash": "5f6e92cc9965b53688a3d9916be3a132cbd4e92f11e3e96448b0b2cd77752f8f", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,289
c
#include <stdlib.h> #include <string.h> #include <stdint.h> #include "hashmap.h" #include "hash.h" #include "util.h" struct hash_elem { void *key; void *data; unsigned int hash_val; unsigned int probe_count; }; struct hashmap { struct hash_elem *table; hash_fn hash; hashmap_compare comp; ...
29.71
305
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n#include "hashmap.h"\n#include "hash.h"\n#include "util.h"\n\nstruct hash_elem {\n void *key;\n void *data;\n unsigned int hash_val;\n unsigned int probe_count;\n};\n\nstruct hashmap {\n struct hash_elem *table;\n hash_...
3,341
0
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 29.71, "nodes": 2158, "errors": 0, "source_hash": "38796059de4607c38150ed05c136bc06c69cee8c1dbceb0697c9eeac805a6a62", "categorized_nodes": 1599}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
12,290
c
// // BodyFitConnection.h // FJBLEFramework // // Created by 陈泸华 on 16/4/4. // Copyright © 2016年 陈泸华. All rights reserved. // #import <Foundation/Foundation.h> #import "FBDeviceConnection.h" @class FBDeviceConnection; @class BodyFitConnection; @protocol BodyFitConnectionDelegate <NSObject> @required // callba...
32.16
31
(translation_unit) "//\n// BodyFitConnection.h\n// FJBLEFramework\n//\n// Created by 陈泸华 on 16/4/4.\n// Copyright © 2016年 陈泸华. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "FBDeviceConnection.h"\n\n\n@class FBDeviceConnection;\n@class BodyFitConnection;\n\n@protocol BodyFitConnectionDelega...
270
36
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 32.16, "nodes": 177, "errors": 0, "source_hash": "15a87d23d18f6135566456fa51fb3443fdb016c6f0e6eccf29c5f4856cf98ba5", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Fou...
12,291
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" @class ABtestPoint, NSString; @interface ABtestPointPeriod : NSObject { unsigned long long checkID; struct timeval tvStart; NSString *actionResult; ...
28.09
33
(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@class ABtestPoint, NSString;\n\n@interface ABtestPointPeriod : NSObject\n{\n unsigned long long checkID;\n struct timeval tvStart;...
282
19
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.09, "nodes": 180, "errors": 0, "source_hash": "91a33ab32060a49a38c89610011292e50aeaf4a52df97baee57467cdf673c8c7", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
12,292
c
#pragma once #include <stdint.h> //< uint32_t #include <stdbool.h> //< bool, true, false extern char __origin_APP_FLASH[], __length_APP_FLASH[]; ///< @note Defined in .ld linker extern char __origin_BOOT_FLASH[], __length_BOOT_FLASH[]; ///< @note Defined in .ld linker extern char __origin_USERPAGE_FLASH[], __length_U...
40.27
37
(translation_unit) "#pragma once\n\n#include <stdint.h> //< uint32_t\n#include <stdbool.h> //< bool, true, false\n\nextern char __origin_APP_FLASH[], __length_APP_FLASH[]; ///< @note Defined in .ld linker\nextern char __origin_BOOT_FLASH[], __length_BOOT_FLASH[]; ///< @note Defined in .ld linker\nextern char __origin_U...
288
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.27, "nodes": 171, "errors": 0, "source_hash": "f8d2ed412a9a0999f4c3dbc77e7207eaef2fd856a5e0cc829cd24ad5be75bf1c", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,293
c
#ifndef __L1Trigger_L1THGCal_HGCalVFELinearizationImpl_h__ #define __L1Trigger_L1THGCal_HGCalVFELinearizationImpl_h__ #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h" #include "DataFormats/HGCDigi/interface/HGCDigiCollections.h" #include <arra...
29.97
30
(translation_unit) "#ifndef __L1Trigger_L1THGCal_HGCalVFELinearizationImpl_h__\n#define __L1Trigger_L1THGCal_HGCalVFELinearizationImpl_h__\n\n#include "FWCore/ParameterSet/interface/ParameterSet.h"\n#include "L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h"\n\n#include "DataFormats/HGCDigi/interface/HGCDigiColl...
168
7
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.97, "nodes": 102, "errors": 0, "source_hash": "66939d865f9515db7826293215cc55603414398563e3cf2d0fdf579bb9f9b0a8", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,294
c
#include <GL/gl.h> #include <GL/glu.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <AppKit/psops.h> extern void set_viewpoint(float, float, float); extern void draw_scene(int,int,int); extern void make_matrix(void); extern void outline_scene(void); extern void my_init(float width, float height);
28
11
(translation_unit) "#include <GL/gl.h>\n#include <GL/glu.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <AppKit/psops.h>\n\nextern void set_viewpoint(float, float, float);\nextern void draw_scene(int,int,int);\nextern void make_matrix(void);\nextern void outline_scene(void);\nextern void my_in...
96
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.0, "nodes": 75, "errors": 0, "source_hash": "13b59c3ab975ac3cd511f9b5eba1d7db03a3d8799e623fe1554a5da7fb80d1fe", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,295
c
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // license: structural_mechanics_applic...
31.76
107
(translation_unit) "// KRATOS ___| | | |\n// \___ \ __| __| | | __| __| | | __| _` | |\n// | | | | | ( | | | | ( | |\n// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS\n//\n// License: BSD License\n// license: s...
398
21
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 31.76, "nodes": 207, "errors": 0, "source_hash": "71fb1841231c9e063a73654167912a0494605d3063d3600cd193135a2ceadcca", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
12,296
c
// // FRRecommendedUserHeaderView.h // Friendly // // Created by <NAME> on 03.05.16. // Copyright © 2016 Accucode Inc. All rights reserved. // @protocol FRRecommendedUserHeaderViewDelegate <NSObject> - (void)backSelected; @end @interface FRRecommendedUserHeaderView : UITableViewHeaderFooterView @property (nona...
31.4
15
(translation_unit) "//\n// FRRecommendedUserHeaderView.h\n// Friendly\n//\n// Created by <NAME> on 03.05.16.\n// Copyright © 2016 Accucode Inc. All rights reserved.\n//\n\n@protocol FRRecommendedUserHeaderViewDelegate <NSObject>\n\n- (void)backSelected;\n\n@end\n\n@interface FRRecommendedUserHeaderView : UITableVie...
96
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.4, "nodes": 63, "errors": 0, "source_hash": "00e6f3430562d779d75cfa679bbb42c9af20e9895ac9218b8698d5f758eff9a6", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol FRRecomm...
12,297
c
/* * Programacao de Computadores e Algoritmos * Trabalho 4 * lista1.9.c * * Equipe: * * <NAME> * <NAME> * <NAME> * Richardson */ #include <stdio.h> #include <stdlib.h> #include "bubble_sort.h" int main( int argc, const char *argv[] ) { /* Imprimindo números ordenados */ int *vetor; /* Declara ponteiro para ...
21.05
37
(translation_unit) "/*\n* Programacao de Computadores e Algoritmos\n* Trabalho 4\n* lista1.9.c\n*\n* Equipe:\n*\n* <NAME>\n* <NAME>\n* <NAME>\n* Richardson \n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include "bubble_sort.h"\n\nint main( int argc, const char *argv[] ) \n{\n /* Imprimindo números ordenados */\...
210
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 21.05, "nodes": 102, "errors": 0, "source_hash": "65ac21db0855ca87ef2007eff24cafaedb9952078bc9bc6401da3fa2967a7288", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,298
c
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 6.00.0361 */ /* Compiler settings for ivssccenlistmentpathtranslation.idl: Oicf, W1, Zp8, env=Win32 (32b run) protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_...
41.55
152
(translation_unit) "/* this ALWAYS GENERATED file contains the definitions for the interfaces */\n\n\n /* File created by MIDL compiler version 6.00.0361 */\n/* Compiler settings for ivssccenlistmentpathtranslation.idl:\n Oicf, W1, Zp8, env=Win32 (32b run)\n protocol : dce , ms_ext, c_ext, robust\n error check...
743
24
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 41.55, "nodes": 536, "errors": 0, "source_hash": "e0321037f3e659805d5fcf13621c4a30b3c2130bf7f49a835f50fe7b6103cd42", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,299