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
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * adios2_c_io.h * * Created on: Nov 8, 2017 * Author: <NAME> <EMAIL> */ #ifndef ADIOS2_BINDINGS_C_C_ADIOS2_C_IO_H_ #define ADIOS2_BINDINGS_C_C_ADIOS2_C_IO_H_ #include <stddef.h> //s...
35.72
158
(translation_unit) "/*\n * Distributed under the OSI-approved Apache License, Version 2.0. See\n * accompanying file Copyright.txt for details.\n *\n * adios2_c_io.h\n *\n * Created on: Nov 8, 2017\n * Author: <NAME> <EMAIL>\n */\n\n#ifndef ADIOS2_BINDINGS_C_C_ADIOS2_C_IO_H_\n#define ADIOS2_BINDINGS_C_C_ADIOS2_C...
493
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 35.72, "nodes": 329, "errors": 0, "source_hash": "1dced9b1d60617339181611f6b625de9ebdecfe84c5420b0b49f8695fa7f3f32", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,600
c
/** * NCtoolKit © 2007-2017 <NAME>, under zlib software license. * https://github.com/nczeroshift/nctoolkit */ #ifndef _NCK_AUDIO_CONFIG #define _NCK_AUDIO_CONFIG #include "../nckConfig.h" #define _AUDIO_BEGIN namespace Audio{ #define _AUDIO_END } #endif
24.8
10
(translation_unit) "/**\n * NCtoolKit © 2007-2017 <NAME>, under zlib software license.\n * https://github.com/nczeroshift/nctoolkit\n */\n\n#ifndef _NCK_AUDIO_CONFIG\n#define _NCK_AUDIO_CONFIG\n\n#include "../nckConfig.h"\n\n#define _AUDIO_BEGIN namespace Audio{\n#define _AUDIO_END }\n\n#endif\n\n" (comment) "/**\n *...
23
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.8, "nodes": 18, "errors": 0, "source_hash": "7ea3e5f70b60f51c5ba177461879ac05d1e0eb8e5521bee6efc50524b86134d3", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _N...
79,601
c
#ifndef _KTHREAD_H #define _KTHREAD_H #include <task.h> void kthread_early_init(void); void kthread_init(void); void kthread_create(void (*start)(void)); void kthread_fini(void); void kthread_add_wait_queue(task_struct *task); void kthread_kill_zombies(void); #endif /* _KTHREAD_H */
27.4
10
(translation_unit) "#ifndef _KTHREAD_H\n#define _KTHREAD_H\n\n#include <task.h>\n\nvoid kthread_early_init(void);\nvoid kthread_init(void);\n\nvoid kthread_create(void (*start)(void));\nvoid kthread_fini(void);\n\nvoid kthread_add_wait_queue(task_struct *task);\n\nvoid kthread_kill_zombies(void);\n\n#endif /* _KTHREAD_...
87
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.4, "nodes": 63, "errors": 0, "source_hash": "f4a641e72093279056c33760953427350580607c03f9a0cb62121d07cd64bdc5", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,602
c
#include "gtest/gtest.h" extern int findMin(int* nums, int numsSize); TEST(findMinTest, test1) { int nums[] = {1,3,5}; int numsSize = 3; int out = findMin(nums, numsSize); EXPECT_EQ(1, out); } TEST(findMinTest, test2) { int nums[] = {2,2,2,0,1}; int numsSize = 5; int out = findMin(nums, n...
25.74
19
(translation_unit) "#include "gtest/gtest.h"\n\nextern int findMin(int* nums, int numsSize);\n\nTEST(findMinTest, test1) {\n int nums[] = {1,3,5};\n int numsSize = 3;\n int out = findMin(nums, numsSize);\n EXPECT_EQ(1, out);\n}\n\nTEST(findMinTest, test2) {\n int nums[] = {2,2,2,0,1};\n int numsSize =...
212
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.74, "nodes": 125, "errors": 0, "source_hash": "bf85313b0b63f114e3329f1b153fa5cf34b94b86b9eadadd34e42915f46ca158", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,603
c
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2009 Greenplum, Inc. // // @filename: // CStack.h // // @doc: // Create stack of objects // // @owner: // Siva // // @test: // // //-------------------------------------------------------------------...
17.06
62
(translation_unit) "//---------------------------------------------------------------------------\n// Greenplum Database\n// Copyright (C) 2009 Greenplum, Inc.\n//\n// @filename:\n// CStack.h\n//\n// @doc:\n// Create stack of objects\n//\n// @owner: \n// Siva\n//\n// @test:\n//\n//\n//-------------------------------...
196
5
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 17.06, "nodes": 106, "errors": 0, "source_hash": "70d18083ff205881f15f0d51aebb2c38c7a689e94f5888873ca7d5145c1c6c3a", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,604
c
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
37.29
63
(translation_unit) "//-----------------------------------------------------------------------------\n// Copyright (c) 2012 GarageGames, LLC\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to\n// deal in the So...
239
10
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 37.29, "nodes": 126, "errors": 0, "source_hash": "318a51d9ee0c34102ace46e08adb5a22ce2dec055c693b8f07ad229b43afc5fa", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,605
c
/** * \file cRRMem.h * \brief * \author guesswho461 * \version * \date 2016/02/23 * \copyright MIT license, see LICENSE file */ #ifndef _CRRMEM_H_ #define _CRRMEM_H_ #include <mutex> #include "tRRType.h" #include "dRRSysDef.h" namespace rrruntime { /** * \brief to let the share m...
19.8
44
(translation_unit) "/**\n * \file cRRMem.h\n * \brief\n * \author guesswho461\n * \version\n * \date 2016/02/23\n * \copyright MIT license, see LICENSE file\n */\n\n#ifndef _CRRMEM_H_\n#define _CRRMEM_H_\n\n#include <mutex>\n\n#include "tRRType.h"\n#include "dRRSysDef.h"\n\nnamespace rrruntime {\...
163
9
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 19.8, "nodes": 94, "errors": 0, "source_hash": "9253254a16abba505142894c24c053bc694ce026a22ef404aa74e1798bad4ee7", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,606
c
/* * carl9170 firmware - used by the ar9170 wireless device * * initialization and main() loop * * Copyright (c) 2000-2005 ZyDAS Technology Corporation * Copyright (c) 2007-2009 Atheros Communications, Inc. * Copyright 2009 <NAME> <<EMAIL>> * Copyright 2009-2011 <NAME> <<EMAIL>> * * This program is free softw...
29.45
200
(translation_unit) "/*\n * carl9170 firmware - used by the ar9170 wireless device\n *\n * initialization and main() loop\n *\n * Copyright (c) 2000-2005 ZyDAS Technology Corporation\n * Copyright (c) 2007-2009 Atheros Communications, Inc.\n * Copyright 2009 <NAME> <<EMAIL>>\n * Copyright 2009-2011 <NAME> <<EMAIL>>\n *\...
1,091
1
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 29.45, "nodes": 594, "errors": 0, "source_hash": "6a3c26acf561f7b79f4e9d5261f5446c361424afd0bfcfd4dc9c49ec79cdc0f9", "categorized_nodes": 454}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,607
c
/* Copyright (c) 2019, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaime...
34.73
318
(translation_unit) "/*\nCopyright (c) 2019, Intel Corporation\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice,\n this list of conditions ...
2,463
0
{"language": "c", "success": true, "metadata": {"lines": 318, "avg_line_length": 34.73, "nodes": 1547, "errors": 0, "source_hash": "fc117d659c340ceb3a7c1b94d3a9f06adb86df3020d9014f46cd46e64754652e", "categorized_nodes": 1025}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
79,608
c
/* asmexpr.h -- include file for microsoft 80x86 assembler ** ** microsoft (r) macro assembler ** copyright (c) microsoft corp 1986. all rights reserved ** ** <NAME> */ /* Types of values desired by operators in evaltop */ #define CALLABS 0 /* unary or binary with null segment */ #define CLSIZE 1 /* unar...
30.48
58
(translation_unit) "/* asmexpr.h -- include file for microsoft 80x86 assembler \n** \n** microsoft (r) macro assembler \n** copyright (c) microsoft corp 1986. all rights reserved \n** \n** <NAME> \n*/ \n \n/* Types of values desired by operators in evaltop */ \n \n#define CALLABS 0 /* unary or binary with null segment...
338
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 30.48, "nodes": 238, "errors": 0, "source_hash": "a2ce93f22e96d5c3513a2731c22722f82eac233baf293ea492a28a6f33695eb5", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
79,609
c
#include "hks_http.h" esp_err_t hks_http_request_parse( hks_http_request_t *request, uint8_t *buffer, size_t buffer_len ) { uint8_t c; uint8_t *ptr = buffer; const uint8_t *end = buffer + buffer_len; request->content = buffer; request->content_len = buffer_len; request->method = buffer; request->method_...
32.27
26
(translation_unit) "#include "hks_http.h"\n\nesp_err_t hks_http_request_parse( hks_http_request_t *request, uint8_t *buffer, size_t buffer_len )\n{\n uint8_t c;\n uint8_t *ptr = buffer;\n const uint8_t *end = buffer + buffer_len;\n\n request->content = buffer;\n request->content_len = buffer_len;\n request->metho...
302
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.27, "nodes": 203, "errors": 0, "source_hash": "f3cc010f2bd230961c4f8db875f6b580a4058aec73ed934d17c05c64bcddb225", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,610
c
// // WifiManager.h // // Created by dyf on 2017/9/1. ( https://github.com/dgynfi/QPlayer ) // Copyright © 2017 dyf. All rights reserved. // #import <Foundation/Foundation.h> #import "HTTPServer.h" @interface WifiManager : NSObject // Declares an `HTTPServer` object. @property (nonatomic, strong) HTTPServer *httpS...
35.14
22
(translation_unit) "//\n// WifiManager.h\n//\n// Created by dyf on 2017/9/1. ( https://github.com/dgynfi/QPlayer )\n// Copyright © 2017 dyf. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "HTTPServer.h"\n\n@interface WifiManager : NSObject\n// Declares an `HTTPServer` object.\n@property (nona...
114
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 35.14, "nodes": 66, "errors": 0, "source_hash": "e02dc38f9f4ff84bfa449f5df8fc0cb6fc408d380f1e64f87e976bd0428fd425", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,611
c
// Copyright 2008, <NAME>, Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
34.23
162
(translation_unit) "// Copyright 2008, <NAME>, Inc. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice,...
609
47
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 34.23, "nodes": 345, "errors": 0, "source_hash": "0567d0900667b42bbed3852a52b67adb940809105592223f56f11a660983b2a2", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TF2__...
79,612
c
/** **************************************************************************************** * * @file proxm.c * * @brief Proximity monitor implementation. * * Copyright (C) RivieraWaves 2009-2013 * * **************************************************************************************** */ /** **********...
32.79
82
(translation_unit) "/**\n ****************************************************************************************\n *\n * @file proxm.c\n *\n * @brief Proximity monitor implementation.\n *\n * Copyright (C) RivieraWaves 2009-2013\n *\n *\n *******************************************************************************...
404
1
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 32.79, "nodes": 240, "errors": 0, "source_hash": "4e3b38defb17bd6e3c8d15076f55fd19a25c88467b02da8de106985c0d142147", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,613
c
#ifndef __SYS_STATUS #define __SYS_STATUS #include "sys_def.h" void sys_set_remap_status(uint8_t sbit_pos, uint8_t bit_action); uint16_t sys_get_remap_status(uint8_t reg_no,uint8_t rbit_pos); #endif // __SYS_CONF
34.5
6
(translation_unit) "#ifndef __SYS_STATUS\n#define __SYS_STATUS\n#include "sys_def.h"\n\nvoid sys_set_remap_status(uint8_t sbit_pos, uint8_t bit_action);\nuint16_t sys_get_remap_status(uint8_t reg_no,uint8_t rbit_pos);\n\n#endif // __SYS_CONF\n" (preproc_ifdef) "#ifndef __SYS_STATUS\n#define __SYS_STATUS\n#include "sy...
45
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 34.5, "nodes": 32, "errors": 0, "source_hash": "b0931893145e60d666820db4e24ff20a1b05adff545d90f9a406f3eef04411e2", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
79,614
c
#ifndef MCEC_V5_SCROLLINGSCREEN_H #define MCEC_V5_SCROLLINGSCREEN_H #include "DisplayScreen.h" class ScrollingScreen : public DisplayScreen { private: int line = 0; int count; bool continuous; bool alwaysCenter; void refreshAll(); protected: virtual void onExit() = 0; virtual void cycleOpt...
32.76
25
(translation_unit) "#ifndef MCEC_V5_SCROLLINGSCREEN_H\n#define MCEC_V5_SCROLLINGSCREEN_H\n\n#include "DisplayScreen.h"\n\nclass ScrollingScreen : public DisplayScreen\n{\nprivate:\n int line = 0;\n int count;\n bool continuous;\n bool alwaysCenter;\n void refreshAll();\nprotected:\n virtual void onExi...
240
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.76, "nodes": 156, "errors": 0, "source_hash": "f9ed47313e13076e7aec186eef79bc07f28a8a699e89a0fe0570cc938c5117ce", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,615
c
// This is free and unencumbered software released into the public domain. // For more information, see UNLICENSE. #include "common/time.h" #include <stdio.h> #include <stdlib.h> #if defined(_WIN32) // Windows implementation. #define WIN32_LEAN_AND_MEAN #include <string.h> #include <windows.h> typedef struct { H...
30.24
99
(translation_unit) "// This is free and unencumbered software released into the public domain.\n// For more information, see UNLICENSE.\n\n#include "common/time.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#if defined(_WIN32)\n\n// Windows implementation.\n#define WIN32_LEAN_AND_MEAN\n#include <string.h>\n#include ...
902
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 30.24, "nodes": 536, "errors": 0, "source_hash": "94cdab2b535a69382955ec9b6e8092b615cdeddbfd6c1f2ad5fed8471a86b7d6", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,616
c
// // UIViewController+Loading.h // WGKitDemo // // Created by dfhb@rdd on 16/11/28. // Copyright © 2016年 guojunwei. All rights reserved. // #import <UIKit/UIKit.h> /** 正在加载时文本内容 */ static NSString *const kLoadingText = @"正在加载..."; @interface UIViewController (Loading) - (UIView *)wg_loadingView; /** 显示加载框 */ - (...
23.44
18
(translation_unit) "//\n// UIViewController+Loading.h\n// WGKitDemo\n//\n// Created by dfhb@rdd on 16/11/28.\n// Copyright © 2016年 guojunwei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n/** 正在加载时文本内容 */\nstatic NSString *const kLoadingText = @"正在加载...";\n@interface UIViewController (Loading)\n\n- (UIView *...
94
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.44, "nodes": 54, "errors": 0, "source_hash": "92dd171466399de18ea77416fde3e9d7d669bfe291f1e02489ccd4eddc53e39c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,617
c
#include<stdio.h> int main(int argc, char const *argv[]) { char s[100000]; int count=1,i=0; while (s[i]!=0) { if(s[i]>='A'&&s[i]<='Z') count++,i++; } printf("%d\n",count); return 0; }
17.36
11
(translation_unit) "#include<stdio.h>\n\nint main(int argc, char const *argv[]) {\n char s[100000];\n int count=1,i=0;\n while (s[i]!=0)\n {\n if(s[i]>='A'&&s[i]<='Z') count++,i++;\n }\n printf("%d\n",count);\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib...
121
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.36, "nodes": 77, "errors": 0, "source_hash": "e8fd3d3d60f10b8d430c9600aaaec719bda8f48115cca84904998425c5a6e3c0", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,618
c
#ifndef _JVM_CFG_H_ #define _JVM_CFG_H_ /* standard limits */ #define MAX_REFERENCES 1024 #define MAX_STRINGS 1024 #define MAX_THREADS 64 /* including the main() thread */ #define MAX_MUTEXES 32 /* max. no. of Mutexes supported */ #define MAX_CONDITIONS 32 /* max. no. of Conditions supported */ #define MAX_...
35.8
20
(translation_unit) "#ifndef _JVM_CFG_H_\n#define _JVM_CFG_H_\n\n /* standard limits */\n#define MAX_REFERENCES 1024\n#define MAX_STRINGS 1024\n#define MAX_THREADS 64 /* including the main() thread */\n#define MAX_MUTEXES 32 /* max. no. of Mutexes supported */\n#define MAX_CONDITIONS 32 /* max. no. of Conditio...
77
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.8, "nodes": 67, "errors": 0, "source_hash": "b097efb4b4fef39bf5ec9d1e18377f9450d2515f65e6dce3439b13384873ab19", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,619
c
// // WebPageViewController.h // Go Map!! // // Created by <NAME> on 12/26/12. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <MessageUI/MessageUI.h> #import <UIKit/UIKit.h> #import <WebKit/WebKit.h> @interface WebPageViewController : UIViewController <WKNavigationDelegate, UIActionSheetDelegate, M...
33.78
23
(translation_unit) "//\n// WebPageViewController.h\n// Go Map!!\n//\n// Created by <NAME> on 12/26/12.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n\n#import <MessageUI/MessageUI.h>\n#import <UIKit/UIKit.h>\n#import <WebKit/WebKit.h>\n\n@interface WebPageViewController : UIViewController <WKNavigationDe...
160
15
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.78, "nodes": 102, "errors": 0, "source_hash": "1b692db9dd92d50704a50534a346fa853d7f68bff2f0654616e2c4d7f0411885", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,620
c
/* * Copyright © 2018 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
35.63
89
(translation_unit) "/*\n * Copyright © 2018 VMware, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the “License”); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unle...
394
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 35.63, "nodes": 231, "errors": 0, "source_hash": "e2f073cc577fda8933cbf90f921e5fc767ecbf9523a9d628ff5c28466c8e9b49", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "<inc...
79,621
c
// Copyright 2022 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
37.44
57
(translation_unit) "// Copyright 2022 The Dawn Authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required b...
352
21
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 37.44, "nodes": 192, "errors": 0, "source_hash": "548aeab4313e77437e58cda4a16de5b1962eb729c6d871d96db31a19872ae0b6", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SRC_DA...
79,622
c
/* *If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2021 RDK Management * * 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...
38
39
(translation_unit) "/*\n *If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2021 RDK Management\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the L...
150
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 38.0, "nodes": 112, "errors": 0, "source_hash": "627ab24e94e483218e802be4db7a2740c5df68ea0fead748e799971a68baf66f", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,623
c
#include <stdio.h> #include "xparameters.h" #include "xil_cache.h" #include "lib.h" // If you use Write-back cache, please enable this macro #define WRITEBACK #define LOADER_SIZE (256) typedef unsigned int Uint; #define MIN_DATA_SIZE (1024 * 1024) //-----------------------------------------------------------------...
25.5
117
(translation_unit) "#include <stdio.h>\n#include "xparameters.h"\n#include "xil_cache.h"\n#include "lib.h"\n\n// If you use Write-back cache, please enable this macro\n#define WRITEBACK\n\n#define LOADER_SIZE (256)\n\ntypedef unsigned int Uint;\n\n#define MIN_DATA_SIZE (1024 * 1024)\n\n//-------------------------------...
931
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 25.5, "nodes": 572, "errors": 0, "source_hash": "38c27b17da9cbe409de1c093d20792473e70a4b8dd524200c6a3ef54be8c2dde", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,624
c
/* Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space * Administration. No copyright is claimed in the United States under * Title 17, U.S. Code. All Other Rights Reserved. * * The refine platform is licensed under the Apache License, Version * 2....
34.05
83
(translation_unit) "/* Copyright 2014 United States Government as represented by the\n * Administrator of the National Aeronautics and Space\n * Administration. No copyright is claimed in the United States under\n * Title 17, U.S. Code. All Other Rights Reserved.\n *\n * The refine platform is licensed under the Apach...
552
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 34.05, "nodes": 301, "errors": 0, "source_hash": "5aabb5f5b17660d6ca5203a3eb9f276a35c7890d09d2014652e3ee88b86c3548", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,625
c
#pragma once ////////////////////////////////////////////////////////////////////////////////////////////////// // // file: moPhysics_ChainProperties.h // // Author <NAME> (Neill3d) // // GitHub page - https://github.com/Neill3d/MoPlugs // Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs/blob/master/L...
32.48
40
(translation_unit) "#pragma once\n\n//////////////////////////////////////////////////////////////////////////////////////////////////\n//\n// file: moPhysics_ChainProperties.h\n//\n// Author <NAME> (Neill3d)\n//\n// GitHub page - https://github.com/Neill3d/MoPlugs\n// Licensed under BSD 3-Clause - https://github.com/N...
132
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.48, "nodes": 69, "errors": 0, "source_hash": "3b25cd5b73702bb7d57e4022b9d8db18750ff7745ab7b203c7f7b826fd29c2ce", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,626
c
#include <stdio.h> #ifndef TEST_SUCCESS int _test_suite_exit_value; #define TEST_SUCCESS _test_suite_exit_value #endif #define ASSERT(EXPRESSION) if ((EXPRESSION) != 1) {\ fprintf(stderr, "Assertion failure [%s] on line %d in file %s\n", #EXPRESSION, __LINE__, __FILE__); \ _test_suite_exit_val...
47.62
8
(translation_unit) "#include <stdio.h>\n\n#ifndef TEST_SUCCESS\n int _test_suite_exit_value;\n #define TEST_SUCCESS _test_suite_exit_value\n#endif\n\n#define ASSERT(EXPRESSION) if ((EXPRESSION) != 1) {\\n fprintf(stderr, "Assertion failure [%s] on line %d in file %s\n", #EXPRESSION, __LINE__, __FILE__); \\...
24
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 47.62, "nodes": 20, "errors": 0, "source_hash": "ccbb511733f8686461e2fb347814c486cc98b99ed6de779e8e5b50232efa0475", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,627
c
#ifndef __vtkdevideCommonWin32Header_h #define __vtkdevideCommonWin32Header_h #include <vtkdevideConfigure.h> #if defined(WIN32) && !defined(VTK_DEVIDE_STATIC) #if defined(vtkdevideCommon_EXPORTS) #define VTK_DEVIDE_COMMON_EXPORT __declspec( dllexport ) #else #define VTK_DEVIDE_COMMON_EXPORT __declspec( dllimport ) ...
28.15
13
(translation_unit) "#ifndef __vtkdevideCommonWin32Header_h\n#define __vtkdevideCommonWin32Header_h\n\n#include <vtkdevideConfigure.h>\n\n#if defined(WIN32) && !defined(VTK_DEVIDE_STATIC)\n#if defined(vtkdevideCommon_EXPORTS)\n#define VTK_DEVIDE_COMMON_EXPORT __declspec( dllexport ) \n#else\n#define VTK_DEVIDE_COMMON_EX...
53
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.15, "nodes": 46, "errors": 0, "source_hash": "4ed74c443f3ddaf2ee6248b5505af7d6eafa55469d89d0a00d3bad342158402a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,628
c
/* ---------------------------------------------------------- % (C) 1994,1995 Institute for New Generation Computer Technology % (Read COPYRIGHT for detailed information.) % (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center % (Read COPYRIGHT-JIPDEC for detailed information.) -...
35.67
15
(translation_unit) "/* ---------------------------------------------------------- \n% (C) 1994,1995 Institute for New Generation Computer Technology \n% (Read COPYRIGHT for detailed information.) \n% (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center\n% (Read COPYRIGHT-JIPDEC for ...
62
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.67, "nodes": 44, "errors": 0, "source_hash": "74678a80f621b67fd9be00be95a7195957a4cf4e3e197bdcf5210d4ea284bd2b", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,629
c
/* * Copyright © 2018,2019 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
31.39
84
(translation_unit) "/*\n * Copyright © 2018,2019 IBM Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
274
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 31.39, "nodes": 185, "errors": 0, "source_hash": "6a9c0f5ab06ff1abf2710b5be3d1cccd1c5e760a2843c6c4da5af5dd762980ac", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
79,630
c
// // ZpMenuItemCell.h // ZpMenuController // // Created by zhanping on 3/16/16. // Copyright © 2016 zhanping. All rights reserved. // #import <UIKit/UIKit.h> #import "ZPPopoverItem.h" @interface ZPPopoverCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *separatorImageView; @property (weak,...
31.33
15
(translation_unit) "//\n// ZpMenuItemCell.h\n// ZpMenuController\n//\n// Created by zhanping on 3/16/16.\n// Copyright © 2016 zhanping. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ZPPopoverItem.h"\n@interface ZPPopoverCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UIImageView *sepa...
101
17
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.33, "nodes": 72, "errors": 0, "source_hash": "e1869a9108dc34c9381bde6e390bed778ea3433a646dedaf6c50242945ca2d72", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
79,631
c
#pragma once //============================================================================= // EXTERNAL DECLARATIONS //============================================================================= #include "ComponentObject.h" #include <Core/StaticAsserts.h> namespace engine { //======================================...
37.65
121
(translation_unit) "#pragma once\n//=============================================================================\n// EXTERNAL DECLARATIONS\n//=============================================================================\n#include "ComponentObject.h"\n#include <Core/StaticAsserts.h>\n\nnamespace engine\n{\n\n//========...
1,206
71
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 37.65, "nodes": 697, "errors": 0, "source_hash": "ad0769493841af22ad7d65a5cf270be5a0cd82021aed8c613b5faaa4754046b6", "categorized_nodes": 497}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,632
c
#ifndef PTGL_CORE_GRAPHICSITEMEVENT_H_ #define PTGL_CORE_GRAPHICSITEMEVENT_H_ #include "Event.h" namespace ptgl { class GraphicsItemEvent { public: GraphicsItemEvent(); virtual ~GraphicsItemEvent(); }; class GraphicsItemKeyEvent : public GraphicsItemEvent, public KeyEvent { public: GraphicsItemKeyEvent(...
32.86
90
(translation_unit) "#ifndef PTGL_CORE_GRAPHICSITEMEVENT_H_\n#define PTGL_CORE_GRAPHICSITEMEVENT_H_\n\n#include "Event.h"\n\nnamespace ptgl {\n\nclass GraphicsItemEvent {\npublic:\n GraphicsItemEvent();\n virtual ~GraphicsItemEvent();\n};\n\nclass GraphicsItemKeyEvent : public GraphicsItemEvent, public KeyEvent\n{...
881
51
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 32.86, "nodes": 472, "errors": 0, "source_hash": "60964e0b17763b9f47cb64b45c4d1174d44c7c1328401883a1529ecbca568e5d", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,633
c
#ifndef RS_TRANSFORMSTESTS_H #define RS_TRANSFORMSTESTS_H #include "../../UnitTestUtilities.h" bool testTransforms(std::string &reportString); bool testSmbFFT(std::string &reportString); bool testRsFFT( std::string &reportString); bool testFourierTransformerRadix2(std::string &reportString); bool testCorrelation(...
36.5
16
(translation_unit) "#ifndef RS_TRANSFORMSTESTS_H\n#define RS_TRANSFORMSTESTS_H\n\n#include "../../UnitTestUtilities.h"\n\nbool testTransforms(std::string &reportString);\n\nbool testSmbFFT(std::string &reportString);\nbool testRsFFT( std::string &reportString);\nbool testFourierTransformerRadix2(std::string &reportStri...
129
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.5, "nodes": 80, "errors": 0, "source_hash": "2267e44604678d02a0e1cc6534482ca2713dedffee1669b0f1ea5869af76c33c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
79,634
c
#ifndef TH_TENSOR_INC #define TH_TENSOR_INC #include "THStorage.h" #include "THTensorApply.h" #define THTensor TH_CONCAT_3(TH,Real,Tensor) #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) #include "generic/THTensor.h" #include "THGenerateAllTypes.h" #include "generic/THTensorCopy.h" #include "TH...
29.92
12
(translation_unit) "#ifndef TH_TENSOR_INC\n#define TH_TENSOR_INC\n\n#include "THStorage.h"\n#include "THTensorApply.h"\n\n#define THTensor TH_CONCAT_3(TH,Real,Tensor)\n#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)\n\n#include "generic/THTensor.h"\n#include "THGenerateAllTypes.h"\n\n#include "gene...
62
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.92, "nodes": 38, "errors": 0, "source_hash": "dcf1a6499a30da4b1b6eba03c0d890041b6c3237e46878fba0a3d8cf2a3412c1", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,635
c
#include "binary_tree_inorder_traversal.h" #include <stdlib.h> static void in_order(struct TreeNode *root, int **ret, int *capacity, int *size) { if (root == NULL) return; in_order(root->left, ret, capacity, size); if (*size >= *capacity) { *capacity *= 2; *ret = (int *) realloc(*ret, *cap...
35.31
52
(translation_unit) "#include "binary_tree_inorder_traversal.h"\n\n#include <stdlib.h>\n\nstatic void in_order(struct TreeNode *root, int **ret, int *capacity, int *size) {\n if (root == NULL) return;\n in_order(root->left, ret, capacity, size);\n if (*size >= *capacity) {\n *capacity *= 2;\n *ret...
725
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 35.31, "nodes": 498, "errors": 0, "source_hash": "91cad933c27e2519150ff7f2547a55d272ab942f3e0bf934e4d8aa750c51bcdb", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,636
c
#pragma once #include <vector> #include <volk.h> namespace scapes::foundation::render::vulkan { /* */ class DescriptorSetLayoutBuilder { public: DescriptorSetLayoutBuilder &addDescriptorBinding( VkDescriptorType type, VkShaderStageFlags shader_stages, uint32_t binding, int descriptor_count = 1 )...
19.86
21
(translation_unit) "#pragma once\n\n#include <vector>\n#include <volk.h>\n\nnamespace scapes::foundation::render::vulkan\n{\n /*\n */\n class DescriptorSetLayoutBuilder\n {\n public:\n DescriptorSetLayoutBuilder &addDescriptorBinding(\n VkDescriptorType type,\n VkShaderStageFlags shader_stages,\n uint32_t bindi...
94
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 19.86, "nodes": 57, "errors": 0, "source_hash": "a99b33f70886705eaef53f6f720827eccfd9dc10b9b4d27bfa312c377fe47f6b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,637
c
#ifndef __ORDERMINHASH_H__ #define __ORDERMINHASH_H__ #include <string> #include <stdint.h> namespace Sketch{ //template<typename BT> static void omh_pos(const std::string& seq, unsigned k, unsigned l, unsigned m, uint64_t mtSeed, char * ptr); struct mer_info { size_t pos; uint64_t hash; uint64_t int_hash; unsi...
22.83
23
(translation_unit) "#ifndef __ORDERMINHASH_H__\n#define __ORDERMINHASH_H__\n\n#include <string>\n#include <stdint.h>\n\nnamespace Sketch{\n\n//template<typename BT>\nstatic void omh_pos(const std::string& seq, unsigned k, unsigned l, unsigned m, uint64_t mtSeed, char * ptr);\n\nstruct mer_info {\n size_t pos;\n uint64_...
177
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.83, "nodes": 119, "errors": 0, "source_hash": "5114a7e2e900a7f25c1572f6615d2649f5799a6534a889d9ea13260d02d6aaaa", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,638
c
/* description: This program will get user input for the computing the volume of a cone. Notes: 1.input 2.computations 3.outputs spot in memory has an address. "if someone wanted to find you they would by your address, and there they would find a bunch of your stuff." */ #include <stdio.h> #include <ma...
24.97
34
(translation_unit) "/* \ndescription: This program will get user input for the computing the volume of a cone. \n \nNotes: \n1.input \n2.computations \n3.outputs \n \nspot in memory has an address. "if someone wanted to find you they would by your address, and there they would find a bunch of your stuff." \n*/ \n \n#...
137
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.97, "nodes": 83, "errors": 0, "source_hash": "28948b3d8a0ad2b3f9d6dc45e0a26a28c68555e0cce561855d29af8920dad25a", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,639
c
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
39.26
27
(translation_unit) "/*\n * Copyright (C) 2021 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
80
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.26, "nodes": 55, "errors": 0, "source_hash": "1633b670b25fc31b817dc8e034c0eb16b0272d1fffb6ec4e4081b973d90df6c7", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,640
c
#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 15 #define MAX_DIGIT_PLUS_ONE 200 void fill_list(int array[N]); void print_list(int array[N]); int check_for_repeats(int array[N]); int main(void) { int list[N]; int count = 0; srand(time(NULL)); while(count < 1000) { fill_list(...
13.61
75
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\n#define N 15\n#define MAX_DIGIT_PLUS_ONE 200\n\nvoid fill_list(int array[N]);\n\nvoid print_list(int array[N]);\n\nint check_for_repeats(int array[N]);\n\nint main(void)\n{\n int list[N];\n int count = 0;\n \n srand(time(NULL));\n \n...
459
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 13.61, "nodes": 271, "errors": 0, "source_hash": "9ec4432bc4118cb0d0745d02847d22ce1d54e14539695351f5708ba2d77584e4", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,641
c
#include "disp.h" void print_vector(int * vec, size_t vec_size) { for (size_t i = 0; i < vec_size; i++) printf("%d ", vec[i]); printf("\n"); } int max_vector(int * vec, size_t vec_size) { int max = 0; size_t i = 0; while (i < vec_size) { if (vec[i] > max) max = vec[i]; i++;...
27.37
75
(translation_unit) "#include "disp.h"\n\nvoid print_vector(int * vec, size_t vec_size) {\n for (size_t i = 0; i < vec_size; i++)\n printf("%d ", vec[i]);\n printf("\n");\n}\n\nint max_vector(int * vec, size_t vec_size) {\n int max = 0;\n size_t i = 0;\n while (i < vec_size) {\n if (vec[i] >...
780
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.37, "nodes": 504, "errors": 0, "source_hash": "464de274a19645cecbe8810a4cead6b9e7f8b1772217660f3f563c4e79b3a1f7", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,642
c
/* ** $Id: message.c,v 1.37 2007/04/04 00:04:49 krishnap Exp $ ** ** <NAME> ** description: */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <pthread.h> #include <errno.h> #include <string.h> #include "chimera.h" #include "me...
28.12
301
(translation_unit) "/*\n** $Id: message.c,v 1.37 2007/04/04 00:04:49 krishnap Exp $\n**\n** <NAME>\n** description: \n*/\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <pthread.h>\n#include <errno.h>\n#include <string.h...
2,307
0
{"language": "c", "success": true, "metadata": {"lines": 301, "avg_line_length": 28.12, "nodes": 1402, "errors": 0, "source_hash": "1f35a71389722a9b1baefcff9bfcf41b5658ec44b7743332c5ed5b7559556ede", "categorized_nodes": 993}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,643
c
/********************************************************************* * * Macros for L1 Cache management * ********************************************************************* * Filename: sys/l1cache.h * * Processor: PIC32 * * Compiler: MPLAB XC32 * * Company: Micro...
36.56
88
(translation_unit) "/*********************************************************************\n *\n * Macros for L1 Cache management\n *\n *********************************************************************\n * Filename: sys/l1cache.h\n *\n * Processor: PIC32\n *\n * Compiler: MPLAB XC32...
231
1
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 36.56, "nodes": 156, "errors": 0, "source_hash": "84476f3f8ad3e2cbd2ade17dfce6587b88bebef52c2fb893979a01d4cf8dc46c", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,644
c
//===--- Context.h - --------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
33.78
36
(translation_unit) "//===--- Context.h - --------------------------------------------*- C++ -*-===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\...
184
4
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.78, "nodes": 95, "errors": 0, "source_hash": "931127b3ba38d0967d8b94428ae32623da4d8eae74f96f4fd7b217cc28cd59f4", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,645
c
#import <UIKit/UIKit.h> @interface UIViewController (Util) - (void)addPopBackLeftItem; - (void)addPopBackLeftItemWithTarget:(id _Nullable )aTarget action:(SEL _Nullable )aAction; - (void)addKeyboardNotificationsWithShowSelector:(SEL _Nullable )aShowSelector hideSelector:(SEL _Nullable )aHideSelector; - (void)remov...
49.12
8
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface UIViewController (Util)\n\n- (void)addPopBackLeftItem;\n\n- (void)addPopBackLeftItemWithTarget:(id _Nullable )aTarget action:(SEL _Nullable )aAction;\n\n- (void)addKeyboardNotificationsWithShowSelector:(SEL _Nullable )aShowSelector hideSelector:(SEL _Nullable )a...
110
11
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 49.12, "nodes": 71, "errors": 0, "source_hash": "9add0b1e0c311d101f1ba2a32b457803ebd577296582483236e614baf1d0ea3f", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
79,646
c
/*--------------------------------------------------------------------------- * filename - wis.c * * function(s) - replacements for macros in ctype.h * iswalnum * iswascii * iswalpha * iswcntrl * iswdigit * iswgraph * iswlower * iswprint * iswpunct * iswspace * iswuppe...
22.22
27
(translation_unit) "/*---------------------------------------------------------------------------\n * filename - wis.c\n *\n * function(s) - replacements for macros in ctype.h\n * iswalnum\n * iswascii\n * iswalpha\n * iswcntrl\n * iswdigit\n * iswgraph\n * iswlower\n * iswprint\n * iswpu...
13
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.22, "nodes": 6, "errors": 0, "source_hash": "99a2bd38e69ea6885c12260c84a4695c99d06e3a2a33e8eed0ffb3f913e835bb", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _UNI...
79,647
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:38:32 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/CFNetwork.framework/CFNetwork * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */...
33.32
22
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:38:32 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Frameworks/CFNetwork.framework/CFNetwork\n* classdump-dyld is licensed under GPLv3, Copyright ...
157
15
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.32, "nodes": 93, "errors": 0, "source_hash": "efafaaebe4f5d844fee1562b650512e3feada3c00b9cdbefeca42ae419ce3dde", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
79,648
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/security/spec/KeySpec.java // #ifndef _JavaSecuritySpecKeySpec_H_ #define _JavaSecuritySpecKeySpec_H_ #include "J2ObjC_header.h" @protocol JavaSecuritySpecKeySpec < NSObject, JavaObject > @end J2OBJC_EMPTY_...
35.83
12
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: android/libcore/luni/src/main/java/java/security/spec/KeySpec.java\n//\n\n#ifndef _JavaSecuritySpecKeySpec_H_\n#define _JavaSecuritySpecKeySpec_H_\n\n#include "J2ObjC_header.h"\n\n@protocol JavaSecuritySpecKeySpec < NSObject, Jav...
45
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.83, "nodes": 30, "errors": 0, "source_hash": "8d523e26328b9c260581522045e82f34dee49a501d242b110240c20758b8aa9b", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,649
c
#ifndef _KERNEL_H_ #define _KERNEL_H_ void start_kernel(void); void do_exit(void) __attribute__((noreturn)); void arch_do_exit(void); void stop_kernel(void); #endif /* _KERNEL_H_ */
25
7
(translation_unit) "#ifndef _KERNEL_H_\n#define _KERNEL_H_\n\nvoid start_kernel(void);\nvoid do_exit(void) __attribute__((noreturn));\nvoid arch_do_exit(void);\nvoid stop_kernel(void);\n\n#endif /* _KERNEL_H_ */\n" (preproc_ifdef) "#ifndef _KERNEL_H_\n#define _KERNEL_H_\n\nvoid start_kernel(void);\nvoid do_exit(void)...
57
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.0, "nodes": 39, "errors": 0, "source_hash": "d77feda96e557b2fa6b8fb7147add5decf3ab9d5f0380f72a72bb057020bf78d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _K...
79,650
c
#include "../../SDL_internal.h" #if SDL_VIDEO_RENDER_PS4 #include "SDL_hints.h" #include "SDL_assert.h" #include "../SDL_sysrender.h" SDL_Renderer * PS4_CreateRenderer(SDL_Window * window, Uint32 flags) { printf("# ERROR %s(), please use software renderer on ps4!\n", __FUNCTION__); return NULL; } SDL_RenderD...
24.65
31
(translation_unit) "#include "../../SDL_internal.h"\n\n#if SDL_VIDEO_RENDER_PS4\n\n#include "SDL_hints.h"\n#include "SDL_assert.h"\n#include "../SDL_sysrender.h"\n\n\nSDL_Renderer * PS4_CreateRenderer(SDL_Window * window, Uint32 flags)\n{\n printf("# ERROR %s(), please use software renderer on ps4!\n", __FUNCTION__);\n...
180
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.65, "nodes": 111, "errors": 0, "source_hash": "2edcc20ab2c648cdac3750b5516c3d66d3f107906cae1ec1109302316723be58", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,651
c
#ifdef __cplusplus extern "C" { #endif #include <GL/gl.h> void loadModel(); void load_0(); //object: Circle void load_1(); //object: Cylinder.009 void load_2(); //object: Cube.015 void load_3(); //object: Cube.014 void load_4(); //object: Cube.013 void load_5(); //object: Cube.012 void load_6(); //object: Cube.011 v...
27.73
26
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif \n\n#include <GL/gl.h>\n\nvoid loadModel();\nvoid load_0(); //object: Circle\nvoid load_1(); //object: Cylinder.009\nvoid load_2(); //object: Cube.015\nvoid load_3(); //object: Cube.014\nvoid load_4(); //object: Cube.013\nvoid load_5(); //object: Cube.012\nvo...
191
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.73, "nodes": 109, "errors": 0, "source_hash": "79247221b3bfb3a8868e6a8499c59591781a2d483b95f2a084541d779381f4b0", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
79,652
c
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_SERVER_ENTITIES_BOT_BOOM_H #define GAME_SERVER_ENTITIES_BOT_BOOM_H #include <game/server/entity.h> #include <game/generate...
28.74
35
(translation_unit) "/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */\n/* If you are missing that file, acquire a complete release at teeworlds.com. */\n#ifndef GAME_SERVER_ENTITIES_BOT_BOOM_H\n#define GAME_SERVER_ENTITIES_BOT_BOOM_H\n\n#include <game/server/entity.h...
179
3
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.74, "nodes": 118, "errors": 0, "source_hash": "ceddbbe81f2f6dd42a2bfe13aba59eab883e564656a1cae309513eb07f09924c", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,653
c
/* base32.h * Base-32 conversion * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __BASE32_H__ #define __BASE32_H__ #include "ws_symbol_export.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** Returne...
24.62
39
(translation_unit) "/* base32.h\n * Base-32 conversion\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 1998 <NAME>\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n#ifndef __BASE32_H__\n#define __BASE32_H__\n\n#include "ws_symbol_export.h"\n\n#ifdef __cplusplus\nextern "C" {\n#...
84
1
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.62, "nodes": 54, "errors": 0, "source_hash": "02b7ff65a962e46906758c0329e00bd9d75f21d8c6f42eb91c7f93a5d6848e9e", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,654
c
// // UIViewController.h // Example // // Created by Tangdixi on 2/11/2015. // Copyright © 2015 Tangdxi. All rights reserved. // #import <UIKit/UIKit.h> @interface BarButtonItemViewController : UIViewController @end
21
10
(translation_unit) "//\n// UIViewController.h\n// Example\n//\n// Created by Tangdixi on 2/11/2015.\n// Copyright © 2015 Tangdxi. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BarButtonItemViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// UIViewController.h" (comme...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 9, "errors": 0, "source_hash": "0b5f8fdc3a1e7ac610e396ae5e57b9771f8718e6f80744fd435949b32addb79f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKi...
79,655
c
// // Created by <NAME> on 05.12.18. // #ifndef LAB_3_BATTLESHIPMENUMODEL_H #define LAB_3_BATTLESHIPMENUMODEL_H #include <string> class BattleShipMenuModel { private: std::string menu_move; int player1 = 1, player2 = 1; int volume_selection = 1; int music_mode_changed = false; ...
29.89
46
(translation_unit) "//\n// Created by <NAME> on 05.12.18.\n//\n\n#ifndef LAB_3_BATTLESHIPMENUMODEL_H\n#define LAB_3_BATTLESHIPMENUMODEL_H\n\n#include <string>\n\nclass BattleShipMenuModel {\n private:\n std::string menu_move;\n\n int player1 = 1, player2 = 1;\n int volume_selection = 1;\n ...
300
16
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 29.89, "nodes": 151, "errors": 0, "source_hash": "b7e11d6e530f4ce93127b224301b621939a81b16f92a9b2a4ed0a38b6bf47aad", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,656
c
#include <stdio.h> #include <string.h> #include <assert.h> int main() { int x = 0; char buf1[] = "12345"; sscanf(buf1, "%d", &x); assert(x == 12345); // From dsda-doom char buf2[] = "process_priority 0\n"; char def[80], strparm[128]; memset(def, '!', 80); memset(strparm, '!', 128); sscanf(buf2...
24.04
25
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <assert.h>\n\nint main() {\n int x = 0;\n char buf1[] = "12345";\n sscanf(buf1, "%d", &x);\n assert(x == 12345);\n\n // From dsda-doom\n char buf2[] = "process_priority 0\n";\n char def[80], strparm[128];\n memset(def, '!', 80);\n memse...
282
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.04, "nodes": 152, "errors": 0, "source_hash": "40d4928a6f6298afe9c2d65cbdef91674cfc0fa132d0afea573924a9fee73000", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,657
c
#pragma once #include"includes.h" using namespace std; class Grid { public: float x0 = 0.0; float y0 = 0.0; float L = 1.0; float N = 2; float dummy = 0.0; vector<float> x; vector<float> y; vector<vector<float>> u; Grid(); Grid(float, float, float, int); void discreteBound(vector<float>, ...
21.08
24
(translation_unit) "#pragma once \n#include"includes.h" \n \nusing namespace std; \n \nclass Grid \n{ \n public: \n float x0 = 0.0; \n float y0 = 0.0; \n float L = 1.0; \n float N = 2; \n float dummy = 0.0; \n vector<float> x; \n vector<float> y; \n vector<vector<float>> u; \n Grid(); \n Grid(float, float, float, int);...
256
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.08, "nodes": 171, "errors": 0, "source_hash": "14a87b79619a49d3b8a245810aec6cc0bee2bc31b29ac58b480137f63d2b9e09", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,658
c
#ifndef STACK_H #define STACK_H using namespace std; #include <iostream> enum retval {FAIL,OK}; void init(); retval push (int); retval top (int &); retval pop (); void print(); #endif
14.42
12
(translation_unit) "#ifndef STACK_H\n#define STACK_H\n\nusing namespace std;\n#include <iostream>\n\nenum retval {FAIL,OK};\n\nvoid init();\nretval push (int);\nretval top (int &);\nretval pop ();\nvoid print();\n\n\n#endif\n" (preproc_ifdef) "#ifndef STACK_H\n#define STACK_H\n\nusing namespace std;\n#include <iostre...
75
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 14.42, "nodes": 52, "errors": 0, "source_hash": "f4b100b5defe67443b0eb3df7d4decdaaec8b0ac67bd699a8f4aa9ac01143109", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,659
c
#ifndef ASTAR_H #define ASTAR_H #include <utility> #include <cmath> #include <stack> const int ROW = 9; const int COL = 10; typedef std::pair<int, int> Point; typedef std::pair<double, Point> FPoint; typedef std::stack<Point> Path; typedef int (*Grid)[COL]; typedef const int (*ConstGrid)[COL]; struct Cell { Poi...
22.78
18
(translation_unit) "#ifndef ASTAR_H\n#define ASTAR_H\n\n#include <utility>\n#include <cmath>\n#include <stack>\n\nconst int ROW = 9;\nconst int COL = 10;\n\ntypedef std::pair<int, int> Point;\ntypedef std::pair<double, Point> FPoint;\ntypedef std::stack<Point> Path;\ntypedef int (*Grid)[COL];\ntypedef const int (*Const...
153
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.78, "nodes": 102, "errors": 0, "source_hash": "eb99cf1296d94d8e28de72aa26de879393235c69e9947b1b21ca3b31688ced56", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,660
c
/* sexp-transport-format.c Writing s-expressions in transport format. Copyright (C) 2002 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free ...
28.32
75
(translation_unit) "/* sexp-transport-format.c\n\n Writing s-expressions in transport format.\n\n Copyright (C) 2002 <NAME>\n\n This file is part of GNU Nettle.\n\n GNU Nettle is free software: you can redistribute it and/or\n modify it under the terms of either:\n\n * the GNU Lesser General Public Licens...
344
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 28.32, "nodes": 208, "errors": 0, "source_hash": "e14494f028ffa7ca7fbee51f4597956540310b13f53e3387b5a7fef9bb36e3ea", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if HAVE_...
79,661
c
#pragma once #include <QWidget> #include <QtWidgets> #include <QLabel> #include <Canvas/gameitem.h> #include <Canvas/graphicsscene.h> #include <Properties/propertiesitem.h> class PropertiesItem; class GraphicsScene; class ColliderShapeItem : public QWidget { Q_OBJECT public: explicit ColliderShapeItem(Propert...
26.46
28
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include <QtWidgets>\n#include <QLabel>\n#include <Canvas/gameitem.h>\n#include <Canvas/graphicsscene.h>\n#include <Properties/propertiesitem.h>\n\nclass PropertiesItem;\nclass GraphicsScene;\nclass ColliderShapeItem : public QWidget\n{\n Q_OBJECT\npublic:\n ...
177
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.46, "nodes": 130, "errors": 0, "source_hash": "f69cdc9589c9a0869c072d493b793847cf36c9956f1a62e11877506974d1d5eb", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,662
c
// Copyright (c) 2009 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 CHROME_BROWSER_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ #define CHROME_BROWSER_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ #include <string> #...
40.16
73
(translation_unit) "// Copyright (c) 2009 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 CHROME_BROWSER_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_\n#define CHROME_BROWSER_VIEWS_CREATE_APPLICATION_SHORTCUT_VIE...
473
30
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 40.16, "nodes": 271, "errors": 0, "source_hash": "d303390b2e1d4d5cb306cfd471a13a929f21bd6d5f0797ca14ef74a4243c4bdf", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,663
c
#ifndef _MELEE_H #define _MELEE_H void melee_load(scene *scene); #endif // _MELEE_H
20
4
(translation_unit) "#ifndef _MELEE_H\n#define _MELEE_H\n\nvoid melee_load(scene *scene);\n\n#endif // _MELEE_H\n" (preproc_ifdef) "#ifndef _MELEE_H\n#define _MELEE_H\n\nvoid melee_load(scene *scene);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_MELEE_H" (preproc_def) "#define _MELEE_H\n" (#define) ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.0, "nodes": 17, "errors": 0, "source_hash": "a3a43b4df8a9713378b4a454a20c7ffb31e1872da7e3fd626f9097a61838c63d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _M...
79,664
c
#pragma once class DummyLibrary { public: const char * getPlatformABI(); DummyLibrary(); ~DummyLibrary(); };
13
8
(translation_unit) "#pragma once\n\nclass DummyLibrary\n{\npublic:\n const char * getPlatformABI();\n DummyLibrary();\n ~DummyLibrary();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class DummyLibrary\n{\npublic:\n const char * getPlatfor...
43
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.0, "nodes": 21, "errors": 0, "source_hash": "80cfce3561924829c76664cf8734bd255bcf616308ebfcec2ff5cdd1f67660a9", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
79,665
c
#ifndef _TURRETAI_H_ #define _TURRETAI_H_ #include "navigation.h" namespace Orders { class TurretAI : public FaceTargetITTS { float range; float speed; float mrange; public: TurretAI(); virtual void Execute(); virtual void getAverageGunSpeed( float &speed, float &range, float &mrange ) const; }; } #...
19.38
16
(translation_unit) "#ifndef _TURRETAI_H_\n#define _TURRETAI_H_\n#include "navigation.h"\nnamespace Orders\n{\nclass TurretAI : public FaceTargetITTS\n{\n float range;\n float speed;\n float mrange;\npublic: TurretAI();\n virtual void Execute();\n virtual void getAverageGunSpeed( float &speed, float &rang...
91
3
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.38, "nodes": 52, "errors": 0, "source_hash": "b21b4d41682c84086e2a10eb66e11cdc9a08c2d8cfcd70688e722c5bd58213fb", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,666
c
// // HWGOptionsColorToStore.h // StudyAid // // Created by Woudini on 1/7/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface HWGOptionsColorToStore : NSObject <NSCoding> -(instancetype)init; -(void)saveColor:(UIColor *)color; -(UIColor *)loadColor; @end
22.15
13
(translation_unit) "//\n// HWGOptionsColorToStore.h\n// StudyAid\n//\n// Created by Woudini on 1/7/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HWGOptionsColorToStore : NSObject <NSCoding>\n\n-(instancetype)init;\n-(void)saveColor:(UIColor *)color;\n-(UIColor ...
68
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.15, "nodes": 40, "errors": 0, "source_hash": "effbb85a07a47b99a5ae9961e7b1a3536e208f53b04e092a3813f3afb2f5edad", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,667
c
/* * Application.h * * Created on: 2013/04/14 * Author: kryozahiro */ #ifndef APPLICATION_H_ #define APPLICATION_H_ #include <csignal> #include <iostream> #include <boost/serialization/singleton.hpp> #include <boost/program_options.hpp> namespace cpputil { namespace detail { //終了ハンドラ extern "C" void cp...
26.97
79
(translation_unit) "/*\n * Application.h\n *\n * Created on: 2013/04/14\n * Author: kryozahiro\n */\n\n#ifndef APPLICATION_H_\n#define APPLICATION_H_\n\n#include <csignal>\n#include <iostream>\n#include <boost/serialization/singleton.hpp>\n#include <boost/program_options.hpp>\n\nnamespace cpputil {\n\nnamespace d...
639
39
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 26.97, "nodes": 377, "errors": 0, "source_hash": "290f5d2c9da8d499ef757106393cc5d641e31c685c44a4752a3eee5931f13644", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,668
c
#ifndef EXAMPLE_SIZES_H #define EXAMPLE_SIZES_H #include <stddef.h> size_t *select_sizes(size_t count, size_t max_size); size_t *read_sizes(char *filename, size_t count); void print_sizes(size_t *sizes, size_t count); #endif
31.14
7
(translation_unit) "#ifndef EXAMPLE_SIZES_H\n#define EXAMPLE_SIZES_H\n\n#include <stddef.h>\n\nsize_t *select_sizes(size_t count, size_t max_size);\nsize_t *read_sizes(char *filename, size_t count);\nvoid print_sizes(size_t *sizes, size_t count);\n\n#endif\n" (preproc_ifdef) "#ifndef EXAMPLE_SIZES_H\n#define EXAMPLE_...
64
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 31.14, "nodes": 51, "errors": 0, "source_hash": "b64de542af4707c8ac4a28cfbec38b1b982f3fb8772ed3670cfaaf9f77067b97", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
79,669
c
#pragma once #include "Account.h" class SavingsAccount : public Account { public: SavingsAccount(); SavingsAccount(const std::string&, const std::string&, const double&, const double&); virtual SavingsAccount* copy() const; virtual ~SavingsAccount() {} virtual void deposit(const double&); virtual bool withdraw...
22.89
18
(translation_unit) "#pragma once\n#include "Account.h"\n\nclass SavingsAccount : public Account\n{\npublic:\n SavingsAccount();\n SavingsAccount(const std::string&, const std::string&, const double&, const double&);\n virtual SavingsAccount* copy() const;\n virtual ~SavingsAccount() {}\n \n virtual void deposit(const d...
154
14
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.89, "nodes": 79, "errors": 0, "source_hash": "aede6e98adca03976c63f0236e086a126c6ef1367a4903b322249faab8164bbb", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,670
c
#ifndef TOKEN_H_ #define TOKEN_H_ #include <iostream> #include <string> #include <map> template <class K, class V> std::map<V, K> invert(const std::map<K, V> map) { std::map<V, K> inverted; for (auto entry : map) { inverted[entry.second] = entry.first; } return inverted; } enum class Tag { ...
24.53
118
(ERROR) "#ifndef TOKEN_H_\n#define TOKEN_H_\n\n#include <iostream>\n#include <string>\n#include <map>\n\ntemplate <class K, class V>\nstd::map<V, K> invert(const std::map<K, V> map) {\n std::map<V, K> inverted;\n for (auto entry : map) {\n inverted[entry.second] = entry.first;\n }\n return inverted;\...
973
40
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 24.53, "nodes": 417, "errors": 0, "source_hash": "036b4cf3e4fd2165e40eb8ecc5906ae0d11231b28d869796c093e8005b888c08", "categorized_nodes": 347}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TOKEN_H_\n#defin...
79,671
c
/** * @file newsem.c * @provides newsem, allocsem * * $Id: newsem.c 217 2007-07-11 01:03:18Z brylow $ */ /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ #include <kernel.h> #include <semaphore.h> static semaphore allocsem(void); /** * newsem - allocate and initialize a new semaphore. * @param c...
28.59
51
(translation_unit) "/**\n * @file newsem.c\n * @provides newsem, allocsem\n *\n * $Id: newsem.c 217 2007-07-11 01:03:18Z brylow $\n */\n/* Embedded XINU, Copyright (C) 2007. All rights reserved. */\n\n#include <kernel.h>\n#include <semaphore.h>\n\nstatic semaphore allocsem(void);\n\n/**\n * newsem - allocate and initi...
206
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.59, "nodes": 116, "errors": 0, "source_hash": "0c14373814701b2c0113225bc0d0006194e2a736b66663a2fa402bd66f1f35bc", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,672
c
/** * FastReport Cloud * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * NOTE: This class is auto generated by OpenAPI-Generator 5.1.1. * https://openapi-generator.tech * Do not edit the class manually. *...
27.36
159
(translation_unit) "/**\n * FastReport Cloud\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: v1\n *\n * NOTE: This class is auto generated by OpenAPI-Generator 5.1.1.\n * https://openapi-generator.tech\n * Do not...
925
47
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 27.36, "nodes": 506, "errors": 0, "source_hash": "4ce63540cf1ba3120c67063428c58fce67fda80f2e945537343fea1015b8b553", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,673
c
#ifndef _RADAR_H__ #define _RADAR_H__ class radar { private: public: int Bodysign_val(int ad1, int ad2, int ad3, int ad4, int ad5); int Situation_judgment(int ad1, int ad2, int ad3, int ad4, int ad5); int Fall_judgment(int ad1, int ad2, int ad3, int ad4); char CRC(char ...
29.38
13
(translation_unit) "#ifndef _RADAR_H__\n#define _RADAR_H__\n\nclass radar\n{\n private:\n \n public:\n int Bodysign_val(int ad1, int ad2, int ad3, int ad4, int ad5);\n int Situation_judgment(int ad1, int ad2, int ad3, int ad4, int ad5);\n int Fall_judgment(int ad1, int ad2, int ad3, in...
134
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.38, "nodes": 94, "errors": 0, "source_hash": "b1e8c4b0079193c3f76e0cbee77802018836a3099982dbe0e52eae14b566d824", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,674
c
#pragma once enum co_state { co_dead = 0, co_ready = 1, co_running = 2, co_suspend = 3 }; struct co_schedule; // co_schedule typedef void (*co_func)(struct co_schedule*, void* ud); struct co_schedule* co_open(void); void co_close(struct co_schedule*); int co_new(struct co_schedule*, co_func, void* u...
27.44
18
(translation_unit) "#pragma once\n\nenum co_state {\n co_dead = 0,\n co_ready = 1,\n co_running = 2,\n co_suspend = 3\n};\n\nstruct co_schedule; // co_schedule\n\ntypedef void (*co_func)(struct co_schedule*, void* ud);\n\nstruct co_schedule* co_open(void);\nvoid co_close(struct co_schedule*);\nint co_new(st...
178
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.44, "nodes": 136, "errors": 0, "source_hash": "93cbf4b9d7e458ec46185b0b4a742e2a83277f3dac977583a8afd64a9dde2f15", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,675
c
#pragma once #include <iostream> #include <vector> #include <thread> #include <fstream> #include <direct.h> #include "common.h" extern char* USER_HOME; class CrossProcessMessage { private: std::thread confirmation_thread; std::string message; std::string title; public: CrossProcessMessage(const std::string&...
22.85
20
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <vector>\n#include <thread>\n#include <fstream>\n\n#include <direct.h>\n\n#include "common.h"\n\nextern char* USER_HOME;\n\nclass CrossProcessMessage {\n\nprivate: \n std::thread confirmation_thread;\n std::string message;\n std::string title;\n\npublic:...
133
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.85, "nodes": 78, "errors": 0, "source_hash": "0b9603c3aefdea45897c797980d3d2080b90d572944800bd100096ea112a1511", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,676
c
/* site:https://github.com/daishitong/51demo */ #include "HC_SR04.h" #include "Led.h" #define AlarmDistance 200 // 报警距离:200mm void main() { float distance; // 超声模块初始化 HC_SR04_Init(); while (1) { // 获取超声模块到障碍物的距离 distance = HC_SR04_GetDistance(); if (distance < AlarmDis...
20
23
(translation_unit) "/* site:https://github.com/daishitong/51demo */\n\n#include "HC_SR04.h"\n#include "Led.h"\n\n#define AlarmDistance 200 // 报警距离:200mm\n\nvoid main()\n{\n float distance;\n\n // 超声模块初始化\n HC_SR04_Init();\n while (1)\n {\n // 获取超声模块到障碍物的距离\n distance = HC_SR04_GetDistance...
93
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.0, "nodes": 39, "errors": 0, "source_hash": "299c3867642b8b203ba15c105181639f580e358f44856643c8b613798a4305e3", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,677
c
// wxSemaphore.h // This file was automatically generated // by extractxml.rb, part of the wxRuby project // Do not make changes directly to this file! #if !defined(_wxSemaphore_h_) #define _wxSemaphore_h_ class wxSemaphore { public: /** * \brief Specifying a of 0 actually makes wxSemaphore behave as if there is ...
25.67
49
(translation_unit) "// wxSemaphore.h\n// This file was automatically generated\n// by extractxml.rb, part of the wxRuby project\n// Do not make changes directly to this file!\n\n#if !defined(_wxSemaphore_h_)\n#define _wxSemaphore_h_\nclass wxSemaphore\n{\npublic:\n /**\n * \brief Specifying a of 0 actually makes wxS...
104
3
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 25.67, "nodes": 62, "errors": 0, "source_hash": "578493235d96b01ccf17c61f00986c90ec6ee0dda0da5652aa99ec01292b6108", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
79,678
c
// // GJGCChatOtherApplyMyAuthorizWithStateCell.h // ZYChat // // Created by ZYVincent on 14-11-5. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import "GJGCChatAuthorizAskCell.h" @interface GJGCChatOtherApplyMyAuthorizWithStateCell : GJGCChatAuthorizAskCell @end
27.1
10
(translation_unit) "//\n// GJGCChatOtherApplyMyAuthorizWithStateCell.h\n// ZYChat\n//\n// Created by ZYVincent on 14-11-5.\n// Copyright (c) 2014年 ZYProSoft. All rights reserved.\n//\n\n#import "GJGCChatAuthorizAskCell.h"\n\n@interface GJGCChatOtherApplyMyAuthorizWithStateCell : GJGCChatAuthorizAskCell\n\n@end\n" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.1, "nodes": 10, "errors": 0, "source_hash": "39e453247a794229c113da922f607fd01ae7d0c649efb667c21ed7e9c56803c0", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"GJG...
79,679
c
// // NSString+SZ.h // SZKit // // Created by 张杰华 on 2018/9/18. // Copyright © 2018年 张杰华. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NSString (SZ) /** 计算文字大小 @param maxWidth 最大宽度 @param font 字体 @return 高度 */ - (CGFloat)sz_heightWithMaxWidth:(CGFloat)maxWidt...
16.21
28
(translation_unit) "//\n// NSString+SZ.h\n// SZKit\n//\n// Created by 张杰华 on 2018/9/18.\n// Copyright © 2018年 张杰华. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface NSString (SZ)\n\n/**\n 计算文字大小\n\n @param maxWidth 最大宽度\n @param font 字体\n @return 高度\n */\n- (CGFloa...
77
6
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 16.21, "nodes": 45, "errors": 0, "source_hash": "7e9806a4a3b0600d7c18c7ec4e46deff2dd63fa1422da22d91178c353f27149a", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Foun...
79,680
c
// // DB_FileMetaInfo.h // ChatApp // // Created by <NAME> on 23/08/15. // Copyright (c) 2015 AppLogic. All rights reserved. // #import <CoreData/CoreData.h> #import <Foundation/Foundation.h> /// `DB_FileMetaInfo` is DB class is used for storing the attachment details in core database. @interface DB_FileMetaInfo ...
42.82
34
(translation_unit) "//\n// DB_FileMetaInfo.h\n// ChatApp\n//\n// Created by <NAME> on 23/08/15.\n// Copyright (c) 2015 AppLogic. All rights reserved.\n//\n\n#import <CoreData/CoreData.h>\n#import <Foundation/Foundation.h>\n\n/// `DB_FileMetaInfo` is DB class is used for storing the attachment details in core databa...
231
46
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 42.82, "nodes": 165, "errors": 0, "source_hash": "8fad92af5dea5671535faa1e7644d02549eca9faee497c5fb7055c93f15fbdd9", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,681
c
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #define NCODE 1024 static ulong code[NCODE]; static ulong *codep; ulong (*getcontext)(void); void (*putcontext)(ulong); void (*putenab)(ulong); ulong (*getenab)(void); ulong (*getsysspace)(ulong); void (*putsyss...
24.17
166
(translation_unit) "#include "u.h"\n#include "../port/lib.h"\n#include "mem.h"\n#include "dat.h"\n#include "fns.h"\n#include "io.h"\n\n#define NCODE 1024\nstatic ulong code[NCODE];\nstatic ulong *codep;\n\nulong (*getcontext)(void);\nvoid (*putcontext)(ulong);\nvoid (*putenab)(ulong);\nulong (*getenab)(void);\nulong (*...
1,522
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 24.17, "nodes": 967, "errors": 0, "source_hash": "a966c1ac1778707c3fd11734af72ce93b70b03375195a51199705cea0a24f708", "categorized_nodes": 683}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,682
c
// Filename: cullHandler.h // Created by: drose (23Feb02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should ...
38.18
39
(translation_unit) "// Filename: cullHandler.h\n// Created by: drose (23Feb02)\n//\n////////////////////////////////////////////////////////////////////\n//\n// PANDA 3D SOFTWARE\n// Copyright (c) Carnegie Mellon University. All rights reserved.\n//\n// All use of this software is subject to the terms of the revised ...
152
5
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 38.18, "nodes": 85, "errors": 0, "source_hash": "607acbee3b49a499eb0578c579c8d2c78eae15383d186bd19a630ab69c0fac4a", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,683
c
#ifndef ASN1ENUMERATED_H_ #define ASN1ENUMERATED_H_ #include "Asn1Type.h" class Asn1Enumerated : public Asn1Type { public: Asn1Enumerated(); Asn1Enumerated(ASN1_TYPE* type); virtual ~Asn1Enumerated(); long getValue() const throw(); void setValue(long c) throw(); }; #endif /*ASN1ENUMERATED_H_*/
20.57
14
(translation_unit) "#ifndef ASN1ENUMERATED_H_\n#define ASN1ENUMERATED_H_\n\n#include "Asn1Type.h"\n\nclass Asn1Enumerated : public Asn1Type\n{\npublic:\n Asn1Enumerated();\n Asn1Enumerated(ASN1_TYPE* type);\n virtual ~Asn1Enumerated();\n \n long getValue() const throw();\n void setValue(long c) throw();\n};\n\n#endif /...
91
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.57, "nodes": 51, "errors": 0, "source_hash": "08f18bf74f25fa4029f360b92cc3902959598e48f77942f20b9ac7fc6bdcc8b4", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,684
c
void test(int parent, int pos){ pos = parent ;}
26
2
(translation_unit) "void test(int parent, int pos){\npos = parent ;}" (function_definition) "void test(int parent, int pos){\npos = parent ;}" (primitive_type) "void" (function_declarator) "test(int parent, int pos)" (identifier) "test" (parameter_list) "(int parent, int pos)" ...
24
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 26.0, "nodes": 15, "errors": 0, "source_hash": "eb20f9077ef78a8691e9d05063269f317d28f53781fe8ffebfa8276e22593a5e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void...
79,685
c
/* * The MIT License (MIT) * * Copyright (c) 2020 <NAME> (tinyusb.org) for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without ...
36.18
79
(translation_unit) "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2020 <NAME> (tinyusb.org) for Adafruit Industries\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without rest...
358
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 36.18, "nodes": 205, "errors": 0, "source_hash": "bed9cf6a11544093fb12ef2c0e36f7c55f86ba99dbdc9e41a1b903fa453d9d02", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,686
c
#pragma once #include "hook_functions.h" struct Hook { DWORD64 address; //Function address we're hooking. int length; //Function length DWORD64 function; //Hook function address }; volatile DWORD64 isFunctionActive = 0; volatile DWORD64 activeFunction = 0; volatile DWORD64* isFunctionActiveP = &isFunctionActive...
24.73
22
(translation_unit) "#pragma once\n#include "hook_functions.h"\n\nstruct Hook\n{\n DWORD64 address; //Function address we're hooking.\n int length; //Function length\n DWORD64 function; //Hook function address\n};\n\nvolatile DWORD64 isFunctionActive = 0;\nvolatile DWORD64 activeFunction = 0;\n\nvolatile DWORD64* isFu...
142
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.73, "nodes": 99, "errors": 0, "source_hash": "40e44639eba991cfdca22616915f2d81a6277ec2c037451cb497d5cb1f25580b", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,687
c
/** * 2. Write a program to compute the derivative of a polynomial. * You will need first to decide how to store a polynomial. */ #pragma once #include <iostream> #include <vector> namespace ex2 { class Term { public: Term() = delete; Term(int scalar, int exponent); bool operator==(const Term& other) c...
28.2
55
(translation_unit) "/**\n * 2. Write a program to compute the derivative of a polynomial.\n * You will need first to decide how to store a polynomial.\n */\n#pragma once\n#include <iostream>\n#include <vector>\n\nnamespace ex2\n{\n class Term\n {\n public:\n Term() = delete;\n Term(int scalar, int exponent);\n\n ...
548
39
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.2, "nodes": 300, "errors": 0, "source_hash": "e61399b3e530f4318fd867b90e6456ccc4bdbda38a31c9483ffeefc32cd8915d", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,688
c
// // XRBaseTableViewCell.h // ImageRecognition // // Created by 刘永杰 on 2018/9/30. // Copyright © 2018 刘永杰. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface XRBaseTableViewCell : UITableViewCell - (void)setupViews; - (void)configModelData:(id)model; @end NS_ASSUME_NONNULL_EN...
21.5
14
(translation_unit) "//\n// XRBaseTableViewCell.h\n// ImageRecognition\n//\n// Created by 刘永杰 on 2018/9/30.\n// Copyright © 2018 刘永杰. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface XRBaseTableViewCell : UITableViewCell\n\n- (void)setupViews;\n\n- (void)configModelData:(i...
53
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.5, "nodes": 31, "errors": 0, "source_hash": "da1ae282a8a6e90a197e4656f69d636797e067845709cfa17629128c9b89b60f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit.h>...
79,689
c
// // CreateGif.h // gifCreator // // Created by remi on 21/04/14. // Copyright (c) 2014 remi. All rights reserved. // #import <Foundation/Foundation.h> @interface CreateGif : NSObject + (void) makeAnimatedGif:(NSArray *)tabImage :(UIViewController *)vc; //+ (void) makeAnimatedGif:(NSArray *)tabImage; @end
25
12
(translation_unit) "//\n// CreateGif.h\n// gifCreator\n//\n// Created by remi on 21/04/14.\n// Copyright (c) 2014 remi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CreateGif : NSObject\n\n+ (void) makeAnimatedGif:(NSArray *)tabImage :(UIViewController *)vc;\n//+ (void) makeAnimatedGi...
49
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.0, "nodes": 24, "errors": 0, "source_hash": "c6c8acc58336a44e9a77a3c48d8c73cb88ebb2ca6cbca8d8e062f5e52543d48a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
79,690
c
int entry (int n) { return n; }
11
3
(translation_unit) "int entry (int n) {\n return n;\n}\n\n" (function_definition) "int entry (int n) {\n return n;\n}" (primitive_type) "int" (function_declarator) "entry (int n)" (identifier) "entry" (parameter_list) "(int n)" (() "(" (parameter_declaration) "int n" ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 11.0, "nodes": 10, "errors": 0, "source_hash": "1b0d0d2448cb99cdb140e56b2676c4f4cbbfa71fbd6563a11e0d7d7d7552b4e5", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int e...
79,691
c
/* * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. * * @author <NAME> */ #ifndef CXA_MQTT_RPC_MESSAGE_H_ #define CXA_MQTT_RPC_MESSAGE_H_ // ******** includes ******** #include <stdbool.h> #include <cxa_mqtt_message.h> // ******** global...
32.19
21
(translation_unit) "/*\n * This file is subject to the terms and conditions defined in\n * file 'LICENSE', which is part of this source code package.\n *\n * @author <NAME>\n */\n#ifndef CXA_MQTT_RPC_MESSAGE_H_\n#define CXA_MQTT_RPC_MESSAGE_H_\n\n\n// ******** includes ********\n#include <stdbool.h>\n#include <cxa_mqtt...
67
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.19, "nodes": 51, "errors": 0, "source_hash": "9421e21112197256c380c449b489e8edc91742811b1540c95f39ecc295631323", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,692
c
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <sys/types.h> #include <unistd.h> #include <string.h> int main(int argc, char** argv) { if (ar...
27.42
19
(translation_unit) "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include <string.h>\n\nint main(int a...
118
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.42, "nodes": 75, "errors": 0, "source_hash": "6828b945f0956e90c0d28c66f0825c7b35216b039a7a1a9dcd361da53ecf4b9d", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,693
c
#ifndef VMATH_H #define VMATH_H typedef struct Vec2 { float x, y; } Vec2; typedef struct Vec3 { float x, y, z; } Vec3; typedef struct Vec4 { float x, y, z, w; } Vec4; /* 2 Dimensional Vector Functions */ float vec2_get_mag(const Vec2* v); float vec2_get_angle(const Vec2* v1, const Vec2* v2); // basic operati...
29
39
(translation_unit) "#ifndef VMATH_H\n#define VMATH_H\n\ntypedef struct Vec2\n{\n float x, y;\n} Vec2;\n\ntypedef struct Vec3\n{\n float x, y, z;\n} Vec3;\n\ntypedef struct Vec4\n{\n float x, y, z, w;\n} Vec4;\n\n\n\n/* 2 Dimensional Vector Functions\n */\nfloat vec2_get_mag(const Vec2* v);\nfloat vec2_get_angle(const V...
448
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.0, "nodes": 307, "errors": 0, "source_hash": "d075444c191d775889566d1241614e54bad84aacf6e1b1e59e652e1e97b9108d", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,694
c
// // LYVisibleLabel.h // LYToolAssetsLocal // // Created by ylei on 16/6/12. // Copyright © 2016年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> IB_DESIGNABLE @interface LYVisibleLabel : UILabel @property (nonatomic, assign) IBInspectable CGFloat borderWidth; @property (nonatomic, assign) IBInspectable U...
28.36
14
(translation_unit) "//\n// LYVisibleLabel.h\n// LYToolAssetsLocal\n//\n// Created by ylei on 16/6/12.\n// Copyright © 2016年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\nIB_DESIGNABLE\n@interface LYVisibleLabel : UILabel\n@property (nonatomic, assign) IBInspectable CGFloat borderWidth;\n@property (no...
75
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.36, "nodes": 51, "errors": 0, "source_hash": "d98aed37563044c23e5b7044380ca37593f990112a32c2b2c363d36bd03ed74d", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,695
c
/* * File: cogwheelserversettingsdialog.h * * Author: <NAME> * * Created on August 10, 2017 * * Copyright 2017. * */ #ifndef COGWHEELSERVERSETTINGSDIALOG_H #define COGWHEELSERVERSETTINGSDIALOG_H // // Class: CogWheelServerSettingsDialog // // Description: Class to display server settings dialog. // // ===...
24.64
55
(translation_unit) "/*\n * File: cogwheelserversettingsdialog.h\n *\n * Author: <NAME>\n *\n * Created on August 10, 2017\n *\n * Copyright 2017.\n *\n */\n\n#ifndef COGWHEELSERVERSETTINGSDIALOG_H\n#define COGWHEELSERVERSETTINGSDIALOG_H\n\n//\n// Class: CogWheelServerSettingsDialog\n//\n// Description: Class to displ...
212
12
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.64, "nodes": 111, "errors": 0, "source_hash": "f9c78a18c7d3b75a97abb139e8acd3d34a5cd15914dec2de67b276d83c8e17b6", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,696
c
/* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
32.19
58
(translation_unit) "/* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless ...
304
10
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 32.19, "nodes": 190, "errors": 0, "source_hash": "6ada95dce7549ed27a551596f7a6e2c08555d9be1f2b51d68165f2775ac5fc58", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,697
c
#pragma once #include <array> #include <curses.h> #include <chrono> #include <iostream> #include <random> #include <thread> #include <ctime> #include <vector> static int RandInt(int low, int high) { static std::default_random_engine re{}; using Dist = std::uniform_int_distribution<int>; static Dist uid{}; retu...
22.98
57
(translation_unit) "#pragma once\n\n#include <array>\n#include <curses.h>\n#include <chrono>\n#include <iostream>\n#include <random>\n#include <thread> \n#include <ctime>\n#include <vector>\n\nstatic int RandInt(int low, int high)\n{\n static std::default_random_engine re{};\n using Dist = std::uniform_int_distributi...
404
9
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.98, "nodes": 258, "errors": 0, "source_hash": "308d71383fe99c0a3b7b2495b4290d8d57103de46547c49c5f8b9b7b49e8c07f", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,698
c
/* The MIT License (MIT) Copyright (c) 2014 <NAME> ** Glucose project** evo.h */ #ifndef EVO_H_INCLUDED #define EVO_H_INCLUDED #define EVO_ERROR -1 #define EVO_OK 0 #include "structures.h" #define F 0.45 // mutation constant #define CR 0.4 // threshold #define PENALTY 10000.0f extern int num_generations; // gene...
36.15
20
(translation_unit) "/*\nThe MIT License (MIT)\nCopyright (c) 2014 <NAME>\n\n** Glucose project**\nevo.h\n*/\n\n#ifndef EVO_H_INCLUDED\n#define EVO_H_INCLUDED\n\n#define EVO_ERROR -1\n#define EVO_OK 0\n\n#include "structures.h"\n\n#define F 0.45 // mutation constant\n#define CR 0.4 // threshold\n\n#define PENALTY 10000....
162
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.15, "nodes": 127, "errors": 0, "source_hash": "cfcae74aabbafe6ed67bba922528b2f2ed8c29702cef805345c1e03440d0672f", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,699