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
#include<string.h> #include<stdio.h> #define maxn 260 int main(){ char Sen[110][maxn+1]; int len[110]; char same[maxn]; int length=0; int N,i,j; scanf("%d",&N); getchar(); fgets(Sen[0],maxn,stdin); len[0]=strlen(Sen[0])-2; fgets(Sen[1],maxn,stdin); len[1]=strlen(Sen[1])-2; ...
21.93
40
(translation_unit) "#include<string.h>\n#include<stdio.h>\n#define maxn 260\n\nint main(){\n char Sen[110][maxn+1];\n int len[110];\n char same[maxn];\n int length=0;\n int N,i,j;\n scanf("%d",&N);\n getchar();\n fgets(Sen[0],maxn,stdin);\n len[0]=strlen(Sen[0])-2;\n fgets(Sen[1],maxn,stdi...
470
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.93, "nodes": 270, "errors": 0, "source_hash": "890005249192fa7a1c7f8db61cd5fe17149e1ce5a12ce469b6c3b1b2120524da", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,000
c
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THC/generic/THCTensorMath.h" #else THC_API void THCTensor_(fill)(THCState *state, THCTensor *self, scalar_t value); THC_API void THCTensor_(zero)(THCState *state, THCTensor *self); THC_API ptrdiff_t THCTensor_(numel)(THCState *state, THCTensor *t); #endif
37.5
8
(translation_unit) "#ifndef THC_GENERIC_FILE\n#define THC_GENERIC_FILE "THC/generic/THCTensorMath.h"\n#else\n\nTHC_API void THCTensor_(fill)(THCState *state, THCTensor *self, scalar_t value);\nTHC_API void THCTensor_(zero)(THCState *state, THCTensor *self);\nTHC_API ptrdiff_t THCTensor_(numel)(THCState *state, THCTenso...
96
3
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 37.5, "nodes": 76, "errors": 0, "source_hash": "f1c93f7f5fe8408ebe35ba80b62cc361711a00707706c28cd0dd1e5c1863cb04", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TH...
14,001
c
// // PictureTaker.h // PicturePicker // // Created by felix on 2016/11/1. // Copyright © 2016年 felix. All rights reserved. // #import <UIKit/UIKit.h> #import <Photos/Photos.h> @interface PictureTaker : UIViewController typedef void (^PicturesPHFetchResult)(PHFetchResult<PHAsset *> * result); typedef void (^Back...
23.86
14
(translation_unit) "//\n// PictureTaker.h\n// PicturePicker\n//\n// Created by felix on 2016/11/1.\n// Copyright © 2016年 felix. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Photos/Photos.h>\n\n@interface PictureTaker : UIViewController\n\ntypedef void (^PicturesPHFetchResult)(PHFetchResult<PHAsset ...
69
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.86, "nodes": 48, "errors": 0, "source_hash": "4eff27d1ed3c0d5dfd35a1cee5e73476ce3086ec787921e87107bef62f9c7aa7", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,002
c
// // MasterViewController.h // rssr // // Created by <NAME> on 24/10/15. // // #import <UIKit/UIKit.h> #import "OPMLOutline.h" #import "OPMLOutlineXMLElement.h" #import "JDFTooltips.h" typedef enum { DisplayedDataType_Today , DisplayedDataType_Unread , DisplayedDataType_Bookmarks , DisplayedDataTy...
35.88
34
(translation_unit) "//\n// MasterViewController.h\n// rssr\n//\n// Created by <NAME> on 24/10/15.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import "OPMLOutline.h"\n#import "OPMLOutlineXMLElement.h"\n#import "JDFTooltips.h"\n\ntypedef enum {\n DisplayedDataType_Today\n , DisplayedDataType_Unread\n , DisplayedData...
158
23
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 35.88, "nodes": 113, "errors": 0, "source_hash": "478c0fb8462e043efa02786ce40f88aef966424a84aeb1d5d80e151e4dbf111c", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,003
c
/* * OCLExplorer bitcoin addresses brute-force tool * Based on: * Vanitygen, vanity bitcoin address generator * Copyright (C) 2011 <<EMAIL>> * */ #if !defined (__OCL_EXPLORER_H__) #define __OCL_EXPLORER_H__ #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #include <stdio.h> #include <string.h> #include <stdint.h> #if...
37.72
190
(translation_unit) "/*\n * OCLExplorer bitcoin addresses brute-force tool\n * Based on:\n * Vanitygen, vanity bitcoin address generator\n * Copyright (C) 2011 <<EMAIL>>\n *\n */\n\n#if !defined (__OCL_EXPLORER_H__)\n#define __OCL_EXPLORER_H__\n#define CL_USE_DEPRECATED_OPENCL_1_2_APIS\n\n#include <stdio.h>\n#include <s...
1,560
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 37.72, "nodes": 1163, "errors": 0, "source_hash": "855bc5962e3ed998f6f78ef64efe823dab49630e945d2dd7ca16b6f3bc18b873", "categorized_nodes": 732}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !de...
14,004
c
#pragma once #include <stdio.h> #include <stdlib.h> #include <string.h> #include "common/util.h" #include "ot/operation.h" // ############################## // ### xform // ############################## OP_PAIR pair_init(OP left, OP right) { return (OP_PAIR){left, right}; } OP_PAIR xform(OP a, OP b) { // */nop ...
30.43
100
(translation_unit) "#pragma once\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "common/util.h"\n#include "ot/operation.h"\n\n// ##############################\n// ### xform\n// ##############################\n\nOP_PAIR pair_init(OP left, OP right) { return (OP_PAIR){left, right}; }\n\nOP_PAI...
1,314
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 30.43, "nodes": 779, "errors": 0, "source_hash": "d69a052175e2fb1a14e2f096acf7bfdff82f75ed0fd113d228bb0747851d6147", "categorized_nodes": 618}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,005
c
#pragma once #include <functional> #include <random> #include <type_traits> namespace algorithm { template <typename Value = float> struct UniformDistribution { std::default_random_engine generator; std::uniform_real_distribution<Value> distribution{ 0.0f, 1.0f }; Value operator()() { return distribut...
27.85
114
(translation_unit) "ragma once\n\n#include <functional>\n#include <random>\n#include <type_traits>\n\nnamespace algorithm\n{\n template <typename Value = float>\n struct UniformDistribution\n {\n std::default_random_engine generator;\n std::uniform_real_distribution<Value> distribution{ 0.0f, 1.0f };\n\n Value opera...
886
52
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 27.85, "nodes": 625, "errors": 0, "source_hash": "6acc188d503ddbc7ec8b8bca4d52d162f698a0a9838d0974fb545818d074743d", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
14,006
c
#include <stdlib.h> #include <string.h> #include <unistd.h> #include "lib/base.h" #include "lib/bus.h" #include "lib/helpers.h" #include "lib/list.h" static void _on_message(struct ev_loop *loop, struct ev_io *watcher, int revents); bool bus_init(struct bus *bus, struct ev_loop *loop) { memset(bus, 0, sizeof(stru...
30.05
152
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "lib/base.h"\n#include "lib/bus.h"\n#include "lib/helpers.h"\n#include "lib/list.h"\n\n\nstatic void _on_message(struct ev_loop *loop, struct ev_io *watcher, int revents);\n\n\nbool bus_init(struct bus *bus, struct ev_loop *lo...
1,620
5
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 30.05, "nodes": 1006, "errors": 0, "source_hash": "e810cb240b3be0ce4f420a433f033e05b217824cd12831e718194bc2e6224b5e", "categorized_nodes": 748}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,007
c
// // SKMopidyPlayerViewController.h // SKMopidyDemo // // Created by <NAME> on 2016/4/20. // Copyright © 2016年 SK. All rights reserved. // #import <UIKit/UIKit.h> @import SKAvPlayer; @import AVFoundation; @interface SKAvPlayerViewController : UIViewController @property(nonatomic, strong, nullable) NSArray<AVAs...
26.29
14
(translation_unit) "//\n// SKMopidyPlayerViewController.h\n// SKMopidyDemo\n//\n// Created by <NAME> on 2016/4/20.\n// Copyright © 2016年 SK. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@import SKAvPlayer;\n@import AVFoundation;\n\n@interface SKAvPlayerViewController : UIViewController\n\n@property(nonato...
71
15
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.29, "nodes": 51, "errors": 0, "source_hash": "efe0daa45286621d747a8a2d18dc0b7ffdeebd361608365fc89617e4ebc28909", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,008
c
/* rtp_stream_dialog.h * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef RTP_STREAM_DIALOG_H #define RTP_STREAM_DIALOG_H #include "wireshark_dialog.h" #include "ui/rtp_stream.h" #include <QAbstractButton> #include <...
28.88
78
(translation_unit) "/* rtp_stream_dialog.h\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\n#ifndef RTP_STREAM_DIALOG_H\n#define RTP_STREAM_DIALOG_H\n\n#include "wireshark_dialog.h"\n\n#include "ui/rtp_stream.h"\n\n#...
415
9
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 28.88, "nodes": 270, "errors": 0, "source_hash": "90aab9a485b8a282984421a770734975a8fa7740285d2fc5e52bd50bded76c4e", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,009
c
#ifndef DALE_LINKAGE #define DALE_LINKAGE namespace dale { /*! Linkage Contains the variable and function linkage definitions. */ namespace Linkage { enum { Null, Auto, Intern, Extern, Extern_C, Extern_Weak }; /*! Check whether the linkage is an extern linkage. * @param linkage The linkage. */ bool isExtern(i...
23.62
39
(translation_unit) "#ifndef DALE_LINKAGE\n#define DALE_LINKAGE\n\nnamespace dale {\n/*! Linkage\n\n Contains the variable and function linkage definitions.\n*/\nnamespace Linkage {\nenum { Null, Auto, Intern, Extern, Extern_C, Extern_Weak };\n\n/*! Check whether the linkage is an extern linkage.\n * @param linkage ...
137
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.62, "nodes": 86, "errors": 0, "source_hash": "1da84ff1a7f429f4c08b0db98ac0286414f0229112716d69b9e69611671a28ea", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,010
c
#include "stdio.h" #include "string.h" #include "stdlib.h" #include "l2_cast.h" #include "../l2_drv/l2_assert.h" #include "../l2_tpl/l2_vector.h" #include "../l2_tpl/l2_stack.h" int l2_cast_hex_str_to_int(const char *s) { l2_assert(s, L2_INTERNAL_ERROR_NULL_POINTER); const char *p; int ans = 0, n = strlen...
29.34
62
(translation_unit) "#include "stdio.h"\n#include "string.h"\n#include "stdlib.h"\n\n#include "l2_cast.h"\n#include "../l2_drv/l2_assert.h"\n#include "../l2_tpl/l2_vector.h"\n#include "../l2_tpl/l2_stack.h"\n\nint l2_cast_hex_str_to_int(const char *s) {\n l2_assert(s, L2_INTERNAL_ERROR_NULL_POINTER);\n const char ...
672
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 29.34, "nodes": 431, "errors": 0, "source_hash": "046feb6c3065b8de46c37d9187dc43cdbe4c154e5e0b281be5fb224b4a9a88d9", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,011
c
/*! * @brief BAAlert * * @author BAHome * @copyright Copyright © 2016年 BAHome. All rights reserved. * @version V1.1.0 */ #import <UIKit/UIKit.h> #import "BAAlert_Config.h" @class BAActionSheet, BAActionSheetModel; typedef void(^BAActionSheet_ConfigBlock)(BAActionSheet *tempView); typedef voi...
35.72
47
(translation_unit) "/*!\n * @brief BAAlert\n *\n * @author BAHome\n * @copyright Copyright © 2016年 BAHome. All rights reserved.\n * @version V1.1.0\n */\n\n\n#import <UIKit/UIKit.h>\n#import "BAAlert_Config.h"\n\n@class BAActionSheet, BAActionSheetModel;\n\ntypedef void(^BAActionSheet_ConfigBlock)(BAAc...
328
59
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 35.72, "nodes": 246, "errors": 0, "source_hash": "c6dbee1cc5cb82f8324f70971fadfb76289a8c484f5625778900b958d19b3655", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <U...
14,012
c
/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * *************************************...
35.47
30
(translation_unit) "/****************************************************************************\n *\n * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>\n *\n * QGroundControl is licensed according to the terms in the file\n * COPYING.md in the root of the source code directory.\n *\n **********...
126
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.47, "nodes": 75, "errors": 0, "source_hash": "16c8de033031421a17380a2fb9d8f93c38c8d8628b392ba518ebff1f41d3f131", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,013
c
/* * 11. 盛最多水的容器 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 说明:你不能倾斜容器,且 n 的值至少为 2。 示例: 输入: [1,8,6,2,5,4,8,3,7] 输出: 49 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/container-with-most-water 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。...
22.83
66
(translation_unit) "/*\n * 11. 盛最多水的容器\n给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。\n\n说明:你不能倾斜容器,且 n 的值至少为 2。\n\n示例:\n\n输入: [1,8,6,2,5,4,8,3,7]\n输出: 49\n\n来源:力扣(LeetCode)\n链接:https://leetcode-cn.com/problems/container-with-most-water\n著...
335
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 22.83, "nodes": 204, "errors": 0, "source_hash": "cc377cc6b92f8ff3bbda6ee1bad07c85e774ca1e01e1383bed8e97746d78451a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": ...
14,014
c
#ifndef pxtnPulse_Frequency_H #define pxtnPulse_Frequency_H #include <pxtone/pxtn.h> class pxtnPulse_Frequency { private: void operator = (const pxtnPulse_Frequency&){} pxtnPulse_Frequency(const pxtnPulse_Frequency&){} float* _freq_table; double _GetDivideOctaveRate( int32_t divi ); public: pxtnPulse_Fre...
25.63
19
(translation_unit) "fndef pxtnPulse_Frequency_H\n#define pxtnPulse_Frequency_H\n\n#include <pxtone/pxtn.h>\n\nclass pxtnPulse_Frequency\n{\nprivate:\n void operator = (const pxtnPulse_Frequency&){}\n pxtnPulse_Frequency(const pxtnPulse_Frequency&){}\n\n float* _freq_table;\n double _GetDivideOctaveRate( int32_t divi...
137
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.63, "nodes": 84, "errors": 0, "source_hash": "e5c3278ce33d21ad279ecf2a5494c9aa53e74c9e79dce57c98d7d48b164bf165", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef px...
14,015
c
#pragma once #include <cstdint> #include <functional> #include <string> namespace dronecore { class UpdateImpl; class Update { public: explicit Update(UpdateImpl *impl); ~Update(); enum class UpdateInstruction : unsigned { UNKNOWN = 0, INSTALLED_VERSION_UNKNOWN = 1, LATEST_VERSI...
28.2
124
(translation_unit) "#pragma once\n\n#include <cstdint>\n#include <functional>\n#include <string>\n\nnamespace dronecore {\n\nclass UpdateImpl;\n\nclass Update\n{\npublic:\n explicit Update(UpdateImpl *impl);\n ~Update();\n\n enum class UpdateInstruction : unsigned {\n UNKNOWN = 0,\n INSTALLED_VER...
677
23
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 28.2, "nodes": 429, "errors": 0, "source_hash": "5c83c84e096aa929754adeb2a689b2d74e1c37275d2e0221a05f835c52cf167e", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,016
c
// license:BSD-3-Clause // copyright-holders:<NAME>,<NAME> /***************************************************************************** * * includes/stic.h * ****************************************************************************/ #ifndef MAME_VIDEO_STIC_H #define MAME_VIDEO_STIC_H // the Intellivision emu...
37.55
155
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>,<NAME>\n/*****************************************************************************\n *\n * includes/stic.h\n *\n ****************************************************************************/\n\n#ifndef MAME_VIDEO_STIC_H\n#define MAME_VIDEO_STI...
1,196
29
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 37.55, "nodes": 799, "errors": 0, "source_hash": "e3228ebfbfb0e05c8700a68de4d0ddc0eafd7114a3174f4502cd630876bc166d", "categorized_nodes": 533}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,017
c
// // MenuSelectionsController.h // romiboController_7 // // Created by <NAME> on 10/4/14. // Copyright (c) 2014 Origami Robotics. All rights reserved. // #import <Foundation/Foundation.h> //used to pass data between view controllers @interface MenuSelectionsController : NSObject //pbserves are notified when a b...
30.56
16
(translation_unit) "//\n// MenuSelectionsController.h\n// romiboController_7\n//\n// Created by <NAME> on 10/4/14.\n// Copyright (c) 2014 Origami Robotics. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//used to pass data between view controllers\n@interface MenuSelectionsController : NSObject\n\...
69
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.56, "nodes": 43, "errors": 0, "source_hash": "7d8019d14181908fc4a860dc90b8a1a63de03e1ba9b9a84eed2177e6f3ba680f", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,018
c
#include <stddef.h> #include "string.h" void *memcpy(void *dest, const void *src, size_t n) { char *d = dest; const char *s = src; for (size_t i=0; i<n; i++) d[i] = s[i]; return dest; } void memswap(void *a, void *b, size_t n) { char *ac = a; char *bc = b; char tmp; for (size_t i=0; i<n; i++) { tmp = ac[i]...
16.8
20
(translation_unit) "#include <stddef.h>\n\n#include "string.h"\n\nvoid *memcpy(void *dest, const void *src, size_t n)\n{\n char *d = dest;\n const char *s = src;\n for (size_t i=0; i<n; i++) d[i] = s[i];\n return dest;\n}\n\nvoid memswap(void *a, void *b, size_t n)\n{\n char *ac = a;\n char *bc = b;\n char tmp;\n for (...
199
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 16.8, "nodes": 137, "errors": 0, "source_hash": "005c8d56d9585af992020f9e3f6f0d0ed517e9564007c065634f52b238864498", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,019
c
/* iPIC3D was originally developed by <NAME> and <NAME>. * This release was contributed by <NAME> and <NAME>. * Publications that use results from iPIC3D need to properly cite * '<NAME>, <NAME>, and Rizwan-uddin. "Multi-scale simulations of * plasma with iPIC3D." Mathematics and Computers in Simulation 80.7 (20...
37.56
98
(translation_unit) "/* iPIC3D was originally developed by <NAME> and <NAME>. \n * This release was contributed by <NAME> and <NAME>.\n * Publications that use results from iPIC3D need to properly cite \n * '<NAME>, <NAME>, and Rizwan-uddin. "Multi-scale simulations of \n * plasma with iPIC3D." Mathematics and Computer...
981
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 37.56, "nodes": 619, "errors": 0, "source_hash": "d9aa591283da2e440c126780513d66e40827bdb3ddd0c471813680921baca95c", "categorized_nodes": 493}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,020
c
#ifndef BLOCKSOLVER_RIGIDBODYBOXES_H_ #define BLOCKSOLVER_RIGIDBODYBOXES_H_ class CommonExampleInterface* RigidBodyBoxesCreateFunc(struct CommonExampleOptions& options); #endif //BLOCKSOLVER_RIGIDBODYBOXES_H_
51.5
4
(translation_unit) "#ifndef BLOCKSOLVER_RIGIDBODYBOXES_H_\n#define BLOCKSOLVER_RIGIDBODYBOXES_H_\n\nclass CommonExampleInterface* RigidBodyBoxesCreateFunc(struct CommonExampleOptions& options);\n\n#endif //BLOCKSOLVER_RIGIDBODYBOXES_H_\n" (preproc_ifdef) "#ifndef BLOCKSOLVER_RIGIDBODYBOXES_H_\n#define BLOCKSOLVER_RI...
28
2
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 51.5, "nodes": 20, "errors": 0, "source_hash": "d943b05109d2aa159b15ac1d19319617df53c8ba7aab8d0695f7cbde434e9c6d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BL...
14,021
c
/* =================作者:张耀午================= 2016年11月23日17:15:26 版本: V2.1 联系方式: <EMAIL> =========================================== v1.0 实现超声波测距 v2.0 实现基于温度与晶振频率矫正的测距方式 v2.1 改为人性化接口,无需每次修正都要输入晶振频率 ------------------------------------------- */ #ifndef __SONAR_H_YAOWU__ #define __SONAR_H_YAO...
26.66
29
(translation_unit) "/*\n=================作者:张耀午=================\n2016年11月23日17:15:26 版本: V2.1\n联系方式: <EMAIL>\n===========================================\nv1.0 实现超声波测距\nv2.0 实现基于温度与晶振频率矫正的测距方式\nv2.1 改为人性化接口,无需每次修正都要输入晶振频率\n-------------------------------------------\n*/\n\n#ifndef __SONAR_...
115
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.66, "nodes": 85, "errors": 0, "source_hash": "00c81e173f3d7f6c3fe821373d7a13cdca6f1be6573cbe97e11276812d7c821f", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ine uint...
14,022
c
#pragma once #include "ofMain.h" namespace flowTools { class ftVisualizationTemperatureField : public ftVisualizationField{ public: void drawField(ofTexture _tex, int _x, int _y, int _width, int _height) override { ofPushMatrix(); ofTranslate(_x, _y); ofScale(_width, _height); float barHeight = _he...
27.94
18
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n\nnamespace flowTools {\n \n class ftVisualizationTemperatureField : public ftVisualizationField{\n public:\n void drawField(ofTexture _tex, int _x, int _y, int _width, int _height) override {\n ofPushMatrix();\n ofTranslate(_x, _y);\n ofScale(_width, _hei...
157
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.94, "nodes": 95, "errors": 0, "source_hash": "6f9b329632734b8b971ea049ed10629832edbfc3819198e5c1c7aa3cb71a325e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,023
c
typedef struct fifo_elem_float{ float value; struct fifo_elem_float* next; }FifoElemFloat; typedef struct fifo_float { FifoElemFloat* first; }FloatFifo; FloatFifo* floatFifoCreation(); int fifoWrite(float nv_val, FloatFifo* buff); int fifoRead(float *tete_val, FloatFifo* buff); void fifoClear(FloatFifo* buff)...
28
11
(translation_unit) "typedef struct fifo_elem_float{\n float value;\n struct fifo_elem_float* next;\n}FifoElemFloat;\n\ntypedef struct fifo_float {\n FifoElemFloat* first;\n}FloatFifo;\n\nFloatFifo* floatFifoCreation();\nint fifoWrite(float nv_val, FloatFifo* buff);\nint fifoRead(float *tete_val, FloatFifo* buff);\n...
98
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.0, "nodes": 72, "errors": 0, "source_hash": "9dc3647fae75a41251aec486930cb47eaee63b392f1e7c1da2a2a3e61386d0a8", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
14,024
c
#ifndef _STATUSBAR_H #define _STATUSBAR_H #include <pebble.h> void sb_init(); void sb_deinit(); void sb_show(char*); char* sb_printf_alloc(int); // allocate buffer char* sb_printf_get(); // get (already allocated) buffer void sb_printf_update(); void sb_hide(); void sb_window_disappear_cb(Window*); // must be called...
28.58
12
(translation_unit) "#ifndef _STATUSBAR_H\n#define _STATUSBAR_H\n\n#include <pebble.h>\n\nvoid sb_init();\nvoid sb_deinit();\n\nvoid sb_show(char*);\nchar* sb_printf_alloc(int); // allocate buffer\nchar* sb_printf_get(); // get (already allocated) buffer\nvoid sb_printf_update();\nvoid sb_hide();\nvoid sb_window_disappe...
92
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.58, "nodes": 64, "errors": 0, "source_hash": "21995c06908cac0695f6948ef85f009c7a451086e4f6edf38b6b2bff6e42ea15", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,025
c
#pragma CHECK_MISRA("none") void Delay_Us(long t); void Delay_ms(long t); void LCD_INIT(void); void LCD_command(unsigned char command); void LCD_data( char data);
26.17
6
(translation_unit) "#pragma CHECK_MISRA("none")\n\nvoid Delay_Us(long t);\nvoid Delay_ms(long t);\nvoid LCD_INIT(void);\nvoid LCD_command(unsigned char command);\nvoid LCD_data( char data);\n\n\n\n\n" (preproc_call) "#pragma CHECK_MISRA("none")\n" (preproc_directive) "#pragma" (preproc_arg) "CHECK_MISRA("none...
62
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.17, "nodes": 46, "errors": 0, "source_hash": "00b2afe6d910ed241da8e5f47f3ca3447fdb6e57197f9064cecfa57b5058d242", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma CH...
14,026
c
// // ZNGInitialsAvatar.h // Pods // // Created by <NAME> on 12/21/16. // // #import <Foundation/Foundation.h> #import "JSQMessagesViewController/JSQMessageAvatarImageDataSource.h" NS_ASSUME_NONNULL_BEGIN @interface ZNGInitialsAvatar : NSObject <JSQMessageAvatarImageDataSource> + (instancetype) new NS_UNAVAILABL...
37.48
21
(translation_unit) "//\n// ZNGInitialsAvatar.h\n// Pods\n//\n// Created by <NAME> on 12/21/16.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import "JSQMessagesViewController/JSQMessageAvatarImageDataSource.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZNGInitialsAvatar : NSObject <JSQMessageAvatarImageDataSource>\n\...
210
18
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 37.48, "nodes": 134, "errors": 0, "source_hash": "509190a3502a4b03b8dccce77580d188be866dcfc855827c46d05f1a46abe683", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,027
c
/* * Copyright (C) Kreogist Dev Team * * You can redistribute this software and/or modify it under the * terms of the HARERU Software License; either version 1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY W...
26.26
190
(translation_unit) "/* \n * Copyright (C) Kreogist Dev Team \n * \n * You can redistribute this software and/or modify it under the \n * terms of the HARERU Software License; either version 1 of the \n * License, or (at your option) any later version. \n * \n * This program is distributed in the hope that it will be us...
887
25
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 26.26, "nodes": 570, "errors": 0, "source_hash": "ed2ba82314919f8904d5688c7e79c5d828591a5a546267f32ebe8fe097304d13", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,028
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <inttypes.h> namespace facebook { namespace memcache { constexpr uint64_t kRendezvousHashSeed = 4193360111...
31.16
37
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <inttypes.h>\n\nnamespace facebook {\nnamespace memcache {\n\nconstexpr uint64_...
212
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.16, "nodes": 146, "errors": 0, "source_hash": "175d547fb7a15aa3d43cebc04d40ea71576d654809040c73af5470227f52d123", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,029
c
/* * `Finding path motifs in large temporal graphs using algebraic fingerprints` * * This experimental source code is supplied to accompany the * aforementioned paper. * * The source code is configured for a gcc build to a native microarchitecture * that must support the AVX2 and PCLMULQDQ instruction set e...
28.55
145
(translation_unit) "/* \n * `Finding path motifs in large temporal graphs using algebraic fingerprints` \n *\n * This experimental source code is supplied to accompany the \n * aforementioned paper. \n * \n * The source code is configured for a gcc build to a native microarchitecture\n * that must support the AVX2 and ...
314
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 28.55, "nodes": 309, "errors": 0, "source_hash": "60a23726f4a00ecca045c70c3be252a2c951fed5512a017746981b7bdb9cb9f6", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
14,030
c
#ifndef _LTFAT_MEX_FILE #define _LTFAT_MEX_FILE /* Define which arguments are to be checked and cast to single if either of them is single. */ #define NARGINEQ 4 #define TYPEDEPARGS 0, 1 #define SINGLEARGS #define COMPLEXINDEPENDENT #endif /* _LTFAT_MEX_FILE */ /* Obtain this filename. */ #if defined(__GNUC__) || d...
35.82
84
(translation_unit) "#ifndef _LTFAT_MEX_FILE\n#define _LTFAT_MEX_FILE\n\n/* Define which arguments are to be checked and cast to single if either of them is single. */\n#define NARGINEQ 4\n#define TYPEDEPARGS 0, 1\n#define SINGLEARGS\n#define COMPLEXINDEPENDENT\n\n#endif /* _LTFAT_MEX_FILE */\n\n/* Obtain this filename...
519
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 35.82, "nodes": 339, "errors": 0, "source_hash": "f5ac64d9e58fc8a8ad938a29645c639e1a50dc6cacfb779e15f31b5378ed46e3", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,031
c
/* * $Id: md5-test.c,v 1.2 1998/09/23 17:16:11 wessels Exp $ */ /* * COMPILE WITH: * gcc -Wall md5-test.c -I../include md5.o */ #include "config.h" #include "md5.h" #include "stdio.h" static void MDPrint(unsigned char digest[16]); static void MDString(char *string); static void MDString(char *string) { ...
23.15
47
(translation_unit) "/*\n * $Id: md5-test.c,v 1.2 1998/09/23 17:16:11 wessels Exp $\n */\n\n/*\n * COMPILE WITH:\n * gcc -Wall md5-test.c -I../include md5.o\n */\n\n#include "config.h"\n#include "md5.h"\n#include "stdio.h"\n\nstatic void MDPrint(unsigned char digest[16]);\nstatic void MDString(char *string);\n\nsta...
348
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.15, "nodes": 183, "errors": 0, "source_hash": "e2a4c6eedcfa027097b3f15db943fe52d178fc8cae4ef07d17b3e81b4e7c09cc", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,032
c
#include "HVM.h" #include "../Arch/Intel/EPT.h" #include "../Arch/Intel/VMX.h" #include "../Util/Utils.h" /// <summary> /// Check if VT-x/AMD-V is supported /// </summary> /// <returns>TRUE if supported</returns> BOOLEAN HvmIsHVSupported() { CPU_VENDOR vendor = UtilCPUVendor(); if (vendor == CPU_Intel) ...
28.19
101
(translation_unit) "nclude "HVM.h"\n#include "../Arch/Intel/EPT.h"\n#include "../Arch/Intel/VMX.h"\n#include "../Util/Utils.h"\n\n/// <summary>\n/// Check if VT-x/AMD-V is supported\n/// </summary>\n/// <returns>TRUE if supported</returns>\nBOOLEAN HvmIsHVSupported()\n{\n CPU_VENDOR vendor = UtilCPUVendor();\n if...
587
6
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 28.19, "nodes": 322, "errors": 0, "source_hash": "1af79b91141af6dc51a7b8416a1996fd21fea1b065a4084a14cf33a6c666d1a7", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
14,033
c
/*************************************************************************** MSM6242 Real Time Clock ***************************************************************************/ #include "driver.h" #include "machine/msm6242.h" enum { MSM6242_REG_S1 = 0, MSM6242_REG_S10, MSM6242_REG_MI1, MSM6242_REG_MI10, ...
28.44
169
(translation_unit) "/***************************************************************************\n\n MSM6242 Real Time Clock\n\n***************************************************************************/\n\n#include "driver.h"\n#include "machine/msm6242.h"\n\n\nenum\n{\n MSM6242_REG_S1 = 0,\n MSM6242_REG_S10,\n MS...
1,324
1
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 28.44, "nodes": 792, "errors": 0, "source_hash": "23d1d2fac92bda71beb5387e27a6d7298a4385258dfb49d8835d3b5133e6650e", "categorized_nodes": 657}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,034
c
#import <Foundation/Foundation.h> #import <mbgl/util/feature.hpp> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary (GCLAdditions) - (mbgl::PropertyMap)gcl_propertyMap; @end NS_ASSUME_NONNULL_END
26.71
7
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import <mbgl/util/feature.hpp>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSDictionary (GCLAdditions)\n\n- (mbgl::PropertyMap)gcl_propertyMap;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#impo...
35
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.71, "nodes": 25, "errors": 0, "source_hash": "2bbe057ef207717b669e409dd9c277f34dd12307f4cce25620a58c743417f4cc", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
14,035
c
// // SFInfomationView.h // SF_Inke // // Created by ma c on 16/9/7. // Copyright © 2016年 shifei. All rights reserved. // #import <UIKit/UIKit.h> @interface SFInfomationView : UIView + (instancetype)loadinfomationView; @end
19.73
11
(translation_unit) "//\n// SFInfomationView.h\n// SF_Inke\n//\n// Created by ma c on 16/9/7.\n// Copyright © 2016年 shifei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SFInfomationView : UIView\n\n+ (instancetype)loadinfomationView;\n\n@end\n" (comment) "//" (comment) "// SFInfomationView....
32
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.73, "nodes": 17, "errors": 0, "source_hash": "7ba2b4bf9683cd0db4785855f9d2460b1a4a8d437a6baf74cd6545f47d23c671", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
14,036
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> char numbers[10]; void print_sum() { int sum = 0; for (int i=0;i<sizeof(numbers);i++) { sum += numbers[i]; } printf("The sum is: %d\n",sum); } void create_array(int i, int val) { if (i < 10) { numbers[i]=val; } e...
21.37
70
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\nchar numbers[10];\n\nvoid print_sum()\n{\n int sum = 0;\n for (int i=0;i<sizeof(numbers);i++)\n {\n sum += numbers[i];\n }\n printf("The sum is: %d\n",sum);\n}\n\nvoid create_array(int i, int val)\n{\n if (i...
445
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 21.37, "nodes": 262, "errors": 0, "source_hash": "63f13a425946b96649965ca2d37cb78f29283fce54acfd30e496362a6fdebc56", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,037
c
#ifndef UTIL_H #define UTIL_H #include <stddef.h> #include <stdint.h> #include <stdio.h> #define HCF(fmt, ...) do { \ fprintf(stderr, "%s:%d:%s(): " fmt "\n", __FILE__, __LINE__, __func__, \ __VA_ARGS__); \ } while (0) void set_term_title(const char *); char *time_fmt(char *, ...
36.5
12
(translation_unit) "#ifndef UTIL_H\n#define UTIL_H\n\n#include <stddef.h>\n#include <stdint.h>\n#include <stdio.h>\n\n#define HCF(fmt, ...) do { \\n fprintf(stderr, "%s:%d:%s(): " fmt "\n", __FILE__, __LINE__, __func__, \\n __VA_ARGS__); \\n } while (0)\n\nvoid set_term_title(const ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 36.5, "nodes": 61, "errors": 0, "source_hash": "4ca7e382f8585144d2a8505e4b0fd070a239d765b2022b4760d40cd713464303", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
14,038
c
//h #ifndef TICTACTOE_H #define TICTACTOE_H #include <string> using std::string; #include <vector> using std::vector; class TicTacToe { friend std::ostream& operator<<(std::ostream& out, const TicTacToe &game); friend std::istream& operator>>(std::istream& is, TicTacToe & game); public: TicTacToe(int s...
25.03
38
(translation_unit) "//h\n#ifndef TICTACTOE_H\n#define TICTACTOE_H\n\n#include <string>\nusing std::string;\n\n#include <vector>\nusing std::vector;\n\n\nclass TicTacToe \n{\n\n friend std::ostream& operator<<(std::ostream& out, const TicTacToe &game);\n friend std::istream& operator>>(std::istream& is, TicTacToe & ga...
317
21
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.03, "nodes": 195, "errors": 0, "source_hash": "236ffb45a3261f95bcd78e3b3c0861a40c6e26a980ebd3c73d14bed74cfe79fa", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,039
c
// // HomeTableView.h // MVVM-demo // // Created by shen_gh on 16/4/12. // Copyright © 2016年 申冠华. All rights reserved. // #import <UIKit/UIKit.h> @interface HomeTableView : UITableView - (instancetype)initWithFrame:(CGRect)frame; @end
20.73
11
(translation_unit) "//\n// HomeTableView.h\n// MVVM-demo\n//\n// Created by shen_gh on 16/4/12.\n// Copyright © 2016年 申冠华. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HomeTableView : UITableView\n\n- (instancetype)initWithFrame:(CGRect)frame;\n\n@end\n" (comment) "//" (comment) "// HomeTa...
38
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.73, "nodes": 20, "errors": 0, "source_hash": "29061a007d2cc3ca15a9392fa8bdeccfbdd7e58f83226f95fae9ac2d410b42f1", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
14,040
c
#ifndef Util_h #define Util_h #include <stdint.h> #include <stddef.h> int convertStringToHex(const char *str, uint8_t **output, size_t *output_len); int convertHexToString(const uint8_t *input, size_t input_len, char **output); #endif
32.57
7
(translation_unit) "#ifndef Util_h\n#define Util_h\n\n#include <stdint.h>\n#include <stddef.h>\n\nint convertStringToHex(const char *str, uint8_t **output, size_t *output_len);\nint convertHexToString(const uint8_t *input, size_t input_len, char **output);\n\n#endif" (preproc_ifdef) "#ifndef Util_h\n#define Util_h\n\...
70
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 32.57, "nodes": 55, "errors": 0, "source_hash": "f27fc684485dbbd70ccfc99cc86de14c4b53375db494a2a083c7c022449943f1", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
14,041
c
/* $Id: shade.h,v 1.1 1998-10-05 22:33:02 cg Exp $ */ /* * Mesa 3-D graphics library * Version: 3.0 * Copyright (C) 1995-1998 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Found...
34.7
66
(translation_unit) "/* $Id: shade.h,v 1.1 1998-10-05 22:33:02 cg Exp $ */\n\n/*\n * Mesa 3-D graphics library\n * Version: 3.0\n * Copyright (C) 1995-1998 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as publish...
242
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 34.7, "nodes": 152, "errors": 0, "source_hash": "73a0f54361b2d9ed48edcdaab564c078afe8ef9bb96bef0720bf82da38cce5d3", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,042
c
#include <arpa/inet.h> #include <bitcoin/address.h> #include <bitcoin/base58.h> #include <bitcoin/feerate.h> #include <bitcoin/script.h> #include <ccan/json_escape/json_escape.h> #include <ccan/mem/mem.h> #include <ccan/str/hex/hex.h> #include <ccan/tal/str/str.h> #include <common/bech32.h> #include <common/channel_id....
33.19
278
(translation_unit) "#include <arpa/inet.h>\n#include <bitcoin/address.h>\n#include <bitcoin/base58.h>\n#include <bitcoin/feerate.h>\n#include <bitcoin/script.h>\n#include <ccan/json_escape/json_escape.h>\n#include <ccan/mem/mem.h>\n#include <ccan/str/hex/hex.h>\n#include <ccan/tal/str/str.h>\n#include <common/bech32.h>...
2,042
4
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 33.19, "nodes": 1264, "errors": 0, "source_hash": "aeac0417a0ea77d9ed87a546197f14b2a2e725d0c4fb9d32f70de0919a073e18", "categorized_nodes": 920}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,043
c
/* The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
40.66
70
(translation_unit) "/*\n The MIT License (MIT)\n\nCopyright (c) 2015 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use...
596
39
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 40.66, "nodes": 298, "errors": 0, "source_hash": "125d0a950846b73ab8e73a8c77cf351292a99109b246973d88f618b9e14f7b32", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,044
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSString; @protocol ITmpMsgSrcDBService <NSObject> - (void)deleteTmpMsgSrcRecordWithUin:(NSString *)arg1; - (NSString *)getTmpMsgSrc:(NSString *)arg1; - (int...
33.54
13
(ERROR) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSString;\n\n@protocol ITmpMsgSrcDBService <NSObject>\n- (void)deleteTmpMsgSrcRecordWithUin:(NSString *)arg1;\n- (NSString *)getTmpMsgSrc:(NS...
113
15
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.54, "nodes": 68, "errors": 0, "source_hash": "1f73e72d6c76e5240392276eaff0b28e335a4f2f608baedabc46f44c79242bc3", "categorized_nodes": 36}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Generated by cla...
14,045
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/WirelessDiagnostics */ @interface AWDMetricContainer : NSObject { PBCodable * _metric; unsigned int _metricId; } @property (nonatomic, retain) PBCodable *metric; @property (nonatomic, readonly) unsigned ...
30.4
15
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/WirelessDiagnostics\n */\n\n@interface AWDMetricContainer : NSObject {\n PBCodable * _metric;\n unsigned int _metricId;\n}\n\n@property (nonatomic, retain) PBCodable *metric;\n@property (...
130
13
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.4, "nodes": 83, "errors": 0, "source_hash": "71ba6860a8969275782b9fff47ed522d34c6d8704a186814729dcbe32206fce5", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface AWDMet...
14,046
c
/******************************************************************************* * Copyright (C) 2015 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT *******************************************************************************/ /**************************************************************...
35.53
64
(translation_unit) "/*******************************************************************************\n* Copyright (C) 2015 - 2020 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n*******************************************************************************/\n\n/*************************************...
133
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 35.53, "nodes": 79, "errors": 0, "source_hash": "764cb3963c5d94e8c21109280f21bb9e1bef04a6dd0e7e9dde4c713f46d8ab3e", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,047
c
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "ActiveForceCompute.h" /*! \file ActiveForceComputeGPU.h \brief Declares a class for computing active forces on the GPU */...
37.64
39
(translation_unit) "// Copyright (c) 2009-2021 The Regents of the University of Michigan\n// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.\n\n// Maintainer: joaander\n\n#include "ActiveForceCompute.h"\n\n/*! \file ActiveForceComputeGPU.h\n \brief Declares a class for computing...
167
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 37.64, "nodes": 108, "errors": 0, "source_hash": "e2fcb0e19d46baa2d4dfdc071eb581f27ab10c15c6f631267b909fdb0771ee09", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,048
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <UIKit/UIView.h> @class UIImageView, UILabel; @interface HCCardEmptyView : UIView { UILabel *_tipsLabel; UIImageView *_imag...
30.88
24
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <UIKit/UIView.h>\n\n@class UIImageView, UILabel;\n\n@interface HCCardEmptyView : UIView\n{\n UILabel *_t...
186
14
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.88, "nodes": 113, "errors": 0, "source_hash": "10483270dab4cf478983ffdcf930d4a275aa0b8d22fefcc3276d60493d9be4f0", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,049
c
/* Copyright 2019 The Chromium OS 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 __CROS_EC_I2C_BITBANG_H #define __CROS_EC_I2C_BITBANG_H #include "i2c.h" extern const struct i2c_drv bitbang_drv; extern const struct i2c...
39.33
18
(translation_unit) "/* Copyright 2019 The Chromium OS 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 __CROS_EC_I2C_BITBANG_H\n#define __CROS_EC_I2C_BITBANG_H\n\n#include "i2c.h"\n\nextern const struct i2c_drv bitbang_...
120
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.33, "nodes": 83, "errors": 0, "source_hash": "8b27a09327a1292824c3ae095dd37972ad2461191cbec2405a3da3a901e27492", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,050
c
/* * The MIT License (MIT) * * Copyright (c) 2020 TheVice * */ #include "host_controller.h" HRESULT STDMETHODCALLTYPE GetHostManager(void* this_, REFIID riid, void** object) { (void)this_; (void)riid; if (object) { *object = NULL; } return E_NOINTERFACE; } HRESULT STDMETHODCALLTYPE SetAppDomainManage...
25.92
64
(translation_unit) "\n * The MIT License (MIT)\n *\n * Copyright (c) 2020 TheVice\n *\n */\n\n#include "host_controller.h"\n\nHRESULT STDMETHODCALLTYPE GetHostManager(void* this_, REFIID riid, void** object)\n{\n (void)this_;\n (void)riid;\n\n if (object)\n {\n *object = NULL;\n }\n\n return E_NOINTERFACE;\n}\n\nHRESU...
463
3
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 25.92, "nodes": 329, "errors": 0, "source_hash": "0c67f43d4289f5375a429444e5de31b5af51b3e7f8050d7d07e94925db05a7d3", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
14,051
c
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ISFB project. Version 2.13.24.1 // // module: files.h // $Revision: 355 $ // $Date: 2014-09-27 18:47:52 +0400 (Сб, 27 сен 2014) $ // description: // CRM client dll. Files manipulation functions. ...
36.91
55
(translation_unit) "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// ISFB project. Version 2.13.24.1\n// \n// module: files.h\n// $Revision: 355 $\n// $Date: 2014-09-27 18:47:52 +0400 (Сб, 27 сен 2014) $\n// description:\n// CRM client dll. Files...
352
2
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.91, "nodes": 260, "errors": 0, "source_hash": "66b511b80b9ba504c439e73d53ba7f08fe0bdb33d2a46d1525e12de123810d11", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "ef s...
14,052
c
#pragma once #ifndef MUD_MODULES #include <type/Type.h> #include <gfx/Importer.h> #endif #include <gfx-obj/Forward.h> #ifndef MUD_CPP_20 #include <string> #include <map> #include <vector> #endif namespace mud { using string = std::string; using MaterialMap = std::map<string, Material*>; export_ class MUD_GFX_OBJ...
31
26
(translation_unit) "#pragma once\n\n#ifndef MUD_MODULES\n#include <type/Type.h>\n#include <gfx/Importer.h>\n#endif\n#include <gfx-obj/Forward.h>\n\n#ifndef MUD_CPP_20\n#include <string>\n#include <map>\n#include <vector>\n#endif\n\nnamespace mud\n{\n using string = std::string;\n using MaterialMap = std::map<string, Ma...
222
17
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.0, "nodes": 135, "errors": 0, "source_hash": "909d2722e4b35c1ea7516e1b33a2b4243de50a7f5576620985d784a1609d7af9", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,053
c
#ifndef VARIABLE_H__ #define VARIABLE_H__ #include <string> using namespace std; struct Substitution; struct Variable { string name; Variable *rename(Substitution &); private: Variable(string name) { this->name = name; } friend void createVariable(string); }; #endif
14.78
18
(translation_unit) "#ifndef VARIABLE_H__\n#define VARIABLE_H__\n\n#include <string>\n\nusing namespace std;\n\nstruct Substitution;\n\nstruct Variable\n{\n string name;\n Variable *rename(Substitution &);\n\nprivate:\n Variable(string name)\n {\n this->name = name;\n }\n\n friend void createVariable(string);\n...
81
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 14.78, "nodes": 54, "errors": 0, "source_hash": "ffec19e319ad8c419cb1037cccb9ade84adc63503d7a93f28708b030d5ac6e50", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,054
c
/** * @file include/retdec/bin2llvmir/optimizations/unreachable_funcs/unreachable_funcs.h * @brief Removes unreachable functions from main. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_UNREACHABLE_FUNCS_UNREACHABLE_FUNCS_H #define RETDEC_BIN2LLVMIR_OPT...
30.48
48
(translation_unit) "/**\n* @file include/retdec/bin2llvmir/optimizations/unreachable_funcs/unreachable_funcs.h\n* @brief Removes unreachable functions from main.\n* @copyright (c) 2017 Avast Software, licensed under the MIT license\n*/\n\n#ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_UNREACHABLE_FUNCS_UNREACHABLE_FUNCS_H\n#d...
256
12
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 30.48, "nodes": 163, "errors": 0, "source_hash": "91d49833dc323a7aef0ae09215e5c84cbea740facdfc4a165d8f5d9734b6cb0a", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,055
c
/* * *Copyright (C) 刘晓龙 *Copyright (C) 昆明黑海科技有限公司 * * */ /* *x12 epoll 事件监控头文件 * * *作者:刘晓龙 *时间:2017-06-14 *最后修改时间:2017-06-14 */ #ifdef _OS_LINUX_ #include "x12_epoll.h" #include "x12.h" static fd_set master_read_fd_set; //全局读fd static fd_set work_read_fd_set; //工作读fd stati...
14.56
116
(translation_unit) " \n * \n *Copyright (C) 刘晓龙 \n *Copyright (C) 昆明黑海科技有限公司 \n * \n * \n */ \n \n \n/* \n *x12 epoll 事件监控头文件 \n * \n * \n *作者:刘晓龙 \n *时间:2017-06-14 \n *最后修改时间:2017-06-14 \n */ \n \n#ifdef _OS_LINUX_ \n \n#include "x12_epoll.h" \n#include "x12.h" \n \nstatic fd_set master_read_fd_set; //全局读fd \nstatic ...
472
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 14.56, "nodes": 263, "errors": 0, "source_hash": "0e8b9bc7b4f1031da49e838bb4ad1ab406cd679a769cd47dc46482a5f8d66650", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "tic f...
14,056
c
/* payroll system created by <NAME> on march 8-2022 MIT license c99 */ #include <stdio.h> #include <stdlib.h> int main() {char name[100],KRA[20]; int Hours,overtime,gross,tax,net; printf("Gitonga\'s Factory Payroll/n"); printf("Enter name"); gets(KRA); printf("Enter KRA PIN"); ...
18.13
38
(translation_unit) "/* \npayroll system \ncreated by \n<NAME> \non march 8-2022 \nMIT license \nc99 \n*/ \n \n#include <stdio.h> \n#include <stdlib.h> \n \nint main() \n {char name[100],KRA[20]; \n int Hours,overtime,gross,tax,net; \n printf("Gitonga\'s Factory Payroll/n"); \n printf("Enter name"); \n gets(KR...
253
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 18.13, "nodes": 131, "errors": 0, "source_hash": "e4acfd85c30f0434b5c1cf3f7dab2effd12abf00f8d123f3d91ce310b7d4295e", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,057
c
//! @file log.c //! @brief File containing definitions for formatting functions #include <lib/fmt.h> // For vsnprint declaration #include <lib/string.h> // For strlen and memcpy #include <misc/types.h> // For fixed width integer types //! @brief Print 64 bit unsigned integer to the buffer //! @param val Unsigned i...
34.16
170
(translation_unit) "//! @file log.c\n//! @brief File containing definitions for formatting functions\n\n#include <lib/fmt.h> // For vsnprint declaration\n#include <lib/string.h> // For strlen and memcpy\n#include <misc/types.h> // For fixed width integer types\n\n//! @brief Print 64 bit unsigned integer to the buffe...
1,115
1
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 34.16, "nodes": 675, "errors": 0, "source_hash": "549d9fb1d367b53e6a30fb7018dd98246f78089484ddebd5d652165b4817f009", "categorized_nodes": 422}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,058
c
#include "GPIO.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #define GPIO_MAGIC 'p' #define GPIO_DIRECTION _IOW(GPIO_MAGIC, 0, struct Direction) #define GPIO_READ _IOWR(GPIO_MAGIC, 1, struct Data) #define GPIO_WRITE ...
25.31
72
(translation_unit) "#include "GPIO.h"\n\n#include <stdio.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <errno.h>\n#include <sys/ioctl.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n\n#define GPIO_MAGIC 'p'\n#define GPIO_DIRECTION _IOW(GPIO_MAGIC, 0, struct Direction)\n#define GPIO_READ _IOWR(GPIO_MAGIC, 1, ...
431
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 25.31, "nodes": 269, "errors": 0, "source_hash": "a8a954204546115c094c9b364a1d10833d000f2848c3048c68befc86fcbece97", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,059
c
#pragma once #include <grid_board.h> #include <random> #include <set> namespace drl_in_action::grid_world { class GridWorld { public: enum class InitMode { fixed, player_random, shuffle }; enum class Action { up, down, left, right }; using Reward = float; GridWorld(InitMode init_mode = InitMode::shuffle, s...
32.04
173
(translation_unit) "#pragma once\n\n#include <grid_board.h>\n\n#include <random>\n#include <set>\n\nnamespace drl_in_action::grid_world {\nclass GridWorld {\n public:\n enum class InitMode { fixed, player_random, shuffle };\n enum class Action { up, down, left, right };\n using Reward = float;\n\n GridWorld(InitMod...
1,854
84
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 32.04, "nodes": 1006, "errors": 0, "source_hash": "4fdad145765a8e4a451f1a86a54736ec859201cc49e6e3fde516f3e6aab0248a", "categorized_nodes": 686}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
14,060
c
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
35.16
64
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos 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...
278
2
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 35.16, "nodes": 153, "errors": 0, "source_hash": "b66517f0a5349fde47d987332b35514bc7bb47195bc925a387ad358f645e64ab", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,061
c
/*** * IMPORTANT: Change the values of the variables marked by 'CHANGEME' ***/ #include <stdio.h> #include <stdlib.h> #include <math.h> #ifdef _CIVL $input double global_x[6]; $output int global_retval; $output double global_f; $output double global_grad[6]; #else //#pragma CIVL input double global_x...
29.38
48
(translation_unit) "/***\n * IMPORTANT: Change the values of the variables marked by 'CHANGEME'\n ***/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n#ifdef _CIVL\n$input double global_x[6];\n$output int global_retval;\n$output double global_f;\n$output double global_grad[6]; \n#else\n//#pragma C...
423
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.38, "nodes": 259, "errors": 0, "source_hash": "1e15708b646455d4e244324c6f6cac41692a286a5203a91f9fc5b1fed70f378c", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,062
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:49:45 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/NotesShared.framework/NotesShared * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by ...
32.24
17
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:49:45 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/NotesShared.framework/NotesShared\n* classdump-dyld is licensed under GPLv3, ...
114
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.24, "nodes": 62, "errors": 0, "source_hash": "a6f2912fc8550805bb9c28c2e45d6797cc8620e4d4d118a79c8499b6322d163e", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol CRDataT...
14,063
c
#ifndef _STRING_H_INCLUDED #define _STRING_H_INCLUDED #ifndef _SYS_ANVIL_INTERNAL_H_INCLUDED #include <sys/anvil_internal.h> #endif #define __need_NULL #define __need_size_t #include <stddef.h> int memcmp(const void *__s1, const void *__s2, size_t __n); void *memset(void *__s, int __c, size_t __n); void *memcpy(voi...
43.43
28
(translation_unit) "#ifndef _STRING_H_INCLUDED\n#define _STRING_H_INCLUDED\n\n#ifndef _SYS_ANVIL_INTERNAL_H_INCLUDED\n#include <sys/anvil_internal.h>\n#endif\n\n#define __need_NULL\n#define __need_size_t\n#include <stddef.h>\n\nint memcmp(const void *__s1, const void *__s2, size_t __n);\nvoid *memset(void *__s, int __c...
503
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 43.43, "nodes": 369, "errors": 0, "source_hash": "04097f737082506923c7cf7e8e04374f8b7e2eb1b52c5944035755519848aa02", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,064
c
#pragma once #include <memory> #include <boost/asio.hpp> using tcp = boost::asio::ip::tcp; class Client { public: explicit Client(std::unique_ptr<tcp::socket> socket); Client(const Client& c) = delete; Client(Client&& c); Client& operator=(Client&& rhs); Client& operator=(const Client& rhs) = ...
30.12
33
(translation_unit) "#pragma once \n\n#include <memory>\n#include <boost/asio.hpp>\n\nusing tcp = boost::asio::ip::tcp;\n\nclass Client {\n public:\n explicit Client(std::unique_ptr<tcp::socket> socket);\n Client(const Client& c) = delete;\n Client(Client&& c);\n\n Client& operator=(Client&& rhs);\n Clien...
419
24
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.12, "nodes": 256, "errors": 0, "source_hash": "8da23e8114ac19edcf1cbc55630cb1d8bd7c419cb4b7089ed612e36f33775587", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,065
c
// // This file is auto-generated. Please don't modify it! // #pragma once #ifdef __cplusplus #import "opencv.hpp" #else #define CV_EXPORTS #endif #import <Foundation/Foundation.h> #import "DTrees.h" @class Mat; @class TermCriteria; NS_ASSUME_NONNULL_BEGIN // C++: class RTrees /** * The class implements the ra...
28.52
146
(ERROR) "//\n// This file is auto-generated. Please don't modify it!\n//\n#pragma once\n\n#ifdef __cplusplus\n#import "opencv.hpp"\n\n#else\n#define CV_EXPORTS\n#endif\n\n#import <Foundation/Foundation.h>\n#import "DTrees.h"\n\n@class Mat;\n@class TermCriteria;\n\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n// C++: class RTrees\n/*...
425
18
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 28.52, "nodes": 218, "errors": 0, "source_hash": "2da4cdf5a6fa8aafd52e6f54f3cdc17dbaa78d33af6d1c9dfe0b7eee6045905e", "categorized_nodes": 136}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// This file is auto...
14,066
c
// // Created by adrja on 17/05/2018. // #ifndef JIMP_EXERCISES_SERIALIZATION_H #define JIMP_EXERCISES_SERIALIZATION_H #include "Room.h" #include "Building.h" #include "BuildingRepository.h" #include "JsonSerializer.h" #include "XmlSerializer.h" #endif //JIMP_EXERCISES_SERIALIZATION_H
22.92
12
(translation_unit) "//\n// Created by adrja on 17/05/2018.\n//\n\n#ifndef JIMP_EXERCISES_SERIALIZATION_H\n#define JIMP_EXERCISES_SERIALIZATION_H\n\n#include "Room.h"\n#include "Building.h"\n#include "BuildingRepository.h"\n\n#include "JsonSerializer.h"\n#include "XmlSerializer.h"\n\n\n#endif //JIMP_EXERCISES_SERIALIZAT...
42
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.92, "nodes": 22, "errors": 0, "source_hash": "dec54799113a7e82af07298b13ba347d44cb95ac89250d480e532c183f5968d5", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,067
c
#ifndef EXTRACTORS_IBIPARTITEEXPANDER_H #define EXTRACTORS_IBIPARTITEEXPANDER_H #include "utils/Bitstring.h" #include "utils/types.h" /** * Represents (L, R, D, K, A)-bipartite regular expander with parts L and R and left degree D * Size of maximal set that can be expanded is denoted as K * Expansion factor is den...
30
56
(translation_unit) "#ifndef EXTRACTORS_IBIPARTITEEXPANDER_H\n#define EXTRACTORS_IBIPARTITEEXPANDER_H\n\n#include "utils/Bitstring.h"\n#include "utils/types.h"\n\n/**\n * Represents (L, R, D, K, A)-bipartite regular expander with parts L and R and left degree D\n * Size of maximal set that can be expanded is denoted as ...
197
14
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 30.0, "nodes": 122, "errors": 0, "source_hash": "52325b6f9eacbbdba0fdfb43511d35b18b4e138cf675dd346d776498e75b540e", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,068
c
#pragma once #include "sop/Node.h" #include "sop/GeoAttribute.h" namespace sop { namespace node { class AttributeTransfer : public Node { public: enum InPortIdx { IDX_TO_GEO = 0, IDX_FROM_GEO, }; public: AttributeTransfer() { m_imports = { {{ NodeVarType::Any,...
19.53
34
(translation_unit) "#pragma once\n\n#include "sop/Node.h"\n#include "sop/GeoAttribute.h"\n\nnamespace sop\n{\nnamespace node\n{\n\nclass AttributeTransfer : public Node\n{\npublic:\n enum InPortIdx\n {\n IDX_TO_GEO = 0,\n IDX_FROM_GEO,\n };\n\npublic:\n AttributeTransfer()\n {\n m_im...
197
12
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.53, "nodes": 87, "errors": 0, "source_hash": "2f0541d6d8da404cf5fde726ca4d07465688b2fd50903b19d136eaf14987421b", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,069
c
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/Array.h> #include <AK/Types.h> namespace Kernel::RPi { struct GPIOControlRegisters; // Can configure the general-purpose I/O registers on a Raspberry Pi. class GPIO { public: enum class PinFunct...
24.54
48
(translation_unit) "/*\n * Copyright (c) 2021, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/Array.h>\n#include <AK/Types.h>\n\nnamespace Kernel::RPi {\n\nstruct GPIOControlRegisters;\n\n// Can configure the general-purpose I/O registers on a Raspberry Pi.\nclass GP...
292
11
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 24.54, "nodes": 189, "errors": 0, "source_hash": "82de49d755463101f124f40341c27175ad101a76b50a6a6f2c549f7e53fd0f0a", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,070
c
#include "fsio.h" #include "test.h" void test_impl() { char *file = "./_test_chmod_empty_file.txt"; bool done = fsio_create_empty_file(file); assert_true(done); done = fsio_chmod_recursive("./_test_chmod_empty_file.txt", FSIO_MODE_ALL); assert_true(done); struct stat info; stat("./_test_chmod_empty...
23.14
21
(translation_unit) "#include "fsio.h"\n#include "test.h"\n\n\nvoid test_impl()\n{\n char *file = "./_test_chmod_empty_file.txt";\n bool done = fsio_create_empty_file(file);\n\n assert_true(done);\n\n done = fsio_chmod_recursive("./_test_chmod_empty_file.txt", FSIO_MODE_ALL);\n\n assert_true(done);\n\n struct sta...
152
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.14, "nodes": 83, "errors": 0, "source_hash": "b9bb01eb1cca165d98bdd052272e8b6978a36e24d36f7d9369c11313a4953ea4", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,071
c
// // KIMGroupJoinApplication.h // HUTLife // // Created by taroyuyu on 2018/4/23. // Copyright © 2018年 taroyuyu. All rights reserved. // #import <Foundation/Foundation.h> #import "KIMChatGroup.h" #import "KIMUser.h" typedef NS_ENUM(NSUInteger,KIMGroupJoinApplicationState){ KIMGroupJoinApplicationState_Pendin...
33
22
(translation_unit) "//\n// KIMGroupJoinApplication.h\n// HUTLife\n//\n// Created by taroyuyu on 2018/4/23.\n// Copyright © 2018年 taroyuyu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "KIMChatGroup.h"\n#import "KIMUser.h"\n\ntypedef NS_ENUM(NSUInteger,KIMGroupJoinApplicationState){\n KI...
135
25
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.0, "nodes": 94, "errors": 0, "source_hash": "b2446fafd7e438eb79bcd70bdbf9ff894fa8e35c57be14d077f25ca70058550c", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
14,072
c
// // WDLAccountController.h // tap // // Created by <NAME> on 10/2/09. // Copyright 2009 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @interface WDLAccountController : NSObject { NSString *username; NSString *password; } @property (nonatomic, copy) NSString *username; @property (nonatomi...
26
22
(translation_unit) "//\n// WDLAccountController.h\n// tap\n//\n// Created by <NAME> on 10/2/09.\n// Copyright 2009 __MyCompanyName__. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface WDLAccountController : NSObject {\n NSString *username;\n NSString *password;\n}\n\n@property (nonatomic, copy) NSSt...
180
14
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.0, "nodes": 112, "errors": 0, "source_hash": "680ee7b9b12c6c21f3bce21859ff8161c41afe03bb84c287786c004f9461bf7d", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,073
c
#pragma once #ifndef SERVICE_SOCKETCHUNK_RECEIVER_H_ #define SERVICE_SOCKETCHUNK_RECEIVER_H_ #include <collection.h> #include <ppltasks.h> #include <wrl.h> #include <robuffer.h> #include "SocketListener.h" #include "SocketChunkReceiver.h" #include "GPIOInOut.h" namespace RecordingListener { class ServiceChunkR...
30.72
43
(translation_unit) "#pragma once\n#ifndef SERVICE_SOCKETCHUNK_RECEIVER_H_\n#define SERVICE_SOCKETCHUNK_RECEIVER_H_\n\n#include <collection.h>\n#include <ppltasks.h>\n#include <wrl.h>\n#include <robuffer.h>\n\n#include "SocketListener.h"\n\n#include "SocketChunkReceiver.h"\n\n\n#include "GPIOInOut.h"\n\nnamespace Record...
354
21
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 30.72, "nodes": 210, "errors": 0, "source_hash": "6917d29f929c353e3e5f5fef75312e81f89a8b0231c2accf04136b635a6999e1", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,074
c
/** * @file: sender.c * @brief: send random points to a POSIX queue. Type 'q' to terminate. * @date: 2014/06/25 * NOTES: * To execute: <executable> <arg1>, where arg1 is a posix queue name. * EXAMPLE: ./sender.out /mailbox1_userid * A valid posix queue name must start with a "/". * Execute command "man ...
27.6
68
(translation_unit) "/**\n * @file: sender.c\n * @brief: send random points to a POSIX queue. Type 'q' to terminate. \n * @date: 2014/06/25\n * NOTES:\n * To execute: <executable> <arg1>, where arg1 is a posix queue name.\n * EXAMPLE: ./sender.out /mailbox1_userid \n * A valid posix queue name must start with a "/"...
500
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 27.6, "nodes": 281, "errors": 0, "source_hash": "7398366de72ebec556a8dd779273d12597b20ea58482fd10f1e272b787fb8ba5", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,075
c
///////////////////////////////////////////////////////////////////////// // File: wx/palmos/taskbar.h // Purpose: Defines wxTaskBarIcon class. // Author: <NAME> - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 // RCS-ID: $Id: taskbar.h,v 1.3 2005/01/18 21:14:27 ABX Exp $ //...
32.53
45
(translation_unit) "/////////////////////////////////////////////////////////////////////////\n// File: wx/palmos/taskbar.h\n// Purpose: Defines wxTaskBarIcon class.\n// Author: <NAME> - minimal working wxPalmOS port\n// Modified by:\n// Created: 10/13/04\n// RCS-ID: $Id: taskbar.h,v 1.3 2005/0...
247
8
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.53, "nodes": 145, "errors": 0, "source_hash": "cbc5aa03d13ef9706257b27de7260771e2921cad7ac808a79bc4e54bdb63fd2c", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,076
c
// Copyright 2014 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_CHROMEOS_GEOLOCATION_GEOPOSITION_H_ #define CHROME_BROWSER_CHROMEOS_GEOLOCATION_GEOPOSITION_H_ #include <string> #include "base/t...
36.6
48
(translation_unit) "// Copyright 2014 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_CHROMEOS_GEOLOCATION_GEOPOSITION_H_\n#define CHROME_BROWSER_CHROMEOS_GEOLOCATION_GEOPOSITION_H_\n\n#include...
151
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 36.6, "nodes": 80, "errors": 0, "source_hash": "3be48afc30465b92c30e899cf032208b2cb95e7505c5d1481abf036192bf646d", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
14,077
c
#include <malloc.h> #include <stdio.h> #include "JsonParser.h" void JsonParser_printElement(const void *data, JsonParserTypes type, JsonParserInfos *infos) { char *result = JsonParser_createString(data, type, infos ? infos : JSON_NOT_COMPACT); printf("%s\n", result); free(result); }
27.9
10
(translation_unit) "#include <malloc.h>\n#include <stdio.h>\n#include "JsonParser.h"\n\nvoid JsonParser_printElement(const void *data, JsonParserTypes type, JsonParserInfos *infos)\n{\n char *result = JsonParser_createString(data, type, infos ? infos : JSON_NOT_COMPACT);\n \n printf("%s\n", result);\n free(result);\n}"...
85
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.9, "nodes": 54, "errors": 0, "source_hash": "bed1188cdb55a0686b42cc9724d152648b330714d7dbbbf753f2388d5e202099", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,078
c
// // AppDelegate.h // ProjectLibrary // // Created by xuyong on 16/11/4. // Copyright © 2016年 xuyong. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; + (AppDelegate*)shareInstance; @property (nonatomic...
29.57
14
(translation_unit) "//\n// AppDelegate.h\n// ProjectLibrary\n//\n// Created by xuyong on 16/11/4.\n// Copyright © 2016年 xuyong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n+ (AppDelegate*)sh...
85
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.57, "nodes": 55, "errors": 0, "source_hash": "365f0ef0e6e49b54368ef3e8f3c6de7046456951dab65e2ffc7150a349884ed5", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,079
c
// // TextWaterMarkInfo.h // MTFoundation // // Created by xiangbiying on 2018/7/24. // #import <Foundation/Foundation.h> @interface TextWaterMarkInfo : NSObject @property(nonatomic, copy) NSString* text; @property(nonatomic, assign) NSInteger fontSize; @property(nonatomic, assign) CGFloat startY; @property(nonat...
26.38
13
(translation_unit) "//\n// TextWaterMarkInfo.h\n// MTFoundation\n//\n// Created by xiangbiying on 2018/7/24.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TextWaterMarkInfo : NSObject\n\n@property(nonatomic, copy) NSString* text;\n@property(nonatomic, assign) NSInteger fontSize;\n@property(nonatomic, assign...
85
18
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.38, "nodes": 60, "errors": 0, "source_hash": "1dc9b2da60952f66ad5c1853ff8fcb397cd7d30e391c8347f3bb5a762d8a3375", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,080
c
#include <grub/crypto.h> #include <cipher_wrap.h>
24
2
(translation_unit) "#include <grub/crypto.h>\n#include <cipher_wrap.h>\n" (preproc_include) "#include <grub/crypto.h>\n" (#include) "#include" (system_lib_string) "<grub/crypto.h>" (preproc_include) "#include <cipher_wrap.h>\n" (#include) "#include" (system_lib_string) "<cipher_wrap.h>"
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 24.0, "nodes": 6, "errors": 0, "source_hash": "0e20218f6d956aca3b2b120d1b93420b21476ecffaa93f999d101c66cc2cf862", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
14,081
c
#include <config.h> #include <sys/types.h> #include <sys/time.h> #ifdef _WIN32 # include <winsock2.h> #else # include <arpa/inet.h> #endif #include <assert.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <event2/event.h> #include "dnscrypt.h" #include "dnscrypt_client.h" #...
37.99
177
(translation_unit) "#include <config.h>\n#include <sys/types.h>\n#include <sys/time.h>\n#ifdef _WIN32\n# include <winsock2.h>\n#else\n# include <arpa/inet.h>\n#endif\n\n#include <assert.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <event2/event.h>\n\n#include "dnscry...
1,350
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 37.99, "nodes": 834, "errors": 0, "source_hash": "3e7f209a882d8de07ac1c36058e876b75ed3c5a550447f7a6c9b2528e002e1c4", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,082
c
#include "timer.h" #include <jo/jo.h> // Pointer to SH2 Registers, found by <NAME>, contributed by Ponut64 // High Free Running Counter Register (FCR), counts up to 255, then iterates FCR Low Uint8 * SH2FRCHigh = (Uint8 *)0xfffffe12; // Low Free Running Counter Register (FCR), increases every time FCR high reaches 256...
29.98
48
(translation_unit) "#include "timer.h"\n#include <jo/jo.h>\n\n// Pointer to SH2 Registers, found by <NAME>, contributed by Ponut64\n// High Free Running Counter Register (FCR), counts up to 255, then iterates FCR Low\nUint8 * SH2FRCHigh = (Uint8 *)0xfffffe12;\n// Low Free Running Counter Register (FCR), increases every...
387
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 29.98, "nodes": 271, "errors": 0, "source_hash": "b53f369b30139c12ac28c39c8ea1c18190658928e4ea12e1b817fde1eb6c5c88", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,083
c
/*PLOVER: BUFF.OVER, BUFF.FORMAT*/ /* Description: Syslog is called with a user supplied format string. Keywords: Size0 Complex0 Taint FormatString ValidArg: "'NormalString\n'" InvalidArg: "%s"*100 */ #include <syslog.h> #include <string.h> void filter(char *str, const char *whitelist) { char *src, *dst; for(src =...
19.12
34
(translation_unit) "/*PLOVER: BUFF.OVER, BUFF.FORMAT*/\n\n/*\nDescription: Syslog is called with a user supplied format string.\nKeywords: Size0 Complex0 Taint FormatString\nValidArg: "'NormalString\n'"\nInvalidArg: "%s"*100\n*/\n\n#include <syslog.h>\n#include <string.h>\n\nvoid\nfilter(char *str, const char *whitelis...
206
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.12, "nodes": 135, "errors": 0, "source_hash": "f9ce7ebaee4ca733e358fa253a2fce1fc02962a4efe0bf7f128d51f599db4652", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,084
c
/* 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? */ #include <stdio.h> #include <stdbool.h> #define N 1000 int main(){ int v[N], i, count, sum = 0, num2 = 2; bool carryOver; // Array initialization for(i = 0; i < N; i++) ...
22.54
35
(translation_unit) "/*\n2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.\nWhat is the sum of the digits of the number 2^1000?\n*/\n\n#include <stdio.h>\n#include <stdbool.h>\n#define N 1000\n\nint main(){\n int v[N], i, count, sum = 0, num2 = 2;\n bool carryOver;\n\n // Array initialization\n ...
249
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.54, "nodes": 151, "errors": 0, "source_hash": "daab08037b8a25e6d3f1da57e582dbd8f60e3123413de9993ea4f1062cdb7525", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,085
c
// https://leetcode.com/problems/median-of-two-sorted-arrays/description/ #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) double findMedianSortedArrays(int *a1, int n, int *a2, int m) { if (n > m) { return findMedianSortedArrays(a2, m, a1, n); } // 采用manacher算法的思想填充数组 使数...
29.62
39
(translation_unit) "// https://leetcode.com/problems/median-of-two-sorted-arrays/description/\n\n#define max(a, b) ((a) > (b) ? (a) : (b))\n#define min(a, b) ((a) < (b) ? (a) : (b))\n\ndouble findMedianSortedArrays(int *a1, int n, int *a2, int m) {\n if (n > m) {\n return findMedianSortedArrays(a2, m, a1, n);\n }\...
363
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.62, "nodes": 223, "errors": 0, "source_hash": "1ced2e6ef1c6c6e116a212c4eb96e444b417903ff45585d7956902fd4d054c60", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": ...
14,086
c
/* * Copyright (C) 2016 Linaro * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __CPUFREQ_DT_H__ #define __CPUFREQ_DT_H__ #include <linux/types....
27
15
(translation_unit) "/*\n * Copyright (C) 2016 Linaro\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n */\n\n#ifndef __CPUFREQ_DT_H__\n#define __CPUFREQ_...
24
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.0, "nodes": 16, "errors": 0, "source_hash": "900662ee4b493b5a9d8d4b2e2bfe40ad2681422d2d405732e989ed9f60dc0b7a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
14,087
c
// Copyright (c) 2006-2008 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 NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ #define NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ #include <string> #include "base/message_loop.h" ...
39.82
61
(translation_unit) "// Copyright (c) 2006-2008 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 NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_\n#define NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_\n\n#include <string>\n\n#i...
418
14
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 39.82, "nodes": 247, "errors": 0, "source_hash": "0a69dad6d4f924c18461575fd6e17fd0538e1587d1859c418e5e3916cbda42f9", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,088
c
#pragma once #include "CoreMinimal.h" #include "BehaviorTree/Tasks/BTTask_BlackboardBase.h" #include "SP_BuyProvisionTask.generated.h" UCLASS() class STRATEGYPROTOTYPE_API USP_BuyProvisionTask : public UBTTask_BlackboardBase { GENERATED_BODY() public: USP_BuyProvisionTask(const FObjectInitializer& ObjectInitialize...
33.33
12
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n#include "BehaviorTree/Tasks/BTTask_BlackboardBase.h"\n#include "SP_BuyProvisionTask.generated.h"\n\nUCLASS()\nclass STRATEGYPROTOTYPE_API USP_BuyProvisionTask : public UBTTask_BlackboardBase\n{\n GENERATED_BODY()\n\npublic:\n USP_BuyProvisionTask(const FObj...
89
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.33, "nodes": 48, "errors": 0, "source_hash": "bb9ccd61e466184d2e9068b92a7458ee96a66141b126a2bd6d20e2bae5f583d0", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,089
c
// // AUTO BUILD, DON'T MODIFY! // #ifndef __AUTO_GEN_LUA_BUGLY_H__ #define __AUTO_GEN_LUA_BUGLY_H__ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "cclua/xlua.h" #include "bugly/CrashReport.h" int luaopen_bugly(lua_State *L); #endif
23.82
11
(translation_unit) "//\n// AUTO BUILD, DON'T MODIFY!\n//\n#ifndef __AUTO_GEN_LUA_BUGLY_H__\n#define __AUTO_GEN_LUA_BUGLY_H__\n\n#include "lua-bindings/lua_conv.h"\n#include "lua-bindings/lua_conv_manual.h"\n#include "cclua/xlua.h"\n#include "bugly/CrashReport.h"\n\nint luaopen_bugly(lua_State *L);\n\n#endif" (comment...
48
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.82, "nodes": 29, "errors": 0, "source_hash": "16819886ce652d6c2b528b5659e3d246f2f1018c07c154ee4e0ebf783072c968", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,090
c
// // HHSettingCommonCellNode.h // HHListKit // // Created by shellhue on 02/08/2018. // Copyright © 2018 shellhue. All rights reserved. // #import "HHCellNode.h" @interface HHSettingCommonCellNode : HHCellNode @end
21
10
(translation_unit) "//\n// HHSettingCommonCellNode.h\n// HHListKit\n//\n// Created by shellhue on 02/08/2018.\n// Copyright © 2018 shellhue. All rights reserved.\n//\n\n#import "HHCellNode.h"\n\n@interface HHSettingCommonCellNode : HHCellNode\n\n@end\n" (comment) "//" (comment) "// HHSettingCommonCellNode.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 9, "errors": 0, "source_hash": "85e5dce1bac024970c3137e065ce7debc68488b04c16893aee5cb4bb9a6f601b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"HHC...
14,091
c
// // LTYChatCell.h // LTY1chat // // Created by ayuan on 16/4/27. // Copyright © 2016年 AYuan. All rights reserved. // #import <UIKit/UIKit.h> static NSString *ReceiverCell = @"ReceiverCell"; static NSString *SenderCell = @"SenderCell"; @interface LTYChatCell : UITableViewCell @property (weak, nonatomic) IBOutlet ...
26.75
16
(translation_unit) "//\n// LTYChatCell.h\n// LTY1chat\n//\n// Created by ayuan on 16/4/27.\n// Copyright © 2016年 AYuan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\nstatic NSString *ReceiverCell = @"ReceiverCell";\nstatic NSString *SenderCell = @"SenderCell";\n@interface LTYChatCell : UITableViewCell\n@prop...
101
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.75, "nodes": 67, "errors": 0, "source_hash": "d3d4776d6b74c8eec93b212a5632d2cdf46a50e5189a953bbef1423a56da502d", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,092
c
#pragma once #define MJB_RBP 1 #define MJB_RSP 6 #define MJB_PC 7 typedef long int __myjmp_buf[8];
18.8
5
(translation_unit) "#pragma once\n\n#define MJB_RBP 1\n#define MJB_RSP 6\n#define MJB_PC 7\n\ntypedef long int __myjmp_buf[8];\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define MJB_RBP 1\n" (#define) "#define" (identifier) "MJB_RBP" (pre...
27
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 18.8, "nodes": 23, "errors": 0, "source_hash": "8f2b83a9d5fe84e508eea73e0fcf0e62e1abffdbc0a7b1d8207a1f284b5093bb", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
14,093
c
/* * 如果后手刚开始时手里没有两王则先手输。 * 否则后手输。 * * 草什么破题,吓到我了。 */ #include <stdio.h> #include <string.h> void solve(void) { int i; int cnt = 0; char use[109]; int len; scanf("%s", use); len = strlen(use); for (i = 0; i < 6; ++i) scanf("%*s"); for (i = 0; i < 6; ++i) { char buf[10]; scanf("%s", buf); if (buf[1...
13.79
48
(translation_unit) "/*\n * 如果后手刚开始时手里没有两王则先手输。\n * 否则后手输。\n *\n * 草什么破题,吓到我了。\n */\n\n#include <stdio.h>\n#include <string.h>\n\nvoid solve(void)\n{\n int i;\n int cnt = 0;\n char use[109];\n int len;\n scanf("%s", use);\n len = strlen(use);\n for (i = 0; i < 6; ++i)\n scanf("%*s");\n for (i = 0; i < 6; ++i) {\n char...
349
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 13.79, "nodes": 180, "errors": 0, "source_hash": "cab708e1b2a38af5d107c94bc0848db9a90b656964fb3ab37330606ff8d95c28", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "cnt ...
14,094
c
#ifndef SDL_ANDROID_SUBSYSTEM_H_ #define SDL_ANDROID_SUBSYSTEM_H_ #include "SDL_base.h" namespace SDL{ namespace Android{ class Context; class Subsystem : public Base { public: virtual void Quit() = 0; virtual void Stop() = 0; virtual void Resume() = 0; protected: Subsystem(Context& context); virtual ~Subsyste...
19.17
18
(translation_unit) "#ifndef SDL_ANDROID_SUBSYSTEM_H_\n#define SDL_ANDROID_SUBSYSTEM_H_\n\n#include "SDL_base.h"\n\nnamespace SDL{ namespace Android{\nclass Context;\n\nclass Subsystem : public Base\n{\npublic:\n virtual void Quit() = 0;\n virtual void Stop() = 0;\n virtual void Resume() = 0;\nprotected:\n Subsystem(Con...
109
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.17, "nodes": 67, "errors": 0, "source_hash": "ef246d146609ca7f1f9e8c5349e869d8fada6c139e33c68ce838ea2a4fdf61e7", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,095
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:53:01 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/SilexVideo.framework/SilexVideo * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <N...
35.76
25
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:53:01 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/SilexVideo.framework/SilexVideo\n* classdump-dyld is licensed under GPLv3, Co...
218
44
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.76, "nodes": 143, "errors": 0, "source_hash": "49f2a5e44d773dd67b321d4c6bd437c017a5bc6e05806c4ca625384418428a1d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": n...
14,096
c
/** * @file util.h * @author <NAME> * @brief Some useful macros, typedefs and brainstroming ;) * @version 0.1 * @date 2020-02-11 * * @copyright Copyright (c) 2020 * */ #ifndef UTIL_H #define UTIL_H /************************************************************************************ * POSIX DEFINES ******...
35.21
99
(translation_unit) "/**\n * @file util.h\n * @author <NAME>\n * @brief Some useful macros, typedefs and brainstroming ;)\n * @version 0.1\n * @date 2020-02-11\n * \n * @copyright Copyright (c) 2020\n * \n */\n#ifndef UTIL_H\n#define UTIL_H\n\n/****************************************************************************...
369
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 35.21, "nodes": 248, "errors": 0, "source_hash": "3917970cf83bf180dbdf7745825ec56c096cc3f1722d2daea5df122f60e50fdd", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,097
c
// Landing Entrance at a cove // on the Wadi al-Emir, Verhedin // Thorn@ShadowGate // 13 June 2000 // 14,4.wadi.c #include <std.h> inherit ROOM; int is_virtual() { return 1; } int is_water() { return 1; } int is_dockentrance() { return 1; } void create() { set_indoors(0); ::create(); set_light(2); s...
32.55
33
(translation_unit) "// Landing Entrance at a cove\n// on the Wadi al-Emir, Verhedin\n// Thorn@ShadowGate\n// 13 June 2000\n// 14,4.wadi.c\n\n#include <std.h>\n\ninherit ROOM;\n\nint is_virtual() { return 1; }\nint is_water() { return 1; }\nint is_dockentrance() { return 1; }\n\nvoid create() {\n set_indoors(0);\n ...
291
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.55, "nodes": 160, "errors": 0, "source_hash": "3e18d4bbfd74bf207787f3f24285332256e09c1683a05d598ac4f3f7b43a274f", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,098
c
// // WelComeViewController.h // DXQ // // Created by rason on 9/3/15. // Copyright (c) 2015 rason. All rights reserved. // #import <UIKit/UIKit.h> @interface WelComeViewController : UIViewController @property (nonatomic,strong)UIViewController *viewController; @end
23.64
11
(translation_unit) "//\n// WelComeViewController.h\n// DXQ\n//\n// Created by rason on 9/3/15.\n// Copyright (c) 2015 rason. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface WelComeViewController : UIViewController\n@property (nonatomic,strong)UIViewController *viewController;\n@end\n" (comment) ...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.64, "nodes": 22, "errors": 0, "source_hash": "bc17287ea6aeb700ee161f2d71b47a8cf081269a4048f66fd2d77ba47c7af8f2", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,099