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
#ifndef _CONDITION_FOUND_TARGET_H #define _CONDITION_FOUND_TARGET_H #include "condition.h" class Character; class ConditionFoundTarget: public Condition { public: ConditionFoundTarget(Character * character); virtual bool Check() const; private: Character * m_character; }; #endif//!_CONDITION_FOUND_TARGET_H
24.92
12
(translation_unit) "#ifndef _CONDITION_FOUND_TARGET_H\n#define _CONDITION_FOUND_TARGET_H\n\n#include "condition.h"\n\nclass Character;\n\nclass ConditionFoundTarget: public Condition {\npublic:\n ConditionFoundTarget(Character * character);\n\n virtual bool Check() const;\nprivate:\n Character * m_character;\n};\n\n#en...
67
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.92, "nodes": 37, "errors": 0, "source_hash": "c1f763898d3927230469eb01569e3eff253dc388e03fc2ce1ef31dfc863c278c", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,500
c
/* * gGUIPane.h * * Created on: Apr 3, 2022 * Author: noyan */ #ifndef UI_GGUIPANE_H_ #define UI_GGUIPANE_H_ #include "gGUIContainer.h" #include "gFont.h" #include "gColor.h" class gGUIPane: public gGUIContainer { public: gGUIPane(); virtual ~gGUIPane(); virtual void set(gBaseApp* root, gBaseGUIObjec...
22.56
25
(translation_unit) "/*\n * gGUIPane.h\n *\n * Created on: Apr 3, 2022\n * Author: noyan\n */\n\n#ifndef UI_GGUIPANE_H_\n#define UI_GGUIPANE_H_\n\n#include "gGUIContainer.h"\n#include "gFont.h"\n#include "gColor.h"\n\n\nclass gGUIPane: public gGUIContainer {\npublic:\n gGUIPane();\n virtual ~gGUIPane();\n\n virtua...
140
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.56, "nodes": 91, "errors": 0, "source_hash": "1b0ea820f53ce70177eb55b97e22ebb0a17df22bcda108abe4ae50d92c156681", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,501
c
#ifndef OBJECT_POOL_H #define OBJECT_POOL_H #include "bitmap.h" #define DECLARE_OBJECT_POOL(type, _name, _num) \ DECLARE_BITMAP(_object_pool_##_name##_bitmap, _num); \ type _object_pool_##_name##_data[_num]; \ struct object_pool _name = { \ .name = #_name, \ .bitmap = _object_pool_##_name#...
40.47
32
(translation_unit) "#ifndef OBJECT_POOL_H\n#define OBJECT_POOL_H\n\n#include "bitmap.h"\n\n#define DECLARE_OBJECT_POOL(type, _name, _num) \\n DECLARE_BITMAP(_object_pool_##_name##_bitmap, _num); \\n type _object_pool_##_name##_data[_num]; \\n struct object_pool _name = { \\n .name = #_name, \\n ....
216
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 40.47, "nodes": 164, "errors": 0, "source_hash": "cc2c910fb7f0205cf0ce39e92c1e7675b47304237e31b5e7a7c5968df254dbde", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,502
c
#include <stdbool.h> #include <libk/assert.h> #include <libk/math.h> #include <libk/bits.h> #include "kmalloc.h" #include "memory_manager.h" //#define KMALLOC_DEBUG #define CHUNK_SIZE sizeof(size_t) static u32 CHUNK_COUNT; static u8 *pool; static addr *pages; static size_t allocated_chunk_count; static void *kall...
35.12
152
(translation_unit) "#include <stdbool.h>\n#include <libk/assert.h>\n#include <libk/math.h>\n#include <libk/bits.h>\n#include "kmalloc.h"\n#include "memory_manager.h"\n\n//#define KMALLOC_DEBUG\n\n#define CHUNK_SIZE sizeof(size_t)\n\nstatic u32 CHUNK_COUNT;\n\nstatic u8 *pool;\nstatic addr *pages;\n\nstatic size_t alloc...
1,429
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 35.12, "nodes": 923, "errors": 0, "source_hash": "a2c654023f553e8fa7cd5adf156ad67208fe18715bf603816c6f3edf7f31a2fb", "categorized_nodes": 651}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,503
c
// SPDX-License-Identifier: GPL-2.0+ // // Security related flags and so on. // // Copyright 2018, <NAME>, IBM Corporation. #include <linux/kernel.h> #include <linux/debugfs.h> #include <linux/device.h> #include <linux/seq_buf.h> #include <asm/security_features.h> unsigned long powerpc_security_features __read_most...
29.02
185
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n//\n// Security related flags and so on.\n//\n// Copyright 2018, <NAME>, IBM Corporation.\n\n#include <linux/kernel.h>\n#include <linux/debugfs.h>\n#include <linux/device.h>\n#include <linux/seq_buf.h>\n\n#include <asm/security_features.h>\n\n\nunsigned long pow...
1,513
4
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 29.02, "nodes": 855, "errors": 0, "source_hash": "926d48d7a322b73ad9d974385973f2d136813bc9a41c5fff85606a66a7e5b597", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,504
c
#parse("PAG File Header.h") #import <Foundation/Foundation.h> @interface ${NAME} : NSObject #if ($PUT_IVARS_TO_IMPLEMENTATION != "true"){ } #end @end
20.57
7
(translation_unit) "#parse("PAG File Header.h")\n#import <Foundation/Foundation.h>\n\n\n@interface ${NAME} : NSObject #if ($PUT_IVARS_TO_IMPLEMENTATION != "true"){\n\n}\n#end\n@end" (preproc_call) "#parse("PAG File Header.h")\n" (preproc_directive) "#parse" (preproc_arg) "("PAG File Header.h")" (preproc_cal...
41
6
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.57, "nodes": 25, "errors": 0, "source_hash": "079a3a3a20e0d2809b24e84b8ed725b1430b31a88601d48e2ae8228d05cabb9f", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#parse(\"P...
79,505
c
#ifndef CHIPSSYSTEM_COMPONENETS_COLLIDERCOMPONENETS_SPHERECOLLIDER_H #define CHIPSSYSTEM_COMPONENETS_COLLIDERCOMPONENETS_SPHERECOLLIDER_H #include "ChipsSystem/Components/ColliderComponents/ACollider.h" namespace ChipsEngine { class SphereCollider final : public ACollider { public: SphereCollider(); protected: ...
25.65
23
(translation_unit) "#ifndef CHIPSSYSTEM_COMPONENETS_COLLIDERCOMPONENETS_SPHERECOLLIDER_H\n#define CHIPSSYSTEM_COMPONENETS_COLLIDERCOMPONENETS_SPHERECOLLIDER_H\n#include "ChipsSystem/Components/ColliderComponents/ACollider.h"\n\nnamespace ChipsEngine\n{\n class SphereCollider final : public ACollider\n {\n public:\n Sp...
120
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.65, "nodes": 70, "errors": 0, "source_hash": "68a8412111b590ce079934a9c49170bcb2e7a5211dc174a091692b8280eeb30d", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,506
c
// // UIColor+Common.h // ZSEthersWallet // // Created by thomasho on 2017/12/28. // Copyright © 2016年 lkl. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (Common) //主题颜色 + (UIColor *)mainThemeColor; //背景颜色 + (UIColor *)commonBackgroundColor; //cell颜色 + (UIColor *)commonCellcolor; // 乳白色 +...
19.54
41
(translation_unit) "//\n// UIColor+Common.h\n// ZSEthersWallet\n//\n// Created by thomasho on 2017/12/28.\n// Copyright © 2016年 lkl. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor (Common)\n\n//主题颜色\n+ (UIColor *)mainThemeColor;\n\n//背景颜色\n+ (UIColor *)commonBackgroundColor;\n\n//cell颜色\n...
232
4
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 19.54, "nodes": 136, "errors": 0, "source_hash": "9c07fdfcb9ee36083eceb775cb2f6c288620251da327843fbc3e84ebe43d2fd1", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
79,507
c
// author : lizs // 2017.2.22 #pragma once #include <functional> #include <map> #include "defines.h" #include "data/any.h" namespace VK { namespace Net { typedef uint32_t timer_id_t; typedef uint64_t timer_period_t; const timer_id_t INVALID_TIMER_ID = 0; // scheduler based on libuv class NET_EXPORT Schedu...
26.95
41
(translation_unit) "// author : lizs\n// 2017.2.22\n\n#pragma once\n#include <functional>\n#include <map>\n#include "defines.h"\n#include "data/any.h"\n\nnamespace VK {\n namespace Net {\n typedef uint32_t timer_id_t;\n typedef uint64_t timer_period_t;\n const timer_id_t INVALID_TIMER_ID = 0;\n\n // scheduler based...
280
5
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.95, "nodes": 185, "errors": 0, "source_hash": "265226c1d6b3c9e1a66a76681bbf759f2c4873ee8699c9ffe2fb502274b72530", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,508
c
// Npc: /kungfu/class/shaolin/kong-jian.c #include <ansi.h> inherit NPC; inherit F_GUARDER; void create() { set_name("空見", ({ "<NAME>", "kongjian" })); set("long", "他是一位鬚髮花白的老僧,身形瘦削,容貌慈和。\n" ); set("nickname", HIR "神僧" NOR); set("gender", "男性"); set("a...
33.24
112
(translation_unit) "// Npc: /kungfu/class/shaolin/kong-jian.c\n\n#include <ansi.h>\n\ninherit NPC;\ninherit F_GUARDER;\n\nvoid create()\n{\n set_name("空見", ({ "<NAME>", "kongjian" }));\n set("long",\n "他是一位鬚髮花白的老僧,身形瘦削,容貌慈和。\n"\n );\n\n set("nickname", HIR "神僧" NOR);\n ...
1,194
22
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 33.24, "nodes": 452, "errors": 0, "source_hash": "579013811045f5a0573e34e03cfa58846ffa7734ee13c52ea55822fad984fe0f", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,509
c
#pragma once #include "Worker.h" class Boos : public Worker { public: Boos(int id, string name, int did); void showInfo(); string getDepartmentName(); };
16
10
(translation_unit) "#pragma once\n#include "Worker.h"\nclass Boos :\n public Worker\n{\npublic:\n Boos(int id, string name, int did);\n\n void showInfo();\n\n string getDepartmentName();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include)...
59
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.0, "nodes": 33, "errors": 0, "source_hash": "d72a528d0d7003ddfe05ca0fc2ede404239b2044f7d07656b6557659b8a049ec", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,510
c
#import "MWMViewController.h" @interface MWMNoMapsViewController : MWMViewController + (MWMNoMapsViewController *)controller NS_SWIFT_NAME(controller()); @end
38.75
4
(translation_unit) "#import "MWMViewController.h"\n\n@interface MWMNoMapsViewController : MWMViewController\n\n+ (MWMNoMapsViewController *)controller NS_SWIFT_NAME(controller());\n\n@end\n" (preproc_call) "#import "MWMViewController.h"\n" (preproc_directive) "#import" (preproc_arg) ""MWMViewController.h"" ...
38
5
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 38.75, "nodes": 25, "errors": 0, "source_hash": "6a140155d560da121408767becfdd72bc8e9d24252e7f5b42cc94a5bde164950", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
79,511
c
// // UILabel+StringFrame.h // JJ56 // // Created by wangliang on 16/7/14. // Copyright © 2016年 SDJY. All rights reserved. // #import <UIKit/UIKit.h> @interface UILabel (StringFrame) - (CGSize)boundingRectWithSize:(CGSize)size; @end
20.55
11
(translation_unit) "//\n// UILabel+StringFrame.h\n// JJ56\n//\n// Created by wangliang on 16/7/14.\n// Copyright © 2016年 SDJY. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UILabel (StringFrame)\n- (CGSize)boundingRectWithSize:(CGSize)size;\n@end\n" (comment) "//" (comment) "// UILabel+Stri...
41
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.55, "nodes": 23, "errors": 0, "source_hash": "8a3352996b4fd9fa4c77cdad8173beb52fd88f489c8f96070d91aa14153c7b72", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,512
c
#include <php.h> #include "include/php_uv_private.h" #include "src/args/locks/uv_mutex.h"
29
3
(translation_unit) "#include <php.h>\n\n#include "include/php_uv_private.h"\n#include "src/args/locks/uv_mutex.h"\n" (preproc_include) "#include <php.h>\n" (#include) "#include" (system_lib_string) "<php.h>" (preproc_include) "#include "include/php_uv_private.h"\n" (#include) "#include" (string_lite...
16
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 9, "errors": 0, "source_hash": "6f046394edb7a3718112746829538be9880d1deb7cd5e59380b96b7b2c602c7b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
79,513
c
/* * S-DES file encryption program * * Copyright (c) 2009, AlferSoft (www.alfersoft.com.ar - <EMAIL>) * All rights reserved. * * BSD License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
30.65
121
(translation_unit) "/*\n * S-DES file encryption program\n *\n * Copyright (c) 2009, AlferSoft (www.alfersoft.com.ar - <EMAIL>)\n * All rights reserved.\n * \n * BSD License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions...
870
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 30.65, "nodes": 498, "errors": 0, "source_hash": "cb4e5f0ad8bd3da4dccbbc37ee277b4b7f441356a17eab40d17c7870526ff0fe", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,514
c
/****************************************************************************** // File: readline.c // Fach: Betriebssysteme // Autor: <NAME>, 2/2010 // Modified: <NAME>, 3/2012 ******************************************************************************/ #include <stdio.h> #include <string.h> ...
30.54
26
(translation_unit) "/******************************************************************************\n// File: readline.c\n// Fach: Betriebssysteme\n// Autor: <NAME>, 2/2010\n// Modified: <NAME>, 3/2012\n******************************************************************************/\n#include <std...
124
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.54, "nodes": 84, "errors": 0, "source_hash": "d2cae424edc8b8133452b0d9bc9acf72fbe4a69909636e2a5355007de651777d", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,515
c
#pragma once #include "Enhancement.h" #include <stdio.h> #include <stdlib.h> /** * @brief Enhancement builder pattern, abstract class. */ class EnhancementBuilder { public: EnhancementBuilder(); Enhancement* getEnhancement() { return enhancement; } void createNewEnhancment() { enhancement = new Enha...
21.78
111
(translation_unit) "#pragma once\n#include "Enhancement.h"\n#include <stdio.h>\n#include <stdlib.h>\n\n/**\n * @brief Enhancement builder pattern, abstract class.\n */\nclass EnhancementBuilder {\n public:\n EnhancementBuilder();\n Enhancement* getEnhancement() {\n return enhancement;\n }\n void createNewEnhancm...
580
17
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 21.78, "nodes": 259, "errors": 0, "source_hash": "47f4a544d5899cf981d45b22bcf92a656030fba7dbf41391f65bc73aadc5f870", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,516
c
// // Created by <NAME> on 10/24/20. // #ifndef SERIAL_TYPES_GENERAL_H #define SERIAL_TYPES_GENERAL_H #include <cinttypes> #include <random> #include <string> /** * @brief Compile Warning Prevention Macro * * Some variables return unused warnings if they only appear in assert statements. * This macro prevents ...
33.43
37
(translation_unit) "//\n// Created by <NAME> on 10/24/20.\n//\n\n#ifndef SERIAL_TYPES_GENERAL_H\n#define SERIAL_TYPES_GENERAL_H\n\n#include <cinttypes>\n#include <random>\n#include <string>\n\n\n/**\n * @brief Compile Warning Prevention Macro\n * \n * Some variables return unused warnings if they only appear in assert ...
197
17
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.43, "nodes": 132, "errors": 0, "source_hash": "666a6b771de54997837a71cdb60276fbcf921d85899b9ddad36f3bb141adfbb8", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,517
c
/* AUTOMATICALLY GENERATED, DO NOT MODIFY */ /* * Schema-defined QAPI types * * Copyright IBM, Corp. 2011 * Copyright (c) 2013-2018 Red Hat Inc. * * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. * See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" #i...
34.16
223
(translation_unit) "/* AUTOMATICALLY GENERATED, DO NOT MODIFY */\n\n/*\n * Schema-defined QAPI types\n *\n * Copyright IBM, Corp. 2011\n * Copyright (c) 2013-2018 Red Hat Inc.\n *\n * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.\n * See the COPYING.LIB file in the top-level directory.\n ...
1,802
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 34.16, "nodes": 936, "errors": 0, "source_hash": "d96d8b37778c27dd3a9df1529e980ab0e1c5ce09045406ae102c35d06226c4ff", "categorized_nodes": 481}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,518
c
// Source: https://leetcode.com/problems/majority-element-ii/ // Date: 22.09.2020 // Solution by: <NAME> // Runtime: 8ms // Memory usage: 7.5 MB #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "../lib/vectorUtils/vectorUtils.h" // Leetcode solution starts int *majorityElement(int *nums, int num...
21.8
101
(translation_unit) "// Source: https://leetcode.com/problems/majority-element-ii/\n// Date: 22.09.2020\n// Solution by: <NAME>\n// Runtime: 8ms\n// Memory usage: 7.5 MB\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "../lib/vectorUtils/vectorUtils.h"\n\n// Leetcode solution starts\n\nint *...
891
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 21.8, "nodes": 519, "errors": 0, "source_hash": "6fe12d6c9a9d5ff69fe63d2319e2be0345b86fbfc6c418ceede60666a6bc0a5b", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,519
c
/* Copyright (C) 2007-2010 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
34.04
255
(translation_unit) "/* Copyright (C) 2007-2010 Open Information Security Foundation\n *\n * You can copy, redistribute or modify this Program under the terms of\n * the GNU General Public License version 2 as published by the Free\n * Software Foundation.\n *\n * This program is distributed in the hope that it will be ...
801
0
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 34.04, "nodes": 561, "errors": 0, "source_hash": "3e4720a9ac85f88ede4e89f0556ccfe05c79fea57a12edadd63c3000f9b969d3", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,520
c
#ifndef _MAIN_H_ #define _MAIN_H_ #include <stdio.h> #include <GL/glut.h> #include "panel.h" #include "drawing.h" #include "ui.h" #include "menu.h" #include "mouse.h" #endif
16.4
10
(translation_unit) "#ifndef _MAIN_H_\n#define _MAIN_H_\n\n#include <stdio.h>\n#include <GL/glut.h>\n\n#include "panel.h"\n#include "drawing.h"\n#include "ui.h"\n\n#include "menu.h"\n#include "mouse.h"\n\n#endif\n" (preproc_ifdef) "#ifndef _MAIN_H_\n#define _MAIN_H_\n\n#include <stdio.h>\n#include <GL/glut.h>\n\n#incl...
44
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.4, "nodes": 28, "errors": 0, "source_hash": "10b8fc7ac98fbc96a2a84f3766f6133034cbe44e7ea7eb2e1e5b0192b26197ca", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,521
c
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * ****/ #include "cmdlib.h" #define NO_THREAD_NAMES #include "threads.h" #define MAX...
19.05
269
(translation_unit) "**\n*\n* Copyright (c) 1996-2002, Valve LLC. All rights reserved.\n* \n* This product contains software technology licensed from Id \n* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. \n* All Rights Reserved.\n*\n****/\n\n#include "cmdlib.h"\n#define NO_THREAD_NAMES\n#inc...
1,504
0
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 19.05, "nodes": 857, "errors": 0, "source_hash": "73431583d0056eb8a5f84d926323a761d984419b3254594d24d99cf413417c72", "categorized_nodes": 607}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
79,522
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <benchmark/benchmark.h> #include <random> void ArgsProduct(benchmark::internal::Benchmark* bench, const std::vector<std::vector<int64_t>>& arglists); template<typename ElementType...
41.11
27
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include <benchmark/benchmark.h>\n\n#include <random>\n\n\nvoid ArgsProduct(benchmark::internal::Benchmark* bench,\n const std::vector<std::vector<int64_t>>& arglists);...
359
24
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 41.11, "nodes": 239, "errors": 0, "source_hash": "5b0496bc5895bb0f876f2f744d3eea7740d5810ca8ff177fca05f41bdd681421", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,523
c
#ifndef _CPU_PMAP_H_ #define _CPU_PMAP_H_ /* Machine-independent PMAP API. */ #include <cpu/memory.h> struct vm; struct vm_page; #define PMAP_ASID_RESERVED (0) #define PMAP_ASID_FIRST (1) #define PMAP_ASID_MAX (255) /* * A quicker extract routine when the page layer knows the address is in the * direct-mappe...
32.7
57
(translation_unit) "#ifndef _CPU_PMAP_H_\n#define _CPU_PMAP_H_\n\n /* Machine-independent PMAP API. */\n\n#include <cpu/memory.h>\n\nstruct vm;\nstruct vm_page;\n\n#define PMAP_ASID_RESERVED (0)\n#define PMAP_ASID_FIRST (1)\n#define PMAP_ASID_MAX (255)\n\n/*\n * A quicker extract routine when the page layer knows th...
446
5
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.7, "nodes": 302, "errors": 0, "source_hash": "2d4ad12d4713032a0bafc154631941b7ce92ad98d7958dd20f86075b23c5ae76", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,524
c
#ifndef __PYVIX_H__ #define __PYVIX_H__ #include <Python.h> #include <structmember.h> #include <vix.h> #ifndef VIX_SERVICEPROVIDER_DEFAULT #define VIX_SERVICEPROVIDER_DEFAULT VIX_SERVICEPROVIDER_VMWARE_WORKSTATION #endif // VIX_SERVICEPROVIDER_DEFAULT #define DOC_MOD "Python wrapper for VMware VIX API." extern P...
29.46
28
(translation_unit) "#ifndef __PYVIX_H__\n#define __PYVIX_H__\n\n#include <Python.h>\n#include <structmember.h>\n\n#include <vix.h>\n\n#ifndef VIX_SERVICEPROVIDER_DEFAULT\n#define VIX_SERVICEPROVIDER_DEFAULT VIX_SERVICEPROVIDER_VMWARE_WORKSTATION\n#endif // VIX_SERVICEPROVIDER_DEFAULT\n\n#define DOC_MOD "Python wrappe...
158
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.46, "nodes": 123, "errors": 0, "source_hash": "4b4a8287e4fa74cccc07a135fb3dd0adc86468a3d1758d6a5f9a65d5833a783f", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,525
c
#include <termios.h> #define CSIZE (0x3) /* POSIX(1) */
22.4
5
(translation_unit) "#include <termios.h>\n#define CSIZE (0x3)\n/*\nPOSIX(1)\n*/\n" (preproc_include) "#include <termios.h>\n" (#include) "#include" (system_lib_string) "<termios.h>" (preproc_def) "#define CSIZE ...
9
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.4, "nodes": 7, "errors": 0, "source_hash": "e9c2881a57edf890ec60988b018cd67102c38465330e83c39dc08a56c9ca7f2a", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
79,526
c
void ft_putchar(char c); void ft_print_alphabet(void);
26.5
2
(translation_unit) "void ft_putchar(char c);\nvoid ft_print_alphabet(void);\n" (declaration) "void ft_putchar(char c);" (primitive_type) "void" (function_declarator) "ft_putchar(char c)" (identifier) "ft_putchar" (parameter_list) "(char c)" (() "(" (parameter_declaration) "char c" ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 26.5, "nodes": 15, "errors": 0, "source_hash": "e803481bebe76815a8976e51cf391771540c6aada64b8228b9920e3be942f116", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void ft_putch...
79,527
c
#include "drelease.h" char ROSEFUNS_ID[]= "\0@(#) " __FILE__ " $Revision: 1.13 $$Date: 2014/02/09 04:41:58 $"; D_REL_IDSTR; /**************************************************************** * ROSEFUNS.C - General routines used by Tools Library programs * * $Revision: 1.13 $ $Date: 2014/02/09 04:41:58 $ * * ~...
30.3
184
(translation_unit) "#include "drelease.h"\nchar ROSEFUNS_ID[]=\n "\0@(#) " __FILE__ " $Revision: 1.13 $$Date: 2014/02/09 04:41:58 $";\nD_REL_IDSTR;\n/****************************************************************\n * ROSEFUNS.C - General routines used by Tools Library programs\n *\n * $Revision: 1.13 $ $Date: 20...
575
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 30.3, "nodes": 331, "errors": 0, "source_hash": "638f1400e2be7f946020abc258fb6f1fe0c8ec033705a50b788dcbed6db718d4", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,528
c
/** @file Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef TDX_ACPI_TABLE_H_ #define TDX_ACPI_TABLE_H_ #include <PiDxe.h> #include <Protocol/AcpiTable.h> #include <Protocol/FirmwareVolume2.h> #include <Protocol/PciIo.h...
23.67
60
(translation_unit) "/** @file \n \n Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> \n SPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#ifndef TDX_ACPI_TABLE_H_ \n#define TDX_ACPI_TABLE_H_ \n \n#include <PiDxe.h> \n \n#include <Protocol/AcpiTable.h> \n#include <Protocol/FirmwareVolum...
93
6
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 23.67, "nodes": 79, "errors": 0, "source_hash": "64694e480b0da9c9ead867a8f43009a231080f8be4ed6d0407066b929b08c2d3", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,529
c
#define RUBY_REVISION 40737
27
1
(translation_unit) "#define RUBY_REVISION 40737\n" (preproc_def) "#define RUBY_REVISION 40737\n" (#define) "#define" (identifier) "RUBY_REVISION" (preproc_arg) "40737"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 27.0, "nodes": 4, "errors": 0, "source_hash": "a1da39f161c514151795780959b7604c34d4d42d337f7b9e18fd1288c191fd79", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define RUBY_R...
79,530
c
#pragma once #ifndef __PERSONITEM_H__ #define __PERSONITEM_H__ //////////////////////////////////// #include "baseitem.h" ///////////////////////////// namespace info { class Person; ////////////////////////////////// class PersonItem : public BaseItem { public: PersonItem(); PersonItem(const Value &oMap); P...
27.06
34
(translation_unit) "#pragma once\n#ifndef __PERSONITEM_H__\n#define __PERSONITEM_H__\n////////////////////////////////////\n#include "baseitem.h"\n/////////////////////////////\nnamespace info {\n class Person;\n //////////////////////////////////\n class PersonItem : public BaseItem\n {\n public:\n PersonItem();\n P...
291
15
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.06, "nodes": 160, "errors": 0, "source_hash": "05b4b98046603dfaf46a35439bdd3413ddc1715be455911e7a3953a4f4f915d8", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,531
c
/* * Copyright (c) 2006, Swedish Institute of Computer Science * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * no...
27.31
235
(translation_unit) "/*\n * Copyright (c) 2006, Swedish Institute of Computer Science\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain t...
1,189
0
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 27.31, "nodes": 687, "errors": 0, "source_hash": "b370505e41b2675f99c11739ffb6ab3206f9ff599dd505efa7b967b385d46066", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,532
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QListWidget> #include <QPushButton> #include <QStyle> #include <QDesktopWidget> #include <QScreen> #include <QTimer> #include <QInputDialog> #include "wlan_info.h" #include "wpa_supplicant_control.h" QT_BEGIN_NAMESPACE namespace Ui { class Ma...
26.4
65
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n#include <QListWidget>\n#include <QPushButton>\n#include <QStyle>\n#include <QDesktopWidget>\n#include <QScreen>\n#include <QTimer>\n#include <QInputDialog>\n\n#include "wlan_info.h"\n#include "wpa_supplicant_control.h"\n\nQT_BEGI...
367
13
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 26.4, "nodes": 247, "errors": 0, "source_hash": "d2fde848eb2ad0b5329ecd0be87cb34059a4e9ea0b41c926dc358c4dc7b13277", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,533
c
/* - E X C H M E M . H - * Purpose: * * * Parameters: * * * Returns: * * * Copyright (C) 1995-96, Microsoft Corporation. */ #ifndef _EXCHMEM_ #define _EXCHMEM_ #ifdef __cplusplus extern "C" { #endif // Additional Heap Flags #define HEAP_NO_FREE 0x00001000 // API ...
11.01
200
(translation_unit) "/* \n - E X C H M E M . H \n - \n * Purpose: \n * \n * \n * Parameters: \n * \n * \n * Returns: \n * \n * \n * Copyright (C) 1995-96, Microsoft Corporation. \n */ \n \n#ifndef _EXCHMEM_ \n#define _EXCHMEM_ \n \n \n#ifdef __cplusplus \nextern "C" \n{ \n#endif \n \n// Additional Heap Flags \n \n...
499
26
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 11.01, "nodes": 376, "errors": 0, "source_hash": "a0f38c2b2af903937a6f912a3b3551236cee708fe41df31248208fb0ea852344", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,534
c
// // LFMenu.h // LFMenuView // // Created by Mac on 2018/7/4. // Copyright © 2018年 Mac. All rights reserved. // #import <UIKit/UIKit.h> typedef enum { LFMenuLeftNavBar, LFMenuRightNavBar, LFMenuLeftNormal, LFMenuMidNormal, LFMenuRightNormal, }LFMenuType; typedef void(^ItemClickIndexBlock)(NS...
23.91
44
(ERROR) "//\n// LFMenu.h\n// LFMenuView\n//\n// Created by Mac on 2018/7/4.\n// Copyright © 2018年 Mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef enum {\n LFMenuLeftNavBar,\n LFMenuRightNavBar,\n LFMenuLeftNormal,\n LFMenuMidNormal,\n LFMenuRightNormal,\n}LFMenuType;\n\ntypedef vo...
160
9
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.91, "nodes": 92, "errors": 0, "source_hash": "6956b803e7e1b452ec137a132cc763f36bcd6013c89a9968fdfe5c52dff90f9c", "categorized_nodes": 63}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// LFMenu.h\n// LFMen...
79,535
c
// // XYSegmentCallBackData.h // AFNetworking // // Created by 夏澄 on 2021/1/5. // #import <Foundation/Foundation.h> #import "XYEngineEnum.h" NS_ASSUME_NONNULL_BEGIN @interface XYSegmentCallBackData : NSObject /// 人体分割检测的状态 @property (nonatomic, assign) XYSegmentState segmentState; /// clip的路径 @property (nonatom...
23.83
18
(translation_unit) "//\n// XYSegmentCallBackData.h\n// AFNetworking\n//\n// Created by 夏澄 on 2021/1/5.\n//\n\n#import <Foundation/Foundation.h>\n#import "XYEngineEnum.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface XYSegmentCallBackData : NSObject\n\n/// 人体分割检测的状态\n@property (nonatomic, assign) XYSegmentState segmentSta...
78
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.83, "nodes": 52, "errors": 0, "source_hash": "d9610f8c853a6236e783b28e61ca8f3b8af23949968e941b124d7bf86499e778", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <Foun...
79,536
c
/*<std-header orig-src='shore' incl-file-exclusion='FILE_S_H'> $Id: file_s.h,v 1.42 2010/07/19 18:35:07 nhall Exp $ SHORE -- Scalable Heterogeneous Object REpository Copyright (c) 1994-99 Computer Sciences Department, University of Wisconsin -- Madison All Rights Reserved. Permission to use, ...
32.87
118
(translation_unit) "/*<std-header orig-src='shore' incl-file-exclusion='FILE_S_H'>\n\n $Id: file_s.h,v 1.42 2010/07/19 18:35:07 nhall Exp $\n\nSHORE -- Scalable Heterogeneous Object REpository\n\nCopyright (c) 1994-99 Computer Sciences Department, University of\n Wisconsin -- Madison\nAll Rights Re...
643
32
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 32.87, "nodes": 352, "errors": 0, "source_hash": "5b3c1adaf472b845da713d704ad03ce6e126933d67efca5e6c4b8b035e605978", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,537
c
/** * Copyright (c) 2021 <NAME> - All Rights Reserved * * This file is part of the Refureku library project which is released under the MIT License. * See the README.md file for full license details. */ #pragma once #include "Refureku/TypeInfo/Variables/VariableBase.h" #include "Refureku/TypeInfo/Variables/EFieldFlag...
31.42
57
(translation_unit) "/**\n* Copyright (c) 2021 <NAME> - All Rights Reserved\n*\n* This file is part of the Refureku library project which is released under the MIT License.\n* See the README.md file for full license details.\n*/\n\n#pragma once\n\n#include "Refureku/TypeInfo/Variables/VariableBase.h"\n#include "Refureku...
195
12
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.42, "nodes": 111, "errors": 0, "source_hash": "5de9da65388800663607a7c73550f8ad3b902d29b553307f55d706642a215586", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,538
c
/* ** EPITECH PROJECT, 2021 ** B-MUL-200-LYN-2-1-myrpg-david.gozlan ** File description: ** init_text_load_save_menu_aux */ #include "rpg.h" void init_text_name_save(load_save_menu_scene_t *menu, sfVector2f pos, char *path) { text_data_t text_data; pars_obj_t *obj = parser_json(path); pars_data_t *name; ...
31.89
53
(translation_unit) "/*\n** EPITECH PROJECT, 2021\n** B-MUL-200-LYN-2-1-myrpg-david.gozlan\n** File description:\n** init_text_load_save_menu_aux\n*/\n\n#include "rpg.h"\n\nvoid init_text_name_save(load_save_menu_scene_t *menu,\nsfVector2f pos, char *path)\n{\n text_data_t text_data;\n pars_obj_t *obj = parser_jso...
503
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.89, "nodes": 312, "errors": 0, "source_hash": "c56270c9f4f26a8517b43002d67454dafe2a7f86a7f620a2252d44faaa32289f", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,539
c
// // UIImage+BBAGallop.h // BBAPainterDemo_Example // // Created by Ning,Liujie on 2019/3/27. // Copyright © 2019年 Baidu. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /** * 对UIImage的扩展 * */ @interface UIImage (BBAGallop) /** * 将一张图片按照contentMode和指定的size处理 * */ - (UIImage *)p...
17.26
127
(translation_unit) "//\n// UIImage+BBAGallop.h\n// BBAPainterDemo_Example\n//\n// Created by Ning,Liujie on 2019/3/27.\n// Copyright © 2019年 Baidu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * 对UIImage的扩展\n *\n */\n\n@interface UIImage (BBAGallop)\n\n/**\n * 将一张图片按照con...
477
30
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 17.26, "nodes": 286, "errors": 0, "source_hash": "40589b5856059144a5a4c0028f73b7be2ce1ea08aa600877dfad319e67cc6186", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
79,540
c
// // RegisterView.h // MDKinderGarten // // Created by 周永超 on 16/5/4. // Copyright © 2016年 zhouyongchao. All rights reserved. // #import <UIKit/UIKit.h> @protocol RegisterFootViewDelegate <NSObject> - (void)registerClicked:(UIButton *)sender; @end @interface RegisterFootView : UIView @property (nonatomic, we...
24.86
14
(translation_unit) "//\n// RegisterView.h\n// MDKinderGarten\n//\n// Created by 周永超 on 16/5/4.\n// Copyright © 2016年 zhouyongchao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol RegisterFootViewDelegate <NSObject>\n\n- (void)registerClicked:(UIButton *)sender;\n\n@end\n\n@interface RegisterFootVie...
71
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.86, "nodes": 50, "errors": 0, "source_hash": "8531c1ef285977cee31a1a2979cab9c7453a0ce30da6b1012781d0207508954a", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
79,541
c
/* * The MIT License (MIT) * * Copyright (c) 2014 <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,...
32.28
159
(translation_unit) "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 <NAME>\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 limitation ...
1,029
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 32.28, "nodes": 571, "errors": 0, "source_hash": "6ca33f0b3a4f60f7c8b848c1b154ad83b233757aec9750eef6cf4bf24b695ae3", "categorized_nodes": 421}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,542
c
#include "geminc.h" #include "gemprm.h" void decode_alpha_graphic ( unsigned char *buf ) { int i, k, icnt; int blen, boff, ipag, lpag, npag; int packet_code=0, cval; if ( (int)read_short(buf) != -1 ) { printf("block divider not found\n"); return; } if ( (int)read_short(buf + 2) != 2) { printf("al...
26.29
48
(translation_unit) "#include "geminc.h"\n#include "gemprm.h"\n\n\nvoid decode_alpha_graphic ( unsigned char *buf )\n{\nint i, k, icnt;\nint blen, boff, ipag, lpag, npag;\nint packet_code=0, cval;\n\nif ( (int)read_short(buf) != -1 )\n {\n printf("block divider not found\n");\n return;\n }\n\nif ( (int)read_shor...
446
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 26.29, "nodes": 287, "errors": 0, "source_hash": "3bf2f532267af569f8a6c1a0f6c605ac64cfd8f4a40bbc97018c8ee79bffaf45", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,543
c
/* * Copyright (c) 2012-2015 <NAME>. All rights reserved. * * 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, ...
30.44
91
(translation_unit) "/*\n * Copyright (c) 2012-2015 <NAME>. All rights reserved.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n *...
170
3
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 30.44, "nodes": 119, "errors": 0, "source_hash": "903e116f50e227ea3405040b3a0e1aa8129e34ed44f63742b9184ce28a7b8016", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,544
c
#include <stdlib.h> int ttyslot(void) { return 0; } /* XOPEN(400,600) */
8.25
8
(translation_unit) "#include <stdlib.h>\n\nint ttyslot(void)\n{\n return 0;\n}\n\n/*\nXOPEN(400,600)\n*/\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "int ttyslot(void)\n{\n return 0;\n}" (primitive_type) "int" (function_de...
21
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 8.25, "nodes": 12, "errors": 0, "source_hash": "c5570b19c5bfa21014480afbf14b2a5b23cc434f0d154d05f53615451b5e6ee3", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
79,545
c
/* DO NOT EDIT: This file is automatically generated by Cabal */ /* package servent-intro-0.1.0.0 */ #define VERSION_servent_intro "0.1.0.0" #define MIN_VERSION_servent_intro(major1,major2,minor) (\ (major1) < 0 || \ (major1) == 0 && (major2) < 1 || \ (major1) == 0 && (major2) == 1 && (minor) <= 0) /* package...
63.98
43
(translation_unit) "/* DO NOT EDIT: This file is automatically generated by Cabal */\n\n/* package servent-intro-0.1.0.0 */\n#define VERSION_servent_intro "0.1.0.0"\n#define MIN_VERSION_servent_intro(major1,major2,minor) (\\n (major1) < 0 || \\n (major1) == 0 && (major2) < 1 || \\n (major1) == 0 && (major2) == 1 &...
180
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 63.98, "nodes": 128, "errors": 0, "source_hash": "0723c52d96228658ee3bfed247e76ce9d2d64f675084636cb21237f74591c50f", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define V...
79,546
c
#include <stdio.h> void showTextFile(const char *filePath) { FILE *textFile = fopen(filePath, "rt"); if (textFile) { char c; while ((c = fgetc(textFile)) != EOF) { printf("%c", c); } fclose(textFile); } else { printf("\n"); printf("No se pudo enco...
25.33
15
(translation_unit) "#include <stdio.h>\n\nvoid showTextFile(const char *filePath) {\n FILE *textFile = fopen(filePath, "rt");\n if (textFile) {\n char c;\n while ((c = fgetc(textFile)) != EOF) {\n printf("%c", c);\n }\n fclose(textFile);\n } else {\n printf("\n");\...
138
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.33, "nodes": 70, "errors": 0, "source_hash": "402eaba810d94fa2ca9c3f749204a4e9f8ee6035fc0ebc3f241bfac8a80c2152", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,547
c
/* * Copyright 2010 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed t...
39.44
167
(translation_unit) "/*\n * Copyright 2010 <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n\n * Unless required ...
1,434
60
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 39.44, "nodes": 931, "errors": 0, "source_hash": "4cd4a05d315dfc30dc848a248058c5f40446b2394a152b0268c69547a66d393a", "categorized_nodes": 715}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,548
c
/* * Copyright (c) scott.cgi All Rights Reserved. * * This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub. * The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion. * * License : https://github.com/scottcgi/Mojoc/blob/ma...
23.54
79
(translation_unit) "/*\n * Copyright (c) scott.cgi All Rights Reserved.\n *\n * This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.\n * The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.\n *\n * License : https://github....
174
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 23.54, "nodes": 114, "errors": 0, "source_hash": "b8048e99d29cbda1ec7e4143b685e33c34027ad189702634f1a418e67b2e59fe", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,549
c
// // VmaxAdEvents.h // VMaxAdSDK // // Created by <NAME> on 06/09/21. // Copyright © 2021 Vserv.mobi. All rights reserved. // #import <Foundation/Foundation.h> #import "VmaxAdInfo.h" NS_ASSUME_NONNULL_BEGIN @protocol VMaxAdEvents <NSObject> -(void)onAdInit; -(void)onAdReady:(VmaxAdInfo*)vmaxAdInfo; -(void)onAd...
35.51
39
(translation_unit) "//\n// VmaxAdEvents.h\n// VMaxAdSDK\n//\n// Created by <NAME> on 06/09/21.\n// Copyright © 2021 Vserv.mobi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "VmaxAdInfo.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol VMaxAdEvents <NSObject>\n\n-(void)onAdInit;\n-(void)onAdReady:...
492
75
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.51, "nodes": 295, "errors": 0, "source_hash": "9b78b0f3b43bbf538b6510b5fa90e4d0e2564303b71ee4be1246eda1403ae734", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
79,550
c
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #ifndef SWGANH_MESSAGES_NEWBIE_TUTORIAL_RESPONSE_H_ #define SWGANH_MESSAGES_NEWBIE_TUTORIAL_RESPONSE_H_ #include <cstdint> #include <string> #include "anh/byte_buffer.h" #include "base_swg_me...
30.79
33
(translation_unit) "// This file is part of SWGANH which is released under the MIT license.\n// See file LICENSE or go to http://swganh.com/LICENSE\n\n#ifndef SWGANH_MESSAGES_NEWBIE_TUTORIAL_RESPONSE_H_\n#define SWGANH_MESSAGES_NEWBIE_TUTORIAL_RESPONSE_H_\n\n#include <cstdint>\n#include <string>\n#include "anh/byte_buf...
190
7
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.79, "nodes": 100, "errors": 0, "source_hash": "a4f516052f8517b5676f5fe12de86ab3da3656d20992c5de59dc6ae941e3ee67", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,551
c
#ifndef REG_ADDRESS_H #define REG_ADDRESS_H #include "cache.h" #include "stdlib.h" #include "infeasible.h" #include "tcfg.h" #include "loops.h" #include "isa.h" #include "common.h" #include "symexec.h" /*** TEMPORAL SCOPE DATA STRUCTURE ***/ struct temporal_scope { int loop_id; int lw; int up; int fl...
35.86
88
(translation_unit) "#ifndef REG_ADDRESS_H\n#define REG_ADDRESS_H\n#include "cache.h"\n#include "stdlib.h"\n#include "infeasible.h"\n#include "tcfg.h"\n#include "loops.h"\n#include "isa.h"\n#include "common.h"\n#include "symexec.h"\n\n\n\n/*** TEMPORAL SCOPE DATA STRUCTURE ***/\nstruct temporal_scope {\n int loop_id;...
678
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.86, "nodes": 486, "errors": 0, "source_hash": "3b271bf96585c2c92b2daa6bb2c8423302ef0e8f2d571c54d2d779db40f39d0f", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,552
c
/* * Copyright (c) 2012 Intel Corporation. All Rights Reserved. * * 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, ...
30.44
171
(translation_unit) "/*\n * Copyright (c) 2012 Intel Corporation. All Rights Reserved.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limi...
1,128
0
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 30.44, "nodes": 686, "errors": 0, "source_hash": "9927834d327ffc87b70c7eef4cd24926d1c6a8b8ac8fa77d2621d8c7b620a505", "categorized_nodes": 525}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,553
c
#ifndef RNCFileSystem_h #define RNCFileSystem_h #import <Foundation/Foundation.h> @interface RNCFileSystem : NSObject + (BOOL)ensureDirExistsWithPath:(NSString *)path; + (NSString *)generatePathInDirectory:(NSString *)directory withExtension:(NSString *)extension; + (NSString *)cacheDirectoryPath; @end #endif /* R...
36
9
(translation_unit) "#ifndef RNCFileSystem_h\n#define RNCFileSystem_h\n\n#import <Foundation/Foundation.h>\n\n@interface RNCFileSystem : NSObject\n\n+ (BOOL)ensureDirExistsWithPath:(NSString *)path;\n+ (NSString *)generatePathInDirectory:(NSString *)directory withExtension:(NSString *)extension;\n+ (NSString *)cacheDire...
86
7
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.0, "nodes": 56, "errors": 0, "source_hash": "8f8b6579ee4a5d948b27d1464e5a355ee48f286276fdbd4a45b0af7079ce5d96", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef RN...
79,554
c
#ifndef QRDB2CPP_GLOBAL_H #define QRDB2CPP_GLOBAL_H #include <QtCore/qglobal.h> #if defined(QRDB2CPP_LIBRARY) # define QRDB2CPPSHARED_EXPORT Q_DECL_EXPORT #else # define QRDB2CPPSHARED_EXPORT Q_DECL_IMPORT #endif #endif // QRDB2CPP_GLOBAL_H
26
9
(translation_unit) "#ifndef QRDB2CPP_GLOBAL_H\n#define QRDB2CPP_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if defined(QRDB2CPP_LIBRARY)\n# define QRDB2CPPSHARED_EXPORT Q_DECL_EXPORT\n#else\n# define QRDB2CPPSHARED_EXPORT Q_DECL_IMPORT\n#endif\n\n#endif // QRDB2CPP_GLOBAL_H\n" (preproc_ifdef) "#ifndef QRDB2CPP_GLOB...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.0, "nodes": 27, "errors": 0, "source_hash": "b67558a3bce423c95fb56984f51fddf2640715d2d5c1ee91c1fd420a2771cab8", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef QR...
79,555
c
#pragma once /* * instrumenter.h * * Created on: Dec 18, 2013 */ #include "common.h" struct Counter { UINT64 a; UINT64 * t; Counter ( UINT64 * t_ ) : t(t_) { a = GetTickCount64(); } ~Counter ( ) { *t += GetTickCount64() - a; } }; ...
21.11
290
(translation_unit) "#pragma once\n/*\n * instrumenter.h\n *\n * Created on: Dec 18, 2013\n */\n\n#include "common.h"\n\n\nstruct Counter\n{\n UINT64 a;\n UINT64 * t;\n Counter\n (\n UINT64 * t_\n ) : t(t_)\n {\n a = GetTickCount64();\n }\n\n\n\n ~Counter\n (\n )\n {\n ...
1,046
61
{"language": "c", "success": true, "metadata": {"lines": 290, "avg_line_length": 21.11, "nodes": 684, "errors": 0, "source_hash": "e9ade3d25bd06a72156cc329aa9ab4e8f3f31747bfc249cbab6bed49b033ed5c", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,556
c
/* MIT License - Copyright (c) 2019-2022 <NAME> For full license information read the LICENSE file in the project folder */ #ifndef HASP_LOVYANGFX_TOUCH_DRIVER_H #define HASP_LOVYANGFX_TOUCH_DRIVER_H #ifdef ARDUINO #include <Arduino.h> #include <Wire.h> #include "touch_driver.h" // base class #include "touch_help...
35.37
57
(translation_unit) "/* MIT License - Copyright (c) 2019-2022 <NAME>\n For full license information read the LICENSE file in the project folder */\n\n#ifndef HASP_LOVYANGFX_TOUCH_DRIVER_H\n#define HASP_LOVYANGFX_TOUCH_DRIVER_H\n\n#ifdef ARDUINO\n#include <Arduino.h>\n#include <Wire.h>\n\n#include "touch_driver.h" // b...
455
5
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 35.37, "nodes": 262, "errors": 0, "source_hash": "c4754ebdf261d59d7e8079bc82908a3db9bb53976d63357f2c31eebda4f68545", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,557
c
#include "gameclass.h" #include "tilemap.h" #include "menu.h" #include <nds.h> typedef class CCONTROLMENUSTATE : public CSTATE { protected: CGAME *m_game ; CTILEMAP *m_mainMenuTiles ; CMENU *m_menu ; CMENUITEM *m_menuitems[4] ; public: CCONTROLMENUSTATE(CGAME *game) ; ...
19.57
21
(translation_unit) "#include "gameclass.h"\n#include "tilemap.h"\n#include "menu.h"\n#include <nds.h>\n\ntypedef class CCONTROLMENUSTATE : public CSTATE\n{\n protected:\n CGAME *m_game ;\n \n CTILEMAP *m_mainMenuTiles ;\n \n CMENU *m_menu ;\n CMENUITEM *m_menuitems[4] ; \n \n public:\n ...
109
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 19.57, "nodes": 69, "errors": 0, "source_hash": "ef090b6b85e2fa8984c106c0c94f1bdb19666ec8862f8735466d825fe87bde62", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,558
c
// // UIView+CycleSearchBar.h // MyCycleTool // // Created by ddy on 2018/1/3. // Copyright © 2018年 Cycle. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (CycleSearchBar) /** * 创建searchBar的View */ + (__kindof UIView *)cycle_setupSearchBarWithDelegate:(id<UISearchBarDelegate>)delegate isBecom...
25.86
14
(translation_unit) "//\n// UIView+CycleSearchBar.h\n// MyCycleTool\n//\n// Created by ddy on 2018/1/3.\n// Copyright © 2018年 Cycle. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (CycleSearchBar)\n/**\n * 创建searchBar的View\n */\n+ (__kindof UIView *)cycle_setupSearchBarWithDelegate:(id<UIS...
70
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.86, "nodes": 44, "errors": 0, "source_hash": "790de5fec7b73969eb07b48df7f751cd15997f1bf72015cb2a18b128628c118b", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,559
c
/* $NetBSD: svc_auth.c,v 1.17 2013/03/11 20:19:29 tron Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retai...
30.04
203
(translation_unit) "/* $NetBSD: svc_auth.c,v 1.17 2013/03/11 20:19:29 tron Exp $ */\n\n/*\n * Copyright (c) 2010, Oracle America, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributi...
828
0
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 30.04, "nodes": 521, "errors": 0, "source_hash": "23529a774bf9182e36633ab7f8e661049b40336818ad89a70a1fd89b17d756bb", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,560
c
#ifndef PROJECT_HEADER_component844_14_H #define PROJECT_HEADER_component844_14_H int component844_14(); #endif // PROJECT_HEADER_component844_14_H
28.8
5
(translation_unit) "#ifndef PROJECT_HEADER_component844_14_H\n#define PROJECT_HEADER_component844_14_H\n\n\n\nint component844_14();\n\n#endif // PROJECT_HEADER_component844_14_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component844_14_H\n#define PROJECT_HEADER_component844_14_H\n\n\n\nint component844_14();\n\n#endi...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.8, "nodes": 12, "errors": 0, "source_hash": "6d71f4b1de2f1a221a44635959202bac75f75f18c905058da2797e2ade3e59c2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
79,561
c
// // AssetActivityProvider.h // AssetActivityProvider // // Created by 沧海无际 on 16/3/8. // Copyright © 2016年 darling0825. All rights reserved. // #import <UIKit/UIKit.h> #import "DLPhotoAsset.h" @interface AssetActivityProvider : NSObject <UIActivityItemSource>//UIActivityItemProvider - (id)initWithAsset:(DLPhoto...
26.31
13
(translation_unit) "//\n// AssetActivityProvider.h\n// AssetActivityProvider\n//\n// Created by 沧海无际 on 16/3/8.\n// Copyright © 2016年 darling0825. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "DLPhotoAsset.h"\n\n@interface AssetActivityProvider : NSObject <UIActivityItemSource>//UIActivityItemProvid...
60
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.31, "nodes": 36, "errors": 0, "source_hash": "d0b5b2ff8b9a77c41a111c485f4f92bc269a63732fa0aa7dff13b698b6b8569c", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
79,562
c
/**************************************************** * RoseBin :: Binary Analysis for ROSE * Author : tps * Date : Jul27 07 * Decription : Control flow Analysis ****************************************************/ #ifndef __RoseBin_CallGraphAnalysis__ #define __RoseBin_CallGraphAnalysis__ #include "RoseBin_Flo...
32.5
40
(translation_unit) "/****************************************************\n * RoseBin :: Binary Analysis for ROSE\n * Author : tps\n * Date : Jul27 07\n * Decription : Control flow Analysis\n ****************************************************/\n\n#ifndef __RoseBin_CallGraphAnalysis__\n#define __RoseBin_CallGraphAnaly...
287
13
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.5, "nodes": 168, "errors": 0, "source_hash": "9228d95cfaf1bfeae9843e61d574d0dc4cd7e35158633171095d1f99df1841c4", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,563
c
/* Auto-generated file - don't edit. */ #define PDS_UKERNEL_INIT_PRIM1_DATA_SEGMENT_SIZE (32UL) static const IMG_UINT32 g_pui32PDSUKERNEL_INIT_PRIM1[11] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x170004E0, 0x07030305, 0xAF000000, }; #ifdef INLINE_IS_PRAGMA ...
34.81
32
(translation_unit) "/* Auto-generated file - don't edit. */\n\n#define PDS_UKERNEL_INIT_PRIM1_DATA_SEGMENT_SIZE (32UL)\nstatic const IMG_UINT32 g_pui32PDSUKERNEL_INIT_PRIM1[11] = {\n0x00000000, 0x00000000, 0x00000000, 0x00000000,\n0x00000000, 0x00000000, 0x00000000, 0x00000000,\n0x170004E0, 0x07030305, 0xAF000000,\n};\...
165
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.81, "nodes": 113, "errors": 0, "source_hash": "9f3f5dbb2ec5cf3dbb51a506659946bfe4d79ec053652b773075065c94ab56f7", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define P...
79,564
c
#include "py/obj.h" #include "model_device.h" #include "device.h" typedef struct usr_pin_cfg{ uint32_t pin; uint32_t mode; uint32_t irq_mode; }usr_pin_obj_t; typedef struct usr_key_cfg{ mp_obj_base_t base; mp_obj_t pin_isr_cb; device_info_t *device; usr_pin_obj_t pin; }usr_key_obj_t; typedef struct...
19.18
22
(translation_unit) "#include "py/obj.h"\n#include "model_device.h"\n#include "device.h"\n\n\n\n\ntypedef struct usr_pin_cfg{\n uint32_t pin;\n uint32_t mode;\n uint32_t irq_mode;\n}usr_pin_obj_t;\n\ntypedef struct usr_key_cfg{\n mp_obj_base_t base;\n mp_obj_t pin_isr_cb;\n device_info_t *device;\n usr_pin_obj_t ...
95
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.18, "nodes": 62, "errors": 0, "source_hash": "a99a7b5b4b6774d9b3e9b6e273329bcc6a97860583e12c081d8b33f8d81f8e06", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,565
c
/********************************************************************** * * File: map.h * * Author(s): <NAME> <<EMAIL>> * * Date created: 11/06/2021 * * Description: contains typedefs and function declarations for * common map functions. * *******************************************...
27.72
25
(translation_unit) "/********************************************************************** \n* \n* File: map.h \n* \n* Author(s): <NAME> <<EMAIL>> \n* \n* Date created: 11/06/2021 \n* \n* Description: contains typedefs and function declarations for \n* common map functions. \n* \n************...
45
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.72, "nodes": 30, "errors": 0, "source_hash": "b0541d776856a57fe9f14ef4ce61a5fbd35fd662c10f794ea640b9890bfd8d9d", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,566
c
#ifndef FPS_H #define FPS_H typedef struct _fps FPS; struct _fps { int frame, time, timebase; char stringfps[255]; } ; /******** * Constructor ********/ FPS * FPS_new(void); /******** * Destructor ********/ void FPS_delete(FPS * fps); void FPS_update(FPS * fps, int glut_elapsed_time); #endif
14.79
19
(translation_unit) "#ifndef FPS_H\n#define FPS_H\n\ntypedef struct _fps FPS;\n\nstruct _fps\n{\n int frame, time, timebase;\n char stringfps[255];\n} ;\n\n/********\n * Constructor\n ********/\nFPS * FPS_new(void);\n\n/********\n * Destructor\n ********/\nvoid FPS_delete(FPS * fps);\n\n\nvoid FPS_update(FPS * fps, int ...
82
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 14.79, "nodes": 58, "errors": 0, "source_hash": "b9f4d03604199322757ef88708efa42bb6387a0e4205a4e040093a634830c525", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,567
c
#pragma once #include "Componente.h" #define Led_H class Led: public Componente { public: Led(String nome, String descricao, int pino, int tipo); void setEstado(bool estadoLED); bool getEstado(); protected: bool _estadoLED = false; }; Led::Led(String nome, String descric...
18.74
31
(translation_unit) "#pragma once \n \n#include "Componente.h" \n \n#define Led_H \n \nclass Led: public Componente { \n public: \n \n Led(String nome, String descricao, int pino, int tipo); \n \n void setEstado(bool estadoLED); \n bool getEstado(); \n \n protected: \n bool _estadoLED = false; \n}; \n ...
198
11
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 18.74, "nodes": 119, "errors": 0, "source_hash": "5b0765c8f5098dda4692dd0ae85373a0a94567d9bcc28077b25292a556ccd0f6", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,568
c
#include "trivial.h" #include <string.h> #include <stdio.h> /** * Find occurances of pattern in text using trivial algorithm. * * @returns number of occurances of pattern in text. */ uint32_t trivial_match(const char *text, const char *pattern, const size_t text_len) { if (text == NULL ...
24.46
39
(translation_unit) "#include "trivial.h"\n\n#include <string.h>\n#include <stdio.h>\n\n/**\n * Find occurances of pattern in text using trivial algorithm.\n *\n * @returns number of occurances of pattern in text.\n */\nuint32_t trivial_match(const char *text, const char *pattern,\n const size_t te...
276
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.46, "nodes": 159, "errors": 0, "source_hash": "0a84c82e343901cd56920051b193f455e846aef45f37b2e324ba531c9c0bd01b", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,569
c
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
27.51
205
(translation_unit) "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 <NAME>\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 limitation ...
821
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 27.51, "nodes": 465, "errors": 0, "source_hash": "452da2a83826b43be8aab450d73f7523d699e8e97b5445adeb6c0b5e6ee8b25e", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,570
c
#ifndef IN_APP_DEBUGGER_THREAD_H #define IN_APP_DEBUGGER_THREAD_H #include <fcntl.h> #include <memory> class Process; class InAppDebugger; class Thread { public: Thread(InAppDebugger* dbg, pid_t tid, std::shared_ptr<Process> owningProcess); private: void processEvent(int status); void setOwningProcess(s...
26.31
29
(translation_unit) "#ifndef IN_APP_DEBUGGER_THREAD_H\n#define IN_APP_DEBUGGER_THREAD_H\n\n#include <fcntl.h>\n#include <memory>\n\nclass Process;\nclass InAppDebugger;\n\nclass Thread {\n\npublic:\n Thread(InAppDebugger* dbg, pid_t tid, std::shared_ptr<Process> owningProcess);\nprivate:\n void processEvent(int st...
199
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.31, "nodes": 128, "errors": 0, "source_hash": "f6f8a26dfd913aca8eed3c8876243f2d24d5eb53b94379a42d22088e6b98380e", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef IN_APP_...
79,571
c
#ifndef __LIS3MDL_SAMPLE_H__ #define __LIS3MDL_SAMPLE_H__ #include "LIS3MDL.h" #include "STM32DISCO_L475VG_IOT.h" #ifndef SAMPLE_MAIN #define SAMPLE_MAIN lis3mdlSample #endif void lis3mdlSample(codal::STM32DISCO_L475VG_IOT& discoL475VgIot); #endif
26.56
9
(translation_unit) "#ifndef __LIS3MDL_SAMPLE_H__\n#define __LIS3MDL_SAMPLE_H__\n\n#include "LIS3MDL.h"\n#include "STM32DISCO_L475VG_IOT.h"\n\n#ifndef SAMPLE_MAIN\n#define SAMPLE_MAIN lis3mdlSample\n#endif\n\nvoid lis3mdlSample(codal::STM32DISCO_L475VG_IOT& discoL475VgIot);\n\n#endif\n" (preproc_ifdef) "#ifndef __LIS3...
44
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.56, "nodes": 31, "errors": 0, "source_hash": "b17e6d35cf888dd22528cd58a65945d0756a0f972cdf5cd461b1c6ce860bd63d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,572
c
/* Copyright (C) 2017 haniu (<EMAIL>) * * 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, Ve...
38.12
115
(translation_unit) "/* Copyright (C) 2017 haniu (<EMAIL>)\n *\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 und...
583
18
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 38.12, "nodes": 377, "errors": 0, "source_hash": "d18900832ff1525f60b3089d3ccd18eb7c35a367e9169c1d0f9bfec9caba6707", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,573
c
// Bus Raider // <NAME> 2019 #pragma once #include "stdint.h" #include "CommandInterface/CommandHandler.h" class Display; class UartMaxi; class BusRaiderApp { public: BusRaiderApp(Display& display, UartMaxi& uart); void init(); void initUSB(); void service(); uint32_t getDefaultAutoBaudRate()...
35.83
106
(translation_unit) "// Bus Raider\n// <NAME> 2019\n\n#pragma once\n\n#include "stdint.h"\n#include "CommandInterface/CommandHandler.h"\n\nclass Display;\nclass UartMaxi;\n\nclass BusRaiderApp\n{\npublic:\n\n BusRaiderApp(Display& display, UartMaxi& uart);\n\n void init();\n void initUSB();\n void service();...
751
3
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 35.83, "nodes": 437, "errors": 0, "source_hash": "e71297e0b5db049a7d477f7d7e1bae6bd4cf844443acf2e459f07cb5be1a7230", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,574
c
#include <fundament/image.h> #include <fundament/log.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // // Reperesents the header of a TGA file. // #pragma pack(push, 1) struct fn__tga_header { uint8_t image_id_length; uint8_t color_map_type; uint8_t image_type; uint16_t color_map_offset; u...
27.64
107
(translation_unit) "#include <fundament/image.h>\n#include <fundament/log.h>\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n//\n// Reperesents the header of a TGA file. \n//\n#pragma pack(push, 1)\nstruct fn__tga_header {\n uint8_t image_id_length;\n\n uint8_t color_map_type;\n uint8_t image_typ...
860
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 27.64, "nodes": 521, "errors": 0, "source_hash": "b014f893aaeda26df9bf455f6b361c3721be175533753088070a0b52705bb54b", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,575
c
/*- * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2016 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE ...
34.6
107
(translation_unit) "/*-\n * Copyright (c) 2010 <NAME> <<EMAIL>>\n * Copyright (c) 2016 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all c...
366
1
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 34.6, "nodes": 334, "errors": 0, "source_hash": "a13351be2d13ea5eb606b7e08b0fa0b30826f64cfefe31ea16abdd1595b9bd47", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,576
c
/* ** This source file is part of AGE ** ** For the latest info, see http://code.google.com/p/ascii-game-engine/ ** ** Copyright (c) 2011 Tony & Tony's Toy Game Development Team ** ** Permission is hereby granted, free of charge, to any person obtaining a copy of ** this software and associated documentation fi...
32.31
68
(translation_unit) "/* \n** This source file is part of AGE \n** \n** For the latest info, see http://code.google.com/p/ascii-game-engine/ \n** \n** Copyright (c) 2011 Tony & Tony's Toy Game Development Team \n** \n** Permission is hereby granted, free of charge, to any person obtaining a copy of \n** this software and...
385
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 32.31, "nodes": 229, "errors": 0, "source_hash": "79a0d3cba46f6bf5f5e23105b29707064a07e4da3e50bc1e676e26a3ce488388", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,577
c
#include <stdint.h> #include <stdbool.h> #include "emul.h" typedef enum { PAD_BTN_UP = 0, PAD_BTN_DOWN = 1, PAD_BTN_LEFT = 2, PAD_BTN_RIGHT = 3, PAD_BTN_B = 4, PAD_BTN_C = 5, PAD_BTN_A = 6, PAD_BTN_START = 7 } PAD_BTN; typedef struct { uint8_t pressed; Tristate *TH; } Pad; voi...
20.65
20
(translation_unit) "#include <stdint.h>\n#include <stdbool.h>\n#include "emul.h"\n\ntypedef enum {\n PAD_BTN_UP = 0,\n PAD_BTN_DOWN = 1,\n PAD_BTN_LEFT = 2,\n PAD_BTN_RIGHT = 3,\n PAD_BTN_B = 4,\n PAD_BTN_C = 5,\n PAD_BTN_A = 6,\n PAD_BTN_START = 7\n} PAD_BTN;\n\ntypedef struct {\n uint8_t pr...
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.65, "nodes": 101, "errors": 0, "source_hash": "519568e9ccc9e534b0e2d0db29b4af90e4404a7ed846a192292502b7f95f132c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,578
c
// // TabBarViewController.h // OMENGO // // Created by 梁尚嘉 on 2016/12/6. // Copyright © 2016年 Kamfat. All rights reserved. // #import <UIKit/UIKit.h> #import "MainConfigure.h" @interface TabBarViewController : UITabBarController @end
20.73
11
(translation_unit) "//\n// TabBarViewController.h\n// OMENGO\n//\n// Created by 梁尚嘉 on 2016/12/6.\n// Copyright © 2016年 Kamfat. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MainConfigure.h"\n@interface TabBarViewController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// TabBarView...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.73, "nodes": 13, "errors": 0, "source_hash": "97ab096e3ab36ec752fc9dfd084a798eaa8f029d2de96b848bc532b22f4e86c8", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKi...
79,579
c
//===-- MBLAZE.h - Top-level interface for MBLAZE representation ----*- C++ -*-===// // // // The LLVM Compiler Infrastructure // // //===----------------------------------------------------------------------===// // // This file contains the entry points for global functions defined in // the LLV...
29.54
37
(translation_unit) "//===-- MBLAZE.h - Top-level interface for MBLAZE representation ----*- C++ -*-===//\n//\n//\n// The LLVM Compiler Infrastructure\n//\n\n//\n//===----------------------------------------------------------------------===//\n//\n// This file contains the entry points for global fu...
108
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.54, "nodes": 50, "errors": 0, "source_hash": "41d7ca1a8327cf0653a98811ec8b4f0c041f750be186e25fe4868aa1cddc3b9b", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,580
c
#ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_PIXMAP_RENDER_SURFACE_H #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_PIXMAP_RENDER_SURFACE_H /* * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
30.67
91
(translation_unit) "#ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_PIXMAP_RENDER_SURFACE_H\n#define DALI_INTERNAL_WINDOWSYSTEM_COMMON_PIXMAP_RENDER_SURFACE_H\n\n/*\n * Copyright (c) 2020 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except...
296
14
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 30.67, "nodes": 174, "errors": 0, "source_hash": "3205cbf22fac98b6495bd1b05abb62859fffef1c6037767daebca652751d2e36", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,581
c
#ifndef MP_H #define MP_H #include <spinorfield.h> #ifdef _OPENMP #define ENABLE_OMP #endif void mp_init(int, char**); void mp_setup(); #ifdef ENABLE_MPI void mp_finalize(); void mp_transfer_spinor(SpinorField&); void mp_transfer_spinor_even(SpinorField&); void mp_transfer_spinor_odd(SpinorField&); void mp_transfer...
23.37
35
(translation_unit) "#ifndef MP_H\n#define MP_H\n\n#include <spinorfield.h>\n\n#ifdef _OPENMP\n#define ENABLE_OMP\n#endif\n\nvoid mp_init(int, char**);\nvoid mp_setup();\n\n#ifdef ENABLE_MPI\nvoid mp_finalize();\nvoid mp_transfer_spinor(SpinorField&);\nvoid mp_transfer_spinor_even(SpinorField&);\nvoid mp_transfer_spinor...
273
3
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 23.37, "nodes": 194, "errors": 0, "source_hash": "fe6e83426156cb2d83845dc9f4808e2bc523e4ebbae213f1de2e732ee8d8eccc", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,582
c
#pragma once #include <Windows.h> #include "..\WoW API\Movement.h" INT SendKey(CHAR cKey, DWORD dwKey); BOOL Move(DIRECTION Direction); BOOL Turn(DIRECTION Direction); VOID PlayerJump();
25.86
7
(translation_unit) "#pragma once\n\n#include <Windows.h>\n\n#include "..\WoW API\Movement.h"\n\nINT SendKey(CHAR cKey, DWORD dwKey);\nBOOL Move(DIRECTION Direction);\nBOOL Turn(DIRECTION Direction);\nVOID PlayerJump();\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (p...
62
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.86, "nodes": 43, "errors": 0, "source_hash": "8739d6a25ba6415e724bf246018f5ee0c4c11e3995cc78d85ac60e609ed56d88", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,583
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:07:22 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
35.16
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:07:22 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/PrivateFrameworks/Symbolication.framework/Symbolication\n* classdump-dyld is licensed under GPLv...
123
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.16, "nodes": 70, "errors": 0, "source_hash": "3e377f4e51a1dc8178a6e229861e28527714c8494819624d83cd1782d3b6f6f2", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <S...
79,584
c
/* 冒泡法 */ #include <stdio.h> #include <string.h> int main(int c, const char *v[]){ /* int i; for(i=0;i<c;i++){ printf("%d --> %s \n", i, v[i]); } */ struct student { char name[64]; int height; float weight; long schols; }; // 要加分号 struct student x; printf("x.name =...
13.54
39
(translation_unit) "/* \n 冒泡法 \n*/ \n \n#include <stdio.h> \n#include <string.h> \n \n \nint main(int c, const char *v[]){ \n \n/* int i; \n \n for(i=0;i<c;i++){ \n printf("%d --> %s \n", i, v[i]); \n } \n*/ \n \n \n struct student { \n char name[64]; \n int height; \n float weight; \n long schols; \n }; // 要加...
160
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 13.54, "nodes": 88, "errors": 0, "source_hash": "6c89201bb30164f7bd0a95826201c7f400283f064a37b09c3856522192c6e885", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de <st...
79,585
c
// // ProductDetailAdvanceCell.h // KidsTC // // Created by 詹平 on 2017/2/10. // Copyright © 2017年 zhanping. All rights reserved. // #import "ProductDetailBaseCell.h" @interface ProductDetailAdvanceCell : ProductDetailBaseCell @property (nonatomic, strong) ProductDetailActivity * activity; @end
26.18
11
(translation_unit) "//\n// ProductDetailAdvanceCell.h\n// KidsTC\n//\n// Created by 詹平 on 2017/2/10.\n// Copyright © 2017年 zhanping. All rights reserved.\n//\n\n#import "ProductDetailBaseCell.h"\n\n@interface ProductDetailAdvanceCell : ProductDetailBaseCell\n@property (nonatomic, strong) ProductDetailActivity * act...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.18, "nodes": 23, "errors": 0, "source_hash": "de58345d3933684abc8710e5f721239c1e0d6c4927606f109fe2addd768027a8", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"Produc...
79,586
c
/***************************************************************************//** * @file * @brief USB protocol stack library, low level USB peripheral access. * @author <NAME> * @version 3.20.3 * <!-- Copyright 2013 by Silicon Laboratories. All rights reserved. *80*--> **********************************...
26.08
331
(translation_unit) "/***************************************************************************//** \n * @file \n * @brief USB protocol stack library, low level USB peripheral access. \n * @author <NAME> \n * @version 3.20.3 \n * <!-- Copyright 2013 by Silicon Laboratories. All rights reserved. *80*--> \n ********...
1,649
0
{"language": "c", "success": true, "metadata": {"lines": 331, "avg_line_length": 26.08, "nodes": 1057, "errors": 0, "source_hash": "5081a7098be46302764d1a9f7c4c0e4dc03d7342ccf493f8d4efc9d044aae456", "categorized_nodes": 715}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
79,587
c
/* SPDX-License-Identifier: Apache-2.0 */ /* * NOTE: This is just an example. * * Linux has its own J1939 kernel module, so there is no need to use * this library. */ #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <net/if.h> #include <sys/ioctl.h> #in...
28.51
71
(translation_unit) "/* SPDX-License-Identifier: Apache-2.0 */\n\n/*\n * NOTE: This is just an example.\n *\n * Linux has its own J1939 kernel module, so there is no need to use\n * this library.\n */\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ne...
506
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 28.51, "nodes": 298, "errors": 0, "source_hash": "1dd4f74d6b3891f59952f8b10b527b4d5d2603f04195bf83b74ab7579463bf73", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,588
c
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
34.06
36
(translation_unit) "/*\n * Copyright (C) 2021 Huawei Device Co., Ltd.\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...
182
4
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.06, "nodes": 114, "errors": 0, "source_hash": "e662cf184c6c350ac3e6435fcedee468257bb3731e170cb4ab0932294bf9cbd0", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,589
c
/* * Copyright (c) 2006-2018, Synwit Technology Co.,Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-05-31 ZYH first version * 2018-12-10 Zohar_Lee format file */ #ifndef __BOARD_H__ #define __BOARD_H__ #include <rtthread.h> #include...
24.04
47
(translation_unit) "/*\n * Copyright (c) 2006-2018, Synwit Technology Co.,Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2018-05-31 ZYH first version\n * 2018-12-10 Zohar_Lee format file\n */\n\n#ifndef __BOARD_H__\n#define __BOARD_H__...
136
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 24.04, "nodes": 120, "errors": 0, "source_hash": "f3be1e311c2382652d5ec6b514f4329da02f7fa49878c71b6793b1a91d5926cc", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,590
c
#include <osreldate.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <errno.h> #include <sys/types.h> #include <sys/time.h> #include <sys/param.h> #include <sys/ucred.h> #include <nfs/rpcv2.h> #include <sys/mount.h> #include <nfs/nfsproto.h> #if __FreeBSD_version < 500023...
26.1
147
(translation_unit) "#include <osreldate.h>\n#include <stdio.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <limits.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/time.h>\n#include <sys/param.h>\n#include <sys/ucred.h>\n#include <nfs/rpcv2.h>\n#include <sys/mount.h>\n#include <nfs/nfsproto.h>...
1,018
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 26.1, "nodes": 608, "errors": 0, "source_hash": "10c7c30ad56d69eca1c01745b8357374fa87d1833399b3e029124dbcee131cf3", "categorized_nodes": 500}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,591
c
// // UIColor+extend.h // DealExtreme // // Created by xiongcaixing on 10-8-30. // Copyright 2010 epro. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor(UIColor_exetnd) /** * 将十六进制的颜色值转为UIColor * * @param hexColor @"#1ec1a3FF" * * @return UIColor */ + (UIColor *)colorWithHexCode:(NSStr...
17.83
18
(translation_unit) "//\n// UIColor+extend.h\n// DealExtreme\n//\n// Created by xiongcaixing on 10-8-30.\n// Copyright 2010 epro. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor(UIColor_exetnd)\n\n/**\n * 将十六进制的颜色值转为UIColor\n *\n * @param hexColor @"#1ec1a3FF"\n *\n * @return UIColor\n *...
44
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 17.83, "nodes": 27, "errors": 0, "source_hash": "14c68e46b47e19cbb8ed86a262e155dcb1d3128002e275f137efc077d1246a0a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,592
c
#include <string.h> #include <stdlib.h> // required for malloc #include "geg_allocators.h" geg_object_allocator_t init_allocator() { // geg_object_allocator_t allocators = {malloc, realloc, free}; // return allocators; return init_allocator_custom3(malloc, realloc, free); } geg_object_allocator_t init_al...
22.42
52
(translation_unit) "#include <string.h>\n#include <stdlib.h> // required for malloc\n#include "geg_allocators.h"\n\ngeg_object_allocator_t init_allocator()\n{\n // geg_object_allocator_t allocators = {malloc, realloc, free};\n // return allocators;\n\n return init_allocator_custom3(malloc, realloc, free);\n}\n...
338
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 22.42, "nodes": 211, "errors": 0, "source_hash": "47f7671153443e5ffef04ebaf1bb0567dc67b60bb20f99daa7fc4f5389cd0c5f", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,593
c
/* * Copyright (c) 2014, Siemens AG. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions an...
33.28
90
(translation_unit) "/*\n * Copyright (c) 2014, Siemens AG. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *...
218
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 33.28, "nodes": 189, "errors": 0, "source_hash": "6b005c6c4c94d0b04ab1a262e64572d797fec81811a75c671ffb5aabbc509aaf", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,594
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv){ int value = atoi(argv[1]); if(value < 16){ printf("0%X", value); } else{ printf("%X", value); } return EXIT_SUCCESS; }
15.75
12
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char **argv){\n int value = atoi(argv[1]);\n if(value < 16){\n printf("0%X", value);\n }\n else{\n printf("%X", value);\n }\n return EXIT_SUCCESS;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_li...
91
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.75, "nodes": 51, "errors": 0, "source_hash": "a95e24bd2739e6bae4ce71bec9457c9f0bc75fe1079f479d3ad64376f8ed4f1e", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,595
c
//slide1.c #include <std.h> #define MESSAGE ({"Your foot slips as you enter!",\ "You begin sliding downward!",\ "You hear Water falling all around you.",\ "You feel you sodden body fall further",\ "You hit a small ledge and bounce off!",\ "You breath in water and start to sputter",\ "COUGH!",\ "COUGH!",\...
32.52
42
(translation_unit) "//slide1.c\n\n#include <std.h>\n#define MESSAGE ({"Your foot slips as you enter!",\\n "You begin sliding downward!",\\n "You hear Water falling all around you.",\\n "You feel you sodden body fall further",\\n "You hit a small ledge and bounce off!",\\n "You breath in water and start to sputter"...
310
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.52, "nodes": 145, "errors": 0, "source_hash": "af3b8f613c48dd3c2d910296c0f125ee1d3f51a3b5c4686f47459fd551c58f66", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,596
c
#ifndef PAGERECORD_H #define PAGERECORD_H class PageRecord { public: PageRecord(int key, int address); PageRecord(int key, int address, int childPage); int getKey(); int getAddress(); int getRightChildPage(); private: int key; int address; int rightChildPage; }; #endif /* PAGERECORD_H */
15.83
18
(translation_unit) "#ifndef PAGERECORD_H\n#define PAGERECORD_H\n\nclass PageRecord {\npublic:\n PageRecord(int key, int address);\n PageRecord(int key, int address, int childPage);\n \n int getKey();\n int getAddress();\n int getRightChildPage();\n \nprivate:\n int key;\n int address;\n \n int rightChildPage;\n};\n\n#e...
91
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 15.83, "nodes": 56, "errors": 0, "source_hash": "b493496a9c18c0c148331cd33c6af507ada2f0e6370cecc317bc42a45599b10e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,597
c
/* -*- C++ -*- */ // RMCast_Proxy.h,v 1.4 2000/10/04 19:28:28 coryan Exp // ============================================================================ // // = LIBRARY // ace // // = FILENAME // RMCast_Proxy.h // // = AUTHOR // <NAME> <<EMAIL>> // // ============================================...
28.31
102
(translation_unit) "/* -*- C++ -*- */ \n// RMCast_Proxy.h,v 1.4 2000/10/04 19:28:28 coryan Exp \n \n// ============================================================================ \n// \n// = LIBRARY \n// ace \n// \n// = FILENAME \n// RMCast_Proxy.h \n// \n// = AUTHOR \n// <NAME> <<EMAIL>> \n// \n// ==========...
339
30
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 28.31, "nodes": 185, "errors": 0, "source_hash": "3f21a74311da11e1557ced6e1e7ff8def5bdbd0b6595adc878bbd10a178b454e", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,598
c
/** * This header is generated by class-dump-z 0.2-1. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: /System/Library/PrivateFrameworks/DAVKit.framework/DAVKit */ #import "DAVKit-Structs.h" #import "DAVRequest.h" @interface DAVOptions : DAVRequest { } +(id)optionsRequestWithU...
29.06
16
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-1.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: /System/Library/PrivateFrameworks/DAVKit.framework/DAVKit\n */\n\n#import "DAVKit-Structs.h"\n#import "DAVRequest.h"\n\n\n@interface DAVOptions : DAVReque...
102
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.06, "nodes": 61, "errors": 0, "source_hash": "6bfa135f832d656ef4a19fc0e70eaa2f2e3e6c266bfb933c8a2d3fab87e5a0df", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,599