language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef TAGSERVER_H #define TAGSERVER_H #include <mpi.h> #ifdef __cplusplus extern "C" { #endif /** Returns a unique tag that can be used for MPI communication.*/ int getUniqueTag(MPI_Comm comm); #ifdef __cplusplus } #endif #endif
18.25
12
(translation_unit) "#ifndef TAGSERVER_H\n#define TAGSERVER_H\n\n#include <mpi.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/** Returns a unique tag that can be used for MPI communication.*/\nint getUniqueTag(MPI_Comm comm);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef TAGSERVER_H\n#defi...
42
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.25, "nodes": 31, "errors": 0, "source_hash": "58d2b78266c97685327f10001e34fa881b67209200a822c2298735cf7c5df7dd", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,400
c
/*Implemente um programa que irá calcular a média dos alunos de um turma com n alunos, com o valor de n informado pelo usuário. O programa irá receber a nota da AP1 dos alunos e depois a nota da AP2 dos alunos. O programa irá calcular e imprime a média desses n alunos. ATENÇÃO: É obrigatório usar três vetores. Três...
30.89
36
(translation_unit) "/*Implemente um programa que irá calcular a média dos alunos de um turma com n alunos, com o valor de n informado pelo usuário.\n\nO programa irá receber a nota da AP1 dos alunos e depois a nota da AP2 dos alunos. O programa irá calcular e imprime a média desses n alunos.\n\nATENÇÃO: É obrigatório ...
210
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.89, "nodes": 114, "errors": 0, "source_hash": "df57f48d62fef4124b6932a45c80eca6ac9b420a96b18eddcf518ff0cff9f423", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "int m...
79,401
c
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2016 Intel Corporation. All rights reserved. * * Author: <NAME> <<EMAIL>> */ #ifndef __INCLUDE_LIB_PLATFORM_HOST_PMC_H__ #define __INCLUDE_LIB_PLATFORM_HOST_PMC_H__ #include <stdint.h> int platform_ipc_pmc_init(void); int ipc_pmc_send_msg(uint32_t messa...
24.86
14
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause\n *\n * Copyright(c) 2016 Intel Corporation. All rights reserved.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef __INCLUDE_LIB_PLATFORM_HOST_PMC_H__\n#define __INCLUDE_LIB_PLATFORM_HOST_PMC_H__\n\n#include <stdint.h>\n\n\nint platform_ipc_pmc_init(void);\ni...
43
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.86, "nodes": 32, "errors": 0, "source_hash": "1400e68f058fd7ca2b8b8ca2f4c0c7bd162c0b87edb9a0ab47600110dfa17750", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,402
c
/* * CometOS --- a component-based, extensible, tiny operating system * for wireless networks * * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
32.2
135
(translation_unit) "/*\n * CometOS --- a component-based, extensible, tiny operating system\n * for wireless networks\n *\n * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology\n * All rights reserved.\n\n * Redistribution and use in source and binary forms, with or without\n * mo...
754
25
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 32.2, "nodes": 417, "errors": 0, "source_hash": "08da655afe83c1a9d0e10af47a7e298b201ecca3d64abf6488a0e2adfc0bfa91", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,403
c
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // LICENSE: Atomic Game Engine Editor and Tools EULA // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for // license information: https://github.com/AtomicGameEngine/AtomicGameEngine // #pragma once #include <Atomic/Core/Obje...
28.22
109
(translation_unit) "//\n// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved\n// LICENSE: Atomic Game Engine Editor and Tools EULA\n// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for\n// license information: https://github.com/AtomicGameEngine/AtomicGameEngine\n//\n\n#pragma once\...
583
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 28.22, "nodes": 244, "errors": 0, "source_hash": "dad3067cb4d678027d4f22a7f469cc087332b4ad5d5d6fc84caa27a323870972", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,404
c
/*========================================================================= Program: ParaView Module: pqPythonFileIO.h Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ParaVi...
30.52
170
(translation_unit) "/*=========================================================================\n\n Program: ParaView\n Module: pqPythonFileIO.h\n\n Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.\n All rights reserved.\n\n ParaView is a free software; you can redistribute it and/or modify it\n ...
570
24
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 30.52, "nodes": 326, "errors": 0, "source_hash": "008cd062fcf027c087b8e3965bb3f072757b7a3f7daafdccee8e0a57587b6393", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,405
c
// // UIColor+XGExtension.h // // Created by 小果 on 2017/2/7. // Copyright © 2017年 小果. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (XGExtension) /** 使用 16 进制数字创建颜色,例如 0xFF0000 创建红色 @param hex 16 进制无符号32位整数 @return 颜色 */ + (instancetype)xg_colorWithHex:(uint32_t)hex; /** 生成随机颜色 @...
15.88
33
(translation_unit) "//\n// UIColor+XGExtension.h\n//\n// Created by 小果 on 2017/2/7.\n// Copyright © 2017年 小果. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor (XGExtension)\n\n/**\n 使用 16 进制数字创建颜色,例如 0xFF0000 创建红色\n \n @param hex 16 进制无符号32位整数\n \n @return 颜色\n */\n+ (instancetype)xg_colorWi...
87
7
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 15.88, "nodes": 48, "errors": 0, "source_hash": "edd229a8e48bdb791a529c01489a401626713d000d424a57168ffb89d610c8cc", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
79,406
c
#pragma once DBJ_TEST_SPACE_OPEN( dbj_util ) using namespace std::string_view_literals; enum class engine_tag { diesel, petrol }; // We are talking 100% encapsulation, here auto car_maker(engine_tag engine_tag_ ) { // this ABC can be outside of the factory method struct engine { virtual char const * const nam...
27.72
94
(ERROR) "#pragma once\n\n\nDBJ_TEST_SPACE_OPEN( dbj_util )\n\nusing namespace std::string_view_literals;\n\nenum class engine_tag { diesel, petrol };\n// We are talking 100% encapsulation, here\nauto car_maker(engine_tag engine_tag_ ) {\n\n // this ABC can be outside of the factory method\n struct engine {\n virtual ...
1,057
44
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 27.72, "nodes": 554, "errors": 0, "source_hash": "591d7e3989ab94dfba07984bce23ac84dd6dddffdf7c4841e7242aa193103dc2", "categorized_nodes": 390}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n\nDBJ_TES...
79,407
c
#include "common.h" #include "GL/intern.h" GLvoid glClearColorx(GLfixed r, GLfixed g, GLfixed b, GLfixed a) { gl_clear_color_ub[0] = (r + (1<<7))>>8; gl_clear_color_ub[1] = (g + (1<<7))>>8; gl_clear_color_ub[2] = (b + (1<<7))>>8; gl_clear_color_ub[3] = (a + (1<<7))>>8; } GLvoid glClear(GLbitfield mask) { (void)m...
27.77
22
(translation_unit) "#include "common.h"\n#include "GL/intern.h"\n\nGLvoid glClearColorx(GLfixed r, GLfixed g, GLfixed b, GLfixed a)\n{\n gl_clear_color_ub[0] = (r + (1<<7))>>8;\n gl_clear_color_ub[1] = (g + (1<<7))>>8;\n gl_clear_color_ub[2] = (b + (1<<7))>>8;\n gl_clear_color_ub[3] = (a + (1<<7))>>8;\n}\n\nGLvoid glCl...
250
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.77, "nodes": 159, "errors": 0, "source_hash": "467e5270b6252a95ff708e7ff58f498b5a505b4cb65104227fa316ae4e2e97de", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,408
c
#include "sprite.h" #include <string.h> typedef unsigned char uint8; typedef unsigned short uint16; typedef unsigned int uint32; typedef uint32 Tile[16]; typedef Tile TileBlock[256]; #define VIDEOMODE_0 0x0000 #define ENABLE_OBJECTS 0x1000 #define MAPPINGMODE_1D 0x0040 #define REG_DISPLAYCONTROL ...
31.75
48
(translation_unit) "#include "sprite.h"\n#include <string.h>\n\ntypedef unsigned char uint8;\ntypedef unsigned short uint16;\ntypedef unsigned int uint32;\n\ntypedef uint32 Tile[16];\ntypedef Tile TileBlock[256];\n\n#define VIDEOMODE_0 0x0000\n#define ENABLE_OBJECTS 0x1000\n#define MAPPINGMODE_1D 0x00...
339
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.75, "nodes": 227, "errors": 0, "source_hash": "0bdd718d03416f111a38784d0848f9fb8dce98d1fdc399f0a63b43f22705c317", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,409
c
#pragma once #include "PCore.h" #include "PSpriteManager.h" #include "PRectObject.h" class Sample : public PCore { public: Sample(); ~Sample(); private: //PSprite sprite1; PSprite sprites[30]; public: bool Init() override; bool Frame() override; bool Render() override; bool Release() override; }; PCORE_RUN...
16.25
20
(translation_unit) "#pragma once\n#include "PCore.h"\n#include "PSpriteManager.h"\n#include "PRectObject.h"\n\nclass Sample : public PCore\n{\npublic:\n Sample();\n ~Sample();\nprivate:\n //PSprite sprite1;\n PSprite sprites[30];\npublic:\n bool Init() override;\n bool Frame() override;\n bool Render() override;\n bool...
126
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 16.25, "nodes": 66, "errors": 0, "source_hash": "8fa7a47fa897dfe46d257f2b5b1d2935ac6e587da7801244b40339cd539fecb4", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,410
c
/******************************************* Main internal include file *******************************************/ #ifndef __KINESIS_VIDEO_PRODUCER_INCLUDE_I__ #define __KINESIS_VIDEO_PRODUCER_INCLUDE_I__ #pragma once #ifdef __cplusplus extern "C" { #endif /////////////////////////////////////////////...
32.19
80
(translation_unit) "/******************************************* \nMain internal include file \n*******************************************/ \n#ifndef __KINESIS_VIDEO_PRODUCER_INCLUDE_I__ \n#define __KINESIS_VIDEO_PRODUCER_INCLUDE_I__ \n \n#pragma once \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n/////////////...
216
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 32.19, "nodes": 137, "errors": 0, "source_hash": "eedf8e8cec1bd8a66e6a3c47d8ceb186115881be66ce7eb235f77fab92ed95f2", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,411
c
#if !defined(_PETSC_HASHMAPI_H) #define _PETSC_HASHMAPI_H #include <petsc/private/hashmap.h> PETSC_HASH_MAP(HMapI, PetscInt, PetscInt, PetscHashInt, PetscHashEqual, -1) #endif /* _PETSC_HASHMAPI_H */
39
5
(translation_unit) "#if !defined(_PETSC_HASHMAPI_H)\n#define _PETSC_HASHMAPI_H\n\n#include <petsc/private/hashmap.h>\n\nPETSC_HASH_MAP(HMapI, PetscInt, PetscInt, PetscHashInt, PetscHashEqual, -1)\n\n#endif /* _PETSC_HASHMAPI_H */\n" (preproc_if) "#if !defined(_PETSC_HASHMAPI_H)\n#define _PETSC_HASHMAPI_H\n\n#include ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 39.0, "nodes": 24, "errors": 0, "source_hash": "93ad448ca96ea49f63635206b71f9c06d9fe04fe23e2080683f7ae33fd0b473f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined(...
79,412
c
// // WCRAuthorizeChangePageModel.h // WCRLiveCore // // Created by juvham on 2019/7/23. // Copyright © 2019 com.100tal. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface WCRAuthorizeChangePageModel : NSObject /** 最大页数 */ @property (nonatomic, assign) NSInteger docM...
20.97
34
(translation_unit) "//\n// WCRAuthorizeChangePageModel.h\n// WCRLiveCore\n//\n// Created by juvham on 2019/7/23.\n// Copyright © 2019 com.100tal. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WCRAuthorizeChangePageModel : NSObject\n\n\n/**\n 最大页数\n */\n@prope...
115
14
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 20.97, "nodes": 73, "errors": 0, "source_hash": "5e3edecdca75d7aeae856cf54842d4ef45ab5cc892887ac81c6fd1ccba2fa69a", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,413
c
#import "NSData+ZPKit.h" #import "NSString+ZPKit.h" #import "UIView+ZPKit.h" #import "UIColor+ZPKit.h" #import "UIButton+ZPKit.h" #import "UIImage+ZPKit.h" #import "UIFont+ZPKit.h" #import "UILabel+ZPKit.h" #import "NSObject+ZPKit.h" #import "UIViewController+ZPKit.h" #import "ZPUtils.h" #import "ZPRSA.h" #import "ZP...
36.98
58
(translation_unit) "#import "NSData+ZPKit.h"\n#import "NSString+ZPKit.h"\n#import "UIView+ZPKit.h"\n#import "UIColor+ZPKit.h"\n#import "UIButton+ZPKit.h"\n#import "UIImage+ZPKit.h"\n#import "UIFont+ZPKit.h"\n#import "UILabel+ZPKit.h"\n#import "NSObject+ZPKit.h"\n#import "UIViewController+ZPKit.h"\n\n#import "ZPUtils.h"...
186
1
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 36.98, "nodes": 142, "errors": 0, "source_hash": "b1576dfb950d1ec10f0d2dcacd6455ac6bcaf21b0b2254534cafe4b5aea7f24e", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,414
c
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2016, Linaro Limited */ #ifndef __KERNEL_ASAN_H #define __KERNEL_ASAN_H #define ASAN_DATA_RED_ZONE -1 #define ASAN_HEAP_RED_ZONE -2 #define ASAN_BLOCK_SIZE 8 #define ASAN_BLOCK_SHIFT 3 #define ASAN_BLOCK_MASK (ASAN_BLOCK_SIZE - 1) #ifndef ASM #inclu...
27.73
49
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/*\n * Copyright (c) 2016, Linaro Limited\n */\n#ifndef __KERNEL_ASAN_H\n#define __KERNEL_ASAN_H\n\n\n#define ASAN_DATA_RED_ZONE -1\n#define ASAN_HEAP_RED_ZONE -2\n\n#define ASAN_BLOCK_SIZE 8\n#define ASAN_BLOCK_SHIFT 3\n#define ASAN_BLOCK_MASK (ASAN_BL...
395
6
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 27.73, "nodes": 257, "errors": 0, "source_hash": "208df429a3ce6baf30f5d63676447fcef62d91f6e93eff5ee2956f8db38cd6df", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,415
c
#if !defined( PM_MATERIALSH ) #define PM_MATERIALSH #pragma once #define CBTEXTURENAMEMAX 13 // only load first n chars of name #define CHAR_TEX_CONCRETE 'C' // texture types #define CHAR_TEX_METAL 'M' #define CHAR_TEX_DIRT 'D' #define CHAR_TEX_VENT 'V' #define CHAR_TEX_GRATE 'G' #define CHAR_TEX_TILE 'T' #d...
29.12
16
(translation_unit) "#if !defined( PM_MATERIALSH )\n#define PM_MATERIALSH\n#pragma once\n\n#define CBTEXTURENAMEMAX 13 // only load first n chars of name\n\n#define CHAR_TEX_CONCRETE 'C' // texture types\n#define CHAR_TEX_METAL 'M'\n#define CHAR_TEX_DIRT 'D'\n#define CHAR_TEX_VENT 'V'\n#define CHAR_TEX_GRATE 'G'...
67
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.12, "nodes": 63, "errors": 0, "source_hash": "45068224bad1a280c4d3454b1b7019dc1724209fe6e611068b810b51c744c0ad", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
79,416
c
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_ValueType3507792607.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignore...
25.03
33
(translation_unit) "ragma once\n\n#include "il2cpp-config.h"\n\n#ifndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n#include <stdint.h>\n\n\n#include "mscorlib_System_ValueType3507792607.h"\n\n#ifdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Winvalid-offseto...
157
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.03, "nodes": 105, "errors": 0, "source_hash": "741b8930123f596b9784746c33f33a4a0c70432e44e14041a2692fa76b9448df", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
79,417
c
/*********************************************************************** Moses - statistical machine translation system Copyright (C) 2006-2011 University of Edinburgh This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by t...
34.69
117
(translation_unit) "/***********************************************************************\n Moses - statistical machine translation system\n Copyright (C) 2006-2011 University of Edinburgh\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n...
791
36
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 34.69, "nodes": 401, "errors": 0, "source_hash": "c8e79e335954d8dbdabd7dcb7d650bf87d2fdf2aa87dd12f7c3542d59377ed2f", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,418
c
#ifndef MEREDISPLAYWIN_H #define MEREDISPLAYWIN_H #include "screen.h" #include "client.h" #include <QWidget> class Win : public QWidget { Q_OBJECT public: ~Win(); explicit Win(QWidget *parent = nullptr); signals: public slots: void authenticate(const std::string &username, const std::string &passwo...
21.14
21
(translation_unit) "#ifndef MEREDISPLAYWIN_H\n#define MEREDISPLAYWIN_H\n\n#include "screen.h"\n#include "client.h"\n\n#include <QWidget>\n\nclass Win : public QWidget\n{\n Q_OBJECT\npublic:\n ~Win();\n explicit Win(QWidget *parent = nullptr);\n\nsignals:\n\npublic slots:\n void authenticate(const std::strin...
141
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.14, "nodes": 86, "errors": 0, "source_hash": "a7431377c9a4ed08a7c07ae9fe63e177c7fb9b7c96b2e17329dfdea09abc67d4", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,419
c
/*********************************************************************************************************************** * * API.AI iOS SDK - client-side libraries for API.AI * ========================================== * * Copyright (C) 2015 by Speaktoit, Inc. (https://www.speaktoit.com) * https://www.api.ai * ...
32.92
87
(translation_unit) "/***********************************************************************************************************************\n *\n * API.AI iOS SDK - client-side libraries for API.AI\n * ==========================================\n *\n * Copyright (C) 2015 by Speaktoit, Inc. (https://www.speaktoit.com)\...
167
12
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 32.92, "nodes": 113, "errors": 0, "source_hash": "a9ee2370eec4330bef6038b739e4f98b116934ec87f543f7d8b67fe4e4d43305", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,420
c
#pragma once #include "../IRInstr.h" class IRInstrCall : public IRInstr { private: /* data */ string label; string dest; vector <string> params; string registers[6] = {"%edi\n", "%esi\n", "%edx\n", "%ecx\n", "%r8\n", "%r9\n"}; public: IRInstrCall(BasicBlock *bb_, string label, string dest, v...
25.2
15
(translation_unit) "#pragma once\n\n#include "../IRInstr.h"\n\nclass IRInstrCall : public IRInstr\n{\nprivate:\n /* data */\n string label;\n string dest; \n vector <string> params;\n string registers[6] = {"%edi\n", "%esi\n", "%edx\n", "%ecx\n", "%r8\n", "%r9\n"};\n\npublic:\n IRInstrCall(BasicBlock ...
143
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.2, "nodes": 78, "errors": 0, "source_hash": "57288cf255e51ad4eb6d5a0f06b6004506d609248ce098dc68b670e1f58362b8", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,421
c
#pragma once #include "FieldStorage.h" #include "FieldIndexing.h" #include "FieldTermVector.h" #include "SpatialOptions.h" #include "nlohmann/json.hpp" namespace ravendb::client::documents::indexes { struct IndexFieldOptions { FieldStorage storage = FieldStorage::UNSET; FieldIndexing indexing = FieldIndexing::U...
30.26
23
(translation_unit) "#pragma once\n#include "FieldStorage.h"\n#include "FieldIndexing.h"\n#include "FieldTermVector.h"\n#include "SpatialOptions.h"\n#include "nlohmann/json.hpp"\n\n\nnamespace ravendb::client::documents::indexes\n{\n struct IndexFieldOptions\n {\n FieldStorage storage = FieldStorage::UNSET;\n FieldInd...
218
20
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.26, "nodes": 120, "errors": 0, "source_hash": "ff025cdb48d417ffe67311ab3affcb1120007f4d774d2914463f22de2914cbb4", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,422
c
@import UIKit; NS_ASSUME_NONNULL_BEGIN @protocol TRApplication <NSObject> - (void)setMinimumBackgroundFetchInterval:(NSTimeInterval)minimumBackgroundFetchInterval; @end @interface UIApplication (TRApplication) <TRApplication> @end NS_ASSUME_NONNULL_END
30.62
8
(translation_unit) "@import UIKit;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol TRApplication <NSObject>\n- (void)setMinimumBackgroundFetchInterval:(NSTimeInterval)minimumBackgroundFetchInterval;\n@end\n\n@interface UIApplication (TRApplication) <TRApplication>\n@end\n\nNS_ASSUME_NONNULL_END\n" (ERROR) "@" (ERROR) "@"...
55
12
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 30.62, "nodes": 40, "errors": 0, "source_hash": "b124be75c7ec46e1d15da226151421f3d5e2f369857dc982ad4e42ca7845d375", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
79,423
c
#include <cs50.h> #include <stdio.h> int main(void) { int d, i, h; do { h = get_int("What do you want the height of the pyramid?\n"); } while (h < 1 || h > 8); for (i = 0; i < h; i++) { for (d = h - i - 1; d > 0; d--) { printf(" "); } ...
16.44
25
(translation_unit) "#include <cs50.h>\n#include <stdio.h>\n\nint main(void)\n{\n int d, i, h;\n do\n {\n h = get_int("What do you want the height of the pyramid?\n");\n }\n while (h < 1 || h > 8);\n \n for (i = 0; i < h; i++)\n {\n for (d = h - i - 1; d > 0; d--)\n {\n ...
166
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.44, "nodes": 98, "errors": 0, "source_hash": "1148700925362f6f31f224b8abcfa61782896dd3aba71f5d750d06e072d6d615", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,424
c
// // KHSettingsViewCell.h // Cantaloupe // // Created by <NAME> on 4/2/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface KHSettingsViewCell : UITableViewCell @end
20.1
10
(translation_unit) "//\n// KHSettingsViewCell.h\n// Cantaloupe\n//\n// Created by <NAME> on 4/2/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface KHSettingsViewCell : UITableViewCell\n\n@end\n" (comment) "//" (comment) "// KHSettingsViewCell.h" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 9, "errors": 0, "source_hash": "fbf400c6ee22e506ab2f41ab77745a01e8f9f2d35c77f9116ed39cebd6be28f0", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
79,425
c
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
26.08
106
(translation_unit) "/* $Id$ $Revision$ */\n/* vim:set shiftwidth=4 ts=8: */\n\n/*************************************************************************\n * Copyright (c) 2011 AT&T Intellectual Property \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the ...
909
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 26.08, "nodes": 552, "errors": 0, "source_hash": "d01faaa4e8eed427aee40c20d65612011ad3b4e69c6ef3502f47bd29ee7ac6bb", "categorized_nodes": 384}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,426
c
#pragma once #include "daScript/simulate/debug_info.h" namespace das { class AnyFileSystem { public: virtual ~AnyFileSystem() {} virtual FileInfo * tryOpenFile ( const string & fileName ) = 0; }; #if !DAS_NO_FILEIO class FsFileSystem : public AnyFileSystem { public: virtu...
36.73
37
(translation_unit) "#pragma once\n\n#include "daScript/simulate/debug_info.h"\n\nnamespace das {\n\n class AnyFileSystem {\n public:\n virtual ~AnyFileSystem() {}\n virtual FileInfo * tryOpenFile ( const string & fileName ) = 0;\n };\n\n#if !DAS_NO_FILEIO\n class FsFileSystem : public AnyFileS...
363
26
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.73, "nodes": 209, "errors": 0, "source_hash": "49ff3e805328bd7cb362222eb96813941277d53840dad5c5e5f79f92411acfac", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,427
c
/* * VSCSoundSine.h * SynthStation * * Created by <NAME> on 15/10/2011. * Copyright 2011 NXP. All rights reserved. * */ #ifndef _VSC_SYNTH_SOURCE_NOISE_ #define _VSC_SYNTH_SOURCE_NOISE_ #include "VSCSound.h" #include "VSCSoundGenerator.h" #include <boost/shared_ptr.hpp> #define VSCSoundNoisePtr boos...
17.71
35
(translation_unit) "/*\n * VSCSoundSine.h\n * SynthStation\n *\n * Created by <NAME> on 15/10/2011.\n * Copyright 2011 NXP. All rights reserved.\n *\n */\n\n\n#ifndef _VSC_SYNTH_SOURCE_NOISE_\n#define _VSC_SYNTH_SOURCE_NOISE_\n\n#include "VSCSound.h"\n#include "VSCSoundGenerator.h"\n#include <boost/shared_ptr.hpp>\...
128
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 17.71, "nodes": 75, "errors": 0, "source_hash": "74e4bffd580c3ed1fe0fd3f2cd9557efe9fdc84a6aed0a5103028a76dcd8ab0c", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,428
c
// Copyright (c) 2009-2010 <NAME> // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_MAIN_H #define BITCOIN_MAIN_H #include "net.h" #include "script.h" class CBlockIndex; bool LoadBlockIndex(bool fAllowNew...
24.84
275
(translation_unit) "// Copyright (c) 2009-2010 <NAME>\n// Distributed under the MIT/X11 software license, see the accompanying\n// file license.txt or http://www.opensource.org/licenses/mit-license.php.\n#ifndef BITCOIN_MAIN_H\n#define BITCOIN_MAIN_H\n\n#include "net.h"\n#include "script.h"\n\nclass CBlockIndex;\n\nboo...
1,489
30
{"language": "c", "success": true, "metadata": {"lines": 275, "avg_line_length": 24.84, "nodes": 859, "errors": 0, "source_hash": "74aaa1971205d909f0a40803f4dee86c47abfd7a388d925a0b8904343a7e306b", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,429
c
#include "display.h" #include "ports.h" #include <stdint.h> #include "../kernel/util.h" void set_cursor(int offset) { offset /= 2; port_byte_out(REG_SCREEN_CTRL, 14); port_byte_out(REG_SCREEN_DATA, (unsigned char)(offset >> 8)); port_byte_out(REG_SCREEN_CTRL, 15); port_byte_out(REG_SCREEN_DATA, (un...
23.06
185
(translation_unit) "#include "display.h"\n#include "ports.h"\n#include <stdint.h>\n#include "../kernel/util.h"\n\nvoid set_cursor(int offset)\n{\n offset /= 2;\n port_byte_out(REG_SCREEN_CTRL, 14);\n port_byte_out(REG_SCREEN_DATA, (unsigned char)(offset >> 8));\n port_byte_out(REG_SCREEN_CTRL, 15);\n por...
1,557
0
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 23.06, "nodes": 934, "errors": 0, "source_hash": "de92e2536edb59d88174bdace3711400078a76e29416b2a939263abbc140d2db", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,430
c
// // ASHEditRecipeViewModel.h // C-41 // // Created by <NAME> on 12/22/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "RVMViewModel.h" @class ASHRecipe, ASHEditStepViewModel; @interface ASHEditRecipeViewModel : RVMViewModel @property (nonatomic, readonly) ASHRecipe *model; @property (nonat...
34.82
28
(translation_unit) "//\n// ASHEditRecipeViewModel.h\n// C-41\n//\n// Created by <NAME> on 12/22/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import "RVMViewModel.h"\n\n@class ASHRecipe, ASHEditStepViewModel;\n\n@interface ASHEditRecipeViewModel : RVMViewModel\n\n@property (nonatomic, readonly) ...
276
52
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.82, "nodes": 173, "errors": 0, "source_hash": "8b7b10468663a6bef89ae8e233c42dfa124dbea15c6ffe71e3bb2a538316c4ae", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,431
c
#pragma once #include "List.h" template<typename T> class UnorderedList : public List { public: void insertFirst(const T&) override; void insertLast(const T&) override; }; //insert the node first template<typename T> void UnorderedList<T>::insertFirst(const T& Info) { Node<T>* fNode = new Node<T>(); fNode->Info ...
17.22
45
(translation_unit) "#pragma once\n#include "List.h"\n\ntemplate<typename T>\nclass UnorderedList : public List\n{\npublic:\n void insertFirst(const T&) override;\n void insertLast(const T&) override;\n};\n\n//insert the node first\ntemplate<typename T>\nvoid UnorderedList<T>::insertFirst(const T& Info)\n{\n Node<T>* fN...
319
22
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 17.22, "nodes": 213, "errors": 0, "source_hash": "9ccaa5295a7258331dbab1877bccaf117d5254dbd4ea3922455b2e9b60f334f7", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,432
c
#ifndef _Direction_H #define _Direction_H 1 enum Direction {N=0,NE=1,E=2,SE=3,S=4,SW=5,W=6,NW=7,STOP=100}; #endif
27.5
4
(translation_unit) "#ifndef _Direction_H\n#define _Direction_H 1\n\nenum Direction {N=0,NE=1,E=2,SE=3,S=4,SW=5,W=6,NW=7,STOP=100};\n\n#endif" (preproc_ifdef) "#ifndef _Direction_H\n#define _Direction_H 1\n\nenum Direction {N=0,NE=1,E=2,SE=3,S=4,SW=5,W=6,NW=7,STOP=100};\n\n#endif" (#ifndef) "#ifndef" (identifi...
60
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.5, "nodes": 48, "errors": 0, "source_hash": "ea6a83bcae14cf5e6bd94e74b3d212f194636fe844081da0f1f2e2667a4265db", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _D...
79,433
c
#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 #endif #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <spawn.h> #include <sys/wait.h> #include "test.h" #define TEST(f, x) (void)( \ (r = (f)) == (x) || \ t_error("%s failed, got %d want %d\n", #f, r, x) ) #d...
27.39
36
(translation_unit) "#ifndef _XOPEN_SOURCE\n#define _XOPEN_SOURCE 700\n#endif\n#include <stdlib.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <errno.h>\n#include <string.h>\n#include <spawn.h>\n#include <sys/wait.h>\n#include "test.h"\n\n#define TEST(f, x) (void)( \\n (r = (f)) == (x) || \\n t_error("%s failed, ...
347
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.39, "nodes": 200, "errors": 0, "source_hash": "c03e1b90a6bf95ea126ed536afd7777efb894a85497fc184595d5ed3e959cb2c", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,434
c
#ifndef REDUNDANTHEATER_H_ #define REDUNDANTHEATER_H_ #include "Heater.h" class RedundantHeater { public: struct Parameters { Parameters(uint32_t objectIdHeater0, uint32_t objectIdHeater1, uint8_t switch0Heater0, uint8_t switch1Heater0, uint8_t switch0Heater1, uint8_t switch1Heater1) : objectIdHeater0...
31.53
36
(translation_unit) "#ifndef REDUNDANTHEATER_H_\n#define REDUNDANTHEATER_H_\n\n#include "Heater.h"\n\nclass RedundantHeater {\npublic:\n\n struct Parameters {\n Parameters(uint32_t objectIdHeater0, uint32_t objectIdHeater1,\n uint8_t switch0Heater0, uint8_t switch1Heater0,\n uint8_t switch0Heater1, uint8_t switch...
283
15
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.53, "nodes": 183, "errors": 0, "source_hash": "0085a4ac8012e2325aef21e0bdd40a9a65d80fb07dc99adb77f177e446e45980", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,435
c
#ifndef _MILLIS_H_ #define _MILLIS_H_ #ifdef __cplusplus extern "C" { #endif unsigned int millis(); #ifdef __cplusplus } #endif #endif
12.5
10
(translation_unit) "#ifndef _MILLIS_H_\n#define _MILLIS_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nunsigned int millis();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (preproc_ifdef) "#ifndef _MILLIS_H_\n#define _MILLIS_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nunsigned int millis();\n\n#ifdef __cpluspl...
37
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.5, "nodes": 27, "errors": 0, "source_hash": "124f16f375aef0aff254cc648681c6d027082d47e0bff7abdd3c9117b7e48989", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,436
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SAMRequestItem.h" @interface QQRedPointTaskInfoItem : SAMRequestItem { } - (char *)getRequestBuffer; - (_Bool)isEqual:(id)arg1; - (id)notifyRespBuffer:(const char *)arg1 len:(i...
26.87
15
(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 "SAMRequestItem.h"\n\n@interface QQRedPointTaskInfoItem : SAMRequestItem\n{\n}\n\n- (char *)getRequestBuffer;\n- (_Bool)isEqual:(id)arg1;\n- (id)notifyRe...
122
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.87, "nodes": 68, "errors": 0, "source_hash": "af10a4c4679cc072d28d16e89318b9a09237d0d60dbf40444d40ecc611dbcf77", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,437
c
class sbugger_state : public driver_device { public: sbugger_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } UINT8 *m_videoram; UINT8 *m_videoram_attr; tilemap_t *m_tilemap; }; /*----------- defined in video/sbugger.c -----------*/ ...
22.8
20
(translation_unit) "class sbugger_state : public driver_device \n{ \npublic: \n sbugger_state(const machine_config &mconfig, device_type type, const char *tag) \n : driver_device(mconfig, type, tag) { } \n \n UINT8 *m_videoram; \n UINT8 *m_videoram_attr; \n \n tilemap_t *m_tilemap; \n}; \n \n \n/*----------- defined i...
116
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.8, "nodes": 63, "errors": 0, "source_hash": "c86b1527c94c2a417d93b43adb8a21a320ee075f608559b0881a95dcd9783f8a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cla...
79,438
c
// // SearchResultCell.h // TaiYiToken // // Created by 张元一 on 2018/11/13. // Copyright © 2018 admin. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SearchResultCell : UITableViewCell @property (nonatomic, strong) UILabel * symbollb; @property(nonatomic)UIButton *controlBtn; @...
23.5
14
(translation_unit) "//\n// SearchResultCell.h\n// TaiYiToken\n//\n// Created by 张元一 on 2018/11/13.\n// Copyright © 2018 admin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SearchResultCell : UITableViewCell\n@property (nonatomic, strong) UILabel * symbollb;\n@property...
60
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.5, "nodes": 42, "errors": 0, "source_hash": "8606118c6adc4068a6b04c0e7a2ea41927fbee84c32bd028abd526bc4080858f", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
79,439
c
// File: prEmitter.h /** * Copyright 2014 <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 applicab...
28.8
61
(translation_unit) "// File: prEmitter.h\n/**\n * Copyright 2014 <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...
189
9
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 28.8, "nodes": 89, "errors": 0, "source_hash": "d3a0fd75923c82163c93817b80d3116be6ee814e47d847a96ab3e00cf7ff7c28", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,440
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * PCM3008 ALSA SoC Layer * * Author: <NAME> * Copyright (C) 2008 Lyrtech inc */ #ifndef __LINUX_SND_SOC_PCM3008_H #define __LINUX_SND_SOC_PCM3008_H struct pcm3008_setup_data { unsigned dem0_pin; unsigned dem1_pin; unsigned pdad_pin; unsigned pdda_pin; }; #endif...
18.88
16
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * PCM3008 ALSA SoC Layer\n *\n * Author: <NAME>\n * Copyright (C) 2008 Lyrtech inc\n */\n\n#ifndef __LINUX_SND_SOC_PCM3008_H\n#define __LINUX_SND_SOC_PCM3008_H\n\nstruct pcm3008_setup_data {\n unsigned dem0_pin;\n unsigned dem1_pin;\n unsigned pdad_p...
37
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.88, "nodes": 26, "errors": 0, "source_hash": "a41477e9f3bb39a2510ea3638a5835d1029bae38f67bbc523da2b781099ee2cd", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,441
c
inherit "obj/armour"; start() { set_class(2); set_slot("torso"); set_name("dress"); set_alias("dress"); set_short("A black velvet dress"); set_long("This dress is as black as a raven, and quite thick"); set_value(10); set_weight(1); }
22.73
11
(translation_unit) "inherit "obj/armour";\n\nstart() {\nset_class(2);\n set_slot("torso");\n set_name("dress");\n set_alias("dress");\n set_short("A black velvet dress");\n set_long("This dress is as black as a raven, and quite thick");\n set_value(10);\n set_weight(1);\n\n}\n\n\n" (expression_stat...
98
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.73, "nodes": 38, "errors": 0, "source_hash": "e2411a980c96aaefbe250ff637b64d9cc87b8c33a9b3dd2b06ad661635258833", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
79,442
c
// // XVIEWLocationManager.h // XVIEWLocationManager // // Created by yyj on 2019/1/4. // Copyright © 2019 zd. All rights reserved. // #import <Foundation/Foundation.h> @interface XVIEWLocationManager : NSObject /** * 单例 */ + (instancetype)sharedLocationManager; /** * 定位 @param param callback回调方法 */ -...
18.54
35
(translation_unit) "//\n// XVIEWLocationManager.h\n// XVIEWLocationManager\n//\n// Created by yyj on 2019/1/4.\n// Copyright © 2019 zd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XVIEWLocationManager : NSObject\n\n/**\n * 单例\n */\n+ (instancetype)sharedLocationManager;\n\n/**\n * ...
116
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.54, "nodes": 69, "errors": 0, "source_hash": "b5bd479e4033db1b129946698873f65946d141b5467388e2a4ba7224bbda77dc", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,443
c
// Use of this source code is governed by a BSD 3-Clause License // that can be found in the LICENSE file. // Author: caozhiyi (<EMAIL>) // Copyright <<EMAIL>> #ifndef FOUNDATION_LOG_STDOUT_LOGGER_H_ #define FOUNDATION_LOG_STDOUT_LOGGER_H_ #include <mutex> #include <memory> #include "foundation/log/logger_interface...
29.08
25
(translation_unit) "// Use of this source code is governed by a BSD 3-Clause License\n// that can be found in the LICENSE file.\n\n// Author: caozhiyi (<EMAIL>)\n// Copyright <<EMAIL>>\n\n#ifndef FOUNDATION_LOG_STDOUT_LOGGER_H_\n#define FOUNDATION_LOG_STDOUT_LOGGER_H_\n\n#include <mutex>\n#include <memory>\n\n#include ...
180
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.08, "nodes": 103, "errors": 0, "source_hash": "3cf0824a88df4c5f6e4f5787ad3ab31dff33b2a0591d7e43a557f4357ea1591a", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,444
c
/* Team member: <NAME> Group: CookieZ studentID: S10195450H */ #pragma once #include "Map.h" class State { protected: Stack<State*>* states; sf::RenderWindow* window; Map<string, int>* supportedKeys; Map<string, int> keybinds; Vector<sf::Texture> textures; bool quit; bool paused; float keyTime; float keyTime...
22.62
42
(translation_unit) "/*\nTeam member: <NAME>\nGroup: CookieZ\nstudentID: S10195450H\n*/\n#pragma once\n#include "Map.h"\n\nclass State\n{\nprotected:\n Stack<State*>* states;\n sf::RenderWindow* window;\n Map<string, int>* supportedKeys;\n Map<string, int> keybinds;\n\n Vector<sf::Texture> textures;\n bool quit;\n bool ...
349
25
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.62, "nodes": 228, "errors": 0, "source_hash": "1d7886df566680390262dfdf960631a3d3689c46df11fe79070e89fb7b077169", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,445
c
// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: <NAME> // #ifndef CREDENTIALHELPER_H #define CREDENTIALHELPER_H #include <QObject> #include <...
31.54
37
(translation_unit) "//\n// Copyright (c) 2016, Scientific Toolworks, Inc.\n//\n// This software is licensed under the MIT License. The LICENSE.md file\n// describes the conditions under which this software may be distributed.\n//\n// Author: <NAME>\n//\n\n#ifndef CREDENTIALHELPER_H\n#define CREDENTIALHELPER_H\...
167
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.54, "nodes": 85, "errors": 0, "source_hash": "16ddc4f039c9f805072cdfb0971b1d8e76407fec8073de73aba5a3003a25098a", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,446
c
/* ------------------------------------------------------------------------- * * File: xsal_wait_ready.c * * Copyright: 2006 Delphi Technologies, Inc., All Rights Reserved * Information Contained Herein Is Proprietary and Confidential * * Author: <NAME> (<EMAIL>) * * Description: Imp...
31.08
63
(translation_unit) "/* -------------------------------------------------------------------------\n *\n * File: xsal_wait_ready.c\n *\n * Copyright: 2006 Delphi Technologies, Inc., All Rights Reserved\n * Information Contained Herein Is Proprietary and Confidential\n *\n * Author: <NAME> (<EMA...
205
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.08, "nodes": 111, "errors": 0, "source_hash": "ab5b849a439b4921b5d84bd5c1b49d0892a7d38a79961294e28b065959ac1008", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,447
c
#pragma once #include <string> #include <iterator> #include <algorithm> namespace http { // the client can send a body in the message struct body { body() = default; body(body&&) = default; body(const body&) = default; body& operator = (const body&) = default; body& operator = (body&) = default; ...
27.74
34
(translation_unit) "#pragma once\n#include <string>\n#include <iterator>\n#include <algorithm>\n\n\nnamespace http\n{\n\n// the client can send a body in the message\nstruct body\n{\n body() = default;\n body(body&&) = default;\n body(const body&) = default;\n body& operator = (const body&) = default;\n ...
294
29
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.74, "nodes": 164, "errors": 0, "source_hash": "dc2dd610fe269f0cb21b68e723fb4dfc61152fe3c770c86ba4ba570e47bf8ad3", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,448
c
// Copyright 2017 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 THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_ #include "b...
41.11
53
(translation_unit) "// Copyright 2017 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 THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH...
518
18
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 41.11, "nodes": 273, "errors": 0, "source_hash": "482efc83535e983b36a1f74176361fc111a0e571be37c3a121007020bec1cb45", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,449
c
/* * @Description: * @Author: * @Date: 2019-06-13 14:43:13 * @LastEditTime: 2019-07-08 03:33:46 */ #include "sys_wifi.h" #include "sys_flash.h" #include "sys_iot.h" #include "sys_rtos.h" #include "pro_iot.h" #include "fun_base.h" #include "fun_data.h" #include "fun_iot.h" /** * @description: */ char *clie...
19.72
216
(translation_unit) "/*\n * @Description:\n * @Author: \n * @Date: 2019-06-13 14:43:13\n * @LastEditTime: 2019-07-08 03:33:46\n */\n\n#include "sys_wifi.h"\n#include "sys_flash.h"\n#include "sys_iot.h"\n#include "sys_rtos.h"\n#include "pro_iot.h"\n#include "fun_base.h"\n#include "fun_data.h"\n#include "fun_iot.h"\n\n\n/...
1,109
0
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 19.72, "nodes": 593, "errors": 0, "source_hash": "52c792ca39728bf4c416c53c0e69b0bd7043d121f942f54f0252565f3414b284", "categorized_nodes": 413}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,450
c
#pragma once #include <base/config.h> #include <cassert> #include <exception> #include <limits> #include <iterator> namespace std { class bad_array_length : public std::bad_alloc { public: bad_array_length() throw() { } virtual ~bad_array_length() throw() { } virtual const char* wha...
32.14
131
(translation_unit) "#pragma once \n \n#include <base/config.h> \n#include <cassert> \n#include <exception> \n#include <limits> \n#include <iterator> \n \nnamespace std { \n \n class bad_array_length : public std::bad_alloc \n { \n public: \n bad_array_length() throw() \n { } \n \n virtual ~bad_array_length() throw()...
1,260
49
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 32.14, "nodes": 664, "errors": 0, "source_hash": "8f9d0b93e9c36f9b1f64c370658a884ffcdc9e4bdb3a4d4729602e26b2503592", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,451
c
/* * vim: ts=8:sw=8:tw=79:noet * * Copyright 2012 the Redfish authors * * 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...
32.02
43
(translation_unit) "/*\n * vim: ts=8:sw=8:tw=79:noet\n * \n * Copyright 2012 the Redfish authors\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/lice...
208
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.02, "nodes": 117, "errors": 0, "source_hash": "3ee1d9569e74c70244e92cebf009897717afe46678eb9d20acfbb61694ad50cb", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,452
c
#ifndef MISAKA_EVENTLOOPTHREAD_H #define MISAKA_EVENTLOOPTHREAD_H #include "../base/Thread.h" namespace Misaka { namespace net { class EventLoop; class EventLoopThread { public: typedef std::function<void (EventLoop*)> ThreadInitialCallback; public: EventLoopThread(ThreadInitialCallback cb = ThreadInitialCallbac...
21.21
29
(translation_unit) "#ifndef MISAKA_EVENTLOOPTHREAD_H\n#define MISAKA_EVENTLOOPTHREAD_H\n\n#include "../base/Thread.h"\n\nnamespace Misaka\n{\nnamespace net\n{\n\nclass EventLoop;\n\nclass EventLoopThread {\npublic:\n typedef std::function<void (EventLoop*)> ThreadInitialCallback;\n\npublic:\n EventLoopThread(ThreadInit...
159
3
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.21, "nodes": 95, "errors": 0, "source_hash": "9b0bfff29f84dd6cf9f75c8aa85a0aa29e628dce5c8d7ddcd9b18145c282318b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,453
c
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
40.2
75
(translation_unit) "/*=============================================================================\n\n NifTK: A software platform for medical image computing.\n\n Copyright (c) University College London (UCL). All rights reserved.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied wa...
447
20
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 40.2, "nodes": 241, "errors": 0, "source_hash": "4105fd6cd4cdc76a6dafd1d99def065dfd99d502723994e3261fcb5366e0f459", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,454
c
// // CTMSGChatVoiceInputView.h // ChatMessageKit // // Created by Jeremy on 2019/4/5. // Copyright © 2019 JersiZhu. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, CTMSGVoiceViewType) { CTMSGVoiceViewTypeRecord, CTMSGVoiceViewTypePreview, }; @protocol...
38.27
33
(translation_unit) "//\n// CTMSGChatVoiceInputView.h\n// ChatMessageKit\n//\n// Created by Jeremy on 2019/4/5.\n// Copyright © 2019 JersiZhu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSUInteger, CTMSGVoiceViewType) {\n CTMSGVoiceViewTypeRecord,\n CTMSGV...
289
58
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 38.27, "nodes": 207, "errors": 0, "source_hash": "cb9259d9b06c3a6e8109af841c73608bf47908cc326cb8f6c1313479d1819e39", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
79,455
c
#ifndef WTRank_h #define WTRank_h #include "IRank.h" #include <sdsl/wavelet_trees.hpp> using namespace sdsl; //! Rank based on a Wavelet Tree class WTRank: public IRank { private: wt_huff<> *wt; public: WTRank(wt_huff<> *w_tree) { this->wt = w_tree; } ~WTRank(){ } ...
17.05
22
(translation_unit) "#ifndef WTRank_h\n#define WTRank_h\n\n#include "IRank.h"\n#include <sdsl/wavelet_trees.hpp>\n\nusing namespace sdsl;\n\n//! Rank based on a Wavelet Tree\nclass WTRank: public IRank {\n \nprivate:\n wt_huff<> *wt;\n \npublic:\n WTRank(wt_huff<> *w_tree) {\n this->wt = w_tree;\n ...
107
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 17.05, "nodes": 65, "errors": 0, "source_hash": "dcfcaea2c7e8334df213035584d7fae3eb4a37d9edfc60542811d16efac907ba", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,456
c
#include "assist.h" #include "axe/iter.h" #include "axe/vector.h" #include "axe/algo.h" #include "axe/base.h" #include "axut.h" #include <assert.h> #include <setjmp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> static void create(axut_runner *r) { ax_base* base = ax_base_create(); ax_vector_r vec_...
30.7
212
(translation_unit) "#include "assist.h"\n\n#include "axe/iter.h"\n#include "axe/vector.h"\n#include "axe/algo.h"\n#include "axe/base.h"\n\n#include "axut.h"\n\n#include <assert.h>\n#include <setjmp.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n\nstatic void create(axut_runner *r)\n{\n ax_base* base ...
2,786
2
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 30.7, "nodes": 1665, "errors": 0, "source_hash": "2f3c16219eca7d7dd2640e728e625132be2a301b54d981247ad56f755c04c2a2", "categorized_nodes": 1192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,457
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char const *argv[]) { // initializing the number of lines int lines = 0; int chars; //creating the file FILE *pointerToFile = NULL; //opening the file for writing pointerToFile = fopen("test_file.txt", "w+"); ...
18.79
47
(translation_unit) "#include <stdio.h>\n\n#include <stdlib.h>\n\n\n\nint main(int argc, char const *argv[])\n\n{\n\n\n\n\n\n // initializing the number of lines\n\n int lines = 0;\n\n int chars;\n\n\n\n //creating the file\n\n FILE *pointerToFile = NULL;\n\n\n\n //opening the file for writing\n\n p...
238
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 18.79, "nodes": 127, "errors": 0, "source_hash": "391825cb9881be00722d4cdca27741c39a4ed7abfb40086426bede84bb1ea53a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,458
c
void createb(b, r, c, m, volt, mcurrent) int r, c, m, **mcurrent; float **volt, *b; { int i, j, k; /*inizializzo b a zero*/ for(i=0;i<=m-1; i++) b[i]=0; /*ora inserisco i valori in b*/ for(k=1;k<c-1;k=k+r+1) for(i=0;i<=r-1; i++) for(j=0;j<=r-1; j++) if(mcurrent[i][j+k]==1 && volt[i][j]!=0) b[k/r]=b[k/r...
18.44
18
(translation_unit) "void createb(b, r, c, m, volt, mcurrent)\n\nint r, c, m, **mcurrent;\nfloat **volt, *b;\n\n{\n\nint i, j, k;\n\n/*inizializzo b a zero*/\nfor(i=0;i<=m-1; i++)\n b[i]=0;\n\n\n/*ora inserisco i valori in b*/\nfor(k=1;k<c-1;k=k+r+1)\n for(i=0;i<=r-1; i++)\n for(j=0;j<=r-1; j++)\n if(mcurrent[i][j+k]...
221
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.44, "nodes": 153, "errors": 0, "source_hash": "f08ed659908182de6207de71f5fdecf8d2663ae23c4a995902bf9c813cc4fbfb", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
79,459
c
#include <config.h> #include "seaboot.h" #include <stdio.h> #include <stdlib.h> #include <time.h> BOOT(init); void init() { printf("Hello World!\n"); boot.mode = WAIT; boot.debug = false; int test = 0; boot.options.add('t', "test", OPTIONAL_ARGUMENT, true, lambda(bool, (const char* argument) { if (argument ...
28.25
32
(translation_unit) "#include <config.h>\n#include "seaboot.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\nBOOT(init);\n\nvoid init() {\n printf("Hello World!\n");\n\n boot.mode = WAIT;\n boot.debug = false;\n\n int test = 0;\n boot.options.add('t', "test", OPTIONAL_ARGUMENT, true, lambda(bool, (con...
369
7
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 28.25, "nodes": 208, "errors": 0, "source_hash": "27b91ce7eeb44fbf779cb02bb70b84d4b2413e679226c92098f039fbb358d249", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,460
c
//Name: <NAME> //Student ID: 1001825785 /*add include for FileLib.h */ #include "FileLib.h" #include "MovieTheater.h" #include <ctype.h> void get_command_line_parameter(char *argv[], char ParamName[], char ParamValue[]) { int i = 0; while (argv[++i] != NULL) { if (!strncmp(argv[i], ParamName, strlen(ParamName)...
29.82
79
(translation_unit) "//Name: <NAME>\n//Student ID: 1001825785\n/*add include for FileLib.h */\n#include "FileLib.h"\n#include "MovieTheater.h"\n#include <ctype.h>\nvoid get_command_line_parameter(char *argv[], char ParamName[], char ParamValue[])\n{\n int i = 0; \n \n while (argv[++i] != NULL)\n {\n if (!strncmp(argv[...
544
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 29.82, "nodes": 320, "errors": 0, "source_hash": "7c7d9f3deb3f323deebbb8d1e3f60f27eb5fa1c3f800d7aacf959746f5c170b7", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,461
c
#undef CONFIG_NET_CLS_TCINDEX
30
1
(translation_unit) "#undef CONFIG_NET_CLS_TCINDEX\n" (preproc_call) "#undef CONFIG_NET_CLS_TCINDEX\n" (preproc_directive) "#undef" (preproc_arg) "CONFIG_NET_CLS_TCINDEX"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 30.0, "nodes": 3, "errors": 0, "source_hash": "ee4896a0d9db85dbaf9a1556954c58c64ba533ee1322c7947bfbc12cf750f4bb", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef CONFI...
79,462
c
/* -*- c++ -*- */ /* * Copyright 2003 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option...
32.14
59
(translation_unit) "/* -*- c++ -*- */\n/*\n * Copyright 2003 Free Software Foundation, Inc.\n *\n * This file is part of GNU Radio\n *\n * GNU Radio is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either v...
177
11
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 32.14, "nodes": 95, "errors": 0, "source_hash": "4b9190eab59aa1243ab727cd2c84ddad6c9d9cddc1251cd13816dcec339767c6", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,463
c
#include <wx/wx.h> // 定义主窗口类 class MyFrame : public wxFrame { public: // 主窗口类的构造函数 MyFrame(const wxString& title); // 事件处理函数 void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); private: // 声明事件表 DECLARE_EVENT_TABLE() void OnOpenFile(wxCommandEvent & e...
27.4
15
(translation_unit) "#include <wx/wx.h>\n\n// 定义主窗口类\nclass MyFrame : public wxFrame\n{\npublic: // 主窗口类的构造函数 \n MyFrame(const wxString& title); // 事件处理函数 \n void OnQuit(wxCommandEvent& event); \n void OnAbout(wxCommandEvent& event);\n private: // 声明事件表 \n DECLARE_EVENT_TABLE()\n\n vo...
117
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.4, "nodes": 77, "errors": 0, "source_hash": "3b849c7bd5af4746fb677e0b3237691a9bd03acf920bad8c0e3b71ea45b686fd", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,464
c
#pragma once typedef enum { FORCE_ERROR_UNKNOWN = -1, FORCE_ERROR_NONE = 0, FORCE_ERROR_ALLOC_HANDLE_ENV = 1, FORCE_ERROR_ALLOC_HANDLE_DBC = 2, FORCE_ERROR_SERVER_NAME_SIZE = 3, FORCE_ERROR_NO_DATA_SOURCE = 4, FORCE_ERROR_MISSING_PROCEDURE = 5, FORCE_ERROR_GCI_INIT = 6, FORCE_ERROR_VERSION = 7, } ...
22.44
16
(translation_unit) "#pragma once \n \ntypedef enum { \n FORCE_ERROR_UNKNOWN = -1, \n FORCE_ERROR_NONE = 0, \n FORCE_ERROR_ALLOC_HANDLE_ENV = 1, \n FORCE_ERROR_ALLOC_HANDLE_DBC = 2, \n FORCE_ERROR_SERVER_NAME_SIZE = 3, \n FORCE_ERROR_NO_DATA_SOURCE = 4, \n FORCE_ERROR_MISSING_PROCEDURE = 5, \n FORCE_ERROR_GCI_INIT = 6, ...
65
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.44, "nodes": 50, "errors": 0, "source_hash": "ba5c9a4afe20bffcdad3323a157f00f529104edb5ecc45e0eeb6e74182c76287", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,465
c
#ifndef TEST_RSTEMMER_H #define TEST_RSTEMMER_H #include "StemmerPorter.h" #include <QObject> #include <sstream> using namespace std; Q_DECLARE_METATYPE(std::string); Q_DECLARE_METATYPE(std::wstring); class TestRStemmer : public QObject { Q_OBJECT public: explicit TestRStemmer(QObject *parent = 0); ...
19.83
23
(translation_unit) "#ifndef TEST_RSTEMMER_H \n#define TEST_RSTEMMER_H \n#include "StemmerPorter.h" \n#include <QObject> \n#include <sstream> \n \nusing namespace std; \nQ_DECLARE_METATYPE(std::string); \nQ_DECLARE_METATYPE(std::wstring); \n \nclass TestRStemmer : public QObject \n{ \n Q_OBJECT \npublic: \n explicit Tes...
107
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.83, "nodes": 65, "errors": 0, "source_hash": "615b0b48c19055392cfa44a767d84f597ab4f912884af02ef767b538c8ddc49b", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,466
c
/* * Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD"). * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any late...
30.19
130
(translation_unit) "/* \n* Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD"). \n* \n* This library is free software; you can redistribute it and/or modify \n* it under the terms of the GNU Lesser General Public License as \n* published by the Free Software Foundation; either version 2.1 of the \n* License, or...
490
1
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 30.19, "nodes": 295, "errors": 0, "source_hash": "b83e03fb3668420974a75d915f5078c9a1b8d9bd0b15f6beec114da399022ded", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,467
c
#pragma once #include <vector> #include <string> using namespace std; //================================================================================================// /****************** ** Sprite sheets ** *******************/ //===================================================================...
27.64
28
(translation_unit) "#pragma once\n#include <vector>\n#include <string>\nusing namespace std;\n//================================================================================================//\n /******************\n ** Sprite sheets ** \n *******************/\n//=======================================...
200
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.64, "nodes": 136, "errors": 0, "source_hash": "61115c459a6747fd96fc244d12c7f54f1e4bd5f49388eceec64e184265f02788", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,468
c
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style License that can be found at "https://github...
37.32
93
(translation_unit) "/* Copyright (C) 2010-2019, The Regents of The University of Michigan.\n All rights reserved.\n\n This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab\n under the direction of <NAME>, <EMAIL>. Use of this code is governed by an\n MIT-style License that can be...
501
22
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 37.32, "nodes": 314, "errors": 0, "source_hash": "de9037f9326c74dbd6ba9846d6875a67532b465485ceec5eba07c29dd87c9102", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef UI_COM...
79,469
c
// // BR__Name__Address.c // WalletKitCore // // Created by __USER__ on __DATE__. // Copyright © __YEAR__ Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // #include "BR__Name...
33.07
162
(translation_unit) "//\n// BR__Name__Address.c\n// WalletKitCore\n//\n// Created by __USER__ on __DATE__.\n// Copyright © __YEAR__ Breadwinner AG. All rights reserved.\n//\n// See the LICENSE file at the project root for license information.\n// See the CONTRIBUTORS file at the project root for a list of contribu...
1,275
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 33.07, "nodes": 760, "errors": 0, "source_hash": "61e3636394d388745ce9fb7d31eae7b57440004f90a21e145fc91713f44f238c", "categorized_nodes": 539}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
79,470
c
/* * Copyright (c) 2014 <NAME> * and Washington University in St. Louis * * 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 re...
29.96
75
(translation_unit) "/*\n * Copyright (c) 2014 <NAME> \n * and Washington University in St. Louis\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...
446
28
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 29.96, "nodes": 279, "errors": 0, "source_hash": "654e4c4d2296d727ff19d425b72c7f2ff5c2aaa4bbe40384e709bb9fad8544c4", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,471
c
#pragma once #include "EventBase.h" #include "glm.hpp" namespace Simulation { class PlayerInteractEvent : public EventBase { public: PlayerInteractEvent() {} PlayerInteractEvent(int frame, int playerID, int objectID, glm::vec3 position); virtual ~PlayerInteractEvent(); virtual void PopulateFromJSON(web::...
26.32
19
(translation_unit) "#pragma once\n\n#include "EventBase.h"\n\n#include "glm.hpp"\n\nnamespace Simulation\n{\n class PlayerInteractEvent : public EventBase\n {\n public:\n PlayerInteractEvent() {}\n PlayerInteractEvent(int frame, int playerID, int objectID, glm::vec3 position);\n virtual ~PlayerInteractEvent();\n\n ...
162
13
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.32, "nodes": 91, "errors": 0, "source_hash": "8d46ba3f1421a64d7040d22a1603cb25381d49f2163efd9f3b7ec4875fd274f4", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,472
c
//===- ArithmeticToLLVM.h - Arith to LLVM dialect conversion ----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
42.9
21
(translation_unit) "//===- ArithmeticToLLVM.h - Arith to LLVM dialect conversion ----*- C++ -*-===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
82
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 42.9, "nodes": 44, "errors": 0, "source_hash": "a5ea2820376a307264f0543aafbefff03e5827930537ccf6c595a4b906834bc4", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
79,473
c
#pragma once #include "JuceHeader.h" #include "Controller.h" #include "Scene.h" class Cursor; namespace juce { class XmlElement; } namespace juce { class MidiMessage; } namespace juce { class MidiBuffer; } class ControllerValue; class MidiMorph : public juce::ChangeBroadcaster { public: MidiMorph(); ~M...
34.1
96
(translation_unit) "#pragma once\n\n\n#include "JuceHeader.h"\n#include "Controller.h"\n#include "Scene.h"\n\nclass Cursor;\nnamespace juce { class XmlElement; } \nnamespace juce { class MidiMessage; } \nnamespace juce { class MidiBuffer; } \nclass ControllerValue;\n\nclass MidiMorph : public juce::ChangeBroadcaster {\...
750
13
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 34.1, "nodes": 496, "errors": 0, "source_hash": "6a75442ffcdd60cfd65c50b98abb65cdbfeb0c39173edb034182321aee0910dd", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,474
c
///> [Serializable] #ifndef GAMETYPE_H #define GAMETYPE_H #include "EngineData.h" #include "WorldResources.h" #include "EngineObject.h" #include "SVector.h" #include "RtsAiEngine.h" namespace IStrategizer { class WorldResources; ///> class=GameType class GameType : public EngineObject { OBJEC...
36.73
44
(translation_unit) "///> [Serializable]\n#ifndef GAMETYPE_H\n#define GAMETYPE_H\n\n#include "EngineData.h"\n#include "WorldResources.h"\n#include "EngineObject.h"\n#include "SVector.h"\n#include "RtsAiEngine.h"\n\nnamespace IStrategizer\n{\n class WorldResources;\n\n ///> class=GameType\n class GameType : publ...
404
17
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.73, "nodes": 221, "errors": 0, "source_hash": "1b5492337ee29107fc8476c97c5bbe09e6f4bdff733347ede2677acd92ae4c61", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,475
c
#pragma once #include "World.h" #include "Subsystems/Drive/CrabInfo.h" #include <memory> class Step { public: Step() = default; virtual ~Step() = default; virtual bool Run(std::shared_ptr<World> world) = 0; virtual const CrabInfo* GetCrabInfo() { return crab.get(); } virtual bool IsManualDriveControl() const { ...
26.94
16
(translation_unit) "#pragma once\n\n#include "World.h"\n#include "Subsystems/Drive/CrabInfo.h"\n#include <memory>\n\n\nclass Step {\npublic:\n Step() = default;\n virtual ~Step() = default;\n virtual bool Run(std::shared_ptr<World> world) = 0;\n virtual const CrabInfo* GetCrabInfo() { return crab.get(); }\n virtual boo...
156
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.94, "nodes": 94, "errors": 0, "source_hash": "7ecffbed025a01e5ad0f7b6339590b71a6705235b3d4d851b4e2debb3caf9898", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,476
c
// // MHVBlobUploadRequest.h // MHVLib // // Copyright (c) 2017 Microsoft Corporation. All rights reserved. // // 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/...
35.57
47
(translation_unit) "//\n// MHVBlobUploadRequest.h\n// MHVLib\n//\n// Copyright (c) 2017 Microsoft Corporation. All rights reserved.\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\...
142
14
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 35.57, "nodes": 84, "errors": 0, "source_hash": "036cd5588919dbf44d147f95746b857149f17987ac3da34e49528a4139e795ef", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,477
c
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001, 06 by <NAME> (<EMAIL>) * Copyright (C) 2001 MIPS Technologies, Inc. */ #include <linux/kernel.h> #include <linux/exp...
24.6
112
(translation_unit) "/*\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this archive\n * for more details.\n *\n * Copyright (C) 2001, 06 by <NAME> (<EMAIL>)\n * Copyright (C) 2001 MIPS Technologies, Inc.\n */\n#include <linux/k...
403
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 24.6, "nodes": 217, "errors": 0, "source_hash": "738ea24ffda04acb1652dc3a586b3b0280206c4c3aa262a92796db9d89fccfb7", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,478
c
/* * Copyright 2016 The PeerApi Project Authors. All rights reserved. * * <NAME> */ #ifndef __PEERAPI_COMMON_H__ #define __PEERAPI_COMMON_H__ namespace peerapi { #define function_peer [&] enum CloseCode { // Success CLOSE_NORMAL = 0, // Failure CLOSE_GOING_AWAY = 0x80000000, CLOSE_ABNORM...
20.23
26
(translation_unit) "/*\n * Copyright 2016 The PeerApi Project Authors. All rights reserved.\n *\n * <NAME>\n */\n\n\n#ifndef __PEERAPI_COMMON_H__\n#define __PEERAPI_COMMON_H__\n\nnamespace peerapi {\n\n#define function_peer [&]\n\nenum CloseCode {\n // Success\n CLOSE_NORMAL = 0,\n\n // Failure\n CLOSE_GOI...
84
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.23, "nodes": 56, "errors": 0, "source_hash": "f8a923d803ab3c54bbec156b83dab878c260361f2f4c995ea5cef5e7a2a3bba6", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,479
c
/***************************************************************************//** * \file luo_iter.h * \author <NAME> (<EMAIL>) * \based on code by <NAME> (<EMAIL>) * \brief Declaration of the class luo_iter. */ #pragma once #include "NavierStokesSolver.h" #include "luo_base.h" class luo_iter: public luo_base {...
28.07
42
(translation_unit) "/***************************************************************************//**\n * \file luo_iter.h\n * \author <NAME> (<EMAIL>)\n * \based on code by <NAME> (<EMAIL>)\n * \brief Declaration of the class luo_iter.\n */\n\n#pragma once\n\n#include "NavierStokesSolver.h"\n#include "luo_base.h"\n\nc...
225
7
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.07, "nodes": 136, "errors": 0, "source_hash": "77073b012483690bdc566f74a43e2195d3ffeb54636789c0014181ab2b03b3ca", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,480
c
/******************************************************************************/ /*! @addtogroup bfd service @file bfdd.c @brief メインエントリポイント ******************************************************************************/ #include "bfdd.h" static int QUIT = 0; // void sigint_h(int sig) { UNUSED(sig);...
30.85
101
(translation_unit) "/******************************************************************************/\n/*! @addtogroup bfd service\n @file bfdd.c\n @brief メインエントリポイント\n ******************************************************************************/\n#include "bfdd.h"\n\n\nstatic int QUIT = 0;\n//\nvoid sigint...
809
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 30.85, "nodes": 424, "errors": 0, "source_hash": "2fc630f8efe6b57eca31be9322dcbf4e7044d59d6cbcc36f9764c9ebe4eb27ac", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ati...
79,481
c
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-08-16 armink first implementation */ #include <rtthread.h> #include <fal.h> #define APP_VERSION "1.0.0" /** * Function ota_app_vtor_recon...
26.55
31
(translation_unit) "/*\n * Copyright (c) 2006-2018, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2018-08-16 armink first implementation\n */\n\n#include <rtthread.h>\n#include <fal.h>\n\n#define APP_VERSION "1.0.0"\n\n/*...
97
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 26.55, "nodes": 57, "errors": 0, "source_hash": "f85989e52121d1e5b0e74af3d5cb2eed35209c53f832469d19a8c85e7184e828", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,482
c
#pragma once #include "Root.h" namespace ecs { /** * @brief Class representing interface used in ECS systems. */ class Interface { public: /** * @brief The constructor. * * @param id The ID of an entity. * @param index The index of an entity in the buffer. * @param flag_bitset The flag bitset of an enti...
25.53
51
(translation_unit) "#pragma once\n\n#include "Root.h"\n\nnamespace ecs\n{\n\n/**\n * @brief Class representing interface used in ECS systems.\n */\nclass Interface\n{\npublic:\n /**\n * @brief The constructor.\n *\n * @param id The ID of an entity.\n * @param index The index of an entity in the buffer.\n * @param ...
153
13
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.53, "nodes": 63, "errors": 0, "source_hash": "5621c2e9c3ae813216ca7b391395512c39525f43c7c9f497898fdb157f8521c4", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,483
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 * */ #ifndef CRYINCLUDE_EDITOR_DOCMULTIARCHIVE_H #define CRYINCLUDE_EDITOR_DOCMULTIARCHIVE_H #pragma onc...
31.92
52
(translation_unit) "/*\n * 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.\n * \n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n\n#ifndef CRYINCLUDE_EDITOR_DOCMULTIARCHIVE_H\n#define CRYINCLUDE_EDITOR_...
205
2
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 31.92, "nodes": 125, "errors": 0, "source_hash": "2ec85d67d1d4083e5f5b4065e20a2807cd8769f3a23d6e39e04bc5337094705d", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,484
c
/* XMRig * Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh> * Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free...
29.24
58
(translation_unit) "/* XMRig\n * Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>\n * Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <<EMAIL>>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as p...
230
12
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.24, "nodes": 149, "errors": 0, "source_hash": "f4d503ab42231e87e37fca355b785c9ca3639862efcb867d6a7694d80480e56d", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,485
c
#pragma once #include "ExportDef.h" namespace Pdf { class PDF_API pdfTState { public: pdfTState(void); virtual ~pdfTState(void); }; };
12.7
10
(translation_unit) "#pragma once\n#include "ExportDef.h"\n\nnamespace Pdf {\n\nclass PDF_API pdfTState\n{\npublic:\n pdfTState(void);\n virtual ~pdfTState(void);\n};\n\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ExportDef.h"\n" (#i...
51
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.7, "nodes": 27, "errors": 0, "source_hash": "5a6865ed9aac4317df0e9dbc2db3a13c0c07815e6cea52a95a69a5e0d9f8d4f5", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,486
c
// -*- C++ -*- /* This software was produced by NIST, an agency of the U.S. government, * and by statute is not subject to copyright in the United States. * Recipients of this software assume all responsibilities associated * with its operation, modification and maintenance. However, to * facilitate maintenance we...
37.33
24
(translation_unit) "// -*- C++ -*-\n\n/* This software was produced by NIST, an agency of the U.S. government,\n * and by statute is not subject to copyright in the United States.\n * Recipients of this software assume all responsibilities associated\n * with its operation, modification and maintenance. However, to\n *...
139
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.33, "nodes": 68, "errors": 0, "source_hash": "8b1e8e55596958f90617c935ff68641d0ec163bae0ee0c43728f335beddcec55", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,487
c
#include <stdio.h> #include <stdlib.h> #include <gmp.h> mpz_t temp1, temp2, t, t239, pows; void arctg(mpz_t res, unsigned long base, mpz_t pows) { int i, neg = 1; mpz_tdiv_q_ui(res, pows, base); mpz_set(temp1, res); for (i = 3; ; i += 2) { mpz_tdiv_q_ui(temp1, temp1, base * base); mpz_t...
23.05
65
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <gmp.h>\n\nmpz_t temp1, temp2, t, t239, pows;\nvoid arctg(mpz_t res, unsigned long base, mpz_t pows)\n{\n int i, neg = 1;\n mpz_tdiv_q_ui(res, pows, base);\n mpz_set(temp1, res);\n for (i = 3; ; i += 2) {\n mpz_tdiv_q_ui(temp1, tem...
532
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 23.05, "nodes": 317, "errors": 0, "source_hash": "ed1f38f1a5908ad34cc5de7a4602309c07d92e231e992c7f0e51a3bbb9c485d7", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,488
c
/* * File: myconio.h * Author: <NAME> http://forum.de.selfhtml.org/archiv/2006/10/t138258/ * * Created on 7. Dezember 2008, 14:50 */ #ifdef WIN32 #include <conio.h> #include <windows.h> #include <stdio.h> #include <stdlib.h> // HACK: test if I'am in the windows CMD by trying to request the console mo...
22.65
110
(translation_unit) "/* \n * File: myconio.h\n * Author: <NAME> http://forum.de.selfhtml.org/archiv/2006/10/t138258/\n *\n * Created on 7. Dezember 2008, 14:50\n */\n\n#ifdef WIN32\n #include <conio.h>\n #include <windows.h>\n #include <stdio.h>\n #include <stdlib.h>\n\n// HACK: test if I'am in the windows CMD by...
515
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 22.65, "nodes": 278, "errors": 0, "source_hash": "7732d8474ac2d776e68b33b28c64e07c1adcf4561c1831f8ce7e2c992abc1f77", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
79,489
c
#include <stdlib.h> #include <stdint.h> #include <string.h> #include "sha1.h" #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) #if BYTE_ORDER == LITTLE_ENDIAN #define blk0(i) (block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00) | (rol(block->l[i], 8) & 0x00FF00FF)) #elif BYTE_ORDER == BIG_E...
35.53
191
(translation_unit) "#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n\n#include "sha1.h"\n\n#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n#define blk0(i) (block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00) | (rol(block->l[i], 8) & 0x00FF00FF...
2,645
0
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 35.53, "nodes": 1454, "errors": 0, "source_hash": "7f2b7261023785dc8e8e11ac060489ba63a12cb8372bdd3ecb0b5830a09392b3", "categorized_nodes": 1189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
79,490
c
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef void(^BlockData)(NSArray *data); NS_ASSUME_NONNULL_BEGIN @interface IQKeyboardToolsManage : NSObject + (void)IQKeyboardToolsStart; + (void)IQKeyboardToolsStart:(BlockData)block; + (void)IQKeyboardToolsStartWithMessage:(NSString *)message; + (void...
43.75
16
(translation_unit) "#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\ntypedef void(^BlockData)(NSArray *data);\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface IQKeyboardToolsManage : NSObject\n\n+ (void)IQKeyboardToolsStart;\n\n+ (void)IQKeyboardToolsStart:(BlockData)block;\n\n+ (void)IQKeyboardToolsStartWithMessa...
213
27
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 43.75, "nodes": 133, "errors": 0, "source_hash": "fbc347886ba244c6a7701aa727c72b82dde3a81d9b28573cd40687c7c00307e7", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,491
c
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include "FileIO.h" #include "INIManager.h" #include "Struct.h" #include "split.h" void PatchSplitMain(char* patchEXEFileName) { struct PatchFile thisFile; struct Data Notice; struct Data Patch; struct Data Base; struct Data WriteFile; thisFile = Get...
28.31
147
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <windows.h>\n\n#include "FileIO.h"\n#include "INIManager.h"\n#include "Struct.h"\n\n#include "split.h"\n\nvoid PatchSplitMain(char* patchEXEFileName)\n{\n struct PatchFile thisFile;\n struct Data Notice;\n struct Data Patch;\n struct Data Base;\n str...
1,419
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 28.31, "nodes": 833, "errors": 0, "source_hash": "1d56b0f1a7f5cfd3b4a42600bdc4b4a5e7bd9a1fc48525351b1f90dafe214397", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,492
c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * $File: maverick2_flexport_top.c */ #include <shared/bsl.h> #include <soc/drv.h> #include <soc/defs.h> #include <s...
34.63
263
(translation_unit) "/*\n* \n* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n* \n* Copyright 2007-2020 Broadcom Inc. All rights reserved.\n*\n* $File: maverick2_flexport_top.c\n*/\n\n\n#include <shared/bsl.h>\n#include <soc/drv.h>\n#...
1,830
0
{"language": "c", "success": true, "metadata": {"lines": 263, "avg_line_length": 34.63, "nodes": 1072, "errors": 0, "source_hash": "ef7e6aae09ea6655f58288fdef7136762183c93ca5073bfaef82d3e92bc4f80e", "categorized_nodes": 772}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,493
c
// // Copyright 2020 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
34.65
86
(translation_unit) "//\n// Copyright 2020 Pixar\n//\n// Licensed under the Apache License, Version 2.0 (the "Apache License")\n// with the following modification; you may not use this file except in\n// compliance with the Apache License and the following modification to it:\n// Section 6. Trademarks. is deleted and re...
348
8
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 34.65, "nodes": 206, "errors": 0, "source_hash": "c44d14046aceab9e5b0dab6a3836448d649890240a9203d29b920378ef168158", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,494
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // NOTE: This entire file should be codegen'ed. #pragma once #include <ABI44_0_0ReactCommon/ABI44_0_0JavaTurboModule.h> #include ...
33.92
25
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n// NOTE: This entire file should be codegen'ed.\n\n#pragma once\n\n#include <ABI44_0_0ReactCommon/ABI44_...
101
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 33.92, "nodes": 53, "errors": 0, "source_hash": "e786b3544d014b44f7c6618cb4384c32b37275a307d72266334eb3a0ecbd84a9", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,495
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _BH_RLC_ChannelID_r16_H_ #define _BH_RLC_ChannelID_r16_H_ #include "asn_application.h" /* Including external de...
34.39
36
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef _BH_RLC_ChannelID_r16_H_\n#define _BH_RLC_ChannelID_r16_H_\n\n\n#include "asn_applicati...
111
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.39, "nodes": 76, "errors": 0, "source_hash": "dad29f9ca08470f2a92ee40a4f805ba684f08d229fdfa2715453adaaaad0bdd3", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
79,496
c
// // Document.h // XcodeAutoPackage // // Created by Daniel on 2020/6/13. // Copyright © 2020 Daniel. All rights reserved. // #import <Cocoa/Cocoa.h> @interface Document : NSDocument @end
16.64
11
(translation_unit) "//\n// Document.h\n// XcodeAutoPackage\n//\n// Created by Daniel on 2020/6/13.\n// Copyright © 2020 Daniel. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface Document : NSDocument\n\n\n@end\n\n" (comment) "//" (comment) "// Document.h" (comment) "// XcodeAutoPackage" (c...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.64, "nodes": 11, "errors": 0, "source_hash": "e30195829f35e3a104686ae19536e4e583e00ded52bff10fd9c44b41792bb8c3", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Co...
79,497
c
/* FUNCTION <<fgetc>>---get a character from a file or stream INDEX fgetc ANSI_SYNOPSIS #include <stdio.h> int fgetc(FILE *<[fp]>); TRAD_SYNOPSIS #include <stdio.h> int fgetc(<[fp]>) FILE *<[fp]>; DESCRIPTION Use <<fgetc>> to get the next single character from the file or stream identified by <[fp]>. As a si...
27.54
35
(translation_unit) "/*\nFUNCTION\n<<fgetc>>---get a character from a file or stream\n\nINDEX\n fgetc\n\nANSI_SYNOPSIS\n #include <stdio.h>\n int fgetc(FILE *<[fp]>);\n\nTRAD_SYNOPSIS\n #include <stdio.h>\n int fgetc(<[fp]>)\n FILE *<[fp]>;\n\nDESCRIPTION\nUse <<fgetc>> to get the next single character from the file or ...
40
1
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.54, "nodes": 24, "errors": 0, "source_hash": "62a916aeda5c1890a8a47d30d3db4a6d1537a6e9e774ca3f49e704ca73eb2c97", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,498
c
// ID item #pragma once class IDitem { public: String name; String callSign; String badgeNumber; bool check; IDitem() : check(false) { } ~IDitem() {check = true;} bool operator== (IDitem& item) {return name == item.name;} // *p == *q bool operator> (IDitem& item) {return name > item.name...
27.81
21
(translation_unit) "// ID item\n\n\n#pragma once\n\n\nclass IDitem {\npublic:\nString name;\nString callSign;\nString badgeNumber;\nbool check;\n\n IDitem() : check(false) { }\n ~IDitem() {check = true;}\n\n bool operator== (IDitem& item) {return name == item.name;} // *p == *q\n bool operator> (ID...
211
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.81, "nodes": 123, "errors": 0, "source_hash": "ecce7044d1481bb621fb1e29739e986bdc3243286bec7d615f98a829d0979a3a", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,499