language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
/* * Copyright (c) 2017, <NAME>, Inc. * All rights reserved. */ #include <stdio.h> #include "unary_sync.grpc-c.h" static int success; void unary_sync_client (grpc_c_client_t *client) { int status; grpc_c_context_t *context = NULL; /* * Create a hello request message and call R...
20.6
45
(translation_unit) "/* \n * Copyright (c) 2017, <NAME>, Inc. \n * All rights reserved. \n */ \n \n#include <stdio.h> \n#include "unary_sync.grpc-c.h" \n \nstatic int success; \n \nvoid \nunary_sync_client (grpc_c_client_t *client) \n{ \n int status; \n grpc_c_context_t *context = NULL; \n \n /* \n * Crea...
243
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 20.6, "nodes": 140, "errors": 0, "source_hash": "962f977c9cd8aad9ae32ab334c8de5cb2cae43752d5aa5484390e1e5fab753cd", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,100
c
/* ===== [nvs_storage.c] ===== * Copyright <NAME> <<EMAIL>> * All rights reserved. * * Version: 0.1.0 * Creation Date: 2019 */ /* ===== Dependencies ===== */ #include "nvs_storage.h" #include "esp_partition.h" #include "nvs_flash.h" #include "nvs.h" #include "esp_log.h" /* ===== Macros of private constants =...
27.51
73
(translation_unit) "/* ===== [nvs_storage.c] =====\n * Copyright <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * Version: 0.1.0\n * Creation Date: 2019\n */\n\n\n/* ===== Dependencies ===== */\n#include "nvs_storage.h"\n\n#include "esp_partition.h"\n#include "nvs_flash.h"\n#include "nvs.h"\n\n#include "esp_log.h"\n\n...
373
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 27.51, "nodes": 204, "errors": 0, "source_hash": "3c52655bf0b528b5c3706706285e311953747f9df97801af7a27eaeb6e19dbdc", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,101
c
#ifndef _DEVMAND_PROTO_H #define _DEVMAND_PROTO_H /* main.c */ struct devmand_usb_driver * add_usb_driver(char *name); struct devmand_usb_match_id * add_usb_match_id(); /* y.tab.c */ int yyparse(); #endif
24.62
8
(translation_unit) "#ifndef _DEVMAND_PROTO_H\n#define _DEVMAND_PROTO_H\n\n/* main.c */\nstruct devmand_usb_driver * add_usb_driver(char *name);\nstruct devmand_usb_match_id * add_usb_match_id();\n\n/* y.tab.c */\nint yyparse();\n\n#endif\n" (preproc_ifdef) "#ifndef _DEVMAND_PROTO_H\n#define _DEVMAND_PROTO_H\n\n/* mai...
47
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.62, "nodes": 35, "errors": 0, "source_hash": "4b27c2426c7b30e7dd2f854393a8508b35c64aec52300bc616718c0b70c6758e", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,102
c
/* ** dynbuf.c ** ** Dynmaic buffer. */ #include "include.h" /* protos */ static void DynBufGrow(void); /* globals */ static char *dynBuf; static int dynBufGrow, dynBufSize, dynBufLen; /* ** DynBufInit ** ** Initialize dynamic buffer. ** ** -> grow Size to grow buffer pr. grow request. */ void DynBufInit(int grow) ...
12.24
95
(translation_unit) "/*\n** dynbuf.c\n**\n** Dynmaic buffer.\n*/\n#include "include.h"\n\n/* protos */\nstatic void DynBufGrow(void);\n\n/* globals */\nstatic char *dynBuf;\nstatic int dynBufGrow, dynBufSize, dynBufLen;\n\n/*\n** DynBufInit\n**\n** Initialize dynamic buffer.\n**\n** -> grow Size to grow buffer pr. grow...
325
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 12.24, "nodes": 187, "errors": 0, "source_hash": "6214dc8075d69cc82b0cc88656cc2a3a62329d6f7122f799ebc5187dbe99f1f6", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,103
c
//===--- GenDistributed.h - IRGen for distributed features ------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
31.42
48
(translation_unit) "//===--- GenDistributed.h - IRGen for distributed features ------*- C++ -*-===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\...
169
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.42, "nodes": 84, "errors": 0, "source_hash": "e86e31f8dbafa2c038017ba38b1dfbb93831b1c80a66b5c6f6f26f9991bd589e", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,104
c
/**~UML Diagram Interchange~ * UMLStateMachineDiagram [Class] * * Description * * Shows a StateMachine and its elements. * Also see Annex A. * * Generalizations * * UMLBehaviorDiagram * * Attributes * *  isCollapseStateIcon : Boolean [1..1] = true * * Indicates whether UMLShapes for * composite...
21.85
55
(translation_unit) "/**~UML Diagram Interchange~\n * UMLStateMachineDiagram [Class]\n * \n * Description\n * \n * Shows a StateMachine and its elements.\n * Also see Annex A.\n * \n * Generalizations\n * \n * UMLBehaviorDiagram\n * \n * Attributes\n * \n *  isCollapseStateIcon : Boolean [1..1] = true\n * \n * Indicate...
2
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 21.85, "nodes": 0, "errors": 0, "source_hash": "5b0f2d4d980f0c7d1e8f2d5a58dc2dd989134c44072d1e50753331971608a0d3", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
10,105
c
#ifndef GPIO_PIN_LAYOUT_H #define GPIO_PIN_LAYOUT_H //Layout of GPIO pin #define GPIO_7 (7) #define GPIO_8 (8) #define GPIO_9 (9) #define GPIO_10 (10) #define GPIO_11 (11) #define SPI_0_MOSI GPIO_10 #define SPI_0_MISO GPIO_9 #define SPI_0_SCLK GPIO_11 #define S...
27.57
14
(translation_unit) "#ifndef GPIO_PIN_LAYOUT_H\n#define GPIO_PIN_LAYOUT_H\n\n//Layout of GPIO pin\n#define GPIO_7 (7)\n#define GPIO_8 (8)\n#define GPIO_9 (9)\n#define GPIO_10 (10)\n#define GPIO_11 (11)\n#define SPI_0_MOSI GPIO_10\n#define SPI_0_MISO GPIO_9\n#define SP...
50
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.57, "nodes": 47, "errors": 0, "source_hash": "dadc430ca265b8ee36097c07a9f198ec02ff0cba5f5819f9a608463081f48a82", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,106
c
// *************************************************************************** // BamException_p.h (c) 2011 <NAME> // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 6 October 2011 (DB) // ---------------------------------...
31.95
42
(translation_unit) "// ***************************************************************************\n// BamException_p.h (c) 2011 <NAME>\n// Marth Lab, Department of Biology, Boston College\n// ---------------------------------------------------------------------------\n// Last modified: 6 October 2011 (DB)\n// --------...
195
6
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.95, "nodes": 90, "errors": 0, "source_hash": "c3c37fbc693ebb0c1740f6faea3ac4a0db1f9db1d2e4bcc08c9cae33f8a7ba69", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,107
c
# include <hstio.h> # include <stdio.h> /*************************************************************************** Illustration of the low-level I/O routines using Data Structures and I/O Function Declarations for STScI Calibration Pipeline Software for STIS and NICMOS Input data structures, such as FloatTwo...
35.33
91
(translation_unit) "# include <hstio.h>\n# include <stdio.h>\n\n/***************************************************************************\n\n Illustration of the low-level I/O routines\n using\n Data Structures and I/O Function Declarations for\n STScI Calibration Pipeline Software for STIS and NICMOS\n\nInput dat...
884
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 35.33, "nodes": 440, "errors": 0, "source_hash": "add6f8c45bc5eba6e04c10794af2ac80106a8a0a57d6fee61635ed518b0d7cad", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# in...
10,108
c
// // WordDetailController.h // MyBaseProject // // Created by 任波 on 15/12/6. // Copyright © 2015年 renbo. All rights reserved. // #import <UIKit/UIKit.h> @interface WordDetailController : UIViewController /** 初始化的时候把内容传进来 */ - (instancetype)initWithContent:(NSString *)content; @property (strong, nonatomic) NSStr...
24.85
13
(translation_unit) "//\n// WordDetailController.h\n// MyBaseProject\n//\n// Created by 任波 on 15/12/6.\n// Copyright © 2015年 renbo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface WordDetailController : UIViewController\n\n/** 初始化的时候把内容传进来 */\n- (instancetype)initWithContent:(NSString *)content;\n@...
59
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.85, "nodes": 34, "errors": 0, "source_hash": "b76c630c726ab412e6f2036af8fe43ec2736cc3f97cff1a2cdaf12f4113d66d5", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
10,109
c
#ifndef CONFIGURATORTEST_H_ #define CONFIGURATORTEST_H_ #include <gtest/gtest.h> #include "Configurator.h" class ConfiguratorTest : public ::testing::Test { protected: Configurator* sut; void SetUp(); void TearDown(); public: ConfiguratorTest(); virtual ~ConfiguratorTest(); }; #endif
19.71
14
(translation_unit) "#ifndef CONFIGURATORTEST_H_\n#define CONFIGURATORTEST_H_\n\n#include <gtest/gtest.h>\n#include "Configurator.h"\n\nclass ConfiguratorTest : public ::testing::Test {\nprotected:\n Configurator* sut;\n void SetUp();\n void TearDown();\n\npublic:\n ConfiguratorTest();\n virtual ~ConfiguratorTest();\n\n...
79
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.71, "nodes": 45, "errors": 0, "source_hash": "4675dafb49ba8de9906759ce1617c3f10f51bed1fe285d3af8bb102b88a7bb85", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,110
c
/***************************************************************************************** * Copyright (c) 2009 Hewlett-Packard Development Company, L.P. * 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 ...
33.75
103
(translation_unit) "/*****************************************************************************************\n * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the "S...
594
14
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 33.75, "nodes": 354, "errors": 0, "source_hash": "0e863fb070b3d6608c3c3d0c3c8f836dd510d54125a55af78bc2c521a6060dfd", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,111
c
// // Configurations.h // Sidestep // // Created by <NAME> on 11/18/10. // Copyright 2010 <NAME>. All rights reserved. extern const int debuggingEnabled;
21.57
7
(translation_unit) "//\n// Configurations.h\n// Sidestep\n//\n// Created by <NAME> on 11/18/10.\n// Copyright 2010 <NAME>. All rights reserved.\n\nextern const int debuggingEnabled;" (comment) "//" (comment) "// Configurations.h" (comment) "// Sidestep" (comment) "//" (comment) "// Created by <NAME> on...
15
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.57, "nodes": 5, "errors": 0, "source_hash": "c95199fe63e268256d2fc9ac1fcb43c5b8ccfbe92b32ff6fb8da08d488d40f88", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern const ...
10,112
c
/* This is free and unencumbered software released into the public domain. */ #include <assert.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <math.h> #define __TRITH_INIT__ #include "trith.h" #include "config.h" ////////////////////////////////////////////////////////////////////////////// ...
29.07
228
(translation_unit) "/* This is free and unencumbered software released into the public domain. */\n\n#include <assert.h>\n#include <stdio.h>\n#include <string.h>\n#include <strings.h>\n#include <math.h>\n\n#define __TRITH_INIT__\n#include "trith.h"\n#include "config.h"\n\n///////////////////////////////////////////////...
2,084
0
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 29.07, "nodes": 1270, "errors": 0, "source_hash": "4cede6dc35f3a438c029bd91f1df2e48f0ff5c00bc71c61c2bdfa93a6fa35c0d", "categorized_nodes": 878}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,113
c
#ifndef OOPROG_H #define OOPROG_H namespace oonalysis::core { class OOProg { }; // class Program } // namespace oonalysis::core #endif // OOPROG_H
17.38
8
(translation_unit) "#ifndef OOPROG_H\n#define OOPROG_H\n\nnamespace oonalysis::core {\n\nclass OOProg\n{\n\n}; // class Program\n\n} // namespace oonalysis::core\n\n#endif // OOPROG_H\n" (preproc_ifdef) "#ifndef OOPROG_H\n#define OOPROG_H\n\nnamespace oonalysis::core {\n\nclass OOProg\n{\n\n}; // class Program\n\n} /...
29
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.38, "nodes": 14, "errors": 0, "source_hash": "92f00a05bc790094fc1e415e2fdc4e12ff677cd52fcd6d7b539308eef45c16fe", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef O...
10,114
c
String encode_morse(const String string) { size_t i, j; String morseWord = ""; for( i = 0; i != string.length(); ++i ) { for( j = 0; j < sizeof MorseMap / sizeof *MorseMap; ++j ) { if( toupper(string.charAt(i)) == MorseMap[j].letter ) { morseWord += MorseMap[j].code; break...
21.53
19
(translation_unit) "String encode_morse(const String string)\n{\n size_t i, j;\n String morseWord = "";\n \n for( i = 0; i != string.length(); ++i )\n {\n for( j = 0; j < sizeof MorseMap / sizeof *MorseMap; ++j )\n {\n if( toupper(string.charAt(i)) == MorseMap[j].letter )\n {\n morseWord += ...
149
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.53, "nodes": 87, "errors": 0, "source_hash": "409308aabcb67bc65b86e8f9491fe119507359dee06404247223ef90507f93ef", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "St...
10,115
c
/** * $Id: CMP_hueSatVal.c 14749 2008-05-08 19:57:10Z blendix $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Licens...
32.69
112
(translation_unit) "/**\n * $Id: CMP_hueSatVal.c 14749 2008-05-08 19:57:10Z blendix $\n *\n * ***** BEGIN GPL LICENSE BLOCK *****\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either...
1,014
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 32.69, "nodes": 610, "errors": 0, "source_hash": "7a8b87bc696bb7f00e8ec9703c89116bea50a21297373814324a6c5873927106", "categorized_nodes": 443}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,116
c
// // NNDiffCalculator.h // ArrayDiff // // Created by <NAME> on 07/12/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> typedef id (^NNDiffObjectIdBlock)(id object); typedef BOOL (^NNDiffObjectUpdatedBlock)(id objectBefore, id objectAfter); @interface NNDiffCalculator ...
30.27
15
(translation_unit) "//\n// NNDiffCalculator.h\n// ArrayDiff\n//\n// Created by <NAME> on 07/12/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef id (^NNDiffObjectIdBlock)(id object);\ntypedef BOOL (^NNDiffObjectUpdatedBlock)(id objectBefore, id objectAfter);...
87
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.27, "nodes": 58, "errors": 0, "source_hash": "420c5284d3521c2ee877f05fc52aa2b336e6cb309604b5e866d91faac2b14ef1", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,117
c
#include <stdio.h> #define INIREAD_IMPL #define INIREAD_ERRORS #include "iniread.h" char* getvalue(iniread_t ini, char* section, char* id) { /* get keys like this: */ iniread_key_t key = iniread_get_key(ini, section, id); /* check for errors like th...
23.51
39
(translation_unit) "#include <stdio.h>\n#define INIREAD_IMPL\n#define INIREAD_ERRORS\n#include "iniread.h"\n\nchar* getvalue(iniread_t ini, char* section, char* id)\n{\n /* get keys like this: */\n\n iniread_key_t key = iniread_get_key(ini, section,\n id);\n ...
216
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.51, "nodes": 112, "errors": 0, "source_hash": "8bbe13b022f290ef1517079aa0caabdcfc70556f616caf1a645e65e05712d2e3", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,118
c
#ifndef ATCP_ICMP_H #define ATCP_ICMP_H #include "common.h" #include "skbuff.h" #define ICMP_ECHO_REQUEST 8 #define ICMP_ECHO_REPLY 0 #define ICMP_ECHO_LEN 64 struct icmp_header { uint8_t type; uint8_t code; uint16_t checksum; union { struct { uint16_t id; ...
21.5
32
(translation_unit) "#ifndef ATCP_ICMP_H\n#define ATCP_ICMP_H\n\n#include "common.h"\n#include "skbuff.h"\n\n#define ICMP_ECHO_REQUEST 8\n#define ICMP_ECHO_REPLY 0\n\n\n#define ICMP_ECHO_LEN 64\n\nstruct icmp_header\n{\n uint8_t type;\n uint8_t code;\n uint16_t checksum;\n union\n {\n struct\n ...
188
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.5, "nodes": 138, "errors": 0, "source_hash": "012099b590ef64df7433b0297efcb9b1572484b6cb476ea6918901f80f1dee3a", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,119
c
// // SJViewController.h // SJM3u8MediaCache // // Created by erik on 09/04/2019. // Copyright (c) 2019 erik. All rights reserved. // @import UIKit; @interface SJViewController : UIViewController @end
19.5
10
(translation_unit) "//\n// SJViewController.h\n// SJM3u8MediaCache\n//\n// Created by erik on 09/04/2019.\n// Copyright (c) 2019 erik. All rights reserved.\n//\n\n@import UIKit;\n\n@interface SJViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// SJViewController.h" (comment) "// SJM3u8...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 10, "errors": 0, "source_hash": "6125d916bc486eabadd1bfe7652206a3b5f410165dbc8bf287ca72f14dca5f8c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
10,120
c
#include "packetutils.h" #include "config.h" int lcb_packet_read_ringbuffer(packet_info *info, ringbuffer_t *src) { if (src->nbytes < sizeof(info->res.bytes)) { /** Not enough information */ return 0; } if (ringbuffer_ensure_alignment(src)) { return -1; } /** We have at th...
28.29
55
(translation_unit) "#include "packetutils.h"\n#include "config.h"\n\nint lcb_packet_read_ringbuffer(packet_info *info, ringbuffer_t *src)\n{\n if (src->nbytes < sizeof(info->res.bytes)) {\n /** Not enough information */\n return 0;\n }\n\n if (ringbuffer_ensure_alignment(src)) {\n return -...
499
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.29, "nodes": 276, "errors": 0, "source_hash": "d73c886e4d8336148cc9d370cf709b0f603e8d19566e360e30b815d9d1b1c6eb", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,121
c
// // APIManager.h // DNSPod // // Created by skyfox on 2017/5/16. // Copyright © 2017年 Jakey. All rights reserved. // #import <Foundation/Foundation.h> #import "NSDictionary+JKSafeAccess.h" @interface APIManager : NSObject @property(nonatomic,strong) NSURLSession *session; + (instancetype)sharedManager; - (NSU...
33.76
17
(translation_unit) "//\n// APIManager.h\n// DNSPod\n//\n// Created by skyfox on 2017/5/16.\n// Copyright © 2017年 Jakey. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "NSDictionary+JKSafeAccess.h"\n\n@interface APIManager : NSObject\n@property(nonatomic,strong) NSURLSession *session;\n+ (in...
123
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.76, "nodes": 79, "errors": 0, "source_hash": "ea9c700903ba308c62f790ce79f05b0dfb78a039f66c14cb642d20ddd92b9d8d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,122
c
/* * FTGL - OpenGL font library * * Copyright (c) 2001-2004 <NAME> <<EMAIL>> * Copyright (c) 2008 <NAME> <<EMAIL>> * Copyright (c) 2008 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to ...
26.02
102
(translation_unit) "/*\n * FTGL - OpenGL font library\n *\n * Copyright (c) 2001-2004 <NAME> <<EMAIL>>\n * Copyright (c) 2008 <NAME> <<EMAIL>>\n * Copyright (c) 2008 <NAME> <<EMAIL>>\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation fi...
231
3
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 26.02, "nodes": 164, "errors": 0, "source_hash": "d07b25f40b1281ce1c96c39e600445aba2d2707ff0e439b92fa4fc36eaacff90", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,123
c
# include <stdlib.h> /* calloc */ # include <string.h> /* strncmp */ # include <math.h> /* sqrt */ #include "hstcal.h" # include "hstio.h" # include "wf3.h" # include "hstcalerr.h" /* SIZE_MISMATCH */ /* This routine takes an input data array, bins it in 1d, extracts a subset, and assigns the values to an ...
36.36
87
(translation_unit) "# include <stdlib.h> /* calloc */\n# include <string.h> /* strncmp */\n# include <math.h> /* sqrt */\n\n#include "hstcal.h"\n# include "hstio.h"\n\n# include "wf3.h"\n# include "hstcalerr.h" /* SIZE_MISMATCH */\n\n/* This routine takes an input data array, bins it in 1d, extracts a subset, \n a...
695
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 36.36, "nodes": 411, "errors": 0, "source_hash": "f60e4f1e817e88e64fb3e810a0d493783e828580bd5d2915dfd40343b3863713", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# in...
10,124
c
/****************************************** * Created by <NAME> * Date: 2017/10/5 * subtify functions: (in SPEs) * 1. double: sw_sub_d(double* src1,double *src2, double* dst, int count) * 2. float : sw_sub_f(float * src1,float *src2, float * dst, int count) * ***************************************/ #include "ca...
30.72
60
(translation_unit) "/******************************************\n * Created by <NAME>\n * Date: 2017/10/5\n * subtify functions: (in SPEs)\n * 1. double: sw_sub_d(double* src1,double *src2, double* dst, int count)\n * 2. float : sw_sub_f(float * src1,float *src2, float * dst, int count)\n * ***************************...
535
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 30.72, "nodes": 335, "errors": 0, "source_hash": "579146ba91f0e5c4772aa13e6f52120da5003e3128289970280f5166bd7f940a", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,125
c
// license:BSD-3-Clause // copyright-holders:<NAME> /***************************************************************************** * * dai_snd.h * ****************************************************************************/ #ifndef MAME_AUDIO_DAI_SND_H #define MAME_AUDIO_DAI_SND_H // ======================> dai...
35.97
35
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/*****************************************************************************\n *\n * dai_snd.h\n *\n ****************************************************************************/\n\n#ifndef MAME_AUDIO_DAI_SND_H\n#define MAME_AUDIO_DAI_SND_H\n\n...
218
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.97, "nodes": 129, "errors": 0, "source_hash": "420cb06004103d3c3da0ef5cdcf5ed3a305b35b9d291d7b390b0ad4a4e6863ac", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,126
c
/*********************************************************************** Vczh Library++ 3.0 Developer: <NAME>(vczh) GacUI::ToolstripTemplate This file is generated by: Vczh GacUI Resource Code Generator ***********************************************************************/ #ifndef VCZH_GACUI_RESOURCE_CODE_GENERATO...
37.7
23
(translation_unit) "**********************************************************************\nVczh Library++ 3.0\nDeveloper: <NAME>(vczh)\nGacUI::ToolstripTemplate\n\nThis file is generated by: Vczh GacUI Resource Code Generator\n***********************************************************************/\n\n#ifndef VCZH_GAC...
91
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.7, "nodes": 55, "errors": 0, "source_hash": "146b1094b02b1eb7a1d5baf26483b2afa2fa29482f05eee58a5139a498d9ac13", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef VCZ...
10,127
c
/** * @file p2d_demo.h * @brief 2D primitives demo * @author <NAME> <<EMAIL>> * @version N/A -- draft / experimental * @date (yyyy-mm-dd) 2014-03-08 * Licence: MIT */ #ifndef _p2d_demo_h_ #define _p2d_demo_h_ #include "gui_demo.h" /** * @function P2D_Demo * @brief 2D primitives demo * @param signal_t sig: ...
19
19
(translation_unit) "/**\n * @file p2d_demo.h\n * @brief 2D primitives demo\n * @author <NAME> <<EMAIL>>\n * @version N/A -- draft / experimental\n * @date (yyyy-mm-dd) 2014-03-08\n * Licence: MIT\n */\n\n#ifndef _p2d_demo_h_\n#define _p2d_demo_h_\n\n#include "gui_demo.h"\n\n/**\n * @function P2D_Demo\n * @brief 2D prim...
27
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.0, "nodes": 18, "errors": 0, "source_hash": "4f5613fbb46291e6c550ee0b26b3d89417f52b573ee90d7ee775cf5cbfbdea81", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,128
c
#ifndef CAMPVU_H #define cAMPVU_H #include "vu.h" //#include "unit.h" //#include "command.h" //#include "hq.h" #include "objective.h" #ifdef __cplusplus extern "C" { #endif #define U_AVAILABLE 0x1 /* typedef struct { CdbStaticHeader entity; UnitTransmitDataType transmitData; UnitClass *UnitDa...
21.53
47
(translation_unit) "#ifndef CAMPVU_H\n#define cAMPVU_H\n\n#include "vu.h"\n//#include "unit.h"\n//#include "command.h"\n//#include "hq.h"\n#include "objective.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define U_AVAILABLE 0x1\n\n /*\n typedef struct {\n CdbStaticHeader entity;\n UnitTransmitDataTyp...
66
1
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 21.53, "nodes": 44, "errors": 0, "source_hash": "6263c2a0d26e1e47296f994fce436be86da86dac100886c3d77e6e65e4e2fd0e", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CAMPVU_H...
10,129
c
/****************************************************************************** * @file nano1xx_isr.c * @brief This file contains interrupt service routines * @version 1.0.1 * @date 04, September, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. ******...
21.4
186
(translation_unit) "/****************************************************************************** \n * @file nano1xx_isr.c \n * @brief This file contains interrupt service routines \n * @version 1.0.1 \n * @date 04, September, 2012 \n * \n * @note \n * Copyright (C) 2012-2014 Nuvoton Technology Corp. All ...
967
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 21.4, "nodes": 556, "errors": 0, "source_hash": "39c587c2cb900233bc12668a9f776aac9550a8ca6ecaaa9cc6a24c99af818f40", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,130
c
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed...
36.4
30
(translation_unit) "// 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// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writin...
210
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 36.4, "nodes": 110, "errors": 0, "source_hash": "9ad52832e59817bd99ea1d7710c537852207298c59a073de2113311f0e71cbb7", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,131
c
// // NSString+Reverse.h // Marvin // // Created by <NAME> on 15/07/14. // // #import <Foundation/Foundation.h> @interface NSString (Reverse) - (NSString *)reverse; @end
14.73
11
(translation_unit) "//\n// NSString+Reverse.h\n// Marvin\n//\n// Created by <NAME> on 15/07/14.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (Reverse)\n\n- (NSString *)reverse;\n\n@end\n" (comment) "//" (comment) "// NSString+Reverse.h" (comment) "// Marvin" (comment) "//" (comment...
37
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.73, "nodes": 20, "errors": 0, "source_hash": "0ee241d146a5787a65d666439954a4c2014b29ae4e58bb0e4782a303da9e896a", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
10,132
c
#pragma once #include <stdint.h> #include <string> namespace App { class ByteBuffer { public: ByteBuffer(); ByteBuffer(const ByteBuffer &b); ByteBuffer(ByteBuffer &&b); ByteBuffer& operator= (const ByteBuffer &b); ~ByteBuffer(); unsigned int size() const; void* head() const; void expandMax(uint32_...
20.32
25
(translation_unit) "#pragma once\n#include <stdint.h>\n#include <string>\n\nnamespace App\n{\n class ByteBuffer\n {\n public:\n\n ByteBuffer();\n ByteBuffer(const ByteBuffer &b);\n ByteBuffer(ByteBuffer &&b);\n ByteBuffer& operator= (const ByteBuffer &b);\n ~ByteBuffer();\n\n unsigned int size() const;\n void* h...
188
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.32, "nodes": 116, "errors": 0, "source_hash": "2ed462a54bd9f8ddf66e14ad41e5f5cfc3a1ec2532f90b51f33549cd05352172", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,133
c
///////////////////////////////////////////////////////////////////////////// // Name: class_vfs.h // Purpose: Virtual File System classes group docs // Author: wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @defgroup ...
40.75
12
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Name: class_vfs.h\n// Purpose: Virtual File System classes group docs\n// Author: wxWidgets team\n// Licence: wxWindows licence\n/////////////////////////////////////////////////////////////////////...
8
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.75, "nodes": 0, "errors": 0, "source_hash": "87da47b6f86b28af132ee31b554f3958bc52b0e5f47608a44006efb6addfb532", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
10,134
c
/* * DS3RuntimeScripting * Contributers: Amir */ #pragma once #include "pch.h" namespace ds3runtime { class ScriptModule { public: ScriptModule(); /** * Execute this script's loop logic which is meant to be called per-game frame. */ virtual void execute() = 0; /** * Get's the name of this script. If yo...
32.2
90
(translation_unit) "/*\n * DS3RuntimeScripting\n * Contributers: Amir\n*/\n\n#pragma once\n#include "pch.h"\n\nnamespace ds3runtime {\n\nclass ScriptModule\n{\npublic:\n ScriptModule();\n\n /**\n * Execute this script's loop logic which is meant to be called per-game frame.\n */\n virtual void execute() = 0;\n\n /**\...
204
5
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 32.2, "nodes": 119, "errors": 0, "source_hash": "9941aa5c2c1f917f807843b55840b3f074028f42396b6bfcd4db9180127b53ee", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,135
c
/************************************************************************* > File Name: 12-pthread.c > Author: Mr.Miaow > Mail: <EMAIL> > Created Time: 2019年04月08日 星期一 12时50分48秒 ************************************************************************/ #include <stdio.h> #include <pthread.h> #include <unistd.h> ...
28.68
25
(translation_unit) "/*************************************************************************\n > File Name: 12-pthread.c\n > Author: Mr.Miaow\n > Mail: <EMAIL> \n > Created Time: 2019年04月08日 星期一 12时50分48秒\n ************************************************************************/\n\n#include <stdio.h>\n#include <pthr...
180
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.68, "nodes": 100, "errors": 0, "source_hash": "50eadea9b0e90db05081ae1e2cd722674acf49de908f66fee232089054c83b29", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\n#in...
10,136
c
#include <stdio.h> #include <generic/vqueue.h> struct order { char title[20]; char content[100]; }; gQueue queue_order; struct order wakeup = {"Wake up", "Get off the bed and brush you teeth"}; struct order breakfast = {"Breakfast", "Eat eggs and drink milk"}; struct order code = {"Coding", "Open your laptop...
28.18
33
(translation_unit) "#include <stdio.h>\n#include <generic/vqueue.h>\n\nstruct order {\n char title[20];\n char content[100];\n};\n\ngQueue queue_order;\n\nstruct order wakeup = {"Wake up", "Get off the bed and brush you teeth"};\nstruct order breakfast = {"Breakfast", "Eat eggs and drink milk"};\nstruct order cod...
350
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.18, "nodes": 194, "errors": 0, "source_hash": "c4a18736c07b3e565c218d5814cab6415de33a53084bda235d3f915a9e5843f9", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,137
c
#pragma once #include "HookIncludes.h" #include "Render.h" #include "Variables.h" struct Recording_t { QAngle m_ViewAngles; Vector m_RecordedWaypoints; float m_ForwardMove; float m_SideMove; float m_UpMove; int m_Buttons; bool m_bShouldJump = false; bool m_IsInitialized = false; }; int m_iRecordFrame = 0; int ...
28.15
142
(translation_unit) "#pragma once\n#include "HookIncludes.h"\n#include "Render.h"\n#include "Variables.h"\nstruct Recording_t\n{\n QAngle m_ViewAngles;\n Vector m_RecordedWaypoints;\n float m_ForwardMove;\n float m_SideMove;\n float m_UpMove;\n int m_Buttons;\n bool m_bShouldJump = false;\n bool m_IsInitialized = false;...
1,207
7
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 28.15, "nodes": 747, "errors": 0, "source_hash": "2a0b496b8fbdb2dd6b5a7935646c82134eeebaa14fc8c05cfc91b19e5e99120f", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,138
c
/*How would you test the word count program? What kinds of input are most likely to uncover bugs if there are any? */ #include <stdio.h> #define IN 1 #define OUT 0 main() { int c, nl, nw, nc, state; state = OUT; nl = 0; nw = 0; nc = 0; printf("WRITE 'ctrl z + enter' WHEN YOU FINISH YOUR...
22.76
33
(translation_unit) "/*How would you test the word count program? What kinds of input are most\nlikely to uncover bugs if there are any? */\n\n#include <stdio.h>\n#define IN 1 \n#define OUT 0 \n\nmain()\n{\n int c, nl, nw, nc, state;\n state = OUT;\n nl = 0;\n nw = 0;\n nc = 0;\n \n printf("WRITE 'c...
219
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.76, "nodes": 133, "errors": 0, "source_hash": "4c5a249f658c435a4bf27acf3ba2152e1b2c63ddd30ed09d101c3ef25fbc0ba1", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,139
c
#include <minix/drivers.h> #include <sys/video.h> #include <sys/mman.h> #include "math.h" #include <assert.h> #include "vt_info.h" #include "video_txt.h" /* Private global variables */ static char *video_mem; /* Address to which VRAM is mapped */ static unsigned scr_width; /* Width of screen in columns */ static...
20.89
149
(translation_unit) "#include <minix/drivers.h>\n#include <sys/video.h>\n#include <sys/mman.h>\n#include "math.h"\n\n#include <assert.h>\n\n#include "vt_info.h"\n\n#include "video_txt.h"\n\n/* Private global variables */\n\nstatic char *video_mem; /* Address to which VRAM is mapped */\n\nstatic unsigned scr_width; /* W...
1,115
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 20.89, "nodes": 739, "errors": 0, "source_hash": "e64cc007c980008ff826342c0282c973c4925ee070cb5ee73b710d8be937b50a", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,140
c
#ifndef LIBTENSOR_CTF_BTOD_CONTRACT2_H #define LIBTENSOR_CTF_BTOD_CONTRACT2_H #include <libtensor/core/contraction2.h> #include <libtensor/core/scalar_transf_double.h> #include <libtensor/gen_block_tensor/additive_gen_bto.h> #include <libtensor/gen_block_tensor/gen_bto_contract2_simple.h> #include "ctf_btod_traits.h" ...
34.53
111
(translation_unit) "#ifndef LIBTENSOR_CTF_BTOD_CONTRACT2_H\n#define LIBTENSOR_CTF_BTOD_CONTRACT2_H\n\n#include <libtensor/core/contraction2.h>\n#include <libtensor/core/scalar_transf_double.h>\n#include <libtensor/gen_block_tensor/additive_gen_bto.h>\n#include <libtensor/gen_block_tensor/gen_bto_contract2_simple.h>\n#i...
695
33
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 34.53, "nodes": 445, "errors": 0, "source_hash": "97965932dc2cb53fa677367f9cb86fc74862f9bb950f3e8850dbcf5f4693206d", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,141
c
// Copyright xg_55,All Rights Reserved.Support E-mail: <EMAIL> // For details, see LICENSE.txt #pragma once #include "WidgetTree.h" namespace UnrealEngine { class _UWidgetTree_Ext { /** Finds the widget in the tree by name. */ static UWidget* FindWidget(UWidgetTree* _This,MonoString* Name) { return _This-...
36.27
40
(translation_unit) "// Copyright xg_55,All Rights Reserved.Support E-mail: <EMAIL>\n// For details, see LICENSE.txt\n\n#pragma once\n\n#include "WidgetTree.h"\n\nnamespace UnrealEngine\n{\n class _UWidgetTree_Ext\n {\n /** Finds the widget in the tree by name. */\n static UWidget* FindWidget(UWidgetTree* _This,MonoSt...
322
2
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 36.27, "nodes": 180, "errors": 0, "source_hash": "c8486a77972a7931ce5e413a278a2f9472fce646089d41ea0cc26b4bb316e840", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,142
c
#pragma once #include "debug/debugger.h" #ifdef FLOWCHART_DEBUG #include <vector> #include <unordered_map> #include <set> #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> #include <unordered_set> typedef websocketpp::server<websocketpp::config::asio> WebsocketAsioServer; namespace a...
31.14
79
(translation_unit) "#pragma once\n#include "debug/debugger.h"\n\n#ifdef FLOWCHART_DEBUG\n#include <vector>\n#include <unordered_map>\n#include <set>\n\n#include <websocketpp/config/asio_no_tls.hpp>\n#include <websocketpp/server.hpp>\n#include <unordered_set>\n\n\n\ntypedef websocketpp::server<websocketpp::config::asio>...
717
46
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 31.14, "nodes": 440, "errors": 0, "source_hash": "61b711abec55df1a67dfb7bba9aef239618e1be07a30090c11fee40c216ea301", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,143
c
// // PWPlayerDelegate.h // PWVideoPlayer // // Created by apple on 2019/4/24. // Copyright © 2019 WeirdPan. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { //play begin PWPlayStatusBegin, //play end PWPlayStatusEnd, //play fail ...
19
28
(translation_unit) "//\n// PWPlayerDelegate.h\n// PWVideoPlayer\n//\n// Created by apple on 2019/4/24.\n// Copyright © 2019 WeirdPan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\ntypedef enum : NSUInteger {\n //play begin\n PWPlayStatusBegin,\n //play end\n P...
73
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.0, "nodes": 42, "errors": 0, "source_hash": "413884a04f9aaeaf09549ee227ccd58a6ddb008868ad03d743b1a2a170df37a7", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
10,144
c
#include "enumerator_geneticc.h" void enumerator_init(ARRAY_PTR array, size_t size, type_size_t elem_size, enumerator_t* out_enumerator) { out_enumerator->array = array; out_enumerator->size = size; out_enumerator->elem_size = elem_size; } #warning untested generic_union_t enumerator_get_next(enume...
26.8
54
(translation_unit) "#include "enumerator_geneticc.h" \n \n \n \nvoid enumerator_init(ARRAY_PTR array, size_t size, type_size_t elem_size, enumerator_t* out_enumerator) \n{ \n out_enumerator->array = array; \n out_enumerator->size = size; \n out_enumerator->elem_size = elem_size; \n} \n \n \n#warning untested \ngeneric_...
371
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 26.8, "nodes": 255, "errors": 0, "source_hash": "8fb7eab57f19ceaa49a86f6bac80958cbbeb6907d544c3c2a5daf605b7e58b41", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,145
c
#pragma once #include <vector> #include <assimp/scene.h> #include <list> #include <glm/glm.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/quaternion.hpp> #include "AssimpGLMHelpers.h" namespace TEngine { struct KeyPosition { glm::vec3 position; float timeStamp; }; struct KeyRotation { glm::quat orie...
24.71
52
(translation_unit) "#pragma once\n#include <vector>\n#include <assimp/scene.h>\n#include <list>\n#include <glm/glm.hpp>\n#define GLM_ENABLE_EXPERIMENTAL\n#include <glm/gtx/quaternion.hpp>\n#include "AssimpGLMHelpers.h"\nnamespace TEngine {\n struct KeyPosition\n {\n glm::vec3 position;\n float timeStamp;\n };\n\n str...
376
17
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.71, "nodes": 233, "errors": 0, "source_hash": "de6c33513f4e47ba030aeb8298aa24322623e8ad37cbf2e8151215b91a6907b7", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,146
c
#pragma once #include <c-fptr.h> #include "function_pointers-errors-private.h" #include <cstring> #include <fptr.hpp>
18.83
6
(translation_unit) "#pragma once\n#include <c-fptr.h>\n\n\n#include "function_pointers-errors-private.h"\n\n#include <cstring>\n#include <fptr.hpp>\n\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <c-fptr.h>\n" (#include) "#include" ...
19
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.83, "nodes": 15, "errors": 0, "source_hash": "8907941c22354a7a2bd38a786906fd594249e0cb277c3a72fb210459c7188277", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,147
c
/* ------------------------------------------------------------------------------- This file is part of OgreKit. http://gamekit.googlecode.com/ Copyright (c) 2006-2013 <NAME>. Contributor(s): <NAME>. ------------------------------------------------------------------------------- This software is pro...
34.55
55
(translation_unit) "/*\n-------------------------------------------------------------------------------\n This file is part of OgreKit.\n http://gamekit.googlecode.com/\n\n Copyright (c) 2006-2013 <NAME>.\n\n Contributor(s): <NAME>.\n--------------------------------------------------------------------------...
200
4
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 34.55, "nodes": 112, "errors": 0, "source_hash": "8c5859f7f19e88504deca8eb95a03541f947b29635e3e70d806648e8b44aeb0e", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,148
c
#ifndef NEO_WEAPON_AA13_H #define NEO_WEAPON_AA13_H #ifdef _WIN32 #pragma once #endif #include "weapon_neobasecombatweapon.h" #ifdef CLIENT_DLL #define CWeaponAA13 C_WeaponAA13 #endif class CWeaponAA13 : public CNEOBaseCombatWeapon { DECLARE_CLASS(CWeaponAA13, CNEOBaseCombatWeapon); public: DECLARE_NETWORKCLASS();...
35.25
40
(translation_unit) "#ifndef NEO_WEAPON_AA13_H\n#define NEO_WEAPON_AA13_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include "weapon_neobasecombatweapon.h"\n\n#ifdef CLIENT_DLL\n#define CWeaponAA13 C_WeaponAA13\n#endif\n\nclass CWeaponAA13 : public CNEOBaseCombatWeapon\n{\n DECLARE_CLASS(CWeaponAA13, CNEOBaseCombatWeapon)...
387
14
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 35.25, "nodes": 230, "errors": 0, "source_hash": "8152f36c363411d4a125dc5bfad1a1be1699db3a7697ff6297d65947150f98bf", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,149
c
// // Created by malachi on 10/28/17. // #ifndef MC_COAP_TEST_COAP_SUBSCRIPTION_H #define MC_COAP_TEST_COAP_SUBSCRIPTION_H // https://tools.ietf.org/html/rfc7641 namespace moducom { namespace coap { }} #endif //MC_COAP_TEST_COAP_SUBSCRIPTION_H
21.36
11
(translation_unit) "//\n// Created by malachi on 10/28/17.\n//\n\n#ifndef MC_COAP_TEST_COAP_SUBSCRIPTION_H\n#define MC_COAP_TEST_COAP_SUBSCRIPTION_H\n\n// https://tools.ietf.org/html/rfc7641\nnamespace moducom { namespace coap {\n\n\n}}\n\n\n#endif //MC_COAP_TEST_COAP_SUBSCRIPTION_H\n" (comment) "//" (comment) "// ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.36, "nodes": 13, "errors": 0, "source_hash": "38bd4d7da84c1131069bee799f9971085572524791b1dd3b33f95362b32c7220", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,150
c
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and // UT-Battelle, LLC. // Produced at the Lawrence Livermore National Laboratory and the Oak Ridge // National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Plea...
37.41
37
(translation_unit) "// Copyright (c) 2017, Lawrence Livermore National Security, LLC and\n// UT-Battelle, LLC.\n// Produced at the Lawrence Livermore National Laboratory and the Oak Ridge\n// National Laboratory.\n// LLNL-CODE-743438\n// All rights reserved.\n// This file is part of MGmol. For details, see https://gith...
263
15
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.41, "nodes": 163, "errors": 0, "source_hash": "aff49c7fb989e5faa5094bf9789f5075abc8ff41624f7ba1bd1506447ce7f152", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,151
c
/* // // Created by maxim on 2/4/20. // #ifdef __GNUC__ #pragma implementation "rand_helpers.h" #endif #include "rand_helpers.h" connection_genome_t* gn_rand_connection(genome_t* genome) { return &(genome->connections[rand() % genome->connections_count]); } void gn_set_seed(uint32_t seed) { srand(seed); } flo...
18.65
20
(translation_unit) "/*\n//\n// Created by maxim on 2/4/20.\n//\n\n#ifdef __GNUC__\n#pragma implementation "rand_helpers.h"\n#endif\n#include "rand_helpers.h"\n\nconnection_genome_t* gn_rand_connection(genome_t* genome)\n{\n return &(genome->connections[rand() % genome->connections_count]);\n}\n\nvoid gn_set_seed(uint...
2
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.65, "nodes": 0, "errors": 0, "source_hash": "e7720fb5dddea8326438fe5176c5db2a9c1b55f932cf5f34b8f14eeeb4871be9", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
10,152
c
extern unsigned char __text_end__; extern unsigned char __bss_start__; extern unsigned char __bss_end__; extern unsigned char __data_start__; extern void main(); void startup() { unsigned char length; unsigned int *s,*begin,*end; s = (unsigned int*)&__text_end__; begin = (unsigned int*)&__data_start__; end = (uns...
23.29
21
(translation_unit) "extern unsigned char __text_end__;\nextern unsigned char __bss_start__;\nextern unsigned char __bss_end__;\nextern unsigned char __data_start__;\nextern void main();\n\nvoid startup()\n{\n unsigned char length;\n unsigned int *s,*begin,*end;\n s = (unsigned int*)&__text_end__;\n begin = (unsigned in...
209
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.29, "nodes": 141, "errors": 0, "source_hash": "236bb43b8a6700c2909d9352fca89235f705c70e044d2a7daee78da2989fcf46", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern un...
10,153
c
#pragma once #include "AvailableSonars.h" #include <functional> class AvailabilityListener { public: typedef std::function<void(const std::string &)> OnError; typedef std::function<void(unsigned)> OnExpired; AvailabilityListener( boost::asio::io_service & io, AvailableSonars::AddCallback, Available...
33.94
33
(translation_unit) "#pragma once\n\n#include "AvailableSonars.h"\n#include <functional>\n\nclass AvailabilityListener {\npublic:\n typedef std::function<void(const std::string &)> OnError;\n typedef std::function<void(unsigned)> OnExpired;\n\n AvailabilityListener(\n boost::asio::io_service & io,\n AvailableSo...
356
24
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.94, "nodes": 195, "errors": 0, "source_hash": "c1d6e263900388f57413f4ba94e42f1b433ec7f277c11953ca5152e92aead73e", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,154
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_METRICS_STRUCTURED_EVENT_BASE_H_ #define COMPONENTS_METRICS_STRUCTURED_EVENT_BASE_H_ #include <string> #include <utility> #include <ve...
41.7
101
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_METRICS_STRUCTURED_EVENT_BASE_H_\n#define COMPONENTS_METRICS_STRUCTURED_EVENT_BASE_H_\n\n#include <string>\n#in...
512
26
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 41.7, "nodes": 276, "errors": 0, "source_hash": "467147a7254cc9573b1132f92422a3e7edc9476745c0ce6d66f46fee176d1a1a", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef COMPON...
10,155
c
#ifndef CONFIG_H #define CONFIG_H #include <stdint.h> namespace vconfig { extern const char * DEFAULT_FONT_PATH; extern const uint16_t INITIAL_WINDOW_HEIGHT; extern const uint16_t INITIAL_WINDOW_WIDTH; extern const bool ENABLE_DEBUG_LAYERS; extern const uint32_t PIPELINE_MEMORY_SIZE; } #endif ...
26.25
12
(translation_unit) "#ifndef CONFIG_H\n#define CONFIG_H\n\n#include <stdint.h>\n\nnamespace vconfig {\n\n extern const char * DEFAULT_FONT_PATH;\n extern const uint16_t INITIAL_WINDOW_HEIGHT;\n extern const uint16_t INITIAL_WINDOW_WIDTH;\n extern const bool ENABLE_DEBUG_LAYERS;\n extern const uint32_t PIP...
60
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.25, "nodes": 40, "errors": 0, "source_hash": "20aa59ff2e98aa7c56271f52733a8ead1beb5c44bafa641716471724fd636557", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,156
c
/*********************** w_source_info.c *************************/ /* MIMD version 7 */ /* For clover_invert2 */ /* Create the file XML for an extended clover source file */ #include "cl_inv_includes.h" #include <string.h> #define INFOSTRING_MAX 2048 char *create_ws_XML(char *filename, quark_source *wqs){ siz...
32.06
33
(translation_unit) "/*********************** w_source_info.c *************************/\n/* MIMD version 7 */\n\n/* For clover_invert2 */\n\n/* Create the file XML for an extended clover source file */\n\n#include "cl_inv_includes.h"\n#include <string.h>\n\n#define INFOSTRING_MAX 2048\n\n\nchar *create_ws_XML(char *fil...
252
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.06, "nodes": 148, "errors": 0, "source_hash": "5012efcd1af953d5830c11cd6bc3ecda73022629de9b16c94c0de3973f3719a8", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,157
c
/* { dg-do compile } */ /* { dg-options "-O2 -mmmx" } */ #include <mmintrin.h> extern __m64 SetS16 (unsigned short, unsigned short, unsigned short, unsigned short); void foo(__m64* dest) { __m64 mask = SetS16 (0x00FF, 0xFF00, 0x0000, 0x00FF); mask = _mm_slli_si64(mask, 8); mask = _mm_slli_si64(mask, 8)...
26.08
13
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O2 -mmmx" } */\n\n#include <mmintrin.h>\n\nextern __m64 SetS16 (unsigned short, unsigned short,\n unsigned short, unsigned short);\n\nvoid foo(__m64* dest)\n{\n __m64 mask = SetS16 (0x00FF, 0xFF00, 0x0000, 0x00FF);\n\n mask = _mm_slli_si64(mask, 8);...
109
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.08, "nodes": 73, "errors": 0, "source_hash": "e705a243c5da624fb118adca794d76a29f26b69a089c8a2d2d7c9cd183f3bb70", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,158
c
#include<stdio.h> int main() { int X[10],i=0,x; while(i<10) { scanf("%d",&x); if(x<=0) { X[i]=1; printf("X[%d] = 1\n",i); } else { X[i]=x; printf("X[%d] = %d\n",i,x); } i++; } return 0; }
9.5
22
(translation_unit) "#include<stdio.h>\nint main()\n{\n int X[10],i=0,x;\n while(i<10)\n {\n scanf("%d",&x);\n if(x<=0)\n {\n X[i]=1;\n printf("X[%d] = 1\n",i);\n } \n else\n {\n X[i]=x;\n printf("X[%d] = %d\n",i,x);\n }\n \n i++;\n }\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" ...
132
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 9.5, "nodes": 67, "errors": 0, "source_hash": "7afc17649999fa7bc118cde70848c95daa41a00fa515ebaa1f62277fddd6da7b", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
10,159
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSButton.h" @class NSCursor, NSTrackingArea; @interface IDEBotEditorDownloadButton : NSButton { NSTrackingArea *_tracker; NSCursor *_previousCursor; } @property(ret...
29.72
18
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSButton.h"\n\n@class NSCursor, NSTrackingArea;\n\n@interface IDEBotEditorDownloadButton : NSButton\n{\n NSTrackingArea *_tracker;\n NSCursor *...
106
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.72, "nodes": 68, "errors": 0, "source_hash": "d8510d51febdeffdea4c27b8ba468a0a05f92ad68df11c6189a98d0fd01b4a12", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,160
c
// // DataSourceViewController.h // GQDataControllerDemo // // Created by 钱国强 on 15/12/6. // Copyright © 2015年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface DataSourceViewController : UIViewController @end
22.1
10
(translation_unit) "//\n// DataSourceViewController.h\n// GQDataControllerDemo\n//\n// Created by 钱国强 on 15/12/6.\n// Copyright © 2015年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DataSourceViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DataSourceViewCon...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.1, "nodes": 10, "errors": 0, "source_hash": "a71757ae5c462624d916e5c56cb3f12b8d62b3707d5075b32ed584d21dbac5db", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit...
10,161
c
#include <stdio.h> #include <math.h> int main() { long long int a,num,b,t,i,mod,sum,l; scanf("%lld", &t); for(i=1; i<=t; i++) { scanf("%lld", &num); b = num; sum = 0; l = 0; while(num!=1 && l<256) { sum = 0; while(n...
20.66
32
(translation_unit) "#include <stdio.h> \n#include <math.h> \n \nint main() \n{ \n long long int a,num,b,t,i,mod,sum,l; \n scanf("%lld", &t); \n for(i=1; i<=t; i++) \n { \n scanf("%lld", &num); \n b = num; \n sum = 0; \n l = 0; \n while(num!=1 && l<256) \n { \n ...
224
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.66, "nodes": 130, "errors": 0, "source_hash": "df19048a7b1ccaf853e2d0fab615cb20c52298c29f7e3be74c7b39bbbe977ab9", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,162
c
#include <errno.h> #include "mc.h" #ifdef MODULE_CURR #undef MODULE_CURR #define MODULE_CURR MODULE_ERR #endif int call_stack_push(unsigned int errCodeNo){ int ret = 0; MC_INIT(); if(mc->callStack.index >= mc->callStack.depth){ R(REALLOC_TN(&(mc->callStack.data),error_code_t,&(mc->callStack.depth))...
32.48
40
(translation_unit) "#include <errno.h>\n#include "mc.h"\n\n#ifdef MODULE_CURR\n#undef MODULE_CURR\n#define MODULE_CURR MODULE_ERR\n#endif\n\nint call_stack_push(unsigned int errCodeNo){\n int ret = 0;\n MC_INIT();\n if(mc->callStack.index >= mc->callStack.depth){\n R(REALLOC_TN(&(mc->callStack.data),erro...
485
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.48, "nodes": 301, "errors": 0, "source_hash": "ee0bb9696752c06100f72850a5a83f8a9e4412b07399a15ed530d191047aa361", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,163
c
#ifndef SEQLIB_BAM_POLYREADER_H #define SEQLIB_BAM_POLYREADER_H #include <cassert> #include "SeqLib/ReadFilter.h" #include "SeqLib/BamWalker.h" #include "SeqLib/ThreadPool.h" // forward declare this from hts.c extern "C" { int hts_useek(htsFile *file, long uoffset, int where); } class BamReader; namespace SeqLib { ...
37.71
235
(translation_unit) "#ifndef SEQLIB_BAM_POLYREADER_H\n#define SEQLIB_BAM_POLYREADER_H\n\n#include <cassert>\n#include "SeqLib/ReadFilter.h"\n#include "SeqLib/BamWalker.h"\n#include "SeqLib/ThreadPool.h"\n\n// forward declare this from hts.c\nextern "C" {\nint hts_useek(htsFile *file, long uoffset, int where);\n}\n\nclas...
1,097
37
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 37.71, "nodes": 599, "errors": 0, "source_hash": "79034724da8d6ad1466d0702b764068b0d5d5373d7d12c18adec388fc890af24", "categorized_nodes": 421}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,164
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/eric/repos/360-j2objc/gson/build/mainTranslationExtraction/com/google/gson/JsonParser.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_JsonParser") #ifdef RESTRICT_JsonParser #define INCLUDE_ALL_JsonParser 0 #else #define IN...
43.23
31
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: /Users/eric/repos/360-j2objc/gson/build/mainTranslationExtraction/com/google/gson/JsonParser.java\n//\n\n#include "J2ObjC_header.h"\n\n#pragma push_macro("INCLUDE_ALL_JsonParser")\n#ifdef RESTRICT_JsonParser\n#define INCLUDE_ALL_...
217
17
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 43.23, "nodes": 150, "errors": 0, "source_hash": "6654f04f3f5cf8e24911cf39b0486c9d03a8124f9f207951d1b87bc16cf0b28d", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,165
c
#include <stdlib.h> #include <stdio.h> #include <stdint.h> void usbhost_events(void) { }
13.83
6
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdint.h>\n\nvoid usbhost_events(void)\n{\n\n}\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string)...
22
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 13.83, "nodes": 16, "errors": 0, "source_hash": "909cb3a9a97a2f99a2142b4c8958d74aa11d7adace8559e3939c05314e770894", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,166
c
#import <UIKit/UIKit.h> @interface ViewControllerTwo : UIViewController @property (weak, nonatomic) IBOutlet UICollectionView *collectionView; @end
36
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface ViewControllerTwo : UIViewController\n@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;\n\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface ViewC...
31
7
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 36.0, "nodes": 24, "errors": 0, "source_hash": "a68400cdede225f7cd4fb9d17ec9cb912af82cee2584d9279c15aca1cfc39d4a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
10,167
c
/* * This file is part of AtomVM. * * Copyright 2019 <NAME> <<EMAIL>> * * 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 r...
31.04
138
(translation_unit) "/*\n * This file is part of AtomVM.\n *\n * Copyright 2019 <NAME> <<EMAIL>>\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/licens...
1,001
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 31.04, "nodes": 586, "errors": 0, "source_hash": "325445a3ec2324f6755dd5c02342e4fe052ac41ed0441b6d3c5fad0e3a6b889b", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,168
c
#ifndef ZZ_GLOBALS_H_ #define ZZ_GLOBALS_H_ #include "vm_core/macros.h" #include "vm_core/platform/globals.h" // Types for native machine words. Guaranteed to be able to hold pointers and // integers. typedef intptr_t word; typedef uintptr_t uword; #endif
27.44
9
(translation_unit) "#ifndef ZZ_GLOBALS_H_\n#define ZZ_GLOBALS_H_\n\n#include "vm_core/macros.h"\n#include "vm_core/platform/globals.h"\n\n// Types for native machine words. Guaranteed to be able to hold pointers and\n// integers.\ntypedef intptr_t word;\ntypedef uintptr_t uword;\n\n#endif" (preproc_ifdef) "#ifndef ZZ...
32
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.44, "nodes": 21, "errors": 0, "source_hash": "a7af4be6125b36f22b9675f74c2f800535e2b700ffee990d151e346bde2269f5", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Z...
10,169
c
// // CSProgressWatcher.h // CSProgressWatcher // // Created by <NAME> on 2/12/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CSProgressWatcher. FOUNDATION_EXPORT double CSProgressWatcherVersionNumber; //! Project version string for CSProgressWatche...
40.15
13
(translation_unit) "//\n// CSProgressWatcher.h\n// CSProgressWatcher\n//\n// Created by <NAME> on 2/12/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for CSProgressWatcher.\nFOUNDATION_EXPORT double CSProgressWatcherVersionNumber;\n\n//! Project ve...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.15, "nodes": 15, "errors": 0, "source_hash": "6b221390fd1e653d75d9427f1441c4b796d10739f9a1a19428911a011ec81842", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,170
c
/* FileName [MJgame.h] Author [<NAME>] Synopsis [define a game] */ #ifndef MJGAME #define MJGAME #include <iostream> #include <vector> #include <limits> #include "MJplayer.h" #include "MJAIplayer.h" #include "MJstage.h" #include "Debug.h" using namespace std; int MAX = numeric_limits<in...
29.44
258
(translation_unit) "/* \n FileName [MJgame.h] \n Author [<NAME>] \n Synopsis [define a game] \n*/ \n#ifndef MJGAME \n#define MJGAME \n \n#include <iostream> \n#include <vector> \n#include <limits> \n#include "MJplayer.h" \n#include "MJAIplayer.h" \n#include "MJstage.h" \n#include "Debug.h" \nusing namespace ...
2,121
13
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 29.44, "nodes": 1138, "errors": 0, "source_hash": "89d94451a753288d21880339825dd8dc5f214184617b028536ebf50ab8c53509", "categorized_nodes": 807}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
10,171
c
#ifdef __cplusplus extern "C" { #endif #include "f2c.h" int slarfx_(char *side, integer *m, integer *n, real *v, real *tau, real *c__, integer *ldc, real *work); #ifdef __cplusplus } #endif
23.25
8
(translation_unit) "#ifdef __cplusplus\nextern "C" { \n#endif \n\n#include "f2c.h" \n\nint slarfx_(char *side, integer *m, integer *n, real *v, real *tau, real *c__, integer *ldc, real *work);\n\n#ifdef __cplusplus\n}\n#endif" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" { \n#endif \n\n#include "f2c.h" \n\nint s...
76
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 23.25, "nodes": 59, "errors": 0, "source_hash": "3464d844e76e263b84895bcc52e15abe9fcfc74409d4647dd88b693913768ec7", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
10,172
c
#define u_int unsigned int #define int32_t long #define u_int32_t unsigned long #define HAVE_POSIX_SIGNALS #define RETSIGTYPE void #define HAVE_IV 1 #define USEBBS 1 #define yyoverflow printf
23
8
(translation_unit) "#define u_int unsigned int\n#define int32_t long\n#define u_int32_t unsigned long\n#define HAVE_POSIX_SIGNALS\n#define RETSIGTYPE void\n#define HAVE_IV 1\n#define USEBBS 1\n#define yyoverflow printf\n" (preproc_def) "#define u_int unsigned int\n" (#define) "#define" (identifier) "u_int" ...
32
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 23.0, "nodes": 31, "errors": 0, "source_hash": "dfe96aacc921df54aa6e7ea4a40fd93a68a5f1791b7ec4c69d0afab38e582a27", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define u_int...
10,173
c
/* Author : <NAME> mail : <EMAIL> */ #include <stdio.h> #include <math.h> int main(int argc, char const *argv[]) { int n, temp, rem, res, fact, strc = 0; printf("Enter n : "); scanf("%d", &n); for (int i = 1; i <= n; i++) { temp = i; res = 0; while (temp != 0) ...
18.74
35
(translation_unit) "/*\n Author : <NAME>\n\n mail : <EMAIL>\n*/\n\n#include <stdio.h>\n#include <math.h>\n\nint main(int argc, char const *argv[])\n{\n int n, temp, rem, res, fact, strc = 0;\n\n printf("Enter n : ");\n scanf("%d", &n);\n\n for (int i = 1; i <= n; i++)\n {\n temp = i;\n ...
224
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.74, "nodes": 128, "errors": 0, "source_hash": "80fd7e5d988c03617c2aac916ed226858607afefa312ef7c3e543d1669834c33", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,174
c
#ifndef CALC_H #define CALC_H #include "conf.h" #include <bits/types.h> #define YUAN 1000 typedef struct { #ifdef COLORFUL_OUTPUT int color; #endif /* COLORFUL_OUTPUT */ char str[CLOCK_INFO_WIDTH]; } calc_t; const calc_t *calc_flow(calc_t *calc, u_int64_t flow); const calc_t *calc_speed(calc_t *calc, u_int6...
27
16
(translation_unit) "#ifndef CALC_H\n#define CALC_H\n\n#include "conf.h"\n#include <bits/types.h>\n\n#define YUAN 1000\n\ntypedef struct {\n#ifdef COLORFUL_OUTPUT\n int color;\n#endif /* COLORFUL_OUTPUT */\n char str[CLOCK_INFO_WIDTH];\n} calc_t;\n\nconst calc_t *calc_flow(calc_t *calc, u_int64_t flow);\nconst cal...
133
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.0, "nodes": 95, "errors": 0, "source_hash": "96ac7371d1945e8783bc2186b0f57ca6e98129dbfc3852ad1561b14f3f5c9f43", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
10,175
c
/* * Diffie-Hellman groups * Copyright (c) 2007, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef DH_GROUPS_H #define DH_GROUPS_H struct dh_group { int id; const u8 *generator; size_t generator_len; const u8 *p...
23.59
29
(translation_unit) "/* \n * Diffie-Hellman groups \n * Copyright (c) 2007, <NAME> <<EMAIL>> \n * \n * This software may be distributed under the terms of the BSD license. \n * See README for more details. \n */ \n \n#ifndef DH_GROUPS_H \n#define DH_GROUPS_H \n \nstruct dh_group { \n int id; \n const u8 *generator; \n s...
155
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.59, "nodes": 111, "errors": 0, "source_hash": "d79111cca96fdf64a5272885455e717c21d656c90149e0abb69c9297bf9436c8", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,176
c
/* $Id: context.c 80826 2008-03-04 14:51:23Z wotte $ */ /* FUZZ: disable check_for_improper_main_declaration */ #include <stdio.h> // @(#)context.c 1.1 10/18/96 #include <stdlib.h> #include <thread.h> #define NSLEEP 100 #define TMAX 2 int count[TMAX]; void * work (void *n) { int ni = (int) n; ...
26.55
76
(translation_unit) "/* $Id: context.c 80826 2008-03-04 14:51:23Z wotte $ */ \n \n/* FUZZ: disable check_for_improper_main_declaration */ \n \n#include <stdio.h> \n// @(#)context.c 1.1 10/18/96 \n \n#include <stdlib.h> \n#include <thread.h> \n \n#define NSLEEP 100 \n#define TMAX 2 \nint count[TMAX]; \n \nvoid * \nwork (...
627
8
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 26.55, "nodes": 351, "errors": 0, "source_hash": "3818a83731cf700fa359a450958bad786b3ef6ec8bc469e76c19abec3ce744f8", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,177
c
// // EPTableViewRefreshControlDelegate.h // AgileToolbox // // Created by <NAME> on 17/02/14. // // #import <Foundation/Foundation.h> @class EPTableViewRefreshControl; @protocol EPTableViewRefreshControlDelegate <NSObject> - (void)refresh:(UIRefreshControl*)refreshControl; @end
22.58
12
(translation_unit) "//\n// EPTableViewRefreshControlDelegate.h\n// AgileToolbox\n//\n// Created by <NAME> on 17/02/14.\n//\n//\n\n#import <Foundation/Foundation.h>\n@class EPTableViewRefreshControl;\n\n@protocol EPTableViewRefreshControlDelegate <NSObject>\n\n- (void)refresh:(UIRefreshControl*)refreshControl;\n\n@en...
47
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.58, "nodes": 26, "errors": 0, "source_hash": "375eb0081885269a30a8bfc532777f1ded091eb8419e488e52728be095d21bef", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,178
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "_TtC13callservicesd17UnknownCallFilter.h" @class MISSING_TYPE; @interface CSDContactsCallFilter : _TtC13callservicesd17UnknownCallFilter { ...
38.25
16
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "_TtC13callservicesd17UnknownCallFilter.h"\n\n@class MISSING_TYPE;\n\n@interface CSDContactsCallFilter : _TtC13callserv...
109
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 38.25, "nodes": 59, "errors": 0, "source_hash": "afd53971425d85c73ad037236c07b2c47d41bef471773d1dc79bd2a11b9243f3", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,179
c
#ifndef VELOPARSER_H #define VELOPARSER_H #include "LiDARData.h" #include <deque> #include <string> class VeloParser { public: VeloParser(); void initConfig(ProductID unit); void initConfig(ProductID unit, float x, float y, float z, float roll, float pitch, float yaw); void setParsingParameter(std::string filePa...
28.81
21
(translation_unit) "#ifndef VELOPARSER_H\n#define VELOPARSER_H\n\n#include "LiDARData.h"\n\n#include <deque>\n#include <string>\n\nclass VeloParser\n{\npublic:\n VeloParser();\n void initConfig(ProductID unit);\n void initConfig(ProductID unit, float x, float y, float z, float roll, float pitch, float yaw);\n void setP...
188
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.81, "nodes": 128, "errors": 0, "source_hash": "cd3a34bead035ebfc17016a92937888d7dd143449a788eb6ab3699f39945d286", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,180
c
#ifndef _openvr_test_out_h_ #define _openvr_test_out_h_ #include <fstream> #include <functional> std::ostream &getOut(); void TRACE(const char *module, const std::function<void()> &fn); #endif
26.57
7
(translation_unit) "#ifndef _openvr_test_out_h_\n#define _openvr_test_out_h_\n\n#include <fstream>\n#include <functional>\n\nstd::ostream &getOut();\nvoid TRACE(const char *module, const std::function<void()> &fn);\n\n#endif" (preproc_ifdef) "#ifndef _openvr_test_out_h_\n#define _openvr_test_out_h_\n\n#include <fstre...
63
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.57, "nodes": 38, "errors": 0, "source_hash": "a1cf56435adefc6e78c15147ab2a6218d352ce0a9e39b34110af00823824811a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,181
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_SERVICE_MANAGER_SERVICE_OVERRIDES_H_ #define SERVICES_SERVICE_MANAGER_SERVICE_OVERRIDES_H_ #include <map> #include <memory> #include <st...
33.48
31
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SERVICES_SERVICE_MANAGER_SERVICE_OVERRIDES_H_\n#define SERVICES_SERVICE_MANAGER_SERVICE_OVERRIDES_H_\n\n#include <map>\n#i...
221
11
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.48, "nodes": 126, "errors": 0, "source_hash": "02021974b28f4c5c353752775060b0b92049c5e3f3be525b7300e3211eb1c05c", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,182
c
#pragma once #include <js_objects/object_base.h> #include <optional> class JSObject; struct JSContext; struct JSClass; namespace mozjs { class JsFbPlayingItemLocation : public JsObjectBase<JsFbPlayingItemLocation> { public: static constexpr bool HasProto = true; static constexpr bool HasGlobalProto = f...
33.76
37
(translation_unit) "#pragma once\n\n#include <js_objects/object_base.h>\n\n#include <optional>\n\nclass JSObject;\nstruct JSContext;\nstruct JSClass;\n\nnamespace mozjs\n{\n\nclass JsFbPlayingItemLocation\n : public JsObjectBase<JsFbPlayingItemLocation>\n{\npublic:\n static constexpr bool HasProto = true;\n st...
282
6
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.76, "nodes": 182, "errors": 0, "source_hash": "53ff30c20a7a01b397bed2b44c9c363edb7aca36b96c727889869af3e3bd7881", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,183
c
/* $NetBSD: asm.h,v 1.1 2001/05/28 16:22:17 thorpej Exp $ */ #include <mips/asm.h>
40.5
2
(translation_unit) "/* $NetBSD: asm.h,v 1.1 2001/05/28 16:22:17 thorpej Exp $ */\n\n#include <mips/asm.h>\n" (comment) "/* $NetBSD: asm.h,v 1.1 2001/05/28 16:22:17 thorpej Exp $ */" (preproc_include) "#include <mips/asm.h>\n" (#include) "#include" (system_lib_string) "<mips/asm.h>"
5
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 40.5, "nodes": 3, "errors": 0, "source_hash": "2ae73fb3fec4340dd70cfc70a30f9b7df5a7161050cbf9428c5145dd8628af7d", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
10,184
c
#ifndef dplyr_Gatherer_H #define dplyr_Gatherer_H #include <tools/all_na.h> #include <tools/hash.h> #include <tools/utils.h> #include <dplyr/check_supported_type.h> #include <dplyr/Result/GroupedCallProxy.h> #include <dplyr/vector_class.h> namespace dplyr { class Gatherer { public: virtual ~Gatherer() {} ...
30.46
305
(translation_unit) "#ifndef dplyr_Gatherer_H\n#define dplyr_Gatherer_H\n\n#include <tools/all_na.h>\n#include <tools/hash.h>\n#include <tools/utils.h>\n\n#include <dplyr/check_supported_type.h>\n\n#include <dplyr/Result/GroupedCallProxy.h>\n\n#include <dplyr/vector_class.h>\n\nnamespace dplyr {\n\n class Gatherer {\n ...
3,324
88
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 30.46, "nodes": 1978, "errors": 0, "source_hash": "c5901e63c637005d00cd94c7730063a8a2ca919d165fb1cda003385fdff0a871", "categorized_nodes": 1479}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
10,185
c
/* * Copyright (C) 2000-2006 <NAME> <<EMAIL>> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include <setjmp.h> /* Test if longjmp to JMPBUF would unwind the frame containing a local variable at ADDRESS. */ #define _JMPBUF_UNWINDS(jmpbuf, address) \ ((void *) (address) < (vo...
36.78
9
(translation_unit) "/*\n * Copyright (C) 2000-2006 <NAME> <<EMAIL>>\n *\n * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.\n */\n\n#include <setjmp.h>\n\n/* Test if longjmp to JMPBUF would unwind the frame\n containing a local variable at ADDRESS. */\n#define _JMPBUF_UNWINDS(jmpbuf, address)...
16
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.78, "nodes": 10, "errors": 0, "source_hash": "373831677f087d5b617209fb038e3e5e91d47956211d82dd11c988ce68be3505", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
10,186
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
29.89
47
(translation_unit) "/*===================================================================\n\nThe Medical Imaging Interaction Toolkit (MITK)\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without...
171
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.89, "nodes": 100, "errors": 0, "source_hash": "509160defc62b18911e98523ff53578b03361901b6eace1ffbdd57e26f5b4fb8", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,187
c
#ifndef ANALYZER_H #define ANALYZER_H #include <vector> #include <string> #include<TFile.h> #include<TDirectory.h> #include <ROOT/RDataFrame.hxx> using RNode = ROOT::RDF::RNode; using namespace std; using RDF = ROOT::RDataFrame; typedef std::vector<ROOT::RDF::RResultPtr<TH1D>> HVec1D; class Analyzer{ public: ...
29.82
34
(translation_unit) "#ifndef ANALYZER_H\n#define ANALYZER_H\n\n#include <vector>\n#include <string>\n\n#include<TFile.h>\n#include<TDirectory.h>\n#include <ROOT/RDataFrame.hxx>\n\nusing RNode = ROOT::RDF::RNode;\nusing namespace std;\nusing RDF = ROOT::RDataFrame;\n\ntypedef std::vector<ROOT::RDF::RResultPtr<TH1D>> HVec...
253
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.82, "nodes": 180, "errors": 0, "source_hash": "34e3a57e093564235b0088e1470708024a36859c425db241d5de5997e0f2ad04", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,188
c
// ************************************************************************ // Copyright (c) 2007 Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the PSUADE team. // All rights reserved. // // Please see the COPYRIGHT_and_LICENSE file for the copyrig...
39.13
134
(translation_unit) "// ************************************************************************\n// Copyright (c) 2007 Lawrence Livermore National Security, LLC.\n// Produced at the Lawrence Livermore National Laboratory.\n// Written by the PSUADE team.\n// All rights reserved.\n//\n// Please see the COPYRIGHT_and_LI...
651
2
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 39.13, "nodes": 416, "errors": 0, "source_hash": "b804a6bfcf4877bc16033e62b19fbb09c310f7f76b3f38d461445f0d29ab6551", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,189
c
/* Hackvision Controller library Copyright (C) 2010 nootropic design, LLC All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License,...
27.71
35
(translation_unit) "/*\n Hackvision Controller library\n Copyright (C) 2010 nootropic design, LLC\n All rights reserved.\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n ...
158
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.71, "nodes": 106, "errors": 0, "source_hash": "426bbbd498d74b73cddaf0f837f72f421869a10c3fb7714c73ab08cf67b959a3", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,190
c
#include "aliascheck.h" int *x, y, z; void f() { if(z > 5) return; z++; if (1) { x = &y; MUSTALIAS(x,&y); f(); x = &z; MUSTALIAS(x,&z); NOALIAS(x,&y); f(); } } int main() { f(); return 0; }
11.14
21
(translation_unit) "#include "aliascheck.h"\nint *x, y, z;\n\nvoid f() {\n if(z > 5) return;\n z++;\n if (1) {\n x = &y;\n MUSTALIAS(x,&y);\n f();\n x = &z;\n MUSTALIAS(x,&z);\n NOALIAS(x,&y);\n f();\n }\n}\n\n\nint main()\n{\n f();\n return 0;\n}\n" (preproc_include...
140
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 11.14, "nodes": 72, "errors": 0, "source_hash": "885443403384dd9aa143dc256d99adb3faa5478b01a0edef6fe196f87618dbe6", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,191
c
#ifndef MAILBOX_H #define MAILBOX_H #include <windows.h> enum RpiProcessor { CPU_UNKNOWN = 0, CPU_BCM2835 = 1, CPU_BCM2836 = 2, CPU_BCM2837 = 3, CPU_BCM2711 = 4 }; enum RpiModel { MODEL_UNKNOWN = 0, MODEL_A = 1, MODEL_B = 2, MODEL_A_PLUS = 3, MODEL_B_PLUS = 4, MODEL_2B = 5, MODEL...
23.96
46
(translation_unit) "#ifndef MAILBOX_H\n#define MAILBOX_H\n\n#include <windows.h>\n\nenum RpiProcessor {\n CPU_UNKNOWN = 0,\n CPU_BCM2835 = 1,\n CPU_BCM2836 = 2,\n CPU_BCM2837 = 3,\n CPU_BCM2711 = 4\n};\n\nenum RpiModel {\n MODEL_UNKNOWN = 0,\n MODEL_A = 1,\n MODEL_B = 2,\n MODEL_A_PLUS = 3,\n MODEL_B_P...
298
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.96, "nodes": 218, "errors": 0, "source_hash": "068d21afcd1c6507b88044b4010353fae2161d82412cdb600f61aa89b621703a", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,192
c
// $Id$ #include "ioUtils.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include "ddcMalloc.h" #include "utilities.h" static int needsSwap=0; int filetest(const char* filename, int type) { str...
22.78
287
(translation_unit) "// $Id$\n\n#include "ioUtils.h"\n\n#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <errno.h>\n\n#include "ddcMalloc.h"\n#include "utilities.h"\n\nstatic int needsSwap=0;\n\nint filetest(co...
2,612
0
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 22.78, "nodes": 1627, "errors": 0, "source_hash": "9574f7a5c2aede55196d850a8cd14ea380ddb65b49272881cce28c0ac141bf4b", "categorized_nodes": 1101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
10,193
c
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_ACCESSCONTROL_OBJECTAUDITRULE_H #define __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_ACCESSCONTROL_OBJECTAUDITRULE_H #include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_AuditRule.h> #include <mscorlib/System/Security/AccessControl/mscorlib_Sy...
37.59
102
(translation_unit) "#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_ACCESSCONTROL_OBJECTAUDITRULE_H\n#define __MONO_NATIVE_MSCORLIB_SYSTEM_SECURITY_ACCESSCONTROL_OBJECTAUDITRULE_H\n\n#include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_AuditRule.h>\n#include <mscorlib/System/Security/A...
833
70
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 37.59, "nodes": 412, "errors": 0, "source_hash": "b9849340903180413b55c88582669cc04f0181b63122303a170a1bcf2b2861f0", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,194
c
#ifndef REWARDS_H #define REWARDS_H #include <iostream> void set_target_reward(float R[7][5],float ephi) { unsigned int i,j; if (-1.5708<=ephi && ephi<0.64350) { i=4; j=4; } else if (0.64350<=ephi && ephi<0.89606) { i=4; j=3; } else if (0.89606<=ephi &&...
14.93
83
(translation_unit) "#ifndef REWARDS_H\n#define REWARDS_H\n\n#include <iostream>\n\nvoid set_target_reward(float R[7][5],float ephi)\n{\n unsigned int i,j;\n\n if (-1.5708<=ephi && ephi<0.64350)\n {\n i=4;\n j=4;\n }\n else if (0.64350<=ephi && ephi<0.89606)\n {\n i=4;\n j=3...
505
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 14.93, "nodes": 327, "errors": 0, "source_hash": "9d57a3e8167122a6c6d6002f23d0a17d8d381745837c43da448eaebdec510066", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,195
c
#ifndef PQCLEAN_KYBER1024_CLEAN_VERIFY_H #define PQCLEAN_KYBER1024_CLEAN_VERIFY_H #include "params.h" #include <stddef.h> #include <stdint.h> int PQCLEAN_KYBER1024_CLEAN_verify(const uint8_t *a, const uint8_t *b, size_t len); void PQCLEAN_KYBER1024_CLEAN_cmov(uint8_t *r, const uint8_t *x, size_t len, uint8_t b); #en...
39.12
8
(translation_unit) "#ifndef PQCLEAN_KYBER1024_CLEAN_VERIFY_H\n#define PQCLEAN_KYBER1024_CLEAN_VERIFY_H\n#include "params.h"\n#include <stddef.h>\n#include <stdint.h>\n\nint PQCLEAN_KYBER1024_CLEAN_verify(const uint8_t *a, const uint8_t *b, size_t len);\n\nvoid PQCLEAN_KYBER1024_CLEAN_cmov(uint8_t *r, const uint8_t *x, ...
76
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 39.12, "nodes": 55, "errors": 0, "source_hash": "64a3e75e25e421ae47f375a955771c422aaa31c1cc71ca6cd65fadcdf4c85338", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
10,196
c
// // Copyright (c) 2021, <NAME> & <NAME> // All rights reserved. // // This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree. // // Author: <NAME> // File: Math.h #pragma once namespace BlocksEngine { struct Plane; struct Matrix; stru...
23.59
37
(translation_unit) " \n// Copyright (c) 2021, <NAME> & <NAME>\n// All rights reserved.\n// \n// This source code is licensed under the MIT-style license found in LICENSE file in the root directory of this source tree.\n// \n// Author: <NAME>\n// File: Math.h\n\n#pragma once\n\nnamespace BlocksEngine\n{\n struct Plan...
157
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 23.59, "nodes": 99, "errors": 0, "source_hash": "141fbdcca1d9a1b6b5c7035bf9c8a501f64368c4613ed6e380be009fe2e2e414", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
10,197
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class NSString; @protocol HsKeyValueStorage - (void)removeObjectForKey:(NSString *)arg1; - (id)objectForKey:(NSString *)arg1; - (void)setObject:(id <NSCoding>)arg1 forKey:(NSString *)ar...
29.69
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n@class NSString;\n\n@protocol HsKeyValueStorage\n- (void)removeObjectForKey:(NSString *)arg1;\n- (id)objectForKey:(NSString *)arg1;\n- (void)setObject:(id <NSCod...
120
16
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.69, "nodes": 70, "errors": 0, "source_hash": "f9cb67e8ee5b74df98ab6e2e204edd69338052e9e6bb5e52f0e40fb7c8d80a10", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@class NSString;...
10,198
c
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
34.44
104
(translation_unit) "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
557
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 34.44, "nodes": 324, "errors": 0, "source_hash": "06766deb810ca69cd0e43409bb14901b2c7036416d9b9f2d74407234962a36d8", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,199