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
// // 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> #import "HMenuGroundViewProtocol-Protocol.h" #import "HMiniMenuViewDelegate-Protocol.h" #import "UIGestureRecognize...
37.84
45
(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#import "HMenuGroundViewProtocol-Protocol.h"\n#import "HMiniMenuViewDelegate-Protocol.h...
407
32
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 37.84, "nodes": 264, "errors": 0, "source_hash": "d402c7e8108663291af4169412ed7c7d781aef048444be34c3cf74898ee6ff2a", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
5,900
c
#define LANG_CUSTOM -1 #define LANG_MAINSPRING 0 #define LANG_MAINSPRING_PREPROCESSOR 1 #define LANG_MAINSPRING_ASSEMBLER 2 #define LANG_BREWSHELL 4 #ifndef LANG #define LANG LANG_BREWSHELL #endif #if LANG == LANG_MAINSPRING #include "mainspring_lang.h" #endif #if LANG == LANG_MAINSPRING_PREPROCESSOR #include "pr...
24.25
28
(translation_unit) "#define LANG_CUSTOM -1\n#define LANG_MAINSPRING 0\n#define LANG_MAINSPRING_PREPROCESSOR 1\n#define LANG_MAINSPRING_ASSEMBLER 2\n#define LANG_BREWSHELL 4\n\n#ifndef LANG\n #define LANG LANG_BREWSHELL\n#endif\n\n#if LANG == LANG_MAINSPRING\n #include "mainspring_lang.h"\n#endif\n\n#if LANG == LANG_MAI...
111
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.25, "nodes": 95, "errors": 0, "source_hash": "c0ae40d3e1524b0aa259b805670cb0aff2b0b4f1e33f64714853e33ac3bd9553", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define LA...
5,901
c
#ifndef _LIB_VM_H_ #define _LIB_VM_H_ #endif
14
3
(translation_unit) "#ifndef _LIB_VM_H_\n#define _LIB_VM_H_\n\n#endif\n" (preproc_ifdef) "#ifndef _LIB_VM_H_\n#define _LIB_VM_H_\n\n#endif" (#ifndef) "#ifndef" (identifier) "_LIB_VM_H_" (preproc_def) "#define _LIB_VM_H_\n" (#define) "#define" (identifier) "_LIB_VM_H_" (#endif) "#endif"
8
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 14.0, "nodes": 7, "errors": 0, "source_hash": "af893e26ed3b0f2ee48d20db72179bb3ae394815a181f66e3d87c047d64a7045", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _LIB...
5,902
c
#include <stdlib.h> #define COUNT 10 int v_index = 0; int vals[COUNT] = {1, 7, 400, 5, 63, 6, 900, 47, 0, 4}; void put_int(char* str, int v); int get_c() { int res = vals[v_index]; v_index = (v_index + 1) % COUNT; return res; } int main() { int c = get_c(); if (c >= 40 && c <= 77) { put...
19.5
18
(translation_unit) "#include <stdlib.h>\n\n#define COUNT 10\n\nint v_index = 0;\nint vals[COUNT] = {1, 7, 400, 5, 63, 6, 900, 47, 0, 4};\n\nvoid put_int(char* str, int v);\n\nint get_c() {\n int res = vals[v_index];\n v_index = (v_index + 1) % COUNT;\n return res;\n}\n\nint main() {\n int c = get_c();\n ...
164
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.5, "nodes": 104, "errors": 0, "source_hash": "085edec5305f7e86ba2f898092db3b7012ec0bf45a9c1495c23226098d9f5533", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,903
c
#include <stdio.h> main() { char buffer[100]; int i; for (i = 0; gets(buffer) != NULL; i++) if (buffer[0] != '+' && buffer[0] != '%') printf("%d: %s\n", i, buffer); }
18.44
9
(translation_unit) "#include <stdio.h>\n\nmain()\n{\n char buffer[100];\n int i;\n\n for (i = 0; gets(buffer) != NULL; i++)\n if (buffer[0] != '+' && buffer[0] != '%')\n printf("%d: %s\n", i, buffer);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (ex...
94
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.44, "nodes": 59, "errors": 0, "source_hash": "c7d1dc0267d460a64297a37166bf4ce77898f4f8fac03fa90cb6df5bcb27963c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,904
c
bool searchMatrix(int** matrix, int matrixSize, int* matrixColSize, int target){ for (int i = 0; i < matrixSize; i++) { if (matrix[i][*matrixColSize - 1] < target) continue; for (int j = 0; j < *matrixColSize; j++) { if (matrix[i][j] == target) return true; ...
29.75
12
(translation_unit) "bool searchMatrix(int** matrix, int matrixSize, int* matrixColSize, int target){\n for (int i = 0; i < matrixSize; i++) {\n if (matrix[i][*matrixColSize - 1] < target)\n continue;\n for (int j = 0; j < *matrixColSize; j++) {\n if (matrix[i][j] == target)\n ...
131
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.75, "nodes": 86, "errors": 0, "source_hash": "84b0566b33e208578459b096778a8868171312d2f81e213ba72c1ed3a133ee67", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "bo...
5,905
c
#include <linux/errno.h> #include <linux/sched.h> #include <linux/syscalls.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/smp.h> #include <linux/sem.h> #include <linux/msg.h> #include <linux/shm.h> #include <linux/stat.h> #include <linux/mman.h> #include <linux/file.h> #include <linux/utsname.h> #includ...
27.58
166
(translation_unit) "#include <linux/errno.h>\n#include <linux/sched.h>\n#include <linux/syscalls.h>\n#include <linux/mm.h>\n#include <linux/fs.h>\n#include <linux/smp.h>\n#include <linux/sem.h>\n#include <linux/msg.h>\n#include <linux/shm.h>\n#include <linux/stat.h>\n#include <linux/mman.h>\n#include <linux/file.h>\n#i...
1,283
7
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 27.58, "nodes": 834, "errors": 0, "source_hash": "6a477033d9e484143d4809c65a72767af745c8a2ec44f1f4830456880ffaae2e", "categorized_nodes": 626}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,906
c
// frontend_arg_def.h #ifndef FRONTEND_ARG_DEF_H #define FRONTEND_ARG_DEF_H #include "id_kind_asdl.h" #include "mylib.h" #include "runtime_asdl.h" // TODO: Move to mylib.h? // // Add List too. template <class K, class V> class ConstantDict { public: // So you can specialize this to take a pointer to some kind of...
24.49
49
(translation_unit) "// frontend_arg_def.h\n\n#ifndef FRONTEND_ARG_DEF_H\n#define FRONTEND_ARG_DEF_H\n\n#include "id_kind_asdl.h"\n#include "mylib.h"\n#include "runtime_asdl.h"\n\n// TODO: Move to mylib.h?\n//\n// Add List too.\n\ntemplate <class K, class V>\nclass ConstantDict {\n public:\n // So you can specialize th...
347
23
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 24.49, "nodes": 218, "errors": 0, "source_hash": "30f31e00366643e979a28eec83895072f039eb35fc3927d34c10590f9e33d6d8", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,907
c
#include <string> #include <opencv2\core\core.hpp> class RenderUtils{ private: public: //Floats must point to a length 3 array of floats static bool parse3float(std::string line, float * floats); //Ints must point to an array of 6 ints static bool parse6int(std::string line, int * ints); //Calculates the ...
36.38
16
(translation_unit) "#include <string>\n#include <opencv2\core\core.hpp>\n\nclass RenderUtils{\nprivate:\n\npublic:\n //Floats must point to a length 3 array of floats\n static bool parse3float(std::string line, float * floats);\n\n //Ints must point to an array of 6 ints\n static bool parse6int(std::string line, in...
147
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.38, "nodes": 84, "errors": 0, "source_hash": "25ce1744892fd5deb4f51c6d25f3007e27075a6665f031c4a88c5a4d4bc974fc", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,908
c
#include "kernel/types.h" #include "user.h" #include <stddef.h> #define MSGSIZE 5 char *ping = "ping"; char *pong = "pong"; int main(int argc, char* argv[]) { char inbuf[MSGSIZE]; int p_read[2], s_read[2]; /* p_read[0]:父进程读 p_read[1]:子进程写 s_read[0]:子进程读 s_read[1]:父进程写 ...
22.52
44
(translation_unit) "#include "kernel/types.h"\n#include "user.h"\n#include <stddef.h>\n#define MSGSIZE 5\n\nchar *ping = "ping";\nchar *pong = "pong";\n\nint main(int argc, char* argv[])\n{\n char inbuf[MSGSIZE];\n int p_read[2], s_read[2];\n /*\n p_read[0]:父进程读\n p_read[1]:子进程写\n s_read[0...
381
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 22.52, "nodes": 198, "errors": 0, "source_hash": "3d84a13244a278557b2ba18f7729cb849535386bcd52574c030db397d798c03a", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,909
c
/* * Copyright (c) 2017 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
31.2
59
(translation_unit) "/*\n * Copyright (c) 2017 Cisco and/or its affiliates.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at:\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * ...
56
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.2, "nodes": 43, "errors": 0, "source_hash": "b4d269bce3cd30e2be2831902e7df0557b5dae7af0687f7ccd9820ba2980e77b", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
5,910
c
// // OTHomeBannerMode.h // OneTreasure // // Created by Frederic on 2016/11/24. // Copyright © 2016年 honeyeeb. All rights reserved. // // 首页广告 #import <Foundation/Foundation.h> @interface OTHomeBannerMode : NSObject @property (nonatomic, assign) NSInteger order; @property (nonatomic, strong) NSDate *createda...
29.86
21
(translation_unit) "//\n// OTHomeBannerMode.h\n// OneTreasure\n//\n// Created by Frederic on 2016/11/24.\n// Copyright © 2016年 honeyeeb. All rights reserved.\n//\n// 首页广告\n\n#import <Foundation/Foundation.h>\n\n\n@interface OTHomeBannerMode : NSObject\n\n@property (nonatomic, assign) NSInteger order;\n\n@property ...
175
38
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.86, "nodes": 128, "errors": 0, "source_hash": "07d8bc4fcc61ce414baa4bd41e884dbffd5c2d5e4d8ec04c55fecd159eac85f9", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation...
5,911
c
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file dcField_ext.h * @autho...
35.05
38
(translation_unit) "/**\n * PANDA 3D SOFTWARE\n * Copyright (c) Carnegie Mellon University. All rights reserved.\n *\n * All use of this software is subject to the terms of the revised BSD\n * license. You should have received a copy of this license along\n * with this source code in a file named "LICENSE."\n *\n * @...
220
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 35.05, "nodes": 142, "errors": 0, "source_hash": "a7895996f1e0f4385388f1228daaa44695127b82ac78424fb1e7ea3309df33a1", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,912
c
#pragma once #include <Common/Base/hkBase.h> #include "hkbModifier_0.h" #include "hkbEventProperty_1.h" class BSEventEveryNEventsModifier : public hkbModifier { public: HK_DECLARE_CLASS_ALLOCATOR( HK_MEMORY_CLASS_BEHAVIOR_RUNTIME ); HK_DECLARE_REFLECTION(); public: HK_FORCE_INLINE BSEventEveryNEventsModifie...
33.26
23
(translation_unit) "#pragma once\n\n#include <Common/Base/hkBase.h>\n#include "hkbModifier_0.h"\n#include "hkbEventProperty_1.h"\n\nclass BSEventEveryNEventsModifier : public hkbModifier\n{\npublic:\n HK_DECLARE_CLASS_ALLOCATOR( HK_MEMORY_CLASS_BEHAVIOR_RUNTIME );\n HK_DECLARE_REFLECTION();\n\npublic:\n HK_FORCE_...
122
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.26, "nodes": 70, "errors": 0, "source_hash": "6fce969e25234cd95cb455bcca234329a02cbbde7ac2483ae786e93b3b93c9b9", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,913
c
/* Generated by RuntimeBrowser. */ @protocol HUWallpaperPickerViewControllerDelegate <NSObject> @required - (void)wallpaperPickerDidFinish:(HUWallpaperPickerViewController *)arg1 wallpaper:(HFWallpaper *)arg2 image:(UIImage *)arg3; @end
38.67
6
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol HUWallpaperPickerViewControllerDelegate <NSObject>\n\n@required\n\n- (void)wallpaperPickerDidFinish:(HUWallpaperPickerViewController *)arg1 wallpaper:(HFWallpaper *)arg2 image:(UIImage *)arg3;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n...
48
7
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 38.67, "nodes": 32, "errors": 0, "source_hash": "73a81902a034d4dff98838e03ecaad413b00dc163ef828fa9e4f480ae1427c47", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol HUWallp...
5,914
c
/* * Copyright (c) 2018 * IoTech Ltd * * SPDX-License-Identifier: Apache-2.0 * */ #include "service.h" #include "profiles.h" #include "metadata.h" #include "edgex-rest.h" #include "errorlist.h" #include "edgex-time.h" #include "edgex/device-mgmt.h" #include <string.h> #include <stdlib.h> /* Device (collection)...
21.58
149
(translation_unit) "/*\n * Copyright (c) 2018\n * IoTech Ltd\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n */\n\n#include "service.h"\n#include "profiles.h"\n#include "metadata.h"\n#include "edgex-rest.h"\n#include "errorlist.h"\n#include "edgex-time.h"\n#include "edgex/device-mgmt.h"\n\n#include <string.h>\n#inclu...
870
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 21.58, "nodes": 520, "errors": 0, "source_hash": "dd6d4c32165b4ba2d46be8fe00e8a42f39fefea306997e717c0c857fca74a013", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,915
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "BRCellProtocol.h" #import "BRTableCellViewModelProtocol.h" #import "BRTableView.h" #import "BRTableViewSection.h" #i...
25.14
22
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "BRCellProtocol.h"\n#import "BRTableCellViewModelProtocol.h"\n#import "BRTableView.h"...
79
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.14, "nodes": 69, "errors": 0, "source_hash": "f3f7097fccab431331e822e0e51502aa5bc8b753859164cc385ef56f6d35c26a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
5,916
c
// Copyright (c) 2012-2018 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
26.07
132
(translation_unit) "// Copyright (c) 2012-2018 LG Electronics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless r...
779
40
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 26.07, "nodes": 441, "errors": 0, "source_hash": "b6c58f21c453aeef8b5ec28fc094297fbc311eb5dc1206699505a4b316f8dc6e", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,917
c
// // Created by MIC on 2019-02-16. // #ifndef CLRAY_VEC3_H #define CLRAY_VEC3_H #include "opencl_compat.h" #if !defined(__IN_OPENCL__) typedef cl_float3 vec3; #else typedef float3 vec3; #endif float vec3_length(const vec3 vec); float vec3_length_squared(const vec3 vec); vec3 vec3_normalize(const vec3 v); ve...
31.19
27
(translation_unit) "//\n// Created by MIC on 2019-02-16.\n//\n\n#ifndef CLRAY_VEC3_H\n#define CLRAY_VEC3_H\n\n#include "opencl_compat.h"\n\n#if !defined(__IN_OPENCL__)\n\ntypedef cl_float3 vec3;\n\n#else\n\ntypedef float3 vec3;\n\n#endif\n\nfloat vec3_length(const vec3 vec);\n\nfloat vec3_length_squared(const vec3 vec)...
306
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.19, "nodes": 193, "errors": 0, "source_hash": "36edff5d93fde041c28fe26ae20d9867cdc72830562217cb54109666755ae98f", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,918
c
#pragma once #ifndef MAX #define MAX 64 #endif #include <vector> /** * @brief 拓扑排序 * @param g 有向图 * @param n 图中节点数量 下标为[0, n-1] * @return 拓扑排序结果 */ std::vector<int> TopologicalSort(int g[MAX][MAX], int n);
17.17
12
(translation_unit) "#pragma once\n#ifndef MAX\n#define MAX 64\n#endif\n#include <vector>\n\n/**\n * @brief 拓扑排序\n * @param g 有向图\n * @param n 图中节点数量 下标为[0, n-1]\n * @return 拓扑排序结果\n */\nstd::vector<int> TopologicalSort(int g[MAX][MAX], int n);\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#prag...
49
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.17, "nodes": 33, "errors": 0, "source_hash": "aa2bd6b40828e527c50a282fca5a85e7b0dc7970919c74c54a9208b73fcc13b3", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,919
c
/* * MIT License * * Copyright (c) 2020-2021 11037650 Canada Inc. * * 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 u...
37.25
224
(translation_unit) "/*\n * MIT License\n *\n * Copyright (c) 2020-2021 11037650 Canada Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without li...
1,742
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 37.25, "nodes": 1059, "errors": 0, "source_hash": "e5a0a77721a9d696241cb8bd2eaae86c5faa2478ead06a438cbd869567a6ee5a", "categorized_nodes": 773}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
5,920
c
/* * $Id: ppdev.c 1347 2008-09-03 17:04:10Z vapier $ * * Linux ppdev Driver * Copyright (C) 2003 ETC s.r.o. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the L...
23.97
188
(translation_unit) "/*\n * $Id: ppdev.c 1347 2008-09-03 17:04:10Z vapier $\n *\n * Linux ppdev Driver\n * Copyright (C) 2003 ETC s.r.o.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; ...
1,341
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 23.97, "nodes": 844, "errors": 0, "source_hash": "4f5f61ce1829ffb3081a6c17a06bf34587de3dbcafc44b1f05214812dc2c321f", "categorized_nodes": 612}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,921
c
#ifndef ISR_H__ #define ISR_H__ #include <stdint.h> typedef enum { ISR_RESET = 0, ISR_UNDEFINED = 1, ISR_SOFTWARE = 2, ISR_PREFETCH = 3, ISR_ABORT = 4, ISR_IRQ = 5, ISR_FIQ = 6 } isr_t; typedef void (*isr_handler_t)(uint32_t const value); isr_handler_t isr_sethandler(isr_t const ...
24.61
18
(translation_unit) "#ifndef ISR_H__\n#define ISR_H__\n\n#include <stdint.h>\n\ntypedef enum {\n ISR_RESET = 0,\n ISR_UNDEFINED = 1,\n ISR_SOFTWARE = 2,\n ISR_PREFETCH = 3,\n ISR_ABORT = 4,\n ISR_IRQ = 5,\n ISR_FIQ = 6\n}\nisr_t;\n\ntypedef void (*isr_handler_t)(uint32_t const value);\n\nisr...
119
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.61, "nodes": 83, "errors": 0, "source_hash": "9f0969330add66258ee4b61d4a1dfe3d14b37805d26915b77feaf81317208612", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,922
c
#ifndef __DERIV_H__ #define __DERIV_H__ void CalculateCellCenteredFluxes( real** F, real** U, const int nx ); void CalculateDerivs(staggeredGrid* g, real** input, real** deriv); void FilterAll(staggeredGrid* g); #endif /*__DERIV_H__*/
38.17
6
(translation_unit) "#ifndef __DERIV_H__\n#define __DERIV_H__\n\nvoid CalculateCellCenteredFluxes( real** F, real** U, const int nx );\n\nvoid CalculateDerivs(staggeredGrid* g, real** input, real** deriv);\n\nvoid FilterAll(staggeredGrid* g);\n\n#endif /*__DERIV_H__*/\n" (preproc_ifdef) "#ifndef __DERIV_H__\n#define _...
80
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 38.17, "nodes": 63, "errors": 0, "source_hash": "ea596946cfb9c56e1b1b47619188eae6f677bd53da4aaab631ef3b748e9c013e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,923
c
/* * common_response.h * * All API response will inherit this based Response */ #ifndef _common_response_H_ #define _common_response_H_ #include <string.h> #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include "../include/binary.h" typedef struct common_respons...
35.21
28
(translation_unit) "/*\n * common_response.h\n *\n * All API response will inherit this based Response\n */\n\n#ifndef _common_response_H_\n#define _common_response_H_\n\n#include <string.h>\n#include "../external/cJSON.h"\n#include "../include/list.h"\n#include "../include/keyValuePair.h"\n#include "../include/binary....
148
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 35.21, "nodes": 105, "errors": 0, "source_hash": "6d54802c2991da53ca1b86a1e2b76170792c67925f596c2d3e6b3b859aab4b4f", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,924
c
#ifndef RECEVIER_H #define RECEVIER_H #include "base/queue.h" #include "sender/sender.h" #include "dispatcher/dispatcher.h" namespace messaging { class receiver { public: operator sender() { return sender(&q); //allow implcit conversion to a sender that references the queue } dispatcher wait(...
21.1
21
(translation_unit) "#ifndef RECEVIER_H\n#define RECEVIER_H\n\n#include "base/queue.h"\n#include "sender/sender.h"\n#include "dispatcher/dispatcher.h"\n\nnamespace messaging {\nclass receiver {\npublic:\n operator sender()\n {\n return sender(&q); //allow implcit conversion to a sender that references the q...
95
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.1, "nodes": 48, "errors": 0, "source_hash": "cd82753cc3519cd96fabe9b0a542f84fdff7b5334ba1ec5ecf05de4783319048", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
5,925
c
/*s: networking/ip/imap4d/debug.c */ #include <u.h> #include <libc.h> #include <auth.h> #include <bio.h> #include "imap4d.h" /*s: function [[debuglog]] */ void debuglog(char *fmt, ...) { va_list arg; static int logfd; if(debug == 0) return; if(logfd == 0) logfd = open("/sys/log/imap4d"...
23.51
107
(translation_unit) "/*s: networking/ip/imap4d/debug.c */\n#include <u.h>\n#include <libc.h>\n#include <auth.h>\n#include <bio.h>\n#include "imap4d.h"\n\n/*s: function [[debuglog]] */\nvoid\ndebuglog(char *fmt, ...)\n{\n va_list arg;\n static int logfd;\n\n if(debug == 0)\n return;\n if(logfd == 0)\n ...
882
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 23.51, "nodes": 492, "errors": 0, "source_hash": "901dfbdbee158ff47e676b593a584c17bc7431589bf59f8f37240d6b59eca86b", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,926
c
/* $Id: tsx_bench.c 3553 2011-05-05 06:14:19Z nanang $ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the...
33.35
241
(translation_unit) "/* $Id: tsx_bench.c 3553 2011-05-05 06:14:19Z nanang $ */\n/* \n * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)\n * Copyright (C) 2003-2008 <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 Lice...
2,168
0
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 33.35, "nodes": 1253, "errors": 0, "source_hash": "a9aca71459c43fd31d95e20decc13e9d70a9445855f7f32e9fcc3940ae32a2e5", "categorized_nodes": 957}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,927
c
/************************************************************************* > File Name: BccLatticPointGenerator.h > Project Name: CubbyFlow > Author: <NAME> > Purpose: Body-centered lattice points generator. > Created Time: 2017/06/05 > Copyright (c) 2018, <NAME> ********************************************************...
35.89
36
(translation_unit) "/*************************************************************************\n> File Name: BccLatticPointGenerator.h\n> Project Name: CubbyFlow\n> Author: <NAME>\n> Purpose: Body-centered lattice points generator.\n> Created Time: 2017/06/05\n> Copyright (c) 2018, <NAME>\n*****************************...
109
8
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.89, "nodes": 55, "errors": 0, "source_hash": "46d672af64e6187b7c9400eb4eb19a0cd4a0a853a510dafb6758a0709d45238c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,928
c
#include <arch/irqflags.h>
26
1
(translation_unit) "#include <arch/irqflags.h>\n" (preproc_include) "#include <arch/irqflags.h>\n" (#include) "#include" (system_lib_string) "<arch/irqflags.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 26.0, "nodes": 3, "errors": 0, "source_hash": "78d83120aa741985c6a3706ebad71807786e7f8d06064cddf5b4542b0a35cde0", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
5,929
c
#pragma once using namespace Microsoft::WRL; class Axis { public: Axis(float axisLength); void Initialise(ID3D11Device *device); void RenderBuffers(ID3D11DeviceContext* deviceContext); int IndexCount() { return m_indexCount; }; private: float _axisLength; int m_vertexCount; int m_indexCount; ComPtr<ID3D11Buf...
25.53
17
(translation_unit) "#pragma once\n\nusing namespace Microsoft::WRL;\n\nclass Axis\n{\npublic:\n Axis(float axisLength);\n void Initialise(ID3D11Device *device);\n void RenderBuffers(ID3D11DeviceContext* deviceContext);\n int IndexCount() { return m_indexCount; };\n\nprivate:\n float _axisLength;\n int m_vertexCount;\n ...
117
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.53, "nodes": 73, "errors": 0, "source_hash": "8548ca98f9dcba2a9731679b9570d21f2c1434eb77d4944d871ec2f5f91278a8", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,930
c
// ------------------------------------------------------------------------------------------------- // // // ------------------------------------------------------------------------------------------------- #pragma once #include "gluecodium/Export.h" #include "gluecodium/VectorHash.h" #include <cstdint> #include <syst...
29.46
28
(translation_unit) "// -------------------------------------------------------------------------------------------------\n//\n//\n// -------------------------------------------------------------------------------------------------\n#pragma once\n#include "gluecodium/Export.h"\n#include "gluecodium/VectorHash.h"\n#inclu...
212
19
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.46, "nodes": 101, "errors": 0, "source_hash": "9e514e89ff61bf57a959569eb78634b69ff74bb37c1a2a9ea3f367ad34481f1e", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,931
c
/* Copyright (c) 2013, 2019 <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, publish, distribut...
28.4
97
(translation_unit) "/*\nCopyright (c) 2013, 2019 <NAME>\n\n Permission is hereby granted, free of charge, to any person obtaining\n a copy of this software and associated documentation files (the\n "Software"), to deal in the Software without restriction, including\n without limitation the rights to use, copy, modify, ...
474
4
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 28.4, "nodes": 316, "errors": 0, "source_hash": "77b3d5b8dafc801bb3147d7c2e4a77b59f0d542e30ece267b70177d79351ed8f", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,932
c
/** *@file app_${proto.name.lower()}.c *@brief generated protocol source code *@author make_protocol.py *@date ${proto.genTime} */ /*********************************************************** Application Layer ***********************************************************/ #include "app_${pr...
25.59
223
(ERROR) "/** \n *@file app_${proto.name.lower()}.c \n *@brief generated protocol source code \n *@author make_protocol.py \n *@date ${proto.genTime} \n */ \n \n/*********************************************************** \n Application Layer \n***********************************************************/ \n ...
1,461
72
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 25.59, "nodes": 789, "errors": 0, "source_hash": "ee581208ffdd70b0d514d77b062052c489826657169e8c6540459d36a36ed2f5", "categorized_nodes": 583}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/**\r\n *@file app_${pr...
5,933
c
// // TKOTwoColumnTextView.h // Keystone // // Created by <NAME> on 6/20/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface TKOTwoColumnTextView : NSTextView @end
19.9
10
(translation_unit) "//\n// TKOTwoColumnTextView.h\n// Keystone\n//\n// Created by <NAME> on 6/20/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface TKOTwoColumnTextView : NSTextView\n\n@end\n" (comment) "//" (comment) "// TKOTwoColumnTextView.h" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.9, "nodes": 9, "errors": 0, "source_hash": "3a1061d3814d1b2e144a98e8d82a27399f72b7b5c9088880e6335be4dd47ef5e", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Coc...
5,934
c
#ifndef __fs_attrache_h__ #define __fs_attrache_h__ #include <stdbool.h> #include <stdlib.h> #include <sys/stat.h> #include <pthread.h> #include "../kazlib/hash.h" #define ATTRCACHE_DEFAULT_BATCH_SIZE 50 typedef struct CacheEntry { struct stat stat_result; // timestamp of the creation of this cache entry...
25.84
80
(translation_unit) "#ifndef __fs_attrache_h__\n#define __fs_attrache_h__\n\n#include <stdbool.h>\n#include <stdlib.h>\n#include <sys/stat.h>\n#include <pthread.h>\n\n#include "../kazlib/hash.h"\n\n\n#define ATTRCACHE_DEFAULT_BATCH_SIZE 50\n\n\ntypedef struct CacheEntry {\n struct stat stat_result;\n\n // timestam...
268
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 25.84, "nodes": 195, "errors": 0, "source_hash": "bd52a6730f8fddf537f1ff4a1f679624275d1733952fdeb18ee1e594faad2f71", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,935
c
#include <stdio.h> int getlowbit(int x, int n){ return x & (2**n-1); } int main(){ printf("%d", getlowbit(12, 2)); return 0; }
14
10
(translation_unit) "#include <stdio.h> \n \nint getlowbit(int x, int n){ \n return x & (2**n-1); \n} \n \nint main(){ \n printf("%d", getlowbit(12, 2)); \n return 0; \n} \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int ge...
73
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.0, "nodes": 43, "errors": 0, "source_hash": "f1be4d60513e31d453cd17f75ee2f2576402fee93ef9b91e43116b12ca08577c", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,936
c
#ifndef CAMERA_H #define CAMERA_H #include "stdafx.h" #include "Renderer.h" #include "Math.h" class Camera : public IUpdateable { public: XMVECTOR Eye; XMVECTOR Focus; XMVECTOR Up; XMMATRIX View; Camera() { } Camera( float eyeX, float eyeY, float eyeZ, float focusX, float focusY, float focusZ, float ...
20.84
81
(translation_unit) "#ifndef CAMERA_H\n#define CAMERA_H\n\n#include "stdafx.h"\n#include "Renderer.h"\n#include "Math.h"\n\nclass Camera : public IUpdateable\n{\npublic:\n XMVECTOR Eye;\n XMVECTOR Focus;\n XMVECTOR Up;\n\n XMMATRIX View;\n\n Camera()\n {\n }\n\n Camera( float eyeX, float eyeY, float eyeZ,\n float focu...
538
13
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 20.84, "nodes": 332, "errors": 0, "source_hash": "577289749e1b927907c2e22c026d1acb531da8246d533877b5a17d64f7bd2967", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,937
c
// // TUNetworkConfig.h // TUNetworkingDemo // // Created by chengxianghe on 16/4/21. // Copyright © 2016年 cn. All rights reserved. // #import <Foundation/Foundation.h> #import "TUNetworkDefine.h" #if __has_include(<AFNetworking/AFNetworking.h>) #import <AFNetworking/AFNetworking.h> #else @import AFNetworking; #e...
25.37
65
(translation_unit) "//\n// TUNetworkConfig.h\n// TUNetworkingDemo\n//\n// Created by chengxianghe on 16/4/21.\n// Copyright © 2016年 cn. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "TUNetworkDefine.h"\n\n#if __has_include(<AFNetworking/AFNetworking.h>)\n#import <AFNetworking/AFNetworking.h...
387
23
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.37, "nodes": 241, "errors": 0, "source_hash": "8e2444e5737465a484bde893f44379e4a49af7112fb127ab046fae6fdbde77bc", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
5,938
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreDAV.framework/CoreDAV */ @interface CoreDAVGrantItem : CoreDAVItem { NSMutableSet * _privileges; } @property (nonatomic, retain) NSMutableSet *privileges; + (id)copyParseRules; - (void)addPrivilege:(id)arg1; - (void)dealloc; - (id)d...
25.19
16
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreDAV.framework/CoreDAV\n */\n\n@interface CoreDAVGrantItem : CoreDAVItem {\n NSMutableSet * _privileges;\n}\n\n@property (nonatomic, retain) NSMutableSet *privileges;\n\n+ (id)copyParseRules;\n\n- (void)addPrivilege:(i...
138
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.19, "nodes": 83, "errors": 0, "source_hash": "f3693b1206dc6e19003bbcff2ba956b8a9ddb7d1368ae238e3002edc71d64e6c", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface CoreD...
5,939
c
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
37.66
50
(translation_unit) "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by app...
317
18
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 37.66, "nodes": 168, "errors": 0, "source_hash": "66dbdecf21fd171a25cdcfd2efca654dcbed518cc9ceaf386fb43111a2463c11", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,940
c
/* * Generate definitions needed by assembly language modules. * This code generates raw asm output which is post-processed to extract * and format the required data. */ #if 0 #include <linux/sched.h> #include <linux/stddef.h> #include <linux/errno.h> #include <linux/hardirq.h> #include <linux/suspend.h> #includ...
27.03
74
(translation_unit) "/*\n * Generate definitions needed by assembly language modules.\n * This code generates raw asm output which is post-processed to extract\n * and format the required data.\n */\n\n#if 0\n#include <linux/sched.h> \n#include <linux/stddef.h>\n#include <linux/errno.h> \n#include <linux/hardirq.h>\n#in...
413
2
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 27.03, "nodes": 258, "errors": 0, "source_hash": "3f98adab76c452c24029066c6d48d1822fc4f49313b096b44f0a6e4a851a00a1", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if 0\n#i...
5,941
c
// // Created by irwin on 11/05/2021. // #ifndef CPP_UTIL_H #define CPP_UTIL_H #include "token.h" namespace corny { std::string getTokenStr(TokenType type) { switch (type) { case TT_EOF: return "TT_EOF"; case TT_IDENT: return "TT_IDENT"; ...
28.11
91
(translation_unit) "//\n// Created by irwin on 11/05/2021.\n//\n\n#ifndef CPP_UTIL_H\n#define CPP_UTIL_H\n#include "token.h"\n\nnamespace corny {\n std::string getTokenStr(TokenType type) {\n switch (type) {\n case TT_EOF:\n return "TT_EOF";\n case TT_IDENT:\n ...
478
1
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 28.11, "nodes": 221, "errors": 0, "source_hash": "bbd6db0bee4fdab22c89d5e8b7f5974114635a98407fdae2ef6ddb09b8dabc48", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,942
c
/* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL * * ...
29.72
54
(translation_unit) "/*\n * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.\n *\n * OpenArkCompiler is licensed under the Mulan PSL v1.\n * You can use this software according to the terms and conditions of the Mulan PSL v1.\n * You may obtain a copy of Mulan PSL v1 at:\n *\n * http://license.c...
306
14
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 29.72, "nodes": 160, "errors": 0, "source_hash": "03c43cf0d56d54783dc0d2a66dbb22339a39d8dc6cb7db151d56b3686533ad86", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,943
c
/* * StringData.h * * Created on: Jul 4, 2019 * Author: oleh */ #ifndef STRINGDATA_H_ #define STRINGDATA_H_ #include <vector> #include <IntegralData.h> class StringData: public IntegralData { public: StringData(long id); ~StringData(); static std::shared_ptr<StringData> read(std::ifstream& inFile); pri...
20.73
22
(translation_unit) "/*\n * StringData.h\n *\n * Created on: Jul 4, 2019\n * Author: oleh\n */\n\n#ifndef STRINGDATA_H_\n#define STRINGDATA_H_\n\n#include <vector>\n#include <IntegralData.h>\n\nclass StringData: public IntegralData {\npublic:\n StringData(long id);\n ~StringData();\n static std::shared_ptr<StringD...
122
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.73, "nodes": 75, "errors": 0, "source_hash": "e4783e67415808c1da28fd516056242e9fef27da56fa80825a6dc5793e746c80", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,944
c
// // PhoneViewController.h // PhoneComponentExample // // Created by Willy on 18.04.13. // Copyright (c) 2013 SHS. All rights reserved. // #import <UIKit/UIKit.h> #import "SHSPhoneLibrary.h" @interface PhoneViewController : UIViewController <UITextFieldDelegate> @property (weak, nonatomic) IBOutlet SHSPhoneText...
27.42
12
(translation_unit) "//\n// PhoneViewController.h\n// PhoneComponentExample\n//\n// Created by Willy on 18.04.13.\n// Copyright (c) 2013 SHS. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "SHSPhoneLibrary.h"\n\n@interface PhoneViewController : UIViewController <UITextFieldDelegate>\n\n@property (weak,...
44
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.42, "nodes": 30, "errors": 0, "source_hash": "d6d896e49412d7c5a35833b05f8a78836dc303c1955bb6fddddbaf3af2f2049d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,945
c
// // Created by <NAME> on 2021-02-07. // #ifndef GRINDER_GRINDTARGETWEIGHTSETTINGVIEWCONTROLLER_H #define GRINDER_GRINDTARGETWEIGHTSETTINGVIEWCONTROLLER_H #include "BaseSettingViewController.h" class GrindTargetWeightSettingViewController: public BaseSettingViewController { public: explicit GrindTargetWeightSet...
38.07
15
(translation_unit) "//\n// Created by <NAME> on 2021-02-07.\n//\n\n#ifndef GRINDER_GRINDTARGETWEIGHTSETTINGVIEWCONTROLLER_H\n#define GRINDER_GRINDTARGETWEIGHTSETTINGVIEWCONTROLLER_H\n\n#include "BaseSettingViewController.h"\n\nclass GrindTargetWeightSettingViewController: public BaseSettingViewController {\npublic:\n ...
89
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.07, "nodes": 54, "errors": 0, "source_hash": "cbf20b25b71ffb02b71d858cd8e5e6933138bebc81837fbf994304d0f89d6c55", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,946
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <DevToolsInterface/PBXCodeAssistantStrategy.h> @interface PBXCodeAssistantWordBasedStrategy : PBXCodeAssistantStrategy { } - (BOOL)getItems:(id *)arg1 withInfoString:(id)arg2...
30.42
12
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <DevToolsInterface/PBXCodeAssistantStrategy.h>\n\n@interface PBXCodeAssistantWordBasedStrategy : PBXCodeAssistantStrategy\n{\n}\n\n- (BOOL)getItems:(i...
63
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 30.42, "nodes": 37, "errors": 0, "source_hash": "4e766707026d94fc8700e556a2b863f6b7e6842a6b8d5f4e03985497092bad80", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,947
c
#include <math.h> #define TGSOURCE "remainder.c" #include "_tgmath.h" TYPE TGFN(remainder)(TYPE x, TYPE y) { } /* XOPEN(400) POSIX(200112) LINK(m) */
12.64
11
(translation_unit) "#include <math.h>\n#define TGSOURCE "remainder.c"\n#include "_tgmath.h"\n\nTYPE TGFN(remainder)(TYPE x, TYPE y)\n{\n}\n\n/*\nXOPEN(400)\nPOSIX(200112)\nLINK(m)\n*/\n" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_def) "#define TGSOU...
38
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 12.64, "nodes": 25, "errors": 0, "source_hash": "d56425d5de368dad6cdcf91d3087244ff617edd39f71c591e6075fbc565be3db", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,948
c
/* =========================================================================== * * This file is part of HISE. * Copyright 2016 <NAME> * * HISE is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ...
26.4
238
(translation_unit) "/* ===========================================================================\n*\n* This file is part of HISE.\n* Copyright 2016 <NAME>\n*\n* HISE is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free S...
1,787
51
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 26.4, "nodes": 1069, "errors": 0, "source_hash": "627a493fc2e121711aea3b3a0254c88af8012b340d11fb5fa36d05a518c7ed1a", "categorized_nodes": 732}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,949
c
/* ** Licensed to the Apache Software Foundation (ASF) under one or more ** contributor license agreements. See the NOTICE file distributed with ** this work for additional information regarding copyright ownership. ** The ASF licenses this file to You under the Apache License, Version 2.0 ** (the "License"); you may...
33.98
191
(translation_unit) "/*\n** Licensed to the Apache Software Foundation (ASF) under one or more\n** contributor license agreements. See the NOTICE file distributed with\n** this work for additional information regarding copyright ownership.\n** The ASF licenses this file to You under the Apache License, Version 2.0\n**...
2,146
0
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 33.98, "nodes": 1155, "errors": 0, "source_hash": "0a625a252f3f4c0dfdc28a83994bb2834dfae3502b5e4a159fc515d32414088b", "categorized_nodes": 828}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,950
c
#ifndef SIMPLE_MODULE_H #define SIMPLE_MODULE_H /* This generated file contains includes for project dependencies */ #include "simple_module/bake_config.h" struct Position { float x; float y; }; struct Velocity { float x; float y; }; struct SimpleModule { SimpleModule(flecs::world& world); f...
20.11
19
(translation_unit) "#ifndef SIMPLE_MODULE_H\n#define SIMPLE_MODULE_H\n\n/* This generated file contains includes for project dependencies */\n#include "simple_module/bake_config.h"\n\nstruct Position {\n float x;\n float y;\n};\n\nstruct Velocity {\n float x;\n float y;\n};\n\nstruct SimpleModule {\n Sim...
91
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.11, "nodes": 55, "errors": 0, "source_hash": "10a76abe0b3d02bc0488c88f1ad37ddb639f14cd6d85379f53bbfd841d558630", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,951
c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
35.74
276
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0...
1,811
0
{"language": "c", "success": true, "metadata": {"lines": 276, "avg_line_length": 35.74, "nodes": 1004, "errors": 0, "source_hash": "acaecea73f62ee2a239739681f1eed26a4ce2a61c25256930f853accfd8909a4", "categorized_nodes": 674}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,952
c
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
32.48
179
(translation_unit) "/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.\n *\n * The information contained herein is property of Nordic Semiconductor ASA.\n * Terms and conditions of usage are described in detail in NORDIC\n * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.\n *\n * Licensees are granted ...
870
0
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 32.48, "nodes": 516, "errors": 0, "source_hash": "898e9c77e2ba46cc0cbdac8e992a4e0fb8fe463bcbab9e82d5f60fe575b740d0", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,953
c
// // AsyncTask.h // WhatWhat // // Created by <NAME> on 14/08/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "AllocineService.h" @class AsyncTask; @protocol AsyncTaskDelegate -(void)erreurReseau:(AsyncTask*)task; -(void)afficherChargement:(AsyncTask*)task ...
30.52
25
(translation_unit) "//\n// AsyncTask.h\n// WhatWhat\n//\n// Created by <NAME> on 14/08/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "AllocineService.h"\n\n@class AsyncTask;\n\n@protocol AsyncTaskDelegate\n\n-(void)erreurReseau:(AsyncTask*)task;\n-(void)...
225
27
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.52, "nodes": 143, "errors": 0, "source_hash": "f07124252a97877a57ba957a4ff5c235395cce760fd28b55bd3f05e2a913707b", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,954
c
#include <stdio.h> #include <stdlib.h> int main(){ int maxima,velocidade,conta,multa; printf("Qual a velocidade maxima?\n"); scanf("%d",&maxima); printf("Qual velocidade o motorista estava?\n"); scanf("%d",&velocidade); conta=velocidade-maxima; if (conta>=1 && conta<=10){ m...
25.92
24
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \nint main(){ \n int maxima,velocidade,conta,multa; \n printf("Qual a velocidade maxima?\n"); \n scanf("%d",&maxima); \n printf("Qual velocidade o motorista estava?\n"); \n scanf("%d",&velocidade); \n conta=velocidade-maxima; \n if (conta...
226
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 25.92, "nodes": 117, "errors": 0, "source_hash": "864d8dc4484244a78af1a2e060ac1f3f026994873ba1e209be459120567b3e53", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,955
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once #include "Plugin/Mesh.g.h" #include "Plugin.Module.h" /* Unity Vertex layouts*/ //float3 position(12 bytes) //float3 normal(12 bytes) //byte4 color32(4...
40.68
66
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License. See LICENSE in the project root for license information.\n\n#pragma once\n\n#include "Plugin/Mesh.g.h"\n#include "Plugin.Module.h"\n\n/* Unity Vertex layouts*/\n//float3 position(12 bytes)\n//float3 norm...
534
40
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 40.68, "nodes": 324, "errors": 0, "source_hash": "9d6d96ea3318cbf11793ba51a48a9aac82f2135a8c431d634a3a605fe93a0739", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,956
c
/* * comm_device.c * * Created on: Mar 26, 2019 * Author: root */ #include "comm_device.h" #include "sensor/dht22.h" #include "osapi.h" #include "ets_sys.h" #include "user_interface.h" #include "user_config.h" #include "espnow.h" #include "gpio.h" #include "comm_pub_def.h" dht_data dhtData; uint8_t ray_va...
27.4
167
(translation_unit) "/*\n * comm_device.c\n *\n * Created on: Mar 26, 2019\n * Author: root\n */\n#include "comm_device.h"\n#include "sensor/dht22.h"\n#include "osapi.h"\n#include "ets_sys.h"\n#include "user_interface.h"\n#include "user_config.h"\n#include "espnow.h"\n\n#include "gpio.h"\n\n#include "comm_pub_def....
1,421
6
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 27.4, "nodes": 842, "errors": 0, "source_hash": "15c531ace7a260c156f617a82f04d3a5d4f7f358063aba0feb8fca45d55d0ebf", "categorized_nodes": 601}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,957
c
#pragma once #include "caffe2/core/operator.h" namespace caffe2 { template <typename Context> void storm_update( const int N, const float* paramIn, const float* momentIn, const float* gradSqSumIn, const float* gradIn, const float* lr, float* paramOut, float* momentOut, float* grad...
35.16
163
(translation_unit) "#pragma once\n\n#include "caffe2/core/operator.h"\n\nnamespace caffe2 {\n\ntemplate <typename Context>\nvoid storm_update(\n const int N,\n const float* paramIn,\n const float* momentIn,\n const float* gradSqSumIn,\n const float* gradIn,\n const float* lr,\n float* paramOut,\n ...
2,098
46
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 35.16, "nodes": 1351, "errors": 0, "source_hash": "780e3a9a64ba2c15f3d3ddc5c86bbdd2947f8c888bda9562f92f75bf69458e7d", "categorized_nodes": 938}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
5,958
c
/* Copyright 2014 <NAME>, <NAME>, <NAME>, <NAME>, <NAME> Istituto Nazionale di Geofisica e Vulcanologia Sezione di Catania, Catania, Italy Università di Catania, Catania, Italy Johns Hopkins University, Baltimore, MD This file is part of GPUSPH. GPUSPH is free software: you can redistr...
44.44
63
(translation_unit) "/* Copyright 2014 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>\n\n Istituto Nazionale di Geofisica e Vulcanologia\n Sezione di Catania, Catania, Italy\n\n Università di Catania, Catania, Italy\n\n Johns Hopkins University, Baltimore, MD\n\n This file is part of GPUSPH.\n\n GPUSPH is...
120
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 44.44, "nodes": 88, "errors": 0, "source_hash": "2dba3f39a69b50494e5710ac73bf6a58337082aac63293654668c6e987c0ee23", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
5,959
c
#pragma once /******************************************************************************* MIT License Copyright (c) 2020 <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 restri...
34.82
121
(translation_unit) "#pragma once\n/*******************************************************************************\n\nMIT License\n\nCopyright (c) 2020 <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\ni...
494
11
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 34.82, "nodes": 296, "errors": 0, "source_hash": "16e9e433b7f533455fe52077a9d06c3bcdfa24a4128cae148b3c62aed5a8a82f", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,960
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> const int dmax = 20; int n; int sol[dmax]; void write(int p){ for(int i = 1; i <= p; i++){ printf("%d ", sol[i]); } printf("\n"); } void bkt(int k, int p){ if(k - 1 == p){ write(p); } else{ for(int i = s...
15.13
31
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n\nconst int dmax = 20;\nint n;\n\nint sol[dmax];\n\nvoid write(int p){\n for(int i = 1; i <= p; i++){\n printf("%d ", sol[i]);\n }\n printf("\n");\n}\n\nvoid bkt(int k, int p){\n \n if(k - 1 == p){\n write(p)...
241
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 15.13, "nodes": 144, "errors": 0, "source_hash": "888dbd6f5744c22e74489e42c7e5dd462b2ffec5aade62f11559625c7229db05", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,961
c
// // Copyright (c) 2008-2021 <NAME> // #ifndef PG_WS_H #define PG_WS_H #include <postgres.h> #include <port.h> #include <utils/builtins.h> #include "../pg_valid.h" Datum not_blank(PG_FUNCTION_ARGS); Datum trim_ws_extra(PG_FUNCTION_ARGS); #endif
19.5
12
(translation_unit) "//\n// Copyright (c) 2008-2021 <NAME>\n//\n\n#ifndef PG_WS_H\n#define PG_WS_H\n\n#include <postgres.h>\n#include <port.h>\n#include <utils/builtins.h>\n\n#include "../pg_valid.h"\n\nDatum not_blank(PG_FUNCTION_ARGS);\nDatum trim_ws_extra(PG_FUNCTION_ARGS);\n\n#endif" (comment) "//" (comment) "//...
46
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.5, "nodes": 33, "errors": 0, "source_hash": "2f5b8ecd8bfd609ce14e18b99b479aff6c429c058efe7e92e2d0b89bbf039303", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
5,962
c
// Copyright (c) 2021 The Picacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef PICACOIN_TEST_UTIL_SCRIPT_H #define PICACOIN_TEST_UTIL_SCRIPT_H #include <crypto/sha256.h> #include <script/script.h> s...
42.16
19
(translation_unit) "// Copyright (c) 2021 The Picacoin Core developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef PICACOIN_TEST_UTIL_SCRIPT_H\n#define PICACOIN_TEST_UTIL_SCRIPT_H\n\n#include <crypto/sha256.h>\n#...
145
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 42.16, "nodes": 78, "errors": 0, "source_hash": "a36d6de0ffa50c562f816acab5d44dee0c8862b171b7af045355cf5c5ef71dcc", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PICACOIN...
5,963
c
/* The smooth Class Library * Copyright (C) 1998-2012 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of "The Artistic License, Version 2.0". * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WIT...
31.92
24
(translation_unit) "/* The smooth Class Library\n * Copyright (C) 1998-2012 <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of "The Artistic License, Version 2.0".\n *\n * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR\n * IMPLIED ...
113
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.92, "nodes": 68, "errors": 0, "source_hash": "f68343a8b2ac1f0dfbf49a22073a85c1fef5f5dd7b8fdde6cc79e2af37df4843", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,964
c
//Room: jiulou2.c #include <ansi.h> inherit ROOM; void create() { set("short", "望星樓二樓"); set("long", @LONG 二樓是酒樓的雅座。在這裏的客人們都低言慢語,不象樓下的客 人那般狂呼豪飲。二樓賣的酒菜也是望星樓掌廚最拿手的。兩旁掛着 長聯直貫屋角: 君即飲此觴,對酒高歌,人醉樓頭,待劉伶同 樂; 餘亦醺一夢,臨風把盞,雲橫江上,與王粲銷愁。 LONG ); set("exits", ([ "...
21.52
25
(translation_unit) "//Room: jiulou2.c\n\n#include <ansi.h>\n\ninherit ROOM;\n\nvoid create()\n{\n set("short", "望星樓二樓");\n set("long", @LONG\n二樓是酒樓的雅座。在這裏的客人們都低言慢語,不象樓下的客\n人那般狂呼豪飲。二樓賣的酒菜也是望星樓掌廚最拿手的。兩旁掛着\n長聯直貫屋角: 君即飲此觴,對酒高歌,人醉樓頭,待劉伶同\n樂; 餘亦醺一夢,臨風把盞,雲橫江上,與王粲銷愁。\nLONG );\n\n\n ...
205
26
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.52, "nodes": 107, "errors": 0, "source_hash": "557005a05ded0792c68ce5e86a7e88f1520342134e970ab535a2daa99cb26fa3", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,965
c
#ifndef _HTREE_H_ #define _HTREE_H_ #include <stddef.h> struct htree; struct htree *htree_make(); void htree_free(struct htree *htree); void htree_add(struct htree *htree, const char *key, const void *val, size_t val_size); void *htree_get(struct htree *htree, const char *key); #ifdef HTREE_DEBUG void htree...
26.69
16
(translation_unit) "#ifndef _HTREE_H_\n#define _HTREE_H_\n\n#include <stddef.h>\n\nstruct htree;\n\nstruct htree *htree_make();\nvoid htree_free(struct htree *htree);\nvoid htree_add(struct htree *htree, const char *key, const void *val,\n size_t val_size);\nvoid *htree_get(struct htree *htree, const char *key);...
141
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.69, "nodes": 107, "errors": 0, "source_hash": "b8a72f9d1af636628217a2d272edb2939fbf9c329c9c724c2907cec81c4aa01d", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,966
c
#include "fd_event.h" #include "fd_hal_processor.h" #include "fd_hal_rtc.h" #include "fd_log.h" #include "fd_timer.h" #define TIMERS_LIMIT 32 static fd_timer_t *timers[TIMERS_LIMIT]; static uint32_t timer_count; static uint32_t scheduled_countdown; void fd_timer_update(void); void fd_timer_initialize(void) { ti...
30.88
123
(translation_unit) "#include "fd_event.h"\n#include "fd_hal_processor.h"\n#include "fd_hal_rtc.h"\n#include "fd_log.h"\n#include "fd_timer.h"\n\n#define TIMERS_LIMIT 32\n\nstatic fd_timer_t *timers[TIMERS_LIMIT];\nstatic uint32_t timer_count;\nstatic uint32_t scheduled_countdown;\n\nvoid fd_timer_update(void);\n\nvoid ...
967
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 30.88, "nodes": 603, "errors": 0, "source_hash": "bd989237ad40a49b0fe392f77a8e6b6fb93b3e04ed2ee1f2072bde9552ae1cc0", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,967
c
// DENG: dynamic engine - small but powerful 3D game engine // licence: Apache, see LICENCE file // file: FilePicker.h - File picker gui class header // author: <NAME> #ifndef FILE_PICKER_H #define FILE_PICKER_H #ifdef FILE_PICKER_CPP #include <cstring> #include <string> #include <vector> #include <ar...
32.29
87
(translation_unit) "// DENG: dynamic engine - small but powerful 3D game engine\n// licence: Apache, see LICENCE file\n// file: FilePicker.h - File picker gui class header\n// author: <NAME>\n\n#ifndef FILE_PICKER_H\n#define FILE_PICKER_H\n\n#ifdef FILE_PICKER_CPP\n #include <cstring>\n #include <string>\n #in...
618
37
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 32.29, "nodes": 403, "errors": 0, "source_hash": "2929b7fe9164bff7bc15e4ee1184bed910053c6517ba459cf6cacaeaf7d5a6d3", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,968
c
#include <stdio.h> #include <string.h> // 字符数组逆置 void reverse(char num[]) { int len = strlen(num); int i, temp; for (i = 0; i < len / 2; i++) { temp = num[i]; num[i] = num[len - 1 - i]; num[len - 1 - i] = temp; } } void sum(char A[], char B[], char C[]) { int n, i, j, k...
19.34
74
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\n// 字符数组逆置\nvoid reverse(char num[])\n{\n int len = strlen(num);\n int i, temp;\n for (i = 0; i < len / 2; i++)\n {\n temp = num[i];\n num[i] = num[len - 1 - i];\n num[len - 1 - i] = temp;\n }\n}\n\nvoid sum(char A[], char...
749
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 19.34, "nodes": 431, "errors": 0, "source_hash": "5027fa68f54220f668ceddb153fd0f1c057417b29755838e924f93316969bda0", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,969
c
/* * Copyright (c) 2019 by Horizon * \file bpu_parse_utils.h * \brief BPU parse output utils API for Horizon BPU Platform. */ #ifndef BPU_PARSE_UTILS_H_ #define BPU_PARSE_UTILS_H_ #include "bpu_predict.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus struct BPUBBoxF32 { float left; float top; fl...
29.22
78
(translation_unit) "/*\n * Copyright (c) 2019 by Horizon\n * \file bpu_parse_utils.h\n * \brief BPU parse output utils API for Horizon BPU Platform.\n */\n\n#ifndef BPU_PARSE_UTILS_H_\n#define BPU_PARSE_UTILS_H_\n\n#include "bpu_predict.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif // __cplusplus\n\nstruct BPUBBoxF3...
325
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 29.22, "nodes": 222, "errors": 0, "source_hash": "bd5b175d46957dbcea0c11d7e97cdd80733d97b80f2d8b3cc31f2227b98ead2c", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,970
c
/*************************************************************************************************/ /*! * \file hci_tr.c * * \brief HCI transport module. * * Copyright (c) 2011-2018 Arm Ltd. All Rights Reserved. * * Copyright (c) 2019 Packetcraft, Inc. * * Licensed under the Apache License, Version 2...
30.94
101
(translation_unit) "/*************************************************************************************************/\n/*!\n * \file hci_tr.c\n *\n * \brief HCI transport module.\n *\n * Copyright (c) 2011-2018 Arm Ltd. All Rights Reserved.\n *\n * Copyright (c) 2019 Packetcraft, Inc.\n * \n * Licensed under...
291
1
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 30.94, "nodes": 165, "errors": 0, "source_hash": "4d771b0813b5d72a55bca16df4808f20b2ea380ef1b6157abb906deb4854c0d3", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,971
c
/* * Copyright (C) 2020, Huada Semiconductor Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-10-30 CDT first version */ #ifndef __DRV_HWTIMER_H__ #define __DRV_HWTIMER_H__ #include <rtthread.h> #include "board_config.h" #ifdef __cplus...
41.83
104
(translation_unit) "/*\n * Copyright (C) 2020, Huada Semiconductor Co., Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2020-10-30 CDT first version\n */\n\n#ifndef __DRV_HWTIMER_H__\n#define __DRV_HWTIMER_H__\n\n#include <rtthread.h>\n#includ...
206
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 41.83, "nodes": 170, "errors": 0, "source_hash": "038f9d4e0e3f81c965593c48840e0f2130439a5ff51912a64c1e0764f944525f", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,972
c
#pragma once #include "../cartridge.h" #include "../mapper.h" #include <vector> class Mapper004 : public Mapper { private: uint16_t lastBank; uint8_t reg[8] = {0, 0, 0, 0, 0, 0, 0, 0}; std::vector<uint8_t> vram; bool irqActive = false; bool irqEnable = false; bool irqUpdate = false; uint16...
32.29
45
(translation_unit) "#pragma once\n#include "../cartridge.h"\n#include "../mapper.h"\n#include <vector>\n\nclass Mapper004 : public Mapper\n{\nprivate:\n uint16_t lastBank;\n uint8_t reg[8] = {0, 0, 0, 0, 0, 0, 0, 0};\n std::vector<uint8_t> vram;\n\n bool irqActive = false;\n bool irqEnable = false;\n ...
458
23
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.29, "nodes": 289, "errors": 0, "source_hash": "04aec7a2d8c51417da76d5f0930f8bd90afaf6d43f602736415fcd9a119f7071", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,973
c
#ifdef STM32H7xx #include "stm32h7xx_hal_mdma.c" #endif #ifdef STM32MP1xx #include "stm32mp1xx_hal_mdma.c" #endif
18
6
(translation_unit) "#ifdef STM32H7xx\n#include "stm32h7xx_hal_mdma.c"\n#endif\n#ifdef STM32MP1xx\n#include "stm32mp1xx_hal_mdma.c"\n#endif\n" (preproc_ifdef) "#ifdef STM32H7xx\n#include "stm32h7xx_hal_mdma.c"\n#endif" (#ifdef) "#ifdef" (identifier) "STM32H7xx" (preproc_include) "#include "stm32h7xx_hal_md...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.0, "nodes": 14, "errors": 0, "source_hash": "6a78efb8b718fba9c53f5351e2f553dc0f31369cfd90fc524948b7e089c7ea4d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef STM...
5,974
c
// a program to print reverse array #include <stdio.h> int main() { int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; int loop; for(loop = 9; loop >= 0; loop--) printf("%d ", array[loop]); return 0; }
20.8
10
(translation_unit) "// a program to print reverse array\n#include <stdio.h>\n\nint main()\n {\n int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};\n int loop;\n\n for(loop = 9; loop >= 0; loop--)\n printf("%d ", array[loop]);\n\n return 0;\n}\n" (comment) "// a program to print reverse array" (preproc_inc...
89
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.8, "nodes": 50, "errors": 0, "source_hash": "f2b5ab58553cf2bcc1871e3195e597c9263c3357e122242f8225551519111e48", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,975
c
#include <php.h> #include <git2.h> #include "php_git2_internal.h" PHP_FUNCTION(git_remote_create_with_opts) { int libRet; zend_result zendParse; zend_result phpgitRet; zend_string *url; HashTable *zoptions; git_remote_create_options options = GIT_REMOTE_CREATE_OPTIONS_INIT; const git_remo...
30.79
33
(translation_unit) "#include <php.h>\n#include <git2.h>\n\n#include "php_git2_internal.h"\n\nPHP_FUNCTION(git_remote_create_with_opts)\n{\n int libRet;\n zend_result zendParse;\n zend_result phpgitRet;\n zend_string *url;\n HashTable *zoptions;\n git_remote_create_options options = GIT_REMOTE_CREATE_O...
247
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.79, "nodes": 154, "errors": 0, "source_hash": "7a90e8d0933b99e63a53aeb8442c48e071eb4f0edc120255280a5927ad62915a", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,976
c
/* IBM_PROLOG_BEGIN_TAG */ /* * Copyright 2003,2016 IBM International Business Machines Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
34.68
221
(translation_unit) "/* IBM_PROLOG_BEGIN_TAG */\n/* \n * Copyright 2003,2016 IBM International Business Machines Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:/...
1,020
1
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 34.68, "nodes": 581, "errors": 0, "source_hash": "92f508b0fcaf3d121fcafbb0da22488da3a4f0fe60da501e1a9915ec6fd87e33", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,977
c
#ifndef GETDNS_OPT_PARSE_H #define GETDNS_OPT_PARSE_H enum resolv_options { DNSSEC_VALIDATE = 1, /* (1 << 0) */ DNSSEC_SECURE_ONLY = 2, /* (1 << 1) */ DNSSEC_ROADBLOCK_AVOIDANCE = 4, /* (1 << 2) */ /*Options 0 to 4 are reserved for DNSSEC*/ TLS_DISABLE = 1 << 5, TLS_PREFER = 1 << 6, TLS_REQUIRE = 1 << 7, /*Op...
34.47
51
(translation_unit) "#ifndef GETDNS_OPT_PARSE_H\n#define GETDNS_OPT_PARSE_H\n\nenum resolv_options \n{\n DNSSEC_VALIDATE = 1, /* (1 << 0) */\n DNSSEC_SECURE_ONLY = 2, /* (1 << 1) */\n DNSSEC_ROADBLOCK_AVOIDANCE = 4, /* (1 << 2) */\n /*Options 0 to 4 are reserved for DNSSEC*/\n TLS_DISABLE = 1 << 5,\n TLS_PREFER = 1 << 6...
389
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.47, "nodes": 295, "errors": 0, "source_hash": "388063ee8b32edf6f1a2ef5c4eb3f787eb647a69d812f063e7e66df5d0fe6510", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,978
c
/* -*- coding:utf-8-unix -*- */ #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <stdnoreturn.h> #include <string.h> // ---- utility noreturn void error(const char *fmt, ...); // ---- container typedef struct Vector { void **data; int capacity; int len; } Vector; /** Cr...
28.75
96
(translation_unit) "/* -*- coding:utf-8-unix -*- */\n\n#include <ctype.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdnoreturn.h>\n#include <string.h>\n\n// ---- utility\n\nnoreturn void error(const char *fmt, ...);\n\n// ---- container\n\ntypedef struct Vector {\n void **data;\n int c...
539
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 28.75, "nodes": 361, "errors": 0, "source_hash": "c5a5f89030e0fd658509cf969935b77ce3bb672d694ecb160ca1e356627b0b74", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,979
c
#pragma once #include "BaseWindow.h" #include "Button.h" #include "PushButton.h" #include "Static.h" #include "Edit.h" class ResPickerWindow : public BaseWindow<ResPickerWindow> { Static* stUltrawide, * st169, * st1610, * st43, * st54, *stCustom, *stX; PushButton* btnRes[23], * btnAtLeast, * btnExactly; Button *bt...
32.32
19
(translation_unit) "#pragma once\n\n#include "BaseWindow.h"\n#include "Button.h"\n#include "PushButton.h"\n#include "Static.h"\n#include "Edit.h"\n\nclass ResPickerWindow : public BaseWindow<ResPickerWindow>\n{\n Static* stUltrawide, * st169, * st1610, * st43, * st54, *stCustom, *stX;\n PushButton* btnRes[23], * btnAtL...
196
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.32, "nodes": 125, "errors": 0, "source_hash": "e3d7e6f662c229895eebed78bbec0cdb2ae3f247f2ea3f2b9b7aab953ae64287", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,980
c
// // CC_Monitor.h // testbenchios // // Created by gwh on 2019/8/21. // Copyright © 2019 gwh. All rights reserved. // #import "CC_Foundation.h" NS_ASSUME_NONNULL_BEGIN @interface CC_Monitor : CC_Object // 启动监控 默认开启 @property (nonatomic,assign) BOOL startLaunchMonitor; // 启动监控日志 默认开启 @property (nonatomic,assign...
28.58
24
(translation_unit) "//\n// CC_Monitor.h\n// testbenchios\n//\n// Created by gwh on 2019/8/21.\n// Copyright © 2019 gwh. All rights reserved.\n//\n\n#import "CC_Foundation.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CC_Monitor : CC_Object\n\n// 启动监控 默认开启\n@property (nonatomic,assign) BOOL startLaunchMonitor;\n// 启动监...
161
20
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.58, "nodes": 104, "errors": 0, "source_hash": "8c1dac4defab044631a45d1a9956ca2026822974e72e81fc7ecb13f470f59bbe", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
5,981
c
/* ecc signature example */ /* In this directory do gcc -U __SIZEOF_INT128__ -E ecc-example.c > ../ecc.c to obtain a single C file that you can compile with smpcc. Here the "-U __SIZEOF_INT128__" causes uECC.c to be compiled without support for 128 bit ints, which CIL cannot handle. You must use ...
28.19
31
(translation_unit) "/* ecc signature example */\n/* In this directory do\n\n gcc -U __SIZEOF_INT128__ -E ecc-example.c > ../ecc.c\n\n to obtain a single C file that you can compile with smpcc.\n\n Here the "-U __SIZEOF_INT128__" causes uECC.c to be compiled\n without support for 128 bit ints, which CIL cann...
211
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.19, "nodes": 129, "errors": 0, "source_hash": "89e94c7fcc9f5b6c92ff0de5693a566ce24e5012fa1962c0aace4de041ba678a", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,982
c
// // SPARK particle engine // // Copyright (C) 2008-2011 - <NAME> - <EMAIL> // Copyright (C) 2017 - <NAME> - <EMAIL> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permissi...
34.63
57
(translation_unit) "//\n// SPARK particle engine\n//\n// Copyright (C) 2008-2011 - <NAME> - <EMAIL>\n// Copyright (C) 2017 - <NAME> - <EMAIL>\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of t...
217
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.63, "nodes": 100, "errors": 0, "source_hash": "2d97ce5257e78168aa7c5719482829f12e7bd991ba01b88d887b31ce0a36bd36", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,983
c
/* * Copyright (c), <NAME>. * MIT License (MIT), http://opensource.org/licenses/MIT */ #ifndef cmt_argument_descriptor_h #define cmt_argument_descriptor_h #ifdef __cplusplus extern "C" { #endif #include "cmt/common.h" #include "cmt/types.h" #include "cmt/enums.h" #include "cmt/resource.h" MT_EXPORT MT_API_AVAILAB...
30.07
69
(translation_unit) "/*\n * Copyright (c), <NAME>.\n * MIT License (MIT), http://opensource.org/licenses/MIT\n */\n\n#ifndef cmt_argument_descriptor_h\n#define cmt_argument_descriptor_h\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "cmt/common.h"\n#include "cmt/types.h"\n#include "cmt/enums.h"\n#include "cmt/res...
519
58
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 30.07, "nodes": 355, "errors": 0, "source_hash": "e2418175342c87004f12dacd3879d5088cbcbc499ed366fba8a051976a074f0f", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,984
c
#include "common.h" extern bool pi_lirc_init (); void pi_lirc_close(); char * pi_lirc_next_key();
23.5
4
(translation_unit) "#include "common.h"\n\nextern bool pi_lirc_init ();\nvoid pi_lirc_close();\nchar * pi_lirc_next_key();\n" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (declaration) "extern bool...
35
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 23.5, "nodes": 22, "errors": 0, "source_hash": "058a6ac7f96672281893f6a5c0db8903da439803d613993e3e6b6bb7ddc5e2da", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
5,985
c
// // CSAppDelegate.h // SafeNSObject // // Created by <EMAIL> on 12/16/2017. // Copyright (c) 2017 <EMAIL>. All rights reserved. // @import UIKit; @interface CSAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.36
11
(translation_unit) "//\n// CSAppDelegate.h\n// SafeNSObject\n//\n// Created by <EMAIL> on 12/16/2017.\n// Copyright (c) 2017 <EMAIL>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface CSAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment)...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.36, "nodes": 26, "errors": 0, "source_hash": "d9daee0e505b40340c0c8bdeff7ff4b8fb19414ba6705b3365e2be7cec36fca3", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
5,986
c
//Define an Object-like macro 'NUM' with value 100 #define NUM 100 //here NUM is Object like Macro which will replaced value 100
63.5
2
(translation_unit) "//Define an Object-like macro 'NUM' with value 100\n\n#define NUM 100 //here NUM is Object like Macro which will replaced value 100\n" (comment) "//Define an Object-like macro 'NUM' with value 100" (preproc_def) "#define NUM 100 //here NUM is Object like Macro which will replaced value 100\n" ...
6
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 63.5, "nodes": 4, "errors": 0, "source_hash": "b76f0b1ffd72fef82865d7e27df203def1c66baffbfabcb5ae90e6b329040fad", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NUM 10...
5,987
c
#ifndef __APILOG_H__ #define __APILOG_H__ #ifdef __cplusplus extern "C" { #endif namespace API { class Log { public: DLL_PUBLIC_I static void Print(const std::string message); DLL_PUBLIC_I static void Debug(const std::string message); DLL_PUBLIC_I static void Warning(const std::string message); DLL...
19.9
20
(translation_unit) "#ifndef __APILOG_H__\n#define __APILOG_H__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n namespace API\n {\n class Log\n {\n public:\n DLL_PUBLIC_I static void Print(const std::string message);\n DLL_PUBLIC_I static void Debug(const std::string message);\n DLL_PUBLIC_I static void Warning(c...
128
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.9, "nodes": 74, "errors": 0, "source_hash": "bd7858c66c91192ee60479715b5b867abdc15a8d7f234fbe8c095578a9837449", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,988
c
#ifndef _SKIPLIST_H_ #define _SKIPLIST_H_ #include <ctime> #include <cstdlib> #include <memory> #include <vector> #include <cstring> #include "interface.h" class Skiplist: public Baselist{ struct Node { int data; /* pointer array, array[i] indicates the left elements of level i */ std::vector<std::shared_ptr<No...
23.03
34
(translation_unit) "#ifndef _SKIPLIST_H_\n#define _SKIPLIST_H_\n#include <ctime>\n#include <cstdlib>\n#include <memory>\n#include <vector>\n#include <cstring>\n#include "interface.h"\n\nclass Skiplist: public Baselist{\n struct Node {\n int data;\n /* pointer array, array[i] indicates the left elements of level i */\...
262
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.03, "nodes": 164, "errors": 0, "source_hash": "d409cf473794d089281777e080b2198f26d5813251cb5f3ace7559c699f95c5f", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,989
c
#pragma once #include "RoutingModule.h" #include "eLink.h" #include "GRE_Helpers.h" #define R_INZONE_CHANGES 1 #define R_EXCEPTIONS_CHANGES 2 #define R_CONFIG_CHANGES 4 typedef unsigned long long seqId_t; struct neiInfo { Address addr; bool samezone; bool status; elink_t link; neiInfo() : statu...
21.39
105
(ERROR) "#pragma once\n\n#include "RoutingModule.h"\n#include "eLink.h"\n#include "GRE_Helpers.h"\n\n#define R_INZONE_CHANGES 1\n#define R_EXCEPTIONS_CHANGES 2\n#define R_CONFIG_CHANGES 4\n\n\ntypedef unsigned long long seqId_t;\n\nstruct neiInfo {\n Address addr;\n bool samezone;\n bool status;\n elink_t l...
491
28
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 21.39, "nodes": 283, "errors": 0, "source_hash": "85d8e9ead4cad434713e85f979cbfacc11c13b889f186b0781d78afbdbb8bc29", "categorized_nodes": 193}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include...
5,990
c
/* @(#)w_acosh.c 1.3 95/01/18 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided ...
22.55
42
(translation_unit) "/* @(#)w_acosh.c 1.3 95/01/18 */\n/*\n * ====================================================\n * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.\n *\n * Developed at SunSoft, a Sun Microsystems, Inc. business.\n * Permission to use, copy, modify, and distribute this\n * software i...
168
1
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.55, "nodes": 101, "errors": 0, "source_hash": "fb89dcb481fdf11cbe6b669353402d8af85eeeed7ab7ae3ec3df654e551bf949", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,991
c
main() { restrict int i; }
6.25
4
(translation_unit) "main()\n{\n restrict int i;\n}\n" (ERROR) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{\n restrict int i;\n}" ({) "{" (declaration) "restrict int i;" (type_qualifier) "restrict"...
16
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 6.25, "nodes": 9, "errors": 0, "source_hash": "3636f6c28491f00f046327e46bc3a15d5fb63a76a08a34a227b30ec13a2df4cf", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "main()", "parent": n...
5,992
c
30 mtime=1527291425.657873726 30 atime=1527291425.773874138 30 ctime=1527291455.545975605
29
3
(translation_unit) "30 mtime=1527291425.657873726\n30 atime=1527291425.773874138\n30 ctime=1527291455.545975605\n" (ERROR) "30 mtime=1527291425.657873726\n30 atime=1527291425.773874138\n30 ctime=1527291455.545975605" (number_literal) "30" (assignment_expression) "mtime=1527291425.657873726\n30 atime=152729142...
17
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 16, "errors": 0, "source_hash": "0d85ed7a112e165a1636bcd1691b224cfeb7586a593b97cb0ced097e23932ce0", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "30 mtime=152729142...
5,993
c
// MenueDlg.h: interface for the CMenueDlg class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_MENUEDLG_H__484B7092_8385_4744_953B_CC254DBAF00D__INCLUDED_) #define AFX_MENUEDLG_H__484B7092_8385_4744_953B_CC254DBAF00D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _...
28.96
23
(translation_unit) "// MenueDlg.h: interface for the CMenueDlg class.\n//\n//////////////////////////////////////////////////////////////////////\n\n#if !defined(AFX_MENUEDLG_H__484B7092_8385_4744_953B_CC254DBAF00D__INCLUDED_)\n#define AFX_MENUEDLG_H__484B7092_8385_4744_953B_CC254DBAF00D__INCLUDED_\n\n#if _MSC_VER > 10...
112
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.96, "nodes": 75, "errors": 0, "source_hash": "172b06dc6631b27148fce659442145670d653a4a91366c01197d4bbc12f4b029", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
5,994
c
#define M "b" char * f() { return "a" M "c"; } void f1() { #pragma spf transform inline f(); }
10.44
9
(translation_unit) "#define M "b"\n\nchar * f() {\n return "a" M\n "c";\n}\n\nvoid f1() {\n #pragma spf transform inline\n f();\n}\n" (preproc_def) "#define M "b"\n" (#define) "#define" (identifier) "M" (preproc_arg) ""b"" (function_definition) "char * f() {\n return "a" M\n "c";\n}" (primitiv...
50
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 10.44, "nodes": 27, "errors": 0, "source_hash": "abc38509f738be2b1b6dfae679449b4e5e3b8af03621e074f2f1b31e24f0c6d5", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define M \...
5,995
c
#include <avr/io.h> #include <util/delay.h> int main() { DDRD |= (1<<2); // set USER LED pin PD2 to output while (1) { PORTD &= ~(1<<2); // drive USER LED pin PD2 low (light on) _delay_ms(500); // delay 500 ms PORTD |= (1<<2); // drive USER LED pin PD2 high (light off) ...
29.75
12
(translation_unit) "#include <avr/io.h>\n#include <util/delay.h>\n \nint main() {\n DDRD |= (1<<2); // set USER LED pin PD2 to output\n while (1) {\n PORTD &= ~(1<<2); // drive USER LED pin PD2 low (light on)\n _delay_ms(500); // delay 500 ms\n PORTD |= (1<<2); // drive USER LED...
85
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.75, "nodes": 48, "errors": 0, "source_hash": "f7364bdfb840e1fb9dab148eb9e970952e3ef5235371a9cf8fe92304706f20a2", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,996
c
// // FSPDispatchQueue+SmartPromo.h // SmartPromo // // Created by <NAME> on 01/18/21. // #import <Foundation/Foundation.h> typedef void (^FSPBlock)(void); @interface FSPDispatchQueue: NSObject + (void) runInBackground: (dispatch_block_t) block; + (void) runInMain: (dispatch_block_t) block; + (void) runInMainAft...
27.69
13
(translation_unit) "//\n// FSPDispatchQueue+SmartPromo.h\n// SmartPromo\n//\n// Created by <NAME> on 01/18/21.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef void (^FSPBlock)(void);\n\n@interface FSPDispatchQueue: NSObject\n\n+ (void) runInBackground: (dispatch_block_t) block;\n+ (void) runInMain: (dispatch_blo...
103
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.69, "nodes": 60, "errors": 0, "source_hash": "ada65a2f984cab087af6a181b193d0d05e6c9806bc7796faa7912a1fd15dd00a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,997
c
/***************************************************************************** * dbus.c: power management inhibition using D-Bus ***************************************************************************** * Copyright © 2009-2012 <NAME> * Copyright © 2007-2012 <NAME> * * This program is free software; you can re...
34.58
204
(translation_unit) "/*****************************************************************************\n * dbus.c: power management inhibition using D-Bus\n *****************************************************************************\n * Copyright © 2009-2012 <NAME>\n * Copyright © 2007-2012 <NAME>\n *\n * This program is...
1,375
3
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 34.58, "nodes": 838, "errors": 0, "source_hash": "786478f9cbe4ec2a91897d160f3f1a37119152ba885c91e254920a8a9ec42ab8", "categorized_nodes": 551}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fdef ...
5,998
c
#include <stdio.h> #define FAHR 189 float convert_temp(int fahr); int main(){ printf("%dF = %fC\n", FAHR, convert_temp(FAHR)); return 0; } float convert_temp(int fahr){ return (fahr-32)*(5.0/9.0); }
19.2
10
(translation_unit) "#include <stdio.h>\n\n#define FAHR 189\n\nfloat convert_temp(int fahr);\n\nint main(){\n\n printf("%dF = %fC\n", FAHR, convert_temp(FAHR));\n return 0;\n}\n\nfloat convert_temp(int fahr){\n\n return (fahr-32)*(5.0/9.0);\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (sy...
86
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 53, "errors": 0, "source_hash": "ba54d633d6cb289ca1253b1f491537aa5bd3b9f8eb597331fc62d30db0a3e50c", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,999