language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "Game.h" #include "GameCore.h" static void ProcessLoopCore( void * object) { // PGame _this = (PGame)object; InitResource(); PGameCore game_ptr = NewGameCore(); game_ptr->Init(game_ptr); game_ptr->ProcessLoop(game_ptr); FreeGameCore(game_ptr); game_ptr=NULL; } static void InitGameC...
20.23
26
(translation_unit) "#include "Game.h"\n#include "GameCore.h"\n\nstatic void ProcessLoopCore( void * object)\n{\n// PGame _this = (PGame)object;\n InitResource();\n PGameCore game_ptr = NewGameCore();\n game_ptr->Init(game_ptr);\n game_ptr->ProcessLoop(game_ptr);\n FreeGameCore(game_ptr);\n game_ptr...
176
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.23, "nodes": 100, "errors": 0, "source_hash": "ad31dca50226fb992bd23baac147fa2a4a3ea351937316884b855fb4dcbd1c20", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,700
c
#ifndef NPC_MANAGER_H #define NPC_MANAGER_H #include <Godot.hpp> #include <Node.hpp> #include <Node2D.hpp> #include <Sprite.hpp> #include <AnimationPlayer.hpp> #include <Input.hpp> #include <Vector2.hpp> #include <Area2D.hpp> #include <algorithm> #include <limits> #include <CollisionShape2D.hpp> #include <Node2D.hpp> ...
21.23
39
(translation_unit) "#ifndef NPC_MANAGER_H\n#define NPC_MANAGER_H\n\n#include <Godot.hpp>\n#include <Node.hpp>\n#include <Node2D.hpp>\n#include <Sprite.hpp>\n#include <AnimationPlayer.hpp>\n#include <Input.hpp>\n#include <Vector2.hpp>\n#include <Area2D.hpp>\n#include <algorithm>\n#include <limits>\n#include <CollisionSh...
199
3
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 21.23, "nodes": 129, "errors": 0, "source_hash": "31e61a905d7cabce4ff6c5441a275db610e2f0ed762a184a6ff3b540580fa1b1", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,701
c
#include <string.h> // 字符串头文件。主要定义了一些有关字符串操作的嵌入函数。 #include <errno.h> // 错误号头文件。包含系统中各种出错号。(Linus 从 minix 中引进的)。 #include <sys/stat.h> // 文件状态头文件。含有文件或文件系统状态结构 stat{} 和常量。 #include <linux/sched.h> // 调度程序头文件,定义了任务结构 task_struct、初始任务0 的数据. extern int tty_ioctl(int dev, int cmd, int arg); // 终端 ioctl(chr_drv/tty_ioc...
32.68
44
(translation_unit) "#include <string.h> // 字符串头文件。主要定义了一些有关字符串操作的嵌入函数。\n#include <errno.h> // 错误号头文件。包含系统中各种出错号。(Linus 从 minix 中引进的)。\n#include <sys/stat.h> // 文件状态头文件。含有文件或文件系统状态结构 stat{} 和常量。\n\n#include <linux/sched.h> // 调度程序头文件,定义了任务结构 task_struct、初始任务0 的数据.\n\nextern int tty_ioctl(int dev, int cmd, int arg); /...
318
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.68, "nodes": 204, "errors": 0, "source_hash": "d8212cee1efc42f56825b89cbe4153b0e3b7173924cc6f5c113e83683576c413", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,702
c
// Copyright (C) 2007 Id Software, Inc. // #ifndef _KEYNUM_H_ #define _KEYNUM_H_ // these are the key numbers that are used by the key system // normal keys should be passed as lowercased ascii // Some high ascii (> 127) characters that are mapped directly to keys on // western european keyboards are inserte...
14.35
176
(translation_unit) "// Copyright (C) 2007 Id Software, Inc. \n// \n \n#ifndef _KEYNUM_H_ \n#define _KEYNUM_H_ \n \n// these are the key numbers that are used by the key system \n// normal keys should be passed as lowercased ascii \n// Some high ascii (> 127) characters that are mapped directly to keys on \n// western e...
528
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 14.35, "nodes": 364, "errors": 0, "source_hash": "3f2ae8a0beefac8221c7727bc45195d7924e010386ecf6de650e76ad8e05c9fe", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,703
c
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid c...
35.12
127
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2015 The Qt Company Ltd.\n** Contact: http://www.qt.io/licensing/\n**\n** This file is part of the tools applications of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:LGPL21$\n** Commercial License Usage\...
956
17
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 35.12, "nodes": 603, "errors": 0, "source_hash": "f4490571c8370bd449e022c9364c2a288bc9b9817ce528ce23b5d6c1b5776aa5", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,704
c
// Run with wordlist.txt #include <stdio.h> #include <string.h> #include <stdlib.h> #define BUFFER_MAX 1024 int main() { printf("Enter file: "); char filename[BUFFER_MAX]; scanf("%s", filename); FILE *fp_in = fopen(filename, "r"); FILE *fp_out = fopen("short_long_results.txt", "w"); i...
19.53
66
(translation_unit) "// Run with wordlist.txt \n \n#include <stdio.h> \n#include <string.h> \n#include <stdlib.h> \n \n#define BUFFER_MAX 1024 \n \nint main() \n{ \n printf("Enter file: "); \n char filename[BUFFER_MAX]; \n scanf("%s", filename); \n \n FILE *fp_in = fopen(filename, "r"); \n FILE *fp_out = fopen("s...
565
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 19.53, "nodes": 350, "errors": 0, "source_hash": "f8a269c66eb4fb12d9dc4738cad88fe362c706995405a0369c2b19117dc950f6", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,705
c
/* * Copyright (c) 2020, MediaTek Inc. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MT_DP_H #define MT_DP_H #define DP_TX_SECURE_REG11 (0x2c) #define VIDEO_MUTE_SEL_SECURE_FLDMASK (0x10) #define VIDEO_MUTE_SW_SECURE_FLDMASK (0x8) enum DP_ATF_HW_TYPE { DP_ATF_TYPE_DP = 0, DP_ATF_T...
23.1
21
(translation_unit) "/*\n * Copyright (c) 2020, MediaTek Inc. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef MT_DP_H\n#define MT_DP_H\n\n#define DP_TX_SECURE_REG11 (0x2c)\n\n#define VIDEO_MUTE_SEL_SECURE_FLDMASK (0x10)\n#define VIDEO_MUTE_SW_SECURE_FLDMASK (0x8)\n\nenum DP_ATF_HW_TYP...
75
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.1, "nodes": 59, "errors": 0, "source_hash": "ddfd9a71cd81d6bc73371174f9ed0d8c9b721f226432c442d2d05fd9dfc3f6e6", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
10,706
c
#include <unistd.h> #include "libc/syscall.h" #include "libc/config.h" syscall3(int, getresuid, uid_t *, uid_t *, uid_t *)
29.75
4
(translation_unit) "#include <unistd.h>\n#include "libc/syscall.h"\n#include "libc/config.h"\n\nsyscall3(int, getresuid, uid_t *, uid_t *, uid_t *)\n" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include "libc/syscall.h"\n" (#includ...
39
3
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 29.75, "nodes": 23, "errors": 0, "source_hash": "90944d5b825c3c5819ae478b08bf4469aa0b3bcf0057509b948348d1a06243a2", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,707
c
#pragma once #include <SDL.h> #include <string> #include <list> #include <memory> #include "Events/EventHandler.h" namespace Sourcehold { namespace Events { enum EventType { DUMMY, KEYDOWN, KEYUP, TEXTINPUT, MOTION, BUTTONDOWN, ...
29.31
85
(translation_unit) "#pragma once\n\n#include <SDL.h>\n\n#include <string>\n#include <list>\n#include <memory>\n\n#include "Events/EventHandler.h"\n\nnamespace Sourcehold {\n namespace Events {\n enum EventType {\n DUMMY,\n KEYDOWN,\n KEYUP,\n TEXTINPUT,\n ...
487
14
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 29.31, "nodes": 284, "errors": 0, "source_hash": "78874c2631509df38e07afdb861636018939d79a670766103d3c9119de9d7554", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,708
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSString; @interface GKDatabaseConnectionFactory : NSObject { NSString *_databasePath; // 8 = 0x8 } + (id)factory...
43.85
20
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSString;\n\n@interface GKDatabaseConnectionFactory : NSObject\n{\n NSString *_databaseP...
191
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 43.85, "nodes": 108, "errors": 0, "source_hash": "4c5b229ecddaa75df198f2a0f3b5f67de0c3a82c614e38ffec9a54ead676a3cc", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,709
c
#pragma once #include <deque> #include <vector> #include <string> #include "fhl.h" #include "group.h" #include "action.h" #include "coset.h" using std::string; template<typename T> string stringRestrict( const string& x, const T& Delta ) { string y; y.reserve( Delta.size() ); for( int i : Delta ) y.push_back( ...
33.59
133
(translation_unit) "#pragma once\n#include <deque>\n#include <vector>\n#include <string>\n\n#include "fhl.h"\n#include "group.h"\n#include "action.h"\n#include "coset.h"\n\n\nusing std::string;\n\ntemplate<typename T>\nstring stringRestrict( const string& x, const T& Delta ) {\n string y;\n y.reserve( Delta.size() );\n...
1,471
84
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 33.59, "nodes": 937, "errors": 0, "source_hash": "89542eacab4cb5d1273cd66149c34dd27f61bf37a8718a34f868e9411ac0f533", "categorized_nodes": 678}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,710
c
/* * Copyright 2017 <NAME> * * See LICENCE for the full copyright terms. */ #include "theft_libfsm.h" #include <adt/xalloc.h> void print_or_hexdump(FILE *f, const uint8_t *buf, size_t size) { bool all_printable; all_printable = true; for (size_t i = 0; i < size; i++) { if (!isprint(buf[i])) { all_print...
23.91
130
(translation_unit) "/*\n * Copyright 2017 <NAME>\n *\n * See LICENCE for the full copyright terms.\n */\n\n#include "theft_libfsm.h"\n\n#include <adt/xalloc.h>\n\nvoid\nprint_or_hexdump(FILE *f, const uint8_t *buf, size_t size)\n{\n bool all_printable;\n\n all_printable = true;\n\n for (size_t i = 0; i < size; i++) {\n...
1,058
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 23.91, "nodes": 650, "errors": 0, "source_hash": "b795b58745e943d91991daeade8180314d45fcfed12f3cb1d38a666c3a87fb11", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,711
c
/* ///////////////////////////////////////////////////////////////////// */ /*! \file \brief ArrayLib function prototypes header file. Contains the function prototypes used in the ArrayLib routines. \author <NAME> (University of Chicago) \author <NAME> (<EMAIL>) \author <NAME> (<EMAIL>) \date Aug...
36.7
86
(translation_unit) "/* ///////////////////////////////////////////////////////////////////// */\n/*! \n \file \n \brief ArrayLib function prototypes header file.\n\n Contains the function prototypes used in the ArrayLib routines.\n\n \author <NAME> (University of Chicago)\n \author <NAME> (<EMAIL>)\n \author <NA...
1,095
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 36.7, "nodes": 827, "errors": 0, "source_hash": "13d208596f5901455ed66f49a57f15eb17816226d09bca3d55c50bff089a1df2", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,712
c
#ifndef CLLANDSCAPE_TEXTURE_H #define CLLANDSCAPE_TEXTURE_H #include "clError.h" #include "clGFXFile.h" #include "clTextureAtlas.h" class clLandscapeTextures :public clTextureAtlas { public: clLandscapeTextures(int TextureAtlasWidth, int TextureAtlasHeight, int TriangleCount); ~clLandscapeTextures();...
28.06
107
(translation_unit) "#ifndef CLLANDSCAPE_TEXTURE_H \n#define CLLANDSCAPE_TEXTURE_H \n \n \n#include "clError.h" \n#include "clGFXFile.h" \n#include "clTextureAtlas.h" \n \n \nclass clLandscapeTextures :public clTextureAtlas \n{ \npublic: \n clLandscapeTextures(int TextureAtlasWidth, int TextureAtlasHeight, int TriangleC...
615
8
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 28.06, "nodes": 438, "errors": 0, "source_hash": "4835d85300932b2f5c76322ce152d79c5886ad31983682a45b90e9312d0bdb07", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,713
c
#pragma once #include "Component.h" struct StupidComponent : public Mini::Component<StupidComponent> { char CharValue; protected: virtual void DebugComponentImpl() override { LOG((int)CharValue); } };
17.82
11
(translation_unit) "#pragma once\n\n#include "Component.h"\n\nstruct StupidComponent : public Mini::Component<StupidComponent>\n{\n char CharValue;\n\nprotected:\n virtual void DebugComponentImpl() override\n {\n LOG((int)CharValue);\n }\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
67
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.82, "nodes": 39, "errors": 0, "source_hash": "119b65fa51d6c765358f5cfc4d5fbf35e4ffd19cf1df9207ae1ea4d41323d0c2", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,714
c
#ifndef IIC_IEBV_ESTIMATOR_H #define IIC_IEBV_ESTIMATOR_H #include <vector> #include <opencv2/imgproc/imgproc.hpp> #include "illum.h" #include "config_iebv.h" #include "superpixel.h" namespace iic { class IebvEstimator { public: IebvEstimator(const ConfigIebv &config); illumestimators::Illum estimate(const cv::...
25.09
22
(translation_unit) "#ifndef IIC_IEBV_ESTIMATOR_H\n#define IIC_IEBV_ESTIMATOR_H\n\n#include <vector>\n#include <opencv2/imgproc/imgproc.hpp>\n\n#include "illum.h"\n#include "config_iebv.h"\n#include "superpixel.h"\n\nnamespace iic {\n\nclass IebvEstimator {\npublic:\n IebvEstimator(const ConfigIebv &config);\n \n illume...
138
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.09, "nodes": 75, "errors": 0, "source_hash": "009d930de246d680b7b61f24e22bd5ee1013a20ff96868c99c4792ff1726237a", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,715
c
#ifndef KERNEL_COMMON_HASH_H #define KERNEL_COMMON_HASH_H #include "common/types.h" #include "lib/string.h" #include "common/compiler.h" #define HASH_PRIME 0x9e370001UL #define hash(val, bits) \ (sizeof(val) <= 4 ? hash_32(val, bits) : hash_64(val, bits)) ...
23.22
37
(translation_unit) "#ifndef KERNEL_COMMON_HASH_H\n#define KERNEL_COMMON_HASH_H\n\n#include "common/types.h"\n#include "lib/string.h"\n#include "common/compiler.h"\n\n#define HASH_PRIME 0x9e370001UL\n\n#define hash(val, bits) \\n (sizeof(val) <= 4 ? hash_32(val,...
272
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 23.22, "nodes": 183, "errors": 0, "source_hash": "42fa0ed78a424713aef08c2d0591fc5b3b5819f462465b9d89075c5ca5f865ee", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,716
c
/*************************************************************************** * Filename : EntryPoint.h * Name : <NAME> * Date : 29/10/2019 * Description : Contains the implementation of the engine's entry point. .---. .'_:___". |__ --==| [ ] :[| |__| I=[| / / ____| |-/.____.' /___\ /__...
28.17
30
(translation_unit) "/***************************************************************************\n * Filename : EntryPoint.h\n * Name : <NAME>\n * Date : 29/10/2019\n * Description : Contains the implementation of the engine's entry point.\n .---.\n .'_:___".\n |__ --==|\n [ ] :[|\n |__| I=[|\n / /...
124
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.17, "nodes": 68, "errors": 0, "source_hash": "542722f1b0abb62dedb94c48a32ecae0b3a8774b0bd86b0f7c5fbbce3cc0b65a", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,717
c
#pragma once #include <Parsers/IParserBase.h> namespace DB { /** Parses queries like * SHOW CREATE USER [name | CURRENT_USER] * SHOW CREATE USERS [name [, name2 ...] * SHOW CREATE ROLE name * SHOW CREATE ROLES [name [, name2 ...]] * SHOW CREATE [SETTINGS] PROFILE name * SHOW CREATE [SETTINGS] PROFILES [n...
33.29
24
(translation_unit) "#pragma once\n\n#include <Parsers/IParserBase.h>\n\n\nnamespace DB\n{\n/** Parses queries like\n * SHOW CREATE USER [name | CURRENT_USER]\n * SHOW CREATE USERS [name [, name2 ...]\n * SHOW CREATE ROLE name\n * SHOW CREATE ROLES [name [, name2 ...]]\n * SHOW CREATE [SETTINGS] PROFILE name\n * S...
79
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.29, "nodes": 39, "errors": 0, "source_hash": "894d8372af2bc97139a8569470efec2e05798e0b046b848be35d8dbaf3b22ba7", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,718
c
#include "../local-include/intr.h" static inline make_EHelper(syscall) { raise_intr(s, EX_SYSCALL, cpu.pc); print_asm("syscall"); } static inline make_EHelper(eret) { rtl_j(s, cpu.epc); cpu.status.exl = 0; print_asm("eret"); } static inline make_EHelper(mfc0) { uint32_t val; switch (id_dest->reg) { ...
34.78
51
(translation_unit) "#include "../local-include/intr.h"\n\nstatic inline make_EHelper(syscall) {\n raise_intr(s, EX_SYSCALL, cpu.pc);\n print_asm("syscall");\n}\n\nstatic inline make_EHelper(eret) {\n rtl_j(s, cpu.epc);\n cpu.status.exl = 0;\n print_asm("eret");\n}\n\nstatic inline make_EHelper(mfc0) {\n uint32_t ...
706
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.78, "nodes": 394, "errors": 0, "source_hash": "071dcb2c18d3588da8729983fcbfdb2c5f6cc3cc859d3d3f2ea012b85a1d1071", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,719
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SAObjects.framework/SAObjects */ @interface SAAceClientState : SADomainObject + (id)aceClientState; + (id)aceClientStateWithDictionary:(id)arg1 context:(id)arg2; + (id)deliveryDeadline; + (id)persistencePolicy; - (id)encodedClassName; - (id)...
29.82
11
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/SAObjects.framework/SAObjects\n */\n\n@interface SAAceClientState : SADomainObject\n\n+ (id)aceClientState;\n+ (id)aceClientStateWithDictionary:(id)arg1 context:(id)arg2;\n+ (id)deliveryDeadline;\n+ (id)persistencePolicy;\n\...
86
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.82, "nodes": 51, "errors": 0, "source_hash": "dab6d7ae8edec8a31e45d53c73713d2595ccaa2626b4f4f184ede87b86db2f81", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SAAce...
10,720
c
#include "headers.h" //!This class is used to create a material. class Material { private: /*!Material ambient effect.*/ GLfloat materialAmbient[4]; /*!Material diffuse effect.*/ GLfloat materialDiffuse[4]; /*!Material specular effect.*/ GLfloat materialSpecular[4]; /*!Material shininess effect.*/ GLfloat mate...
31.07
30
(translation_unit) "#include "headers.h"\n\n//!This class is used to create a material.\nclass Material\n{\nprivate:\n /*!Material ambient effect.*/\n GLfloat materialAmbient[4];\n /*!Material diffuse effect.*/\n GLfloat materialDiffuse[4];\n /*!Material specular effect.*/\n GLfloat materialSpecular[4];\n /*!Material s...
123
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.07, "nodes": 62, "errors": 0, "source_hash": "3873636587bb6eaa7d9fc42cbbc62ca3f23d4661190b46c5f0e2dd04651d4bd5", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,721
c
#include <stdio.h> #include <math.h> long long check(int n, long long card_no); int main(void) { printf("Enter Your Credit Card Number the proble : "); scanf("%lld", &card_no); if (card_no / 100000000000000 != 0) { if ((card_no / 1000000000000000 != 0) && (card_no / 1000000000000000...
25.12
104
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\nlong long check(int n, long long card_no);\nint main(void)\n{\n printf("Enter Your Credit Card Number the proble : ");\n scanf("%lld", &card_no);\n if (card_no / 100000000000000 != 0)\n {\n if ((card_no / 1000000000000000 != 0) && \n ...
834
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 25.12, "nodes": 494, "errors": 0, "source_hash": "bbe9a8c029d0c58451647ff5dcdc6e0aadef38357b2d2eb21eaa7fb8d9efd9ac", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,722
c
#ifndef ARRAYLIST_H #define ARRAYLIST_H #define DEFAULT_MAX_SIZE 1024 #include "list.h" #include <stdexcept> using std::runtime_error; template <typename E> class ArrayList : public list<E>{ protected: E* elements; int max; int size; int pos; public: ArrayList(int max = DEFAULT_M...
22.88
169
(translation_unit) "#ifndef ARRAYLIST_H \n#define ARRAYLIST_H \n#define DEFAULT_MAX_SIZE 1024 \n#include "list.h" \n#include <stdexcept> \n \nusing std::runtime_error; \n \ntemplate <typename E> \nclass ArrayList : public list<E>{ \nprotected: \n E* elements; \n int max; \n int size; \n int pos; \n \npublic...
1,344
31
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 22.88, "nodes": 779, "errors": 0, "source_hash": "079a01463948bb979bef4e9e73e31606f3ab74dadcfc37a0027eeb7a4b48ca9d", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,723
c
/* Test for broken long long suffixes. */ /* Origin: <NAME> <<EMAIL>> */ /* The following are valid integer suffixes, according to C99: no suffix u or U ul, uL, Ul or UL ull, uLL, Ull or ULL l or L lu, lU, Lu or LU llu, llU, LLu or LLU The following are not but have been accepted by GCC in t...
37.65
17
(translation_unit) "/* Test for broken long long suffixes. */\n/* Origin: <NAME> <<EMAIL>> */\n\n/* The following are valid integer suffixes, according to C99:\n\n no suffix\n u or U\n ul, uL, Ul or UL\n ull, uLL, Ull or ULL\n l or L\n lu, lU, Lu or LU\n llu, llU, LLu or LLU\n\n The following are not b...
25
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.65, "nodes": 17, "errors": 0, "source_hash": "2951b0fbca54641247d2482fa6cc77d34d5205255587402239473b9eecf5e4f8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "unsigned lo...
10,724
c
// // ios_prefix.h // iVim // // Created by Terry on 7/21/17. // Copyright © 2017 Boogaloo. All rights reserved. // #ifndef ios_prefix_h #define ios_prefix_h #import <Availability.h> #import <TargetConditionals.h> #define OK 1 #define IVIM 1 #define HAVE_DIRENT_H 1 #define HAVE_STDARG_H 1 #define HAVE_OPENDIR 1 ...
22.34
35
(translation_unit) "//\n// ios_prefix.h\n// iVim\n//\n// Created by Terry on 7/21/17.\n// Copyright © 2017 Boogaloo. All rights reserved.\n//\n\n#ifndef ios_prefix_h\n#define ios_prefix_h\n\n#import <Availability.h>\n#import <TargetConditionals.h>\n\n#define OK 1\n#define IVIM 1\n#define HAVE_DIRENT_H 1\n#define HA...
149
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.34, "nodes": 122, "errors": 0, "source_hash": "6c6177f7a45f7bee794a57681c7b1b4c7b1a165ab4acbc6a01bfd55ecfe15339", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
10,725
c
// // DFUServerFirmwareInfo.h // iHealthSDKStatic // // Created by <NAME> on 2017/7/17. // Copyright © 2017年 daiqingquan. All rights reserved. // #import <Foundation/Foundation.h> #import "DFUMacro.h" @interface DFUServerFirmwareInfo : NSObject /** DFUDeviceType */ @property (assign, nonatomic, readonly) DFUDe...
26.58
36
(translation_unit) "//\n// DFUServerFirmwareInfo.h\n// iHealthSDKStatic\n//\n// Created by <NAME> on 2017/7/17.\n// Copyright © 2017年 daiqingquan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DFUMacro.h"\n\n@interface DFUServerFirmwareInfo : NSObject\n\n/**\n DFUDeviceType\n */\n@property...
174
28
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.58, "nodes": 120, "errors": 0, "source_hash": "e7be67ccb0de90ab10c0ac644917685f72b37ca475717b52a1f4caff7ac9ff9e", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
10,726
c
#ifndef __PSISBAN_WINDOW_H #define __PSISBAN_WINDOW_H #include <windows.h> #include "Events.h" class Window { public: /// Ctor Window(psisban::IEventHandler *ev) : eventHandler(ev) {} /// Creates an initially hidden window void create( char* title, int width, int height, int bit...
15.54
69
(translation_unit) "#ifndef __PSISBAN_WINDOW_H \n#define __PSISBAN_WINDOW_H \n \n#include <windows.h> \n#include "Events.h" \n \n \nclass Window { \npublic: \n \n/// Ctor \n \n Window(psisban::IEventHandler *ev) : eventHandler(ev) {} \n \n/// Creates an initially hidden window \n \n void create( \n char* title, \n ...
257
8
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 15.54, "nodes": 160, "errors": 0, "source_hash": "e1a32a026e533fa795a9401e34e8446fea64243d3af7bf32d6fb78f856c570f9", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,727
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_SLPodFrame_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SLPodFrame_TestsVersionString[];
39.5
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_SLPodFrame_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_SLPodFrame_TestsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaratio...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.5, "nodes": 15, "errors": 0, "source_hash": "2e8be5550f119003bec50d71a7d96e02270be9e2e30ac3bce99fb7e180d46b59", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
10,728
c
// // DotCountLabel.h // YJSliderView // // Created by Jake on 17/2/6. // Copyright © 2017年 Jake. All rights reserved. // #import <UIKit/UIKit.h> IB_DESIGNABLE @interface DotCountLabel : UILabel /** 字体大小 */ @property (nonatomic, assign) IBInspectable CGFloat fontWight;//默认 15 /** 红点显示数量 */ @property (nona...
20.85
27
(translation_unit) "//\n// DotCountLabel.h\n// YJSliderView\n//\n// Created by Jake on 17/2/6.\n// Copyright © 2017年 Jake. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n\nIB_DESIGNABLE\n@interface DotCountLabel : UILabel\n\n/**\n 字体大小\n */\n@property (nonatomic, assign) IBInspectable CGFloat fontWight;//...
108
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.85, "nodes": 67, "errors": 0, "source_hash": "139b5b959b115123f3434bcadcc6c15c8313ad56d1b08e8577c9675eca0bb3b7", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
10,729
c
#ifndef STDIO_H #define STDIO_H void putc(char c); char getc(void); void puts(const char *s); void gets(char *buf, int buflen); #endif
18.29
7
(translation_unit) "#ifndef STDIO_H\n#define STDIO_H\n\nvoid putc(char c);\nchar getc(void);\n\nvoid puts(const char *s);\n\nvoid gets(char *buf, int buflen);\n\n#endif\n" (preproc_ifdef) "#ifndef STDIO_H\n#define STDIO_H\n\nvoid putc(char c);\nchar getc(void);\n\nvoid puts(const char *s);\n\nvoid gets(char *buf, int...
61
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 18.29, "nodes": 45, "errors": 0, "source_hash": "91085cb2dc149f0155af71d77ccfb820631b0ea7e3b2f51efb37e003859294b7", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
10,730
c
#ifndef DETECTTCP_H #define DETECTTCP_H #include <string> #include <pcapwrapper/listeners/packagelistener.h> #include <pcapwrapper/network/packages/tcppackage.h> class DetectTCP : public PCAP::PackageListener<PCAP::TCPPackage> { public: void receive_package(PCAP::TCPPackage package) override; private: }; #...
29.73
11
(translation_unit) "#ifndef DETECTTCP_H\n#define DETECTTCP_H\n\n#include <string>\n\n#include <pcapwrapper/listeners/packagelistener.h>\n#include <pcapwrapper/network/packages/tcppackage.h>\n\nclass DetectTCP : public PCAP::PackageListener<PCAP::TCPPackage> {\n public:\n void receive_package(PCAP::TCPPackage packag...
65
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.73, "nodes": 38, "errors": 0, "source_hash": "8b57a1cfd2f783392295ba196284292181e17cc4838e0a0e4c8ad7935a0e529a", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,731
c
// SPDX-License-Identifier: GPL-3.0-only // This file is part of Jadette. // Copyright (C) 2020 <NAME> // Distributed under GNU General Public License v3.0 // See gpl-3.0.txt or <https://www.gnu.org/licenses/> #pragma once class Input; class View; // Control a view with input from the user. class View_controller {...
31.65
40
(translation_unit) "// SPDX-License-Identifier: GPL-3.0-only\n// This file is part of Jadette.\n// Copyright (C) 2020 <NAME>\n// Distributed under GNU General Public License v3.0\n// See gpl-3.0.txt or <https://www.gnu.org/licenses/>\n\n\n#pragma once\n\n\nclass Input;\nclass View;\n\n// Control a view with input from ...
261
13
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 31.65, "nodes": 154, "errors": 0, "source_hash": "f1813cef3e3c5062e22b1900fd32a8cd122f210fa1b1f73544f259a250683416", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,732
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface PFCameraMetadataSerialization : NSObject { } + (id)serializedDataFromClientMetadata:(id)arg1 error:(id *)arg2; + (id)deserializedMetadataFromData:(id)arg...
27.5
12
(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 "NSObject.h"\n\n@interface PFCameraMetadataSerialization : NSObject\n{\n}\n\n+ (id)serializedDataFromClientMetadata:(id)arg1 error:(id *)arg2;\n+ (id)des...
73
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.5, "nodes": 42, "errors": 0, "source_hash": "4077de3eb3cfac13eba0790eb27abc0041367bb976ec0e6b096009296b3ffe42", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
10,733
c
#ifndef AstFieldAccess_INCLUDED #define AstFieldAccess_INCLUDED #include "JCDT_Lib/internal/ast/ast_Pre_declaration.h" #include "JCDT_Lib/internal/ast/AstExpression.h" #include "JCDT_Lib/internal/ast/InvocationSite.h" namespace Jikes { // Open namespace Jikes block // // FieldAccess --> <DOT, Primary, ._token, Iden...
31.68
44
(ERROR) "#ifndef AstFieldAccess_INCLUDED\n#define AstFieldAccess_INCLUDED\n#include "JCDT_Lib/internal/ast/ast_Pre_declaration.h"\n#include "JCDT_Lib/internal/ast/AstExpression.h"\n#include "JCDT_Lib/internal/ast/InvocationSite.h"\nnamespace Jikes { // Open namespace Jikes block\n\n\n //\n // FieldAccess --> <DOT, Prim...
278
14
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.68, "nodes": 172, "errors": 0, "source_hash": "5f0f6abc81a7a30f0965139dc6edc865ed86cd7465528e73a36ae452ff9e74e3", "categorized_nodes": 111}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef AstFieldAccess_IN...
10,734
c
#ifndef _BPL_HEADERS_ #define _BPL_HEADERS_ #include <tndo_assert.h> typedef struct { unsigned char type, typeb; unsigned short w, h; unsigned short FILL; unsigned char data[1]; } t_bpl_head; // Data // 0 -> pal R G B //[256 * 3] -> bitplanes #define MODE_BPL (100) #define MODE_SPR4 (101) #define MODE_SPR1...
24.62
24
(translation_unit) "#ifndef _BPL_HEADERS_\n#define _BPL_HEADERS_\n\n#include <tndo_assert.h>\n\ntypedef struct {\n unsigned char type, typeb;\n unsigned short w, h;\n unsigned short FILL;\n unsigned char data[1];\n} t_bpl_head;\n\n// Data\n// 0 -> pal R G B\n//[256 * 3] -> bitplanes\n\n#define MODE_BPL (100)\n#defi...
196
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.62, "nodes": 136, "errors": 0, "source_hash": "f2c5c46150b8378b4a61c90d841bda8364cfc636a0a987c1c81b9e863390e94e", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,735
c
//seal.c #include <ansi.h> inherit ITEM; void create() { set_name("印鉴",({ "seal" }) ); set("long", "泛著黄光,上面刻著镇国大将军。\n"); set("unit", "颗"); set("base_weight", 200); set("no_sell", 1); }
17.55
11
(translation_unit) "//seal.c\n\n#include <ansi.h>\n\ninherit ITEM;\n\nvoid create()\n{\n set_name("印鉴",({ "seal" }) );\n set("long", "泛著黄光,上面刻著镇国大将军。\n");\n set("unit", "颗");\n set("base_weight", 200);\n\n set("no_sell", 1);\n}\n\n\n" (comment) "//seal.c" (preproc_include) "#include <ansi.h>\n" (#...
101
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.55, "nodes": 39, "errors": 0, "source_hash": "8ac7a0d3acc2062a5d48a594d0d15624805fbf64d07d298b077a0c1e62a9cc79", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,736
c
// This program is a part of NITAN MudLIB #include <ansi.h> string name() { return MAG "神光離合" NOR; } void remove_effect(object me); int perform(object me, object target) { string msg; if( !query("reborn/times", me) ) return notify_fail("你尚未轉世重生,無法施展" + name() + "。\n" NOR); ...
40.27
37
(translation_unit) "// This program is a part of NITAN MudLIB\n\n#include <ansi.h>\n\nstring name() { return MAG "神光離合" NOR; }\n\nvoid remove_effect(object me);\n\nint perform(object me, object target)\n{\n string msg;\n\n if( !query("reborn/times", me) )\n return notify_fail("你尚未轉世重生,無法施展"...
572
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.27, "nodes": 297, "errors": 0, "source_hash": "feccdc9e34e83742202f813e3b41cde37d1d40411c4b5c748356b2c05242c260", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,737
c
// // Created by abc84 on 2016/5/2. // #ifndef ZUMA_LIST_H #define ZUMA_LIST_H #include <search.h> #include "ListNode.h" typedef int Rank; template <typename T> class List { private: size_t size_; ListNode<T>*header; ListNode<T>*footer; void init();//init header,footer void clear(); public: Li...
22.72
111
(translation_unit) "//\n// Created by abc84 on 2016/5/2.\n//\n\n#ifndef ZUMA_LIST_H\n#define ZUMA_LIST_H\n\n#include <search.h>\n#include "ListNode.h"\ntypedef int Rank;\ntemplate <typename T>\nclass List {\nprivate:\n size_t size_;\n ListNode<T>*header;\n ListNode<T>*footer;\n void init();//init header,foo...
1,119
50
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 22.72, "nodes": 781, "errors": 0, "source_hash": "521b1c0de4dda5d7dbfa54e2880567d0624f5795ec33b9ff9594872eb9a36b9e", "categorized_nodes": 513}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,738
c
/* -Procedure dvcrss_c ( Derivative of Vector cross product ) -Abstract Compute the cross product of two 3-dimensional vectors and the derivative of this cross product. -Disclaimer THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S. ...
30.16
152
(translation_unit) "/*\n\n-Procedure dvcrss_c ( Derivative of Vector cross product )\n\n-Abstract\n\n Compute the cross product of two 3-dimensional vectors \n and the derivative of this cross product. \n\n-Disclaimer\n \n THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE \n CALIFORNIA INSTITUTE OF TE...
172
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 30.16, "nodes": 88, "errors": 0, "source_hash": "48646abf9463e899b7db6f66cb3c5c976ca622c73e37455db7391c9351c17161", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,739
c
#include <sqlrelay/sqlrclientwrapper.h> #include <stdio.h> main() { ... get rs, port and socket from previous page ... sqlrcon con=sqlrcon_alloc("sqlrserver",9000,"/tmp/example.socket","user","password",0,1); sqlrcur cur=sqlrcur_alloc(con); sqlrcon_resumeSession(con,port,so...
36.46
13
(translation_unit) "#include <sqlrelay/sqlrclientwrapper.h>\n#include <stdio.h>\n\nmain() {\n\n ... get rs, port and socket from previous page ...\n\n sqlrcon con=sqlrcon_alloc("sqlrserver",9000,"/tmp/example.socket","user","password",0,1);\n sqlrcur cur=sqlrcur_alloc(con);\n\n sql...
135
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.46, "nodes": 70, "errors": 0, "source_hash": "4afc0f541b64b225ca2c49941f247281ec2f9eff8befd4ad62e61ae70428484c", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,740
c
#ifndef CMAKEWRITER_H #define CMAKEWRITER_H class CmakeFile; namespace CmakeWriter { void write(const CmakeFile& file); } #endif
17.43
7
(translation_unit) "#ifndef CMAKEWRITER_H\n#define CMAKEWRITER_H\n\nclass CmakeFile;\nnamespace CmakeWriter {\nvoid write(const CmakeFile& file);\n}\n\n#endif" (preproc_ifdef) "#ifndef CMAKEWRITER_H\n#define CMAKEWRITER_H\n\nclass CmakeFile;\nnamespace CmakeWriter {\nvoid write(const CmakeFile& file);\n}\n\n#endif" ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.43, "nodes": 20, "errors": 0, "source_hash": "36d2ca843ccfe56d6305f143e56ad501fb20273cd9fe7716272590ae7cd174e4", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
10,741
c
/* C U R V E T R E E . H * BRL-CAD * * Copyright (c) 2004-2021 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2...
34.76
107
(translation_unit) "/* C U R V E T R E E . H\n * BRL-CAD\n *\n * Copyright (c) 2004-2021 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General ...
786
56
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 34.76, "nodes": 443, "errors": 0, "source_hash": "102a46ef2ff1c1338a4f20634bfef2efa7650834344ba5c5049e1288aa1fd35e", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,742
c
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
24.14
200
(ERROR) "/*\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions th...
1,337
29
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 24.14, "nodes": 764, "errors": 0, "source_hash": "6d9558b31614e42dd774d1bd6b6e7942fa423a11b8a5e0be9f3290f67293eb8c", "categorized_nodes": 537}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\nThis is free and une...
10,743
c
// // BPushClass.h // BPush // // Created by wangweixin on 14-5-21. // Copyright (c) 2014年 baidu. All rights reserved. // #import <Foundation/Foundation.h> @interface BPushClass : NSObject + (Class) Base64; + (Class) GzipCompressor; + (Class) OpenUDID; @end
19.15
13
(translation_unit) "//\n// BPushClass.h\n// BPush\n//\n// Created by wangweixin on 14-5-21.\n// Copyright (c) 2014年 baidu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BPushClass : NSObject\n\n+ (Class) Base64;\n\n+ (Class) GzipCompressor;\n\n+ (Class) OpenUDID;\n\n@end\n" (comment)...
52
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.15, "nodes": 26, "errors": 0, "source_hash": "120f0daa4023f86289bf0482c34b5122250e1d24ea896fc5c2a6d33a9e510019", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
10,744
c
#ifndef EFFECTMANAGER_H #define EFFECTMANAGER_H #include "NeoPixelEffect.h" #include "NeoPixelStrip.h" class EffectManager { public: const uint8_t EFFECT_OFF = 0x0; const uint8_t EFFECT_SOLID = 0x01; const uint8_t EFFECT_SOLID2 = 0x02; const uint8_t EFFECT_SOLID3 = 0x03; const uint8_t EFFECT_CYLO...
26.36
25
(translation_unit) "#ifndef EFFECTMANAGER_H\n#define EFFECTMANAGER_H\n\n#include "NeoPixelEffect.h"\n#include "NeoPixelStrip.h"\n\nclass EffectManager {\npublic:\n\n const uint8_t EFFECT_OFF = 0x0;\n const uint8_t EFFECT_SOLID = 0x01;\n const uint8_t EFFECT_SOLID2 = 0x02;\n const uint8_t EFFECT_SOLID3 = 0x0...
174
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.36, "nodes": 113, "errors": 0, "source_hash": "fb53d8677d874812f10f01158066deb745ed6c83fc23959894f597f1e7168de3", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,745
c
// // BucketSort.h // Sorting // // Created by <NAME> on 5/13/16. // Copyright © 2016 Pxlim. All rights reserved. // #import <Foundation/Foundation.h> #import "Sort.h" @interface BucketSort : Sort @end
17.73
11
(translation_unit) "//\n// BucketSort.h\n// Sorting\n//\n// Created by <NAME> on 5/13/16.\n// Copyright © 2016 Pxlim. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Sort.h"\n@interface BucketSort : Sort\n\n@end\n" (comment) "//" (comment) "// BucketSort.h" (comment) "// Sorting" (...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.73, "nodes": 11, "errors": 0, "source_hash": "4b8cafb01abc26b3d247eb2f67e8e4124e5d6bbd156f64062fb77cada7bc68f8", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
10,746
c
#pragma once #include "GusUtils.h" using namespace GustyUtils; namespace Serpents { class BodyPart; // // Clasa ce va defini bucatelele de traiectorie pe care va merge serpentul. // class PathStrip { public: // // Constructor default. // PathStrip(); // // Constructor uzual. // PathStrip...
28.1
90
(translation_unit) "#pragma once\n\n#include "GusUtils.h"\nusing namespace GustyUtils;\n\nnamespace Serpents\n{\n\n class BodyPart;\n\n //\n // Clasa ce va defini bucatelele de traiectorie pe care va merge serpentul.\n //\n\n class PathStrip\n {\n public:\n\n //\n // Constructor default.\n //\n\n PathStrip();\n\n ...
384
14
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 28.1, "nodes": 204, "errors": 0, "source_hash": "ccae8f39d8f0eb654bf43293657a109211617975489611d8e5d4c2353f69aae9", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,747
c
/* * Copyright (c) 2016 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_ #define ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_ #include <offsets.h> #include <offsets_short_arch.h> /* kernel */ /* main */ #ifndef CONFIG_SMP /* Relies on _kernel.cpu being...
36
51
(translation_unit) "/*\n * Copyright (c) 2016 Wind River Systems, Inc.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#ifndef ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_\n#define ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_\n\n#include <offsets.h>\n#include <offsets_short_arch.h>\n\n/* kernel */\n\n/* main */\n#ifndef CONFIG...
94
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.0, "nodes": 81, "errors": 0, "source_hash": "06651b0d82ac6c7074cdf4dc7145f63be76b434549ad061c6f966760b728e4ae", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Z...
10,748
c
/* ** EPITECH PROJECT, 2021 ** handle_direction.c ** File description: ** handle direction */ #include "n4s.h" int exec_direction(char *val, float num) { char *buff = NULL; size_t len = 0; int ret = 0; my_putstr("wheels_dir:"); if (num < 0.0) my_putchar('-'); my_printf("%s\n", val); ...
23.12
43
(translation_unit) "/*\n** EPITECH PROJECT, 2021\n** handle_direction.c\n** File description:\n** handle direction\n*/\n\n#include "n4s.h"\n\nint exec_direction(char *val, float num)\n{\n char *buff = NULL;\n size_t len = 0;\n int ret = 0;\n\n my_putstr("wheels_dir:");\n if (num < 0.0)\n my_putcha...
387
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.12, "nodes": 233, "errors": 0, "source_hash": "128f6c86b35a06572b6cff27c03756a356ba82112857ded90f4862e11dc9ca79", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,749
c
// // TSAppDelegate.h // test // // Created by leon on 06/21/2020. // Copyright (c) 2020 leon. All rights reserved. // @import UIKit; @interface TSAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
22.09
11
(translation_unit) "//\n// TSAppDelegate.h\n// test\n//\n// Created by leon on 06/21/2020.\n// Copyright (c) 2020 leon. All rights reserved.\n//\n\n@import UIKit;\n\n@interface TSAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment) "//" (comme...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.09, "nodes": 26, "errors": 0, "source_hash": "768a94ac6bfa48b262920e5c670da7fe68d39753f28ca0b950c6d8f359b78ff6", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
10,750
c
#ifndef INCLUDE_BRAINFUCK_H #define INCLUDE_BRAINFUCK_H #define BF_TOKEN_LOOP_START '[' #define BF_TOKEN_LOOP_END ']' #define BF_TOKEN_DATA_INCREMENT '+' #define BF_TOKEN_DATA_DECREMENT '-' #define BF_TOKEN_PTR_INCREMENT '>' #define BF_TOKEN_PTR_DECREMENT '<' #define BF_TOKEN_OUTPUT '.' #define BF...
26.34
38
(translation_unit) "#ifndef INCLUDE_BRAINFUCK_H\n#define INCLUDE_BRAINFUCK_H\n\n\n#define BF_TOKEN_LOOP_START '['\n#define BF_TOKEN_LOOP_END ']'\n#define BF_TOKEN_DATA_INCREMENT '+'\n#define BF_TOKEN_DATA_DECREMENT '-'\n#define BF_TOKEN_PTR_INCREMENT '>'\n#define BF_TOKEN_PTR_DECREMENT '<'\n#define BF_TOKEN...
229
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.34, "nodes": 178, "errors": 0, "source_hash": "d6256e4671dea0c33109974243d08a130e2b0120fb59f06ab94e7568ccf4a8d2", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,751
c
// SPDX-FileCopyrightText: 2014 defragger <<EMAIL>> // SPDX-License-Identifier: LGPL-3.0-only /* For handling parsing xml from gdbserver */ #ifndef GDBCLIENT_XML_H #define GDBCLIENT_XML_H #include "libgdbr.h" int gdbr_read_target_xml(libgdbr_t *g); int gdbr_read_processes_xml(libgdbr_t *g, int pid, RzList *list); ...
36.89
9
(translation_unit) "// SPDX-FileCopyrightText: 2014 defragger <<EMAIL>>\n// SPDX-License-Identifier: LGPL-3.0-only\n\n/* For handling parsing xml from gdbserver */\n\n#ifndef GDBCLIENT_XML_H\n#define GDBCLIENT_XML_H\n\n#include "libgdbr.h"\n\nint gdbr_read_target_xml(libgdbr_t *g);\nint gdbr_read_processes_xml(libgdbr_...
54
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.89, "nodes": 38, "errors": 0, "source_hash": "34b45ec2c5ac0e952da4b5144a58acb09b00389f6ce2e8fbf3c44445f31ebe4e", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
10,752
c
#include "jdp.h" void eTimerInit() { // start value ETIMER_0.CHANNEL[0].LOAD.R = 0; // end value //ETIMER_0.CHANNEL[0].CNTR.R = 16000000; ETIMER_0.CHANNEL[0].COMP1.R = 0xFFFF; ETIMER_0.CHANNEL[0].COMP2.R = 0xFFFF; // count rising edges ETIMER_0.CHANNEL[0].CTRL.B.CNTMODE = 1; // so...
29.94
34
(translation_unit) "#include "jdp.h" \n\nvoid eTimerInit()\n{\n // start value\n ETIMER_0.CHANNEL[0].LOAD.R = 0;\n // end value\n //ETIMER_0.CHANNEL[0].CNTR.R = 16000000;\n ETIMER_0.CHANNEL[0].COMP1.R = 0xFFFF;\n ETIMER_0.CHANNEL[0].COMP2.R = 0xFFFF;\n\n // count rising edges\n ETIMER_0.CHANNEL[...
372
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.94, "nodes": 226, "errors": 0, "source_hash": "f1d2e00a66b778d4461225f1059366794d5c8943e750fb59bb5fd3dad4c500a8", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,753
c
#ifndef GEOMETRY_H #define GEOMETRY_H #include <cmath> #include <vector> #include "clipper.hpp" #define EPSILON 0.0001 /** * Contains two coordinates on different axises, often referred to as x and y. */ class Point{ public: double x,//! \var The coordinate of the Point on the "x" axis ...
29.75
229
(translation_unit) "#ifndef GEOMETRY_H\n#define GEOMETRY_H\n#include <cmath>\n#include <vector>\n#include "clipper.hpp"\n#define EPSILON 0.0001\n/**\n * Contains two coordinates on different axises, often referred to as x and y.\n */\nclass Point{\n public:\n \n double x,//! \var The coordinate of the ...
1,206
84
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 29.75, "nodes": 634, "errors": 0, "source_hash": "b19802da1c34c5d56ff124ed386917843adb98e1e2f4e91cb950542952bf5879", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,754
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/Asset/AssetCommon.h> #include <AzCore/Memory/Memory.h> #include <Az...
47.34
76
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#include <AzCore/Asset/AssetCommon.h>\n#include <AzCor...
636
36
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 47.34, "nodes": 354, "errors": 0, "source_hash": "779d3cd506b98b491441cd65cdfb68470f26c68a618fee18aa27930112dd9de4", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,755
c
/* Copyright (C) 2015, David "Davee" Morgan 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, dist...
33.72
60
(translation_unit) "/*\n\nCopyright (C) 2015, David "Davee" Morgan\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the "Software"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, m...
301
9
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.72, "nodes": 200, "errors": 0, "source_hash": "273892297e522c03a10f29ade309be6b297eaff15375909925576a2bcb3b12da", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,756
c
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. ...
29.41
278
(translation_unit) "/* -*- mode:C++; c-basic-offset:4 -*-\n Shore-kits -- Benchmark implementations for Shore-MT\n \n Copyright (c) 2007-2009\n Data Intensive Applications and Systems Labaratory (DIAS)\n Ecole Polytechnique Federale de Lausanne\n \n ...
1,684
44
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 29.41, "nodes": 957, "errors": 0, "source_hash": "c008447c040e62f7760e725d8729509d7bdb416a2220f048c237289569845894", "categorized_nodes": 654}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,757
c
#ifndef USER_H #define USER_H using namespace std; #include <string> class User { protected: string name; // Nome string surname; // Cognome string address; // Indirizzo string telephone; // Numero di telefono (string perchè quando un numero inizia per 0 se è intero viene tolto) ...
29.95
37
(translation_unit) "#ifndef USER_H\n#define USER_H\n\nusing namespace std;\n#include <string>\n\nclass User {\n\nprotected:\n string name; // Nome\n string surname; // Cognome\n string address; // Indirizzo\n string telephone; // Numero di telefono (string perchè quando un numero inizia per...
277
13
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.95, "nodes": 163, "errors": 0, "source_hash": "3b77ac05f635c0b1febac151aa00a95ccce71be6863b0f4d61ea238ac3621334", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,758
c
#pragma once #include <raccoon-ecs/system.h> #include "GameData/EcsDefinitions.h" class SpatialWorldData; class WorldHolder; struct Vector2D; class TestSpawnShootableUnitsSystem : public RaccoonEcs::System { public: TestSpawnShootableUnitsSystem(WorldHolder& worldHolder) noexcept; void update() override; privat...
36.46
24
(translation_unit) "#pragma once\n\n#include <raccoon-ecs/system.h>\n\n#include "GameData/EcsDefinitions.h"\n\nclass SpatialWorldData;\nclass WorldHolder;\nstruct Vector2D;\n\nclass TestSpawnShootableUnitsSystem : public RaccoonEcs::System\n{\npublic:\n TestSpawnShootableUnitsSystem(WorldHolder& worldHolder) noexcept;\...
231
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.46, "nodes": 132, "errors": 0, "source_hash": "7ab90407299a76581ccbf18e05f1de7329094558b4a0a6e9605c91631594e93d", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,759
c
// Copyright (c) 2013 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 COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ #define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ #include <memory> #include <string> #inclu...
35.39
70
(translation_unit) "// Copyright (c) 2013 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 COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_\n#define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_\n\n#include <memory...
451
19
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 35.39, "nodes": 269, "errors": 0, "source_hash": "2d45bb040aec668a1a9bf5f4960c2b50c955a70110fb2ca423e9c75ca033a080", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,760
c
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */ extern void dynreplace_trampoline(void); extern void dynreplace_trampoline_endlabel(void); int dynreplace_add_trampoline(void) { unsigned long trampoline_code[(((unsigned long) (&(dynreplace_trampoline_endlabel)) -(unsigned long) (&dynreplace_trampo...
32.3
10
(translation_unit) "/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */\nextern void dynreplace_trampoline(void);\nextern void dynreplace_trampoline_endlabel(void);\nint dynreplace_add_trampoline(void)\n{\n unsigned long trampoline_code[(((unsigned long)\n(&(dynreplace_trampoline_endlabel))\n-(unsigne...
84
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.3, "nodes": 52, "errors": 0, "source_hash": "731095b857bac56155fd5a7d1aa7edaad769f989346124b52d73bc67abc004cd", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern void...
10,761
c
// // ContractCallRequest.h // sdk-ios // // Created by dxl on 2018/8/14. // Copyright © 2018 dxl. All rights reserved. // #import <Foundation/Foundation.h> @interface ContractCallRequest : NSObject { @private NSString *_sourceAddress; NSString *_contractAddress; NSString *_code; NSString *_input;...
27.39
36
(translation_unit) "//\n// ContractCallRequest.h\n// sdk-ios\n//\n// Created by dxl on 2018/8/14.\n// Copyright © 2018 dxl. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ContractCallRequest : NSObject {\n@private\n NSString *_sourceAddress;\n NSString *_contractAddress;\n NSSt...
324
23
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.39, "nodes": 195, "errors": 0, "source_hash": "ed9c5954637b56f01fe84b1e8384b2c6ba656b2b2d6727229cb3dcf6c7f85ba7", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
10,762
c
/* A small implementation of the runtime used by the code generated by the kernel_load_store and isolate_statement */ #include <stddef.h> /* To copy scalars */ void P4A_copy_from_accel(size_t element_size, void *host_address, void *accel_address) { size_t i; char * cdest = host_address; char * csrc =...
28.88
92
(translation_unit) "/* A small implementation of the runtime used by the code generated by the\n kernel_load_store and isolate_statement\n*/\n#include <stddef.h>\n\n\n/* To copy scalars */\nvoid P4A_copy_from_accel(size_t element_size,\n void *host_address,\n void *accel_address) {\n size_t i;\n char * cdest ...
788
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 28.88, "nodes": 584, "errors": 0, "source_hash": "8ff807cfce480cf3d70f76d69c01d5cb7ec2ce638db4be2e97cb4443b6356d58", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,763
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_itow.c :+: :+: :+: ...
30.28
85
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_itow.c ...
635
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 30.28, "nodes": 384, "errors": 0, "source_hash": "e04477f5ba92ec3937dd408eae53adbbb7e555314549ad3fae32d868f5a2f354", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,764
c
#include <stdio.h> #include <math.h> #define X 5 int main() { int num, bit[X], i, j; scanf("%d", &num); if ( num <= 0 || num > pow(10, X)) printf("Error. \n"); else { for (i=0; num > 0; i++) { bit[i] = num%10; num /= 10; } for (j = 0;...
18.19
21
(translation_unit) "#include <stdio.h>\n#include <math.h>\n#define X 5\nint main()\n{\n int num, bit[X], i, j;\n\n scanf("%d", &num);\n if ( num <= 0 || num > pow(10, X))\n printf("Error. \n");\n else \n {\n for (i=0; num > 0; i++)\n {\n bit[i] = num%10;\n num /...
169
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.19, "nodes": 99, "errors": 0, "source_hash": "7e03b340592c5853c46343ddb541be48965e5673ddb309516f1497c15e33213c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,765
c
#ifndef LIBWFA_MOM_BUILDER_H #define LIBWFA_MOM_BUILDER_H #include "mom_builder_i.h" namespace libwfa { /** \brief Simple implementation of mom_builder_i \ingroup libwfa **/ class mom_builder : public mom_builder_i { private: const arma::mat &m_s; //!< Overlap matrix (zero-th moment) const arma::mat &...
38.58
52
(translation_unit) "#ifndef LIBWFA_MOM_BUILDER_H\n#define LIBWFA_MOM_BUILDER_H\n\n#include "mom_builder_i.h"\n\nnamespace libwfa {\n\n/** \brief Simple implementation of mom_builder_i\n\n \ingroup libwfa\n **/\nclass mom_builder : public mom_builder_i {\nprivate:\n const arma::mat &m_s; //!< Overlap matrix (zero...
411
25
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 38.58, "nodes": 203, "errors": 0, "source_hash": "7674096ab4aa4564b5a2deaaa3b4eb2b8adafa760d192dd02865c7491e350768", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,766
c
#ifndef _HTTP_RESPONSEDECODER_H_ #define _HTTP_RESPONSEDECODER_H_ #include <memory> #include "HttpResponse.h" #include "HttpMessageDecoder.h" namespace HTTP { /** * The ResponseDecoder converts a stream of std::string to a stream of HTTP::Response. */ class ResponseDecoder : public MessageDecoder<Response> { pub...
21.28
29
(translation_unit) "#ifndef _HTTP_RESPONSEDECODER_H_\n#define _HTTP_RESPONSEDECODER_H_\n\n#include <memory>\n#include "HttpResponse.h"\n#include "HttpMessageDecoder.h"\n\nnamespace HTTP {\n\n/**\n * The ResponseDecoder converts a stream of std::string to a stream of HTTP::Response.\n */\nclass ResponseDecoder : public ...
90
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.28, "nodes": 48, "errors": 0, "source_hash": "c84635d26161faad758beb96e75a730164d064d3a8712554b749e2ce56f62158", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,767
c
#pragma once /* * Note: Only use this class within the SimpleDBus, as some internal name choices might * generate conflicts with other libraries. */ #include <mutex> #include <string> namespace SimpleDBus { class Logger { public: typedef enum { NONE = 0, FATAL, ERROR, WARN, ...
34.58
45
(translation_unit) "#pragma once\n\n/*\n * Note: Only use this class within the SimpleDBus, as some internal name choices might\n * generate conflicts with other libraries.\n */\n\n#include <mutex>\n#include <string>\n\nnamespace SimpleDBus {\n\nclass Logger {\n public:\n typedef enum {\n NONE = 0,\n ...
347
12
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.58, "nodes": 198, "errors": 0, "source_hash": "b483fb0122d9e892b846f34f229f8bf1ba57cb7cb80ee9faa6ae66dc65107c42", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,768
c
/* * Code taken from the Haskell "clock" package. * * Copyright (c) 2009-2012, <NAME> * Copyright (c) 2010, <NAME> * * OS X code was contributed by <NAME> on 2013-10-15. */ #ifdef __MACH__ #include <time.h> #include <mach/clock.h> #include <mach/mach.h> void clock_gettime_darwin(clock_id_t clock, struct timesp...
28.72
32
(translation_unit) "/*\n * Code taken from the Haskell "clock" package.\n *\n * Copyright (c) 2009-2012, <NAME>\n * Copyright (c) 2010, <NAME>\n *\n * OS X code was contributed by <NAME> on 2013-10-15.\n */\n\n#ifdef __MACH__\n#include <time.h>\n#include <mach/clock.h>\n#include <mach/mach.h>\n\nvoid clock_gettime_darw...
200
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 28.72, "nodes": 123, "errors": 0, "source_hash": "0fa44d00bd8bd8fcbc3f16ca93286cce192abb75d46760227ef865006c953045", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
10,769
c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp.h> static double fun(double x) { return x + cos(x * x); } int main(void) { const double a = 1.0; const double b = 10.0; const int steps = 10; double xi, yi, x[10...
30.68
56
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <math.h>\n#include <gsl/gsl_errno.h>\n#include <gsl/gsl_spline.h>\n#include <gsl/gsl_interp.h>\n\nstatic double fun(double x) {\n return x + cos(x * x);\n}\n\nint main(void) {\n const double a = 1.0;\n const double b = 10.0;\n const int s...
536
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 30.68, "nodes": 317, "errors": 0, "source_hash": "fe88fd503726627520b2784045e06813e28f432a4a7aee7934e8436c02b934f6", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,770
c
// // FlashServiceOrderListViewController.h // KidsTC // // Created by zhanping on 8/18/16. // Copyright © 2016 詹平. All rights reserved. // #import "ViewController.h" extern NSString *const FlashServiceOrderListCellCountDownNoti; @interface FlashServiceOrderListViewController : ViewController @end
26.55
11
(translation_unit) "//\n// FlashServiceOrderListViewController.h\n// KidsTC\n//\n// Created by zhanping on 8/18/16.\n// Copyright © 2016 詹平. All rights reserved.\n//\n\n#import "ViewController.h"\n\nextern NSString *const FlashServiceOrderListCellCountDownNoti;\n\n@interface FlashServiceOrderListViewController : Vi...
29
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.55, "nodes": 18, "errors": 0, "source_hash": "704eedb206cd6cc416329cdb3ea1bd361698a7bb5f3efe833787a5c5f832cfe4", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt \"View...
10,771
c
/** @defgroup MleParts Magic Lantern Parts */ /** * @file 3dgeomrm.h * @ingroup MleParts * * This file defines the class for a 3D Geometry Registry Media Reference * targeting the BRender platform. * * @author <NAME> * @date May 1, 2003 */ // COPYRIGHT_BEGIN // // Copyright (C) 2000-2007 Wizzer Works // //...
33.59
69
(translation_unit) "/** @defgroup MleParts Magic Lantern Parts */\n\n/**\n * @file 3dgeomrm.h\n * @ingroup MleParts\n *\n * This file defines the class for a 3D Geometry Registry Media Reference\n * targeting the BRender platform.\n *\n * @author <NAME>\n * @date May 1, 2003\n */\n\n// COPYRIGHT_BEGIN\n//\n// Copyrigh...
388
4
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.59, "nodes": 258, "errors": 0, "source_hash": "9603be4ffd5372214c8baaaec06823211dc7bc444a252c3a1712dc603d29b71f", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,772
c
/*========================================================================= Program: The OpenIGTLink Library Language: C Web page: http://openigtlink.org/ Copyright (c) Insight Software Consortium. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warran...
43.02
56
(translation_unit) "/*=========================================================================\n\n Program: The OpenIGTLink Library\n Language: C\n Web page: http://openigtlink.org/\n\n Copyright (c) Insight Software Consortium. All rights reserved.\n\n This software is distributed WITHOUT ANY WARRANTY; witho...
174
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 43.02, "nodes": 129, "errors": 0, "source_hash": "f3e0c38e313ea11f61b1c69bad07b1a44656440010d8d6f6e083fd96cd988904", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,773
c
#ifndef _BC_ANALOG_SENSOR_H #define _BC_ANALOG_SENSOR_H #include <bc_adc.h> #include <bc_scheduler.h> //! @addtogroup bc_analog_sensor bc_analog_sensor //! @brief Driver for generic analog sensor //! @{ //! @brief Callback events typedef enum { //! @brief Error event BC_ANALOG_SENSOR_EVENT_ERROR = 0, /...
37.86
81
(translation_unit) "#ifndef _BC_ANALOG_SENSOR_H\n#define _BC_ANALOG_SENSOR_H\n\n#include <bc_adc.h>\n#include <bc_scheduler.h>\n\n//! @addtogroup bc_analog_sensor bc_analog_sensor\n//! @brief Driver for generic analog sensor\n//! @{\n\n//! @brief Callback events\n\ntypedef enum\n{\n //! @brief Error event\n BC_AN...
390
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 37.86, "nodes": 263, "errors": 0, "source_hash": "580b10ed56e225f270f5790f667f6236446f278913cfe4746efe896acd9ae136", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,774
c
#include <string.h> #include "core/image.h" #include "core/asset.h" #include "core/targa.h" #include "core/logerr.h" #include <core/video.h> #include <memtrack.h> extern SDL_Surface* upload_surface(const char *name) { const char *ext = strrchr(name, '.'); if (ext == NULL) return NULL; if (strcmp(...
35.94
112
(translation_unit) "#include <string.h>\n#include "core/image.h"\n#include "core/asset.h"\n#include "core/targa.h"\n#include "core/logerr.h"\n#include <core/video.h>\n#include <memtrack.h>\n\nextern SDL_Surface*\nupload_surface(const char *name) {\n const char *ext = strrchr(name, '.');\n\n if (ext == NULL)\n ...
1,320
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 35.94, "nodes": 904, "errors": 0, "source_hash": "24d9ab53c92b786c3737bb025158bf8a9cd9e3ed80a5b41bdc996f8b1a9180b9", "categorized_nodes": 630}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,775
c
#pragma once #include <SFML/Graphics.hpp> class Timer { public: static void SetTimer(unsigned long time); static void SetConstTimer(unsigned long cTime); static unsigned long GetConstTimer() { return m_constTime; }; static void Update(const long dt); static void SetRunning(bool isRunning); static bool m_isRunni...
27.8
20
(translation_unit) "#pragma once\n#include <SFML/Graphics.hpp>\n\nclass Timer\n{\npublic:\n static void SetTimer(unsigned long time);\n static void SetConstTimer(unsigned long cTime);\n static unsigned long GetConstTimer() { return m_constTime; };\n\n static void Update(const long dt);\n static void SetRunning(bool isR...
186
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.8, "nodes": 102, "errors": 0, "source_hash": "8e518c8db2816f3d8c02eaa0a0e11588bce7c8761af95d9fe3f294773bcbd060", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,776
c
#define HTU21D_Default_Address 0x40 //Unshifted 7-bit I2C address for the sensor #define Error_I2c_Timeout 998 #define Error_Bad_Crc 999 #define Trigger_Temp_Measure_Hold 0xE3 #define Trigger_Humd_Measure_Hold 0xE5 #define Trigger_Temp_Measure_Nohold 0xF3 #define Trigger_Humd_Measure_Nohold 0xF5 #defi...
26.45
44
(translation_unit) "#define HTU21D_Default_Address 0x40 //Unshifted 7-bit I2C address for the sensor \n \n#define Error_I2c_Timeout 998 \n#define Error_Bad_Crc 999 \n \n#define Trigger_Temp_Measure_Hold 0xE3 \n#define Trigger_Humd_Measure_Hold 0xE5 \n#define Trigger_Temp_Measure_Nohold 0xF3 \n#define Trigger_Humd...
192
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.45, "nodes": 145, "errors": 0, "source_hash": "64faa3a942472de54df7f11a396783ad93f3d9caefba653940099dd730ecafd9", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define H...
10,777
c
// play a sequence to a midi stream void seq2midi(Alg_seq &seq, PortMidiStream *midi); // open a stream, play a sequence, close the stream void seq_play(Alg_seq &seq);
33.6
5
(translation_unit) "// play a sequence to a midi stream \nvoid seq2midi(Alg_seq &seq, PortMidiStream *midi); \n \n// open a stream, play a sequence, close the stream \nvoid seq_play(Alg_seq &seq); \n" (comment) "// play a sequence to a midi stream " (declaration) "void seq2midi(Alg_seq &seq, PortMidiStream *midi);"...
35
2
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 33.6, "nodes": 21, "errors": 0, "source_hash": "246effbf87e711482e52837bdefdd4cb9fc8a3ccb2ac77192307dde4a667b834", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void seq2mid...
10,778
c
// // NSString+Encoding.h // SGTToolSDK // // Created by 邵广涛 on 2018/9/26. // Copyright © 2018年 SGT. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Encoding) - (NSString *)URLEncode; - (NSString *)URLDecode; - (NSString *)Base64Encode; - (NSString *)MD5Encode; - (NSString *)SHA1En...
29.4
20
(translation_unit) "//\n// NSString+Encoding.h\n// SGTToolSDK\n//\n// Created by 邵广涛 on 2018/9/26.\n// Copyright © 2018年 SGT. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (Encoding)\n\n- (NSString *)URLEncode;\n- (NSString *)URLDecode;\n- (NSString *)Base64Encode;\n- (NSStrin...
217
24
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.4, "nodes": 144, "errors": 0, "source_hash": "02ea31220f1162dad4d7e22b2160ddcd9a0a803152a3ce6fcf81a215b89f4901", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
10,779
c
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #ifndef PBRT_NET_HTTP_RESPONSE_H #define PBRT_NET_HTTP_RESPONSE_H #include <memory> #include "http_message.h" #include "body_parser.h" #include "http_request.h" class HTTPResponse : public HTTPMessage { private: HTTPRequest request_ {...
33.7
23
(translation_unit) "/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */\n\n#ifndef PBRT_NET_HTTP_RESPONSE_H\n#define PBRT_NET_HTTP_RESPONSE_H\n\n#include <memory>\n\n#include "http_message.h"\n#include "body_parser.h"\n#include "http_request.h"\n\nclass HTTPResponse : public HTTPMessage\n{\npr...
170
12
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.7, "nodes": 88, "errors": 0, "source_hash": "0f9ef58a7c0f41b2aa896bf08b89d6408bbab8bd6c3c9998d25116e67c5ebfc3", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PBRT_NET_...
10,780
c
/* Copyright 2018 <NAME>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
23.78
77
(translation_unit) "/*\n Copyright 2018 <NAME>.\n \n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applic...
613
46
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 23.78, "nodes": 365, "errors": 0, "source_hash": "74824a5f43f3cdd2eed256cd027b6516d9d82318280516ce9723a81f5256e670", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,781
c
// // XYSubtitleParser.h // LGIJKPlayerDemo // // Created by wuxiaoyuan on 2019/8/14. // Copyright © 2019 lange. All rights reserved. // #import <Foundation/Foundation.h> @interface XYSubtitleParser : NSObject + (XYSubtitleParser *)parser; - (NSDictionary *)parseLrc:(NSString *)lrc; - (NSDictionary *)parseSrt:...
23.14
14
(translation_unit) "//\n// XYSubtitleParser.h\n// LGIJKPlayerDemo\n//\n// Created by wuxiaoyuan on 2019/8/14.\n// Copyright © 2019 lange. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface XYSubtitleParser : NSObject\n+ (XYSubtitleParser *)parser;\n\n- (NSDictionary *)parseLrc:(NSString *...
73
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.14, "nodes": 39, "errors": 0, "source_hash": "3fb44f829948e3fa687f1f394122041884d52dadfc07ffe67244b34152d1d6c1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
10,782
c
#import "NTLNStatus.h" #import "NTLNTwitterClient.h" @class NTLNTimeline; @protocol NTLNTimelineDelegate - (void)timeline:(NTLNTimeline*)timeline requestForPage:(int)page since_id:(NSString*)since_id; - (void)timeline:(NTLNTimeline*)timeline clientBegin:(NTLNTwitterClient*)client; - (void)timeline:(NTLNTimeline*)time...
36.6
52
(translation_unit) "#import "NTLNStatus.h"\n#import "NTLNTwitterClient.h"\n\n@class NTLNTimeline;\n\n@protocol NTLNTimelineDelegate\n- (void)timeline:(NTLNTimeline*)timeline requestForPage:(int)page since_id:(NSString*)since_id;\n- (void)timeline:(NTLNTimeline*)timeline clientBegin:(NTLNTwitterClient*)client;\n- (void)...
635
64
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 36.6, "nodes": 418, "errors": 0, "source_hash": "7d87f265a6a70410d56d7ebfeb2e931d5acd860521a66f8ca0817ee0b37a975e", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,783
c
/* * Copyright (C) 2014 <NAME> <<EMAIL>> * * This file is part of oclcrypto. * * 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 ...
30.87
63
(translation_unit) "/*\n * Copyright (C) 2014 <NAME> <<EMAIL>>\n *\n * This file is part of oclcrypto.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including...
178
6
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.87, "nodes": 112, "errors": 0, "source_hash": "18fa376503a0dd2c5197ac88021bdefcc60501d9ea043c6a9cb60942aa3cf519", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,784
c
#ifndef SHARE_H #define SHARE_H #include <QObject> class Share : public QObject{ Q_OBJECT public: explicit Share(QObject *parent = nullptr); }; #endif // SHARE_H
14.33
12
(translation_unit) "#ifndef SHARE_H \n#define SHARE_H \n \n#include <QObject> \n \nclass Share : public QObject{ \n Q_OBJECT \npublic: \n explicit Share(QObject *parent = nullptr); \n}; \n \n#endif // SHARE_H \n" (preproc_ifdef) "#ifndef SHARE_H \n#define SHARE_H \n \n#include <QObject> \n \nclass Share : publi...
47
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 14.33, "nodes": 30, "errors": 0, "source_hash": "3b9895f51bb44ecec95b68281630d0ebc1b4fc78c301a78e9fc628634f825300", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,785
c
#ifndef FSCKDIRENTRY_H_ #define FSCKDIRENTRY_H_ #include <common/Common.h> #include <common/nodes/NumNodeID.h> #include <common/toolkit/serialization/Serialization.h> #define FsckDirEntryType_ISDIR(dirEntryType) (dirEntryType == FsckDirEntryType_DIRECTORY) #define FsckDirEntryType_ISREGULARFILE(dirEntryType) ...
32.66
224
(translation_unit) "#ifndef FSCKDIRENTRY_H_\n#define FSCKDIRENTRY_H_\n\n#include <common/Common.h>\n#include <common/nodes/NumNodeID.h>\n#include <common/toolkit/serialization/Serialization.h>\n\n#define FsckDirEntryType_ISDIR(dirEntryType) (dirEntryType == FsckDirEntryType_DIRECTORY)\n#define FsckDirEntryType_...
1,595
50
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 32.66, "nodes": 953, "errors": 0, "source_hash": "8b2e5013a3c92cf51a252bd13758ceb590dbfb711d5762ea74272edabfe28a94", "categorized_nodes": 688}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,786
c
#ifndef __ENEMY_FACTORY_H #define __ENEMY_FACTORY_H #include "Character.h" #include "EnemyController.h" #include "Utility.h" #include "Animation.h" #include <memory> #include <vector> namespace slava { // Klasa za pravljenje predefinisanih enemija TODO: Dodat ovdje animaciju udaranja indeksiranu na nuli class Enem...
31.29
31
(translation_unit) "#ifndef __ENEMY_FACTORY_H\n#define __ENEMY_FACTORY_H\n\n#include "Character.h"\n#include "EnemyController.h"\n#include "Utility.h"\n#include "Animation.h"\n#include <memory>\n#include <vector>\n\nnamespace slava \n{\n // Klasa za pravljenje predefinisanih enemija TODO: Dodat ovdje animaciju udaranja...
297
12
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 31.29, "nodes": 172, "errors": 0, "source_hash": "f6c96d81730eb91d28a8d990736ee76d448241f9d69127219b1bef0373bd2d4d", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,787
c
/* * Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef __PLATFORM_DEF_H__ #define __PLATFORM_DEF_H__ #include <arm_def.h> #include <board_arm_def.h> #include <common_def.h> #include <tzc400.h> #include <utils_def.h> #include <v2m_def.h...
39.71
111
(translation_unit) "/*\n * Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef __PLATFORM_DEF_H__\n#define __PLATFORM_DEF_H__\n\n#include <arm_def.h>\n#include <board_arm_def.h>\n#include <common_def.h>\n#include <tzc400.h>\n#include ...
226
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 39.71, "nodes": 200, "errors": 0, "source_hash": "256a4b4093702be0256e5c41d3d114db5578357695180b0470e312d14c52ba7c", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,788
c
// // DHRange.h // DHxls // // Created by <NAME> on 10/26/08. // Copyright 2008-2013 <NAME>. All rights reserved. // @interface DHRange : NSObject -(id)initWithRange:(void *)rg; // xlslib_core::range * -(void *)range; -(void)cellColor:(color_name_t)aColor; @end
21.17
12
(translation_unit) "//\n// DHRange.h\n// DHxls\n//\n// Created by <NAME> on 10/26/08.\n// Copyright 2008-2013 <NAME>. All rights reserved.\n//\n\n@interface DHRange : NSObject\n\n-(id)initWithRange:(void *)rg; // xlslib_core::range *\n-(void *)range;\n\n-(void)cellColor:(color_name_t)aColor;\n\n@end\n" (comment) ...
67
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.17, "nodes": 36, "errors": 0, "source_hash": "cc3039f7194f0d8a26454ad8aca2f2b2b148d4e46fe7330100dc0b2db7bc8480", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface DHRan...
10,789
c
#include <openssl/crypto.h> #include <openssl/rand.h> #include <openssl/rsa.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <time.h> /** * Decodes rf with private key and writes output to wf * * @param const char* rf, is the read file for decoding * @param const char* wf, is the write fil...
25.21
125
(translation_unit) "#include <openssl/crypto.h>\n#include <openssl/rand.h>\n#include <openssl/rsa.h>\n#include <stdio.h>\n#include <string.h>\n#include <sys/types.h>\n#include <time.h>\n\n/**\n * Decodes rf with private key and writes output to wf\n *\n * @param const char* rf, is the read file for decoding\n * @param ...
1,020
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 25.21, "nodes": 578, "errors": 0, "source_hash": "c96dc7cf53383219c798d996b0852208e29862abd20d5742c13e7cd0471effa2", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,790
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "DMSafeKit.h" #import "NSArray+Safety.h" #import "NSDictionary+Safety.h" #import "NSObject+Swizzle.h" #import "NSSet+...
23.74
19
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "DMSafeKit.h"\n#import "NSArray+Safety.h"\n#import "NSDictionary+Safety.h"\n#import "...
70
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.74, "nodes": 60, "errors": 0, "source_hash": "8adb181ce7df5ffa72b4485ace7829796d98f69729afba7d3e390f5298c433a3", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
10,791
c
#ifndef __TREEAPPROX_GREEDY_H__ #define __TREEAPPROX_GREEDY_H__ #include <cstdlib> #include <vector> namespace treeapprox { bool treeapprox_greedy(const std::vector<double>& x, size_t d, size_t k, std::vector<bool>* support); }; // namespace tree...
29
11
(translation_unit) "#ifndef __TREEAPPROX_GREEDY_H__\n#define __TREEAPPROX_GREEDY_H__\n\n#include <cstdlib>\n#include <vector>\n\nnamespace treeapprox {\n\nbool treeapprox_greedy(const std::vector<double>& x,\n size_t d,\n size_t k,\n std::vector<bool>* s...
65
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.0, "nodes": 45, "errors": 0, "source_hash": "d8f672aa53317e1a460331c894fef9979b8d3e3e60e0e8be667495a4d5ad926f", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,792
c
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Resea...
33.71
31
(translation_unit) "/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2006 The University of Tennessee and The University\n * ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.71, "nodes": 25, "errors": 0, "source_hash": "43cceaf93c53a24ddb56b31270463f97b1e5daa44998f3d68c92b99dc4298d69", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,793
c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * p7sign -- A command to create a *detached* pkcs7 signature (over a given * input file). * * $Id: p7sign.c...
28.45
234
(translation_unit) "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/*\n * p7sign -- A command to create a *detached* pkcs7 signature (over a given\n * input ...
1,863
0
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 28.45, "nodes": 1104, "errors": 0, "source_hash": "4217e892610e8285ce505d13fbfc9cb5f72d3543382a7d624cb239839c1f7ffc", "categorized_nodes": 735}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,794
c
/* gsl-sprng.h Code declaring a new GSL random number type "gsl_rng_sprng20" which is a thin wrapper over the SPRNG 2.0 parallel random number generator. To use, just add the line: #include "gsl-sprng.h" immediately after the line: #include <gsl/gsl_rng.h> near the start of your code. The new type should now be avai...
28.3
43
(translation_unit) "/* \ngsl-sprng.h\n\nCode declaring a new GSL random number type "gsl_rng_sprng20"\nwhich is a thin wrapper over the SPRNG 2.0 parallel random\nnumber generator.\n\nTo use, just add the line:\n#include "gsl-sprng.h"\nimmediately after the line:\n#include <gsl/gsl_rng.h>\nnear the start of your code. ...
175
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.3, "nodes": 95, "errors": 0, "source_hash": "aae6d12056b1095152a7518b4fb062e7c1ee9878006e1d3d5000abeba8c202d8", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SIM...
10,795
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Foundation/Foundation.h> #import <Foundation/Foundation.h> #import <Foundation/Foundation.h> @class NSArray; @interface CNHandleStringClassification : NSObject { NSArray *...
35.11
28
(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 <Foundation/Foundation.h>\n\n#import <Foundation/Foundation.h>\n#import <Foundation/Foundation.h>\n\n@class NSArray;\n\n@interface CNHandleStringClassifi...
265
21
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 35.11, "nodes": 164, "errors": 0, "source_hash": "09e0cd8263a4081ed41f9b59be8b7271c6a0386659966f7f56b1b3f3e5239b10", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,796
c
// Programa secuencial C que calcula el producto de dos matrices cuadradas M1, M2 #include <stdlib.h> // Biblioteca para funciones atoi(), malloc() y free() #include <stdio.h> // Biblioteca para función printf() #include <time.h> // Biblioteca para funcion clock_gettime() #ifdef __MACH__ #include <mach/c...
28.23
128
(translation_unit) "// Programa secuencial C que calcula el producto de dos matrices cuadradas M1, M2\n\n#include <stdlib.h> // Biblioteca para funciones atoi(), malloc() y free()\n#include <stdio.h> // Biblioteca para función printf()\n#include <time.h> // Biblioteca para funcion clock_gettime()\n\n#ifdef...
1,362
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 28.23, "nodes": 770, "errors": 0, "source_hash": "21512faabdb068d026d0769c62836684125855e0f0bb263a5cc704a5cda585a7", "categorized_nodes": 534}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,797
c
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
40.36
25
(translation_unit) "/*----------------------------------------------------------------------------*/\n/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */\n/* Open Source Software - may be modified and shared by FRC teams. The code */\n/* must be accompanied by the FIRST BSD license file i...
121
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.36, "nodes": 62, "errors": 0, "source_hash": "6956cf07a4ac41e803c6494fcb8257c79242f4f18772d88703cf04be24b62df2", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,798
c
#pragma once #include <DB/Interpreters/Context.h> #include <DB/Interpreters/IInterpreter.h> namespace DB { /** Переименовать одну или несколько таблиц. */ class InterpreterRenameQuery : public IInterpreter { public: InterpreterRenameQuery(ASTPtr query_ptr_, Context & context_); BlockIO execute() override; pri...
17.25
20
(translation_unit) "#pragma once\n\n#include <DB/Interpreters/Context.h>\n#include <DB/Interpreters/IInterpreter.h>\n\n\nnamespace DB\n{\n\n\n/** Переименовать одну или несколько таблиц.\n */\nclass InterpreterRenameQuery : public IInterpreter\n{\npublic:\n InterpreterRenameQuery(ASTPtr query_ptr_, Context & context_)...
69
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.25, "nodes": 45, "errors": 0, "source_hash": "756f440433ade5bcc77627f5517250ae64e4a05faae6d431bf154d3e5d9f5f15", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,799