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
/* * @(#)disc_log.h generated by: makeheader Mon Dec 3 23:08:19 2007 * * built from: log.ifc */ #ifndef disc_log_h #define disc_log_h #ifndef disc_dll_h #include "disc/disc_dll.h" #endif #ifndef log_common_h #include "log/log_common.h" #endif #ifdef __cplusplus extern "C" { #endif ...
28.45
60
(translation_unit) "/*\n * @(#)disc_log.h generated by: makeheader Mon Dec 3 23:08:19 2007\n *\n * built from: log.ifc\n */\n\n#ifndef disc_log_h\n#define disc_log_h\n\n\n #ifndef disc_dll_h\n #include "disc/disc_dll.h"\n #endif\n #ifndef log_common_h\n #include "log/log_common.h"\n #endif\n\n#ifdef _...
158
3
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 28.45, "nodes": 119, "errors": 0, "source_hash": "9f1543e3e7e97867630718fb8a4c24ccfb78a7c13d83dfd8def602960c5d8e25", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,800
c
// SoftEther VPN Source Code - Developer Edition Master Branch // Global Constants Header #pragma warning(disable : 4819) #ifndef GLOBAL_CONST_H #define GLOBAL_CONST_H //// Brand // (Define it if building SoftEther VPN Project.) #define GC_SOFTETHER_VPN #define GC_SOFTETHER_OSS //// Basic Variables ...
29.19
69
(translation_unit) "// SoftEther VPN Source Code - Developer Edition Master Branch \n// Global Constants Header \n \n#pragma warning(disable : 4819) \n \n#ifndef GLOBAL_CONST_H \n#define GLOBAL_CONST_H \n \n//// Brand \n// (Define it if building SoftEther VPN Project.) \n#define GC_SOFTETHER_VPN \n#define GC_SOFTETHER_...
128
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 29.19, "nodes": 116, "errors": 0, "source_hash": "f1dea2d45e6fbdb4b5e9f3df5a0e1b9be0c8122355a23dae90d261664e08c7f2", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
76,801
c
#ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" ZEPHIR_INIT_CLASS(Zim_Service_Service) { ZEPHIR_REGISTER_CLAS...
20.21
53
(translation_unit) "#ifdef HAVE_CONFIG_H\n#include "../../ext_config.h"\n#endif\n\n#include <php.h>\n#include "../../php_ext.h"\n#include "../../ext.h"\n\n#include <Zend/zend_operators.h>\n#include <Zend/zend_exceptions.h>\n#include <Zend/zend_interfaces.h>\n\n#include "kernel/main.h"\n\n\nZEPHIR_INIT_CLASS(Zim_Service...
228
2
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 20.21, "nodes": 131, "errors": 0, "source_hash": "ef8dec01bbd15f6eea892666e7c17f99134629ba4918eb2e570f9cba0ebd3729", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
76,802
c
// // CameraViewController.h // LiluCam // // Created by <NAME> on 12/14/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface CameraViewController : UIViewController <UIScrollViewDelegate> - (IBAction)toggleVideo:(id)sender; - (IBAction)lightOn:(id)sender; - (IBAction)ligh...
35.55
20
(translation_unit) "//\n// CameraViewController.h\n// LiluCam\n//\n// Created by <NAME> on 12/14/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CameraViewController : UIViewController <UIScrollViewDelegate>\n\n- (IBAction)toggleVideo:(id)sender;\n- (IBAction)lig...
195
21
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.55, "nodes": 128, "errors": 0, "source_hash": "1a66dce48ff544618f3a6865a8ebb5ac72cde1533c9bff35d76451af15bd1ccc", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
76,803
c
#include <std.h> #include "../barracks.h"; #include "../../../underdark.h"; inherit "/std/room"; void create() { ::create(); set_property("indoors",1); set_property("light", -3); set_travel(FOOT_PATH); set_terrain(ROCKY); set_short("%^RESET%^%^BLUE%^The Underdark%^RESET%^"); set_listen("default",...
31.14
14
(translation_unit) "#include <std.h>\n#include "../barracks.h";\n#include "../../../underdark.h";\n\ninherit "/std/room";\n\nvoid create() {\n ::create();\n set_property("indoors",1);\n set_property("light", -3);\n set_travel(FOOT_PATH);\n set_terrain(ROCKY);\n set_short("%^RESET%^%^BLUE%^The Underdark%^RES...
133
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.14, "nodes": 52, "errors": 0, "source_hash": "e73c1f7ca56d00fbd0cd1c2dc3f1dc29b564c0a65085cb49773f3d218163c439", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,804
c
// // PebbleResponder.h // Pebble MusicTweeter // // Created by <NAME> on 30/12/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "PebbleConnectionManager.h" #import <PebbleKit/PebbleKit.h> @protocol PebbleInformationDisplayDelegate - (void) connectedToWatch:(PBW...
33.46
26
(translation_unit) "//\n// PebbleResponder.h\n// Pebble MusicTweeter\n//\n// Created by <NAME> on 30/12/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PebbleConnectionManager.h"\n#import <PebbleKit/PebbleKit.h>\n\n@protocol PebbleInformationDisplayDelegate...
216
23
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.46, "nodes": 138, "errors": 0, "source_hash": "80afa17f58c7ab89b15f53fcda628c7504a4269ac66e071ea87544d72f05235f", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
76,805
c
// // NSArray+LSTArray.h // DYwttai // // Created by LoSenTrad on 2017/5/5. // Copyright © 2017年 dongyu. All rights reserved. // #import <UIKit/UIKit.h> #import "YYModel.h" @interface NSArray (LSTArray) /** * 数组转字符串 * @param separator 分隔符 */ - (NSString *)arrayToStringWithSeparator:(NSString *)separator; /*...
19.38
32
(translation_unit) "//\n// NSArray+LSTArray.h\n// DYwttai\n//\n// Created by LoSenTrad on 2017/5/5.\n// Copyright © 2017年 dongyu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YYModel.h"\n\n@interface NSArray (LSTArray)\n/**\n * 数组转字符串\n * @param separator 分隔符\n */\n- (NSString *)arrayToStringWith...
153
11
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.38, "nodes": 96, "errors": 0, "source_hash": "e55a28ba72ceaa23f541e6c2372289d9123a9f4d004a418c68ae6a7657a17b80", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
76,806
c
#ifndef H_MYRPC_TCP_SERVER_H #define H_MYRPC_TCP_SERVER_H #include "interfaces.h" namespace msgpack { namespace myrpc { class tcp_server { public: tcp_server(int port, shared_dispatcher dispatcher, boost::shared_ptr<logger_type> logger = boost::shared_ptr<logger_type>()); ~tcp_server(); protect...
24.76
25
(translation_unit) "#ifndef H_MYRPC_TCP_SERVER_H \n#define H_MYRPC_TCP_SERVER_H \n \n#include "interfaces.h" \n \nnamespace msgpack { \nnamespace myrpc { \n \nclass tcp_server { \npublic: \n tcp_server(int port, shared_dispatcher dispatcher, boost::shared_ptr<logger_type> logger = boost::shared_ptr<logger_type>()); ...
160
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.76, "nodes": 95, "errors": 0, "source_hash": "25adc004b9e1ef16b2dfebc83ba5df0657dcd0e1378f29fd509d6acfbde9e61f", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,807
c
#pragma once #include <wayland-client.h> #include <lmlib/geometry.h> #include <lmpl/lmpl.h> namespace lmpl { class vulkan_renderer; } namespace lmpl { class WaylandDisplay; class WaylandWindow : public iwindow { public: using Size = lm::size2<unsigned>; WaylandWindow &init(WaylandDisplay &display); ...
23.39
98
(translation_unit) "#pragma once\n\n#include <wayland-client.h>\n\n#include <lmlib/geometry.h>\n\n#include <lmpl/lmpl.h>\n\nnamespace lmpl\n{\nclass vulkan_renderer;\n}\n\nnamespace lmpl\n{\n\nclass WaylandDisplay;\n\nclass WaylandWindow : public iwindow\n{\n public:\n using Size = lm::size2<unsigned>;\n\n Wayla...
571
23
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 23.39, "nodes": 273, "errors": 0, "source_hash": "ad907205347bbd910a1f95d708b655d3ff3314651f9ab5fea097233005d7e5df", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,808
c
#ifndef DRAW_H #define DRAW_H #include <cmark-gfm.h> #include <gdkmm/cursor.h> #include <gtkmm/menu.h> #include <gtkmm/textview.h> #include <gtkmm/tooltip.h> #include <pangomm/layout.h> class MiddlewareInterface; /** * \struct UndoRedoData * \brief Data structure for undo/redo text */ struct UndoRedoData { bool...
30.15
123
(translation_unit) "#ifndef DRAW_H\n#define DRAW_H\n\n#include <cmark-gfm.h>\n#include <gdkmm/cursor.h>\n#include <gtkmm/menu.h>\n#include <gtkmm/textview.h>\n#include <gtkmm/tooltip.h>\n#include <pangomm/layout.h>\n\nclass MiddlewareInterface;\n\n/**\n * \struct UndoRedoData\n * \brief Data structure for undo/redo tex...
1,141
46
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 30.15, "nodes": 706, "errors": 0, "source_hash": "1b0ac6f767f83ebe18e5b4af501925c313aa6d6858f57acf19d96493ee72ca0b", "categorized_nodes": 476}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,809
c
/* * linux_quirks.h * * TALPA Filesystem Interceptor * * Copyright (C) 2004-2017 Sophos Limited, Oxford, England. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License Version 2 as published by the Free Software Foundation. * * This pro...
34.88
118
(translation_unit) "/*\n * linux_quirks.h\n *\n * TALPA Filesystem Interceptor\n *\n * Copyright (C) 2004-2017 Sophos Limited, Oxford, England.\n *\n * This program is free software; you can redistribute it and/or modify it under the terms of the\n * GNU General Public License Version 2 as published by the Free Softwar...
874
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 34.88, "nodes": 607, "errors": 0, "source_hash": "8ca49097b201f3a4b88b78fa6e8d5c675013807927b4a12949ea8f45a7dccf17", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,810
c
#include <stdio.h> int main() { int n, ar[100], temp, i, *min, doudou; while (scanf("%d", &n) != EOF) { if (n == 0) break; for (i = 0; i < n; i++) scanf("%d", &ar[i]); min = &ar[n-1]; for (i = (n - 1); i >= 0; i--) min = (*min < ar[i]) ? mi...
20.71
28
(translation_unit) "#include <stdio.h>\nint main()\n{\n int n, ar[100], temp, i, *min, doudou;\n while (scanf("%d", &n) != EOF)\n {\n if (n == 0)\n break;\n for (i = 0; i < n; i++)\n scanf("%d", &ar[i]);\n min = &ar[n-1];\n for (i = (n - 1); i >= 0; i--)\n ...
287
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.71, "nodes": 173, "errors": 0, "source_hash": "2ed03947eda852467f259c5e3153fe78309c6d696bd75281c29387b51b6e525a", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,811
c
/* Limbus - A cross-platform multimedia library. Written in 2014 by <NAME> <EMAIL> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have ...
29.03
159
(translation_unit) "/*\n Limbus - A cross-platform multimedia library.\n Written in 2014 by <NAME> <EMAIL>\n\n To the extent possible under law, the author(s) have dedicated all copyright\n and related and neighboring rights to this software to the public domain worldwide.\n This software is distributed without any war...
1,055
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 29.03, "nodes": 664, "errors": 0, "source_hash": "86cdaa5d16898cea789ad793349ba09dc1a65811d563b49f09f02c18f9d13183", "categorized_nodes": 485}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,812
c
// // SendMessageCallbackProxy.h // OpenIMUniPlugin // // Created by Snow on 2021/6/24. // #import <Foundation/Foundation.h> #import "DCUniModule.h" #import "OpenIMModule.h" @import OpenIMCore; NS_ASSUME_NONNULL_BEGIN @interface SendMessageCallbackProxy : NSObject <Open_im_sdkSendMsgCallBack> - (id)initWithMessa...
25.2
15
(translation_unit) "//\n// SendMessageCallbackProxy.h\n// OpenIMUniPlugin\n//\n// Created by Snow on 2021/6/24.\n//\n\n#import <Foundation/Foundation.h>\n#import "DCUniModule.h"\n#import "OpenIMModule.h"\n@import OpenIMCore;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SendMessageCallbackProxy : NSObject <Open_im_sdkSen...
76
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.2, "nodes": 51, "errors": 0, "source_hash": "72369e796541b378e9b6a7a783229d48ff592cdc81a4404297e05cc75207dbf9", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
76,813
c
#ifndef _ROS_SERVICE_List_h #define _ROS_SERVICE_List_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace jsk_topic_tools { static const char LIST[] = "jsk_topic_tools/List"; class ListRequest : public ros::Msg { public: ListRequest() { } virtual int...
33.88
91
(translation_unit) "#ifndef _ROS_SERVICE_List_h\n#define _ROS_SERVICE_List_h\n#include <stdint.h>\n#include <string.h>\n#include <stdlib.h>\n#include "ros/msg.h"\n\nnamespace jsk_topic_tools\n{\n\nstatic const char LIST[] = "jsk_topic_tools/List";\n\n class ListRequest : public ros::Msg\n {\n public:\n\n ListRe...
994
8
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 33.88, "nodes": 625, "errors": 0, "source_hash": "dd4f8ee1143bf936bf55c57c18dc4cac7a0784f73c9d35d29ed001547c5acbe0", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,814
c
/* * Copyright (c) 2016, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
34.05
125
(translation_unit) "/*\n * Copyright (c) 2016, <NAME>, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyright\n * ...
782
4
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 34.05, "nodes": 494, "errors": 0, "source_hash": "ba16332edff27bd002cb2d24149588ff3b8d5acff3d59596d5d9e0ddbb616959", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,815
c
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #ifndef WPIUTIL_WPI_BASE64_H_ #define WPIUTIL_WPI_BASE64_H_ #include <cstddef> #include <string> #include <string_view>...
42.36
22
(translation_unit) "// Copyright (c) FIRST and other WPILib contributors.\n// Open Source Software; you can modify and/or share it under the terms of\n// the WPILib BSD license file in the root directory of this project.\n\n#ifndef WPIUTIL_WPI_BASE64_H_\n#define WPIUTIL_WPI_BASE64_H_\n\n#include <cstddef>\n#include <st...
195
15
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 42.36, "nodes": 125, "errors": 0, "source_hash": "1cc6d3dc61b3d268bc90bf852baf93ccf53fd9da82a052191b07b8cf5115d358", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,816
c
// // AttitudeDisplayLayer.h // Flight Physica // // Created by <NAME> on 1/16/13. // Copyright (c) 2013 Fry An Egg Technology LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <QuartzCore/QuartzCore.h> #import "FlightAppConstants.h" @interface AttitudeDisplayLayer : NSObject <CALayerDelega...
27.18
28
(translation_unit) "//\n// AttitudeDisplayLayer.h\n// Flight Physica\n//\n// Created by <NAME> on 1/16/13.\n// Copyright (c) 2013 Fry An Egg Technology LLC. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import <QuartzCore/QuartzCore.h>\n\n#import "FlightAppConstants.h"\n\n@interface AttitudeDisp...
156
17
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.18, "nodes": 103, "errors": 0, "source_hash": "3070569f6a55f61a9638b87fff8e0cb83e9293fb13bb338c8c6c7ef3283b14e8", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
76,817
c
/* * $Source: r:/source/lib/RCS/verbose.c,v $ * $Revision: 1.10 $ * $Date: 1999/11/04 21:12:39 $ * $Locker: $ * * Output error/warning/verbose strings to stream. * * $Log: verbose.c,v $ * Revision 1.10 1999/11/04 21:12:39 vitus * - Verbose: always to stderr * * Revision 1.9 1998/06/04 06:31:32 vitus *...
22.07
129
(translation_unit) "/*\n * $Source: r:/source/lib/RCS/verbose.c,v $\n * $Revision: 1.10 $\n * $Date: 1999/11/04 21:12:39 $\n * $Locker: $\n *\n * Output error/warning/verbose strings to stream.\n *\n * $Log: verbose.c,v $\n * Revision 1.10 1999/11/04 21:12:39 vitus\n * - Verbose: always to stderr\n *\n * Revision 1....
661
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 22.07, "nodes": 401, "errors": 0, "source_hash": "5156c1f4e47eff181207956d0563eddc3ab5f1ce9737d18e62f411b8e263516b", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static ...
76,818
c
/* * Copyright (C) 2011 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
37.02
250
(ERROR) "/*\n * Copyright (C) 2011 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list...
1,957
120
{"language": "c", "success": true, "metadata": {"lines": 250, "avg_line_length": 37.02, "nodes": 1146, "errors": 0, "source_hash": "e4a3bd096ccd3a4410f987ee1c246b4e932adcf442adb4fea9753a11e9427333", "categorized_nodes": 767}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Copyright (C) 20...
76,819
c
#import <Flutter/Flutter.h> @interface FlutterNesPlugin : NSObject<FlutterPlugin> @end
28
3
(translation_unit) "#import <Flutter/Flutter.h>\n\n@interface FlutterNesPlugin : NSObject<FlutterPlugin>\n@end\n" (preproc_call) "#import <Flutter/Flutter.h>\n" (preproc_directive) "#import" (preproc_arg) "<Flutter/Flutter.h>" (ERROR) "@interface FlutterNesPlugin : NSObject<FlutterPlugin>\n@end" (ERROR)...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 28.0, "nodes": 12, "errors": 0, "source_hash": "6bc6a0294baa8be14f092c9cd322f276c967bdeae7e880a207445e7770c8fc16", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Flu...
76,820
c
// Author: <NAME> //template <class Type> class NullNew { template <class RateType> class MyDiscounter : public Visitor<RateType>{ private: Real time_; RateType rate_; DiscountFactor df_; public: MyDiscounter(const Real& time, const RateType& rate) :time_(time),rate_(rate){ } ...
16.39
31
(translation_unit) "// Author: <NAME> \n \n //template <class Type> class NullNew { \n \n \ntemplate <class RateType> class MyDiscounter : public Visitor<RateType>{ \n \nprivate: \n Real time_; \n RateType rate_; \n DiscountFactor df_; \n \npublic: \n \n MyDiscounter(const Real& time, const RateType& rate) \n ...
192
9
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 16.39, "nodes": 112, "errors": 0, "source_hash": "e950f862130dfd3d367601afd2186e25840075c86f55f28faea8029bee5d57e5", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "template <class...
76,821
c
/* * Buffer.h * */ #ifndef TOOLS_BUFFER_H_ #define TOOLS_BUFFER_H_ #include <fstream> #include <iostream> #include <assert.h> using namespace std; #include "Math/field_types.h" #include "Tools/time-func.h" #include "Tools/octetStream.h" #ifndef BUFFER_SIZE #define BUFFER_SIZE 101 #endif class BufferBase { prote...
22.49
204
(translation_unit) "/*\n * Buffer.h\n *\n */\n\n#ifndef TOOLS_BUFFER_H_\n#define TOOLS_BUFFER_H_\n\n#include <fstream>\n#include <iostream>\n#include <assert.h>\nusing namespace std;\n\n#include "Math/field_types.h"\n#include "Tools/time-func.h"\n#include "Tools/octetStream.h"\n\n#ifndef BUFFER_SIZE\n#define BUFFER_SIZ...
1,683
71
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 22.49, "nodes": 984, "errors": 0, "source_hash": "68ef289cb312ae8591ad74e63ba600cd26382006ed99ca889e7619bc80f08f12", "categorized_nodes": 684}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,822
c
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #include "k_config.h" #if (RHINO_CONFIG_UCLI_SYSCALL > 0) #include <stdint.h> #include "cli/cli_api.h" #include "cli_syscall_arg.h" int32_t sys_cli_register_command_stub(void *arg) { cli_register_command_syscall_arg_t *_arg = arg; return cli_r...
24.43
51
(translation_unit) "/*\n * Copyright (C) 2015-2019 Alibaba Group Holding Limited\n */\n\n#include "k_config.h"\n\n#if (RHINO_CONFIG_UCLI_SYSCALL > 0)\n\n#include <stdint.h>\n#include "cli/cli_api.h"\n#include "cli_syscall_arg.h"\n\nint32_t sys_cli_register_command_stub(void *arg)\n{\n cli_register_command_syscall_ar...
327
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.43, "nodes": 213, "errors": 0, "source_hash": "85b517a83b9cc838ea2dbaf615fc049f9396799dea13aeb29a84e0fcb69aa2cc", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,823
c
// // FlashBuyProductDetailCommentMoreCell.h // KidsTC // // Created by 詹平 on 2016/10/27. // Copyright © 2016年 zhanping. All rights reserved. // #import "FlashBuyProductDetailBaseCell.h" @interface FlashBuyProductDetailCommentMoreCell : FlashBuyProductDetailBaseCell @end
26.6
10
(translation_unit) "//\n// FlashBuyProductDetailCommentMoreCell.h\n// KidsTC\n//\n// Created by 詹平 on 2016/10/27.\n// Copyright © 2016年 zhanping. All rights reserved.\n//\n\n#import "FlashBuyProductDetailBaseCell.h"\n\n@interface FlashBuyProductDetailCommentMoreCell : FlashBuyProductDetailBaseCell\n\n@end\n" (com...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.6, "nodes": 10, "errors": 0, "source_hash": "45d941b2d94c146d99c471246d56d851898528565c285b868ae5c2bd4f1579d6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"FlashBuy...
76,824
c
#pragma once #include "rs_texture.h" namespace gl { bool Init(int width, int height); bool Resize(int width, int height); Texture GetTexture(); void Render(); }
21.12
8
(translation_unit) "#pragma once\n#include "rs_texture.h"\n\nnamespace gl {\n bool Init(int width, int height);\n bool Resize(int width, int height);\n Texture GetTexture();\n void Render();\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include...
62
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.12, "nodes": 41, "errors": 0, "source_hash": "992389a1da6125f0f37bdf117e3ef967f28e521e3b2b95ff41ec69c764dda905", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
76,825
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Kismet/BlueprintAsyncActionBase.h" #include "BaseAsyncAction.generated.h" /** * */ UCLASS(Abstract) class GASASSOCIATES_API UBaseAsyncAction : public UBlueprintAsyncActionBase { GENERAT...
23.22
18
(translation_unit) " Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Kismet/BlueprintAsyncActionBase.h"\n#include "BaseAsyncAction.generated.h"\n\n/**\n * \n */\nUCLASS(Abstract)\nclass GASASSOCIATES_API UBaseAsyncAction : public UBluepr...
83
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.22, "nodes": 46, "errors": 0, "source_hash": "b483a9828f75d698d8b72b6850ea5d5481d8f1b18889648e92de7d3059299623", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
76,826
c
#pragma once #include "comparatorimpl.h" #include "core/payload/fieldsset.h" #include "estl/h_vector.h" namespace reindexer { class CompositeArrayComparator { public: CompositeArrayComparator(PayloadType pt, KeyValueType kvtype); void BindField(int field, const VariantArray &values, CondType condType); void Bind...
32.48
27
(translation_unit) "#pragma once\n\n#include "comparatorimpl.h"\n#include "core/payload/fieldsset.h"\n#include "estl/h_vector.h"\n\nnamespace reindexer {\n\nclass CompositeArrayComparator {\npublic:\n CompositeArrayComparator(PayloadType pt, KeyValueType kvtype);\n\n void BindField(int field, const VariantArray &values...
235
13
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.48, "nodes": 143, "errors": 0, "source_hash": "de4870fc0c2aac5de9ff78963ba957cf69e93a965944ad0893df52aa5a7a61cb", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,827
c
#include <agent.h>
18
1
(translation_unit) "#include <agent.h>\n" (preproc_include) "#include <agent.h>\n" (#include) "#include" (system_lib_string) "<agent.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 18.0, "nodes": 3, "errors": 0, "source_hash": "d29e86d1d886b43b2fb32bac453f9e0d66deaff9ef3315fda10ce1b676722541", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
76,828
c
/* * Convert acuity values between different measures. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <math.h> #include "acuity-conversion.h" #include "devas-license.h" /* DeVAS open source license */ /* The following are support routines for parse_snellen () */ static i...
27.44
186
(translation_unit) "/*\n * Convert acuity values between different measures.\n */\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <strings.h>\n#include <math.h>\n#include "acuity-conversion.h"\n#include "devas-license.h" /* DeVAS open source license */\n\n/* The following are support routines ...
936
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 27.44, "nodes": 542, "errors": 0, "source_hash": "deddb33e9f8dda34b34b66b4fa8b69af7137254c0722b9d79778db645ca12aec", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,829
c
#pragma once #include "context.h" #include <torch/torch.h> namespace TorchHelpers { inline int64_t totalSize(const torch::Tensor& tensor) { int64_t size = 1; for (auto dimSize : tensor.sizes()) { size *= dimSize; } return size; } inline torch::Device torchDev...
30.62
45
(translation_unit) "#pragma once\n\n#include "context.h"\n#include <torch/torch.h>\n\n\nnamespace TorchHelpers {\n\n inline int64_t totalSize(const torch::Tensor& tensor) {\n int64_t size = 1;\n for (auto dimSize : tensor.sizes()) {\n size *= dimSize;\n }\n return size;\n }\...
370
18
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.62, "nodes": 196, "errors": 0, "source_hash": "48f0dbe948e92e793661988b411cb38f86917b723a4d691cca7df72d64aae784", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,830
c
// // CreateAerobicPrescriptionViewController.h // KTDoctor // // Created by duwei on 2019/4/23. // Copyright © 2019 dz. All rights reserved. // #import <UIKit/UIKit.h> @interface CreateAerobicPrescriptionViewController : UIViewController @property (nonatomic,strong)NSDictionary *prescriptionDict; @property (nona...
30.62
13
(translation_unit) "//\n// CreateAerobicPrescriptionViewController.h\n// KTDoctor\n//\n// Created by duwei on 2019/4/23.\n// Copyright © 2019 dz. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CreateAerobicPrescriptionViewController : UIViewController\n@property (nonatomic,strong)NSDictionary *pr...
72
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.62, "nodes": 50, "errors": 0, "source_hash": "da922b2293f9aa6dc0111d073dc16008b60045f8bd7f18571d3ed204dacf119f", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
76,831
c
/* * pullMessage.h * * Created on: Jun 10, 2012 * Author: zeil */ #ifndef PULLMESSAGE_H_ #define PULLMESSAGE_H_ #include <algae/communications/clientMessage.h> #include <string> #include <iostream> namespace algae { /** * A generic message, used by a remote/process server to indicate * that it is prepa...
17.75
40
(translation_unit) "/*\n * pullMessage.h\n *\n * Created on: Jun 10, 2012\n * Author: zeil\n */\n\n#ifndef PULLMESSAGE_H_\n#define PULLMESSAGE_H_\n\n#include <algae/communications/clientMessage.h>\n#include <string>\n#include <iostream>\n\nnamespace algae {\n\n/**\n * A generic message, used by a remote/process s...
116
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 17.75, "nodes": 65, "errors": 0, "source_hash": "124a025357ff9ffe953b7ffa8e0085b2357f643bf19d4e9f7771e8a2e378654a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,832
c
#include <klee/klee.h> int main() { // "x[10]" does not have any concrete values here (i.e., "x[10]" is just a symbol) int x[10], i = 0; int y; /* declare the memory region occupied by * variable "x" to be symbolic */ /* This means the program will be executed * with uninstantiated, i.e...
23.62
21
(translation_unit) "#include <klee/klee.h>\n\nint main()\n{\n // "x[10]" does not have any concrete values here (i.e., "x[10]" is just a symbol)\n int x[10], i = 0;\n int y;\n\n /* declare the memory region occupied by \n * variable "x" to be symbolic */\n\n /* This means the program will be executed ...
103
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.62, "nodes": 57, "errors": 0, "source_hash": "2887a6874edffeaa96eb881e5e868b7fd5cb697ffb7d9bd8742f21c8ca8e3bd1", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,833
c
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/kernel/fs/vfs_base.h> #define KOBJ_BASE_FIELDS \ REF_COUNTED_OBJECT; \ void (*on_handle_close)(fs_handle h); \ void (*on_handle_dup)(fs_handle h); \ void (*destory_obj)(struct kobj_base...
35.35
20
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n\n#pragma once\n#include <tilck/kernel/fs/vfs_base.h>\n\n#define KOBJ_BASE_FIELDS \\n REF_COUNTED_OBJECT; \\n void (*on_handle_close)(fs_handle h); \\n void (*on_handle_dup)(fs_handle h); \\n void (*...
115
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.35, "nodes": 84, "errors": 0, "source_hash": "74fdaa0afd0118c4dc72ae65c3f08a036ac0694ba6369067cd96cef59f61f381", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,834
c
#ifndef HEADER_CURL_SSPI_H #define HEADER_CURL_SSPI_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| ...
36.26
62
(translation_unit) "#ifndef HEADER_CURL_SSPI_H\n#define HEADER_CURL_SSPI_H\n/***************************************************************************\n * _ _ ____ _\n * Project ___| | | | _ \| |\n * / __| | | | |_) | |\n * ...
126
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 36.26, "nodes": 108, "errors": 0, "source_hash": "c32aeea1292f8a2f0a39917ed9a8785a94705047cb383b996bc697e92fcc3eda", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,835
c
/* * File: puretagger.h * Author: <NAME> * * Created on November 24, 2015, 11:34 PM */ #ifndef PURETAGGER_H #define PURETAGGER_H extern "C" { #include "decoder.h" #include "model.h" #include "options.h" #include "progress.h" #include "quark.h" #include "reader.h" #include "sequence.h" #include "tools.h" #incl...
15.84
38
(translation_unit) "/* \n * File: puretagger.h\n * Author: <NAME>\n *\n * Created on November 24, 2015, 11:34 PM\n */\n\n#ifndef PURETAGGER_H\n#define PURETAGGER_H\n\nextern "C" {\n#include "decoder.h"\n#include "model.h"\n#include "options.h"\n#include "progress.h"\n#include "quark.h"\n#include "reader.h"\n#include ...
190
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 15.84, "nodes": 114, "errors": 0, "source_hash": "299e2256713aa59f98cad8fe6c1ca2308993294558b95a6c46819af0c29519fc", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,836
c
#include <math.h> #include <cyan/color/color.h> #define EPSILON 0.008856 #define KAPPA 903.3 void XYZ_to_Lab( enum cyan_refwhite white, double X, double Y, double Z, double* L, double* a, double* b ) { double Xr, Yr, Zr ; double xr, yr, zr ; double fx, fy, fz ; ...
25.29
34
(translation_unit) "#include <math.h>\n#include <cyan/color/color.h>\n\n#define EPSILON 0.008856\n#define KAPPA 903.3\n\nvoid XYZ_to_Lab( enum cyan_refwhite white, \n double X, double Y, double Z,\n double* L, double* a, double* b ) {\n\n double Xr, Yr, Zr ;\n double xr, yr...
332
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.29, "nodes": 228, "errors": 0, "source_hash": "4dbd7610d8bafd26e79c25aeddbe402db0b07733f2672dc41d1d8c193ef78a5e", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,837
c
#ifndef ELIKOS_SIM_DETECTION_H #define ELIKOS_SIM_DETECTION_H /** * \file SimDetection.h * \brief SimDetection class declaration * \author christophebedard */ #include <string> #include <vector> #include <ros/ros.h> #include <tf/transform_listener.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/...
34.41
141
(translation_unit) "#ifndef ELIKOS_SIM_DETECTION_H\n#define ELIKOS_SIM_DETECTION_H\n\n/**\n * \file SimDetection.h\n * \brief SimDetection class declaration\n * \author christophebedard\n */\n\n#include <string>\n#include <vector>\n#include <ros/ros.h>\n#include <tf/transform_listener.h>\n#include <geometry_msgs/PoseSt...
427
19
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 34.41, "nodes": 244, "errors": 0, "source_hash": "f1e838757f43fc1c38ab33141971f5be6c91e730a7587a74513665eefb322a93", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,838
c
/* * Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistrib...
29.43
185
(translation_unit) "/*\n * Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.\n * Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions ar...
1,152
3
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 29.43, "nodes": 697, "errors": 0, "source_hash": "2072963cf04e651cc9eb9618e0ed10242bb12823d0900bb00e0b6cfd01d9fd23", "categorized_nodes": 476}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,839
c
/* * ejercicio9.h * * Created on: 17/11/2013 * Author: <NAME> */ #ifndef EJERCICIO9_H_ #define EJERCICIO9_H_ #include <stack> using namespace std; template<typename Y> class ventana{ private: stack<Y> pilaizq; stack<Y> pilader; public: ventana(); void inserta(Y ele); void movIzq(); void movD...
15.5
34
(translation_unit) "/*\n * ejercicio9.h\n *\n * Created on: 17/11/2013\n * Author: <NAME>\n */\n\n#ifndef EJERCICIO9_H_\n#define EJERCICIO9_H_\n#include <stack>\n\nusing namespace std;\n\ntemplate<typename Y>\nclass ventana{\n private:\n stack<Y> pilaizq;\n stack<Y> pilader;\n public:\n ventana();\n void inse...
177
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 15.5, "nodes": 114, "errors": 0, "source_hash": "8621ce3565e505d4f5d3a2e6c4c9ef8063567fd008f79c9d7d2dae25d1194c11", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,840
c
// // YPVerticalButton.h // Wuxianda // // Created by MichaelPPP on 16/7/12. // Copyright © 2016年 michaelhuyp. All rights reserved. // #import <UIKit/UIKit.h> @interface YPVerticalButton : UIButton @end
19.7
10
(translation_unit) "//\n// YPVerticalButton.h\n// Wuxianda\n//\n// Created by MichaelPPP on 16/7/12.\n// Copyright © 2016年 michaelhuyp. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YPVerticalButton : UIButton\n\n@end\n" (comment) "//" (comment) "// YPVerticalButton.h" (comment) "// Wuxi...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.7, "nodes": 10, "errors": 0, "source_hash": "b396a6db6a40bbc9106ac3193320978b2e7f38dd4b9a4e49cd7c4788bc9e00ba", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
76,841
c
#include <stdio.h> int main () { char str1[1000]; printf("Enter name: "); scanf("%s", str1); printf("Your name is %s\n", str1); }
19.29
7
(translation_unit) "#include <stdio.h>\n\nint main () {\n char str1[1000];\n\n printf("Enter name: ");\n scanf("%s", str1);\n printf("Your name is %s\n", str1);\n\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main () {...
60
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.29, "nodes": 28, "errors": 0, "source_hash": "e9fe7e0a64bb881c5050e0717dfb76dbd908faebf0567df0c9aaade754a2c42f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
76,842
c
#include "gameTargetList.h" #include "gameTarget.h" #include "../../common/error/error.h" #include "../../navigation/navigation.h" /** * Target list. * Singleton */ static GameTargetList targets; GameTargetList* getGameTargetList() { return &targets; } void clearGameTargets() { int i...
22.61
75
(translation_unit) "#include "gameTargetList.h" \n#include "gameTarget.h" \n \n#include "../../common/error/error.h" \n \n#include "../../navigation/navigation.h" \n \n \n/** \n * Target list. \n * Singleton \n */ \nstatic GameTargetList targets; \n \nGameTargetList* getGameTargetList() { \n return &targets; \n} \n ...
463
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 22.61, "nodes": 283, "errors": 0, "source_hash": "8734b7100775940869f42b4993c90cdedd4fea61048e45922d0d43ec82409228", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,843
c
/************************************************************************************ Copyright (C) 2021 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi...
29.98
94
(translation_unit) "/************************************************************************************ \nCopyright (C) 2021 by <NAME> \n \nPermission is hereby granted, free of charge, to any person obtaining a copy \nof this software and associated documentation files (the "Software"), to deal \nin the Software wit...
543
11
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 29.98, "nodes": 325, "errors": 0, "source_hash": "364957050af1df727752156d6204acabfbac711543d6eeec5d689b368c456808", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,844
c
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once #if !defined(STM32PLUS_F1) #error This include file is only for the F1 #endif namespace stm32plus { /** * @brief F1 impl...
28.98
86
(translation_unit) "/*\n * This file is a part of the open source stm32plus library.\n * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>\n * Please see website for licensing terms.\n */\n\n#pragma once\n\n#if !defined(STM32PLUS_F1)\n#error This include file is only for the F1\n#endif\n\n\nnamespace stm32...
433
10
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 28.98, "nodes": 271, "errors": 0, "source_hash": "54c9606154f416b5591cb5fb2b9bd0e95e61366ae00954a34222a81755d0075c", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,845
c
#define _BSD_SOURCE 1 #define _DEFAULT_SOURCE 1 #include "internal.h" #include "log.h" #include "convert_utf/ConvertUTF.h" #include <sys/types.h> #include <dirent.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #ifdef _WIN32 #define fseek _fseeki64 #define ftell _ftelli64 #defin...
26.9
227
(translation_unit) "#define _BSD_SOURCE 1\n#define _DEFAULT_SOURCE 1\n#include "internal.h"\n#include "log.h"\n#include "convert_utf/ConvertUTF.h"\n#include <sys/types.h>\n#include <dirent.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <unistd.h>\n\n#ifdef _WIN32\n #define fseek _fseeki64\n...
1,706
0
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 26.9, "nodes": 1095, "errors": 0, "source_hash": "28782c4d5cd5937fc7bc362be5af951f247bfdff5771b8d5a3112fed622ca0f6", "categorized_nodes": 696}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
76,846
c
#pragma once #include <mak3do/scenegraph/types.h> namespace mak3do { class SurfaceImpl : public Pimpl { public: SurfaceImpl(Surface* parent); private: Surface* m_abstract; void* m_native_surface; }; }
18.36
11
(translation_unit) "#pragma once\n\n#include <mak3do/scenegraph/types.h>\n\nnamespace mak3do {\nclass SurfaceImpl : public Pimpl {\npublic:\n SurfaceImpl(Surface* parent);\nprivate:\n Surface* m_abstract;\n void* m_native_surface;\n};\n}\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
54
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.36, "nodes": 32, "errors": 0, "source_hash": "3e5e3dfc44cb21a45538c528c7363c33d13b9ab35f5e7c2da025e64dfd824644", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,847
c
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 Sky UK * * 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...
29.16
172
(translation_unit) "/*\n* If not stated otherwise in this file or this component's LICENSE file the\n* following copyright and licenses apply:\n*\n* Copyright 2020 Sky UK\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 ...
195
12
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 29.16, "nodes": 87, "errors": 0, "source_hash": "729c2f51012a7a20fceee3f38564fa60c08d37cefa7d0b69012db64fe53fdcb8", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,848
c
#include "fb_cursor_drv.h" #include "framebuffer.h" void fb_set_cursor(unsigned short row, unsigned short col) { unsigned short pos = row*FB_WIDTH; pos += col; fb_move_cursor(pos); } void fb_set_cursor_pos(unsigned short pos) { /* TODO: add bounds checking */ fb_move_cursor(pos); }
26.55
11
(translation_unit) "#include "fb_cursor_drv.h"\n#include "framebuffer.h"\n\nvoid fb_set_cursor(unsigned short row, unsigned short col) {\n unsigned short pos = row*FB_WIDTH;\n pos += col;\n fb_move_cursor(pos);\n}\n\nvoid fb_set_cursor_pos(unsigned short pos) {\n /* TODO: add bounds checking */\n fb_move...
84
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.55, "nodes": 54, "errors": 0, "source_hash": "ac66c4dd39ee792d6ed8f3dd85be86e1a911663fecd39c53b8ba3dd5b6189707", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,849
c
// // QueryConditionApi.h // MedicineClient // // Created by L on 2017/9/6. // Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved. // #import "BaseApi.h" @class AllTeamModel; @interface QueryConditionApi : BaseApi - (void)teamQuaryList:(NSMutableDictionary *)detail; @end
20.62
13
(translation_unit) "//\n// QueryConditionApi.h\n// MedicineClient\n//\n// Created by L on 2017/9/6.\n// Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved.\n//\n\n#import "BaseApi.h"\n@class AllTeamModel;\n\n@interface QueryConditionApi : BaseApi\n\n- (void)teamQuaryList:(NSMutableDictionary *)detail;\n\n\n@end...
46
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.62, "nodes": 25, "errors": 0, "source_hash": "b2ad3255dde55100e69efedd327d2fb418f2e5bca09fe8c3324116d5ea86c966", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mModel;\n...
76,850
c
#pragma once // CTiVoMAKDlg dialog class CTiVoMAKDlg : public CDialogEx { DECLARE_DYNAMIC(CTiVoMAKDlg) public: CTiVoMAKDlg(CWnd* pParent = NULL); // standard constructor virtual ~CTiVoMAKDlg(); // Dialog Data enum { IDD = IDD_TIVO_MAK }; protected: virtual void DoDataExchange(CDataExchange* ...
17.95
22
(translation_unit) "#pragma once \n \n// CTiVoMAKDlg dialog \n \nclass CTiVoMAKDlg : public CDialogEx \n{ \n DECLARE_DYNAMIC(CTiVoMAKDlg) \n \npublic: \n CTiVoMAKDlg(CWnd* pParent = NULL); // standard constructor \n virtual ~CTiVoMAKDlg(); \n \n// Dialog Data \n enum { IDD = IDD_TIVO_MAK }; \n \nprotected: \n virtual...
99
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 17.95, "nodes": 59, "errors": 0, "source_hash": "96f1dc959465f1b92fcdde8bff399290578579f4334c1be0436015d695b31e6d", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,851
c
#ifndef APP_OBJECT_ID_H #define APP_OBJECT_ID_H #include "acp/main.h" #define AOID_ID_UNKNOWN 0 //each kind has a set of ACP commands, which can be applied to it typedef enum { AOID_KIND_UNKNOWN=0, AOID_KIND_COMPLEX, AOID_KIND_LIST, AOID_KIND_YN_PARAM, AOID_KIND_SERIAL_ID_PARAM, AOID_KIND_SERIAL_RATE_PARAM, A...
31.46
125
(translation_unit) "#ifndef APP_OBJECT_ID_H\n#define APP_OBJECT_ID_H\n\n#include "acp/main.h"\n\n#define AOID_ID_UNKNOWN 0\n\n//each kind has a set of ACP commands, which can be applied to it\ntypedef enum {\n AOID_KIND_UNKNOWN=0,\n AOID_KIND_COMPLEX,\n AOID_KIND_LIST,\n AOID_KIND_YN_PARAM,\n AOID_KIND_SERIAL_ID_PARAM,...
465
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 31.46, "nodes": 327, "errors": 0, "source_hash": "b5dae000426efc24c15dd189b446b3f8c863064e1e5b89a0556b72c23da90bba", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,852
c
#ifndef DAY_23_H #define DAY_23_H void day_23_part_1_example_1(); void day_23_part_1_example_2(); void day_23_part_1_problem(); void day_23_part_2_example(); void day_23_part_2_problem(); #endif //DAY_23_H
24.75
8
(translation_unit) "#ifndef DAY_23_H\n#define DAY_23_H\n\nvoid day_23_part_1_example_1();\nvoid day_23_part_1_example_2();\nvoid day_23_part_1_problem();\nvoid day_23_part_2_example();\nvoid day_23_part_2_problem();\n\n#endif //DAY_23_H\n\n\n" (preproc_ifdef) "#ifndef DAY_23_H\n#define DAY_23_H\n\nvoid day_23_part_1_...
49
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.75, "nodes": 32, "errors": 0, "source_hash": "01a8b38428c02b6870f7d76e16862a8ee3640b6c70d651be44ff138d2f2c0618", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
76,853
c
/*******************************************************************\ Module: SSA var collector class Author: <NAME>, <NAME> \*******************************************************************/ /// \file /// SSA var collector class #ifndef CPROVER_2LS_SSA_SSA_VAR_COLLECTOR_H #define CPROVER_2LS_SSA_SSA_VAR_COLLEC...
31.67
60
(translation_unit) "/*******************************************************************\\n\nModule: SSA var collector class\n\nAuthor: <NAME>, <NAME>\n\n\*******************************************************************/\n\n/// \file\n/// SSA var collector class\n\n#ifndef CPROVER_2LS_SSA_SSA_VAR_COLLECTOR_H\n#defin...
376
25
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.67, "nodes": 206, "errors": 0, "source_hash": "7652309f89299ace4aa47e4963d81c3f032f75e7ab85d57c38a3a950d543b714", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,854
c
#pragma once #include "../asmjit/asmjit.h" #include "BytecodeClass.h" #include "Code.h" namespace Compile { using namespace asmjit; using namespace IR; using namespace BytecodeClass; using namespace CldRuntime; class Compiler { private: Compiler * next_ = nullptr; protected: static const bool executable =...
25.17
69
(translation_unit) "#pragma once\n#include "../asmjit/asmjit.h"\n#include "BytecodeClass.h"\n#include "Code.h"\n\nnamespace Compile\n{\n using namespace asmjit;\n using namespace IR;\n using namespace BytecodeClass;\n using namespace CldRuntime;\n\n class Compiler\n {\n private:\n Compiler * next_ = nullptr;\n protect...
488
13
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 25.17, "nodes": 319, "errors": 0, "source_hash": "842a3c83f21b9c47f3ff0a4d40e566902f379ad01b1d32dd8a574810cc67652f", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
76,855
c
#ifndef CJExecFunction_H #define CJExecFunction_H #include <CJToken.h> #include <CJTypes.h> #include <vector> #include <iostream> // function <name> ( <args> ) { [<statement>]* } class CJExecFunction : public CJToken { public: CJExecFunction(); void setIdentifiers(CJExecIdentifiersP identifiers) { identifie...
26.11
37
(translation_unit) "#ifndef CJExecFunction_H\n#define CJExecFunction_H\n\n#include <CJToken.h>\n#include <CJTypes.h>\n#include <vector>\n#include <iostream>\n\n// function <name> ( <args> ) { [<statement>]* }\nclass CJExecFunction : public CJToken {\n public:\n CJExecFunction();\n\n void setIdentifiers(CJExecIdentifi...
229
6
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.11, "nodes": 145, "errors": 0, "source_hash": "fe0fecdffd8e22b09c077accc85b7f9bdf9b4ca46cb25f7f5cecf7fdbd57afb3", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,856
c
// Authored by: <NAME> #include <iostream> #include <stdlib.h> using namespace std; class CLI{ private: string file_path; string action; void handle_command() ; public: CLI(int argc, char** argv) ; };
19.67
12
(translation_unit) "// Authored by: <NAME> \n#include <iostream> \n#include <stdlib.h>\nusing namespace std;\n\nclass CLI{\n private: \n string file_path;\n string action; \n void handle_command() ; \n\n public: \n CLI(int argc, char** argv) ; \n};\n" (comment) "// Authored by: <NAME...
63
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.67, "nodes": 39, "errors": 0, "source_hash": "6cb4dfc379ab0e4225fc14e1d90d3f50c988e0eeefb5a681527ebf1bbe52177a", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,857
c
#include "NUS_library.h"
24
1
(translation_unit) "#include "NUS_library.h"\n" (preproc_include) "#include "NUS_library.h"\n" (#include) "#include" (string_literal) ""NUS_library.h"" (") """ (string_content) "NUS_library.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 24.0, "nodes": 3, "errors": 0, "source_hash": "2bb4a7b61e4c7bc77e472a2d368dd845c09c6d89d8acfacdadc282bbb8767d8f", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
76,858
c
#define CB_CAMERA(x) cbuffer Camera : register(b##x) \ { \ float4x4 view; \ float4x4 projection; \ float3 cameraPosition; \ } #define CB_ENGINE_GLOBALS(x) cbuffer CBEngineGlobals : register(b##x) \ { \ float g_ScreenWidth; \ float g_ScreenHeight; \ float g_Time; \ } #d...
24.79
14
(translation_unit) "#define CB_CAMERA(x) cbuffer Camera : register(b##x) \\n { \\n float4x4 view; \\n float4x4 projection; \\n float3 cameraPosition; \\n }\n\n#define CB_ENGINE_GLOBALS(x) cbuffer CBEngineGlobals : register(b##x) \\n { \\n float g_ScreenWidth; \\n float g_ScreenHeight;...
65
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.79, "nodes": 42, "errors": 0, "source_hash": "6c9913c15d6e296ab206c8297d7c828126ca4da8d6d97fd2895ed953bf442abd", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
76,859
c
// // citizenconnect-Bridging-Header.h // citizenconnect // // Created by <NAME> on 29/05/2018. // Copyright © 2018 cfp. All rights reserved. // #ifndef citizenconnect_Bridging_Header_h #define citizenconnect_Bridging_Header_h #import "GMUMarkerClustering.h" #endif /* citizenconnect_Bridging_Header_h */
24.83
12
(translation_unit) "//\n// citizenconnect-Bridging-Header.h\n// citizenconnect\n//\n// Created by <NAME> on 29/05/2018.\n// Copyright © 2018 cfp. All rights reserved.\n//\n\n#ifndef citizenconnect_Bridging_Header_h\n#define citizenconnect_Bridging_Header_h\n#import "GMUMarkerClustering.h"\n\n\n#endif /* citizenconn...
19
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.83, "nodes": 9, "errors": 0, "source_hash": "d01704473ef7936af73546dc4b42f65703c6cc2867218a892d3af67bb30488d6", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef cit...
76,860
c
/* { dg-compile } */ /* { dg-options "-O2 -march=z196" } */ extern long useme (long, ...); void foo (void) { long secs = useme (41); long utc_secs = useme (42); long h, m; utc_secs = useme (42); h = secs / 3600; m = secs / 60; if (utc_secs >= 86400) { m = 59; h--; if (h < 0) h = ...
15.43
21
(translation_unit) "/* { dg-compile } */\n/* { dg-options "-O2 -march=z196" } */\n\nextern long useme (long, ...);\n\nvoid\nfoo (void)\n{\n long secs = useme (41);\n long utc_secs = useme (42);\n long h, m;\n\n utc_secs = useme (42);\n h = secs / 3600;\n m = secs / 60;\n if (utc_secs >= 86400)\n {\n m = ...
142
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.43, "nodes": 92, "errors": 0, "source_hash": "cc8cef491049595b86a6e5a9842043e439d727b8b5b9e14b010f051543fa5d1c", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern lon...
76,861
c
// // AntLogUtils.h // APRemoteLogging // // Created by 卡迩 on 2017/12/13. // Copyright © 2017年 Alipay. All rights reserved. // #import <Foundation/Foundation.h> extern NSString *APLogURLEncoding(NSString * string); extern NSString* APLogMD5String(NSString *string); extern NSData* APLogGZipCompress(NSData *data)...
34.07
15
(translation_unit) "//\n// AntLogUtils.h\n// APRemoteLogging\n//\n// Created by 卡迩 on 2017/12/13.\n// Copyright © 2017年 Alipay. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nextern NSString *APLogURLEncoding(NSString * string);\n\nextern NSString* APLogMD5String(NSString *string);\n\nextern NSDat...
130
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.07, "nodes": 98, "errors": 0, "source_hash": "3d1304c8e766fed4b80846667a2f7fa3db0987ecd0777e381f0463dd852f5e0f", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
76,862
c
// // StackNASTKit.h // StackNASTKit // // Created by <NAME> on 5/31/18. // Copyright © 2018 Appodeal. All rights reserved. // #import <UIKit/UIKit.h> #import <StackNASTKit/STKNASTDefines.h> #import <StackNASTKit/STKNASTAd.h> #import <StackNASTKit/STKNASTManager.h> FOUNDATION_EXPORT NSString * const StackNASTKit...
24.15
13
(translation_unit) "//\n// StackNASTKit.h\n// StackNASTKit\n//\n// Created by <NAME> on 5/31/18.\n// Copyright © 2018 Appodeal. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <StackNASTKit/STKNASTDefines.h>\n#import <StackNASTKit/STKNASTAd.h>\n#import <StackNASTKit/STKNASTManager.h>\n\n\nFOUNDATION_EX...
30
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.15, "nodes": 16, "errors": 0, "source_hash": "e73a2d91922a0c3565b9f0c5fb64af8c054921c0ea4e723365534a1ad7f9b67a", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
76,863
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:41:26 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/Home.framework/Home * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ @c...
42.65
17
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:41:26 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/Home.framework/Home\n* classdump-dyld is licensed under GPLv3, Copyright © 201...
87
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 42.65, "nodes": 52, "errors": 0, "source_hash": "169a2a0378f411d3a234c15ecef121a8e8c9626472ce3e67b947da33ee93d617", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
76,864
c
// // Person.h // LayZhangDemo // // Created by LayZhang on 2017/11/28. // Copyright © 2017年 Zhanglei. All rights reserved. // #import <Foundation/Foundation.h> @interface Person : NSObject @end
18.9
10
(translation_unit) "//\n// Person.h\n// LayZhangDemo\n//\n// Created by LayZhang on 2017/11/28.\n// Copyright © 2017年 Zhanglei. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Person : NSObject\n\n@end\n" (comment) "//" (comment) "// Person.h" (comment) "// LayZhangDemo" (comme...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.9, "nodes": 12, "errors": 0, "source_hash": "cd2e72600eff84f64c4c98f3d9e8ced250da77c5d72820aa971d72cd704c5271", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Found...
76,865
c
#ifndef HTTP_SESSION_H_ #define HTTP_SESSION_H_ #include "HttpMessage.h" class HttpSession { public: http_version version; http_session_type type; static HttpSession* New(http_session_type type = HTTP_CLIENT, http_version version = HTTP_V1); virtual ~HttpSession() {} virtual int GetSend...
44.08
36
(translation_unit) "#ifndef HTTP_SESSION_H_\n#define HTTP_SESSION_H_\n\n#include "HttpMessage.h"\n\nclass HttpSession {\npublic:\n http_version version;\n http_session_type type;\n\n static HttpSession* New(http_session_type type = HTTP_CLIENT, http_version version = HTTP_V1);\n virtual ~HttpSessio...
291
15
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 44.08, "nodes": 210, "errors": 0, "source_hash": "4f07c148d60be295d88d902d5a8d32c3f62d59057b024c00a0e07822e2468042", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,866
c
// AUTOGENERATED FILE - DO NOT MODIFY! // This file was generated by Djinni from wchar_test.djinni #import "DBWcharTestRec.h" #import <Foundation/Foundation.h> @interface DBWcharTestHelpers : NSObject + (nonnull DBWcharTestRec *)getRecord; + (nonnull NSString *)getString; + (BOOL)checkString:(nonnull NSString *)s...
33.09
11
(translation_unit) "// AUTOGENERATED FILE - DO NOT MODIFY!\n// This file was generated by Djinni from wchar_test.djinni\n\n#import "DBWcharTestRec.h"\n#import <Foundation/Foundation.h>\n\n\n@interface DBWcharTestHelpers : NSObject\n\n+ (nonnull DBWcharTestRec *)getRecord;\n\n+ (nonnull NSString *)getString;\n\n+ (BOOL)...
86
10
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.09, "nodes": 59, "errors": 0, "source_hash": "b333c55d2cc844f43e4e280c1f6d670bc7bd44a5c8894d9fa0f461bdfe26a3af", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
76,867
c
// // UIAlertTool.h // HeartWorld // // Created by zhangji on 16/8/9. // Copyright © 2016年 谭明权. All rights reserved. // #import <Foundation/Foundation.h> @interface UIAlertTool : NSObject -(void)showAlertViewViewController:(UIViewController *)viewController title:(NSString *)title message:(NSString *)message can...
41.55
11
(translation_unit) "//\n// UIAlertTool.h\n// HeartWorld\n//\n// Created by zhangji on 16/8/9.\n// Copyright © 2016年 谭明权. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface UIAlertTool : NSObject\n\n-(void)showAlertViewViewController:(UIViewController *)viewController title:(NSString *)title...
98
12
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 41.55, "nodes": 57, "errors": 0, "source_hash": "80beb78a1df112c8b7b03952bf872949754d35a0defd7ccbd098c95f0cc90690", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
76,868
c
#pragma once #include "caffe2/core/context.h" #include "caffe2/core/operator.h" #include "caffe2/utils/conversions.h" #include "caffe2/utils/math.h" namespace caffe2 { std::vector<TensorShape> FCShapeInference( const OperatorDef& def, const vector<TensorShape>& in, bool pretransposed_weight); ...
27.47
17
(translation_unit) "#pragma once \n#include "caffe2/core/context.h" \n#include "caffe2/core/operator.h" \n#include "caffe2/utils/conversions.h" \n#include "caffe2/utils/math.h" \n \nnamespace caffe2 { \nstd::vector<TensorShape> FCShapeInference( \n const OperatorDef& def, \n const vector<TensorShape>& in, \n b...
114
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.47, "nodes": 64, "errors": 0, "source_hash": "8f8b239d75cb0ae60d246d2751f183771292eaca1b7b5e4062b0d3b51dc094da", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,869
c
/* * Microsemi Switchtec(tm) PCIe Management Library * Copyright (c) 2017, Microsemi Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without...
29.68
224
(translation_unit) "/*\n * Microsemi Switchtec(tm) PCIe Management Library\n * Copyright (c) 2017, Microsemi Corporation\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without rest...
977
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 29.68, "nodes": 775, "errors": 0, "source_hash": "5ad56440f5c2f8624d6dad1d2586d8b13c5aa1143238aea6e9693517ff3ac549", "categorized_nodes": 585}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,870
c
/* AmazonImporterAppDelegate */ #import <Cocoa/Cocoa.h> #import "AmazonResultsDataSource.h" @interface AmazonImporterAppDelegate : NSObject { IBOutlet id resultsDataSource; IBOutlet id resultsTable; IBOutlet id searchField; IBOutlet id localePulldown; IBOutlet id fieldPulldown; } - (IBAction)doS...
28.06
18
(translation_unit) "/* AmazonImporterAppDelegate */\n\n#import <Cocoa/Cocoa.h>\n\n#import "AmazonResultsDataSource.h"\n\n@interface AmazonImporterAppDelegate : NSObject\n{\n IBOutlet id resultsDataSource;\n IBOutlet id resultsTable;\n IBOutlet id searchField;\n IBOutlet id localePulldown;\n IBOutlet id f...
150
17
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.06, "nodes": 95, "errors": 0, "source_hash": "54e5a0d5164e512b42acf17821b1aad2e84c1f02dac7dfc400d3aa7207ce3392", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
76,871
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* Notice: sometimes, Cppcheck would find the potential NULL pointer bugs, * but some of them cannot occur. You can suppress them by adding the * following line. * cppcheck-suppress nullPointer */ /* * Create em...
26.77
278
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "harness.h"\n#include "queue.h"\n\n/* Notice: sometimes, Cppcheck would find the potential NULL pointer bugs,\n * but some of them cannot occur. You can suppress them by adding the\n * following line.\n * cppcheck-suppress nu...
1,734
0
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 26.77, "nodes": 1099, "errors": 0, "source_hash": "2bd2b90ee0faa3ea6da8fbf48370019a0a9bea8cf7dd9fc412ab361d783359ae", "categorized_nodes": 763}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
76,872
c
/* * Copyright (c) 2020, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDE...
32.55
92
(translation_unit) "/*\n * Copyright (c) 2020, The Linux Foundation. All rights reserved.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\...
560
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 32.55, "nodes": 331, "errors": 0, "source_hash": "fdc0943a6905e64d480945def7baf45a2c45726654924ec4130e7f21a0b58ab0", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,873
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _ReportSFTD_NR_H_ #define _ReportSFTD_NR_H_ #include "asn_application.h" /* Including external dependencies */ ...
31.02
58
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef _ReportSFTD_NR_H_\n#define _ReportSFTD_NR_H_\n\n\n#include "asn_application.h"\n\n/* In...
198
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 31.02, "nodes": 126, "errors": 0, "source_hash": "16ff49f1d88a12f239f65f047c2e09b443de13d183f0d7399617a45f0b971264", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,874
c
#ifndef __POINTS__ #define __POINTS__ #include <map> #include <set> #include <vector> #include "common.h" enum PointType { POINT_BBOX,POINT_INPUT,POINT_SEGMENT,POINT_2D, POINT_PRESPLIT}; class Points { public: Points(); vector < Point > V; // points vector < PointType > type; // POINT_BBOX, P...
35.8
25
(translation_unit) "#ifndef __POINTS__\n#define __POINTS__\n\n#include <map>\n#include <set>\n#include <vector>\n\n#include "common.h"\n\n\nenum PointType { POINT_BBOX,POINT_INPUT,POINT_SEGMENT,POINT_2D, POINT_PRESPLIT};\n\nclass Points {\npublic:\n\n Points();\n\n vector < Point > V; // points\n vector ...
234
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.8, "nodes": 161, "errors": 0, "source_hash": "25890e9c65b61cd9b8398c8d2ac29e4367a1b9d48c03e71a6a06e6a1b317f7af", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
76,875
c
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME> **********/ #include "spice.h" #include <stdio.h> #include "cktdefs.h" #include "devdefs.h" #include "capdefs.h" #include "ifsim.h" #include "sperror.h" #include "util.h" #include "suffix.h" /* ARGSUSED */ in...
34.24
140
(translation_unit) "/**********\nCopyright 1990 Regents of the University of California. All rights reserved.\nAuthor: 1985 <NAME>\n**********/\n\n#include "spice.h"\n#include <stdio.h>\n#include "cktdefs.h"\n#include "devdefs.h"\n#include "capdefs.h"\n#include "ifsim.h"\n#include "sperror.h"\n#include "util.h"\n#incl...
1,330
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 34.24, "nodes": 826, "errors": 0, "source_hash": "5ee2ba449e1ff46f4a541996379a86340c9f50e35be9b5490d1e34cec79798c9", "categorized_nodes": 684}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
76,876
c
/* 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; version 2 of the License * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without e...
31.95
104
(translation_unit) "/* 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; version 2 of the License\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOU...
577
1
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 31.95, "nodes": 485, "errors": 0, "source_hash": "eb16d6d9499ae0740b0c86fb2a632dd9324b404f26d78018a63700bea4e3aea4", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,877
c
#include "skynet.h" #include "skynet_mq.h" #include "skynet_handle.h" #include "spinlock.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdbool.h> #define DEFAULT_QUEUE_SIZE 64 #define MAX_GLOBAL_MQ 0x10000 // 0 means mq is not in global mq. // 1 means mq is in global mq ...
19.73
252
(translation_unit) "#include "skynet.h"\n#include "skynet_mq.h"\n#include "skynet_handle.h"\n#include "spinlock.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <assert.h>\n#include <stdbool.h>\n\n#define DEFAULT_QUEUE_SIZE 64\n#define MAX_GLOBAL_MQ 0x10000\n\n// 0 means mq is not in global ...
1,677
14
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 19.73, "nodes": 1138, "errors": 0, "source_hash": "322ce9fe9914ba397267eb0d4a0b04cb13b1e3549eea29200067c16ae93d0d8d", "categorized_nodes": 792}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
76,878
c
// // MiioRpc.h // Miio // // Created by guolin on 15/3/4. // Copyright (c) 2015年 xiaomi. All rights reserved. // #import <Foundation/Foundation.h> #import "MiioConstants.h" @interface MiioRpc : NSObject /** * 绑定权限模式,上层直接发送命令 * * @param ip 设备IP * @param body 额外数据 * @param deviceID 设备ID * @pa...
25.6
43
(translation_unit) "//\n// MiioRpc.h\n// Miio\n//\n// Created by guolin on 15/3/4.\n// Copyright (c) 2015年 xiaomi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MiioConstants.h"\n\n@interface MiioRpc : NSObject\n\n/**\n * 绑定权限模式,上层直接发送命令\n *\n * @param ip 设备IP\n * @param body ...
217
26
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 25.6, "nodes": 130, "errors": 0, "source_hash": "a43ab818b45bdd268c01728d60f277f6931091a31377bb490ee926752495f0de", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
76,879
c
// // NGCardsCollectionViewLayout.h // NGCardKit // // Created by <NAME> on 12/25/16. // Copyright © 2016 - 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface NGCardsCollectionViewLayout : UICollectionViewFlowLayout @property (nonatomic, assign) CGFloat minimumAlphaValue; @property (nonatomi...
35.2
15
(translation_unit) "//\n// NGCardsCollectionViewLayout.h\n// NGCardKit\n//\n// Created by <NAME> on 12/25/16.\n// Copyright © 2016 - 2017 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NGCardsCollectionViewLayout : UICollectionViewFlowLayout\n\n@property (nonatomic, assign) CGFloat minimu...
105
21
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.2, "nodes": 71, "errors": 0, "source_hash": "720d2376ec460a0a5c2ac94464314295319500824fa00063047da4c4bc714f99", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
76,880
c
/** * GraphHopper Directions API * You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic problems and supports various constraints like time win...
28.85
93
(translation_unit) "/**\n * GraphHopper Directions API\n * You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic problems and supports various con...
481
7
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 28.85, "nodes": 331, "errors": 0, "source_hash": "4d901427536ffbb54f7a7a5d2259b46c0d31bfc169483ceaa748b4d406710373", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,881
c
/** * @file KeyFrameMotion.h * * @author <a href="mailto:<EMAIL>"><NAME></a> * Declaration of class KeyFrameMotion */ #ifndef _KeyFrameMotion_h_ #define _KeyFrameMotion_h_ #include "Motion/Engine/AbstractMotion.h" #include "Tools/DataStructures/Printable.h" #include "MotionNet.h" #include "Tools/Math/Common.h" #in...
28.27
63
(translation_unit) "/**\n* @file KeyFrameMotion.h\n*\n* @author <a href="mailto:<EMAIL>"><NAME></a>\n* Declaration of class KeyFrameMotion\n*/\n\n#ifndef _KeyFrameMotion_h_\n#define _KeyFrameMotion_h_\n\n#include "Motion/Engine/AbstractMotion.h"\n#include "Tools/DataStructures/Printable.h"\n\n#include "MotionNet.h"\n#i...
362
17
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 28.27, "nodes": 205, "errors": 0, "source_hash": "746652f27e3668527035c17c72dfd5b6e97ca88ee72a2b1cd6fadc2de2f70d0b", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,882
c
/* File: sp_unify_xsb_i.h ** Author(s): <NAME> ** Contact: <EMAIL> ** ** Copyright (C) The Research Foundation of SUNY, 1986, 1993-1998 ** ** XSB is free software; you can redistribute it and/or modify it under the ** terms of the GNU Library General Public License as published by the Free ** Software Foundati...
33.86
49
(translation_unit) "/* File: sp_unify_xsb_i.h\n** Author(s): <NAME>\n** Contact: <EMAIL>\n** \n** Copyright (C) The Research Foundation of SUNY, 1986, 1993-1998\n** \n** XSB is free software; you can redistribute it and/or modify it under the\n** terms of the GNU Library General Public License as published by th...
192
2
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.86, "nodes": 99, "errors": 0, "source_hash": "359c8c62018afb6332baf82225d56033b4b2d0b0c37da512d0765bf6f6b48d18", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "st...
76,883
c
//1457 - <NAME> Alexandria #include <stdio.h> #include <string.h> int main(void) { int T; scanf("%d", &T); while (T--) { long long int N; int tam; char K[20]; int vetor[20]; scanf("%lld %s", &N, K); tam = strlen(K); int X = 1, cont = 0; ...
18.03
35
(translation_unit) "//1457 - <NAME> Alexandria\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n int T;\n\n scanf("%d", &T);\n\n while (T--)\n {\n long long int N;\n int tam;\n char K[20];\n int vetor[20];\n\n scanf("%lld %s", &N, K);\n tam = strlen(K)...
222
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.03, "nodes": 130, "errors": 0, "source_hash": "779758f3409f1f31b5a6aa624169fc35fa3309c7cb8ad894e0b4a3bd96ae6323", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
76,884
c
/* j/6/ut_conk.c ** */ #include "all.h" /* logic */ static u3_noun _cqfu_conk(u3_noun van, u3_noun sut, u3_noun got) { if ( c3y == u3ud(got) ) { u3_noun ret = u3qf_face(u3k(got), sut); return ret; } else switch ( u3h(got) ) { default: return u3m_bail(c3__...
22.73
75
(translation_unit) "/* j/6/ut_conk.c\n**\n*/\n#include "all.h"\n\n\n/* logic\n*/\n static u3_noun\n _cqfu_conk(u3_noun van,\n u3_noun sut,\n u3_noun got)\n {\n if ( c3y == u3ud(got) ) {\n u3_noun ret = u3qf_face(u3k(got), sut);\n\n return ret;\n }\n else switch ( u3h(got) )...
578
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 22.73, "nodes": 332, "errors": 0, "source_hash": "a4474b1d1757c11d7a95690b71f4cc21eeadcf9f26888f1e7f9e3681d1d6b45f", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,885
c
/* * File: limitoutputstreambuf.h * ---------------------------- * This file defines the <code>LimitOutputStreambuf</code> class, which * represents a stream buffer that counts how much output has been produced * and throws an exception if a given maximum is exceeded. * We mostly use this in grading programs to h...
32.32
69
(translation_unit) "/*\n * File: limitoutputstreambuf.h\n * ----------------------------\n * This file defines the <code>LimitOutputStreambuf</code> class, which\n * represents a stream buffer that counts how much output has been produced\n * and throws an exception if a given maximum is exceeded.\n * We mostly use thi...
401
15
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 32.32, "nodes": 231, "errors": 0, "source_hash": "3c30fbb27edd9c0de7271662aae6498ebbe94f53d799c4f2fc71dedf62f12c7e", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
76,886
c
#pragma once #include <string> #include "Architecture.h" class Software { public: std::wstring DisplayName; std::wstring InstallLocation; std::wstring Version; Arch_e Architecture; // 32 or 64 std::wstring Icon; Software(); Software(const std::wstring& displayName, const std::wstring& version, const std::wstr...
26.47
15
(translation_unit) "#pragma once\n#include <string>\n#include "Architecture.h"\n\nclass Software\n{\npublic:\n std::wstring DisplayName;\n std::wstring InstallLocation;\n std::wstring Version;\n Arch_e Architecture; // 32 or 64\n std::wstring Icon;\n\n Software();\n Software(const std::wstring& displayName, const std:...
149
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.47, "nodes": 73, "errors": 0, "source_hash": "98c7993579a0bf8ef16e931dae4b6b944277d2664f84429c8088105cbee775d2", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
76,887
c
/* stack.c */ /* This is the program that introduces the buffer overflow vulnerability. */ #include <stdlib.h> #include <stdio.h> #include <string.h> int bof(char *str) { char buffer[12]; /* Can you spot the buffer overflow here? ;-) */ strcpy(buffer, str); return 1; } int main(int argc, char **ar...
25.91
23
(translation_unit) "/* stack.c */\n\n/* This is the program that introduces the buffer overflow vulnerability. */\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n\nint bof(char *str)\n{\n char buffer[12];\n\n /* Can you spot the buffer overflow here? ;-) */ \n strcpy(buffer, str);\n\n return ...
148
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.91, "nodes": 84, "errors": 0, "source_hash": "16c610652bb22bd2f21b7a29540bc4fb029da3b5d433f417a6f3e3750162b9b1", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
76,888
c
int removeDuplicates(int* nums, int numsSize){ if (numsSize < 2) { return numsSize; } int i = 0, j = 0; while (j < numsSize - 1) { if (nums[j] != nums[j + 1]) { nums[i++] = nums[j]; } j++; } if (i < j) { nums[i] = nums[j]; } return i + ...
19.31
16
(translation_unit) "int removeDuplicates(int* nums, int numsSize){\n if (numsSize < 2) {\n return numsSize;\n }\n int i = 0, j = 0;\n while (j < numsSize - 1) {\n if (nums[j] != nums[j + 1]) {\n nums[i++] = nums[j];\n }\n j++;\n }\n if (i < j) {\n nums[i] ...
140
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.31, "nodes": 85, "errors": 0, "source_hash": "d40e1609bf89aaebb092dbcb2f85f945a4af2bb8985705d0a9d24d3f7d0eccb7", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
76,889
c
// Copyright (c) 2020, the YACCLAB contributors, as // shown by the AUTHORS file. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef YACCLAB_CHECK_LABELING_H_ #define YACCLAB_CHECK_LABELING_H_ #include <map> #include <string> enum ...
32.67
42
(translation_unit) "// Copyright (c) 2020, the YACCLAB contributors, as \n// shown by the AUTHORS file. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\n#ifndef YACCLAB_CHECK_LABELING_H_\n#define YACCLAB_CHECK_LABELING_H_\n\n#include <...
330
19
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.67, "nodes": 182, "errors": 0, "source_hash": "dcdf7c60ba59ff8465be7d5c87034f19c41bd72e8dfc45c7e5ec3df517fc6035", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef YACCLA...
76,890
c
/** @author <NAME> (<EMAIL>) */ #ifndef CLI_VALIDATION_H #define CLI_VALIDATION_H /** * Note: Accounts for arg 0 and arg 1 * @param argc * @param maxArgC * @param command * @return */ int validateMaxParams(int argc, int maxParams, char *command); int validateMinParams(int argc, int minParams, char *command); ...
28.58
19
(translation_unit) "/**\n @author <NAME> (<EMAIL>)\n*/\n#ifndef CLI_VALIDATION_H\n#define CLI_VALIDATION_H\n/**\n * Note: Accounts for arg 0 and arg 1\n * @param argc\n * @param maxArgC\n * @param command\n * @return\n */\nint validateMaxParams(int argc, int maxParams, char *command);\nint validateMinParams(int argc...
117
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.58, "nodes": 88, "errors": 0, "source_hash": "893ee8ef40decb9e9df20ceedae05a7faa3d3e0f1cecfffb829f7a07cbd369b4", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
76,891
c
//----------------------------------*-C++-*-----------------------------------// /*! * \file info.h * \author <NAME> * \date September 2 2016 * \brief Stores MPI information to compress function signatures * \note Copyright (C) 2017 Los Alamos National Security, LLC. * All rights reserved */ //---...
34.69
115
(translation_unit) "//----------------------------------*-C++-*-----------------------------------//\n/*!\n * \file info.h\n * \author <NAME>\n * \date September 2 2016\n * \brief Stores MPI information to compress function signatures\n * \note Copyright (C) 2017 Los Alamos National Security, LLC.\n * Al...
291
3
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 34.69, "nodes": 145, "errors": 0, "source_hash": "9de91d306bf9f4ec8e8cbe5d010a7e1e66080c6d22e2abb926396053d0df2045", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
76,892
c
/* ** EPITECH PROJECT, 2021 ** sort.c ** File description: ** <EMAIL> */ #include "pushswap.h"
12.57
7
(translation_unit) "/*\n** EPITECH PROJECT, 2021\n** sort.c\n** File description:\n** <EMAIL>\n*/\n\n#include "pushswap.h"\n\n" (comment) "/*\n** EPITECH PROJECT, 2021\n** sort.c\n** File description:\n** <EMAIL>\n*/" (preproc_include) "#include "pushswap.h"\n" (#include) "#include" (string_literal) ""pushs...
8
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 12.57, "nodes": 3, "errors": 0, "source_hash": "025c007f278021623e5a7619206243837680dabe966962c5117fcc542be0721c", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
76,893
c
#ifndef WOLFCAST_TEXTURE_H #define WOLFCAST_TEXTURE_H #include <stdbool.h> #include "stdint.h" bool TextureLoad(const char *path, uint32 *handle, int *width, int *height); void TextureFree(uint32 handle); bool TextureLoadSlices(const char *path, uint32 **handles, int *width, int *height); void TextureFreeSlices(uint3...
40.11
9
(translation_unit) "#ifndef WOLFCAST_TEXTURE_H\n#define WOLFCAST_TEXTURE_H\n\n#include <stdbool.h>\n#include "stdint.h"\n\nbool TextureLoad(const char *path, uint32 *handle, int *width, int *height);\nvoid TextureFree(uint32 handle);\nbool TextureLoadSlices(const char *path, uint32 **handles, int *width, int *height);\...
114
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 40.11, "nodes": 86, "errors": 0, "source_hash": "9c81adbc79556abf44b538ff3e33bd5b1eedd6c9226d0639cdec8954f13a8314", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
76,894
c
/* ** EPITECH PROJECT, 2020 ** alloc ** File description: ** alloc */ #include "my_malloc.h" mem_t *create_head(size_t size) { size += sizeof(mem_t); size_t space = (size - 1) / (2 * getpagesize()) * (2 * getpagesize()) + (2 * getpagesize()); head = sbrk(space); if (head == (void *) -1) ...
25.45
47
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** alloc\n** File description:\n** alloc\n*/\n\n#include "my_malloc.h"\n\nmem_t *create_head(size_t size)\n{\n size += sizeof(mem_t);\n size_t space = (size - 1) / (2 * getpagesize()) * (2 * getpagesize())\n + (2 * getpagesize());\n\n head = sbrk(space);...
499
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 25.45, "nodes": 326, "errors": 0, "source_hash": "c079a5d3af5ae44aafe500e3e55761e2ff9e0127544cf818cdb959f5bdb02b5b", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,895
c
#pragma once #define NOMINMAX #include <d3d11.h> #include <d3d11_1.h> #include <dxgi1_2.h>
17.2
5
(translation_unit) "#pragma once\n\n#define NOMINMAX\n\n#include <d3d11.h>\n#include <d3d11_1.h>\n#include <dxgi1_2.h>" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define NOMINMAX\n" (#define) "#define" (identifier) "NOMINMAX" (preproc_include...
16
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.2, "nodes": 15, "errors": 0, "source_hash": "5a0ef58017d641f971e610053ea52be87da79da734df716f40d954d3a1e4226c", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
76,896
c
#pragma once #include "Sandbox.h" class SandboxSceneTemplate : public Sandbox { public: SandboxSceneTemplate() {} ~SandboxSceneTemplate() {} void OnStart() override { } void OnUpdate() override { } void OnRender() override { } void OnImGuiRender() override { ...
23.67
30
(translation_unit) "#pragma once\n\n#include "Sandbox.h"\n\nclass SandboxSceneTemplate : public Sandbox\n{\npublic:\n SandboxSceneTemplate() {}\n ~SandboxSceneTemplate() {}\n\n void OnStart() override\n {\n\n }\n\n void OnUpdate() override\n {\n\n }\n\n void OnRender() override\n {\n\n ...
236
6
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.67, "nodes": 112, "errors": 0, "source_hash": "cd61ccbc55a004bb4759105af78cdbb4619cf34657699ccc6febd3a1b02abb0b", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
76,897
c
/* * Copyright 2018 Robotic Eyes GmbH * * 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 t...
36.53
49
(translation_unit) "/*\n * Copyright 2018 Robotic Eyes GmbH\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 ...
428
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.53, "nodes": 273, "errors": 0, "source_hash": "35c15f882f4fac16ebd84c61e43811987f988b852a90df4cf4c7addd7bc48989", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
76,898
c
// // BKPlayerCache.h // BKAVPlayer // // Created by liugangyi on 2017/3/21. // Copyright © 2017年 liugangyi. All rights reserved. // #import <Foundation/Foundation.h> @interface BKPlayerCache : NSObject /** 获取完整的缓存文件 @param url 资源Url @return 路径 */ + (NSString *)cachePathForIntegralUrl:(NSURL *)url; /** 完整缓...
15.06
67
(translation_unit) "//\n// BKPlayerCache.h\n// BKAVPlayer\n//\n// Created by liugangyi on 2017/3/21.\n// Copyright © 2017年 liugangyi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BKPlayerCache : NSObject\n\n/**\n 获取完整的缓存文件\n\n @param url 资源Url\n @return 路径\n */\n+ (NSString *)cachePat...
225
22
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 15.06, "nodes": 145, "errors": 0, "source_hash": "85ffa4765164b12a7c6897a817a4601d1e8f0a04e1627edb9746a8d918be9941", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
76,899