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
/* * Copyright 2005-2012 Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ /* Make life easier for those porting old Berkeley style code... */ #ifndef _BSD_MEM_H_ #define _BSD_MEM_H_ #ifndef USG /* when this is defined, these aren't needed */ #ifndef bcopy #define bcopy...
21.89
28
(translation_unit) "/*\n * Copyright 2005-2012 Haiku, Inc. All Rights Reserved.\n * Distributed under the terms of the MIT License.\n */\n\n/*\n Make life easier for those porting old Berkeley style\n code...\n*/\n#ifndef _BSD_MEM_H_\n#define _BSD_MEM_H_\n\n#ifndef USG /* when this is defined, these aren't needed...
91
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.89, "nodes": 68, "errors": 0, "source_hash": "2d3345e7547c20322aae6c40b4a27763b978476f8260d73226285058075172f7", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,100
c
#ifndef COMMUNICATION_h #define COMMUNICATION_h #include "define.h" #include <Arduino.h> #include <util/atomic.h> #include <SoftwareSerial.h> class Communication { public: Communication(uint8_t txChannel_ = TX_CHANNEL, uint8_t rxChannel_ = RX_CHANNEL, uint8_t setPin_ = SET_PIN, uint32_t...
35.17
40
(translation_unit) "#ifndef COMMUNICATION_h\n\n #define COMMUNICATION_h\n\n #include "define.h"\n #include <Arduino.h>\n #include <util/atomic.h>\n #include <SoftwareSerial.h> \n \n class Communication \n {\n public:\n\n Communication(uint8_t txChannel_ = TX_CHANNEL, uint8_t rxChannel_ = RX_CHANNEL, ui...
332
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 35.17, "nodes": 242, "errors": 0, "source_hash": "84a944c9b51fdfcb01a988aa64bfacc4669943518c4cf5a99bf242b8b95324bd", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,101
c
#import <UIKit/UIKit.h> @interface UIFont (GoblinOne) + (instancetype)goblinOneFontOfSize:(CGFloat)size; @end
26.5
4
(translation_unit) "#import <UIKit/UIKit.h>\n@interface UIFont (GoblinOne)\n\n+ (instancetype)goblinOneFontOfSize:(CGFloat)size;\n\n@end\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface UIFont (GoblinOne)\n\n+ (instancetype)gob...
34
5
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 26.5, "nodes": 21, "errors": 0, "source_hash": "9307220e6841d4b635ac20eaa097b93cf2d4fd3c220b3ee26e68629876bbac66", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
79,102
c
// // ReelView.h // SlotMachine // // Created by Vincent on 5/24/17. // Copyright © 2017 zssr. All rights reserved. // #import <UIKit/UIKit.h> @interface ReelView : UIView /// @[S0, S1, ... , Sn-2, Sn-1]. Among these `n` symbols, `S0` is the initial visible one on the reel, `Sn-1` is the final result. @property ...
32.61
18
(translation_unit) "//\n// ReelView.h\n// SlotMachine\n//\n// Created by Vincent on 5/24/17.\n// Copyright © 2017 zssr. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ReelView : UIView\n\n/// @[S0, S1, ... , Sn-2, Sn-1]. Among these `n` symbols, `S0` is the initial visible one on the reel, `Sn-1`...
101
18
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.61, "nodes": 67, "errors": 0, "source_hash": "08a8311124fc5785401623be620055fb6597858f8fac1809a8bacf875e5693e7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
79,103
c
#define __XEN__ #include <stdint.h> #include "Rts.h" #include "Ticker.h" #include "GetTime.h" #include <stdlib.h> #include <string.h> #include <time.h> #include <runtime_reqs.h> #include "time_rts.h" #include <signals.h> #include <xen/xen.h> #include <xen/vcpu.h> #include <assert.h> #include "hypercalls.h" #include "me...
29.66
180
(translation_unit) "#define __XEN__\n#include <stdint.h>\n#include "Rts.h"\n#include "Ticker.h"\n#include "GetTime.h"\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n#include <runtime_reqs.h>\n#include "time_rts.h"\n#include <signals.h>\n#include <xen/xen.h>\n#include <xen/vcpu.h>\n#include <assert.h>\n#i...
1,381
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 29.66, "nodes": 836, "errors": 0, "source_hash": "c2219b6123d9db85cb35a802e7759f73cba88a988d5d439a64cce32f5bdde168", "categorized_nodes": 607}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
79,104
c
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int T = 0; scanf("%d",&T); while(T--) { int numberOfTown = 0; int numberOfRoutes; long int totalPath = 1; scanf("%d",&numberOfTown); for(int i =0; i<(numberOfTown-1) ; ...
24.46
24
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main() \n{\n int T = 0;\n scanf("%d",&T);\n while(T--)\n {\n int numberOfTown = 0;\n int numberOfRoutes;\n long int totalPath = 1;\n scanf("%d",&numberOfTown);\n ...
168
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.46, "nodes": 100, "errors": 0, "source_hash": "5900d5038e2f1ee3886bff194feedc2cf097157f74afe7f6bbca5cdf5ba22311", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,105
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject.h" #import "NSCopying-Protocol.h" @class DVTMutableOrderedDictionary, NSDictionary, NSXMLElement; @interface IBXMLCoderPerObjectState : NSObject <NSCopying> { ...
42.81
26
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSObject.h"\n\n#import "NSCopying-Protocol.h"\n\n@class DVTMutableOrderedDictionary, NSDictionary, NSXMLElement;\n\n@interface IBXMLCoderPerObjectSta...
193
23
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 42.81, "nodes": 130, "errors": 0, "source_hash": "c30958a9669682c517f42ce56f637c4144579e048bf64d890f27b3871afe8841", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,106
c
/* * (c) Crown copyright 2009-2015. * * This software is distributed under the MIT License. * (See accompanying file LICENSE.txt or copy at * http://opensource.org/licenses/MIT) */ /* * cuda_match.h * * Created on: Mar 17, 2010 * Author: gareth * * CUDA match functions */ #ifndef CUDA_MATCH_H_ #de...
23.18
62
(translation_unit) "/*\n * (c) Crown copyright 2009-2015.\n *\n * This software is distributed under the MIT License.\n * (See accompanying file LICENSE.txt or copy at\n * http://opensource.org/licenses/MIT)\n */\n/*\n * cuda_match.h\n *\n * Created on: Mar 17, 2010\n * Author: gareth\n *\n * CUDA match functio...
274
20
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 23.18, "nodes": 152, "errors": 0, "source_hash": "b7e594c936001dc1e9788b232cad94dd1867fe9d0abe4a48e2813c4e08120b22", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,107
c
/////////////////////////////////////////////////////////// // ThreadsafeObject.h // Implementation of the Class ThreadsafeObject // Created on: 24-Dec-2003 11:58:27 AM /////////////////////////////////////////////////////////// #if !defined(ThreadsafeObject_655AA69C_51E6_40ea_97B5_51D8F9AAC14F__INCLUDED...
27.64
25
(translation_unit) "/////////////////////////////////////////////////////////// \n// ThreadsafeObject.h \n// Implementation of the Class ThreadsafeObject \n// Created on: 24-Dec-2003 11:58:27 AM \n/////////////////////////////////////////////////////////// \n \n#if !defined(ThreadsafeObject_655AA69C_51E6_40ea_9...
80
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.64, "nodes": 45, "errors": 0, "source_hash": "c0ed95efdde75f7954a0a2a1bad3c4e5714266ee092b24e844841f835a0dc547", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
79,108
c
// SPDX-License-Identifier: BSD-2-Clause /* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "t...
28.8
165
(translation_unit) "// SPDX-License-Identifier: BSD-2-Clause\n/* LibTomCrypt, modular cryptographic library -- <NAME>\n *\n * LibTomCrypt is a library that provides various cryptographic\n * algorithms in a highly modular and flexible manner.\n *\n * The library is free for all purposes without any express\n * guarante...
811
4
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 28.8, "nodes": 496, "errors": 0, "source_hash": "b5b5842d5b2cb0f3b9c991e07076b6d026917a17e64a96a562a55777f917e089", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,109
c
#include <SNN/Graph.h> #include <stdio.h> #include <stdlib.h> uint8_t forward(const Graph* model, const SNNFTYPE* data, SNNFTYPE *result){ SNNFTYPE *d1 = NULL, *d2 = NULL; layer_forward(&model->layers[0], data, d1); for(int i=1;i<model->numLayers;i++){ layer_forward(&model->layers[i], d1, d2); ...
26.29
38
(translation_unit) "#include <SNN/Graph.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nuint8_t forward(const Graph* model, const SNNFTYPE* data, SNNFTYPE *result){\n SNNFTYPE *d1 = NULL, *d2 = NULL;\n layer_forward(&model->layers[0], data, d1);\n for(int i=1;i<model->numLayers;i++){\n layer_forward(&mod...
426
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.29, "nodes": 264, "errors": 0, "source_hash": "34f760010e1d0468ef2c255616bd3891f45a6ea6fcb19003be906cb1e3d1b1d6", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,110
c
/*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that co...
33.08
119
(translation_unit) "/***********************************************************\n\nCopyright 1987, 1998 The Open Group\n\nPermission to use, copy, modify, distribute, and sell this software and its\ndocumentation for any purpose is hereby granted without fee, provided that\nthe above copyright notice appear in all co...
610
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 33.08, "nodes": 416, "errors": 0, "source_hash": "9b54ef0e47fd21bb7e998aac85f37b79717c384ce681b9f68efe3b1787a1a569", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
79,111
c
// // QHFileManage.h // QHUtil // // Created by QianHan on 2017/3/3. // Copyright © 2017年 karl.luo. All rights reserved. // #import <Foundation/Foundation.h> @interface QHFileManage : NSObject @end
19.2
10
(translation_unit) "//\n// QHFileManage.h\n// QHUtil\n//\n// Created by QianHan on 2017/3/3.\n// Copyright © 2017年 karl.luo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface QHFileManage : NSObject\n\n@end\n" (comment) "//" (comment) "// QHFileManage.h" (comment) "// QHUtil" (co...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 10, "errors": 0, "source_hash": "b3769801d54405a3b242cd7b413d8941c9946a947568d84aa1ef3f9213f517c9", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Found...
79,112
c
/* * Copyright (c) 2015-2020, Onbings. All rights reserved. * * 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. * * This module defines t...
31.45
211
(translation_unit) "/*\n * Copyright (c) 2015-2020, Onbings. All rights reserved.\n *\n * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY\n * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR\n * PURPOSE.\n...
1,304
79
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 31.45, "nodes": 765, "errors": 0, "source_hash": "13323f4966f94ae320a128c0c5f5f1cb11176fb0c92d7d43fc8c6ea2eb1d0f25", "categorized_nodes": 534}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,113
c
#ifndef CLMETAPROPERTY_H #define CLMETAPROPERTY_H #include "CLMachine.h" #include "CLBoundProperty.h" #include <string> #include <memory> namespace CLReflect { //! A class that describes a property of a machine type, independent of its value class CLMetaProperty { protected: //! The name of ...
28.82
28
(translation_unit) "#ifndef CLMETAPROPERTY_H\n#define CLMETAPROPERTY_H\n\n#include "CLMachine.h"\n#include "CLBoundProperty.h"\n\n#include <string>\n#include <memory>\n\nnamespace CLReflect\n{\n //! A class that describes a property of a machine type, independent of its value\n class CLMetaProperty\n {\n pr...
191
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.82, "nodes": 104, "errors": 0, "source_hash": "671a3566d5789bdae76cf93cac5d15c7881e2d23a8475af5a4883cf3f38ddc7f", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,114
c
/* * This controls whether or not we use a serial line for the console * (ie, remote console). */ /* * Values for RCLINE: * -1 = disable * 0 = port 0x3f8/irq 4 (DOS COM1) * 1 = port 0x2f8/irq 3 (DOS COM2) * 2 = port 0x3e8/irq 5 (DOS COM3) * 3 = port 0x2e8/irq 9 (DOS COM4) */ #define RCLINE -1 /* com p...
25.93
14
(translation_unit) "/* \n * This controls whether or not we use a serial line for the console\n * (ie, remote console).\n */\n\n/*\n * Values for RCLINE:\n * -1 = disable\n * 0 = port 0x3f8/irq 4 (DOS COM1)\n * 1 = port 0x2f8/irq 3 (DOS COM2)\n * 2 = port 0x3e8/irq 5 (DOS COM3)\n * 3 = port 0x2e8/irq 9 (DOS COM4)\n...
13
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.93, "nodes": 8, "errors": 0, "source_hash": "ab49d8bba076a17632b11b660e63c09a81404230c3e5b66b8a6ea76c23670cbc", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define RCLI...
79,115
c
/* * Copyright 2004 Freescale Semiconductor. * <NAME> * <NAME> (<EMAIL>) * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Softwar...
29.36
98
(translation_unit) "/*\n * Copyright 2004 Freescale Semiconductor.\n * <NAME>\n * <NAME> (<EMAIL>)\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n *...
463
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 29.36, "nodes": 311, "errors": 0, "source_hash": "5bfb67d4922b8533cd94b7ed396454c7c1376663f9bce48b5e8b3a47081c3911", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,116
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:44:05 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/ProVideo.framework/ProVideo * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>....
37.57
23
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:44:05 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/ProVideo.framework/ProVideo\n* classdump-dyld is licensed under GPLv3, Copyrig...
223
19
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.57, "nodes": 120, "errors": 0, "source_hash": "7fb1c58de4e02f3f543fb5f7404f9088e69181e3d595482bf7c216ed949ba611", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol FxStre...
79,117
c
/** * Copyright 2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
36.52
69
(translation_unit) "/**\n * Copyright 2022 Huawei Technologies Co., Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unle...
442
26
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 36.52, "nodes": 280, "errors": 0, "source_hash": "f2cd9d3e40aaaf30f3a60f73db13a356c087c912b891f9c67b33401e4b547599", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,118
c
/** ****************************************************************************** * @file hdmi_cec.c * @brief This file provides code for the configuration * of the HDMI_CEC instances. ****************************************************************************** * @attention * * <h2><cen...
34.04
105
(translation_unit) "/**\n ******************************************************************************\n * @file hdmi_cec.c\n * @brief This file provides code for the configuration\n * of the HDMI_CEC instances.\n ******************************************************************************\n * @...
455
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 34.04, "nodes": 256, "errors": 0, "source_hash": "e123631c5a2d76c36e362eef46ecc1aa651d1eb84e21fd4020982d7d3b861e4b", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,119
c
#pragma once #include <vector> #include <SFML/Graphics/Texture.hpp> #include <SFML/System/Vector2.hpp> namespace GameEngine { //TODO - if needed, move out of Engine part to some sort of loader on the game side of things namespace eTexture { enum type { None = -1, Player, Agenda, AgendaHover, Obs...
26.28
85
(translation_unit) "#pragma once\n#include <vector>\n#include <SFML/Graphics/Texture.hpp>\n#include <SFML/System/Vector2.hpp>\n\n\nnamespace GameEngine\n{\n //TODO - if needed, move out of Engine part to some sort of loader on the game side of things\n namespace eTexture\n {\n enum type\n {\n None = -1,\n Player,...
672
32
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 26.28, "nodes": 338, "errors": 0, "source_hash": "f9cc3ee45481a565c38e48f1e00f0b2152d7bf7ce1715fff4a61b501238816d4", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,120
c
// // RiveSMIInput.h // RiveRuntime // // Created by <NAME> on 5/14/21. // Copyright © 2021 Rive. All rights reserved. // #ifndef rive_smi_input_h #define rive_smi_input_h #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /* * SMITrigger */ @interface RiveSMIInput : NSObject - (NSString *)name; - (bo...
15.95
43
(translation_unit) "//\n// RiveSMIInput.h\n// RiveRuntime\n//\n// Created by <NAME> on 5/14/21.\n// Copyright © 2021 Rive. All rights reserved.\n//\n\n\n#ifndef rive_smi_input_h\n#define rive_smi_input_h\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/*\n * SMITrigger\n */\n@interface RiveSMIInp...
179
18
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 15.95, "nodes": 112, "errors": 0, "source_hash": "6b080451de1697c5f7ff614faa7d6f40d03918ed1b60d6cadcdb1cf42b061cdf", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
79,121
c
/* libs/graphics/animator/SkDrawPath.h ** ** Copyright 2006, The Android Open Source Project ** ** 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/lic...
31.03
77
(translation_unit) "/* libs/graphics/animator/SkDrawPath.h \n** \n** Copyright 2006, The Android Open Source Project \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** ...
451
29
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 31.03, "nodes": 273, "errors": 0, "source_hash": "1f1401cc83e9e14c8e06ef2e3164052cfa2f6ae7b4d6dfd0a5e9b04767256287", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,122
c
#include "logic.h" #include "unity.h" #include <stddef.h> List *ex; Queue *postfix; Operator ops[] = { { .name = "NOT", .precedence = 1, .arity = 1, .associativity = RIGHT_ASSOC }, { .name = "AND", .precedence = 2, .arity = 2, .associativity = LEFT_ASSOC }, { .name = "OR", .precedence = 3, .arity = 2, .associativi...
33.19
283
(translation_unit) "#include "logic.h"\n#include "unity.h"\n\n#include <stddef.h>\n\nList *ex;\nQueue *postfix;\nOperator ops[] =\n{\n { .name = "NOT", .precedence = 1, .arity = 1, .associativity = RIGHT_ASSOC },\n { .name = "AND", .precedence = 2, .arity = 2, .associativity = LEFT_ASSOC },\n { .name = "OR", .precedenc...
3,116
0
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 33.19, "nodes": 1550, "errors": 0, "source_hash": "00af94502cc1b7cf5fa95f72f7b0ac43bba6c2b90bad36822d4276a42e16bf70", "categorized_nodes": 1195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
79,123
c
// // 2014 <NAME>. PD // #import <Foundation/Foundation.h> @interface NSArray (RemoveObject) - (NSArray *)arrayByRemovingFirstObject; - (NSArray *)arrayByRemovingLastObject; - (NSArray *)arrayByRemovingObject:(id)object; - (NSArray *)arrayByRemovingObjectsInArray:(NSArray *)array; @end
27.8
10
(translation_unit) "//\n// 2014 <NAME>. PD\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSArray (RemoveObject)\n\n- (NSArray *)arrayByRemovingFirstObject;\n- (NSArray *)arrayByRemovingLastObject;\n- (NSArray *)arrayByRemovingObject:(id)object;\n- (NSArray *)arrayByRemovingObjectsInArray:(NSArray *)array;\n\n...
81
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.8, "nodes": 52, "errors": 0, "source_hash": "3b305c286b0065b7b02cecda4765c8d74f6e7baf5c039962250accdd53163e88", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
79,124
c
/** * Reaver Library Licence * * Copyright © 2015 Michał "Griwes" Dominiak * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this softw...
35.29
49
(translation_unit) "/**\n * Reaver Library Licence\n *\n * Copyright © 2015 Michał "Griwes" Dominiak\n *\n * This software is provided 'as-is', without any express or implied\n * warranty. In no event will the authors be held liable for any damages\n * arising from the use of this software.\n *\n * Permission is grante...
248
25
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 35.29, "nodes": 176, "errors": 0, "source_hash": "6b7dca95df6678f9cc610c118eede0839441f97048e502bf34199a9c1a70f303", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
79,125
c
/************************************************************************* * Copyright (C) [2020] by Cambricon, Inc. 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 a...
35.39
77
(translation_unit) "/*************************************************************************\n * Copyright (C) [2020] by Cambricon, Inc. 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 obtai...
364
61
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 35.39, "nodes": 224, "errors": 0, "source_hash": "a3cd50660a954c15b4bd07f10ea6f5cc56defcb7869f512a881bdc6ffd3d140d", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef INFER_...
79,126
c
#define HAVE_PROTOTYPES #define HAVE_UNSIGNED_CHAR #define HAVE_UNSIGNED_SHORT #define HAVE_STDDEF_H #define HAVE_STDLIB_H #undef CHAR_IS_UNSIGNED #undef NEED_BSD_STRINGS #undef NEED_SYS_TYPES_H #undef NEED_FAR_POINTERS #undef NEED_SHORT_EXTERNAL_NAMES #undef INCOMPLETE_TYPES_BROKEN /* Define "boolean" as unsigned cha...
24.71
28
(translation_unit) "#define HAVE_PROTOTYPES\n#define HAVE_UNSIGNED_CHAR\n#define HAVE_UNSIGNED_SHORT\n#define HAVE_STDDEF_H\n#define HAVE_STDLIB_H\n#undef CHAR_IS_UNSIGNED\n#undef NEED_BSD_STRINGS\n#undef NEED_SYS_TYPES_H\n#undef NEED_FAR_POINTERS\n#undef NEED_SHORT_EXTERNAL_NAMES\n#undef INCOMPLETE_TYPES_BROKEN\n\n/* ...
79
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.71, "nodes": 73, "errors": 0, "source_hash": "83e6251416635c22ba771fb59b4a5e2e064c9555bafcbc604993e05bff02d512", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define HA...
79,127
c
typedef struct { double *value_arr; int arr_length; sensor_type_en sn_type; }test_set_st; #define Test(a,b,c) validate_SensorParameterReadings(a,b,c)
19.25
8
(translation_unit) "typedef struct \n{ \n double *value_arr; \n int arr_length; \n sensor_type_en sn_type; \n}test_set_st; \n \n#define Test(a,b,c) validate_SensorParameterReadings(a,b,c) \n" (type_definition) "typedef struct \n{ \n double *value_arr; \n int arr_length; \n sensor_type_en sn_type; \n}test_set_st;" ...
36
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.25, "nodes": 24, "errors": 0, "source_hash": "4375b7b4c285546250c57e46ff20b000350163a803bd9f4f82084e76996259c2", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
79,128
c
// BlueprintGeneratedClass GE_HealthRegen.GE_HealthRegen_C // Size: 0x800 (Inherited: 0x800) struct UGE_HealthRegen_C : UGameplayEffect { };
34.25
4
(translation_unit) "// BlueprintGeneratedClass GE_HealthRegen.GE_HealthRegen_C\n// Size: 0x800 (Inherited: 0x800)\nstruct UGE_HealthRegen_C : UGameplayEffect {\n};\n\n" (comment) "// BlueprintGeneratedClass GE_HealthRegen.GE_HealthRegen_C" (comment) "// Size: 0x800 (Inherited: 0x800)" (function_definition) "struc...
15
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 34.25, "nodes": 5, "errors": 0, "source_hash": "76b8ae1c85ba9499fe8e50fd75290bf08fd084565a867c76b1b3295e719d807a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "struc...
79,129
c
/* * Copyright 2009-2017 Alibaba Cloud 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 * * Unless required...
25.27
108
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud 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/licenses/LICENSE...
478
33
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 25.27, "nodes": 294, "errors": 0, "source_hash": "a975407fcd3ea9c9915e2e11a0f1ef6a4d83947c59b3aae5b44ad5efb0ff1203", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,130
c
// Linear Search in C // ================================================= #include<stdio.h> void main() { // Initialize variables int arr[5] = {10,20,30,40,50}; // Example array int num, found=0, pos; // Taking input printf("Enter number to be searched : "); scanf("%d", &num); // Loop for...
24.52
27
(translation_unit) "// Linear Search in C\n// =================================================\n#include<stdio.h>\nvoid main()\n{\n // Initialize variables\n int arr[5] = {10,20,30,40,50}; // Example array\n int num, found=0, pos;\n\n // Taking input\n printf("Enter number to be searched : ");\n scan...
178
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.52, "nodes": 94, "errors": 0, "source_hash": "08bb00b582339b8cfddc11501d551c4ed6cf56bacdc8b12d9f8324f0defb6871", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,131
c
#ifndef STACK_H #define STACK_H void Push(int data); void Pop(); void Print_Stack(); #endif
11.62
8
(translation_unit) "#ifndef STACK_H \n#define STACK_H \n \nvoid Push(int data); \nvoid Pop(); \nvoid Print_Stack(); \n \n#endif" (preproc_ifdef) "#ifndef STACK_H \n#define STACK_H \n \nvoid Push(int data); \nvoid Pop(); \nvoid Print_Stack(); \n \n#endif" (#ifndef) "#ifndef" (identifier) "STACK_H" (preproc...
35
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 11.62, "nodes": 25, "errors": 0, "source_hash": "8a7c9549da90a7f5dd03a94b62bb4e4fc99cadf4e11b21b5496bd64ba5f9bf82", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
79,132
c
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "datastorebase.h" #include "entryref.h" #include "handle.h" namespace search::datastore { /** * Allocator used to allocate raw buffers (EntryT *) in an underlying data store ...
28.5
26
(translation_unit) "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\n#pragma once\n\n#include "datastorebase.h"\n#include "entryref.h"\n#include "handle.h"\n\nnamespace search::datastore {\n\n/**\n * Allocator used to allocate raw buffers (EntryT ...
140
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.5, "nodes": 85, "errors": 0, "source_hash": "e64aa3f9f1532dc8dcf9f272423d6dcbe7ad54e112feab82a1ac6ede23fc624f", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,133
c
#ifndef BONES_CORE_HELPER_H_ #define BONES_CORE_HELPER_H_ #include "core.h" #include "event.h" struct SkRect; struct SkIRect; struct SkPoint; class SkBitmap; class SkShader; class SkPaint; namespace bones { class Pixmap; class Surface; class Rect; class Point; class Shader; struct KeyState; class Font; class Help...
28.36
44
(translation_unit) "fndef BONES_CORE_HELPER_H_\n#define BONES_CORE_HELPER_H_\n\n#include "core.h"\n#include "event.h"\n\nstruct SkRect;\nstruct SkIRect;\nstruct SkPoint;\nclass SkBitmap;\nclass SkShader;\nclass SkPaint;\n\nnamespace bones\n{\n\nclass Pixmap;\nclass Surface;\nclass Rect;\nclass Point;\nclass Shader;\nst...
412
16
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 28.36, "nodes": 284, "errors": 0, "source_hash": "cbf2381ebd730dfddd5685d0cda542b30741d64cae1a1693cf8f0b15acbe2978", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
79,134
c
// // APTextField.h // Afterparty // // Created by <NAME> on 6/5/14. // Copyright (c) 2014 Afterparty. All rights reserved. // #import <UIKit/UIKit.h> @interface APTextField : UITextField - (void)styleForLogin; - (void)styleForPasswordEntry; - (void)styleForSettingsPage; @end
20.62
13
(translation_unit) "//\n// APTextField.h\n// Afterparty\n//\n// Created by <NAME> on 6/5/14.\n// Copyright (c) 2014 Afterparty. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface APTextField : UITextField\n\n- (void)styleForLogin;\n- (void)styleForPasswordEntry;\n- (void)styleForSettingsPage;\n\n@end...
52
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.62, "nodes": 28, "errors": 0, "source_hash": "ea6b6e5ace794119e00ddb786cf3697de35d4d7dcf263fc717b088d66cf51484", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,135
c
#pragma once #include "Renaissance/Core/Core.h" #include "Renaissance/Core/InputLayer.h" #include "Renaissance/Core/LayerStack.h" #include "Renaissance/Core/Window.h" #include "Renaissance/Events/AppEvent.h" #include "Renaissance/Events/Event.h" #include "Renaissance/Events/WindowEvent.h" #include "Renaissance/UserI...
28.59
64
(translation_unit) "#pragma once\n\n#include "Renaissance/Core/Core.h"\n#include "Renaissance/Core/InputLayer.h"\n#include "Renaissance/Core/LayerStack.h"\n#include "Renaissance/Core/Window.h"\n\n#include "Renaissance/Events/AppEvent.h"\n#include "Renaissance/Events/Event.h"\n#include "Renaissance/Events/WindowEvent.h"...
557
26
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 28.59, "nodes": 347, "errors": 0, "source_hash": "dfc9da9f9f4cb59deada6c8114ff723dedd12feeca9707421cca44b66545c8c6", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,136
c
/* * AHT15.c * * Created on: Nov 17, 2021 * Author: vikto */ #include "AHT15.h" float AHT15_relative_humidity = -100.0f, AHT15_temperature = -100.0f; uint8_t measure_humidity = 0; void AHT15_init() { uint8_t init = AHT15_initialization; HAL_Delay(25);//needs 20 ms for i2c to stabilize after power up LE...
30.91
55
(translation_unit) "/*\n * AHT15.c\n *\n * Created on: Nov 17, 2021\n * Author: vikto\n */\n\n#include "AHT15.h"\n\nfloat AHT15_relative_humidity = -100.0f, AHT15_temperature = -100.0f;\nuint8_t measure_humidity = 0;\n\nvoid AHT15_init()\n{\n uint8_t init = AHT15_initialization;\n HAL_Delay(25);//needs 20 ms for ...
540
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.91, "nodes": 312, "errors": 0, "source_hash": "dc8f1c771d3cd3ae6f4331030758094937468fc16464f26a76600e6620e008eb", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,137
c
/* * fixedgrid_spu.c * * Prototype chemical transport model. * SPE program file. * * Created by <NAME> on 4/8/08. * Copyright 2008 Transatlantic Giraffe. All rights reserved. * */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <spu_mfcio.h> #include "fixedgrid_spu.h" #include "com...
25.04
206
(translation_unit) "/*\n * fixedgrid_spu.c\n * \n * Prototype chemical transport model.\n * SPE program file.\n *\n * Created by <NAME> on 4/8/08.\n * Copyright 2008 Transatlantic Giraffe. All rights reserved.\n *\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <spu_mfcio.h>\n\n#inc...
840
3
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 25.04, "nodes": 436, "errors": 0, "source_hash": "0f3470a869ef2239b21850ae049c40324e88b09a9d354095a41b7b2c7dac2194", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,138
c
#if !defined(__TOOLS_HEAD_FILE__) #define __TOOLS_HEAD_FILE__ void Swap(int *data, const int i, const int j); #endif // __TOOLS_HEAD_FILE__
34
4
(translation_unit) "#if !defined(__TOOLS_HEAD_FILE__)\n#define __TOOLS_HEAD_FILE__\n\nvoid Swap(int *data, const int i, const int j);\n\n#endif // __TOOLS_HEAD_FILE__\n" (preproc_if) "#if !defined(__TOOLS_HEAD_FILE__)\n#define __TOOLS_HEAD_FILE__\n\nvoid Swap(int *data, const int i, const int j);\n\n#endif" (#if)...
41
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 34.0, "nodes": 28, "errors": 0, "source_hash": "4f9c0384d930bb8d57ef668e119f3f46c83631a46b8cdcb3226b09808302c7bf", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined(...
79,139
c
// -*-c++-*- /*! \file convex_hull.h \brief 2D convex hull Header File. */ /* *Copyright: Copyright (C) <NAME> This code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the...
27.99
184
(translation_unit) "// -*-c++-*-\n\n/*!\n \file convex_hull.h\n \brief 2D convex hull Header File.\n*/\n\n/*\n *Copyright:\n\n Copyright (C) <NAME>\n\n This code is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Fo...
517
26
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 27.99, "nodes": 252, "errors": 0, "source_hash": "96b57213c40a8669eec4e858b2011c2f592178ca6e919fb45911c0cc7c958903", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,140
c
#ifndef __MACROS_H #define __MACROS_H #ifdef API_EXPORTS #if defined(_MSC_VER) #define API __declspec(dllexport) #else #define API __attribute__((visibility("default"))) #endif #else #if defined(_MSC_VER) #define API __declspec(dllimport) #else #define API #endif #endif // API_EXPORTS #if NV_TENSO...
17.07
27
(translation_unit) "#ifndef __MACROS_H \n#define __MACROS_H \n \n#ifdef API_EXPORTS \n#if defined(_MSC_VER) \n#define API __declspec(dllexport) \n#else \n#define API __attribute__((visibility("default"))) \n#endif \n#else \n \n#if defined(_MSC_VER) \n#define API __declspec(dllimport) \n#else \n#define API \n#endif \n#e...
77
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 17.07, "nodes": 69, "errors": 0, "source_hash": "8bcbe5066807553062f30d795ec3f2caf85b026f29946838e799c8f8d9469a58", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,141
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:38:49 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NA...
33.15
26
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:38:49 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore\n* classdump-dyld is licensed under GPLv3, Cop...
194
17
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.15, "nodes": 119, "errors": 0, "source_hash": "0a5aa5f962a71831f7875e31e48113843424388dcf1deb44f3ad21cc8d3378f3", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "p", "parent": n...
79,142
c
/* module : trunc.c version : 1.1 date : 05/21/21 */ #ifndef TRUNC_C #define TRUNC_C /** 1690 trunc : F -> I I is an integer equal to the float F truncated toward zero. */ PRIVATE void trunc_(pEnv env) { ONEPARAM("trunc"); FLOAT("trunc"); UNARY(INTEGER_NEWNODE, (long_t)FLOATVAL); } #en...
16.94
18
(translation_unit) "/*\n module : trunc.c\n version : 1.1\n date : 05/21/21\n*/\n#ifndef TRUNC_C\n#define TRUNC_C\n\n/**\n1690 trunc : F -> I\nI is an integer equal to the float F truncated toward zero.\n*/\nPRIVATE void trunc_(pEnv env)\n{\n ONEPARAM("trunc");\n FLOAT("trunc");\n UNARY(INTEG...
62
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.94, "nodes": 33, "errors": 0, "source_hash": "3273040ffe171b0b213f4c222e4aabc85c44dbb18d11aa3b830a00dc5cec04fe", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,143
c
// license:BSD-3-Clause // copyright-holders:<NAME> /* * doubler.c -- Draysoft Doubler - external cassette interface for the 464 (works on 664/6128 with external cassette?), * intended for use in duplicating cassette software * * Uses only port F0E0 (may conflict with other peripherals, PPI port A ...
34.06
35
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/*\n * doubler.c -- Draysoft Doubler - external cassette interface for the 464 (works on 664/6128 with external cassette?),\n * intended for use in duplicating cassette software\n *\n * Uses only port F0E0 (may conflict with othe...
162
13
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.06, "nodes": 98, "errors": 0, "source_hash": "9a31c3c6cd82dcd07b1f24198909161e390404a8413e5226cf6aa29ebfadbf87", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,144
c
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2019 QMCPACK developers. // // File developed by: <NAME>, <EMAIL>, Oak Ridge...
37.64
86
(translation_unit) "//////////////////////////////////////////////////////////////////////////////////////\n// This file is distributed under the University of Illinois/NCSA Open Source License.\n// See LICENSE file in top directory for details.\n//\n// Copyright (c) 2019 QMCPACK developers.\n//\n// File developed by: ...
430
21
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 37.64, "nodes": 252, "errors": 0, "source_hash": "c1d092e0355b20cfb7b6963bb5133770ab0bb301e03987f8635770baf5d659df", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,145
c
// // DDGUnderViewControllerCell.h // DuckDuckGo // // Created by <NAME> on 08/03/2013. // // #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> #import "DDGFixedSizeImageView.h" @interface DDGUnderViewControllerCell : UITableViewCell @property (nonatomic, getter = isActive) BOOL active; @property (nonatomi...
33.24
17
(translation_unit) "//\n// DDGUnderViewControllerCell.h\n// DuckDuckGo\n//\n// Created by <NAME> on 08/03/2013.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import <QuartzCore/QuartzCore.h>\n#import "DDGFixedSizeImageView.h"\n\n@interface DDGUnderViewControllerCell : UITableViewCell\n@property (nonatomic, getter = isActive)...
115
21
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.24, "nodes": 83, "errors": 0, "source_hash": "fa35145b4f0d14c021d94ad8d763b9ae3aadd528cd37c51d0add4f95a1061bb3", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,146
c
/* tc-dlx.h -- Assemble for the DLX Copyright 2002, 2003 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. GAS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either vers...
42.97
67
(translation_unit) "/* tc-dlx.h -- Assemble for the DLX\n Copyright 2002, 2003 Free Software Foundation, Inc.\n\n This file is part of GAS, the GNU Assembler.\n\n GAS is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Softw...
266
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 42.97, "nodes": 192, "errors": 0, "source_hash": "51ad481c6481fe1fda1e215fb4d70f330a7095648e3045d820a7b50f8cbcc046", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define T...
79,147
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion */ @interface _NTKCFaceDetailCollectionCellLabel : UIView { bool _active; CAShapeLayer * _background; UILabel * _label; bool _usesShortTextWidth; } @property (nonatomic) bo...
30.66
29
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion\n */\n\n@interface _NTKCFaceDetailCollectionCellLabel : UIView {\n bool _active;\n CAShapeLayer * _background;\n UILabel * _label;\n bool _usesShortTextWidth;...
299
21
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.66, "nodes": 185, "errors": 0, "source_hash": "c3601d0508ba031f425781b478405b73a36085a73b0ecd826fbcfca09df5c698", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
79,148
c
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * File: DynamicRangeFiveBandCompression.h * * MATLAB Coder version : 3.3 * C/C++ source code generated...
30.97
35
(translation_unit) "/*\n * Academic License - for use in teaching, academic research, and meeting\n * course requirements at degree granting institutions only. Not for\n * government, commercial, or other organizational use.\n * File: DynamicRangeFiveBandCompression.h\n *\n * MATLAB Coder version : 3.3\n * ...
136
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.97, "nodes": 96, "errors": 0, "source_hash": "8db48cbafeec840d5ab4264798289f09586e79d7c900f7f7850e385c7bd5be85", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,149
c
/* * Find the number of words read from stdin, the sum of whose letters' values is a triangle number * Words on stdin should be in double quotes and separated by a single comma */ #include <stdio.h> #include <ctype.h> #include "math_utils.h" int main (void) { char word[100 + 1]; int count = 0; while (scanf ("...
25.05
22
(translation_unit) "/*\n * Find the number of words read from stdin, the sum of whose letters' values is a triangle number\n * Words on stdin should be in double quotes and separated by a single comma\n */\n\n#include <stdio.h>\n#include <ctype.h>\n#include "math_utils.h"\n\nint main (void) {\n char word[100 + 1];\n\n ...
175
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.05, "nodes": 111, "errors": 0, "source_hash": "c30e323457267a6ba03e6f2fb0aba645764811f3bc3251b26ad0e51b402e101d", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,150
c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2016 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. * * Portions of this code were written by Mellanox Technologies Ltd. * Copyright (C) Mellanox Technologies Ltd. 2016. ALL RIGHTS RESERVED */ #ifndef UCX_PR...
35.2
30
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */\n/*\n * (C) 2016 by Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n *\n * Portions of this code were written by Mellanox Technologies Ltd.\n * Copyright (C) Mellanox Technologies Ltd. 2016. ALL RIGHTS R...
147
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.2, "nodes": 86, "errors": 0, "source_hash": "d433f8b1911a66f87f7bec0c9194487539b9cd2458504ee64af135ae9346ff64", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
79,151
c
/* * @Author: cpu_code * @Date: 2020-06-15 15:13:34 * @LastEditTime: 2020-06-15 15:20:50 * @FilePath: \c_course\string\talkback.c * @Gitee: https://gitee.com/cpu_code * @CSDN: https://blog.csdn.net/qq_44226094 */ #include <stdio.h> #include <string.h> // 提供strlen()函数的原型 //用C预处理器把字符常量DENSITY定义为62.4 #define DENS...
25.08
39
(translation_unit) "/*\n * @Author: cpu_code\n * @Date: 2020-06-15 15:13:34\n * @LastEditTime: 2020-06-15 15:20:50\n * @FilePath: \c_course\string\talkback.c\n * @Gitee: https://gitee.com/cpu_code\n * @CSDN: https://blog.csdn.net/qq_44226094\n */ \n#include <stdio.h>\n#include <string.h> // 提供strlen()函数的原型\n\n//用C预处理器把...
177
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 25.08, "nodes": 90, "errors": 0, "source_hash": "801c297d0e4ed9a0f99874f04cf090fe93e1a629d25bb246e528cdb108c63a17", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,152
c
#ifndef image_provider_h #define image_provider_h void jpeg_provider(); #endif
18.75
4
(translation_unit) "#ifndef image_provider_h\n#define image_provider_h\n\nvoid jpeg_provider();\n\n#endif" (preproc_ifdef) "#ifndef image_provider_h\n#define image_provider_h\n\nvoid jpeg_provider();\n\n#endif" (#ifndef) "#ifndef" (identifier) "image_provider_h" (preproc_def) "#define image_provider_h\n" ...
16
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.75, "nodes": 12, "errors": 0, "source_hash": "9b0e051f377fe42d8dab520432b318065261f37ae2cd6b954100eb4a007ad898", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef im...
79,153
c
/* Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
34.08
148
(translation_unit) "/* Copyright 2014 <NAME>\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicabl...
1,363
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 34.08, "nodes": 865, "errors": 0, "source_hash": "1b17326523f6a7faa59c161c8a862ac05d840e8b5a68848aaf8edf42584b1f36", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,154
c
#pragma once #include <algorithm> #include <fw/filesystem.hpp> #include <iostream> #include <regex> #include <set> #include <stdio.h> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> struct File; struct PendingCommand; struct Component { public: Component(const fs::path &path...
29.26
35
(translation_unit) "#pragma once\n\n#include <algorithm>\n#include <fw/filesystem.hpp>\n#include <iostream>\n#include <regex>\n#include <set>\n#include <stdio.h>\n#include <string>\n#include <unordered_map>\n#include <unordered_set>\n#include <vector>\n\nstruct File;\nstruct PendingCommand;\n\nstruct Component\n{\npubl...
321
23
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.26, "nodes": 215, "errors": 0, "source_hash": "66a1ce67e9c0cf1ab0d563d6d6570a9195b6049d50a27a0dd0f3c109a94a8264", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,155
c
#include <SDL2/SDL.h> #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include "Button.h" void renderButton(SDL_Renderer* renderer, Button button);
25.67
6
(translation_unit) "#include <SDL2/SDL.h>\n#include <stdint.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include "Button.h"\n\nvoid renderButton(SDL_Renderer* renderer, Button button);" (preproc_include) "#include <SDL2/SDL.h>\n" (#include) "#include" (system_lib_string) "<SDL2/SDL.h>" (preproc_include) "...
36
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.67, "nodes": 28, "errors": 0, "source_hash": "c24fed02f8d2321fd8941d67898b178b071e1bd17be784735cfb5b8ef1a9b0dc", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,156
c
/*============================================================ ** ** Header: exectest.h ** ** Purpose: Header file for test case launcher. ** ** ** ** Copyright (c) 2006 Microsoft Corporation. All rights reserved. ** ** The use and distribution terms for this software are contained in the file ** named lice...
31.72
25
(translation_unit) "/*============================================================\n**\n** Header: exectest.h\n**\n** Purpose: Header file for test case launcher.\n**\n** \n** \n** Copyright (c) 2006 Microsoft Corporation. All rights reserved.\n** \n** The use and distribution terms for this software are contain...
41
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.72, "nodes": 32, "errors": 0, "source_hash": "12e0ce8c24096b6e13b0f8bfd9c5cf4e46686e7f2de1d47c7d358241031988b8", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,157
c
/* * Copyright (c) 2020-2022 The reone project contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * ...
33.44
43
(translation_unit) "/*\n * Copyright (c) 2020-2022 The reone project contributors\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your optio...
267
11
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.44, "nodes": 148, "errors": 0, "source_hash": "ef6c38068ae0541f3df1e0b90cc473249a81f162ef6793fa8992604288a0687d", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,158
c
/* * Renesas Solutions Highlander R7785RP Support. * * Copyright (C) 2002 Atom Create Engineering Co., Ltd. * Copyright (C) 2006 <NAME> * Copyright (C) 2007 <NAME> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this a...
30.56
54
(translation_unit) "/*\n * Renesas Solutions Highlander R7785RP Support.\n *\n * Copyright (C) 2002 Atom Create Engineering Co., Ltd.\n * Copyright (C) 2006 <NAME>\n * Copyright (C) 2007 <NAME>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in ...
361
6
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.56, "nodes": 196, "errors": 0, "source_hash": "c742b6d01e29a8e4ea580752e62346637243285b0e6504ca2c59300397395f0a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,159
c
#include <stdio.h> int binsearch(int x, int v[], int n) { int low = 0, mid, high = n - 1; while (low <= high) { mid = (low + high) / 2; if (x < v[mid]) high = mid - 1; else if (x > v[mid]) low = mid + 1; else return mid; } return -1; } // Exercise 3-1, untested int binsearch2...
19.23
30
(translation_unit) "#include <stdio.h>\n\nint binsearch(int x, int v[], int n) {\n int low = 0, mid, high = n - 1;\n while (low <= high) {\n mid = (low + high) / 2;\n if (x < v[mid])\n high = mid - 1;\n else if (x > v[mid])\n low = mid + 1;\n else\n return mid;\n }\n return -1;\n}\n\n// E...
254
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 19.23, "nodes": 166, "errors": 0, "source_hash": "9333bb022c5464582a384c4a31cdc13a350ee7bd258084114d7c081f3e130b9c", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,160
c
// // FSABSearchController.h // myhome // // Created by fudon on 2017/5/22. // Copyright © 2017年 fuhope. All rights reserved. // #import "FSShakeBaseController.h" @interface FSABSearchController : FSShakeBaseController @property (nonatomic,strong) UIView *resultView; @property (nonatomic,copy) void (^search...
36.23
13
(translation_unit) "//\n// FSABSearchController.h\n// myhome\n//\n// Created by fudon on 2017/5/22.\n// Copyright © 2017年 fuhope. All rights reserved.\n//\n\n#import "FSShakeBaseController.h"\n\n@interface FSABSearchController : FSShakeBaseController\n\n@property (nonatomic,strong) UIView *resultView;\n\n@prope...
106
15
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.23, "nodes": 76, "errors": 0, "source_hash": "ef24aee0771ddf8284260f42c74d00c3b6868cd1626068f7b9eb43134b565c34", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"FS...
79,161
c
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: MIT */ #ifndef VMI_H #define VMI_H #include <libvmi/libvmi.h> #include <libvmi/events.h> bool setup_vmi(vmi_instance_t *vmi, char *domain, uint64_t domid, char *json, bool init_events, bool init_paging); void loop(vmi_instance_t vmi); #endif
27.55
11
(translation_unit) "/*\n * Copyright (C) 2020 Intel Corporation\n * SPDX-License-Identifier: MIT\n */\n#ifndef VMI_H\n#define VMI_H\n\n#include <libvmi/libvmi.h>\n#include <libvmi/events.h>\n\nbool setup_vmi(vmi_instance_t *vmi, char *domain, uint64_t domid, char *json, bool init_events, bool init_paging);\nvoid loop(v...
63
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.55, "nodes": 50, "errors": 0, "source_hash": "689b44c8ecc76b9fb07e67f752da0dfdcdd75dd88234989cbefb294e38ad4e78", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,162
c
//////////////////////////////////////////////////////////////////////////////// /// @file BSP_CRS.H /// @author <NAME> /// @version v2.0.0 /// @date 2019-02-18 /// @brief THIS FILE CONTAINS ALL THE FUNCTIONS PROTOTYPES FOR THE CRS /// BSP LAYER. /////////////////////////////////////////////////...
36.1
59
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n/// @file BSP_CRS.H\n/// @author <NAME>\n/// @version v2.0.0\n/// @date 2019-02-18\n/// @brief THIS FILE CONTAINS ALL THE FUNCTIONS PROTOTYPES FOR THE CRS\n/// BSP LAYER.\n//////////////////////...
107
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 36.1, "nodes": 53, "errors": 0, "source_hash": "2ef3bbf152965c8761a5c3e8bbda47b325ba4581cca400b679ba40a401beae9f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,163
c
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include <cstdint> #include "swganh/byte_buffer.h" #include "base_swg_message.h" namespace swganh { namespace messages { struct CancelLiveAuctionResponseMessage : public Bas...
31.25
32
(translation_unit) "// This file is part of SWGANH which is released under the MIT license.\n// See file LICENSE or go to http://swganh.com/LICENSE\n#pragma once\n\n#include <cstdint>\n#include "swganh/byte_buffer.h"\n#include "base_swg_message.h"\n\nnamespace swganh {\nnamespace messages {\n\n struct CancelLiveAuct...
216
5
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.25, "nodes": 124, "errors": 0, "source_hash": "6fe9dc426c535c834d08dcd46b972e8aed2475799154ce22b7a8a640de5d7907", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,164
c
#ifndef MAGICPOOL_H #define MAGICPOOL_H #include "magicfish.h" #include <QPainterPath> #include <QQuickPaintedItem> class MagicPool : public QQuickPaintedItem { Q_OBJECT Q_PROPERTY(bool moving READ moving CONSTANT) public: MagicPool(QQuickPaintedItem *parent = nullptr); bool moving() const { return...
27.29
35
(translation_unit) "#ifndef MAGICPOOL_H\n#define MAGICPOOL_H\n\n#include "magicfish.h"\n#include <QPainterPath>\n#include <QQuickPaintedItem>\n\nclass MagicPool : public QQuickPaintedItem\n{\n Q_OBJECT\n\n Q_PROPERTY(bool moving READ moving CONSTANT)\n\npublic:\n MagicPool(QQuickPaintedItem *parent = nullptr);...
267
11
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.29, "nodes": 165, "errors": 0, "source_hash": "a85841474efa1594d5298083fd7b64eac0371e4717e2e02ba154b1e82c7dfd03", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,165
c
#include <stdlib.h> #include "getpalette.h" typedef struct pair { int color, count; } pair; int cmp(const void *, const void *); pal_t rgb2pal(rgb_t rgb, int len) { pal_t pal; pair colors[512]; int col_order[512]; int i, r, g, b; int num_col; int color; for(i=0; i<512; i++) { colors[i].color=i; ...
25.19
64
(translation_unit) "#include <stdlib.h>\n#include "getpalette.h"\n\ntypedef struct pair {\n int color, count;\n} pair;\n\nint cmp(const void *, const void *);\n\npal_t rgb2pal(rgb_t rgb, int len) {\n pal_t pal;\n pair colors[512];\n int col_order[512];\n int i, r, g, b;\n int num_col;\n int color;\n\n for(i=0; ...
922
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 25.19, "nodes": 565, "errors": 0, "source_hash": "0df08b794a90cb8eecf34a1b1d64baf76b49c88b12f741c0e8bfa0c411fa1eb1", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,166
c
#ifndef COSMOPOLITAN_LIBC_TINYMATH_KERNEL_INTERNAL_H_ #define COSMOPOLITAN_LIBC_TINYMATH_KERNEL_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern int __signgam; float __cosdf(double); float __sindf(double); float __tandf(double, int); double __sin(double, double, int); double __tan(double...
35.31
16
(translation_unit) "#ifndef COSMOPOLITAN_LIBC_TINYMATH_KERNEL_INTERNAL_H_\n#define COSMOPOLITAN_LIBC_TINYMATH_KERNEL_INTERNAL_H_\n#if !(__ASSEMBLER__ + __LINKER__ + 0)\nCOSMOPOLITAN_C_START_\n\nextern int __signgam;\n\nfloat __cosdf(double);\nfloat __sindf(double);\nfloat __tandf(double, int);\ndouble __sin(double, dou...
155
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 35.31, "nodes": 113, "errors": 0, "source_hash": "336209b7efdbbec5f1a8caf7c73b86085e1501079d0b292217c3e86654936890", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,167
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing */ @interface HSAccountStore : NSObject { int _defaultsDidChangeToken; SSURLConnectionRequest * _groupIDRequest; NSObject<OS_dispatch_queue> * _queue; } @property (nonatomic, copy) NSString *appl...
31.91
34
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing\n */\n\n@interface HSAccountStore : NSObject {\n int _defaultsDidChangeToken;\n SSURLConnectionRequest * _groupIDRequest;\n NSObject<OS_dispatch_queue> * _queue;\n}\n\n@property (n...
379
24
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.91, "nodes": 232, "errors": 0, "source_hash": "834632366ef05db8838cea31d0003d01a488ac2385180c92be70e88d42cde287", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
79,168
c
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define N_BUCKETS 10 struct Bucket { int* array; size_t n_elem; size_t max_elem; }; enum STATS { MIN = 0, MAX = 1, BUF = 2, }; struct Bucket* make(size_t max){ struct Bucket* block_arr = malloc(sizeof(struct Bu...
34.41
155
(translation_unit) "#include <mpi.h> \n#include <stdio.h> \n#include <stdlib.h>\n#include <string.h>\n\n#define N_BUCKETS 10\n\nstruct Bucket {\n int* array;\n size_t n_elem;\n size_t max_elem;\n};\n\nenum STATS {\n MIN = 0,\n MAX = 1,\n BUF = 2,\n};\n\nstruct Bucket* make(size_t max){\n struct Buc...
1,613
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 34.41, "nodes": 997, "errors": 0, "source_hash": "ac09e92be2d84309a2f6e1980b0e2af59fc522a0520cc9f706a419d37411c687", "categorized_nodes": 737}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,169
c
#ifndef ROCKET_H #define ROCKET_H #include "identifiable_object.h" class Rocket : public IdentifiableObject { private: unsigned int owner_id; public: Rocket(const Ray& position, unsigned int id, unsigned int owner_id); /* Moves the rocket */ void move(); /* Returns owner's id */ unsigned int get_owne...
27.62
16
(translation_unit) "#ifndef ROCKET_H\n#define ROCKET_H\n\n#include "identifiable_object.h"\n\nclass Rocket : public IdentifiableObject {\n private:\n unsigned int owner_id;\n\n public:\n Rocket(const Ray& position, unsigned int id, unsigned int owner_id);\n\n /* Moves the rocket */\n void move();\n\n /* Returns ow...
120
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.62, "nodes": 76, "errors": 0, "source_hash": "9b0fe65c3e5b5b4e766020feded13bd443281a37926c00e3c062f4ad25b4d2df", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,170
c
#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "libbase58.h" #include "core/address.h" static UT_icd const addr_list_icd = {sizeof(address_t), NULL, NULL, NULL}; static void address_from_ed25519(byte_t const seed[], uint64_t index, byte_t addr_out[]) { int digest_len = 3...
36.37
140
(translation_unit) "#include <inttypes.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "libbase58.h"\n\n#include "core/address.h"\n\nstatic UT_icd const addr_list_icd = {sizeof(address_t), NULL, NULL, NULL};\n\nstatic void address_from_ed25519(byte_t const seed[], uint64_t index, byte_t add...
1,650
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 36.37, "nodes": 1004, "errors": 0, "source_hash": "eb16a7a1c549b2536bc47fe541ddb7d73ca79b64b15ed8b01395796715fac280", "categorized_nodes": 678}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,171
c
#pragma once #include <math.h> #include "Ally.h" #include "../Headers/Allies/Monolith.h" #include "../Structures/EnemyType.h" #include "../Headers/OverBar.h" enum EnemyAnimation { none, attack }; class Enemy : public Unit { float r; // Расстояние до цели int damage; // Наносимый ...
23.03
36
(translation_unit) "ragma once\n#include <math.h>\n#include "Ally.h"\n#include "../Headers/Allies/Monolith.h"\n#include "../Structures/EnemyType.h"\n#include "../Headers/OverBar.h"\n\nenum EnemyAnimation\n{\n none,\n attack\n};\n\nclass Enemy : public Unit\n{\n float r; // Расстояние до цели\n int ...
252
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.03, "nodes": 155, "errors": 0, "source_hash": "935b72e24995a3e51eb787e08a6ddcd1285a1471c2c1743e300be2eee9add9ca", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
79,172
c
#pragma once #include "Actor.h" class Crosshair : public Actor { public: Crosshair(Game* game); /* Game cycle */ void update(int mouseX, int mouseY); };
17.78
9
(translation_unit) "#pragma once\n\n#include "Actor.h"\n\nclass Crosshair :\n public Actor {\npublic:\n Crosshair(Game* game);\n /* Game cycle */\n void update(int mouseX, int mouseY);\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "...
52
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.78, "nodes": 29, "errors": 0, "source_hash": "37e5faaf82a76c053b68c7e38d9444f87b3f716ec6cc1ff7156574f1b1438951", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,173
c
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbbonobo.h - $Author: mutoh $ $Date: 2003/03/19 14:44:18 $ Copyright (C) 2002 <NAME> <<EMAIL>> This file is devided from rbgnome.c. rbgnome.c - Copyright (C) 2001 <NAME> <<EMAIL>> **************...
30
18
(translation_unit) "/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */\n/************************************************\n\n rbbonobo.h -\n\n $Author: mutoh $\n $Date: 2003/03/19 14:44:18 $\n\n Copyright (C) 2002 <NAME> <<EMAIL>>\n\n This file is devided from rbgnome.c.\n rbgnome.c -\n Copyright (C) 2001...
36
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.0, "nodes": 27, "errors": 0, "source_hash": "4fecf8425fed46759d8943ce4cf80665d0c19ac5a97bf29b3de92ab079ca214f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,174
c
// // Created by julian on 6/12/20. // #ifndef _FPGA_H #define _FPGA_H #include <trail_detection/fpga/ip/mm2vs.h> #include <trail_detection/fpga/ip/vs2mm.h> #include <trail_detection/fpga/ip/trail_detection.h> #include <trail_detection/buffer.h> #include <sys/mman.h> /// Control signal start: bit 0 = 1 #define AP_S...
33.72
117
(translation_unit) "//\n// Created by julian on 6/12/20.\n//\n\n#ifndef _FPGA_H\n#define _FPGA_H\n\n#include <trail_detection/fpga/ip/mm2vs.h>\n#include <trail_detection/fpga/ip/vs2mm.h>\n#include <trail_detection/fpga/ip/trail_detection.h>\n#include <trail_detection/buffer.h>\n\n#include <sys/mman.h>\n\n/// Control si...
436
21
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 33.72, "nodes": 251, "errors": 0, "source_hash": "4752c7980929770743eee42b3f1c7c505093b28bdf0654e8d73a1d15f60ee65c", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,175
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 "AFExperimentContextMutating.h" @class AFExperimentContext, NSDictionary, NSString; @interface _AFExperimentContextMutation : NSObject <AFExperimentContext...
32.14
28
(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 "AFExperimentContextMutating.h"\n\n@class AFExperimentContext, NSDictionary, NSString;\n\n@interface _AFExperimentContextMutation...
209
19
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.14, "nodes": 135, "errors": 0, "source_hash": "59b3fe2325500fb70eef4d04b7225b4ea82afa8c75d07783f1fe06e8db0757b7", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,176
c
#include <avr/io.h> void init_usart() { //Info USART0 voor Atmega324P //Aansluitingen RXD0 - PD0 - Pin 14; TXD0 - PD1 - Pin 15 //UDR0 = Dataregister //UCSR0A = USART0 Control and Status Register A //UCSR0B = USART0 Control and Status Register B //UCSR0C = USART0 Control and Status Register C //UBRR0L and UBRR0H = USAR...
24.16
38
(translation_unit) "#include <avr/io.h>\n\nvoid init_usart()\n{\n//Info USART0 voor Atmega324P\n//Aansluitingen RXD0 - PD0 - Pin 14; TXD0 - PD1 - Pin 15\n//UDR0 = Dataregister\n//UCSR0A = USART0 Control and Status Register A\n//UCSR0B = USART0 Control and Status Register B\n//UCSR0C = USART0 Control and Status Register...
211
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.16, "nodes": 116, "errors": 0, "source_hash": "6d1920b7513fd13fa28a71987a3562c11c0d66abf744eed66f47454fe523292d", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,177
c
#ifndef __EXTEND_PROBE_H__ #define __EXTEND_PROBE_H__ #include <stdint.h> #include <pthread.h> #include "base.h" #include "fifo.h" typedef struct { char name[MAX_PROBE_NAME_LEN]; char executeCommand[MAX_EXTEND_PROBE_COMMAND_LEN]; char executeParam[MAX_EXTEND_PROBE_PARAM_LEN]; char startChkCmd[MAX_E...
29.87
30
(translation_unit) "#ifndef __EXTEND_PROBE_H__\n#define __EXTEND_PROBE_H__\n\n#include <stdint.h>\n#include <pthread.h>\n\n#include "base.h"\n#include "fifo.h"\n\ntypedef struct {\n char name[MAX_PROBE_NAME_LEN];\n\n char executeCommand[MAX_EXTEND_PROBE_COMMAND_LEN];\n char executeParam[MAX_EXTEND_PROBE_PARAM_...
214
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.87, "nodes": 155, "errors": 0, "source_hash": "656b1c94e492b70115e04fc245010790d87e94c34f6129d45df79300ff6635bd", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,178
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "GTMDefines.h" #import "GTMLogger.h" #import "GTMNSData+zlib.h" FOUNDATION_EXPORT double GoogleToolboxForMacVersionNumber; FOUNDATION_EXPORT const unsigned char GoogleToolboxForMacVersionString[];
30.5
8
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n#import "GTMDefines.h"\n#import "GTMLogger.h"\n#import "GTMNSData+zlib.h"\n\nFOUNDATION_EXPORT double GoogleToolboxForMacVersionNumber;\nFOUNDATION_EXPORT const unsigned char GoogleToolboxForMacVersionString[];\n\n" (preproc_ifdef) "#ifdef __OBJC...
36
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 30.5, "nodes": 28, "errors": 0, "source_hash": "67075e5954e8ffd8b304f6899e531346dc8118d332af312b5a1c86c907288ae8", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __O...
79,179
c
#pragma once bool OpenSettingsKey(PHKEY phkResult); bool OpenUninstallKey(PHKEY phkResult); bool CreateUninstallKey(PHKEY phkResult); bool DeleteSettingsKey(); bool DeleteUninstallKey(); bool RegWriteStr(HKEY hKey, LPCWSTR KeyName, LPCWSTR Value); bool RegWriteDWORD(HKEY hKey, LPCWSTR KeyName, DWORD Valu...
31.28
18
(translation_unit) "#pragma once \n \nbool OpenSettingsKey(PHKEY phkResult); \n \nbool OpenUninstallKey(PHKEY phkResult); \nbool CreateUninstallKey(PHKEY phkResult); \n \nbool DeleteSettingsKey(); \nbool DeleteUninstallKey(); \n \nbool RegWriteStr(HKEY hKey, LPCWSTR KeyName, LPCWSTR Value); \nbool RegWriteDWORD(HKEY hK...
169
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.28, "nodes": 122, "errors": 0, "source_hash": "d8bcab0278c09873fcb0c67f17fd68c63d3a10317b9fb1e911ccf3e23aeb5285", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,180
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSString; @interface IMDMessagePTask : NSObject { NSString *_guid; unsigned long long _taskFlags; } @property(readonly, nonatomic) unsigned long lon...
31.33
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSString;\n\n@interface IMDMessagePTask : NSObject\n{\n NSString *_guid;\n unsigned long long _taskFlags;\n}\n\n@property(re...
183
19
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.33, "nodes": 115, "errors": 0, "source_hash": "fff01adcff246b91159010e664d087300a050bf8ca910d90ea83de3cebb3709c", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,181
c
/*********************************************************************************** ** ** ConnectionManager.h ** ** Copyright (C) August 2016 Hotride ** ************************************************************************************ */ //---------------------------------------------------------------------------...
29.38
119
(translation_unit) "**********************************************************************************\n**\n** ConnectionManager.h\n**\n** Copyright (C) August 2016 Hotride\n**\n************************************************************************************\n*/\n//--------------------------------------------------...
638
23
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 29.38, "nodes": 391, "errors": 0, "source_hash": "b766c16223ba0e67c5df7ada570302f1d963de0a8dd5cd8a20c41474172e498e", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
79,182
c
#ifndef _POSITION_H_ #define _POSITION_H_ typedef struct { double w; double x; double y; double z; } myQuat_t; #define YAW 0 #define PITCH 1 #define ROLL 2 #define X_AXIS 0 #define Y_AXIS 1 #define Z_AXIS 2 #ifdef __cplusplus extern "C" { #endif myQuat_t deltaQuat(myQuat_t startQ, myQuat_t fina...
30.83
47
(translation_unit) "#ifndef _POSITION_H_\n#define _POSITION_H_\n\ntypedef struct {\n double w;\n double x;\n double y;\n double z;\n} myQuat_t;\n\n#define YAW 0\n#define PITCH 1\n#define ROLL 2\n\n#define X_AXIS 0\n#define Y_AXIS 1\n#define Z_AXIS 2\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n myQuat_...
477
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.83, "nodes": 365, "errors": 0, "source_hash": "0d00e3b042ca20d12070f2bc547a42fbf367c8f30c06637eb0ba61ba90488527", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,183
c
#include <linux/init.h> #include <linux/version.h> #include <linux/config.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/proc_fs.h> #include <linux/fcntl.h> #include <asm/system.h> #include <linux/...
26.5
129
(translation_unit) "#include <linux/init.h>\n#include <linux/version.h>\n#include <linux/config.h>\n#include <linux/module.h>\n#include <linux/kernel.h> \n#include <linux/fs.h> \n#include <linux/errno.h> \n#include <linux/types.h> \n#include <linux/proc_fs.h>\n#include <linux/fcntl.h> \n#include <asm/s...
899
1
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 26.5, "nodes": 548, "errors": 0, "source_hash": "fd7fd8f7aec147a16553b60bbdcae946105ad0b7aa6c1c799c3642f6253fdaf0", "categorized_nodes": 385}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,184
c
#include "config.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/memory.h" #include "exec/address-spaces.h" #include "exec/bc_cpu_ldst.h" #include "exec/cputlb.h" #include "exec/memory-internal.h" #include "exec/ram_addr.h" #include "tcg/tcg.h" #define MMUSUFFIX _mmu #define SHIFT 0 #include "bc_softm...
23.75
20
(translation_unit) "#include "config.h"\n#include "cpu.h"\n#include "exec/exec-all.h"\n#include "exec/memory.h"\n#include "exec/address-spaces.h"\n#include "exec/bc_cpu_ldst.h"\n\n#include "exec/cputlb.h"\n\n#include "exec/memory-internal.h"\n#include "exec/ram_addr.h"\n#include "tcg/tcg.h"\n\n#define MMUSUFFIX _mmu\n\...
108
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.75, "nodes": 65, "errors": 0, "source_hash": "784edce893eb413b0ed0b48cfdfd18bfc94f47e6162002690bb4f64c543f603f", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,185
c
/* * Copyright(c) 2012-2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #include "ocf/ocf.h" #include "../ocf_cache_priv.h" #include "engine_pt.h" #include "engine_common.h" #include "cache_engine.h" #include "../utils/utils_req.h" #include "../utils/utils_io.h" #include "../utils/utils_part.h...
27.83
139
(translation_unit) "/*\n * Copyright(c) 2012-2018 Intel Corporation\n * SPDX-License-Identifier: BSD-3-Clause-Clear\n */\n#include "ocf/ocf.h"\n#include "../ocf_cache_priv.h"\n#include "engine_pt.h"\n#include "engine_common.h"\n#include "cache_engine.h"\n#include "../utils/utils_req.h"\n#include "../utils/utils_io.h"\n...
935
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 27.83, "nodes": 500, "errors": 0, "source_hash": "5ed19d68527a08e76791cd93570e7ecaffd4b0166f118a0fbe9b7eda0c31b7f6", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,186
c
// // NEOJSUtil.h // Qlink // // Created by <NAME> on 2019/10/29. // Copyright © 2019 pan. All rights reserved. // #import <Foundation/Foundation.h> #import "NEOJSView.h" NS_ASSUME_NONNULL_BEGIN @interface NEOJSUtil : NSObject //+ (NEOJSView *)getNEOJSView; + (void)addNEOJSView; + (void)removeNEOJSView; + (void...
37.5
18
(ERROR) "//\n// NEOJSUtil.h\n// Qlink\n//\n// Created by <NAME> on 2019/10/29.\n// Copyright © 2019 pan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "NEOJSView.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NEOJSUtil : NSObject\n\n//+ (NEOJSView *)getNEOJSView;\n+ (void)addNEOJSView;\n+ (voi...
128
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.5, "nodes": 67, "errors": 0, "source_hash": "497b03080872424dba287438f327d9f05078c5eb6efa25c9ce456c3ada36c102", "categorized_nodes": 45}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// NEOJSUtil.h\n// Qli...
79,187
c
// // SMWhatsappItem.h // Ride // // Created by Kitos on 11/7/16. // Copyright © 2016 <EMAIL>. All rights reserved. // #import "SocialMediaItem.h" @interface SMWhatsappItem : SocialMediaItem @end
19
10
(translation_unit) "//\n// SMWhatsappItem.h\n// Ride\n//\n// Created by Kitos on 11/7/16.\n// Copyright © 2016 <EMAIL>. All rights reserved.\n//\n\n#import "SocialMediaItem.h"\n\n@interface SMWhatsappItem : SocialMediaItem\n\n@end\n" (comment) "//" (comment) "// SMWhatsappItem.h" (comment) "// Ride" (comm...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.0, "nodes": 11, "errors": 0, "source_hash": "3f2ad5e0feecb7751d3c9bfc74f24f89238bbd85f8e891bfb4c89cbdcea0aac8", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"So...
79,188
c
/// Copyright 2021 <NAME> /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// /// http://www.apache.org/licenses/LICENSE-2.0 /// /// Unless required by applicable law or a...
31.17
48
(translation_unit) "/// Copyright 2021 <NAME> \n/// \n/// Licensed under the Apache License, Version 2.0 (the "License"); \n/// you may not use this file except in compliance with the License. \n/// You may obtain a copy of the License at \n/// \n/// http://www.apache.org/licenses/LICENSE-2.0 \n/// \n/// Unless req...
193
7
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.17, "nodes": 127, "errors": 0, "source_hash": "48ca52639bb163a4a10f12b141041ff2cc4a89ec6f793549ad4d2c8d9d334f0f", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,189
c
#include <errno.h> #include <iomanX.h> #include <stdio.h> #include <loadcore.h> #include <usbhdfsd.h> #include <sifcmd.h> #include <irx.h> #include "usb-ioctl.h" IRX_ID("usbhdfsd_for_EE", 1, 1); static int xmassInit(iop_device_t *device) { return 0; } static int xmassUnsupported(void) { return -1; } stati...
27.66
107
(translation_unit) "#include <errno.h>\n#include <iomanX.h>\n#include <stdio.h>\n#include <loadcore.h>\n#include <usbhdfsd.h>\n#include <sifcmd.h>\n\n#include <irx.h>\n\n#include "usb-ioctl.h"\n\nIRX_ID("usbhdfsd_for_EE", 1, 1);\n\nstatic int xmassInit(iop_device_t *device)\n{\n return 0;\n}\n\nstatic int xmassUnsup...
876
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 27.66, "nodes": 533, "errors": 0, "source_hash": "cf91e52885f6aad941923a3d4c1519463ebee87d8890a9eb0a8128d6c10837e6", "categorized_nodes": 346}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,190
c
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020 <NAME> // All rights reserved. #pragma once #include <djvUI/Widget.h> namespace djv { namespace ViewApp { //! Settings widget. class SettingsWidget : public UI::Widget { DJV_NON_COPYABLE(SettingsWidget); ...
31
29
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright (c) 2020 <NAME>\n// All rights reserved.\n\n#pragma once\n\n#include <djvUI/Widget.h>\n\nnamespace djv\n{\n namespace ViewApp\n {\n //! Settings widget.\n class SettingsWidget : public UI::Widget\n {\n DJV_N...
213
16
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 31.0, "nodes": 109, "errors": 0, "source_hash": "e7c7e6934451123a788fc6aebba8d872f52dc3637ad6d9f316c3078046e37908", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,191
c
#pragma once namespace ojgl { class Matrix { public: // data should be stored in column-major order. explicit Matrix(float data[16]); Matrix operator*(const Matrix& other); float* data() { return _data; } const float* data() const { return _data; } Matrix inverse() const; static Matrix pe...
33.55
22
(translation_unit) "#pragma once\n\nnamespace ojgl {\n\nclass Matrix {\npublic:\n // data should be stored in column-major order.\n explicit Matrix(float data[16]);\n Matrix operator*(const Matrix& other);\n float* data() { return _data; }\n const float* data() const { return _data; }\n Matrix inverse...
255
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.55, "nodes": 150, "errors": 0, "source_hash": "a86590976e6c2b1d2436a80547f7e89956bd167ad7a95992dfa57080a12fe81f", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,192
c
/** \brief derfmega definition of the "radio" bsp module. Adapted from the AT86RF231 code since its the same register layout and all \author <NAME> June 2012. */ #include <avr/io.h> #include "stdint.h" #include "string.h" #include "board.h" #include "radio.h" #include "radiotimer.h" #include "debugpins.h"...
27.39
299
(translation_unit) "/** \n\brief derfmega definition of the "radio" bsp module. Adapted from the AT86RF231 code since its the same register layout and all \n \n\author <NAME> June 2012. \n*/ \n \n#include <avr/io.h> \n#include "stdint.h" \n#include "string.h" \n#include "board.h" \n#include "radio.h" \n#include "radiot...
1,343
0
{"language": "c", "success": true, "metadata": {"lines": 299, "avg_line_length": 27.39, "nodes": 772, "errors": 0, "source_hash": "534cb2a7eb9e5655928059dfc206f48fb9d496fce50b75e7e716376b005510f1", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,193
c
#import "WKInterfaceDate.h" NS_ASSUME_NONNULL_BEGIN @interface WKInterfaceDate (Spec) @property (nonatomic, readonly, nullable) UIColor *textColor; @property (nonatomic, readonly, nullable) NSString *format; @end NS_ASSUME_NONNULL_END
32.57
7
(translation_unit) "#import "WKInterfaceDate.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WKInterfaceDate (Spec)\n\n@property (nonatomic, readonly, nullable) UIColor *textColor;\n@property (nonatomic, readonly, nullable) NSString *format;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (preproc_call) "#import "WKInterfaceDate.h"\...
59
13
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 32.57, "nodes": 45, "errors": 0, "source_hash": "5a78d205506ab38cb79342f87fd695569f8c0c4461d6421cf05fba347bcc570d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
79,194
c
/* * Copyright 2002 Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby * granted, provided that both the above copyright notice and this * permission notice appear in all copies, that both the ab...
28.45
133
(translation_unit) "/*\n * Copyright 2002 Massachusetts Institute of Technology\n *\n * Permission to use, copy, modify, and distribute this software and\n * its documentation for any purpose and without fee is hereby\n * granted, provided that both the above copyright notice and this\n * permission notice appear in al...
741
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 28.45, "nodes": 455, "errors": 0, "source_hash": "f0756ea2e6fc46707332cd854c77994dafbe3ffd6a163c0efabe03a271ea1fbc", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,195
c
#ifndef _MATHGOLD_H_ #define _MATHGOLD_H_ #include "MathConstant.h" #include "MathVector.h" // Minimizes functions of one variable in one dimension class ScalarMinimizer { public: double(*func)(double); // function to be minimized double a, b, c, min; double fa, fb, fc, fmin; ScalarMinimizer...
28.26
42
(translation_unit) "#ifndef _MATHGOLD_H_\n#define _MATHGOLD_H_\n\n#include "MathConstant.h"\n#include "MathVector.h"\n\n// Minimizes functions of one variable in one dimension\nclass ScalarMinimizer\n{\npublic:\n double(*func)(double); // function to be minimized\n double a, b, c, min;\n double fa, fb...
279
10
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.26, "nodes": 164, "errors": 0, "source_hash": "21039b95fe7300e93c50ee416702201ee24ab8d58fdfb3d26d4ec1244e658d64", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,196
c
#include "drv/hardware_targets.h" #include "usr/user_config.h" #if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_C #include "drv/io.h" #include "xgpiops.h" #include <stdio.h> #define IO_LED_R_MIO_PIN (41) #define IO_LED_G_MIO_PIN (43) #define IO_LED_B_MIO_PIN (45) #define IO_BTN1_MIO_PIN (47) #define IO_SW1_MIO_PIN (42)...
31.57
72
(translation_unit) "#include "drv/hardware_targets.h"\n#include "usr/user_config.h"\n\n#if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_C\n\n#include "drv/io.h"\n#include "xgpiops.h"\n#include <stdio.h>\n\n#define IO_LED_R_MIO_PIN (41)\n#define IO_LED_G_MIO_PIN (43)\n#define IO_LED_B_MIO_PIN (45)\n\n#define IO_BTN1_MIO_PIN ...
595
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 31.57, "nodes": 352, "errors": 0, "source_hash": "49885b9d1e69d2d89133a881bfc039b91766432c51d14d48a76773102a523d2f", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,197
c
/* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ /// @addtogroup io ///@{ /** @file vga.h * @brief VGA - legacy VGA 80x25 text mode support * */ #ifndef _VGA_H_ #define _VGA_H_ #include "core.h" /// /// @brief Initializes VGA by getting the cursor to the ...
22.8
163
(translation_unit) "/* \n* Copyright (c) 2020 Bitdefender \n* SPDX-License-Identifier: Apache-2.0 \n*/ \n \n/// @addtogroup io \n///@{ \n \n/** @file vga.h \n* @brief VGA - legacy VGA 80x25 text mode support \n* \n*/ \n \n#ifndef _VGA_H_ \n#define _VGA_H_ \n \n#include "core.h" \n \n \n \n/// \n/// @brief Init...
231
9
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 22.8, "nodes": 126, "errors": 0, "source_hash": "4698f10c8427dbd55ffde947ffc5b443db7c5c008be3fda57c3335dc74aae0ec", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,198
c
#include "fxmemorymanager.h" #include "fxos_build_parameters.h" static ULONG THIS_MODULE = 0xB0000000; //LPVOID heap_start = (LPVOID)(0x040000); //LPVOID heap_end = (LPVOID)(0x03FFFF); LPVOID heap_start = (LPVOID)FXOS_BUILD_NEAR_HEAP_ADDR; LPVOID heap_end = (LPVOID)FXOS_BUILD_NEAR_HEAP_TOP; ULONG...
21.45
199
(translation_unit) "#include "fxmemorymanager.h" \n#include "fxos_build_parameters.h" \n \nstatic ULONG THIS_MODULE = 0xB0000000; \n \n//LPVOID heap_start = (LPVOID)(0x040000); \n//LPVOID heap_end = (LPVOID)(0x03FFFF); \n \nLPVOID heap_start = (LPVOID)FXOS_BUILD_NEAR_HEAP_ADDR; \nLPVOID heap_end = (LPVOID)FXOS_BUIL...
1,088
8
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 21.45, "nodes": 666, "errors": 0, "source_hash": "aede596554c54ad933079ff7d308f44e60f9d26e7f15f16f2d061f7db4c56603", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,199