language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "NESMFilterSessionState.h" @interface NESMFilterSessionStateRunning : NESMFilterSessionState { } - (void)handleUpdateConfiguration; // IMP=0x00...
34.47
15
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "NESMFilterSessionState.h"\n\n@interface NESMFilterSessionStateRunning : NESMFilterSessionState\n{\n}\n\n- (void)handle...
86
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.47, "nodes": 45, "errors": 0, "source_hash": "d4025686dc5f5e47f6f6f39d420be8a85301706b25dddcc9760057e36581fab3", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,500
c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2013 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
22.48
133
(translation_unit) "/*\n * RELIC is an Efficient LIbrary for Cryptography\n * Copyright (C) 2007-2013 RELIC Authors\n *\n * This file is part of RELIC. RELIC is legal property of its developers,\n * whose names are not listed here. Please refer to the COPYRIGHT file\n * for contact information.\n *\n * RELIC is free so...
859
2
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 22.48, "nodes": 480, "errors": 0, "source_hash": "506e8aa27d4c2e3e5a9f8b08a06318439e3bc81918f8b13626e1f7921223d45a", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,501
c
/* Lightmetrica - A modern, research-oriented renderer Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitat...
40.69
107
(translation_unit) "/*\n Lightmetrica - A modern, research-oriented renderer\n\n Copyright (c) 2015 <NAME>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction...
885
52
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 40.69, "nodes": 563, "errors": 0, "source_hash": "5552d9389e8d512e13cd04d595d85ef88e5ccc5b3fc523e01cd521fbc3c8c852", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,502
c
#pragma once #include <libSpace/src/Utils/DynamicClassRegister.h> #include <Foundation/InterfaceMap.h> namespace MoonGlare { class ModuleManager; using SharedModuleManager = std::shared_ptr<ModuleManager>; using WeakModuleManager = std::weak_ptr<ModuleManager>; class iModule : public std::enable_shared_from_this<iM...
33.03
118
(translation_unit) "#pragma once\n\n#include <libSpace/src/Utils/DynamicClassRegister.h>\n#include <Foundation/InterfaceMap.h>\n\nnamespace MoonGlare {\n\nclass ModuleManager;\nusing SharedModuleManager = std::shared_ptr<ModuleManager>;\nusing WeakModuleManager = std::weak_ptr<ModuleManager>;\n\nclass iModule : public ...
1,287
82
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 33.03, "nodes": 787, "errors": 0, "source_hash": "1d33fd5ddf91b39cecd4b389f3a97e612b58168939422bd2d958db0088797f66", "categorized_nodes": 527}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,503
c
/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list */ /** * \file t_pck.h * \brief data types for packers * \author tkieslich * \copyright See Copyright notice at the end of t.h */ // includes the Lua headers #include "lua.h" #include "lualib.h" #include "lauxlib.h" #define T_PCK_IDNT "pck" #define T_P...
26.28
18
(translation_unit) "/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list\n*/\n/**\n * \file t_pck.h\n * \brief data types for packers\n * \author tkieslich\n * \copyright See Copyright notice at the end of t.h\n */\n\n// includes the Lua headers\n#include "lua.h"\n#include "lualib.h"\n#include "lauxlib.h"\n\n#define...
46
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.28, "nodes": 33, "errors": 0, "source_hash": "e1dc8ff8755e0118fe6246ed24ce560e8274c8bd4c1ff80852a0aba1f3559ea1", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,504
c
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2003-2008 <NAME> & Open Source Development Labs, Inc. * * Based on TPC-C Standard Specification Revision 5.0 Clause 2.8.2. */ #ifndef _DBT2COMMON_H_ #defin...
28.4
77
(translation_unit) "/*\n * This file is released under the terms of the Artistic License. Please see\n * the file LICENSE, included in this package, for details.\n *\n * Copyright (C) 2003-2008 <NAME> & Open Source Development Labs, Inc.\n *\n * Based on TPC-C Standard Specification Revision 5.0 Clause 2.8.2.\n */\n\n...
309
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 28.4, "nodes": 230, "errors": 0, "source_hash": "ba198c68055961feb063d52d246690b353785b985439a593840f06140c340895", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,505
c
#ifndef FILMREPOSITORY_H #define FILMREPOSITORY_H #include <list> #include <QStringList> #include <QDate> class FilmRepository { public: struct FilmInfo { int id; QString name; QDate date; QString desc; int genre; bool seen; bool liked; bool nowP...
21.4
42
(translation_unit) "#ifndef FILMREPOSITORY_H\n#define FILMREPOSITORY_H\n\n#include <list>\n#include <QStringList>\n#include <QDate>\n\nclass FilmRepository\n{\npublic:\n struct FilmInfo\n {\n int id;\n QString name;\n QDate date;\n QString desc;\n int genre;\n bool seen;\...
265
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.4, "nodes": 174, "errors": 0, "source_hash": "5e486c90eecacad376193288341bd49f5abf4ab32b75fa6ce3e4df0f5a664e56", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,506
c
#pragma once #include <string> #include <vector> /// Contains file data typedef std::vector<std::uint8_t> FileData; /// Reads the contents of a file into a vector. /// @param filename The file name. /// @param out_data Reference to the struct which will hold the file data. /// @return false if there was an error l...
32.92
12
(translation_unit) "#pragma once\n\n#include <string>\n#include <vector>\n\n\n/// Contains file data\ntypedef std::vector<std::uint8_t> FileData;\n\n\n/// Reads the contents of a file into a vector.\n/// @param filename The file name.\n/// @param out_data Reference to the struct which will hold the file data.\n/// @ret...
54
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.92, "nodes": 32, "errors": 0, "source_hash": "230052c728c81c48b5e9fcd409057b280b2c0e34f1839feea917aa93327a40c5", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,507
c
#pragma once #ifndef __ASSEMBLER__ void load_idt(void *); uint64_t read_cr0(); uint64_t read_cr2(); uint64_t read_cr3(); void write_cr3(uint64_t); uint64_t read_cr4(); #endif #define CR0_MP (1<<1) #define CR0_EM (1<<2) #define CR4_OSFXSR (1<<9) #define CR4_OSXMMEXCPT (1<<10) #define RFLAGS_IF (1<<9)
20.5
14
(translation_unit) "#pragma once\n\n#ifndef __ASSEMBLER__\nvoid load_idt(void *);\nuint64_t read_cr0();\nuint64_t read_cr2();\nuint64_t read_cr3();\nvoid write_cr3(uint64_t);\nuint64_t read_cr4();\n#endif\n\n#define CR0_MP (1<<1)\n#define CR0_EM (1<<2)\n\n#define CR4_OSFXSR (1<<9)\n#define CR4_OSXMMEXCPT (1<<10)\n\n#de...
82
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.5, "nodes": 63, "errors": 0, "source_hash": "fdd89651460a43a8d667dae3e0f4fcfed194cf81d3cf98a39d7d51b83c0db0d3", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,508
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSCoding.h" #import "NSCopying.h" @class NSString; @interface QQPBPhoneInfoModel : NSObject <NSCoding, NSCopying> { NSString *_country_code; NSStr...
34.17
35
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSCoding.h"\n#import "NSCopying.h"\n\n@class NSString;\n\n@interface QQPBPhoneInfoModel : NSObject <NSCoding, NSCopying>\n{\n ...
306
28
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.17, "nodes": 199, "errors": 0, "source_hash": "f3b3714389669468a8c8a234f129120e77b87f51ced73a68ede345a984b01233", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,509
c
/* Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 Copyright (C) 2021 <NAME> <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #ifndef QBLUETOOTHTRANSFERREPLYSLOTS_H #define QBLUETOOTHTRANSFERREPLYSLOTS_H...
23.93
44
(translation_unit) "/* \n \n Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 \n \n Copyright (C) 2021 <NAME> <marcosgambeta AT outlook DOT com> \n \n*/ \n \n/* \n DO NOT EDIT THIS FILE - the content was created using a source code generator \n*/ \n \n#ifndef QBLUETOOTHTRANSFERREPLYSLOTS_H \n#defi...
181
4
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.93, "nodes": 119, "errors": 0, "source_hash": "e32b8c5a735288b8b0b0790b76217675ef81d20b9cdb73a8a4e1229059a945c6", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,510
c
/* * @Author: V4kst1z (<EMAIL>) * @Date: 2021-07-22 16:10:06 * @LastEditors: V4kst1z * @Description: 服务端头文件 * @FilePath: /lightsocks/include/server/server.h */ #ifndef LIGHTSOCKS_INCLUDE_SERVER_SERVER_H_ #define LIGHTSOCKS_INCLUDE_SERVER_SERVER_H_ #include "Server.h" #include "encrypt/encrypt_base.h" class Cli...
32.61
75
(translation_unit) "/*\n * @Author: V4kst1z (<EMAIL>)\n * @Date: 2021-07-22 16:10:06\n * @LastEditors: V4kst1z\n * @Description: 服务端头文件\n * @FilePath: /lightsocks/include/server/server.h\n */\n\n#ifndef LIGHTSOCKS_INCLUDE_SERVER_SERVER_H_\n#define LIGHTSOCKS_INCLUDE_SERVER_SERVER_H_\n\n#include "Server.h"\n#include "en...
678
47
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 32.61, "nodes": 471, "errors": 0, "source_hash": "943383e86119c2ff762c3f904199cb61e84666b6685c2dcf72457ed32a746415", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "TSOCKS_INCLUDE...
7,511
c
#ifndef SYSTEM_H__ #define SYSTEM_H__ #include <vector> #include "../core/Guid.h" #include "../core/Input.h" #include "../core/Object.h" #include "../core/Time.h" #include "../core/Types.h" namespace PhysicsEngine { class System : public Object { protected: size_t mOrder; World *mWorld; public: boo...
23.52
40
(translation_unit) "#ifndef SYSTEM_H__\n#define SYSTEM_H__\n\n#include <vector>\n\n#include "../core/Guid.h"\n#include "../core/Input.h"\n#include "../core/Object.h"\n#include "../core/Time.h"\n#include "../core/Types.h"\n\nnamespace PhysicsEngine\n{\nclass System : public Object\n{\n protected:\n size_t mOrder;\n\...
290
22
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.52, "nodes": 178, "errors": 0, "source_hash": "5adc4cb74c184fcd9536171b985075e222584445f2aec2b6b1e05a024870daef", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SYSTEM...
7,512
c
/* * Copyright 2018-2021 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #ifndef COMPACTION_SSE3_H #define COMPACTION_SSE3_H #endif //COMPACTION_SSE3_H
24.33
9
(translation_unit) "/*\n * Copyright 2018-2021 Redis Labs Ltd. and Contributors\n *\n * This file is available under the Redis Labs Source Available License Agreement\n */\n#ifndef COMPACTION_SSE3_H\n#define COMPACTION_SSE3_H\n\n\n#endif //COMPACTION_SSE3_H\n" (comment) "/*\n * Copyright 2018-2021 Redis Labs Ltd. and...
10
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.33, "nodes": 7, "errors": 0, "source_hash": "acb902d83cfb782e3d9d52c75f68406386e0653a412b64fe33157bc73c90bb15", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COM...
7,513
c
/* ** Copyright 2018 Bloomberg Finance L.P. ** ** 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...
33.38
88
(translation_unit) "/*\n** Copyright 2018 Bloomberg Finance L.P.\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 ...
538
46
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 33.38, "nodes": 357, "errors": 0, "source_hash": "7dab688f31f2618b0b3472dbc4befb67547bc4d2e8b787837441206f1153b3a6", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,514
c
// // Common.h // BGCollectionView // // Created by 杨社兵 on 15/10/25. // Copyright © 2015年 FAL. All rights reserved. // #ifndef Common_h #define Common_h ////color //#define UIColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 bl...
28.84
19
(translation_unit) "//\n// Common.h\n// BGCollectionView\n//\n// Created by 杨社兵 on 15/10/25.\n// Copyright © 2015年 FAL. All rights reserved.\n//\n\n#ifndef Common_h\n#define Common_h\n////color\n//#define UIColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgb...
25
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.84, "nodes": 7, "errors": 0, "source_hash": "3b97fb269f4406461290eb917090a512628fc18dce834cc8352851f8edaed53c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ommon_h\n#...
7,515
c
#include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> // 牌面 const char ranks[] = {'2', '3', '4', '5', '6', '7', '8', '9', 't', 'j', 'q', 'k', 'a'}; // 花色 const char suits[] = {'c', 'd', 'h', 's'}; #define NUM_CARDS 5 #define NUM_RANKS ((int)(sizeof(ranks) / sizeof(ranks...
24.23
178
(translation_unit) "#include <limits.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n// 牌面\nconst char ranks[] = {'2', '3', '4', '5', '6', '7', '8',\n '9', 't', 'j', 'q', 'k', 'a'};\n// 花色\nconst char suits[] = {'c', 'd', 'h', 's'};\n\n#define NUM_CARDS 5\n#define NUM_RANKS ((i...
1,532
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 24.23, "nodes": 861, "errors": 0, "source_hash": "5d548bd50ffcf1e3c1f5336df53240c8ac4f3f96c998374c3811b3f00d45f59d", "categorized_nodes": 546}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,516
c
/* * triCamera.c: Code for Camera * This file is part of the "tri Engine". * * Copyright (C) 2007 tri * Copyright (C) 2007 <NAME> 'Raphael' <<EMAIL>> * * $Id: $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
26.36
255
(translation_unit) "/* \n * triCamera.c: Code for Camera \n * This file is part of the "tri Engine". \n * \n * Copyright (C) 2007 tri \n * Copyright (C) 2007 <NAME> 'Raphael' <<EMAIL>> \n * \n * $Id: $ \n * \n * This program is free software; you can redistribute it and/or modify \n * it under the terms of the GNU Ge...
2,100
0
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 26.36, "nodes": 1224, "errors": 0, "source_hash": "35c1397215462175a9d6aed8ce0dc20d7bca1a7a47d40fcf50d3882789b7c57e", "categorized_nodes": 992}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,517
c
/* $Id$ */ /* * %GPL_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2015, Google, Inc. * Copyright (c) 2006-2015, Pittsburgh Supercomputing Center (PSC). * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under...
34.04
96
(translation_unit) "/* $Id$ */\n/*\n * %GPL_START_LICENSE%\n * ---------------------------------------------------------------------\n * Copyright 2015, Google, Inc.\n * Copyright (c) 2006-2015, Pittsburgh Supercomputing Center (PSC).\n * All rights reserved.\n *\n * This program is free software; you can redistribute ...
406
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 34.04, "nodes": 255, "errors": 0, "source_hash": "ebda0e97e53590440ba9edf0451f196e365473bcf49d276ec8fea2fb30747062", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,518
c
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved #pragma once #...
33.32
34
(translation_unit) "//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF\n//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO\n//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A\n//// PARTICULAR PURPOSE.\n////\n//// Copyright (c) Microsoft Corporation. All rights ...
211
16
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.32, "nodes": 132, "errors": 0, "source_hash": "45763066b02e4fe1d326b6a523557ccb3f7e866d9bdebb7e5f0aff495b2bb603", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,519
c
// // MBGoodsDetailInfoView.h // MB // // Created by <NAME> on 14/11/23. // Copyright (c) 2014年 xxx Innovation Co. Ltd. All rights reserved. // #import <UIKit/UIKit.h> @class MBProductModel; @interface MBGoodsDetailInfoView : UIView - (instancetype)initWithFrame:(CGRect)frame model:(MBProductModel *)model; @en...
25.42
12
(translation_unit) "//\n// MBGoodsDetailInfoView.h\n// MB\n//\n// Created by <NAME> on 14/11/23.\n// Copyright (c) 2014年 xxx Innovation Co. Ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class MBProductModel;\n\n@interface MBGoodsDetailInfoView : UIView\n\n- (instancetype)initWithFrame:(CGRect)frame m...
57
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.42, "nodes": 33, "errors": 0, "source_hash": "71206b3f2cf24a48ebaecafe25c1ff9487af6da655662a6c75a2e68b86eeac4d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
7,520
c
// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
36.85
200
(ERROR) "// ======================================================================== //\n// Copyright 2009-2019 Intel Corporation //\n// //\n// Licensed under the Apache License, Version 2.0 (the "License"); ...
838
39
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 36.85, "nodes": 504, "errors": 0, "source_hash": "c4fa47dc065aa1d873086e2942367d94e63f46dc1449ab7a82a8b3b403977d05", "categorized_nodes": 322}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// =====================...
7,521
c
/* Copyright (c) 2013 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "xray/xray_priv.h" /* Note name demangling requires linking against libstdc++ */ /* If your platform does not support __c...
38.95
21
(translation_unit) "/* Copyright (c) 2013 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file. */\n\n#include "xray/xray_priv.h"\n\n/* Note name demangling requires linking against libstdc++ */\n/* If your pl...
140
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 38.95, "nodes": 92, "errors": 0, "source_hash": "92edcd85b535f35d397a52de75851e6122a93041bc7b709ab0cd18d1d4ab77ca", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,522
c
#include "print.h" #include "init.h" #include "thread.h" #include "interrupt.h" #include "console.h" #include "process.h" #include "syscall-init.h" #include "syscall.h" void k_thread_a(void*); void k_thread_b(void*); void u_prog_a(void); void u_prog_b(void); int prog_a_pid = 0, prog_b_pid = 0; int main(void) { put...
23.08
59
(translation_unit) "#include "print.h"\n#include "init.h"\n#include "thread.h"\n#include "interrupt.h"\n#include "console.h"\n#include "process.h"\n#include "syscall-init.h"\n#include "syscall.h"\n\nvoid k_thread_a(void*);\nvoid k_thread_b(void*);\nvoid u_prog_a(void);\nvoid u_prog_b(void);\nint prog_a_pid = 0, prog_b_...
511
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 23.08, "nodes": 264, "errors": 0, "source_hash": "304b52212f92a9304bd25cb9139583deb1284523ff1f0cbdafd1bacf8c587b34", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,523
c
// // PullToRefreshScrollView.h // PullToRefresh // // Created by <NAME> on 2/27/12. // Copyright (c) 2012 <NAME>, Simplicity.io. // Copyright (c) 2011 by <NAME>. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (th...
32.16
73
(translation_unit) "// \n// PullToRefreshScrollView.h \n// PullToRefresh \n// \n// Created by <NAME> on 2/27/12. \n// Copyright (c) 2012 <NAME>, Simplicity.io. \n \n// Copyright (c) 2011 by <NAME>. \n \n// Permission is hereby granted, free of charge, to any person obtaining a copy \n// of this software and asso...
295
29
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 32.16, "nodes": 190, "errors": 0, "source_hash": "af4afcc6e2986a0624a53a39f4b06724edee4c0ad0efbb76c11c570341f96347", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,524
c
#ifndef SEARCH_H #define SEARCH_H #include "global.h" int flip_count(int pos, ull me, ull op); int how_many_canput(ull me, ull op, int empty[EMPTY_AREA+1]); int final_search(ull me, ull op, int z); int unhash_search(ull me, ull op, int empty[EMPTY_AREA+1], bool suc); int hash_search(ull me, ull op, int empty[EMPTY_AR...
37.7
10
(translation_unit) "#ifndef SEARCH_H\n#define SEARCH_H\n\n#include "global.h"\n\nint flip_count(int pos, ull me, ull op);\nint how_many_canput(ull me, ull op, int empty[EMPTY_AREA+1]);\nint final_search(ull me, ull op, int z);\nint unhash_search(ull me, ull op, int empty[EMPTY_AREA+1], bool suc);\nint hash_search(ull m...
157
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.7, "nodes": 115, "errors": 0, "source_hash": "547226cc9bca9d09e9c70b45ebd9f14a507d621f531f1cd6ec24dd1f1d375680", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,525
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:47:52 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/ATFoundation.framework/ATFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
33.68
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:47:52 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/PrivateFrameworks/ATFoundation.framework/ATFoundation\n* classdump-dyld is licensed under GPLv3,...
86
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.68, "nodes": 56, "errors": 0, "source_hash": "45cf031bd4a458eb9d8c9db3fcc71603de6b770afea190d0b03976e1cc66a26e", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "ypedef...
7,526
c
#pragma once #include <Windows.h> struct UserCmd; struct GlobalVars { const FLOAT realTime; const INT frameCount; const FLOAT absoluteFrameTime; const BYTE pad[4]; const FLOAT currentTime; const FLOAT frameTime; const INT maxClients; const INT tickCount; const FLOAT intervalPerTic...
23.6
15
(translation_unit) "#pragma once\n\n#include <Windows.h>\n\nstruct UserCmd;\n\nstruct GlobalVars {\n const FLOAT realTime;\n const INT frameCount;\n const FLOAT absoluteFrameTime;\n const BYTE pad[4];\n const FLOAT currentTime;\n const FLOAT frameTime;\n const INT maxClients;\n const INT tickCou...
90
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.6, "nodes": 52, "errors": 0, "source_hash": "b445e8a6ce92d30c5cdf5dc2fa84a9f2f755d53190aafa873b4880334ec61667", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,527
c
/*++ Copyright (c) 2019 changeofpace. All rights reserved. Use of this source code is governed by the MIT license. See the 'LICENSE' file for more information. --*/ #pragma once #include <Windows.h> #include "../Common/ioctl.h" _Check_return_ BOOL MouInitializeDeviceStackContext( _Out_opt_ PMOUSE_DEVICE_STAC...
21.29
42
(translation_unit) "/*++\n\nCopyright (c) 2019 changeofpace. All rights reserved.\n\nUse of this source code is governed by the MIT license. See the 'LICENSE' file\nfor more information.\n\n--*/\n\n#pragma once\n\n#include <Windows.h>\n\n#include "../Common/ioctl.h"\n\n_Check_return_\nBOOL\nMouInitializeDeviceStackCont...
143
19
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.29, "nodes": 114, "errors": 0, "source_hash": "4dce5563bad8228ffcc8bc1fd600458769f8673d1c80db05c1baca458a9270bc", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,528
c
#include <stdio.h> int main() { int count, src_router, i, j, k, w, v, min; int cost_matrix[10][10], dist[10], last[10]; int flag[10]; printf("\n Enter the no of routers "); scanf("%d", &count); printf("\n Enter the cost matrix values:"); for (i = 0; i < count; i++) { for (j = 0; ...
24.38
63
(translation_unit) "#include <stdio.h>\nint main()\n{\n int count, src_router, i, j, k, w, v, min;\n int cost_matrix[10][10], dist[10], last[10];\n int flag[10];\n printf("\n Enter the no of routers ");\n scanf("%d", &count);\n printf("\n Enter the cost matrix values:");\n for (i = 0; i < count; i+...
588
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 24.38, "nodes": 321, "errors": 0, "source_hash": "8dcf05c6146bca10a0d7d1003fff6f34ef7404db92a224603ed002ff3f20d496", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,529
c
// ModelImporter.h // // 2017/06/02 <NAME>/Real0000 // #ifndef _MODEL_IMPORTER_H_ #define _MODEL_IMPORTER_H_ namespace R { class AnimationData; class ModelData; enum DefaultTextureUsageType { TEXUSAGE_BASECOLOR = 0, TEXUSAGE_METALLIC, TEXUSAGE_ROUGHNESS, TEXUSAGE_NORMAL, TEXUSAGE_HEIGHT, TEXUSAGE_TYPECOUNT };...
25.88
117
(translation_unit) "// ModelImporter.h\n//\n// 2017/06/02 <NAME>/Real0000\n//\n#ifndef _MODEL_IMPORTER_H_\n#define _MODEL_IMPORTER_H_\n\nnamespace R\n{\n\nclass AnimationData;\nclass ModelData;\n\nenum DefaultTextureUsageType\n{\n TEXUSAGE_BASECOLOR = 0,\n TEXUSAGE_METALLIC,\n TEXUSAGE_ROUGHNESS,\n TEXUSAGE_NORMAL,\n T...
1,001
47
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 25.88, "nodes": 589, "errors": 0, "source_hash": "96c57638f68f82a6ba530e15597494c089232fa373794464c06e22c6f0048034", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,530
c
//this file contains only main method and calls its functions from header files "pq2 *" //Practice Question Set 2 #include<stdio.h> #include<stdlib.h> #include"pq2 student(1).h" #include"pq2 book(4).h" #include"pq2 cricket(2).h" #include"pq2 candidate(3).h" #include"pq2 Railway(5).h" int main() { char c;...
21.04
53
(translation_unit) "//this file contains only main method and calls its functions from header files "pq2 *" \n//Practice Question Set 2 \n#include<stdio.h> \n#include<stdlib.h> \n#include"pq2 student(1).h" \n#include"pq2 book(4).h" \n#include"pq2 cricket(2).h" \n#include"pq2 candidate(3).h" \n#include"pq2 Railway(5).h"...
328
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 21.04, "nodes": 176, "errors": 0, "source_hash": "7c4bd7e3e4593f94babd5b2b255191bb2f7c2f532b1c94695fb3217f850fd7eb", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,531
c
#ifndef parallax_h #define parallax_h class plxmap // parallax map { public: unsigned int basemap; // base map unsigned int normmap; // normal map unsigned int heigmap; // height map unsigned int vertexp; // vertex program unsigned int fragmep; // fragment program void AttachTexture(); void AttachProgram(); ...
20.12
17
(translation_unit) "#ifndef parallax_h\n#define parallax_h\n\nclass plxmap // parallax map\n{\npublic:\n unsigned int basemap; // base map\n unsigned int normmap; // normal map\n unsigned int heigmap; // height map\n\n unsigned int vertexp; // vertex program\n unsigned int fragmep; // fragment program\n\n void AttachTe...
87
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.12, "nodes": 55, "errors": 0, "source_hash": "0f5219ad85e45feb4d93daa308068a023f0c67d209d275a7a16c892849b56119", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,532
c
// // ResultViewController.h // SQLCipherSpeed // // Created by <NAME> on 5/30/09. // Copyright Zetetic LLC 2009. All rights reserved. // #import <UIKit/UIKit.h> #import "TestResultCell.h" @interface ResultViewController : UITableViewController { NSArray *results; IBOutlet TestResultCell *resultCell; NSDate...
27.45
20
(translation_unit) "//\n// ResultViewController.h\n// SQLCipherSpeed\n//\n// Created by <NAME> on 5/30/09.\n// Copyright Zetetic LLC 2009. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "TestResultCell.h"\n\n@interface ResultViewController : UITableViewController {\n NSArray *results;\n IBOutlet TestR...
121
14
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.45, "nodes": 81, "errors": 0, "source_hash": "90d6d7c414726052174c6da120f88251ecc48d8ab520284a39650face87a26d8", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,533
c
#ifndef Main_cpp #define Main_cpp #include "Arduino.h" #include <ESP8266WiFi.h> #include <Ticker.h> class ESP_RequestHandler { public: ESP_RequestHandler(); static void reconfigNetworkAP(); static void reconfigNetwork(); static void joinNetwork(); static void blink(); static void switchRela...
21.07
70
(translation_unit) "#ifndef Main_cpp\n#define Main_cpp\n\n#include "Arduino.h"\n#include <ESP8266WiFi.h>\n#include <Ticker.h>\n\nclass ESP_RequestHandler {\n public:\n ESP_RequestHandler();\n static void reconfigNetworkAP();\n static void reconfigNetwork();\n static void joinNetwork();\n static void bl...
487
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 21.07, "nodes": 276, "errors": 0, "source_hash": "223ac8bc545ef92a7229e096549d56b977891f697939739dc7c417c7f8b7e60d", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,534
c
// // NumiOS.h // NumiOS // // Created by <NAME> on 2018. 7. 31.. // Copyright © 2018년 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for NumiOS. FOUNDATION_EXPORT double NumiOSVersionNumber; //! Project version string for NumiOS. FOUNDATION_EXPORT const unsigned char NumiOSVe...
34.69
13
(translation_unit) "//\n// NumiOS.h\n// NumiOS\n//\n// Created by <NAME> on 2018. 7. 31..\n// Copyright © 2018년 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for NumiOS.\nFOUNDATION_EXPORT double NumiOSVersionNumber;\n\n//! Project version string for NumiOS.\nFOUNDATION_E...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.69, "nodes": 16, "errors": 0, "source_hash": "b1164ac236e562a03897705d90e7f16923f114429102f1f025d6a6d6973b4c7e", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,535
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/ptrace.h> #include <sys/wait.h> #include <sys/types.h> #include "gnomeKeyring.h" #include "util.h" // Supported versions and egg pointers GnomeKeyringTarget g_gnomeKeyringTargets[] = { { "3.18.3", (void*)0x...
28.73
208
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <sys/ptrace.h>\n#include <sys/wait.h>\n#include <sys/types.h>\n\n#include "gnomeKeyring.h"\n#include "util.h"\n\n// Supported versions and egg pointers\nGnomeKeyringTarget g_gnomeKeyringTargets[] = {\n {\n ...
1,609
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 28.73, "nodes": 937, "errors": 0, "source_hash": "01647b23c166842a7c5f8a594be55f85c174d6c83252b8f0772db760e24684c8", "categorized_nodes": 581}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,536
c
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
24.22
68
(translation_unit) "/*\n * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/lice...
177
10
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 24.22, "nodes": 84, "errors": 0, "source_hash": "fb633248a494e35881253f4f1d1c1c8be6a3519c8be58c0e57ff287d14717c0e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __ONERT_...
7,537
c
/* * BSD 3-Clause License * * Copyright (c) 2018-2021, Dolby Laboratories * 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 notic...
35.7
152
(translation_unit) "/*\n* BSD 3-Clause License\n*\n* Copyright (c) 2018-2021, Dolby Laboratories\n* All rights reserved.\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* * Redistributions of source code must ret...
385
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 35.7, "nodes": 260, "errors": 0, "source_hash": "1c822ccc1326f2152c1c4fa96a27322666cd80c6009cc924c1e831a67c9f2bcb", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,538
c
#ifndef SCREENCAST_COMMON_H #define SCREENCAST_COMMON_H #include <string.h> #include <sys/types.h> #include <pipewire/pipewire.h> #include <spa/param/video/format-utils.h> #include <libdrm/drm_fourcc.h> #include <wayland-client-protocol.h> #include "logger.h" struct damage { uint32_t x; uint32_t y; uint32_t width;...
22.33
76
(translation_unit) "#ifndef SCREENCAST_COMMON_H\n#define SCREENCAST_COMMON_H\n\n#include <string.h>\n#include <sys/types.h>\n#include <pipewire/pipewire.h>\n#include <spa/param/video/format-utils.h>\n#include <libdrm/drm_fourcc.h>\n#include <wayland-client-protocol.h>\n#include "logger.h"\n\nstruct damage {\n uint32_t ...
373
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 22.33, "nodes": 288, "errors": 0, "source_hash": "587382c00f672b990e6fd911826ce8d4e35a212aa0f48904894e1134bf186f8e", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,539
c
/* * Copyright (c), <NAME>. * MIT License (MIT), http://opensource.org/licenses/MIT */ #ifndef src_types_tm_h #define src_types_tm_h typedef enum tm_timer_status { TM_TIMER_STOPPED = 0, TM_TIMER_SCHEDULED = 1 << 0, TM_TIMER_STARTED = 1 << 1, TM_TIMER_WAITING_TO_STOP = 1 << 2, TM_TIM...
25.1
30
(translation_unit) "/*\n * Copyright (c), <NAME>.\n * MIT License (MIT), http://opensource.org/licenses/MIT\n */\n\n#ifndef src_types_tm_h\n#define src_types_tm_h\n\ntypedef enum tm_timer_status {\n TM_TIMER_STOPPED = 0,\n TM_TIMER_SCHEDULED = 1 << 0,\n TM_TIMER_STARTED = 1 << 1,\n TM_TIMER_WA...
129
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.1, "nodes": 101, "errors": 0, "source_hash": "8448b63d8e9d0623546aeb604be9aa1c576005e5466ce524e23c874760dfc7d4", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,540
c
#ifndef UTILS_H #define UTILS_H #include <vector> #include <memory> #include <unordered_map> #include <math.h> #include <stdlib.h> #include <iostream> #include <QOpenGLFunctions> #include <QQuaternion> #include <QMatrix4x4> #include <QVector3D> #include <QVector2D> #include <QDebug> #define mlog qDebug() << fixed <...
37.44
186
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <vector>\n#include <memory>\n#include <unordered_map>\n#include <math.h>\n#include <stdlib.h>\n#include <iostream>\n\n#include <QOpenGLFunctions>\n#include <QQuaternion>\n#include <QMatrix4x4>\n#include <QVector3D>\n#include <QVector2D>\n\n#include <QDebu...
1,967
21
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 37.44, "nodes": 1159, "errors": 0, "source_hash": "157ca9dda6217e81f0e4216f3488a8973c2717c6fe703e753e0fbaf491eebced", "categorized_nodes": 852}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,541
c
// efficient in terms of memory consumption transposition void EffectiveTransposition(std::vector<std::vector<int>>& matrix) { size_t min_size = std::min(matrix.size(), matrix[0].size()); for (size_t i = 0; i < min_size; ++i) { for (size_t j = i; j < min_size; ++j) { swap(matrix[i][j], matrix[j][i]); ...
32.12
32
(translation_unit) "// efficient in terms of memory consumption transposition\nvoid EffectiveTransposition(std::vector<std::vector<int>>& matrix) {\n size_t min_size = std::min(matrix.size(), matrix[0].size());\n for (size_t i = 0; i < min_size; ++i) {\n for (size_t j = i; j < min_size; ++j) {\n swap(matrix[...
483
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.12, "nodes": 280, "errors": 0, "source_hash": "6f43e978c5de48b6a5929bc357ddaf3fd8b0a9d1377194d1af565f431f4a6e89", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
7,542
c
#ifndef REGISTER_LINE_EDIT_H #define REGISTER_LINE_EDIT_H #include <QLineEdit> class RegisterLineEdit : public QLineEdit { Q_OBJECT public: explicit RegisterLineEdit(QWidget *parent); void onRegisterChanged(); void setId(int id); signals: void registerChanged(int id, int value); private: int i...
22.67
15
(translation_unit) "#ifndef REGISTER_LINE_EDIT_H\n#define REGISTER_LINE_EDIT_H\n\n#include <QLineEdit>\n\nclass RegisterLineEdit : public QLineEdit {\n Q_OBJECT\npublic:\n explicit RegisterLineEdit(QWidget *parent);\n void onRegisterChanged();\n void setId(int id);\nsignals:\n void registerChanged(int id...
85
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.67, "nodes": 56, "errors": 0, "source_hash": "aa619afb3a993afb09cc517b549bb9d124f0b2ad03d117b122c605072714e8be", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,543
c
/* * X.509v3 certificate parsing and processing * Copyright (c) 2006-2011, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef X509V3_H #define X509V3_H #include "asn1.h" struct x509_algorithm_identifier { struct asn...
29.05
123
(translation_unit) "/* \n * X.509v3 certificate parsing and processing \n * Copyright (c) 2006-2011, <NAME> <<EMAIL>> \n * \n * This software may be distributed under the terms of the BSD license. \n * See README for more details. \n */ \n \n#ifndef X509V3_H \n#define X509V3_H \n \n#include "asn1.h" \n \nstruct x509_al...
581
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 29.05, "nodes": 445, "errors": 0, "source_hash": "733610877340c764ddaedc3307b07490df0dd83d5a31e26aa5c4e38ad0762655", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,544
c
// // Location.h // lv-165IOS // // Created by Admin on 04.12.15. // Copyright © 2015 SS. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class Continent, Country, Place; NS_ASSUME_NONNULL_BEGIN @interface Location : NSManagedObject // Insert code here to declare functi...
25.38
16
(translation_unit) "//\n// Location.h\n// lv-165IOS\n//\n// Created by Admin on 04.12.15.\n// Copyright © 2015 SS. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n@class Continent, Country, Place;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface Location : NSManagedObject\n\n...
42
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.38, "nodes": 25, "errors": 0, "source_hash": "aef1da87f28e76f5b4dfb122aac44cab66a2306bf84282536a0ded6830ed31e7", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
7,545
c
#include <stdio.h> int main1() { FILE *pr = fopen("./test/a.txt", "r"); if (pr == NULL) return 0; FILE *pw = fopen("./test/b.txt", "w"); if (pw) { while (1) { char c = fgetc(pr); if (c == EOF) break; c++; ...
16.59
85
(translation_unit) "#include <stdio.h> \n \nint main1() \n{ \n FILE *pr = fopen("./test/a.txt", "r"); \n if (pr == NULL) \n return 0; \n FILE *pw = fopen("./test/b.txt", "w"); \n if (pw) \n { \n \n while (1) \n { \n char c = fgetc(pr); \n if (c == EOF) \n ...
548
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 16.59, "nodes": 306, "errors": 0, "source_hash": "4dab31c65feeab2f6bbcbc7d8e68d73e809a52a15aa19c0e06e924b28eb298ed", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,546
c
#include "ai_datatypes_defines.h" #include "ai_platform.h" #include "mnist.h" #include "mnist_data.h" AI_ALIGNED(4) static ai_u8 activations[AI_MNIST_DATA_ACTIVATIONS_SIZE]; static ai_handle mnist_model = AI_HANDLE_NULL; void model_init(void) { ai_mnist_create(&mnist_model, AI_MNIST_DATA_CONFIG); const ...
35.56
25
(translation_unit) "#include "ai_datatypes_defines.h"\n#include "ai_platform.h"\n#include "mnist.h"\n#include "mnist_data.h"\n\nAI_ALIGNED(4) \nstatic ai_u8 activations[AI_MNIST_DATA_ACTIVATIONS_SIZE];\nstatic ai_handle mnist_model = AI_HANDLE_NULL;\n\nvoid model_init(void) {\n ai_mnist_create(&mnist_model, AI_MNIST...
247
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.56, "nodes": 145, "errors": 0, "source_hash": "881c5f544ed8f843d22911b3cda2a5d1bbb5850c1e1540ed58fe5e51bd0e7b8e", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,547
c
#pragma once #include <chrono> #include <numeric> #include <vector> namespace qvr { class Profiler { public: using SampleUnit = std::chrono::duration<float, std::milli>; void AddSample(SampleUnit sample) { int index = (mFront++) % samples.size(); samples[index] = sample; } int BufferSize() const { return s...
20.38
60
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <numeric>\n#include <vector>\n\nnamespace qvr\n{\n\nclass Profiler {\npublic:\n using SampleUnit = std::chrono::duration<float, std::milli>;\n\n void AddSample(SampleUnit sample) {\n int index = (mFront++) % samples.size();\n samples[index] = sample;\n }...
479
21
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 20.38, "nodes": 266, "errors": 0, "source_hash": "3da6ca25e4b4d97dca5a430c9ea6387a1c372dc06fb9bbb63770241c0765d6e7", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,548
c
// // LoadingView.h // LiveLoop // // Created by Vijay on 15/12/09. // Copyright 2009 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> @interface LoadingViewFB : NSObject +(void)displayLoadingIndicator; +(void)removeLoadingIndicator; @end
20.08
13
(translation_unit) "//\n// LoadingView.h\n// LiveLoop\n// \n// Created by Vijay on 15/12/09.\n// Copyright 2009 __MyCompanyName__. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface LoadingViewFB : NSObject\n+(void)displayLoadingIndicator;\n+(void)removeLoadingIndicator;\n@end\n" (comm...
42
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.08, "nodes": 22, "errors": 0, "source_hash": "8376c310b81479809e24d458c14474f2c52d1a0844f84c37fbea5e46617203aa", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,549
c
#ifndef LowGoal_H #define LowGoal_H #include "WPILib.h" /** * Spit the ball out into the low goal assuming that the robot is in front of it. */ class LowGoal: public CommandGroup { public: LowGoal(); }; #endif
18.36
11
(translation_unit) "#ifndef LowGoal_H\n#define LowGoal_H\n\n#include "WPILib.h"\n\n/**\n * Spit the ball out into the low goal assuming that the robot is in front of it.\n */\nclass LowGoal: public CommandGroup {\npublic:\n LowGoal();\n};\n\n#endif\n" (preproc_ifdef) "#ifndef LowGoal_H\n#define LowGoal_H\n\n#include ...
37
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.36, "nodes": 18, "errors": 0, "source_hash": "2e87443ff763d2ebea30632f34b0e450c09522668f155b6ed276dcacc830ff93", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,550
c
#ifndef ADLIK_SERVING_RUNTIME_UTIL_DEFAULT_MODEL_FACTORY_H #define ADLIK_SERVING_RUNTIME_UTIL_DEFAULT_MODEL_FACTORY_H #include "adlik_serving/framework/manager/model_factory.h" namespace adlik { namespace serving { template <typename T> struct DefaultModelFactory : ModelFactory { void config() { // todo } ...
29.06
17
(translation_unit) "#ifndef ADLIK_SERVING_RUNTIME_UTIL_DEFAULT_MODEL_FACTORY_H\n#define ADLIK_SERVING_RUNTIME_UTIL_DEFAULT_MODEL_FACTORY_H\n\n#include "adlik_serving/framework/manager/model_factory.h"\n\nnamespace adlik {\nnamespace serving {\n\ntemplate <typename T>\nstruct DefaultModelFactory : ModelFactory {\n void...
117
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.06, "nodes": 60, "errors": 0, "source_hash": "b54e1f8b470f817cc91c51df8cffb684578fd87a934f9889c1bad83d1c77ba9a", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,551
c
#include <stdlib.h> #include <stdio.h> #include <time.h> enum { num_digits_k = 1000000, max_number_n = 10000000 }; int main(int argc, char* argv[argc+1]) { srand(time(0)); size_t byte_size = sizeof(char); size_t len = max_number_n / byte_size; char *bitmap = malloc(len * sizeof *bitmap); FILE* output_file =...
31.48
27
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n\nenum { num_digits_k = 1000000, max_number_n = 10000000 };\n\nint main(int argc, char* argv[argc+1]) {\n srand(time(0));\n size_t byte_size = sizeof(char);\n size_t len = max_number_n / byte_size;\n char *bitmap = malloc(len * sizeof *...
291
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.48, "nodes": 187, "errors": 0, "source_hash": "54b9d9a71d6fdd3c2ab524c5c9ecaa3a3eb9f96ecfff6f1981f3c0ccea4e8793", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,552
c
// // HBKlineInfoHeaderView.h // HuaBi // // Created by 前海数交(ZJ) on 2018/10/31. // Copyright © 2018年 前海数交平台运营. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface HBKlineInfoHeaderView : UIView - (void)configViewWithCurrencyMessage:(id)currencyMessage; @end NS_ASSUME_NONNULL_END...
23.23
13
(translation_unit) "//\n// HBKlineInfoHeaderView.h\n// HuaBi\n//\n// Created by 前海数交(ZJ) on 2018/10/31.\n// Copyright © 2018年 前海数交平台运营. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HBKlineInfoHeaderView : UIView\n\n- (void)configViewWithCurrencyMessage:(id)currencyMes...
45
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.23, "nodes": 27, "errors": 0, "source_hash": "d11c310ef622c39cba328d5da8dd27496db02b42b6a4b2538e6daac6bb3ce585", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UME_NONNU...
7,553
c
// // NSMutableArray+Queue.h // RYMarqueeLabelDemo // // Created by <NAME> on 16/12/12. // Copyright © 2016年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface Queue : NSObject - (_Nonnull instancetype)init; - (void)enqueue:(id _Nonnull)object; - (id _Nullable)dequeue; - (void)emptyQ...
23.07
15
(translation_unit) "//\n// NSMutableArray+Queue.h\n// RYMarqueeLabelDemo\n//\n// Created by <NAME> on 16/12/12.\n// Copyright © 2016年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Queue : NSObject\n\n- (_Nonnull instancetype)init;\n\n- (void)enqueue:(id _Nonnull)object;\n\n- (i...
92
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.07, "nodes": 58, "errors": 0, "source_hash": "cc81c90480ff537b0226f609ff26e7c1f0ed42aecdc40d5b3ca1aae1b949505e", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
7,554
c
/* --------------------------------------------------------------------- * * -- PBLAS auxiliary routine (version 2.0) -- * University of Tennessee, Knoxville, Oak Ridge National Laboratory, * and University of California, Berkeley. * April 1, 1998 * * ------------------------------------------------------...
31.8
315
(translation_unit) "/* ---------------------------------------------------------------------\n*\n* -- PBLAS auxiliary routine (version 2.0) --\n* University of Tennessee, Knoxville, Oak Ridge National Laboratory,\n* and University of California, Berkeley.\n* April 1, 1998\n*\n* ---------------------------...
1,211
1
{"language": "c", "success": true, "metadata": {"lines": 315, "avg_line_length": 31.8, "nodes": 848, "errors": 0, "source_hash": "77fd61c5568ff72792d1ee0b6bb8e90761f615fb68a08216a38fc7d8753e37ca", "categorized_nodes": 591}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,555
c
#include <GameCore/FileSystem.h> #include <GameCore/MemoryStreams.h> #include <map> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" ::testing::AssertionResult ApproxEquals(float a, float b, float tolerance); class TestFileSystem : public IFileSystem { public: struct FileInfo { s...
38.07
147
(translation_unit) "#include <GameCore/FileSystem.h>\n#include <GameCore/MemoryStreams.h>\n\n#include <map>\n#include <vector>\n\n#include "gmock/gmock.h"\n#include "gtest/gtest.h"\n\n::testing::AssertionResult ApproxEquals(float a, float b, float tolerance);\n\nclass TestFileSystem : public IFileSystem\n{\npublic:\n\n...
1,678
85
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 38.07, "nodes": 924, "errors": 0, "source_hash": "c7f70a20d7eabc811cf200febb55a29f1af4192e14f303193dfbc288067ec643", "categorized_nodes": 670}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,556
c
123 .123 123.4 123. 0x1234 0123 123e+456 123e-456
5.25
8
(translation_unit) "123\n.123\n123.4\n123.\n0x1234\n0123\n123e+456\n123e-456\n" (ERROR) "123\n.123\n123.4\n123.\n0x1234\n0123\n123e+456\n123e-456" (number_literal) "123" (.) "." (number_literal) "123" (number_literal) "123.4" (number_literal) "123." (number_literal) "0x1234" (number_litera...
11
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 5.25, "nodes": 9, "errors": 0, "source_hash": "783c5bda2376d6832f4e41b3a526b338e8f58d7cac3bbcefc1380a35ac614572", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "123\n.123\n123.4\n12...
7,557
c
/** wall.c */ #include "wall.h" #include <ncurses.h> #include <assert.h> #include <err.h> /* memory allocation {{{1 */ /* _alloc() {{{2 * Allocate memory for a Wall struct. * Shall be freed by wall_free(). */ wall_t* wall_alloc( wall_t **ptr) { wall_t *wall; wall = (wall_t *)malloc(sizeof(struct Wall))...
18.64
81
(translation_unit) "/** wall.c\n */\n\n#include "wall.h"\n\n#include <ncurses.h>\n#include <assert.h>\n#include <err.h>\n\n\n/* memory allocation {{{1 */\n/* _alloc() {{{2\n * Allocate memory for a Wall struct.\n * Shall be freed by wall_free().\n */\nwall_t*\nwall_alloc(\n wall_t **ptr)\n{\n wall_t *wall;\n\n wal...
422
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 18.64, "nodes": 253, "errors": 0, "source_hash": "5e2dde6c0586d894c9866b6f2cf20d40fe8280ea602fc7e036bd1fbe5d13ce62", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,558
c
/* * Semihosting Console * * Copyright (c) 2019 Linaro Ltd * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef SEMIHOST_CONSOLE_H #define SEMIHOST_CONSOLE_H #include "cpu.h" /** * qemu_semihosting_console_outs: * @env: CPUArchState * @s: host address of null terminated guest string * * Send a null te...
26.66
47
(translation_unit) "/*\n * Semihosting Console\n *\n * Copyright (c) 2019 Linaro Ltd\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n\n#ifndef SEMIHOST_CONSOLE_H\n#define SEMIHOST_CONSOLE_H\n\n#include "cpu.h"\n\n/**\n * qemu_semihosting_console_outs:\n * @env: CPUArchState\n * @s: host address of null terminat...
72
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.66, "nodes": 49, "errors": 0, "source_hash": "027d29b4c8d6da6ec8494aa71637eef673bca375bc55e5680f455f99f8263bdc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,559
c
// // GimbalBeaconManager.h // ZooHack // // Created by <NAME> on 11/9/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreBluetooth/CoreBluetooth.h> #import "BeaconDelegate.h" #import "GimbalBeacon.h" #import <Gimbal/Gimbal.h> @interface GimbalBeaconManager : NS...
31.9
21
(translation_unit) "//\n// GimbalBeaconManager.h\n// ZooHack\n//\n// Created by <NAME> on 11/9/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreBluetooth/CoreBluetooth.h>\n#import "BeaconDelegate.h"\n#import "GimbalBeacon.h"\n#import <Gimbal/Gimbal.h>\n\n@...
156
18
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.9, "nodes": 100, "errors": 0, "source_hash": "f8a08da8e68be5bdccc0e379a95bc73c2c210a2ffa46d4b72b02ede5bf67f791", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
7,560
c
#include <stdio.h> #include <stdbool.h> #include <stddef.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define UNUSED(x) __attribute__((unused)) x #define min(a, b) \ ...
29.47
223
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n#include <stddef.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <memory.h>\n#include <netdb.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\n#define UNUSED(x) __attribute__((...
2,166
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 29.47, "nodes": 1354, "errors": 0, "source_hash": "543afe21a0dfa0789b05671d2ab10ce445927cf796d0419266dd057690180508", "categorized_nodes": 931}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,561
c
/* * Copyright 2020 Codethink Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
29.29
188
(translation_unit) "/*\n * Copyright 2020 Codethink 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 copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required...
882
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 29.29, "nodes": 555, "errors": 0, "source_hash": "02bdef3ad6ac07c30be328da6a9e8bb18a571079bd8da3fc15a1ce6a6368e7e7", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,562
c
#pragma once #include "account.h" class Checking : public Account { private: float m_MinimumBalance; public: using Account::Account; // C++11 Uses constructors from base class Checking(const std::string &name, float balance, float minbalance); ~Checking(); void Withdraw(float amount)override; f...
23.17
18
(translation_unit) "#pragma once \n#include "account.h" \n \nclass Checking : public Account \n{ \nprivate: \n float m_MinimumBalance; \n \npublic: \n using Account::Account; // C++11 Uses constructors from base class \n Checking(const std::string &name, float balance, float minbalance); \n ~Checking(); \n void Withdr...
102
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.17, "nodes": 55, "errors": 0, "source_hash": "0712211d1ff2ae05348ac2c5b9c1ea15cd2207538f562d3f0b23c36dff1dd567", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,563
c
#include "token.h" ht_t *keywords_initialize(void) { ht_t *ht = ht_create(KEYWORDS_SIZE); ht_add(ht, "fn", hd_create(HD_INT_DT, (uintptr_t *)FUNCTION_TOKEN)); ht_add(ht, "let", hd_create(HD_INT_DT, (uintptr_t *)LET_TOKEN)); ht_add(ht, "true", hd_create(HD_INT_DT, (uintptr_t *)TRUE_TOKEN)); ht_add(ht, "false"...
24.14
106
(translation_unit) "#include "token.h"\n\nht_t *keywords_initialize(void) {\n ht_t *ht = ht_create(KEYWORDS_SIZE);\n ht_add(ht, "fn", hd_create(HD_INT_DT, (uintptr_t *)FUNCTION_TOKEN));\n ht_add(ht, "let", hd_create(HD_INT_DT, (uintptr_t *)LET_TOKEN));\n ht_add(ht, "true", hd_create(HD_INT_DT, (uintptr_t *)TRUE_TOK...
914
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 24.14, "nodes": 501, "errors": 0, "source_hash": "db07f95e5fc6da6473cf4f2b8ab9687a6b74ac5184f43553bdd23a4f31550dd4", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,564
c
#ifndef K4SIMDELPHESVersion_h #define K4SIMDELPHESVersion_h #define K4SIMDELPHES_VERSION @K4SIMDELPHES_VERSION@ #endif
28.75
4
(translation_unit) "#ifndef K4SIMDELPHESVersion_h\n#define K4SIMDELPHESVersion_h\n#define K4SIMDELPHES_VERSION @K4SIMDELPHES_VERSION@\n#endif\n" (preproc_ifdef) "#ifndef K4SIMDELPHESVersion_h\n#define K4SIMDELPHESVersion_h\n#define K4SIMDELPHES_VERSION @K4SIMDELPHES_VERSION@\n#endif" (#ifndef) "#ifndef" (iden...
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 28.75, "nodes": 11, "errors": 0, "source_hash": "29d8be64efa49105338551171a9034492463f410d8e49b29a9ddaeae965f5c89", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef K4...
7,565
c
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
36.14
136
(translation_unit) "/**\n##########################################################################\n# If not stated otherwise in this file or this component's LICENSE\n# file the following copyright and licenses apply:\n#\n# Copyright 2019 RDK Management\n#\n# Licensed under the Apache License, Version 2.0 (the "Licen...
972
34
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 36.14, "nodes": 669, "errors": 0, "source_hash": "fe301f29eac24bb6e1a5b727d8d56bfbe3054aa346b2758f3840f361d58e9778", "categorized_nodes": 464}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
7,566
c
#include <stdio.h> void swap(int *, int *); void reverse(int *arr, int n); int isSorted(int *, int); int main() { int len = 4, i; int arr[] = {1, 2, 4, 5}; printf("Is array is sorted = %s\n", isSorted(arr, len) ? "True" : "False"); reverse(arr, len); for (i = 0; i < len; i++) printf("%d%c", ...
19.72
39
(translation_unit) "#include <stdio.h>\nvoid swap(int *, int *);\nvoid reverse(int *arr, int n);\nint isSorted(int *, int);\nint main()\n{\n int len = 4, i;\n int arr[] = {1, 2, 4, 5};\n printf("Is array is sorted = %s\n", isSorted(arr, len) ? "True" : "False");\n reverse(arr, len);\n for (i = 0; i < len...
414
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 19.72, "nodes": 261, "errors": 0, "source_hash": "91e2a216603abc588393f46bf65e461865abb7c5718f62aec167e2872e3cd66b", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,567
c
/* $NetBSD: math.h,v 1.1 2001/10/16 15:38:47 uch Exp $ */ #include <mips/math.h>
39.5
2
(translation_unit) "/* $NetBSD: math.h,v 1.1 2001/10/16 15:38:47 uch Exp $ */\n\n#include <mips/math.h>\n" (comment) "/* $NetBSD: math.h,v 1.1 2001/10/16 15:38:47 uch Exp $ */" (preproc_include) "#include <mips/math.h>\n" (#include) "#include" (system_lib_string) "<mips/math.h>"
5
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 39.5, "nodes": 3, "errors": 0, "source_hash": "2911effdba16b9671617f31f6053b8e3912fddfe00878631614105c3c2db80e0", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
7,568
c
// // DNDDragAndDropController_Private.h // ios-drag-and-drop // // Created by <NAME> on 3/1/13. // Copyright (c) 2013 konoma GmbH. All rights reserved. // #import "DNDDragAndDropController.h" NS_ASSUME_NONNULL_BEGIN @interface DNDDragAndDropController () @property (nonatomic, readonly) UIView *dragPaneView;...
24.95
19
(translation_unit) "//\n// DNDDragAndDropController_Private.h\n// ios-drag-and-drop\n//\n// Created by <NAME> on 3/1/13.\n// Copyright (c) 2013 konoma GmbH. All rights reserved.\n//\n\n\n#import "DNDDragAndDropController.h"\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@interface DNDDragAndDropController ()\n\n@property (nonat...
92
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.95, "nodes": 60, "errors": 0, "source_hash": "b45ed601c3d32651aeb49adce43d7261f21461d15e34531a5dff47e89067ff7f", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,569
c
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
34.91
90
(translation_unit) "/******************************************************************************\n * Copyright 2018 The Apollo Authors. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain ...
415
12
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 34.91, "nodes": 244, "errors": 0, "source_hash": "1fb3995c4b600bcc3864b526c1f0ae6d427f84741a797867d3257103d00cea41", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,570
c
/** Autor: https://computing.llnl.gov/tutorials/pthreads/ **/ #include <pthread.h> #include <stdio.h> #include <stdlib.h> volatile int x=1; /** Variáveis globais são compartilhadas pelas threads.**/ void* imprime_o(void* arg){ int id = (int) arg; printf("Sou a thread %d\n",id); sleep(5); for(;;){ ...
25.41
44
(translation_unit) "/**\n Autor: https://computing.llnl.gov/tutorials/pthreads/\n**/\n#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nvolatile int x=1; /** Variáveis globais são compartilhadas pelas threads.**/\n\nvoid* imprime_o(void* arg){\n int id = (int) arg;\n printf("Sou a thread %d\n",id)...
375
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 25.41, "nodes": 206, "errors": 0, "source_hash": "84d4387e37ed15d2dba4747cf98b9606256df448e8f0a50613aee3170597e47b", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,571
c
/* PR sanitizer/80308 */ /* { dg-do run } */ __attribute__((noinline, noclone)) int foo (char *a) { int i, j = 0; asm volatile ("" : "+r" (a) : : "memory"); for (i = 0; i < 12; i++) j += a[i]; return j; } int main () { int i, j = 0; for (i = 0; i < 4; i++) { char a[12]; __builtin_memse...
15.52
23
(translation_unit) "/* PR sanitizer/80308 */\n/* { dg-do run } */\n\n__attribute__((noinline, noclone)) int\nfoo (char *a)\n{\n int i, j = 0;\n asm volatile ("" : "+r" (a) : : "memory");\n for (i = 0; i < 12; i++)\n j += a[i];\n return j;\n}\n\nint\nmain ()\n{\n int i, j = 0;\n for (i = 0; i < 4; i++)\n {\n...
176
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.52, "nodes": 99, "errors": 0, "source_hash": "391e43e0a73836108e0e5619d0e901e35f44a33f805a9e4ef7dcfd3faa89ac67", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "__...
7,572
c
//{{BLOCK(gImage_NOTFOUND) //====================================================================== // // gImage_NOTFOUND, 120x80@16, // + bitmap not compressed // Total size: 19200 = 19200 // // Time-stamp: 2021-12-07, 18:32:07 // Exported by Cearn's GBA Image Transmogrifier, v0.8.3 // ( http://www.coranac.com/proj...
33.72
18
(translation_unit) "//{{BLOCK(gImage_NOTFOUND)\n\n//======================================================================\n//\n// gImage_NOTFOUND, 120x80@16, \n// + bitmap not compressed\n// Total size: 19200 = 19200\n//\n// Time-stamp: 2021-12-07, 18:32:07\n// Exported by Cearn's GBA Image Transmogrifier, v0.8.3\n// ...
40
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.72, "nodes": 20, "errors": 0, "source_hash": "a23ec2066d12ccf8c32426c0102df85201ac1792dce6ff2737185bc612afa48e", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,573
c
#include "delay.h" #include "gpio.h" #define SYSTMR_LO ((volatile unsigned int*)(MMIO_BASE+0x00003004)) #define SYSTMR_HI ((volatile unsigned int*)(MMIO_BASE+0x00003008)) void delay_cycles(unsigned int cycles) { while(cycles--) { asm volatile("nop"); } } void delay_us(unsigned int d...
20.61
56
(translation_unit) "#include "delay.h"\n#include "gpio.h"\n\n#define SYSTMR_LO ((volatile unsigned int*)(MMIO_BASE+0x00003004))\n#define SYSTMR_HI ((volatile unsigned int*)(MMIO_BASE+0x00003008))\n\nvoid delay_cycles(unsigned int cycles)\n{\n while(cycles--)\n {\n asm volatile("nop");\n }\...
409
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 20.61, "nodes": 241, "errors": 0, "source_hash": "c884ea075571cbba237870f96e03dfb271913922b9c092aae2c1d9a6526110fe", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,574
c
// Einfaches Kernelmodul zur Erzeugung einer Datei // im /proc-Filesystem // // Die Meldungen, die mit pr_info() ausgegeben werden, // koennen mit // > dmesg // angesehen werden. #include <linux/kernel.h> #include <linux/module.h> #include <linux/proc_fs.h> #include <linux/sched.h> #include <linux/uaccess.h> #include...
30.29
116
(translation_unit) "// Einfaches Kernelmodul zur Erzeugung einer Datei\n// im /proc-Filesystem\n//\n// Die Meldungen, die mit pr_info() ausgegeben werden,\n// koennen mit \n// > dmesg\n// angesehen werden.\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/proc_fs.h>\n#include <linux/sched.h>\n#in...
708
4
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 30.29, "nodes": 416, "errors": 0, "source_hash": "9dbd427b1ecde17c2a46bf2c1133e92e4c866898a191614add372a35d2086b58", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,575
c
// license:BSD-3-Clause // copyright-holders:<NAME> #ifndef MAME_AUDIO_CINEMAT_H #define MAME_AUDIO_CINEMAT_H #pragma once #include "machine/74259.h" #include "machine/netlist.h" #include "netlist/nl_setup.h" class cinemat_audio_device_base : public device_t, public device_mixer_interface { public: cinemat_audio_d...
33.54
119
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n#ifndef MAME_AUDIO_CINEMAT_H\n#define MAME_AUDIO_CINEMAT_H\n\n#pragma once\n\n#include "machine/74259.h"\n#include "machine/netlist.h"\n#include "netlist/nl_setup.h"\n\n\nclass cinemat_audio_device_base : public device_t, public device_mixer_inte...
1,012
68
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 33.54, "nodes": 568, "errors": 0, "source_hash": "cbc8bcd6dc0ac967e141bc57b3ac84bef001098cdc670f8e3da5995a84dbcf58", "categorized_nodes": 402}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,576
c
#ifndef ossimGuiUtil_HEADER #define ossimGuiUtil_HEADER #include <ossimGui/Export.h> #include <QWidget> #include <QStringList> #include <ossim/base/ossimString.h> namespace ossimGui { class OSSIMGUI_DLL Util { public: template <class T> static T findParentOfType(QObject* startChild) { ...
22.87
31
(translation_unit) "#ifndef ossimGuiUtil_HEADER\n#define ossimGuiUtil_HEADER\n\n#include <ossimGui/Export.h>\n#include <QWidget>\n#include <QStringList>\n#include <ossim/base/ossimString.h>\n\nnamespace ossimGui \n{\n class OSSIMGUI_DLL Util\n {\n public:\n template <class T>\n static T findParentOfType...
172
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.87, "nodes": 115, "errors": 0, "source_hash": "8d0dff6bce3a63fa1d2abe221105c362cd7f24d670d4c1b52ba8dbf51b70c0ec", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,577
c
// // HFTextField.h // HFKitDemo // // Created by helfy on 15/8/17. // Copyright (c) 2015年 helfy. All rights reserved. // #import <UIKit/UIKit.h> @interface HFTextField : UITextField @property(nonatomic,assign) CGFloat textOffset; //默认5 @property (nonatomic, copy) UIColor *placeholderColor; //默认0.5的灰色 @end
25.17
12
(translation_unit) "//\n// HFTextField.h\n// HFKitDemo\n//\n// Created by helfy on 15/8/17.\n// Copyright (c) 2015年 helfy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HFTextField : UITextField\n\n@property(nonatomic,assign) CGFloat textOffset; //默认5\n@property (nonatomic, copy) UIColor *plac...
54
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.17, "nodes": 35, "errors": 0, "source_hash": "2472ae7ed906ad850297073489c724c1c8419b03a3df79e05642bc711f2a2d55", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
7,578
c
//========================================================================= // DIFFQUOT.H - part of // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Author: <NAME> // //========================================================================= /*---------------------------------...
32.62
45
(translation_unit) "//=========================================================================\n// DIFFQUOT.H - part of\n// OMNeT++/OMNEST\n// Discrete System Simulation in C++\n//\n// Author: <NAME>\n//\n//=========================================================================\n\n/*----...
220
13
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.62, "nodes": 114, "errors": 0, "source_hash": "d3eed7e069472f3f9de93271b1bb461bddad41de16262094be5e34941c822eb2", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,579
c
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <string.h> #include "esp_bt_device.h" #include "esp_bt_main.h" #include "device/controller.h" #include "btc/btc_task.h" #include "btc/btc_dev.h" const uint8_t *esp_bt_...
30.24
42
(translation_unit) "/*\n * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <stdlib.h>\n#include <string.h>\n#include "esp_bt_device.h"\n#include "esp_bt_main.h"\n#include "device/controller.h"\n#include "btc/btc_task.h"\n#include "btc/bt...
318
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.24, "nodes": 183, "errors": 0, "source_hash": "23ed8cbc261c02607965a72332510926082d23ed747e426523ca1b13069dd7ae", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,580
c
/* * BTlist.h * * Created on: Jan 18, 2013 * Author: nek3d */ #ifndef BT_LIST_H_ #define BT_LIST_H_ // // Writing our own singly linked list template class because: // // 1) STL doesn't currently support one that I can find without // C++0x support or SGI extensions. // // 2) A normal singly linked lis...
24.86
236
(translation_unit) "/*\n * BTlist.h\n *\n * Created on: Jan 18, 2013\n * Author: nek3d\n */\n\n#ifndef BT_LIST_H_\n#define BT_LIST_H_\n\n//\n// Writing our own singly linked list template class because:\n//\n// 1) STL doesn't currently support one that I can find without\n// C++0x support or SGI extensions.\n/...
1,570
41
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 24.86, "nodes": 911, "errors": 0, "source_hash": "05a6439c768ec69450257fb6086711e0319ce4d46e0cf626fb640ca00a8741af", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,581
c
#pragma once #include <l4/object/msginfo.h> struct fd_entry { struct endpoint *ep; struct msginfo msginfo; };
15
7
(translation_unit) "#pragma once\n\n#include <l4/object/msginfo.h>\n\nstruct fd_entry\n{\n struct endpoint *ep;\n struct msginfo msginfo;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <l4/object/msginfo.h>\n" (#include) "#include" ...
28
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.0, "nodes": 21, "errors": 0, "source_hash": "bbddae35a939b9eb821de674be96dfc372f7388203fcf0c18d24eff3187c1bd3", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,582
c
/* * This file is part of the Palacios Virtual Machine Monitor developed * by the V3VEE Project with funding from the United States National * Science Foundation and the Department of Energy. * * The V3VEE Project is a joint project between Northwestern University * and the University of New Mexico. You can ...
36.77
308
(translation_unit) "/* \n * This file is part of the Palacios Virtual Machine Monitor developed\n * by the V3VEE Project with funding from the United States National \n * Science Foundation and the Department of Energy. \n *\n * The V3VEE Project is a joint project between Northwestern University\n * and the Universit...
2,074
0
{"language": "c", "success": true, "metadata": {"lines": 308, "avg_line_length": 36.77, "nodes": 1172, "errors": 0, "source_hash": "49d3db3b5903a5c172303117664a5fb8104b8aeca60211610f792a56b6dba539", "categorized_nodes": 864}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,583
c
#include <errno.h> #include <stdlib.h> #include "misc.h" #ifdef __FreeBSD__ #define PTRACE_PEEKDATA PT_READ_D #endif /* read data from location addr */ int memread(pid_t pid, unsigned long addr, void *outp, size_t len) { int i, count; long word; unsigned long *ptr = outp; int ret...
24.47
214
(translation_unit) "#include <errno.h>\n#include <stdlib.h>\n\n#include "misc.h"\n\n#ifdef __FreeBSD__\n#define PTRACE_PEEKDATA PT_READ_D\n#endif\n\n\n/* read data from location addr */\nint\nmemread(pid_t pid,\n unsigned long addr,\n void *outp,\n size_t len)\n{\n int i, count;\n long word;\n unsi...
1,551
0
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 24.47, "nodes": 1043, "errors": 0, "source_hash": "0629c96aa223e1b7c82890de16428e43ca159d989fc4c68d1cb061c6ea034158", "categorized_nodes": 694}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,584
c
// // GDorisProgressObserver.h // GDorisLoaderController // // Created by GIKI on 2020/6/17. // Copyright © 2020 GIKI. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef void (^GDorisProgressObserverProgressBlock)(CGFloat progress); typedef void (^GD...
40.14
35
(translation_unit) "//\n// GDorisProgressObserver.h\n// GDorisLoaderController\n//\n// Created by GIKI on 2020/6/17.\n// Copyright © 2020 GIKI. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void (^GDorisProgressObserverProgressBlock)(CGF...
178
26
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 40.14, "nodes": 112, "errors": 0, "source_hash": "cfbc08dc9dc241a25a59497681009e06474cb13ceaaedebead4fc2e18aeb4f12", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
7,585
c
/* * Copyright (c) 2014-2018 Cesanta Software Limited * All rights reserved * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
27.93
44
(translation_unit) "/*\n * Copyright (c) 2014-2018 Cesanta Software Limited\n * All rights reserved\n *\n * Licensed under the Apache License, Version 2.0 (the ""License"");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org...
164
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.93, "nodes": 83, "errors": 0, "source_hash": "04fb2695a8238fc04c0c382e5181b1e2f5604cc6c8f05ceaf54322722181b5de", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,586
c
/***************************************************************************** * Copyright (C), 1988-2012, Huawei Tech. Co,.Ltd * File name: cmd_bootss.h * Author: Version: 0.0.1 Date: 2012.09.05 * Description: upgrade module header file. * * History: * Date Who Case Description ...
27.91
47
(translation_unit) "/*****************************************************************************\n* Copyright (C), 1988-2012, Huawei Tech. Co,.Ltd\n* File name: cmd_bootss.h\n* Author: Version: 0.0.1 Date: 2012.09.05\n* Description: upgrade module header file.\n*\n* History:\n* Date Who Case ...
284
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.91, "nodes": 186, "errors": 0, "source_hash": "06d5da93663873c9b80f80fddf52e2a0bbf4b6807570bc827aec696406880e7d", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,587
c
/* { dg-do compile } */ /* { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-vrp1" } */ struct B { int x; }; extern void g3(struct B *that) __attribute__((nonnull)); int f3(struct B *a) { g3(a); return a != (void *)0; } /* { dg-final { scan-tree-dump "return 1;" "vrp1" } } */
28.1
10
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-vrp1" } */\n\nstruct B { int x; };\nextern void g3(struct B *that) __attribute__((nonnull));\nint f3(struct B *a)\n{\n g3(a);\n return a != (void *)0;\n}\n\n/* { dg-final { scan-tree-dump "return 1;" "vrp1" } }...
79
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 28.1, "nodes": 50, "errors": 0, "source_hash": "bdfc42760e2d1e2c9bd2aae7f1bc17873c9866caba38641095ede8ad90e18051", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct...
7,588
c
// // HCNetMockRuleInfoModel.h // HCDebugTool_Example // // Created by 黄鸿昌 on 2019/1/16. // Copyright © 2019 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import "HCNetMockRuleItemModel.h" typedef NS_OPTIONS(NSInteger, HCNetMockRequestType) { HCNetMockRequestType_Get = 1, HCNetMockRe...
29.06
17
(translation_unit) "//\n// HCNetMockRuleInfoModel.h\n// HCDebugTool_Example\n//\n// Created by 黄鸿昌 on 2019/1/16.\n// Copyright © 2019 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "HCNetMockRuleItemModel.h"\n\ntypedef NS_OPTIONS(NSInteger, HCNetMockRequestType) {\n HCNetMockRequ...
82
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 29.06, "nodes": 55, "errors": 0, "source_hash": "f8d44d320f1c24f0397bc18984a74ad88ea4c43cca9cbe709a5987ae64078b59", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
7,589
c
// TopDownShooter project (c) 2016 V.Khmelevskiy #pragma once #include "AIController.h" #include "TDAIController.generated.h" class ATDMonsterCharacter; class UBehaviorTreeComponent; class UBlackboardComponent; /** * */ UCLASS() class TOPDOWNSHOOTER_API ATDAIController : public AAIController { GENERATED_BODY() p...
28.44
41
(translation_unit) "// TopDownShooter project (c) 2016 V.Khmelevskiy\n\n#pragma once\n\n#include "AIController.h"\n#include "TDAIController.generated.h"\n\nclass ATDMonsterCharacter;\nclass UBehaviorTreeComponent;\nclass UBlackboardComponent;\n/**\n * \n */\nUCLASS()\nclass TOPDOWNSHOOTER_API ATDAIController : public A...
245
16
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.44, "nodes": 152, "errors": 0, "source_hash": "c4d7a6035e80a9a18f9661d27da1e1881fc0ac6a72eca519809de2485c5cc2ce", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,590
c
/* Copyright (c) 2007-2008 CSIRO Copyright (c) 2007-2009 Xiph.Org Foundation Copyright (c) 2008 <NAME> Written by <NAME> and <NAME> */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions...
36.89
62
(translation_unit) "/* Copyright (c) 2007-2008 CSIRO\n Copyright (c) 2007-2009 Xiph.Org Foundation\n Copyright (c) 2008 <NAME>\n Written by <NAME> and <NAME> */\n/*\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are...
184
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 36.89, "nodes": 116, "errors": 0, "source_hash": "820b0f5b6593c386aa6305ca88339f982d80af9c5f161b94561595093e2f9295", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,591
c
/* * Copyright (c) 2017, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
32.36
130
(translation_unit) "/*\n * Copyright (c) 2017, Intel Corporation\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright n...
732
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 32.36, "nodes": 395, "errors": 0, "source_hash": "f7a671d8b4b13d6aa6ea4e77abe355e36d7824f69dc1d82ffa304a5a3cb329df", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,592
c
#ifndef OHNO_CONSOLE_H_INCLUDED #define OHNO_CONSOLE_H_INCLUDED #include "../elpa/console.h" #include "../kcon/tests.h" #include "interpreter.h" #include "tests.h" namespace ohno { struct OhNoConsole : elpa::Console<OhNoInterpreter> { virtual void run_tests() const { kcon::run_tests(); ohno...
19.79
19
(translation_unit) "#ifndef OHNO_CONSOLE_H_INCLUDED \n#define OHNO_CONSOLE_H_INCLUDED\n\n#include "../elpa/console.h"\n#include "../kcon/tests.h"\n#include "interpreter.h"\n#include "tests.h"\n\nnamespace ohno {\n \nstruct OhNoConsole : elpa::Console<OhNoInterpreter>\n{\n virtual void run_tests() const\n {\n ...
97
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.79, "nodes": 50, "errors": 0, "source_hash": "13d020d57c9cb82ce9cfeaa1ae510832439b0d05d3868b503f823ecacbc58340", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,593
c
#pragma once #import <QuartzCore/QuartzCore.h> #include "../gs/GSH_Vulkan/GSH_Vulkan.h" class CGSH_VulkaniOS : public CGSH_Vulkan { public: CGSH_VulkaniOS(CAMetalLayer*); virtual ~CGSH_VulkaniOS() = default; static FactoryFunction GetFactoryFunction(CAMetalLayer*); void InitializeImpl() override; void PresentB...
26.4
15
(translation_unit) "#pragma once\n\n#import <QuartzCore/QuartzCore.h>\n#include "../gs/GSH_Vulkan/GSH_Vulkan.h"\n\nclass CGSH_VulkaniOS : public CGSH_Vulkan\n{\npublic:\n CGSH_VulkaniOS(CAMetalLayer*);\n virtual ~CGSH_VulkaniOS() = default;\n\n static FactoryFunction GetFactoryFunction(CAMetalLayer*);\n\n void Initiali...
105
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.4, "nodes": 67, "errors": 0, "source_hash": "640b701a7d3f2cf9b8a41320a86721f8fb081a1fc09a10c85ac49501a6a929f7", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,594
c
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <set> #include <folly/SharedMutex.h> #include <folly/Conv.h> #i...
38.53
79
(translation_unit) "/**\n * Copyright (c) 2017-present, Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n#pragma once\n\n#include <set>\n#include <folly/SharedMutex....
408
20
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 38.53, "nodes": 245, "errors": 0, "source_hash": "54fa236a993ace37ad56700eca4f9e97378e78bd5d55086979a9af84b9b5ce67", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,595
c
#include "Hero.h" /* typedef struct _hero { int id; char * name; char * sex; Job job; double hp; double speed; //attack speed Ability ability; //special ability PubTime pubTime; } Hero; */ Hero heros[5]; Job jobs[5] = { ...
28.92
53
(translation_unit) "#include "Hero.h" \n \n/* \ntypedef struct _hero \n{ \n int id; \n char * name; \n char * sex; \n Job job; \n double hp; \n double speed; //attack speed \n Ability ability; //special ability \n PubTime pubTime; \n} Hero; \n*/ \...
433
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.92, "nodes": 211, "errors": 0, "source_hash": "1cda962d0bca7a539c183524a3db93c854207f5744af7e5dcfd7397c1ae67598", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,596
c
/*! \file 3D Anisotropic diffusion \par Reference: G.Gerig, <NAME>, <NAME>, F.Jolesz: Nonlinear anisotropic filtering of MRI data. IEEE Trans on Medical Imaging, Vol.11, No.2, June 1992. \par Author: G.Lohmann, MPI-CBS */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <stdio.h> #include <stdl...
23.51
147
(translation_unit) "/*! \file\n 3D Anisotropic diffusion\n\n\par Reference:\n G.Gerig, <NAME>, <NAME>, F.Jolesz:\n Nonlinear anisotropic filtering of MRI data.\n IEEE Trans on Medical Imaging, Vol.11, No.2, June 1992.\n\n\par Author:\n G.Lohmann, MPI-CBS\n*/\n\n\n\n#include <viaio/Vlib.h>\n#include <viaio/VImage.h...
1,390
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 23.51, "nodes": 919, "errors": 0, "source_hash": "84b9eb8f20cecb40a96c59f88dbff78f3484e8df15f8f330a91646b5cb20003f", "categorized_nodes": 687}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,597
c
/* * Copyright (c) 2014 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
31.41
141
(translation_unit) "/*\n * Copyright (c) 2014 <NAME> <<EMAIL>>\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 * 1. Redistributions of source code must retain the above copyright\n *...
659
1
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 31.41, "nodes": 414, "errors": 0, "source_hash": "b7545cc7ac979a4f19034150f9180c47bdc91231d9e19d9754a96cb31e88152a", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,598
c
/* ----- System Includes ---------------------------------------------------- */ #include <inttypes.h> #include <stdbool.h> #include <string.h> /* ----- Local Includes ----------------------------------------------------- */ #include "stm32f4xx_ll_cortex.h" #include "stm32f4xx_ll_pwr.h" #include "stm32f4xx_ll_rcc.h"...
37.71
156
(translation_unit) "/* ----- System Includes ---------------------------------------------------- */\n\n#include <inttypes.h>\n#include <stdbool.h>\n#include <string.h>\n\n/* ----- Local Includes ----------------------------------------------------- */\n\n#include "stm32f4xx_ll_cortex.h"\n#include "stm32f4xx_ll_pwr.h"\...
1,135
14
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 37.71, "nodes": 683, "errors": 0, "source_hash": "46acad0f99a839811a5aee4d76a49efc5571632ea3e4b43a696a76a24ca43652", "categorized_nodes": 545}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,599