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
// Copyright 2019 Endless Mobile, Inc. // Portions copyright 2015 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. #pragma once #include <sys/types.h> #include <optional> #include <vector> #include <nickle.h> #include...
36.13
15
(translation_unit) "// Copyright 2019 Endless Mobile, Inc.\n// Portions copyright 2015 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#pragma once\n\n#include <sys/types.h>\n\n#include <optional>\n#include <vector>\...
90
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.13, "nodes": 56, "errors": 0, "source_hash": "8c3d68fea9457de099a743a9d2d4840e898f44b893f7e97c382adc2dc8dfb140", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,900
c
// // Created by <NAME> on 23/05/2016. // #ifndef CORE_SIPUSERAGENTHEADER_H #define CORE_SIPUSERAGENTHEADER_H #include "SipHeader.h" class SipUserAgentHeader : public SipHeader { public: SipUserAgentHeader(mapped_buffer_t headerValue) : SipHeader(headerValue) { } virtual const char *getF...
23
21
(translation_unit) "//\n// Created by <NAME> on 23/05/2016.\n//\n\n#ifndef CORE_SIPUSERAGENTHEADER_H\n#define CORE_SIPUSERAGENTHEADER_H\n\n\n#include "SipHeader.h"\n\nclass SipUserAgentHeader : public SipHeader {\n\npublic:\n\n SipUserAgentHeader(mapped_buffer_t headerValue)\n : SipHeader(headerValue) {\n...
99
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.0, "nodes": 51, "errors": 0, "source_hash": "fab3e13a6f84124ef66006d40070e7050903cb2232005210278e967b641a75a4", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
13,901
c
/* * Phoenix-RTOS * * plo - operating system loader * * Syspage * * Copyright 2020 Phoenix Systems * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "../low.h" #include "../plostd.h" #include "../syspage.h" /* Initialization function */ void syspage_init(void) { } /* Syspage's loca...
13.06
86
(translation_unit) "/*\n * Phoenix-RTOS\n *\n * plo - operating system loader\n *\n * Syspage\n *\n * Copyright 2020 Phoenix Systems\n *\n * This file is part of Phoenix-RTOS.\n *\n * %LICENSE%\n */\n\n\n#include "../low.h"\n#include "../plostd.h"\n#include "../syspage.h"\n\n\n\n\n/* Initialization function */\n\nvoid ...
351
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 13.06, "nodes": 217, "errors": 0, "source_hash": "870e30198b9322f8ba683539f00923877ec21de8044e865f3c82f716db77a5d7", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,902
c
/* cstring -- A string library * * Version 1.0 September 2021 * * Copyright (c) 2021, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must r...
29.81
260
(translation_unit) "/* cstring -- A string library\n *\n * Version 1.0 September 2021\n *\n * Copyright (c) 2021, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistr...
2,342
0
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 29.81, "nodes": 1580, "errors": 0, "source_hash": "7406e456e38c09c34f4f6cbb80727c4f3c5e7978ce7e652cf09de5d133f8af81", "categorized_nodes": 1016}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
13,903
c
/* * Copyright 2009 Rensselaer Polytechnic Institute * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
37.66
116
(translation_unit) "/* \n * Copyright 2009 Rensselaer Polytechnic Institute\n * This program is free software; you can redistribute it and/or modify \n * it under the terms of the GNU General Public License as published by \n * the Free Software Foundation; either version 2 of the License, or \n * (at your option) any ...
624
22
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 37.66, "nodes": 372, "errors": 0, "source_hash": "5bd84e5ea9d81b75d46179789de1f2c636319e267d48ce72721d75a9aed3dc74", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,904
c
// // ZCBezierPathView.h // ZCBezierPathLayer // // Created by trustway_mac on 16/5/9. // Copyright © 2016年 trustway_mac. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, ZCBezierPathType) { kTriaPath = 1, // 三角形 kRectPath = 2, // 矩形 kCirclePath = 3,//圆 kOvalPath = 4, //...
25.33
21
(translation_unit) "//\n// ZCBezierPathView.h\n// ZCBezierPathLayer\n//\n// Created by trustway_mac on 16/5/9.\n// Copyright © 2016年 trustway_mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSUInteger, ZCBezierPathType) {\n kTriaPath = 1, // 三角形\n kRectPath = 2, // 矩形\n kCircleP...
105
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.33, "nodes": 68, "errors": 0, "source_hash": "ed72b98c01110ed48ef02837d749e70f84a30686cf9070f81626bc2598c00343", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
13,905
c
/* * Chinese Comment by UTF-8 * * 题目内容 * 请编写一个求字符串长度的递归函数,函数原型为:int strlong(char *string) * * 分析 * 传统艺能:循环转尾递归 */ int strlong(char* string) { if (string[0] == '\0') return 0; else return strlong(string + 1) + 1; }
16.92
13
(translation_unit) "/* \n * Chinese Comment by UTF-8\n * \n * 题目内容\n * 请编写一个求字符串长度的递归函数,函数原型为:int strlong(char *string)\n * \n * 分析\n * 传统艺能:循环转尾递归\n */\n\nint strlong(char* string) {\n if (string[0] == '\0') return 0;\n else return strlong(string + 1) + 1;\n}" (comment) "/* \n * Chinese Comment by UTF-8\n * \n...
54
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.92, "nodes": 35, "errors": 0, "source_hash": "ea9990f7461f5b7fda921332b8911ccfcaea59cbe17644aec920cae7fa994fa8", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": " s...
13,906
c
#include <core/Runtime.h> int runtime_i64_clz(Stack* stack){ return 0; }
18.25
4
(translation_unit) "#include <core/Runtime.h>\n\nint runtime_i64_clz(Stack* stack){\n return 0;\n}\n" (preproc_include) "#include <core/Runtime.h>\n" (#include) "#include" (system_lib_string) "<core/Runtime.h>" (function_definition) "int runtime_i64_clz(Stack* stack){\n return 0;\n}" (primitive_ty...
23
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.25, "nodes": 15, "errors": 0, "source_hash": "38591c86a12e8edca49f91c448883981ce34ea60360a3e26c68500081a7e202d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,907
c
/************************************************************************* * api-execTemplate.h - * * $Id$ * * Copyright (c) INRIA 2015, all rights reserved * * AUTHOR: * <NAME> (<EMAIL>) * * CREATION DATE: * Jeu 2 jul 2015 09:43:10 CEST * * ADDITIONS, CHANGES * * to generate files: * sed -e "s/cropI...
26.71
63
(translation_unit) "/*************************************************************************\n * api-execTemplate.h -\n *\n * $Id$\n *\n * Copyright (c) INRIA 2015, all rights reserved\n *\n * AUTHOR:\n * <NAME> (<EMAIL>)\n * \n * CREATION DATE: \n * Jeu 2 jul 2015 09:43:10 CEST\n *\n * ADDITIONS, CHANGES\n *\n * to...
233
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 26.71, "nodes": 176, "errors": 0, "source_hash": "466840e8e247a8d141ff066ceaa3a8132ebd7cdbf4955b6cea5fecc2eb376fc6", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,908
c
#pragma once #include <lwcron/lwcron.h> #include "hal/ipc.h" #include "hal/lora.h" #include "readings_worker.h" #include "lora_worker.h" #include "modules/service_modules_worker.h" #include "modules/scan_modules_worker.h" #include "networking/upload_data_worker.h" #include "tasks/tasks.h" #include "gps_service.h...
28.39
80
(translation_unit) "#pragma once\n\n#include <lwcron/lwcron.h>\n\n#include "hal/ipc.h"\n#include "hal/lora.h"\n\n#include "readings_worker.h"\n#include "lora_worker.h"\n\n#include "modules/service_modules_worker.h"\n#include "modules/scan_modules_worker.h"\n\n#include "networking/upload_data_worker.h"\n\n#include "task...
646
37
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 28.39, "nodes": 336, "errors": 0, "source_hash": "7889e23674ef7489ba8e462e5d08edfe0fe034ea017f86a24c303d796ff19a93", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,909
c
/* This file is part of Bug-reproducer Assistant The tool has been designed and developed by <NAME>, of Core Security Technologies Copyright (c) 2011, Core Security Technologies All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
30.33
141
(translation_unit) "/* \nThis file is part of Bug-reproducer Assistant \n The tool has been designed and developed by <NAME>, of Core Security Technologies \n \n Copyright (c) 2011, Core Security Technologies \n All rights reserved. \n \n Redistribution and use in source and binary forms, with or without modification,...
322
14
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 30.33, "nodes": 149, "errors": 0, "source_hash": "31bfc13d4968e734a762e49e4f445d27d392988b8cd0e25cea6f850f3d9ad1cc", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,910
c
#ifndef PREVIEW_H #define PREVIEW_H #include <QDialog> #include<QLabel> #include <QMap> #include <QTest> #include <QThread> #include <QPainter> namespace Ui { class Preview; } class PlayThread : public QThread{ Q_OBJECT public: PlayThread(int d, int f, int fps, QMap<int, QPixmap> ds,Ui::Preview *u, ...
20.58
43
(translation_unit) "#ifndef PREVIEW_H\n#define PREVIEW_H\n\n#include <QDialog>\n\n#include<QLabel>\n#include <QMap>\n#include <QTest>\n#include <QThread>\n#include <QPainter>\n\nnamespace Ui {\nclass Preview;\n}\n\nclass PlayThread : public QThread{\n Q_OBJECT\n public:\n PlayThread(int d, int f, int fps, ...
288
13
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 20.58, "nodes": 194, "errors": 0, "source_hash": "5dc9e6d308b61cd027ee763c581dbb271ede7c88141628b804443c7aacd4d735", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,911
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CloudDocsUI.framework/CloudDocsUI */ @interface _UIDocumentPickerVnodeDispatchSource : NSObject <NSCopying> { NSObject<OS_dispatch_source> * _source; <_UIDocumentPickerVnodeDispatchSourceDelegate> * _target; NSURL * _url; } @prope...
30.72
18
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CloudDocsUI.framework/CloudDocsUI\n */\n\n@interface _UIDocumentPickerVnodeDispatchSource : NSObject <NSCopying> {\n NSObject<OS_dispatch_source> * _source;\n <_UIDocumentPickerVnodeDispatchSourceDelegate> * _target;\n...
186
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.72, "nodes": 116, "errors": 0, "source_hash": "b4948e410f79b20a0c873d6d1597837424e2d2f810b24543aab01e4ec53f22e6", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
13,912
c
#include <stdio.h> #include <assert.h> #include "test_stmt.h" #include "../util/test_statuscode.h" static void status(char* msg){ printf(" - [TEST] %s\n", msg); } void test_ifstmt(bool debug){ status("ifstmt"); char* src = "fn main () ~> int { int x = 2; if x == 2 { return 3;} else { return 4; } }"; assert...
23.09
47
(translation_unit) "#include <stdio.h>\n#include <assert.h>\n\n#include "test_stmt.h"\n#include "../util/test_statuscode.h"\n\nstatic void status(char* msg){\n printf(" - [TEST] %s\n", msg);\n}\n\nvoid test_ifstmt(bool debug){\n \n status("ifstmt");\n \n char* src = "fn main () ~> int { int x = 2; if x == 2 { return 3;...
320
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.09, "nodes": 183, "errors": 0, "source_hash": "8790da293f1a8c0e56be32bbf4cc6198397d24e5fdf2b19c0cfc2916a477bda3", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,913
c
#ifndef CONTROLLER_HID_DEVICE_ENUMERATOR_H #define CONTROLLER_HID_DEVICE_ENUMERATOR_H #include "DeviceEnumerator.h" class ControllerHidDeviceEnumerator : public DeviceEnumerator { public: ControllerHidDeviceEnumerator(); ControllerHidDeviceEnumerator(CommonDeviceState::eDeviceType deviceTypeFilter); ~ControllerHid...
35.48
21
(translation_unit) "#ifndef CONTROLLER_HID_DEVICE_ENUMERATOR_H\n#define CONTROLLER_HID_DEVICE_ENUMERATOR_H\n\n#include "DeviceEnumerator.h"\n\nclass ControllerHidDeviceEnumerator : public DeviceEnumerator\n{\npublic:\n ControllerHidDeviceEnumerator();\n ControllerHidDeviceEnumerator(CommonDeviceState::eDeviceType devic...
160
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.48, "nodes": 93, "errors": 0, "source_hash": "04fe17ba2101bc1923ef7497cb7f0e9d598e5f4f84123270f4c1406410111be1", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,914
c
/******************************************************************************* * File Name: Mixer_PD_A_PM.c * Version 2.0 * * Description: * This file provides the power manager source code to the API for * the MIXER component. * * Note: * *************************************************************************...
28.66
128
(translation_unit) "/*******************************************************************************\n* File Name: Mixer_PD_A_PM.c \n* Version 2.0\n*\n* Description:\n* This file provides the power manager source code to the API for \n* the MIXER component.\n*\n* Note:\n*\n*******************************************...
161
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 28.66, "nodes": 76, "errors": 0, "source_hash": "e22ee7970c1470fb4a3a2aee9c1e7d26e4715e409505a93078c2860910d2e56a", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,915
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "APSParameter.h" #import "APSUtility.h" #import "APSAESManager.h" #import "Deflate.h" #import "RSA.h" #import "APSZli...
22.65
20
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "APSParameter.h"\n#import "APSUtility.h"\n#import "APSAESManager.h"\n#import "Deflate...
73
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.65, "nodes": 63, "errors": 0, "source_hash": "561e822166af87d78d765a1f3f90946cc9388a71c0f447cc5c649a27921370f1", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
13,916
c
// // ISSQLiteManager.h // InventorySystemForiPhone // // Created by yangboshan on 16/5/18. // Copyright © 2016年 yangboshan. All rights reserved. // #import <Foundation/Foundation.h> const static NSInteger IS_SQLITE_DB_VERSION = 1; @interface ISSQLiteManager : NSObject + (instancetype)sharedInstance; @end
24.92
12
(translation_unit) "//\n// ISSQLiteManager.h\n// InventorySystemForiPhone\n//\n// Created by yangboshan on 16/5/18.\n// Copyright © 2016年 yangboshan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nconst static NSInteger IS_SQLITE_DB_VERSION = 1;\n\n@interface ISSQLiteManager : NSObject\n\n+ (insta...
43
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.92, "nodes": 24, "errors": 0, "source_hash": "58e98589a55e5211cd089ade7695ea5b42abc75d5fda1a0bbdc9227938911782", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
13,917
c
#ifndef LAB3C_BIGNUM_H #define LAB3C_BIGNUM_H #include <cmath> #include <sstream> #include <iosfwd> #include <limits> namespace Prog3c { class bigNum{ private: static const int SZ = 47; char* Num; int n; //кол-во разрядов public: bigNum(); bigNum(long int x); ...
34.62
42
(translation_unit) "#ifndef LAB3C_BIGNUM_H\n#define LAB3C_BIGNUM_H\n\n#include <cmath>\n#include <sstream>\n#include <iosfwd>\n#include <limits>\n\nnamespace Prog3c {\n\n class bigNum{\n\n private:\n static const int SZ = 47;\n char* Num;\n int n; //кол-во разрядов\n\n public:\n big...
546
28
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 34.62, "nodes": 351, "errors": 0, "source_hash": "2f4c511a14930b52f35851f964f50a5787cf1131ee33b5e4930e8915450b0ccb", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,918
c
/* ARM-specific auxv handling. Copyright (C) 2009 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 o...
35.97
38
(translation_unit) "/* ARM-specific auxv handling.\n Copyright (C) 2009 Red Hat, Inc.\n This file is part of elfutils.\n\n This file is free software; you can redistribute it and/or modify\n it under the terms of either\n\n * the GNU Lesser General Public License as published by the Free\n Software Fo...
152
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 35.97, "nodes": 85, "errors": 0, "source_hash": "0945402d87c484836284af934ff1d9c3b5d557d086dc7d2d52e45b8088346b61", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef H...
13,919
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Simple Inventory // by MrModez // $NoKeywords: $ //=============================================================================// #ifndef TF_INVENTORY_H #define TF_INVENTORY_H #ifdef _WIN32 #pragma once #endif #include "cbase....
32.48
69
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: Simple Inventory\n// by MrModez\n// $NoKeywords: $\n//=============================================================================//\n#ifndef TF_INVENTORY_H\n#define TF_INVENTORY_H\n#ifdef _WIN32\n#pragma ...
511
8
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 32.48, "nodes": 349, "errors": 0, "source_hash": "2badc1c00939063addc11c2bacb0bc06046b82257ae5f4d2d12d875982ae5482", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,920
c
#pragma once #include "Matrix.h" class NeuralNetwork { private: int input; int hidden; int output; bool usingBias = false; bool lineral = false; Matrix weightsHI; Matrix weightsOH; Matrix biasH; Matrix biasO; Matrix deltaWeightsHI; Matrix deltaWeightsOH; Matrix deltaBiasO; Matrix deltaBiasH; double l...
20
28
(translation_unit) "#pragma once\n\n#include "Matrix.h"\n\nclass NeuralNetwork\n{\nprivate:\n int input;\n int hidden;\n int output;\n bool usingBias = false;\n bool lineral = false;\n\n Matrix weightsHI;\n Matrix weightsOH;\n Matrix biasH;\n Matrix biasO;\n\n Matrix deltaWeightsHI;\n Matrix deltaWeightsOH;\n Matrix de...
150
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.0, "nodes": 103, "errors": 0, "source_hash": "d9667509c10d92ccb04073ce3b51a7f7210e52441d85efeaa3500f2b576bbfc5", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,921
c
#include <bitcoin/block.h> #include <bitcoin/chainparams.h> #include <ccan/cast/cast.h> #include <ccan/crypto/sha256/sha256.h> #include <ccan/mem/mem.h> #include <common/bech32.h> #include <common/bech32_util.h> #include <common/bolt12.h> #include <common/bolt12_merkle.h> #include <common/features.h> #include <secp256k...
28.18
255
(translation_unit) "#include <bitcoin/block.h>\n#include <bitcoin/chainparams.h>\n#include <ccan/cast/cast.h>\n#include <ccan/crypto/sha256/sha256.h>\n#include <ccan/mem/mem.h>\n#include <common/bech32.h>\n#include <common/bech32_util.h>\n#include <common/bolt12.h>\n#include <common/bolt12_merkle.h>\n#include <common/f...
2,153
0
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 28.18, "nodes": 1318, "errors": 0, "source_hash": "9fcb0e3bc2d4278fa90c3d4d4fd2b5b50023bd61b6c0da471ebdaa654eb7cfe8", "categorized_nodes": 934}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,922
c
#pragma once #include <Core.h> #include <Globals/World.h> class ViewportView { public: static void Draw(bool& open) { World& world = World::Instance(); ImGuiWindowFlags windowFlags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoScrollbar; for (auto const& [rendererName, renderer] : world.GetRendere...
35.47
36
(translation_unit) "#pragma once\n\n#include <Core.h>\n\n#include <Globals/World.h>\n\nclass ViewportView\n{\npublic:\n\n static void Draw(bool& open)\n {\n World& world = World::Instance();\n ImGuiWindowFlags windowFlags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoScrollbar;\n for (auto const& [renderer...
432
21
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.47, "nodes": 229, "errors": 0, "source_hash": "460537bc72fbb2a92521c08da426eab880b47d61b3e0d0cd0f5451eac3060072", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,923
c
/* * vram.c * * Copyright (C) 2004 <NAME>, <NAME> * * Licensed under the AFL v2.0. See the file LICENSE included with this * distribution for licensing terms. * */ #include "vram.h" #define BLOCKSIZE 8192 #define BLOCKSIZEW 64 #define BLOCKSIZEH 32 static u32 vramStaticEnd = (-BLOCKSIZE)&(0+BLOCKSIZE-1); st...
26.39
23
(translation_unit) "/*\n * vram.c\n *\n * Copyright (C) 2004 <NAME>, <NAME>\n *\n * Licensed under the AFL v2.0. See the file LICENSE included with this\n * distribution for licensing terms.\n *\n */\n\n#include "vram.h"\n\n#define BLOCKSIZE 8192\n#define BLOCKSIZEW 64\n#define BLOCKSIZEH 32\n\nstatic u32 vramStaticEn...
111
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.39, "nodes": 76, "errors": 0, "source_hash": "f099e547b45ada849c95f7c6cbcc6dca2869ef2cb447badc6f6a1f1c9bf58dc4", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,924
c
#pragma once #include "Feature.h" #include "Type.h" #include "../Util/Size.h" class InstanceFunctionFeature; using namespace HWLib; using namespace Util; namespace Reni { class InstanceToken; template<class T> class SearchResult; class TypeType final : public Type { typ...
26.93
44
(translation_unit) "#pragma once \n#include "Feature.h" \n#include "Type.h" \n#include "../Util/Size.h" \n \nclass InstanceFunctionFeature; \nusing namespace HWLib; \nusing namespace Util; \n \n \nnamespace Reni \n{ \n class InstanceToken; \n template<class T> \n class SearchResult; \n \n class TypeType fin...
335
23
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.93, "nodes": 195, "errors": 0, "source_hash": "0b67e93406a11aaf82edf987d80437eca3d289bab54178e9e96be1fd69769b73", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,925
c
#ifndef DEP_SORT_STL_H #define DEP_SORT_STL_H #include "dep_sort.h" // template alias dep_sort around std::vector/std::unordered_set/std::unordered_map #include <vector> #include <unordered_map> #include <unordered_set> template<typename T> using dep_sort_stl = dep_sort<T, std::vector, std::unordered_set, std::unord...
32.5
10
(translation_unit) "#ifndef DEP_SORT_STL_H\n#define DEP_SORT_STL_H\n\n#include "dep_sort.h"\n\n// template alias dep_sort around std::vector/std::unordered_set/std::unordered_map\n#include <vector>\n#include <unordered_map>\n#include <unordered_set>\n\ntemplate<typename T>\nusing dep_sort_stl = dep_sort<T, std::vector,...
63
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.5, "nodes": 47, "errors": 0, "source_hash": "826b705498675977fdc8553966791e8621d38c01b049273f468be88191eaeff6", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
13,926
c
/** * @file neuralnetwork.h * @author <NAME> * @version 0.1 * @date 2019-05-30 * * @copyright Copyright (c) 2019 */ #pragma once #include "model/model.h" #include "layer/layers.h" #include "optimizer/optimizers.h" namespace magmadnn { namespace model { struct nn_params_t { unsigned int n_epochs; unsi...
29.36
36
(translation_unit) "/**\n * @file neuralnetwork.h\n * @author <NAME>\n * @version 0.1\n * @date 2019-05-30\n * \n * @copyright Copyright (c) 2019\n */\n#pragma once\n\n#include "model/model.h"\n#include "layer/layers.h"\n#include "optimizer/optimizers.h"\n\nnamespace magmadnn {\nnamespace model {\n\nstruct nn_params_t ...
318
15
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.36, "nodes": 219, "errors": 0, "source_hash": "54240ca777bb3098a1b53944b4c8911fc11785c9659e98755ea0c78f7eaab605", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,927
c
#ifndef _CE_MOD_H #define _CE_MOD_H 0,2,13 /** * DOC: ce-mod.h * The functions in this header are defined to give modules a safe way to * avoid functionality conflicts, initialize and manage the lifetime of * modules or resources and handle dynamic loading of modules. * * For an indepth introduction, see Documen...
35.28
90
(translation_unit) "#ifndef _CE_MOD_H\n#define _CE_MOD_H 0,2,13\n\n/**\n * DOC: ce-mod.h\n * The functions in this header are defined to give modules a safe way to\n * avoid functionality conflicts, initialize and manage the lifetime of\n * modules or resources and handle dynamic loading of modules.\n *\n * For an inde...
163
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 35.28, "nodes": 102, "errors": 0, "source_hash": "d457bd379255280f7da14ea87e00cc607c3d2d9778b74e4ac5ea09fa2f47bec2", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,928
c
// // SLSystemAppInfo.h // DarkMode // // Created by wsl on 2020/8/4. // Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, SLAuthorizationStatus) { SLAuthorizationStatusUnknow = -1, //未知的 SLAuthorizationStatusNotDeterm...
33.39
28
(translation_unit) "//\n// SLSystemAppInfo.h\n// DarkMode\n//\n// Created by wsl on 2020/8/4.\n// Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, SLAuthorizationStatus) {\n SLAuthorizationStatusUnknow = -1, //未知的\n ...
107
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.39, "nodes": 61, "errors": 0, "source_hash": "cc1496df4ed917110da1d6e28688bbe4fa0e0b8a8c3dc6b9dcd261e91da7101e", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
13,929
c
/*! \file getaddressoftype.h Gets address of specified type */ #pragma once #include <boost/any.hpp> #include <maybe.h> namespace dukpp03 { /*! Gets adress fo value of specified type, that is stored in variant. Here we try to get plain value (not a pointer type) as and address, so we don't allow such be...
27.45
55
(translation_unit) "/*! \file getaddressoftype.h\n \n Gets address of specified type\n */\n#pragma once\n#include <boost/any.hpp>\n#include <maybe.h>\n\nnamespace dukpp03\n{\n\n/*! Gets adress fo value of specified type, that is stored in variant.\n Here we try to get plain value (not a pointer type) as and ad...
272
25
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.45, "nodes": 161, "errors": 0, "source_hash": "10862704e0830861ef79a21e9c0d0ff85a7fa4c0bc727ca40b38cbd606f8f284", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,930
c
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
31.27
60
(translation_unit) "/*\n * Copyright (C) 2014 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
250
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.27, "nodes": 165, "errors": 0, "source_hash": "2b9305f17ca19b11b4c4834ccaba50033e5e8d54b482a76117ba5aae0a30e236", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,931
c
/* minidom - php serialized object parser See README for copyright and license information. */ namespace minidom { int doc::writePHP( char* buf, size_t* size, void* conv ) { #if defined( MINIDOM_ENABLE_DUMP ) return MINIDOM_ERROR_UnsupportedDocumentType; #else /* MINIDOM_ENABLE_DUMP */ ...
24.32
19
(translation_unit) "/*\n\n minidom - php serialized object parser\n See README for copyright and license information.\n\n*/\n\nnamespace minidom\n{\n int doc::writePHP( char* buf, size_t* size, void* conv )\n {\n#if defined( MINIDOM_ENABLE_DUMP )\n return MINIDOM_ERROR_UnsupportedDocumentType;\n#else...
84
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.32, "nodes": 52, "errors": 0, "source_hash": "d18fd515287437d3781fbad4abef6022023614dbf2b9e01dc2beecaeba6f82d5", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "na...
13,932
c
#import "SLRequest+AnyPromise.h"
32
1
(translation_unit) "#import "SLRequest+AnyPromise.h"\n" (preproc_call) "#import "SLRequest+AnyPromise.h"\n" (preproc_directive) "#import" (preproc_arg) ""SLRequest+AnyPromise.h""
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 32.0, "nodes": 3, "errors": 0, "source_hash": "eb98f4d11a3b738d88b51cf82762a2ad10aacaff94f2b2b5668e83c8f3d3bd0b", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"SLR...
13,933
c
/* * Copyright (c) 2021-2022, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "ConnectionTreeNode.h" class ConnectionTreeSectionNode; class ConnectionTreePageNode : public ConnectionTreeNode { public: virtual ~ConnectionTreePageNode() override { } ConnectionTreePageN...
31.64
25
(translation_unit) "/*\n * Copyright (c) 2021-2022, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include "ConnectionTreeNode.h"\n\nclass ConnectionTreeSectionNode;\n\nclass ConnectionTreePageNode : public ConnectionTreeNode {\npublic:\n virtual ~ConnectionTreePageNode() ove...
182
13
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.64, "nodes": 94, "errors": 0, "source_hash": "ca0cb10c406e0153e7e35598a6a5c7a721a3078b0906cd0002952e5256d8c047", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,934
c
#include "max_salary.h" unsigned long long int concatenate(unsigned long long int a, unsigned long long int b) { unsigned long long int pow = 10; while(b >= pow) pow *= 10; // printf("%llu, %llu, %llu\n",a,b, pow); // printf("%llu\n", a*pow + b); return a*pow + b; } int is_better (const void * a, ...
34.36
33
(translation_unit) "#include "max_salary.h"\n\nunsigned long long int concatenate(unsigned long long int a, unsigned long long int b) {\n unsigned long long int pow = 10;\n while(b >= pow) pow *= 10;\n // printf("%llu, %llu, %llu\n",a,b, pow);\n // printf("%llu\n", a*pow + b);\n return a*pow + b;\n}\n\ni...
352
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.36, "nodes": 236, "errors": 0, "source_hash": "78f96b872766e0a0ec574d692973ece39e6849f83a6244cc1fc216a6364050c0", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,935
c
/* * Copyright (c) 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, dis...
33.13
157
(translation_unit) "/*\n * Copyright (c) 2013 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, m...
416
23
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 33.13, "nodes": 237, "errors": 0, "source_hash": "b06e3c82ddc5252c792bdf9a1375c33d4297d8fc324e5aaf5bc39ad348bd2777", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,936
c
/* * arch/arm/mach-clps711x/include/mach/uncompress.h * * Copyright (C) 2000 Deep Blue Solutions Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
30.14
51
(translation_unit) "/*\n * arch/arm/mach-clps711x/include/mach/uncompress.h\n *\n * Copyright (C) 2000 Deep Blue Solutions Ltd\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either ...
135
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.14, "nodes": 87, "errors": 0, "source_hash": "cde35264a2d4999a52a8c2c625db66a84a9c80678bbd80b686209545ee2af5e2", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,937
c
#ifndef GUI_NUMBER_INPUT_H #define GUI_NUMBER_INPUT_H #include "text_active_gui_object.h" #include "Label.h" #include "Background.h" #include "Frame.h" #include "Function.h" #include "Button.h" #include "Gui.h" #include <cctype> namespace gui { enum class Number_input_type {INTEGRER, REAL}; namespace modifier {...
40.42
157
(translation_unit) "#ifndef GUI_NUMBER_INPUT_H\n#define GUI_NUMBER_INPUT_H\n\n#include "text_active_gui_object.h"\n#include "Label.h"\n#include "Background.h"\n#include "Frame.h"\n#include "Function.h"\n#include "Button.h"\n#include "Gui.h"\n\n#include <cctype>\n\nnamespace gui\n{\n\n enum class Number_input_type {INTE...
1,822
91
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 40.42, "nodes": 1128, "errors": 0, "source_hash": "551cb2365b0634b6104ae8879e5f3e79c15abd54843ae603fe3c479349ce8cd1", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef GUI_...
13,938
c
#ifndef _CPHL_IPSEC_MISC_H_ #define _CPHL_IPSEC_MISC_H_ #include "ipsec_types.h" #include "buffer" // // serializes 'ipsecData' portion of apXxx structures // void serialize(buffer & , const x4_ipsec_filters & ); void serialize(buffer & , const x4_ipsec_policy & ); void serialize(buffer & , const x4_ipsec_...
27
16
(translation_unit) "#ifndef _CPHL_IPSEC_MISC_H_ \n#define _CPHL_IPSEC_MISC_H_ \n \n#include "ipsec_types.h" \n#include "buffer" \n \n// \n// serializes 'ipsecData' portion of apXxx structures \n// \nvoid serialize(buffer & , const x4_ipsec_filters & ); \nvoid serialize(buffer & , const x4_ipsec_policy & ); \nvoid seria...
118
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.0, "nodes": 58, "errors": 0, "source_hash": "990c50c7bd03418979110905a36c7c18bf457756530d73fbe9d4c76166c5d304", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,939
c
// // KeyboardCandidateBar.h // JapaneseKeyboardKit // // Created by <NAME> on 2014/09/28. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class InputCandidate; @protocol KeyboardCandidateBarDelegate; @interface KeyboardCandidateBar : UIView @property (nonatomic, weak) id<Keyboar...
33.1
21
(translation_unit) "//\n// KeyboardCandidateBar.h\n// JapaneseKeyboardKit\n//\n// Created by <NAME> on 2014/09/28.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class InputCandidate;\n\n@protocol KeyboardCandidateBarDelegate;\n\n@interface KeyboardCandidateBar : UIView\n\n@p...
146
32
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.1, "nodes": 100, "errors": 0, "source_hash": "7fbc54210b48d1be7caca5cb02de91c6d4b9702b74d3a63e04de994a45fcebe0", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,940
c
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * 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 later version. * ...
26
50
(translation_unit) "/*\n* qt-id-updater\n*\n* Copyright (C) 2009 <NAME> <<EMAIL>>\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* License as published by the Free Software Foundation; either\n* version 2.1 of the License, or (at your o...
154
5
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 26.0, "nodes": 100, "errors": 0, "source_hash": "e7ce7eba560b47c965ce8a91685b916c515f913b9d3e6fe598723ad473a39699", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,941
c
#import <Foundation/Foundation.h> @class TGContactMediaAttachment; @class TGBotReplyMarkup; @interface TGBotContextResultSendMessageContact : NSObject <NSCoding> @property (nonatomic, strong, readonly) TGContactMediaAttachment *contact; @property (nonatomic, strong, readonly) TGBotReplyMarkup *replyMarkup; - (insta...
52.25
8
(translation_unit) "#import <Foundation/Foundation.h>\n\n@class TGContactMediaAttachment;\n@class TGBotReplyMarkup;\n\n@interface TGBotContextResultSendMessageContact : NSObject <NSCoding>\n\n@property (nonatomic, strong, readonly) TGContactMediaAttachment *contact;\n@property (nonatomic, strong, readonly) TGBotReplyMa...
95
16
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 52.25, "nodes": 65, "errors": 0, "source_hash": "1cb56f987ac37d0c1e912cbbf5f3f6dd13255042b9b8680754fbce9858c489ee", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
13,942
c
/* Copyright (c) 2005-2017 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
26.12
93
(translation_unit) "/* \n Copyright (c) 2005-2017 Intel Corporation \n \n Licensed under the Apache License, Version 2.0 (the "License"); \n you may not use this file except in compliance with the License. \n You may obtain a copy of the License at \n \n http://www.apache.org/licenses/LICENSE-2.0 \n ...
401
16
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 26.12, "nodes": 289, "errors": 0, "source_hash": "64754500890fa04ad331df77bc5142b01ca2998912e9f610903bc7bfe50edb1f", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,943
c
#ifndef __itkMultiplyByConstantImageFilter_h #define __itkMultiplyByConstantImageFilter_h #include "itkUnaryFunctorImageFilter.h" #include "itkNumericTraits.h" namespace itk { /** \class MultiplyByConstantImageFilter * * \brief Multiply input pixels by a constant. * * This filter is templated over the input im...
31.45
98
(translation_unit) "#ifndef __itkMultiplyByConstantImageFilter_h\n#define __itkMultiplyByConstantImageFilter_h\n\n#include "itkUnaryFunctorImageFilter.h"\n#include "itkNumericTraits.h"\n\nnamespace itk\n{\n \n/** \class MultiplyByConstantImageFilter\n *\n * \brief Multiply input pixels by a constant.\n *\n * This filt...
594
34
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 31.45, "nodes": 321, "errors": 0, "source_hash": "aac0506c427fc698e13f5a65f02be2d5e65f80745fdb9e82f430b5ad13c916a1", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,944
c
/** * @file menu.c * @brief Fichier qui contient les implémentations des fonctions des affichages et menus * */ #include "../headers/menu.h" /** * \fn void del_message() * \brief Fonction de suppression d'un message * \details Cette fonction supprime les carré qui affichage des messages de succès/erreur. * */...
30.7
122
(translation_unit) "/**\n * @file menu.c\n * @brief Fichier qui contient les implémentations des fonctions des affichages et menus\n * \n*/\n\n#include "../headers/menu.h"\n\n/**\n * \fn void del_message()\n * \brief Fonction de suppression d'un message\n * \details Cette fonction supprime les carré qui affichage des m...
788
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 30.7, "nodes": 446, "errors": 0, "source_hash": "dbfa9b103c2d59b78f36ec208fdec8ddd2cea35370a2aedb9f2262b34753f526", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
13,945
c
//===--- NameShortener.h - Helper class for shortening names --------------===// // // 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 // //===---------------------------...
31.85
27
(translation_unit) "//===--- NameShortener.h - Helper class for shortening names --------------===//\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//===-...
115
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.85, "nodes": 56, "errors": 0, "source_hash": "27d027048986619b3b500ab40ff824a78381f8d1095b7b042ad50a245453c661", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,946
c
// This program checks the weather and sends a suitable message #include <stdio.h> int main() { float temp; printf("Please enter the temperature in centigrade: "); printf("\n"); //Store three numbers into different variables scanf( "%f", &temp ); if (temp<0) printf("Freezing weather"); else if ...
22.64
25
(translation_unit) "// This program checks the weather and sends a suitable message \n#include <stdio.h> \n \nint main() { \n float temp; \n printf("Please enter the temperature in centigrade: "); \n printf("\n"); \n //Store three numbers into different variables \n scanf( "%f", &temp ); \n \nif (temp<0) \nprintf...
206
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.64, "nodes": 111, "errors": 0, "source_hash": "31d5c708a3e5d1bcf4e3535a2d19389d3da43be0749ea4ee2e224d9311ad0bd6", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,947
c
#ifndef REGISTERWINDOW_H #define REGISTERWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class RegisterWindow; } QT_END_NAMESPACE class RegisterWindow : public QMainWindow { Q_OBJECT public: explicit RegisterWindow(QWidget *parent = nullptr); ~RegisterWindow(); private slots: void ...
21.15
20
(translation_unit) "#ifndef REGISTERWINDOW_H\n#define REGISTERWINDOW_H\n\n#include <QMainWindow>\n\nQT_BEGIN_NAMESPACE\nnamespace Ui {\nclass RegisterWindow;\n}\nQT_END_NAMESPACE\n\nclass RegisterWindow : public QMainWindow {\n Q_OBJECT\npublic:\n explicit RegisterWindow(QWidget *parent = nullptr);\n ~Register...
105
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.15, "nodes": 64, "errors": 0, "source_hash": "a806a47edaebb11dccb259e51fa4caf9be1563eed9f9e3c371691c39b8bf5377", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,948
c
#pragma once #include "RE/BSExtraData.h" #include "RE/BSTArray.h" #include "RE/ExtraDataTypes.h" namespace RE { class BGSKeyword; class TESObjectREFR; class ExtraLinkedRef : public BSExtraData { public: inline static constexpr auto RTTI = RTTI_ExtraLinkedRef; inline static constexpr auto EXTRADATATYPE = E...
23.97
33
(translation_unit) "#pragma once\n\n#include "RE/BSExtraData.h"\n#include "RE/BSTArray.h"\n#include "RE/ExtraDataTypes.h"\n\n\nnamespace RE\n{\n class BGSKeyword;\n class TESObjectREFR;\n\n\n class ExtraLinkedRef : public BSExtraData\n {\n public:\n inline static constexpr auto RTTI = RTTI_ExtraLinkedRef;\n inline st...
192
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 23.97, "nodes": 115, "errors": 0, "source_hash": "ab6ac0e5cae4e7b028018a41dffaed666c395dfa51a38f48faa091bd4a6bdf77", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,949
c
// // Created by daniel on 4/25/18. // #ifndef CFLOP_REQUEST_TYPES_H #define CFLOP_REQUEST_TYPES_H #include <iostream> #include <vector> #include "../../libs/json/single_include/nlohmann/json.hpp" using json = nlohmann::json; namespace input_lib { struct node { size_t id = 0; std::vector<size_t>...
22.46
87
(translation_unit) "//\n// Created by daniel on 4/25/18.\n//\n\n#ifndef CFLOP_REQUEST_TYPES_H\n#define CFLOP_REQUEST_TYPES_H\n#include <iostream>\n#include <vector>\n\n#include "../../libs/json/single_include/nlohmann/json.hpp"\nusing json = nlohmann::json;\n\nnamespace input_lib {\n\n struct node {\n size_t ...
689
23
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 22.46, "nodes": 383, "errors": 0, "source_hash": "1b5a3fef1b44e236a45b789a013119a993a7c24252fe4f117423b06c66afb0d9", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,950
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "NSObject.h" @protocol ILBSLifeMgrExt <NSObject> -(void)OnAutoSearchLBSLife:(id)life Keyword:(id)keyword NextQueryInterval:(double)interval Error:(int)error ...
37.38
13
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "NSObject.h"\n\n\n@protocol ILBSLifeMgrExt <NSObject>\n-(void)OnAutoSearchLBSLife:(id)life Keyword:(id)keyword NextQueryInterval:(do...
140
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 37.38, "nodes": 80, "errors": 0, "source_hash": "fe9bad28bfd758fedd7dec758920ea0228c8949f58787f0fcf94f9722184458d", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
13,951
c
/* ** EPITECH PROJECT, 2021 ** B-MUL-200-LYN-2-1-myrpg-david.gozlan ** File description: ** file_tools */ #include "rpg.h" int file_size(char *file_path) { int fd = open(file_path, O_RDONLY); char buff; int size = 0; if (fd < 0) return (-1); for (; read(fd, &buff, 1); size++); return ...
22.03
33
(translation_unit) "/*\n** EPITECH PROJECT, 2021\n** B-MUL-200-LYN-2-1-myrpg-david.gozlan\n** File description:\n** file_tools\n*/\n\n#include "rpg.h"\n\nint file_size(char *file_path)\n{\n int fd = open(file_path, O_RDONLY);\n char buff;\n int size = 0;\n\n if (fd < 0)\n return (-1);\n for (; rea...
260
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.03, "nodes": 163, "errors": 0, "source_hash": "1194295d9352f8d15f4661e662525a0ad20fcf34275bfb96bb381990dd7b82f8", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,952
c
#ifndef _UTF8_H_ #define _UTF8_H_ #ifdef __cplusplus extern "C" { #endif // // Decodes a single unicode symbol from the sequence of bytes containing UTF-8 character representation. // Also decodes utf16 surrogate pairs if they are transcoded by utf16->utf8 converter. // Skips all ill-formed sequences. // // get_fn - ...
37.68
31
(translation_unit) "#ifndef _UTF8_H_\n#define _UTF8_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n//\n// Decodes a single unicode symbol from the sequence of bytes containing UTF-8 character representation.\n// Also decodes utf16 surrogate pairs if they are transcoded by utf16->utf8 converter.\n// Skips all ill-for...
117
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 37.68, "nodes": 72, "errors": 0, "source_hash": "2bc664ba26ff08794cd5c5ca00bfb278cfe24370e8c257d4a161a9d235281c28", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,953
c
/* GlkFileTypes.h: Miscellaneous file-related objc classes for IosGlk, the iOS implementation of the Glk API. Designed by <NAME> <<EMAIL>> http://eblong.com/zarf/glk/ */ #import <Foundation/Foundation.h> #include "glk.h" @interface GlkFileRefPrompt : NSObject { glui32 usage; glui32 fmode; NSString *dirname; NS...
30.71
41
(translation_unit) "/* GlkFileTypes.h: Miscellaneous file-related objc classes\n for IosGlk, the iOS implementation of the Glk API.\n Designed by <NAME> <<EMAIL>>\n http://eblong.com/zarf/glk/\n*/\n\n#import <Foundation/Foundation.h>\n#include "glk.h"\n\n@interface GlkFileRefPrompt : NSObject {\n glui32 usage;\n glui32...
392
43
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.71, "nodes": 267, "errors": 0, "source_hash": "6527f5528035212781b5fc88b152a67421a22f6d98c292678a1b70c8e12f0235", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
13,954
c
// // UIFont+FontManager.h // CPBaseKit // // Created by MisakaTao on 2018/5/17. // Copyright © 2018年 misakatao. All rights reserved. // #import <UIKit/UIKit.h> UIKIT_EXTERN CGFloat const kMajorLarge;/** 适⽤于少量重要性标题信息 (如导航标题、分类名称等) */ UIKIT_EXTERN CGFloat const kMajorSemiLarge;/** 适⽤于少量重要性标题信息 (如导航标题、分类名称等) */ UIK...
28.18
39
(translation_unit) "//\n// UIFont+FontManager.h\n// CPBaseKit\n//\n// Created by MisakaTao on 2018/5/17.\n// Copyright © 2018年 misakatao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nUIKIT_EXTERN CGFloat const kMajorLarge;/** 适⽤于少量重要性标题信息 (如导航标题、分类名称等) */\nUIKIT_EXTERN CGFloat const kMajorSemiLarge;/** 适⽤...
184
17
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.18, "nodes": 116, "errors": 0, "source_hash": "5ce5aa815279123b19b345c0b4d12708750f01fc6896fe64ad2cfba14a5e7747", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
13,955
c
#ifndef _ZRXEXPORTS_H_ #define _ZRXEXPORTS_H_ #define ZRX_EXPORT __declspec(dllexport) #define ZRX_IMPORT __declspec(dllimport) #ifdef ZRX_OSBASE_EXPORTS #define ZRX_OSBASE_EXPORT ZRX_EXPORT #else #define ZRX_OSBASE_EXPORT ZRX_IMPORT #endif #ifdef ZRX_OSBASE_STATIC_EXPORTS #define ZRX_OSBAS...
20.8
188
(translation_unit) "#ifndef _ZRXEXPORTS_H_ \n#define _ZRXEXPORTS_H_ \n \n \n#define ZRX_EXPORT __declspec(dllexport) \n#define ZRX_IMPORT __declspec(dllimport) \n \n \n#ifdef ZRX_OSBASE_EXPORTS \n #define ZRX_OSBASE_EXPORT ZRX_EXPORT \n#else \n #define ZRX_OSBASE_EXPORT ZRX_IMPORT \n#endif \n \n#ifdef ZRX_OSBASE_ST...
429
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 20.8, "nodes": 427, "errors": 0, "source_hash": "3582dff45e891392b699d5d3c963c1032b7e8ec66ad818eded1e06ef94529549", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,956
c
/** * \file * Reality plug-in * Copyright (c) Pret-a-3D/<NAME> 2014. All rights reserved. */ #ifndef RE_DS_EVENT_H #define RE_DS_EVENT_H #include <QEvent> #include <QtCore> #include <QHash> #include "boost/any.hpp" #include "ReLogger.h" /** * Studio's signals happen at the beginning of the event and not a...
32.97
64
(translation_unit) "/**\n * \file\n * Reality plug-in\n * Copyright (c) Pret-a-3D/<NAME> 2014. All rights reserved. \n */\n\n#ifndef RE_DS_EVENT_H\n#define RE_DS_EVENT_H\n\n#include <QEvent>\n#include <QtCore>\n#include <QHash>\n\n#include "boost/any.hpp"\n#include "ReLogger.h"\n/**\n * Studio's signals happen at ...
256
12
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.97, "nodes": 141, "errors": 0, "source_hash": "ffe830a4aed1b3cc54541e8d32097934729f411e07e590251cfbbb8342040202", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,957
c
//Setting Bits for the Pumps....... //Pumps for Pouring Station 1 sbit PR_ST1_NZ1 at GPIOE_ODR.B9; sbit PR_ST1_NZ2 at GPIOE_ODR.B11; sbit PR_ST1_NZ3 at GPIOE_ODR.B13; sbit PR_ST1_NZ4 at GPIOE_ODR.B15; //Pumps for Pouring Station 2 sbit PR_ST2_NZ1 at GPIOB_ODR.B1; sbit PR_ST2_NZ2 at GPIOA_ODR.B12; sbit PR_ST2_NZ3 at GP...
32.49
170
(translation_unit) "//Setting Bits for the Pumps.......\n//Pumps for Pouring Station 1\nsbit PR_ST1_NZ1 at GPIOE_ODR.B9;\nsbit PR_ST1_NZ2 at GPIOE_ODR.B11;\nsbit PR_ST1_NZ3 at GPIOE_ODR.B13;\nsbit PR_ST1_NZ4 at GPIOE_ODR.B15;\n\n//Pumps for Pouring Station 2\nsbit PR_ST2_NZ1 at GPIOB_ODR.B1;\nsbit PR_ST2_NZ2 at GPIOA_O...
1,286
45
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 32.49, "nodes": 799, "errors": 0, "source_hash": "c52ed78e2fd74c8c7c3d57046d752a003e5d446a470cae0809aefb1277b5fac3", "categorized_nodes": 605}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "sbit PR...
13,958
c
#pragma once #include "Event.h" namespace Basement { class WindowResizeEvent : public Event { public: WindowResizeEvent(float width, float height) : m_Width(width), m_Height(height) {} ~WindowResizeEvent() = default; inline float GetWidth() const { return m_Width; } inline float GetHeight() const { r...
35.45
76
(translation_unit) "#pragma once\n\n#include "Event.h"\n\nnamespace Basement {\n \n class WindowResizeEvent : public Event\n {\n public:\n WindowResizeEvent(float width, float height)\n : m_Width(width), m_Height(height) {}\n ~WindowResizeEvent() = default;\n\n inline float GetWidth() const { return m_Width; }\n ...
774
43
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 35.45, "nodes": 404, "errors": 0, "source_hash": "ee918aa6e187cf95146459f1c3c37a7171dba4dd56bc359707516e2f466ddd52", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,959
c
/*****************************************************************//** * \file dat.h * \brief * * \author ifkno * \date September 2021 *********************************************************************/ //#pragma once #ifndef DAT_H #define DAT_H #include "dat_reader.h" #include "dat_file_reader.h" #in...
24.57
14
(translation_unit) "/*****************************************************************//**\n * \file dat.h\n * \brief \n * \n * \author ifkno\n * \date September 2021\n *********************************************************************/\n//#pragma once\n\n#ifndef DAT_H\n#define DAT_H\n\n#include "dat_reader.h"\...
29
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.57, "nodes": 16, "errors": 0, "source_hash": "d94542b36c3d7c43853d0edbbfbd93937a77e40e69d6a16d688ad3ee2e8822ce", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,960
c
// // Grade.h // GradeManagementApp_refactor // // Created by miyaeyo on 2015. 9. 16.. // Copyright (c) 2015년 miyaeyo. All rights reserved. // #import <Foundation/Foundation.h> @interface Grade : NSObject @property (nonatomic)double korean; @property (nonatomic)double english; @property (nonatomic)double math; ...
23.32
19
(translation_unit) "//\n// Grade.h\n// GradeManagementApp_refactor\n//\n// Created by miyaeyo on 2015. 9. 16..\n// Copyright (c) 2015년 miyaeyo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Grade : NSObject\n\n\n@property (nonatomic)double korean;\n@property (nonatomic)double english;\...
108
22
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.32, "nodes": 74, "errors": 0, "source_hash": "eabc6fd575e06ad5affc2c64d7a986d21c37907df153141a52a7cdc2a8d4fc91", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
13,961
c
// Include files to use the PYLON API. #include <pylon/PylonIncludes.h> #include <pylon/gige/PylonGigEIncludes.h> #include <GenApi/IEnumerationT.h> // Settings for using Basler GigE cameras. #include <pylon/gige/BaslerGigEInstantCamera.h> typedef Pylon::CBaslerGigEInstantCamera Camera_t; typedef Pylon::CBaslerGigEIma...
37.03
159
(translation_unit) "// Include files to use the PYLON API.\n\n#include <pylon/PylonIncludes.h>\n#include <pylon/gige/PylonGigEIncludes.h>\n#include <GenApi/IEnumerationT.h>\n\n// Settings for using Basler GigE cameras.\n#include <pylon/gige/BaslerGigEInstantCamera.h>\ntypedef Pylon::CBaslerGigEInstantCamera Camera_t;\n...
1,373
20
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 37.03, "nodes": 962, "errors": 0, "source_hash": "a550869be09633393b862d32e6b7dc67706ccc2c876368c4d1314f1f07b57b63", "categorized_nodes": 593}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,962
c
#ifndef __MEMORY_H__ #define __MEMORY_H__ void MemoryAccess(bus32 read_out, bus32 addr, bus32 write_in, wire write_enable, bus8 memory[4096]); void MemoryAccessDriver(void); #endif
35.2
5
(translation_unit) "#ifndef __MEMORY_H__\n#define __MEMORY_H__\n\nvoid MemoryAccess(bus32 read_out, bus32 addr, bus32 write_in, wire write_enable, bus8 memory[4096]);\nvoid MemoryAccessDriver(void);\n\n#endif\n\n" (preproc_ifdef) "#ifndef __MEMORY_H__\n#define __MEMORY_H__\n\nvoid MemoryAccess(bus32 read_out, bus32 a...
49
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 35.2, "nodes": 36, "errors": 0, "source_hash": "25abde492feccb906acfdfc13c1c854ca18c52a8baf869daadaa232685783cc3", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
13,963
c
#include <stdio.h> enum DAY {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY}; int main(void) { enum DAY today; today = THURSDAY; switch (today) { case SUNDAY: printf("Today is Sunday. It is a work day\n"); break; case MONDAY: printf("Today is Monday. I...
25.16
31
(translation_unit) "#include <stdio.h>\n\nenum DAY {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY};\n\nint main(void)\n{\n enum DAY today;\n\n today = THURSDAY;\n\n switch (today)\n {\n case SUNDAY:\n printf("Today is Sunday. It is a work day\n");\n break;\n case MONDAY:...
197
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.16, "nodes": 111, "errors": 0, "source_hash": "b11ccab0159a29d1ffed9a3b957f116c0e4bbba92d8aa8458a99f84bd1c5b038", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,964
c
#pragma once uint8_t SdkEvalSPI_Irq_Pin(void); void Clear_SPI_EXTI_Flag(); void Enable_SPI_IRQ(void); void Disable_SPI_IRQ(void); void BlueNRG_RST(void); void BlueNRG_HW_Bootloader(void); uint8_t BlueNRG_SPI_Read_All(uint8_t *buffer, uint8_t buff_size); int16_t BlueNRG_SPI_Write(uint8_t* data1, uint8_t* data2, uint1...
35.33
15
(translation_unit) "#pragma once\n\nuint8_t SdkEvalSPI_Irq_Pin(void);\nvoid Clear_SPI_EXTI_Flag();\n\nvoid Enable_SPI_IRQ(void);\nvoid Disable_SPI_IRQ(void);\n\nvoid BlueNRG_RST(void);\nvoid BlueNRG_HW_Bootloader(void);\nuint8_t BlueNRG_SPI_Read_All(uint8_t *buffer, uint8_t buff_size);\nint16_t BlueNRG_SPI_Write(uint8_...
166
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.33, "nodes": 119, "errors": 0, "source_hash": "156de769a79de7a341b6c9d6f5e382eda65ffc65769bd117be30eaf7e2f7fc08", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,965
c
#include "hello.h" void HelloFunc() { printf("Hello World from HelloLib\n"); }
19.25
4
(translation_unit) "#include "hello.h"\n\nvoid HelloFunc() {\n printf("Hello World from HelloLib\n");\n}\n\n" (preproc_include) "#include "hello.h"\n" (#include) "#include" (string_literal) ""hello.h"" (") """ (string_content) "hello.h" (") """ (function_definition) "void HelloFunc() {\n ...
29
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 19.25, "nodes": 13, "errors": 0, "source_hash": "e68b9c18fd74819726f1de7e1657bb6f03ea7c1c57234babed9575c1f79dff0c", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
13,966
c
#include<stdio.h> #include<string.h> #include<stdlib.h> char num[32]; int value[32]; int change[10][10]; int node[10], factor, multilen; void DFS(int n) { int j; if(node[n]) return ; else { node[n] = 1; factor++; } for(j = 0; j <= 9; j++) if(change[n][j]) ...
21.06
53
(translation_unit) "#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n\nchar num[32];\nint value[32];\nint change[10][10];\nint node[10], factor, multilen;\n\nvoid DFS(int n) {\n int j;\n if(node[n])\n return ;\n else {\n node[n] = 1;\n factor++;\n }\n for(j = 0; j <= 9; j++...
503
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 21.06, "nodes": 291, "errors": 0, "source_hash": "d7cd9cce2875c49a80332d75d733ab2d67e027439ed22549304137b884d329cd", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,967
c
/* * LED.h * * Created on: Nov 17, 2016 * Author: <NAME> */ #ifndef ANTENNA_H_ #define ANTENNE_H_ #include "stm32f4xx.h" #define FRAME_NUMBER 16 // change this before the byte number #define BYTES_PER_FRAME 128 #define SAMPLE_PERIOD_MICROSECONDS 70 // Not really microseconds but who cares /** * @brie...
27.88
40
(translation_unit) "/*\n * LED.h\n *\n * Created on: Nov 17, 2016\n * Author: <NAME>\n */\n\n#ifndef ANTENNA_H_\n#define ANTENNE_H_\n\n#include "stm32f4xx.h"\n\n#define FRAME_NUMBER 16 // change this before the byte number\n#define BYTES_PER_FRAME 128\n\n\n#define SAMPLE_PERIOD_MICROSECONDS 70 // Not really micro...
82
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.88, "nodes": 55, "errors": 0, "source_hash": "ccd7f4022eeaedf1947c99c72f4e30d03ecc0289cb52611f4446317456be6256", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,968
c
inline void Friction_manning(const float *dT,const float *M_n, //OP_RW, discard float *values) //OP_WRITE { float Fr; float TruncatedH = values[0] < EPS ? EPS : values[0]; float u = values[1]/TruncatedH; float v = values[2]/TruncatedH; float speed = sqrt(u*u + v*v); Fr = g* (*M_n * *M_n) *speed...
29.5
26
(translation_unit) "inline void Friction_manning(const float *dT,const float *M_n, //OP_RW, discard\n float *values) //OP_WRITE\n\n{\n float Fr;\n float TruncatedH = values[0] < EPS ? EPS : values[0];\n float u = values[1]/TruncatedH;\n float v = values[2]/TruncatedH;\n float speed = sqrt(u*u + v*v);\n ...
329
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.5, "nodes": 218, "errors": 0, "source_hash": "85571706c729c627ecc75863244195a2f4143e0c2fa1adc8495350944f7205bb", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "i...
13,969
c
#pragma once #include "Modules/ModuleManager.h" class FSpectatorUtilitiesModule : public IModuleInterface { public: virtual void StartupModule() override; virtual void ShutdownModule() override; };
24.75
8
(translation_unit) "#pragma once\n\n#include "Modules/ModuleManager.h"\n\nclass FSpectatorUtilitiesModule : public IModuleInterface\n{\npublic:\n virtual void StartupModule() override;\n virtual void ShutdownModule() override;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc...
49
5
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.75, "nodes": 27, "errors": 0, "source_hash": "76e06355f0d53725bc00532bb687c25fd67e2c66b3e0fbb4e68a7323beb91221", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,970
c
/*! \file \brief The routines associated with model estimation \date Started 3/9/2015 \author <NAME> with contributions by <NAME>, <NAME>, <NAME> and <NAME>. \author Copyright 2019, Regents of the University of Minnesota */ #include "slimlib.h" /*********************************************************************...
34.92
118
(translation_unit) "/*!\n\file\n\brief The routines associated with model estimation\n\n\date Started 3/9/2015\n\author <NAME> with contributions by <NAME>, <NAME>, <NAME> and <NAME>.\n\author Copyright 2019, Regents of the University of Minnesota\n*/\n\n#include "slimlib.h"\n\n/**************************************...
902
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 34.92, "nodes": 560, "errors": 0, "source_hash": "7a7b10c9aa44571faf6ca05997317eb64dabc1ae9c828130601456d0f165afb6", "categorized_nodes": 432}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,971
c
// // ASDateBirthPopover.h // HW_36_UIPopoverController // // Created by MD on 04.07.15. // Copyright (c) 2015 hh. All rights reserved. // #import <UIKit/UIKit.h> @protocol ASDateBirthPopoverDelegate <NSObject> @required - (void)dataFromDateBirthController:(NSString *)data; @end @interface ASDateBirthPopover ...
27.94
18
(translation_unit) "//\n// ASDateBirthPopover.h\n// HW_36_UIPopoverController\n//\n// Created by MD on 04.07.15.\n// Copyright (c) 2015 hh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol ASDateBirthPopoverDelegate <NSObject>\n\n@required\n- (void)dataFromDateBirthController:(NSString *)data;\n@end...
110
17
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.94, "nodes": 74, "errors": 0, "source_hash": "4fe552b5fdda7250db89da4d32484e7b725c4e0e10cce354e774b9aae860ace1", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,972
c
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
37.35
85
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook....
625
24
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 37.35, "nodes": 365, "errors": 0, "source_hash": "1b134e9ca616e3f404ceb840c064dd7ca1ba9e742b6da2fcddb9305b6507d57e", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,973
c
//////////////////////////////////////////////////////////////////////////////// // // DgLocVector.h: DgLocVector class definitions // // Version 6.1 - <NAME>, 5/23/13 // //////////////////////////////////////////////////////////////////////////////// #ifndef DGLOCVECTOR_H #define DGLOCVECTOR_H #include <string> #inc...
39.54
89
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// DgLocVector.h: DgLocVector class definitions\n//\n// Version 6.1 - <NAME>, 5/23/13\n//\n////////////////////////////////////////////////////////////////////////////////\n\n#ifndef DGLOCVECTOR_H\n#define DGLOCVEC...
1,054
43
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 39.54, "nodes": 606, "errors": 0, "source_hash": "42f2dff83ec771ed68044a42fc007dbc4fbdfdd7755e537c207151de37366a4c", "categorized_nodes": 422}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,974
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> int main(){ pid_t ID; //script finale di lancio ID=fork(); if(ID==-1){ puts("errore nella fork"); exit(1); } if(ID==0){ execlp("./sysAnalysis.sh","",NULL); printf("exec fallita\n"); } if(ID!=0){ wait...
17.3
20
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <sys/wait.h>\n\nint main(){\n\n pid_t ID;\n\n //script finale di lancio\n ID=fork();\n\n if(ID==-1){\n puts("errore nella fork");\n exit(1);\n }\n if(ID==0){\n execlp("./sysAnalysis.sh","",NULL);\n printf("exec...
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.3, "nodes": 69, "errors": 0, "source_hash": "34525300d306cb8612dc30ee2daa1011542f2dc2ce8410dea2da91433c776989", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,975
c
/** * Unit tests for the @em find_if algorithm. */ #include <nstl/algorithm/find_if.h> #include <seatest.h> typedef nstl_bool (*Predicate) (nstl_int elem); NSTL_INSTANTIATE(NSTL_FIND_IF((self_type nstl_pint), Predicate)) #define find_if nstl_find_if(nstl_pint, Predicate) static nstl_bool is_odd(nstl_int i) { ...
31.62
34
(translation_unit) "/**\n * Unit tests for the @em find_if algorithm.\n */\n\n#include <nstl/algorithm/find_if.h>\n\n#include <seatest.h>\n\n\ntypedef nstl_bool (*Predicate) (nstl_int elem);\nNSTL_INSTANTIATE(NSTL_FIND_IF((self_type nstl_pint), Predicate))\n\n#define find_if nstl_find_if(nstl_pint, Predicate)\n\nstatic...
284
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.62, "nodes": 177, "errors": 0, "source_hash": "03b8e286f63e0c09d121303162ae17dfb437c51f92a80464d174b94f6ff6ed3a", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,976
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CommonDefines.h" #include "AIController.h" #include "FPSAIController_RandomMove.generated.h" /** * */ UCLASS() class FPS_API AFPSAIController_RandomMove : public AAIController { GENERATED_BODY() public: AFPSAI...
21.72
25
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CommonDefines.h"\n#include "AIController.h"\n#include "FPSAIController_RandomMove.generated.h"\n\n/**\n * \n */\nUCLASS()\nclass FPS_API AFPSAIController_RandomMove : public AAIController\n{\n...
125
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.72, "nodes": 67, "errors": 0, "source_hash": "31c51ea627587dad8822860828a1377643fff70aef14cb406ec378cd85e7bd5a", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,977
c
#pragma once #include "Base/BaseTypes.h" #include "UI/Components/UIComponent.h" namespace DAVA { class UIDataBindingComponent : public UIComponent { DAVA_VIRTUAL_REFLECTION(UIDataBindingComponent, UIComponent); public: DECLARE_UI_COMPONENT(UIDataBindingComponent); enum UpdateMode { MODE_READ ...
36.55
38
(translation_unit) "#pragma once\n\n#include "Base/BaseTypes.h"\n#include "UI/Components/UIComponent.h"\n\nnamespace DAVA\n{\nclass UIDataBindingComponent : public UIComponent\n{\n DAVA_VIRTUAL_REFLECTION(UIDataBindingComponent, UIComponent);\n\npublic:\n DECLARE_UI_COMPONENT(UIDataBindingComponent);\n enum Up...
294
16
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.55, "nodes": 165, "errors": 0, "source_hash": "a9afc25b07afa11a88349fd2c75cc1d3d60b4573fb82a26163f87731a362c05a", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,978
c
#ifndef LVGLPROJECT_H #define LVGLPROJECT_H #include <QString> class LVGLProject { public: LVGLProject(); QString name() const; void setName(const QString &name); private: QString m_name; }; #endif // LVGLPROJECT_H
15.85
13
(translation_unit) "#ifndef LVGLPROJECT_H\n#define LVGLPROJECT_H\n\n#include <QString>\n\nclass LVGLProject\n{\npublic:\n LVGLProject();\n\n QString name() const;\n void setName(const QString &name);\n\nprivate:\n QString m_name;\n\n};\n\n#endif // LVGLPROJECT_H\n" (preproc_ifdef) "#ifndef LVGLPROJECT_H\n#define LVGL...
63
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.85, "nodes": 33, "errors": 0, "source_hash": "21ac7a8e9badc350269e5f29058e517352c8080f44dda74ee7c68835350c99b4", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,979
c
// Copyright (c) 2016, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #pragma once namespace ite...
27.51
37
(translation_unit) "// Copyright (c) 2016, Facebook, Inc. All rights reserved.\n// This source code is licensed under the BSD-style license found in the\n// LICENSE file in the root directory of this source tree. An additional grant\n// of patent rights can be found in the PATENTS file in the same directory.\n\n#p...
329
16
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 27.51, "nodes": 192, "errors": 0, "source_hash": "ad998408c29c07d69735dde6252fb2f40ff40ec620925e5b58817b08035b570a", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,980
c
inherit "obj/armour"; reset(arg) { ::reset(arg); set_name("leg"); set_alias("wood"); set_short("Pepe's wooden leg"); set_long("This wooden leg attaches itself to your leg, even though you have one.\n"); set_ac(21); set_value(400); set_weight(210); set_slot("legs"); }
24.33
12
(translation_unit) "inherit "obj/armour";\n\nreset(arg) {\n ::reset(arg);\n set_name("leg");\n set_alias("wood");\n set_short("Pepe's wooden leg");\n set_long("This wooden leg attaches itself to your leg, even though you have one.\n");\n set_ac(21);\n set_value(400);\n set_weight(210);\n set_...
109
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.33, "nodes": 44, "errors": 0, "source_hash": "03baafb852fda1197d34e23701aa97558ce27c029dd0e3704d3b489f8619afae", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
13,981
c
#ifndef MALIQUIZLIB_GLOBAL_H #define MALIQUIZLIB_GLOBAL_H #include <QtCore/qglobal.h> #if defined(MALIQUIZLIB_LIBRARY) # define MALIQUIZLIBSHARED_EXPORT Q_DECL_EXPORT #else # define MALIQUIZLIBSHARED_EXPORT Q_DECL_IMPORT #endif #endif // MALIQUIZLIB_GLOBAL_H
28
9
(translation_unit) "#ifndef MALIQUIZLIB_GLOBAL_H\n#define MALIQUIZLIB_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if defined(MALIQUIZLIB_LIBRARY)\n# define MALIQUIZLIBSHARED_EXPORT Q_DECL_EXPORT\n#else\n# define MALIQUIZLIBSHARED_EXPORT Q_DECL_IMPORT\n#endif\n\n#endif // MALIQUIZLIB_GLOBAL_H\n" (preproc_ifdef) "#if...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.0, "nodes": 27, "errors": 0, "source_hash": "c79fe32bfeb7d498e3c5827df3d39d7fd066f39859586182f478e27ad0960d05", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MA...
13,982
c
/** @file Copyright (c) 2014-2017, Linaro Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/ArmLib.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> STATIC ARM_MEMORY_REGION_DESCRIPTOR mVirtualMemoryTable[2]; /** R...
30.49
57
(translation_unit) "/** @file \n \n Copyright (c) 2014-2017, Linaro Limited. All rights reserved. \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#include <Base.h> \n#include <Library/ArmLib.h> \n#include <Library/BaseLib.h> \n#include <Library/DebugLib.h> \n \nSTATIC ARM_MEMORY_REGION_DESCRIPTOR mV...
197
2
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 30.49, "nodes": 125, "errors": 0, "source_hash": "04262a19bae4edd1fd7271930a8336037901cd9a0e16ed6e1f452637550eba59", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,983
c
// Copyright 2016 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 BASE_TRACE_EVENT_EVENT_NAME_FILTER_H_ #define BASE_TRACE_EVENT_EVENT_NAME_FILTER_H_ #include <memory> #include <string> #include <unordered_set> ...
39.38
34
(translation_unit) "// Copyright 2016 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 BASE_TRACE_EVENT_EVENT_NAME_FILTER_H_\n#define BASE_TRACE_EVENT_EVENT_NAME_FILTER_H_\n\n#include <memory>\n#include <strin...
183
10
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 39.38, "nodes": 98, "errors": 0, "source_hash": "293f275a4296bf129526c594848ce24ae0b5d95360029f33f49af6acb316bfaa", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,984
c
/* * ===================================================================================== * * Filename: gen_punchlist.c * * Description: generate a punch list * * Version: 1.0 * Created: 26/09/2018 18:48:26 * Revision: none * Compiler: gcc * * Author: <NAME...
24.33
240
(translation_unit) "/*\n * =====================================================================================\n *\n * Filename: gen_punchlist.c\n *\n * Description: generate a punch list\n *\n * Version: 1.0\n * Created: 26/09/2018 18:48:26\n * Revision: none\n * Compiler: gc...
2,521
0
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 24.33, "nodes": 1569, "errors": 0, "source_hash": "ee9de51e0ebc1d87c1e8759f831522299d3ec3c47376a3798516d5176de5d1d5", "categorized_nodes": 1177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
13,985
c
/** * @file dev_usart1.c * @brief Description of USART1 driver file. * @author Eggcar */ /** * Copyright EggCar(<EMAIL>) * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
29.94
86
(translation_unit) "/**\n * @file dev_usart1.c\n * @brief Description of USART1 driver file.\n * @author Eggcar\n*/\n\n/**\n * Copyright EggCar(<EMAIL>)\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 t...
477
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.94, "nodes": 313, "errors": 0, "source_hash": "00d356dc4df06b6604cab9794163b88775dfb92d679c5fbd4e7ced4385b808c6", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,986
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_SCORE_HARDIRQ_H #define _ASM_SCORE_HARDIRQ_H #include <asm-generic/hardirq.h> #endif /* _ASM_SCORE_HARDIRQ_H */
31.8
5
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_SCORE_HARDIRQ_H\n#define _ASM_SCORE_HARDIRQ_H\n\n#include <asm-generic/hardirq.h>\n\n#endif /* _ASM_SCORE_HARDIRQ_H */\n" (comment) "/* SPDX-License-Identifier: GPL-2.0 */" (preproc_ifdef) "#ifndef _ASM_SCORE_HARDIRQ_H\n#define _ASM_SCORE_HARD...
13
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 31.8, "nodes": 10, "errors": 0, "source_hash": "76ac367c96c53d931e876e02c76f47ab313e1c1c484d3b8775336ecd5a73b52e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _AS...
13,987
c
// shi-ren.c 石人 inherit NPC; void create() { set_name("石人", ({ "<NAME>", "shi", "stone man", "stone" }) ); set("gender", "男性" ); set("age", 30); set("long", "一個練功用的比武石人,雕鑿得很精細,如同真人一般。\n"); set("attitude", "heroism"); set("str", 25); set("con", 25); set(...
35.74
120
(translation_unit) "// shi-ren.c 石人\n\ninherit NPC;\n\nvoid create()\n{\n set_name("石人", ({ "<NAME>", "shi", "stone man", "stone" }) );\n set("gender", "男性" );\n set("age", 30);\n set("long", "一個練功用的比武石人,雕鑿得很精細,如同真人一般。\n");\n set("attitude", "heroism");\n\n set("str", 25);\n ...
1,539
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 35.74, "nodes": 695, "errors": 0, "source_hash": "cfcb9d3ed990bc37ea7f12fa7ac615e1235a7254d493afb2fb270bc323d99832", "categorized_nodes": 539}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "rit NPC...
13,988
c
/* * IOManager.h * * Created on: Feb 20, 2015 * Author: Zach */ #ifndef SRC_IOMANAGER_H_ #define SRC_IOMANAGER_H_ #include <iostream> #include <string> #define string std::string namespace io { void println(string line); void print(string words); void warn(string warning); string...
15.26
27
(translation_unit) "/* \n * IOManager.h \n * \n * Created on: Feb 20, 2015 \n * Author: Zach \n */ \n \n#ifndef SRC_IOMANAGER_H_ \n#define SRC_IOMANAGER_H_ \n \n#include <iostream> \n#include <string> \n \n#define string std::string \n \nnamespace io { \n void println(string line); \n void print(string words); \n...
86
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.26, "nodes": 62, "errors": 0, "source_hash": "aa35a4152af4642888d22f1058cf57f25b669da5c69b9f80f272d28d9098f723", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,989
c
#include <stdio.h> #include <gmp.h> #include <mpfr.h> int main() { mpfr_t work; mpfr_init2(work, 200); // 有効桁数200bitで初期化 mpfr_set_d(work, 1.0, MPFR_RNDD); // double変数を代入 printf("work is "); mpfr_out_str(stdout, 10, 10, work, MPFR_RNDD); // 出力 2個目はn進数での出力指定  // 3個目は何桁出力するか(size_t) '...
27.21
19
(translation_unit) "#include <stdio.h>\n#include <gmp.h>\n#include <mpfr.h>\n\nint main()\n{\n mpfr_t work;\n\n mpfr_init2(work, 200); // 有効桁数200bitで初期化\n mpfr_set_d(work, 1.0, MPFR_RNDD); // double変数を代入\n\n printf("work is ");\n mpfr_out_str(stdout, 10, 10, work, MPFR_RNDD); // 出力 2個目はn進数での出力...
149
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.21, "nodes": 77, "errors": 0, "source_hash": "0820b1c61e0b23e1c399d87eaa63b17ff18a1be578193aa06faf493dc07b6e00", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,990
c
/* * $Id: dns2mdns.h $ * * Author: <NAME> <markus <EMAIL>> * * Copyright (c) 2014 cisco Systems, Inc. * * Created: Wed Jan 8 17:23:19 2014 mstenber * Last modified: Sat Sep 12 10:38:22 2015 mstenber * Edit time: 58 min * */ #pragma once #include "dns_proto.h" /* How many milliseconds can we wai...
30.03
31
(translation_unit) "/*\n * $Id: dns2mdns.h $\n *\n * Author: <NAME> <markus <EMAIL>>\n *\n * Copyright (c) 2014 cisco Systems, Inc.\n *\n * Created: Wed Jan 8 17:23:19 2014 mstenber\n * Last modified: Sat Sep 12 10:38:22 2015 mstenber\n * Edit time: 58 min\n *\n */\n\n#pragma once\n\n#include "dns_proto.h"\n...
41
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.03, "nodes": 25, "errors": 0, "source_hash": "a8184bb5f58a2286f04c4701c74c56e7db09b7af788f8368e81ebd37fc426e78", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,991
c
// // AfterpartyMyEventsViewController.h // Afterparty // // Created by <NAME> on 12/6/13. // Copyright (c) 2013 DMOS. All rights reserved. // #import <UIKit/UIKit.h> @interface APMyEventsViewController : UITableViewController @end
22.7
10
(translation_unit) "//\n// AfterpartyMyEventsViewController.h\n// Afterparty\n//\n// Created by <NAME> on 12/6/13.\n// Copyright (c) 2013 DMOS. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface APMyEventsViewController : UITableViewController \n\n@end\n" (comment) "//" (comment) "// AfterpartyM...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.7, "nodes": 9, "errors": 0, "source_hash": "84855720acef25466fe92821541874e43ed1df318258ad9d99331c52e07f8719", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
13,992
c
/* ** EPITECH PROJECT, 2020 ** libmy ** File description: ** Buffered reader implementation that reads a cstring */ #ifndef LIBMY_IO_CSTRREADER_H #define LIBMY_IO_CSTRREADER_H #include "my/io/bufreader.h" bufreader_t *cstrreader_new(const char *str, usize_t buf_size); #endif /* LIBMY_IO_CSTRREADER_H */
26.64
11
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** libmy\n** File description:\n** Buffered reader implementation that reads a cstring\n*/\n\n#ifndef LIBMY_IO_CSTRREADER_H\n#define LIBMY_IO_CSTRREADER_H\n\n#include "my/io/bufreader.h"\n\nbufreader_t *cstrreader_new(const char *str, usize_t buf_size);\n\n#endif /* LIB...
37
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.64, "nodes": 25, "errors": 0, "source_hash": "19eb3019d695fc78c8b05c047db96dc605a196e2735c76055d391457c2e284b0", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,993
c
#ifndef _TESSELATION_H_ #define _TESSELATION_H_ #include "scene.h" // map used to uniquify edges struct EdgeMap { map<pair<int,int>,int> _edge_map; // internal map vector<vec2i> _edge_list; // internal list to generate unique ids // create an edge map for a collection of triangles and qua...
37.59
49
(translation_unit) "#ifndef _TESSELATION_H_\n#define _TESSELATION_H_\n\n#include "scene.h"\n\n// map used to uniquify edges\nstruct EdgeMap {\n map<pair<int,int>,int> _edge_map; // internal map\n vector<vec2i> _edge_list; // internal list to generate unique ids\n \n // create an edge map for a c...
581
16
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 37.59, "nodes": 355, "errors": 0, "source_hash": "3dda2fe42bf8e1ffe9429d9e6749e30cdc420fb66ebb60432c5d5228e4bbffcc", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,994
c
int isprint(int c) { return c < 127 && c > 31; } int isspace(int c) { return (c > 7 && c < 14) || c == ' '; }
18.67
6
(translation_unit) "int isprint(int c) {\n return c < 127 && c > 31;\n}\nint isspace(int c) {\n return (c > 7 && c < 14) || c == ' ';\n}\n" (function_definition) "int isprint(int c) {\n return c < 127 && c > 31;\n}" (primitive_type) "int" (function_declarator) "isprint(int c)" (identifier) "isp...
65
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.67, "nodes": 48, "errors": 0, "source_hash": "471203e86b7ec13cb5ce3706d6193f60d6c342cf495d83d4f0a20dd10197bc62", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
13,995
c
#pragma once #include "XSceneObject.h" #include "XColor.h" class XLight : public XSceneObject { public: XLight(); double GetIntensity() const; void SetIntensity(double nIntensity); private: double Intensity; XColor Color; };
13.71
17
(translation_unit) "#pragma once \n \n#include "XSceneObject.h" \n#include "XColor.h" \n \nclass XLight : public XSceneObject \n{ \npublic: \n XLight(); \n \n double GetIntensity() const; \n void SetIntensity(double nIntensity); \n \nprivate: \n double Intensity; \n XColor Color; \n};" (preproc_call) "#pragma once \n...
71
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 13.71, "nodes": 37, "errors": 0, "source_hash": "709eef57d6cd45edb0f50882e69527dec7f55668505b5d86eb24d727fa4e6f80", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,996
c
// // GWViewController.h // GWHomeKit // // Created by FuShun on 12/13/2018. // Copyright (c) 2018 FuShun. All rights reserved. // @import UIKit; @interface GWViewController : UIViewController @end
19.2
10
(translation_unit) "//\n// GWViewController.h\n// GWHomeKit\n//\n// Created by FuShun on 12/13/2018.\n// Copyright (c) 2018 FuShun. All rights reserved.\n//\n\n@import UIKit;\n\n@interface GWViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// GWViewController.h" (comment) "// GWHomeKit...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 10, "errors": 0, "source_hash": "7900716cc296201517e8189bee24ee8d0f2d11597a044ae8fdaa3170ea24919d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
13,997
c
/** Autor: <NAME> Descrição: Demonstração do envio de um sinal (SIGTERM) de um processo para outro e a sua captura. **/ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> #include <string.h> void sigterm_handler(int sig){ const char* str = "Filho: Tu não manda...
24.38
50
(translation_unit) "/**\n Autor: <NAME>\n Descrição: Demonstração do envio de um sinal (SIGTERM) de um processo\n para outro e a sua captura.\n**/\n\n\n#include <stdio.h>\n#include <errno.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <signal.h>\n#include <string.h>\n\nvoid sigterm_handler(int sig){\n con...
351
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 24.38, "nodes": 178, "errors": 0, "source_hash": "9af136b2301c67483e96e1b61eede981e973d2ebe58ae457a5a22e5618b6c3de", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lude...
13,998
c
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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/licenses/LICENSE-2.0 * * Unless ...
30.66
229
(translation_unit) "/*\n * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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\n *\n * http://www.apache.org/license...
1,250
0
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 30.66, "nodes": 782, "errors": 0, "source_hash": "afffcd3f7a449c96f3958061f28b62b8e00cb1e563ea760d47d0486a662fec3e", "categorized_nodes": 566}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,999