<commit_before>/*
 * Arg.cpp
 * 
 * This file is part of the "XieXie 2.0 Project" (Copyright (c) 2014 by <NAME>)
 * See "LICENSE.txt" for license information.
 */

#include "Arg.h"
#include "Expr.h"
#include "TypeDenoter.h"


namespace AbstractSyntaxTrees
{


const TypeDenoter* Arg::GetTypeDenoter() const
{
    return expr->GetTypeDenoter();
}

std::string Arg::ToString() const
{
    std::string str;

    if (!paramIdent.empty())
        str += paramIdent + ": ";
    
    auto exprType = GetTypeDenoter();
    if (exprType)
        str += exprType->ToString();

    return str;
}


} // /namespace AbstractSyntaxTrees



// ================================================================================<commit_msg>Changed output of "Arg::ToString" function.<commit_after>/*
 * Arg.cpp
 * 
 * This file is part of the "XieXie 2.0 Project" (Copyright (c) 2014 by <NAME>)
 * See "LICENSE.txt" for license information.
 */

#include "Arg.h"
#include "Expr.h"
#include "TypeDenoter.h"


namespace AbstractSyntaxTrees
{


const TypeDenoter* Arg::GetTypeDenoter() const
{
    return expr->GetTypeDenoter();
}

std::string Arg::ToString() const
{
    std::string str;

    auto exprType = GetTypeDenoter();
    if (exprType)
        str += exprType->ToString();

    if (!paramIdent.empty())
        str += ' ' + paramIdent;

    return str;
}


} // /namespace AbstractSyntaxTrees



// ================================================================================
{'fraction_non_alphanumeric': 0.23994546693933197, 'fraction_numerical': 0.0081799591002045, 'mean_word_length': 3.7051282051282053, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2969730', 'n_tokens_mistral': 467, 'n_tokens_neox': 429, 'n_words': 114}