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
/* $NetBSD: compat_ntp_gettime.c,v 1.2 2009/01/11 02:46:26 christos Exp $ */ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) __RCSID("$NetBSD: compat_ntp_gettime.c,v 1.2 2009/01/11 02:46:26 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #define __LIBC12_SOURCE__ #include <sys/time.h> #include ...
33.04
23
(translation_unit) "/* $NetBSD: compat_ntp_gettime.c,v 1.2 2009/01/11 02:46:26 christos Exp $ */\n\n#include <sys/cdefs.h>\n#if defined(LIBC_SCCS) && !defined(lint)\n__RCSID("$NetBSD: compat_ntp_gettime.c,v 1.2 2009/01/11 02:46:26 christos Exp $");\n#endif /* LIBC_SCCS and not lint */\n\n#define __LIBC12_SOURCE__\n\n#i...
175
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.04, "nodes": 115, "errors": 0, "source_hash": "c819dd019b015dd5440518cb7e0a0c33e08fb7c7ae99b1a8fd362b86d12289e1", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,700
c
/** @file Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompani...
15.91
182
(translation_unit) "/** @file \n \n Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> \n \n This program and the accompanying materials are licensed and made available under \n the terms and conditions of the B...
539
51
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 15.91, "nodes": 368, "errors": 0, "source_hash": "25e8f097e9a99efac8366fa841b5ae4885618868ba3338d55ed8e93c8cbea449", "categorized_nodes": 276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,701
c
#ifndef _ERROR_H #define _ERROR_H /*------------------------------------- Copyright (c) 1996 Microsoft Corporation Abstract: This file is included for common inlined error functions -------------------------------------*/ #include <ddraw.h> #include "privinc/except.h" #include "privinc/debug...
23.19
58
(translation_unit) "#ifndef _ERROR_H \n#define _ERROR_H \n \n/*------------------------------------- \n \nCopyright (c) 1996 Microsoft Corporation \n \nAbstract: \n \n This file is included for common \n inlined error functions \n \n-------------------------------------*/ \n#include <ddraw.h> \n#include "privinc/...
255
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 23.19, "nodes": 155, "errors": 0, "source_hash": "8e844d4e9743a731b8272692b46dcc17f5df87d89b3eb9a73e8a31285b97e86e", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,702
c
// Generated by gencpp from file gazebo_msgs/ApplyBodyWrenchRequest.msg // DO NOT EDIT! #ifndef GAZEBO_MSGS_MESSAGE_APPLYBODYWRENCHREQUEST_H #define GAZEBO_MSGS_MESSAGE_APPLYBODYWRENCHREQUEST_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/bu...
41.11
204
(translation_unit) "// Generated by gencpp from file gazebo_msgs/ApplyBodyWrenchRequest.msg\n// DO NOT EDIT!\n\n\n#ifndef GAZEBO_MSGS_MESSAGE_APPLYBODYWRENCHREQUEST_H\n#define GAZEBO_MSGS_MESSAGE_APPLYBODYWRENCHREQUEST_H\n\n\n#include <string>\n#include <vector>\n#include <map>\n\n#include <ros/types.h>\n#include <ros/...
1,842
132
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 41.11, "nodes": 1092, "errors": 0, "source_hash": "02c4f923cfbc3eb0210d7b9c8faa220329d4bfa51d7f1905be600c28c594c458", "categorized_nodes": 674}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
9,703
c
.if ( te_sys.InstanceLoading ) /* * Dump instances in SQL format. */ void ${te_class.GeneratedName}_instancedumper( ${te_instance.handle} instance ) { ${te_class.GeneratedName} * self = (${te_class.GeneratedName} *) instance; printf( "INSERT INTO ${te_class.Key_Lett} VALUES ( ${te_class.attribute_format} );\n"${t...
31.45
11
(translation_unit) ".if ( te_sys.InstanceLoading )\n/*\n * Dump instances in SQL format.\n */\nvoid\n${te_class.GeneratedName}_instancedumper( ${te_instance.handle} instance )\n{\n ${te_class.GeneratedName} * self = (${te_class.GeneratedName} *) instance;\n printf( "INSERT INTO ${te_class.Key_Lett} VALUES ( ${te_clas...
98
11
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 31.45, "nodes": 45, "errors": 0, "source_hash": "63780267a441b319e159f9d25bc92143c4b2ca0a2ca3de0994f051a0dd49fd1d", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "if_statement", "text": "if ( te_s...
9,704
c
/* basics.c */ #include "../DenseMtx.h" #define MYDEBUG 0 /*--------------------------------------------------------------------*/ /* ----------------------- simplest constructor created -- 98may02, cca ----------------------- */ DenseMtx * DenseMtx_new ( void ) { DenseMtx *mtx ; ALLOCATE(mt...
22.5
101
(translation_unit) "/* basics.c */\n\n#include "../DenseMtx.h"\n\n#define MYDEBUG 0\n\n/*--------------------------------------------------------------------*/\n/*\n -----------------------\n simplest constructor\n\n created -- 98may02, cca\n -----------------------\n*/\nDenseMtx *\nDenseMtx_new ( \n void...
411
1
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 22.5, "nodes": 230, "errors": 0, "source_hash": "bb642644bdaa986a1905f59d66b4c1e8303d5dc407c15f65adebbf74eb4c7217", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,705
c
/* Copyright (C) 2001-2010, Parrot Foundation. =head1 NAME src/gc/variable_size_pool.h - implementation of allocator variable size objects. E.g. strings. =head1 DESCRIPTION */ #ifndef PARROT_GC_VARIABLE_SIZE_POOL_H_GUARD #define PARROT_GC_VARIABLE_SIZE_POOL_H_GUARD #include "parrot/settings.h" struct GC_Statisti...
35.98
43
(translation_unit) "/*\nCopyright (C) 2001-2010, Parrot Foundation.\n\n=head1 NAME\n\nsrc/gc/variable_size_pool.h - implementation of allocator variable size objects.\nE.g. strings.\n\n=head1 DESCRIPTION\n\n*/\n\n#ifndef PARROT_GC_VARIABLE_SIZE_POOL_H_GUARD\n#define PARROT_GC_VARIABLE_SIZE_POOL_H_GUARD\n\n#include "par...
145
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 35.98, "nodes": 100, "errors": 0, "source_hash": "b9a767679a20f0be5107a8cdfe6afb85c393df6b1bfae1044f62d2395a87be04", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,706
c
// Copyright 2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_OPTIMIZER_OPTIMIZER_EXPORT_H_ #define ELANG_OPTIMIZER_OPTIMIZER_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(OPTIMIZER_I...
36.85
27
(translation_unit) "// Copyright 2015 Project Vogue. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ELANG_OPTIMIZER_OPTIMIZER_EXPORT_H_\n#define ELANG_OPTIMIZER_OPTIMIZER_EXPORT_H_\n\n#if defined(COMPONENT_BUILD)\n#if defined(WIN...
84
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 36.85, "nodes": 64, "errors": 0, "source_hash": "5a9e0d21fe10c2733df47d31a99ed830c5ae4bdcbfdb8d72cbc2cdce1f294812", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,707
c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2013 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
27.22
121
(translation_unit) "/*\n * RELIC is an Efficient LIbrary for Cryptography\n * Copyright (C) 2007-2013 RELIC Authors\n *\n * This file is part of RELIC. RELIC is legal property of its developers,\n * whose names are not listed here. Please refer to the COPYRIGHT file\n * for contact information.\n *\n * RELIC is free so...
1,326
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 27.22, "nodes": 841, "errors": 0, "source_hash": "fbc62eca7803ac21325fac99ca882e9618f1a7c1bb665d536ab9d41756d53c70", "categorized_nodes": 657}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,708
c
#ifndef _INSPIRE_LOG_TRACER_H_ #define _INSPIRE_LOG_TRACER_H_ #define LOG_BUFFER_SIZE 4096 #define LOG_FILE_NAME_SIZE 256 namespace inspire { enum { PRIO_FATAL = -1, PRIO_ERROR = 100, PRIO_WARNING = 200, PRIO_INFO = 300, PRIO_DEBUG = 400, // use for system logger ...
24.77
40
(translation_unit) "#ifndef _INSPIRE_LOG_TRACER_H_\n#define _INSPIRE_LOG_TRACER_H_\n\n#define LOG_BUFFER_SIZE 4096\n#define LOG_FILE_NAME_SIZE 256\n\nnamespace inspire {\n\n enum {\n PRIO_FATAL = -1,\n PRIO_ERROR = 100,\n PRIO_WARNING = 200,\n PRIO_INFO = 300,\n PRIO_DEBUG = 400,\n...
258
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.77, "nodes": 166, "errors": 0, "source_hash": "f8374157fd94676751d4abf20559776ac63493e1a21d4f4cb5187b66c35beee3", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,709
c
/* * SPDX-License-Identifier: ISC * SPDX-URL: https://spdx.org/licenses/ISC.html * * Copyright (C) 2010 Atheme Project (http://atheme.org/) * * This file contains code for the NickServ SET ENFORCETIMEOUT function. */ #include <atheme.h> static mowgli_patricia_t **ns_set_cmdtree = NULL; static void ns_cmd_set_...
36.65
63
(translation_unit) "/*\n * SPDX-License-Identifier: ISC\n * SPDX-URL: https://spdx.org/licenses/ISC.html\n *\n * Copyright (C) 2010 Atheme Project (http://atheme.org/)\n *\n * This file contains code for the NickServ SET ENFORCETIMEOUT function.\n */\n\n#include <atheme.h>\n\nstatic mowgli_patricia_t **ns_set_cmdtree =...
624
1
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 36.65, "nodes": 325, "errors": 0, "source_hash": "55196810497b5996c8a62eaf034ac0a7b2806fa60ca43cdb5c0d2ed8e2a94085", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,710
c
// // XHSegmentedView.h // xianghui // // Created by xianghui on 2018/5/30. // Copyright © 2018年 xianghui. All rights reserved. // #import <UIKit/UIKit.h> @class XHSegmentedView; @protocol XHSegmentedViewDelegate <NSObject> - (void)segmentedView:(XHSegmentedView *)segmentedView didSelectedIndex:(NSInteger)index...
19.41
100
(translation_unit) "//\n// XHSegmentedView.h\n// xianghui\n//\n// Created by xianghui on 2018/5/30.\n// Copyright © 2018年 xianghui. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class XHSegmentedView;\n\n@protocol XHSegmentedViewDelegate <NSObject>\n\n- (void)segmentedView:(XHSegmentedView *)segmentedView...
420
55
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 19.41, "nodes": 267, "errors": 0, "source_hash": "d4bb5b18fb6204da80b54209027b69dd2f3ae1faff90e91ac50182a9770a2524", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <...
9,711
c
/*++ Copyright (c) Microsoft Corporation Module Name: RdmaSample.h Abstract: Header file for the RDMA sample upper level driver --*/ #pragma once // // Tag this sample will use when allocating pool // #define RDMA_SAMPLE_TAG 'amdR' // // Context that this sample associates with an RDMA_SOCKET object // ...
28.74
50
(translation_unit) "/*++\nCopyright (c) Microsoft Corporation\n\nModule Name:\n\n RdmaSample.h\n\nAbstract:\n\n Header file for the RDMA sample upper level driver\n\n--*/\n\n#pragma once\n\n//\n// Tag this sample will use when allocating pool\n//\n#define RDMA_SAMPLE_TAG 'amdR'\n\n//\n// Context that this sample ...
127
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.74, "nodes": 78, "errors": 0, "source_hash": "0d665814ead24ae9f1bbc5d48fdc6111fb91b825ba02d2f90745cc06d58728e1", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,712
c
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on * the source. */ /* * $Logfile: /Freespace2/code/Network/multi_log.h $ * $Revision: 307 $ *...
28.39
57
(translation_unit) "/*\n * Copyright (C) Volition, Inc. 1999. All rights reserved.\n *\n * All source code herein is the property of Volition, Inc. You may not sell \n * or otherwise commercially exploit the source or things you created based on\n * the source.\n */\n\n/*\n * $Logfile: /Freespace2/code/Network/multi_l...
87
1
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.39, "nodes": 48, "errors": 0, "source_hash": "8b500388cd55e0b0d67b513029ecb9ec81a60bb9b690245fc8982f263f49b155", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,713
c
#pragma once #include <mtt/render/Drawable/DrawableModificator.h> namespace mtt { class LODDrawableFilter : public DrawableModificator { public: LODDrawableFilter(); LODDrawableFilter(const LODDrawableFilter&) = delete; LODDrawableFilter& operator = (const LODDrawableFilter&) = delete; virtual ~...
29.82
33
(translation_unit) "#pragma once\n\n#include <mtt/render/Drawable/DrawableModificator.h>\n\nnamespace mtt\n{\n class LODDrawableFilter : public DrawableModificator\n {\n public:\n LODDrawableFilter();\n LODDrawableFilter(const LODDrawableFilter&) = delete;\n LODDrawableFilter& operator = (const LODDrawableF...
215
14
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.82, "nodes": 127, "errors": 0, "source_hash": "c863e02f05eb20be251764f7c6430002fbc3c17fe8ae5096d4153c3d03a71168", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,714
c
#ifndef ONE_WIRE_CLASS #define ONE_WIRE_CLASS #include "BaseClass.h" #include "MethodDescriptor.h" class OneWire; namespace nanpy { class OneWireClass: public ObjectsManager<OneWire> { public: void elaborate( nanpy::MethodDescriptor* m ); }; } #endif
22.25
12
(translation_unit) "#ifndef ONE_WIRE_CLASS\n#define ONE_WIRE_CLASS\n\n#include "BaseClass.h"\n#include "MethodDescriptor.h"\n\nclass OneWire;\n\nnamespace nanpy {\n class OneWireClass: public ObjectsManager<OneWire> {\n\n public:\n void elaborate( nanpy::MethodDescriptor* m );\n\n };\n}\n\n#endi...
66
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.25, "nodes": 39, "errors": 0, "source_hash": "ce546eae5359d08625d31ab5bcb08a5d06a2939e09665b932e3b6152616b244c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,715
c
#ifndef DBSCAN_H_ #define DBSCAN_H_ #define DOUBLE_DATATYPE // modify geometry.h NDGCTYPE accordingly //#define FLOAT_DATATYPE // modify geometry.h NDGCTYPE accordingly #define LONG_VARIABLE // #define USE_JEMALLOC #include "utils.h" #include "sequence.h" #include "geometry.h" #if defined (USE_JEMALLOC) #include "je...
34.99
113
(translation_unit) "#ifndef DBSCAN_H_\n#define DBSCAN_H_\n\n#define DOUBLE_DATATYPE // modify geometry.h NDGCTYPE accordingly\n//#define FLOAT_DATATYPE // modify geometry.h NDGCTYPE accordingly\n\n#define LONG_VARIABLE\n// #define USE_JEMALLOC\n\n#include "utils.h"\n#include "sequence.h"\n#include "geometry.h"\n#if def...
598
17
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 34.99, "nodes": 415, "errors": 0, "source_hash": "6c4dfe8ab4cbdfd611b753210593457e14be7b918cae009c2e4f9a64e4eac4f7", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,716
c
#pragma once #include <pebble.h> #include "../types.h" #include "../windows/settings_window.h" // Initialize settings void settings_init(); // Set/get category void settings_set_category(Category category); Category settings_get_category(); // Set/get pin setting void settings_set_subscribed_type(PinSubscriptionTy...
31.22
27
(translation_unit) "#pragma once\n\n#include <pebble.h>\n\n#include "../types.h"\n#include "../windows/settings_window.h"\n\n// Initialize settings\nvoid settings_init();\n\n// Set/get category\nvoid settings_set_category(Category category);\nCategory settings_get_category();\n\n// Set/get pin setting\nvoid settings_se...
179
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.22, "nodes": 117, "errors": 0, "source_hash": "dad428ed81fcb484f0272cb134079c1f56ee1f0d0d1f22231f6e6eb9056ed317", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,717
c
#include <bmk.h> #include <stdint.h> #include "libfemto/include/stdlib.h" extern char _bss_end, _memory_end; bmk_atomic_t lock; // Only configure core0 void bmk_level0_main(void) { _malloc_addblock(&_bss_end, &_memory_end - &_bss_end); { uint8_t *stk = (uint8_t *)malloc(16384); bmk_info_low("bmk_level0_main"...
28.5
58
(translation_unit) "#include <bmk.h>\n#include <stdint.h>\n#include "libfemto/include/stdlib.h"\n\nextern char _bss_end, _memory_end;\n\nbmk_atomic_t lock;\n\n// Only configure core0\nvoid bmk_level0_main(void) {\n _malloc_addblock(&_bss_end, &_memory_end - &_bss_end);\n\n {\n uint8_t *stk = (uint8_t *)malloc(16384);...
527
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 28.5, "nodes": 304, "errors": 0, "source_hash": "8cbce5fb52dd5e6ae04d22c97c7efcce7abcf0b616b985bc2d54c6a458312dae", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,718
c
// // CustomPlan.h // HangingFurnace // // Created by ybyao07 on 15/9/28. // Copyright (c) 2015年 skyware. All rights reserved. // #import <Foundation/Foundation.h> @interface CustomPlan : NSObject //@property (nonatomic,strong) NSMutableArray *arrPlanWeek; @property (nonatomic,strong) NSString *cmd; //拼接指令(开关机+供...
34.94
18
(translation_unit) "//\n// CustomPlan.h\n// HangingFurnace\n//\n// Created by ybyao07 on 15/9/28.\n// Copyright (c) 2015年 skyware. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CustomPlan : NSObject\n\n//@property (nonatomic,strong) NSMutableArray *arrPlanWeek;\n@property (nonatomic,st...
148
30
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.94, "nodes": 105, "errors": 0, "source_hash": "16aa3a31ac24cceae54e58e07f7635d17d4c058e375df96030659ee59bf66b85", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <F...
9,719
c
// // Demo3TableViewCell.h // ZFCustomViewDemo // // Created by 周飞 on 2017/3/15. // Copyright © 2017年 ZF. All rights reserved. // #import <UIKit/UIKit.h> @interface Demo3TableViewCell : ZFTableViewCell @property (weak, nonatomic) IBOutlet UILabel *title; @end
23
11
(translation_unit) "//\n// Demo3TableViewCell.h\n// ZFCustomViewDemo\n//\n// Created by 周飞 on 2017/3/15.\n// Copyright © 2017年 ZF. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface Demo3TableViewCell : ZFTableViewCell\n@property (weak, nonatomic) IBOutlet UILabel *title;\n\n@end\n" (comment) "//" ...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.0, "nodes": 25, "errors": 0, "source_hash": "a0e22b34addbb6c7e644e9386f60fbd376d97bd6f699c971c21681b62568b41e", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
9,720
c
#ifndef NTA_VERTEX_H_INCLUDED #define NTA_VERTEX_H_INCLUDED #include <GL/glew.h> #include "nta/MyEngine.h" #define NUM_VERTEX_ATTRIBS 4 /// \todo Have first-class support for arbitrary (i.e. user-defined) vertex types namespace nta { /// represents an attribute of a vertex (e.g. a call to glVertexAtt...
31.28
75
(translation_unit) "#ifndef NTA_VERTEX_H_INCLUDED \n#define NTA_VERTEX_H_INCLUDED \n \n#include <GL/glew.h> \n \n#include "nta/MyEngine.h" \n \n#define NUM_VERTEX_ATTRIBS 4 \n \n/// \todo Have first-class support for arbitrary (i.e. user-defined) vertex types \nnamespace nta { \n /// represents an attribute of a ver...
594
27
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 31.28, "nodes": 367, "errors": 0, "source_hash": "b1765d4e72a944947fab5142eea388d5271cca73810b7f61890438a80b6c4fed", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,721
c
#ifndef _W25QXXCONFIG_H #define _W25QXXCONFIG_H #include "main.h" extern SPI_HandleTypeDef hspi2; #define _W25QXX_SPI hspi2 #define _W25QXX_CS_GPIO FLASH_CS_GPIO_Port #define _W25QXX_CS_PIN FLASH_CS_Pin #define _W25QXX_USE_FREERTOS 0 #define _W25QXX_DEBUG ...
32.7
10
(translation_unit) "#ifndef _W25QXXCONFIG_H\n#define _W25QXXCONFIG_H\n\n#include "main.h"\n\nextern SPI_HandleTypeDef hspi2;\n\n#define _W25QXX_SPI hspi2\n#define _W25QXX_CS_GPIO FLASH_CS_GPIO_Port\n#define _W25QXX_CS_PIN FLASH_CS_Pin\n#define _W25QXX_USE_FREERTOS ...
40
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.7, "nodes": 35, "errors": 0, "source_hash": "da8bee819f588fb2643ecf6af16ca7caab260f3fc5d31034d24da827a0d22799", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,722
c
// // CSStickerModel.h // Spika // // Created by mislav on 23/03/16. // Copyright © 2016 Clover Studio. All rights reserved. // #import "CSModel.h" @protocol CSStickerModel @end @interface CSStickerModel : CSModel @property NSString *fullPic; @property NSString *smallPic; @end
19.14
14
(translation_unit) "//\n// CSStickerModel.h\n// Spika\n//\n// Created by mislav on 23/03/16.\n// Copyright © 2016 Clover Studio. All rights reserved.\n//\n\n#import "CSModel.h"\n\n@protocol CSStickerModel\n@end\n\n@interface CSStickerModel : CSModel\n\n@property NSString *fullPic;\n@property NSString *smallPic;\n\n...
46
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.14, "nodes": 32, "errors": 0, "source_hash": "5d9a337c6c31f9633afa2ddae3bb982ab7678e94dc7497fc0b992842881a9b1b", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
9,723
c
#pragma once #include "Graphics/ITexture.h" #include "Graphics/IRenderer.h" #include "Platform/Graphics/TextureParameter.h" #include "Platform/Graphics/RenderDevice.h" #include "gl/glew.h" namespace SteelEngine { namespace Graphics { namespace TestRenderer { SE_CLASS( IRenderer::RENDERER = "SteelEngine...
29.31
51
(translation_unit) "#pragma once\n\n#include "Graphics/ITexture.h"\n#include "Graphics/IRenderer.h"\n\n#include "Platform/Graphics/TextureParameter.h"\n#include "Platform/Graphics/RenderDevice.h"\n\n#include "gl/glew.h"\n\nnamespace SteelEngine { namespace Graphics { namespace TestRenderer {\n\n SE_CLASS(\n I...
326
22
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.31, "nodes": 201, "errors": 0, "source_hash": "cdce6203d57227f9194606b17af4e7f3b73aae196c1f891c9ceda579faa8a8ce", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,724
c
#pragma once #include <vector> class Vehicle ; class GameManager { std::vector<Vehicle*> m_Vehicles{} ; public: void Run() ; ~GameManager(); };
13.7
10
(translation_unit) "#pragma once\n#include <vector>\n\nclass Vehicle ;\nclass GameManager\n{\n std::vector<Vehicle*> m_Vehicles{} ;\npublic:\n void Run() ;\n ~GameManager();\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <vector>\n" ...
58
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 13.7, "nodes": 33, "errors": 0, "source_hash": "88a2cb9ffec1ef39fdc639de9a63a9cc538beedef5ab68089bd1336a15be1f0f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,725
c
#ifndef DR4_SIZE_TYPE_H #define DR4_SIZE_TYPE_H /** * Defines the dr4 sizer type, used to determine the sized variety of the dr4 document. */ typedef unsigned char dr4_size_t; /*Typed Sizer Constants*/ static const dr4_size_t DR4_SIZER_8 = 8; static const dr4_size_t DR4_SIZER_16 = 16; static const dr4_size_t DR4_S...
31.45
11
(translation_unit) "#ifndef DR4_SIZE_TYPE_H\n#define DR4_SIZE_TYPE_H\n\n/**\n * Defines the dr4 sizer type, used to determine the sized variety of the dr4 document.\n */\n\ntypedef unsigned char dr4_size_t;\n\n/*Typed Sizer Constants*/\nstatic const dr4_size_t DR4_SIZER_8 = 8;\nstatic const dr4_size_t DR4_SIZER_16 = 16...
51
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 31.45, "nodes": 31, "errors": 0, "source_hash": "fb0a8d86306fe260bdcedc36c96039b93d09d9c3e237ca6964281ac2869efaca", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,726
c
#ifndef _HALMAC_API_88XX_PCIE_H_ #define _HALMAC_API_88XX_PCIE_H_ #include "../halmac_2_platform.h" #include "../halmac_type.h" #define LINK_CTRL2_REG_OFFSET 0xA0 #define GEN2_CTRL_OFFSET 0x80C #define LINK_STATUS_REG_OFFSET 0x82 #define GEN1_SPEED 0x01 #define GEN2_SPEED 0x02 HALMAC_RET_STATUS halmac_init_p...
21.97
63
(translation_unit) "#ifndef _HALMAC_API_88XX_PCIE_H_\n#define _HALMAC_API_88XX_PCIE_H_\n\n#include "../halmac_2_platform.h"\n#include "../halmac_type.h"\n\n#define LINK_CTRL2_REG_OFFSET 0xA0\n#define GEN2_CTRL_OFFSET 0x80C\n#define LINK_STATUS_REG_OFFSET 0x82\n#define GEN1_SPEED 0x01\n#define GEN2_SPEED 0x02\n\n...
243
22
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 21.97, "nodes": 193, "errors": 0, "source_hash": "aa1a4fe18288c2194763e09e9b77cebce7a24034d0e6c0680a7997bf6e323ac6", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,727
c
// // LoginViewController.h // InstaClone // // Created by <NAME> on 7/6/20. // Copyright © 2020 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LoginViewController : UIViewController @end NS_ASSUME_NONNULL_END
20.5
12
(translation_unit) "//\n// LoginViewController.h\n// InstaClone\n//\n// Created by <NAME> on 7/6/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LoginViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.5, "nodes": 14, "errors": 0, "source_hash": "2e290edd91b688088865133d45bc7112702a746ccbb5be06128406cd5f6e6358", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
9,728
c
#include <common.h> #include <timer.h> #include <settings.h> #include <crash_handler.h> #include <targets/targets.h> #include <compilation_unit.h> // Frontend #include <front/preproc.h> #include <front/parser.h> #include <front/sema.h> // Backend #include <back/ir_gen.h> #include <back/linker.h> #include <ext/threads...
31.24
33
(translation_unit) "#include <common.h>\n#include <timer.h>\n#include <settings.h>\n#include <crash_handler.h>\n#include <targets/targets.h>\n#include <compilation_unit.h>\n\n// Frontend\n#include <front/preproc.h>\n#include <front/parser.h>\n#include <front/sema.h>\n\n// Backend\n#include <back/ir_gen.h>\n#include <ba...
150
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.24, "nodes": 116, "errors": 0, "source_hash": "5f0818c929f816ef98a255c795ce9eb6bc576aef2b2e6fc1ff8663b9560d5589", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,729
c
/* * Copyright 2011 Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 */ #ifndef QMLDBUSVIDEO_H #define QMLDBUSVIDEO_H #include <QObject> #include <QDBusAb...
27.33
63
(translation_unit) "/*\n * Copyright 2011 Intel Corporation.\n *\n * This program is licensed under the terms and conditions of the\n * Apache License, version 2.0. The full text of the Apache License is at \n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\n#ifndef QMLDBUSVIDEO_H\n#define QMLDBUSVIDEO_H\n\n#incl...
390
19
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.33, "nodes": 252, "errors": 0, "source_hash": "2ef5d9ae85a6278588edc2eb6d67e23bac67e6bd64241e73894d1665cf9b1877", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QMLDBU...
9,730
c
/* * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. * Copyright (c) 2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
31.66
53
(translation_unit) "/*\n * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.\n * Copyright (c) 2017 Intel Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n ...
234
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.66, "nodes": 139, "errors": 0, "source_hash": "c64001829a4ffb72c8f6fa1a30f3dc130aa889455c23c76452427a5083c023d5", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,731
c
/* Name: <NAME> Student number: Email: <EMAIL> Workshop: Week 5 Section: R Date: 2/20/2018 */ // Copy your source code from in_lab file to here // Expand the option list to include option 3 & 4 after // option 2. as following // "3. Update Employee Salary" // "4. Remove Employee" // Create two switch-cases for optio...
23.04
261
(translation_unit) "/*\nName: <NAME>\nStudent number:\nEmail: <EMAIL>\nWorkshop: Week 5\nSection: R\nDate: 2/20/2018\n*/\n\n// Copy your source code from in_lab file to here\n// Expand the option list to include option 3 & 4 after \n// option 2. as following\n// "3. Update Employee Salary"\n// "4. Remove Employee"\n\n/...
1,009
0
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 23.04, "nodes": 501, "errors": 0, "source_hash": "70e2a91d5c17a363b4f83ce3607f2b689857aabe7e43f103dd2a9cb98e38cf7a", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
9,732
c
// // EXWKWebViewController.h // EXFrameWork // // Created by Eric on 2019/1/23. // Copyright © 2019 icety. All rights reserved. // #import "EXBaseViewController.h" #import <WebKit/WebKit.h> typedef enum { OK, Cancel, }WebAlertStatus; @interface EXWKWebViewController : EXBaseViewController @property (n...
27.62
29
(translation_unit) "//\n// EXWKWebViewController.h\n// EXFrameWork\n//\n// Created by Eric on 2019/1/23.\n// Copyright © 2019 icety. All rights reserved.\n//\n\n#import "EXBaseViewController.h"\n#import <WebKit/WebKit.h>\n\ntypedef enum {\n OK,\n Cancel,\n}WebAlertStatus;\n\n\n@interface EXWKWebViewController...
203
32
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.62, "nodes": 126, "errors": 0, "source_hash": "024e1a9eaf61af68cf799db0fdef7960880ef600cce6854888ad14c03c777df7", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
9,733
c
//*************************************************************************** // This file is part of the graph isomorphism algorithm. // Copyright by <NAME>, <NAME>, and <NAME> // // Name: backtrack.h // Author: <NAME> // Version // August 20, 2020: the first stable version. (version 1.0) // October 20, 2020:...
29.69
131
(translation_unit) "//***************************************************************************\n// This file is part of the graph isomorphism algorithm.\n// Copyright by <NAME>, <NAME>, and <NAME>\n// \n// Name: backtrack.h\n// Author: <NAME>\n// Version\n// August 20, 2020: the first stable version. (version 1....
652
9
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 29.69, "nodes": 446, "errors": 0, "source_hash": "8f28660b39b1dfb914822a0350906e49be04cc8fbdf82dcf1acadc0e1289bdcd", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,734
c
#ifndef OSELECTION_H__ #define OSELECTION_H__ enum { SELECTIONOBJECT_LIST = 1000, SELECTIONOBJECT_RESTORE = 1001 // virtual ID }; #endif // OSELECTION_H__
19
8
(translation_unit) "#ifndef OSELECTION_H__\n#define OSELECTION_H__\n\nenum\n{\n SELECTIONOBJECT_LIST = 1000,\n SELECTIONOBJECT_RESTORE = 1001 // virtual ID\n};\n\n#endif // OSELECTION_H__\n" (preproc_ifdef) "#ifndef OSELECTION_H__\n#define OSELECTION_H__\n\nenum\n{\n SELECTIONOBJECT_LIST = 1000,\n SELECTIONOBJEC...
25
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.0, "nodes": 18, "errors": 0, "source_hash": "e0c1628725c1ba86bc0ce8241754f1739d6a67631a553c69287ef85d78a05907", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OS...
9,735
c
/* ** Splint - annotation-assisted static program checker ** Copyright (C) 1994-2003 University of Virginia, ** Massachusetts Institute of Technology ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the ** Free Sof...
21.58
313
(translation_unit) "/*\n** Splint - annotation-assisted static program checker\n** Copyright (C) 1994-2003 University of Virginia,\n** Massachusetts Institute of Technology\n**\n** This program is free software; you can redistribute it and/or modify it\n** under the terms of the GNU General Public License as pu...
1,924
0
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 21.58, "nodes": 1111, "errors": 0, "source_hash": "2509e97e00c0024d38c765c30e5713b8781896a46939e09b63c0c9e77d6c6d68", "categorized_nodes": 851}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# ...
9,736
c
/* ----------------------------------------------------------------------- * * * Copyright 2005-2008 <NAME> - All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, ...
25.18
158
(translation_unit) "/* ----------------------------------------------------------------------- *\n *\n * Copyright 2005-2008 <NAME> - All Rights Reserved\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the ...
1,318
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 25.18, "nodes": 838, "errors": 0, "source_hash": "b94fb8dc65c2a152e22185b512b79b5179420650c47dfb9ba0636dc6b2cbc28d", "categorized_nodes": 575}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,737
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* sha256_helper.c :+: :+: :+: ...
25.29
87
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* sha256_helper.c ...
648
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 25.29, "nodes": 394, "errors": 0, "source_hash": "d97bc4e1f0fbb6d9eac439a5ba1b649f8622906102e463620f8a1ba4b0d6290e", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,738
c
/** * Copyright 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distri...
30.09
348
(translation_unit) "/**\n * Copyright 2018 <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 the rights\n * to use, copy, modi...
2,658
0
{"language": "c", "success": true, "metadata": {"lines": 348, "avg_line_length": 30.09, "nodes": 1664, "errors": 0, "source_hash": "9cb6cf5ff73f9d1da49f085647ab79a6b050e233806ec561e4b6bf14403ece33", "categorized_nodes": 1257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
9,739
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer */ @interface _MPStreamingDownloadSessionUniqueKey : NSObject { NSString * _buyParameters; long long _storeAdamID; } @property (nonatomic, copy) NSString *buyParameters; @property (nonatomic) long long stor...
30.24
17
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer\n */\n\n@interface _MPStreamingDownloadSessionUniqueKey : NSObject {\n NSString * _buyParameters;\n long long _storeAdamID;\n}\n\n@property (nonatomic, copy) NSString *buyParameters;\n@prope...
160
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.24, "nodes": 102, "errors": 0, "source_hash": "4a11e98e64bc0a47026bf9c918629eaedf3f9b229ad7cb8a94f1126fd3d7d8a6", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface _MPS...
9,740
c
#import "TableViewController.h" #import "JBRSSPinList.h" #import "JBBarButtonView.h" #pragma mark - JBRSSPinController /// あとで読む(PIN) @interface JBRSSPinController : TableViewController <JBRSSPinListDelegate, JBBarButtonViewDelegate> { } #pragma mark - property /// PIN一覧 @property (nonatomic, strong) JBRSSPinList *...
24.56
16
(translation_unit) "#import "TableViewController.h"\n#import "JBRSSPinList.h"\n#import "JBBarButtonView.h"\n\n\n#pragma mark - JBRSSPinController\n/// あとで読む(PIN)\n@interface JBRSSPinController : TableViewController <JBRSSPinListDelegate, JBBarButtonViewDelegate> {\n}\n\n\n#pragma mark - property\n/// PIN一覧\n@property (...
75
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.56, "nodes": 50, "errors": 0, "source_hash": "364b5a2b224a4be6ce5599c1978d00301281823d1d7c5338b04cee80f51058e8", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,741
c
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
35.65
110
(translation_unit) "/*\n * Copyright (C) 2017 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
119
3
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 35.65, "nodes": 78, "errors": 0, "source_hash": "af4d5cc2f8fb26cd0428c9fa799c6c9afdce220f6bcc23fd7980f8d088ad89bb", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,742
c
#pragma once #include <memory> #include "../Container/Vector.h" #include "Command.h" namespace nxt::core { /** * @brief A command which * */ class GroupCommand : public Command { public: /** * @brief Construct a new Group Command with given name * * @param name Name of the Group Command */...
31.08
37
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include "../Container/Vector.h"\n#include "Command.h"\n\nnamespace nxt::core {\n/**\n * @brief A command which\n *\n */\nclass GroupCommand : public Command {\npublic:\n /**\n * @brief Construct a new Group Command with given name\n *\n * @param n...
199
11
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.08, "nodes": 120, "errors": 0, "source_hash": "fb0c1bab41351dee4b812766c427fd13925cb8a2c1afe2fee753dc7f819ce659", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,743
c
// Copyright 2016 <NAME> // www.crickettechnology.com #import <Foundation/Foundation.h> /** Objective-C interface for CkMixer. See ck/mixer.h for method documentation. */ @interface CkoMixer : NSObject @property(nonatomic, copy, nonnull) NSString* name; @property(nonatomic, assign) float volume; @property(nonatom...
40
18
(translation_unit) "// Copyright 2016 <NAME>\n// www.crickettechnology.com\n\n#import <Foundation/Foundation.h>\n\n\n/** Objective-C interface for CkMixer.\n See ck/mixer.h for method documentation. */\n@interface CkoMixer : NSObject\n\n@property(nonatomic, copy, nonnull) NSString* name;\n@property(nonatomic, assign) ...
197
37
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 40.0, "nodes": 139, "errors": 0, "source_hash": "d395266fc06824f4b8a1ec15c4e118484f0643e1ff34662726a1f784c264e18f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,744
c
#ifndef GAME_OPTION_H #define GAME_OPTION_H enum game_option_text { OPTION_TEXT_TITLE, OPTION_TEXT_SUBTITLE_1, OPTION_TEXT_SUBTITLE_2, OPTION_TEXT_SUBTITLE_3, OPTION_TEXT_SUBTITLE_4, OPTION_TEXT_SUBTITLE_5, OPTION_TEXT_SUBTITLE_6, OPTION_TEXT_SUBTITLE_7, OPTION_TEXT_SUBTITLE_8, OPTION_TEXT_SUBT...
19.3
149
(translation_unit) "#ifndef GAME_OPTION_H \n#define GAME_OPTION_H \n \nenum game_option_text \n{ \n OPTION_TEXT_TITLE, \n OPTION_TEXT_SUBTITLE_1, \n OPTION_TEXT_SUBTITLE_2, \n OPTION_TEXT_SUBTITLE_3, \n OPTION_TEXT_SUBTITLE_4, \n OPTION_TEXT_SUBTITLE_5, \n OPTION_TEXT_SUBTITLE_6, \n OPTION_TEXT_SUBTITLE_7, \n OPTION_TE...
570
0
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 19.3, "nodes": 405, "errors": 0, "source_hash": "9a9db9583ce759c0d1073accee99e6c1dfcb1b15d3aee0d86805194d70751624", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,745
c
/* Copyright (c) 2014 Author: <NAME> <<EMAIL>> Created: 2014-Mar-02 23:41 (EST) Function: user input */ #include <conf.h> #include <proc.h> #include <msgs.h> #include <gpio.h> #include <pwm.h> #include <ioctl.h> #include <stm32.h> #include <userint.h> #include "bot.h" #include "input.h" #include "util.h" #in...
24.37
232
(translation_unit) "/*\n Copyright (c) 2014\n Author: <NAME> <<EMAIL>>\n Created: 2014-Mar-02 23:41 (EST)\n Function: user input\n\n*/\n\n#include <conf.h>\n#include <proc.h>\n#include <msgs.h>\n#include <gpio.h>\n#include <pwm.h>\n#include <ioctl.h>\n#include <stm32.h>\n#include <userint.h>\n\n#include "bot.h"\n#i...
1,749
0
{"language": "c", "success": true, "metadata": {"lines": 232, "avg_line_length": 24.37, "nodes": 1011, "errors": 0, "source_hash": "319d7c417ad1dbaaa2c10101910ead2b7365821035f7a46dce11e4e24097b44d", "categorized_nodes": 717}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,746
c
#ifndef H_RPMGI #define H_RPMGI /** \ingroup rpmgi * \file lib/rpmgi.h */ #include <fts.h> #include <argv.h> #include <rpmtypes.h> #include <rpmds.h> #include <rpmte.h> #include <rpmts.h> /** */ /*@-exportlocal@*/ /*@unchecked@*/ extern int _rpmgi_debug; /*@=exportlocal@*/ /** */ typedef enum rpmgiFlags_e { ...
25.77
204
(translation_unit) "#ifndef H_RPMGI\n#define H_RPMGI\n\n/** \ingroup rpmgi\n * \file lib/rpmgi.h\n */\n\n#include <fts.h>\n#include <argv.h>\n#include <rpmtypes.h>\n#include <rpmds.h>\n#include <rpmte.h>\n#include <rpmts.h>\n\n/**\n */\n/*@-exportlocal@*/\n/*@unchecked@*/\nextern int _rpmgi_debug;\n/*@=exportlocal@*/\n...
647
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 25.77, "nodes": 395, "errors": 0, "source_hash": "2cf7692d4d8175f8bf7b816734a6dae0a046900d535e24f27b3bc0b27da687fa", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,747
c
//===-- DWARFFormValue.h ----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
36.93
99
(translation_unit) "//===-- DWARFFormValue.h ----------------------------------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
793
31
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 36.93, "nodes": 437, "errors": 0, "source_hash": "1e9fa34993f59ed6a1349a298dcb66f5cd4dc0fada77e1fb9f142995421229c4", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,748
c
#pragma once #include <boost/qvm/mat.hpp> #include <ostream> namespace pagoda { template<int NumCols, int NumRows, class Rep> std::ostream &operator<<(std::ostream &o, const boost::qvm::mat<Rep, NumRows, NumCols> &mat) { for (auto r = 0u; r < NumRows; ++r) { o << "["; for (auto c = 0u; c < NumCols; ++c) { ...
22.83
24
(translation_unit) "#pragma once\n\n#include <boost/qvm/mat.hpp>\n\n#include <ostream>\n\nnamespace pagoda\n{\ntemplate<int NumCols, int NumRows, class Rep>\nstd::ostream &operator<<(std::ostream &o, const boost::qvm::mat<Rep, NumRows, NumCols> &mat)\n{\n for (auto r = 0u; r < NumRows; ++r)\n {\n o << "[";\n for (aut...
257
15
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.83, "nodes": 165, "errors": 0, "source_hash": "81c8aaffadd90d8534bcb52df7cbbe32b3cbe8937e6a1dd2481cc5391503d8d2", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,749
c
#ifndef COSMOPOLITAN_LIBC_NT_WAMBDA_H_ #define COSMOPOLITAN_LIBC_NT_WAMBDA_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef intptr_t (*wambda)(); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_WAMBDA_H_ */
33.88
8
(translation_unit) "#ifndef COSMOPOLITAN_LIBC_NT_WAMBDA_H_\n#define COSMOPOLITAN_LIBC_NT_WAMBDA_H_\n#if !(__ASSEMBLER__ + __LINKER__ + 0)\nCOSMOPOLITAN_C_START_\n\ntypedef intptr_t (*wambda)();\n\nCOSMOPOLITAN_C_END_\n#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */\n#endif /* COSMOPOLITAN_LIBC_NT_WAMBDA_H_ */\n" (prep...
45
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 33.88, "nodes": 33, "errors": 0, "source_hash": "48148d5dcfbe5f3c720f6bfd2aec66f3f1585dcd611aa9120d2eb85b28b59180", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
9,750
c
#ifndef TEXTDIALOG_H #define TEXTDIALOG_H #include <QDialog> class QDialogButtonBox; class QDoubleSpinBox; class QLineEdit; class TextDialog : public QDialog { Q_OBJECT QLineEdit* name; QDialogButtonBox* btn_box; QDoubleSpinBox* double_box; public: TextDialog(QWidget *parent = nullptr); signals: ...
20.29
21
(translation_unit) "#ifndef TEXTDIALOG_H\n#define TEXTDIALOG_H\n\n#include <QDialog>\n\nclass QDialogButtonBox;\nclass QDoubleSpinBox;\nclass QLineEdit;\nclass TextDialog : public QDialog\n{\n Q_OBJECT\n QLineEdit* name;\n QDialogButtonBox* btn_box;\n QDoubleSpinBox* double_box;\npublic:\n TextDialog(QWi...
110
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 20.29, "nodes": 72, "errors": 0, "source_hash": "6b48daee1e699cacaad0bbd0cbb446ef8935aaf933b2779f0825b2557c5c603f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,751
c
// // QQLeakMallocStackTracker.h // QQLeak // // Tencent is pleased to support the open source community by making OOMDetector available. // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except // in complia...
32.66
41
(translation_unit) "//\n// QQLeakMallocStackTracker.h\n// QQLeak\n//\n// Tencent is pleased to support the open source community by making OOMDetector available.\n// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.\n// Licensed under the MIT License (the "License"); you may not use this ...
115
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 32.66, "nodes": 82, "errors": 0, "source_hash": "55642f244f049f92cfc1f5b95d1c559abf7c9603ddeca919ba6416df6e0f7c06", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,752
c
#pragma once #include "GameObject.h" #include <vector> namespace rgl { class TextBox : public GameObject { protected: struct Cursor { int row; int column; bool operator==(Cursor cursor) { return row == cursor.row && column == cursor.column; } bool operator!=(Cursor cursor) { return !(*this == cu...
22.97
70
(translation_unit) "#pragma once\n\n#include "GameObject.h"\n\n#include <vector>\n\nnamespace rgl\n{\n class TextBox : public GameObject\n {\n protected:\n\n struct Cursor\n {\n int row;\n int column;\n\n bool operator==(Cursor cursor) { return row == cursor.row && column == cursor.column; }\n bool operator!=...
582
37
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.97, "nodes": 362, "errors": 0, "source_hash": "b362585e9278556b4e6187742e4a4500502df494b7825d2a2c97f8c2772d8eb5", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,753
c
/* * stack.h * * Created on: Nov 4, 2016 * Author: angel */ #ifndef STACK_H_ #define STACK_H_ typedef int ElementType; struct Node; typedef struct Node *PtrToNode; typedef PtrToNode Stack; int isEmpty(Stack s); Stack createStack(void); void disposeStack(Stack s); void makeEmpty(Stack s); void push(Element...
19.1
20
(translation_unit) "/*\n * stack.h\n *\n * Created on: Nov 4, 2016\n * Author: angel\n */\n\n#ifndef STACK_H_\n#define STACK_H_\n\ntypedef int ElementType;\nstruct Node;\ntypedef struct Node *PtrToNode;\ntypedef PtrToNode Stack;\n\nint isEmpty(Stack s);\nStack createStack(void);\nvoid disposeStack(Stack s);\nvoid...
113
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.1, "nodes": 84, "errors": 0, "source_hash": "7ac4389623ee8c4d7f73e43a16f8436d8da1abbed83ca7cb7283ada86f3eb4f3", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,754
c
/* --|----------------------------------------------------------------------------| --| FILE DESCRIPTION: --| c_test.c provides the implementation for the simple c_test framework. --| --|----------------------------------------------------------------------------| --| NOTES: --| None. --| --|-------------------...
33.47
251
(translation_unit) "/*\n--|----------------------------------------------------------------------------|\n--| FILE DESCRIPTION:\n--| c_test.c provides the implementation for the simple c_test framework.\n--| \n--|----------------------------------------------------------------------------|\n--| NOTES:\n--| None.\n...
1,099
0
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 33.47, "nodes": 613, "errors": 0, "source_hash": "39ee35c539ffc7df5f7b2c343326b4cf839c522b79155c27ed3aaa891c1b1356", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,755
c
#if !defined(AFX_EE512_H__B119B87A_E830_4870_9F0F_5EE2A8C0ACCE__INCLUDED_) #define AFX_EE512_H__B119B87A_E830_4870_9F0F_5EE2A8C0ACCE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "resource.h" #include "stdafx.h" #include "resource.h" #include <commctrl.h> #include <windows.h> #includ...
31.33
63
(translation_unit) "#if !defined(AFX_EE512_H__B119B87A_E830_4870_9F0F_5EE2A8C0ACCE__INCLUDED_)\n#define AFX_EE512_H__B119B87A_E830_4870_9F0F_5EE2A8C0ACCE__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n#include "resource.h"\n#include "stdafx.h"\n#include "resource.h"\n#include <commctrl.h>...
634
9
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.33, "nodes": 468, "errors": 0, "source_hash": "350c4718ae947ea8f44bf87ac33503b6eec8490b354cc66d97a747fd9666a21f", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
9,756
c
#include <stdlib.h> #include <stdint.h> extern size_t array1_size, array2_size, array_size_mask; extern uint8_t array1[], array2[], temp; // ---------------------------------------------------------------------------------------- // EXAMPLE 9: Use a separate value to communicate the safety check status. // // Comment...
37.25
12
(translation_unit) "#include <stdlib.h>\n#include <stdint.h>\nextern size_t array1_size, array2_size, array_size_mask;\nextern uint8_t array1[], array2[], temp;\n\n// ----------------------------------------------------------------------------------------\n// EXAMPLE 9: Use a separate value to communicate the safety c...
81
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 37.25, "nodes": 51, "errors": 0, "source_hash": "2d924e71c65099a22fa699959b6cc80f2f7c1f05dbd9ff910a87e294d8f77652", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,757
c
#include <Uefi.h> #include "latch.h" #include "Main.h" EFI_STATUS MainApplication(int argc, char *argv){ init(AppId, AppSecret); switch(argv[1]){ case "-h", "--help": Print(L"Latch Standalone Application: Version %i\n", version); Print(L"Port made by @lordsergio\n"); Print(L"\n"); Print(L"Usage: Latc...
31.46
41
(translation_unit) "#include <Uefi.h>\n\n#include "latch.h"\n#include "Main.h"\n\nEFI_STATUS MainApplication(int argc, char *argv){\n init(AppId, AppSecret);\n\n switch(argv[1]){\n case "-h", "--help":\n Print(L"Latch Standalone Application: Version %i\n", version);\n Print(L"Port made by @lordsergio\n");\n Prin...
365
3
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.46, "nodes": 190, "errors": 0, "source_hash": "bac7a4d470b1e84cff515800f01d6eddb50fc980c661c0c1379c2b00a33938c9", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,758
c
#include "display.h" #include "bcm_host.h" #include "ilclient.h" static TUNNEL_T dd_tunnel[4]; static COMPONENT_T *dd_video_decode = NULL, *dd_video_scheduler = NULL, *dd_video_render = NULL, *dd_clock = NULL; static COMPONENT_T *dd_list[5]; static ILCLIENT_T *dd_client; static int _dd_port_settings_changed(unsigned...
39.23
147
(translation_unit) "#include "display.h"\n\n#include "bcm_host.h"\n#include "ilclient.h"\n\nstatic TUNNEL_T dd_tunnel[4];\nstatic COMPONENT_T *dd_video_decode = NULL, *dd_video_scheduler = NULL, *dd_video_render = NULL, *dd_clock = NULL;\nstatic COMPONENT_T *dd_list[5];\nstatic ILCLIENT_T *dd_client;\n\nstatic int _dd_...
1,433
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 39.23, "nodes": 814, "errors": 0, "source_hash": "42470a87b0030b3943807926d90d0c6e414cc1dd2a7a16f89665a1db76e4365d", "categorized_nodes": 622}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,759
c
/* CP06_39.C */ /* Example of do--while loop Statement */ #include<stdio.h> #include<conio.h> void main() { int number, rightdigit; printf("\nEnter your number: "); scanf("%d", &number); printf("\nThe Number in reverse order is : "); do { rightdigit = number %10; printf("%d", rightdigit); number = number/...
20.56
18
(translation_unit) "/* CP06_39.C */\n/* Example of do--while loop Statement */\n#include<stdio.h>\n#include<conio.h>\n\nvoid main()\n{\nint number, rightdigit;\nprintf("\nEnter your number: ");\nscanf("%d", &number);\nprintf("\nThe Number in reverse order is : ");\n\ndo\n{\n rightdigit = number %10;\n printf("%d"...
118
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.56, "nodes": 59, "errors": 0, "source_hash": "e182bbdb0643df5e9f97fc51dfefced063008925547bad0388901adfe2ee490a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,760
c
#ifndef DFLTCC_COMMON_H #define DFLTCC_COMMON_H #ifdef ZLIB_COMPAT #include "../../zlib.h" #else #include "../../zlib-ng.h" #endif #include "../../zutil.h" void ZLIB_INTERNAL *dfltcc_alloc_state(PREFIX3(streamp) strm, uInt items, uInt size); void ZLIB_INTERNAL dfltcc_copy_state(void *dst, const void *src, uInt size);...
38
20
(translation_unit) "#ifndef DFLTCC_COMMON_H\n#define DFLTCC_COMMON_H\n\n#ifdef ZLIB_COMPAT\n#include "../../zlib.h"\n#else\n#include "../../zlib-ng.h"\n#endif\n#include "../../zutil.h"\n\nvoid ZLIB_INTERNAL *dfltcc_alloc_state(PREFIX3(streamp) strm, uInt items, uInt size);\nvoid ZLIB_INTERNAL dfltcc_copy_state(void *ds...
185
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 38.0, "nodes": 142, "errors": 0, "source_hash": "d7c971a932abca8339cd708654eedf25d70de9e2593ec3060037e9149aaf028f", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,761
c
#ifndef COE_H #define COE_H extern int coe(); #endif
12.25
4
(translation_unit) "#ifndef COE_H\n#define COE_H\n\nextern int coe();\n\n#endif\n" (preproc_ifdef) "#ifndef COE_H\n#define COE_H\n\nextern int coe();\n\n#endif" (#ifndef) "#ifndef" (identifier) "COE_H" (preproc_def) "#define COE_H\n" (#define) "#define" (identifier) "COE_H" (declaration) "...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 12.25, "nodes": 14, "errors": 0, "source_hash": "236926ad70cb30d8d75c5330dc6603c9756c4c00e566cb428b950509a380489c", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CO...
9,762
c
#pragma once #include <rename_me/detail/config.h> namespace nn { namespace detail { template<typename T> struct IsEboEnabled : std::integral_constant<bool , std::is_empty<T>::value && !std::is_final<T>::value> { }; template<bool IsEbo, typename T> struct NN_EBO_CLASS EboStorageImpl : pr...
22.04
47
(translation_unit) "#pragma once \n#include <rename_me/detail/config.h> \n \nnamespace nn \n{ \n namespace detail \n { \n \n template<typename T> \n struct IsEboEnabled : std::integral_constant<bool \n , std::is_empty<T>::value \n && !std::is_final<T>::value> { }; \n \n template<bool IsEbo, typename T> \n struc...
382
30
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 22.04, "nodes": 232, "errors": 0, "source_hash": "e1813b0ac851de2a00d780092570efe3cc13f46a2de785da8d7cc012daa6cee5", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,763
c
/******************************************************************************* * BSD 3-Clause License * * Copyright (c) 2017 <NAME> and <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are ...
36.16
115
(translation_unit) "/*******************************************************************************\n * BSD 3-Clause License\n *\n * Copyright (c) 2017 <NAME> and <NAME>.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that th...
320
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 36.16, "nodes": 164, "errors": 0, "source_hash": "756186396fb0610cdde745d6b44b20e447cd8be632bc38a37df4720b6e3cdb2c", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,764
c
/********************************************************** * Copyright 2010 VMware, Inc. 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, ...
32.1
270
(translation_unit) "/**********************************************************\n * Copyright 2010 VMware, Inc. All rights reserved.\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the "Software"), to deal in the Software...
1,915
0
{"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 32.1, "nodes": 1301, "errors": 0, "source_hash": "ac18114c9fec9d1905d9e9290bbc705eab05d9d62a51c61a352ff63a6a98011e", "categorized_nodes": 958}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,765
c
/* bigWigSummary - Extract summary information from a bigWig file.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "sqlNum.h" #include "udc.h" #include "bigWig.h" static char const rcsid[] = "$Id: bigWigSummary.c,v 1.13 2009/11/20 17:12:17 kent Exp $"; char *summaryType =...
29.53
77
(translation_unit) "/* bigWigSummary - Extract summary information from a bigWig file.. */\n#include "common.h"\n#include "linefile.h"\n#include "hash.h"\n#include "options.h"\n#include "sqlNum.h"\n#include "udc.h"\n#include "bigWig.h"\n\nstatic char const rcsid[] = "$Id: bigWigSummary.c,v 1.13 2009/11/20 17:12:17 kent...
620
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.53, "nodes": 320, "errors": 0, "source_hash": "c62bd3eb2b051b0bfd1f1b821340c77f6195f1ae23ff5c8e50761cc45a7b57bd", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,766
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIView.h" @class EmojiPackageInfo; @interface QQFacePkgOutdateView : UIView { EmojiPackageInfo *_packageInfo; int _xo; } - (void)ShowFaceDetal:(id)arg1; - (void)deallo...
28.75
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIView.h"\n\n@class EmojiPackageInfo;\n\n@interface QQFacePkgOutdateView : UIView\n{\n EmojiPackageInfo *_packageInfo;\n int _xo;\n}\n\n- (void)Sh...
162
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.75, "nodes": 94, "errors": 0, "source_hash": "5064d01b52e439856e460058ac502e7b04a6ee1cfe1fa67330eba8287bdfd2c3", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,767
c
#pragma once #include "ReplicationManagerServer.h" class DeliveryManager; class DeliveryDelegate { public: virtual void onDeliverySuccess(DeliveryManager * deliverymanager) {}; virtual void onDeliveryFailure(DeliveryManager * deliveryManager) {}; }; class DeliveryDelegateReplication : public DeliveryDelegate { pub...
32.02
51
(translation_unit) "#pragma once\n#include "ReplicationManagerServer.h"\n\nclass DeliveryManager;\n\nclass DeliveryDelegate\n{\npublic:\n virtual void onDeliverySuccess(DeliveryManager * deliverymanager) {};\n virtual void onDeliveryFailure(DeliveryManager * deliveryManager) {};\n};\n\nclass DeliveryDelegateReplication...
311
20
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.02, "nodes": 183, "errors": 0, "source_hash": "72be1792e6300aea0112c7e821f6b74e40fb10167ac83e2504e138fdaab544e9", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,768
c
#pragma once #include <string> #define ALPHABET_SIZE 26 using namespace std; class trie { public: // Constructor trie(); // Destructor ~trie(); // Other methods void insert(string value); void insert(string values[], int size); bool exist(string value); void clear(); private: ...
17.96
28
(translation_unit) "#pragma once\n\n#include <string>\n\n#define ALPHABET_SIZE 26\n\nusing namespace std;\n\nclass trie\n{\npublic:\n // Constructor\n trie();\n\n // Destructor\n ~trie();\n\n // Other methods\n void insert(string value);\n void insert(string values[], int size);\n bool exist(str...
159
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 17.96, "nodes": 103, "errors": 0, "source_hash": "771414ad08a0178768e62fa3be946b445bbd85cbe59429f5d1b5f5e5eb19aad6", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,769
c
#ifndef TUBE_H_ #define TUBE_H_ typedef struct _DelayLine { double *data; int length; double *pointer; double *end; } DelayLine; static inline DelayLine *initDelayLine(int len) { if (len < 0) { printf("Tried to initialize delay line of length 0\n"); return NULL; }...
24.36
86
(translation_unit) "#ifndef TUBE_H_ \n#define TUBE_H_ \n \ntypedef struct _DelayLine { \n double *data; \n int length; \n double *pointer; \n double *end; \n} DelayLine; \n \nstatic inline DelayLine *initDelayLine(int len) { \n if (len < 0) { \n printf("Tried to initialize delay line of length 0\n...
683
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.36, "nodes": 420, "errors": 0, "source_hash": "e90150b2a143ef4d08d54968a8e3e1cde3ff882b6e4eb65e02595b2ce5b38395", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,770
c
// ************************************** // File: ImageCoder.h // Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved. // Website: http://www.nuiengine.com // Description: This code is part of NUI Engine (NUI Graphics Lib) // Comments: // Rev: 2 // Crea...
28.56
27
(translation_unit) " **************************************\n// File: ImageCoder.h\n// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.\n// Website: http://www.nuiengine.com\n// Description: This code is part of NUI Engine (NUI Graphics Lib)\n// Comments:\n// ...
62
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.56, "nodes": 31, "errors": 0, "source_hash": "a0e5d42898dc3cd31eb1edc511564713fbad5164a0cbdbe9983a0d7692093f49", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef Im...
9,771
c
/*************************************************************************** -= Paradise / Target Ball / Torus =- driver by <NAME> (<EMAIL>) Note: if MAME_DEBUG is defined, pressing Z with: Q shows the background layer W shows the mi...
33.11
239
(translation_unit) "/***************************************************************************\n\n -= Paradise / Target Ball / Torus =-\n\n driver by <NAME> (<EMAIL>)\n\n\nNote: if MAME_DEBUG is defined, pressing Z with:\n\n Q shows the background layer...
1,947
0
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 33.11, "nodes": 1143, "errors": 0, "source_hash": "3a7875b4dfd5a39d2538ad667d83908ba8bf8d952104664cca1c423dd0e1e627", "categorized_nodes": 907}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,772
c
// // UIWebViewController.h // StorageDemo // // Created by zhanggui on 2018/12/27. // Copyright © 2018 zhanggui. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIWebViewController : UIViewController @end NS_ASSUME_NONNULL_END
21.25
12
(translation_unit) "//\n// UIWebViewController.h\n// StorageDemo\n//\n// Created by zhanggui on 2018/12/27.\n// Copyright © 2018 zhanggui. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIWebViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (commen...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.25, "nodes": 14, "errors": 0, "source_hash": "34df4ce6acd0536d17b6506861089bad5cf9e85def7b97fbb7b7823fcb82bb05", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
9,773
c
// // Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved. // #ifndef FABRICUI_VALUEEDITOR_VETREEWIDGETITEM_H #define FABRICUI_VALUEEDITOR_VETREEWIDGETITEM_H #include <QTreeWidget> namespace FabricUI { namespace ValueEditor { class BaseViewItem; class VETreeWidgetItem : public QTreeWidgetItem { publi...
27.19
26
(translation_unit) "//\n// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved.\n//\n\n#ifndef FABRICUI_VALUEEDITOR_VETREEWIDGETITEM_H\n#define FABRICUI_VALUEEDITOR_VETREEWIDGETITEM_H\n\n#include <QTreeWidget>\n\nnamespace FabricUI {\nnamespace ValueEditor {\n \nclass BaseViewItem;\n\nclass VETreeWidgetIte...
114
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.19, "nodes": 60, "errors": 0, "source_hash": "ed7980422b8839b9dd390c43172b94097f4727bcca7929ad93b4093293cf0517", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,774
c
// // JRSDKSearchInfo.h // // Copyright 2020 Go Travel Un Limited // This code is distributed under the terms and conditions of the MIT license. // #import <AviasalesSDK/JRSDKModelObject.h> @class JRSDKTravelSegment, JRSDKTicket, JRSDKSearchResult; /** * Travel class */ typedef NS_ENUM(NSInteger, JRSDKTravelCl...
24.19
43
(translation_unit) "//\n// JRSDKSearchInfo.h\n//\n// Copyright 2020 Go Travel Un Limited\n// This code is distributed under the terms and conditions of the MIT license.\n//\n\n#import <AviasalesSDK/JRSDKModelObject.h>\n\n@class JRSDKTravelSegment, JRSDKTicket, JRSDKSearchResult;\n\n/**\n * Travel class\n */\ntypede...
181
31
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.19, "nodes": 124, "errors": 0, "source_hash": "da6e18f3da273579b68fe42fc7437543dbce4f0836c3cf8e7ad0e8a22f955e6b", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,775
c
/***************************************************************************** * Copyright (C) Queen's University Belfast, ECIT, 2016 * * * * This file is part of libsafecrypto. * * ...
36.07
125
(translation_unit) "/*****************************************************************************\n * Copyright (C) Queen's University Belfast, ECIT, 2016 *\n * *\n * This file is part of libsafecrypto. ...
1,220
1
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 36.07, "nodes": 702, "errors": 0, "source_hash": "108eb017b93b3562e83b195175bdd85cd2d85001ace51771502fa67b636992ed", "categorized_nodes": 525}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,776
c
// // DXBaseLayer.h // DXChart // // Created by caijing on 17/2/23. // Copyright © 2017年 caijing. All rights reserved. // #import <QuartzCore/QuartzCore.h> #import "DXkLineModel.h" @interface DXBaseLayer : CAShapeLayer - (void)setLayerWithModel:(DXkLineModel *)model index:(NSInteger)i; - (void)clearPath; @end
23.23
13
(translation_unit) "//\n// DXBaseLayer.h\n// DXChart\n//\n// Created by caijing on 17/2/23.\n// Copyright © 2017年 caijing. All rights reserved.\n//\n\n#import <QuartzCore/QuartzCore.h>\n#import "DXkLineModel.h"\n\n@interface DXBaseLayer : CAShapeLayer\n\n- (void)setLayerWithModel:(DXkLineModel *)model index:(NSInte...
62
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.23, "nodes": 38, "errors": 0, "source_hash": "0b22b3275e42ff7f5f6aab90479cb7f4deb3d5250b917e6dd2a07b397e8e28fd", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Qua...
9,777
c
// SPDX-FileCopyrightText: The Predator authors // // SPDX-License-Identifier: GPL-3.0-only extern void __VERIFIER_error() __attribute__ ((__noreturn__)); #include <stdlib.h> extern int __VERIFIER_nondet_int(void); int main() { union { void *p0; struct { char c[2]; int ...
20.94
31
(translation_unit) "// SPDX-FileCopyrightText: The Predator authors\n//\n// SPDX-License-Identifier: GPL-3.0-only\n\nextern void __VERIFIER_error() __attribute__ ((__noreturn__));\n\n#include <stdlib.h>\n\nextern int __VERIFIER_nondet_int(void);\n\nint main()\n{\n union {\n void *p0;\n\n struct {\n ...
190
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.94, "nodes": 110, "errors": 0, "source_hash": "4847a613e0cd2028fe95c87d7c998e11f58377c7b456bdf916727b90f6cf6f8a", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern vo...
9,778
c
// // XCTestBackChannelUIApplication.h // XCTestBackChannel // // Created by <NAME> on 9/3/21. // #import <Foundation/Foundation.h> @interface XCTestBackChannelUIApplication : NSObject @property (nonatomic, copy) NSDictionary <NSString *, NSString *> *launchEnvironment; @end
26.9
10
(translation_unit) "//\n// XCTestBackChannelUIApplication.h\n// XCTestBackChannel\n//\n// Created by <NAME> on 9/3/21.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XCTestBackChannelUIApplication : NSObject\n\n@property (nonatomic, copy) NSDictionary <NSString *, NSString *> *launchEnvironment;\n\n@end\n" ...
45
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.9, "nodes": 31, "errors": 0, "source_hash": "8c1a1db52fd4de782ed90d3b22781c4a05476470253f906c9f44f7a1008332a8", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
9,779
c
/*========================================================================= medInria Copyright (c) INRIA 2013. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ====...
36.86
35
(translation_unit) "/*=========================================================================\n\n medInria\n\n Copyright (c) INRIA 2013. All rights reserved.\n See LICENSE.txt for details.\n \n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A...
240
23
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 36.86, "nodes": 142, "errors": 0, "source_hash": "04f1776a79047a68f19f1ba6766ea7692477e0bb47bb6350094a81fe18d13480", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,780
c
/** \file \author <NAME> */ #ifndef CNOID_BULLETPLUGIN_BULLET_COLLISION_DETECTOR_H #define CNOID_BULLETPLUGIN_BULLET_COLLISION_DETECTOR_H #include <cnoid/CollisionDetector> namespace cnoid { class BulletCollisionDetectorImpl; class BulletCollisionDetector : public CollisionDetector { public: BulletCollis...
35.76
33
(ERROR) "/**\n \file\n \author <NAME>\n*/\n\n#ifndef CNOID_BULLETPLUGIN_BULLET_COLLISION_DETECTOR_H\n#define CNOID_BULLETPLUGIN_BULLET_COLLISION_DETECTOR_H\n\n#include <cnoid/CollisionDetector>\n\nnamespace cnoid {\n\nclass BulletCollisionDetectorImpl;\n\nclass BulletCollisionDetector : public CollisionDetector\n{\...
268
25
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.76, "nodes": 177, "errors": 0, "source_hash": "5283a4c2763bcfe28055c12c3804eb183208d5a33320641412575bafb62d6d08", "categorized_nodes": 118}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/**\n \\file\n \\auth...
9,781
c
/* Adding a new function: Add value to the bodmas stack Line (remeber these don't have to be visible characters and can be special character codes): char *bodmasStack={}; Add algorithm to corresponding switch case in the function: void operatorOnRPNStack(char op){ */ #define maxEquationLength 100 #include <string.h...
28.47
176
(translation_unit) "/*\nAdding a new function:\nAdd value to the bodmas stack Line (remeber these don't have to be visible characters and can be special character codes): char *bodmasStack={};\nAdd algorithm to corresponding switch case in the function: void operatorOnRPNStack(char op){\n*/\n#define maxEquationLeng...
1,334
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 28.47, "nodes": 795, "errors": 0, "source_hash": "96f32ea08ad57e903f542d20afd7ff995f695376af66a58deecdb0faafc8b337", "categorized_nodes": 515}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
9,782
c
#ifndef MESTABLES_GLOBAL_H #define MESTABLES_GLOBAL_H #include <QtCore/qglobal.h> #if defined(MESTABLES_LIBRARY) # define MESTABLESSHARED_EXPORT Q_DECL_EXPORT #else # define MESTABLESSHARED_EXPORT Q_DECL_IMPORT #endif #endif // MESTABLES_GLOBAL_H
26.67
9
(translation_unit) "#ifndef MESTABLES_GLOBAL_H\n#define MESTABLES_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if defined(MESTABLES_LIBRARY)\n# define MESTABLESSHARED_EXPORT Q_DECL_EXPORT\n#else\n# define MESTABLESSHARED_EXPORT Q_DECL_IMPORT\n#endif\n\n#endif // MESTABLES_GLOBAL_H\n" (preproc_ifdef) "#ifndef MESTABL...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.67, "nodes": 27, "errors": 0, "source_hash": "a59e69a22d01e31b7c2b596d92b6a44adfdec503ba36578a6151511cfe108d6b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
9,783
c
/** * Copyright 2021 Huawei Technologies 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...
36.34
65
(translation_unit) "/**\n * Copyright 2021 Huawei Technologies Co., Ltd\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 * Unle...
498
37
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 36.34, "nodes": 265, "errors": 0, "source_hash": "326f808ce23bd2a94e60f216f3db125c456c7eeffda4f55ab491932708654350", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,784
c
/* * SharedMemoryStatistics.h * * Created on: Sep 2, 2014 * Author: kristof */ #ifndef PEANOCLAW_STATISTICS_SHAREDMEMORYSTATISTICS_H_ #define PEANOCLAW_STATISTICS_SHAREDMEMORYSTATISTICS_H_ #include "tarch/logging/Log.h" #include <map> namespace peanoclaw { class Patch; namespace statistics { cla...
24.96
46
(translation_unit) "/*\n * SharedMemoryStatistics.h\n *\n * Created on: Sep 2, 2014\n * Author: kristof\n */\n\n#ifndef PEANOCLAW_STATISTICS_SHAREDMEMORYSTATISTICS_H_\n#define PEANOCLAW_STATISTICS_SHAREDMEMORYSTATISTICS_H_\n\n#include "tarch/logging/Log.h"\n\n#include <map>\n\nnamespace peanoclaw {\n class Patch...
173
8
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 24.96, "nodes": 95, "errors": 0, "source_hash": "9ddf47b613f525cd001581057b51de853ddbd2a0fcb0be0653cccdd5dd2fade4", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,785
c
#include <sys/types.h> #include <sys/mman.h> #include <machine/atomic.h> #include <fcntl.h> #include <memory.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define POSIXPATH ("/fake/path/posixshm") #define SHM_SIZE (4096) int main() { key_t key; pid_t pid; char *shm; uint8_t *mtx; int error, i; ...
18.65
57
(translation_unit) "#include <sys/types.h>\n#include <sys/mman.h>\n\n#include <machine/atomic.h>\n\n#include <fcntl.h>\n#include <memory.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#define POSIXPATH ("/fake/path/posixshm")\n#define SHM_SIZE (4096)\n\nint\nmain()\n{\n key_t key;\n pid_t pid;\n ch...
462
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 18.65, "nodes": 271, "errors": 0, "source_hash": "7f2b8b5ebd449003e0479244bc86c8716458b58f64dd5504b1f6dff2161b3397", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,786
c
/** * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution. */ /** * @author mrk */ /* <NAME> 2011.03 * This creates a CA context the first time a thread calls * caContextCreate::create and then calls ca_attach_context * from checkCo...
28.75
53
(translation_unit) "/**\n * Copyright information and license terms for this software can be\n * found in the file LICENSE that is included with the distribution.\n */\n/**\n * @author mrk\n */\n/* <NAME> 2011.03\n * This creates a CA context the first time a thread calls\n * caContextCreate::create and then calls ca_a...
315
19
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.75, "nodes": 179, "errors": 0, "source_hash": "a9f97b5ffa4dbedb9fbca9f6dcbdaf3d4ba9beacc7adbafbca58a5185ec11425", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,787
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_THEME_HELPER_H_ #define CONTENT_BROWSER_THEME_HELPER_H_ #include "base/no_destructor.h" #include "base/scoped_observation.h" #inc...
39.83
30
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_THEME_HELPER_H_\n#define CONTENT_BROWSER_THEME_HELPER_H_\n\n#include "base/no_destructor.h"\n#include "bas...
222
13
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 39.83, "nodes": 117, "errors": 0, "source_hash": "26f19ff5d4b2ea8adcb0a9c3ca0fe88868cc0f4c3af9374ea6716cd0c735e48f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,788
c
/** * Copyright 2016-2017 MICRORISC s.r.o. * * 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...
34.11
44
(translation_unit) "/**\n * Copyright 2016-2017 MICRORISC s.r.o.\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 ...
245
15
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 34.11, "nodes": 136, "errors": 0, "source_hash": "39e85606032c8ae6ce3f5593056f6cefdee2dac4135d244d936e00f916ffcfb2", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,789
c
#ifndef MK1MF_BUILD /* auto-generated by crypto/Makefile for crypto/cversion.c */ #define CFLAGS "/usr/bin/cc " #define PLATFORM "Linux" #define DATE "" #endif /* ~2DO: is the above ok? */
27.14
7
(translation_unit) "#ifndef MK1MF_BUILD\n /* auto-generated by crypto/Makefile for crypto/cversion.c */\n #define CFLAGS "/usr/bin/cc "\n #define PLATFORM "Linux"\n #define DATE ""\n#endif\n/* ~2DO: is the above ok? */\n\n\n\n" (preproc_ifdef) "#ifndef MK1MF_BUILD\n /* auto-generated by crypto/Makefile for crypt...
19
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 27.14, "nodes": 16, "errors": 0, "source_hash": "d628ffd9247798becdd8f8662fb84fac9f23144d76ad1c7d2e4cb0803be38154", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MK...
9,790
c
#pragma once #include "pch.h" #include "Core/Core.h" #include "KeyboardEvent.h" #include "MouseEvent.h" #include "WindowEvent.h" #define BIT(x) (1 << x) namespace Clap { enum class EventType { None = 0, WindowClose, WindowResize, WindowFocus, WindowLostFocus, KeyPressed, KeyReleased, KeyTyped, MouseButt...
24.33
42
(translation_unit) "#pragma once\n#include "pch.h"\n\n#include "Core/Core.h"\n#include "KeyboardEvent.h"\n#include "MouseEvent.h"\n#include "WindowEvent.h"\n\n#define BIT(x) (1 << x)\n\nnamespace Clap\n{\n enum class EventType\n {\n None = 0,\n WindowClose, WindowResize, WindowFocus, WindowLostFocus,\n KeyPressed...
240
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.33, "nodes": 156, "errors": 0, "source_hash": "4938100a894b9b38b413faf2e1ead45c765b885009b75904936dd1504a66fbc9", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,791
c
#pragma once #include "typedef.h" #include "event.h" #include "timer.h" namespace frame { typedef void(*iocp_handle)(void* context, event_head* ev, size_t bytes, errno_type e); class iocp { public: iocp(); ~iocp(); void start_thread(uint8_t n); void stop_thread(); void run(); void wait(); int post(v...
21.4
30
(translation_unit) "#pragma once\n\n#include "typedef.h"\n#include "event.h"\n#include "timer.h"\n\nnamespace frame\n{\n typedef void(*iocp_handle)(void* context, event_head* ev, size_t bytes, errno_type e);\n class iocp\n {\n public:\n iocp();\n ~iocp();\n void start_thread(uint8_t n);\n void stop_thread();\n voi...
238
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 21.4, "nodes": 160, "errors": 0, "source_hash": "ed6060ad3154dfc1c225a0dec61d21254251559346be694d2f437c4d5c3017fb", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,792
c
/* * Copyright (C) 2008 <NAME> <<EMAIL>> * * Inspired by libvolume_id by * <NAME> <<EMAIL>> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "superbl...
30.76
45
(translation_unit) "/*\n * Copyright (C) 2008 <NAME> <<EMAIL>>\n *\n * Inspired by libvolume_id by\n * <NAME> <<EMAIL>>\n *\n * This file may be redistributed under the terms of the\n * GNU Lesser General Public License.\n */\n\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#inc...
328
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.76, "nodes": 213, "errors": 0, "source_hash": "376797ad524a3b4c3d6ebe55fed3b5bbed56ed2b15aba643b38dee0d64d87e67", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,793
c
#pragma once #include <QtCore/QTimer> #include <QtGui/QPaintEvent> #include <boost/signals2.hpp> #include <chrono> #include "timeline.h" /// A simple stand-alone widget, allowing to change the current time and star/end of the timelne. /// Directly changes the current time in App singleton, which in turn fires off a ...
31.7
27
(translation_unit) "#pragma once\n\n#include <QtCore/QTimer>\n#include <QtGui/QPaintEvent>\n#include <boost/signals2.hpp>\n#include <chrono>\n\n#include "timeline.h"\n\n/// A simple stand-alone widget, allowing to change the current time and star/end of the timelne.\n/// Directly changes the current time in App singlet...
197
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.7, "nodes": 127, "errors": 0, "source_hash": "42de53a4f4754dcfd2530252bea1942d98ad3467c038f7cec6ef575e282ffbb1", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,794
c
// // NSNumber+APUtils.h // // Created by <NAME> on 5/29/13. // #import <Foundation/Foundation.h> @interface NSNumber (APUtils) - (NSString *)formattedString; - (NSString *)formattedStringWithCurrency:(NSString *)currency; /** * return a NSDate value base on unix time in seconds * * @return a NSDate value ...
20.95
37
(translation_unit) "//\n// NSNumber+APUtils.h\n//\n// Created by <NAME> on 5/29/13.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSNumber (APUtils)\n\n- (NSString *)formattedString;\n\n- (NSString *)formattedStringWithCurrency:(NSString *)currency;\n\n/**\n * return a NSDate value base on unix time in seco...
112
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 20.95, "nodes": 66, "errors": 0, "source_hash": "c6478ca16c4f434077beadd9b740592eae29b6cd5a7cb0762278b3a86d23733a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,795
c
#ifndef BATTLE_STATS_H #define BATTLE_STATS_H #include <SisterRay/SisterRay.h> #include <map> #include <vector> #include <unordered_set> #include "../EncodedString.h" #include "../sr_named_registry.h" typedef struct { EncodedString displayName; i32 maxValue; i32 minValue; bool canBeNegative; }SrStat; ...
31.17
46
(translation_unit) "#ifndef BATTLE_STATS_H\n#define BATTLE_STATS_H\n\n#include <SisterRay/SisterRay.h>\n#include <map>\n#include <vector>\n#include <unordered_set>\n#include "../EncodedString.h"\n#include "../sr_named_registry.h"\n\ntypedef struct {\n EncodedString displayName;\n i32 maxValue;\n i32 minValue;\...
267
11
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 31.17, "nodes": 169, "errors": 0, "source_hash": "16b3497e6b44cbb4dbc55b254ebefc7e5f88a2e1e5610066fe6c4ba3e476f371", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,796
c
/* $NetBSD: svr4_machdep.h,v 1.1 2001/05/14 18:23:15 drochner Exp $ */ #include <m68k/svr4_machdep.h>
50
2
(translation_unit) "/* $NetBSD: svr4_machdep.h,v 1.1 2001/05/14 18:23:15 drochner Exp $ */\n\n#include <m68k/svr4_machdep.h>\n" (comment) "/* $NetBSD: svr4_machdep.h,v 1.1 2001/05/14 18:23:15 drochner Exp $ */" (preproc_include) "#include <m68k/svr4_machdep.h>\n" (#include) "#include" (system_lib_string) "<...
5
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 50.0, "nodes": 3, "errors": 0, "source_hash": "729e3ba9535131f81e58d59f74086a78837eb02fdb3336846a0504b5551e90cd", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
9,797
c
/* * Copyright (c) 2018, PQShield and Koninklijke Philips N.V. * <NAME>, Koninklijke Philips N.V. */ #include "r5_cpa_pke.h" #include "r5_parameter_sets.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "r5_hash.h" #include "rng.h" #include "misc.h" #include "r5_memory.h" // CCA-KEM KeyGen()...
36.76
101
(translation_unit) "/*\n * Copyright (c) 2018, PQShield and Koninklijke Philips N.V.\n * <NAME>, Koninklijke Philips N.V.\n */\n\n#include "r5_cpa_pke.h"\n#include "r5_parameter_sets.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "r5_hash.h"\n#include "rng.h"\n#include "misc.h"\n#include...
814
6
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.76, "nodes": 454, "errors": 0, "source_hash": "c7f894995fc3c62a403f76aa4722f60db080ad84053eb3e0458219f4aac053cc", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,798
c
// MIT License // // This file is part of SpaceGame. // Copyright (c) 2014-2018 <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 ...
35.7
61
(translation_unit) "// MIT License\n//\n// This file is part of SpaceGame.\n// Copyright (c) 2014-2018 <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, in...
299
14
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 35.7, "nodes": 163, "errors": 0, "source_hash": "a78e548e074b71287f2ce04c1c1851155d1adae8551f77a35cacb8517d1a4990", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,799