<commit_before>#include "atom.h"
#include "details/ir/sequence.h"
#include "details/atom/classdef-table.h"
#include "details/atom/classdef-table-view.h"
#include "details/reporting/report.h"
#include "details/errors/errors.h"

using namespace Yuni;





namespace Nany
{

	namespace // anonymous
	{

		template<class OutT, class ListT, class TableT>
		static void atomParametersPrinter(OutT& out, ListT& list, const TableT* table, bool avoidSelf, AnyString sepBefore, AnyString sepAfter)
		{
			bool first = true;
			out << sepBefore;
			list.each([&](uint32_t i, const AnyString& paramname, const Vardef& vardef)
			{
				// avoid the first virtual parameter
				if (avoidSelf and i == 0 and paramname == "self")
					return;

				if (not first)
					out << ", ";
				first = false;
				out << paramname;

				if (table)
				{
					if (table) // and table->hasClassdef(vardef.clid))
					{
						if (table->hasClassdef(vardef.clid))
						{
							auto& retcdef = table->rawclassdef(vardef.clid);
							if (not retcdef.isVoid())
							{
								out << ": ";
								retcdef.print(out, *table, false);
								if (debugmode)
									out << ' ' << retcdef.clid;
							}
						}
					}
				}
				else
				{
					if (not vardef.clid.isVoid())
						out << ": any";
				}
			});
			out << sepAfter;
		}

	} // anonymous namespace


<commit_msg>atom: indentation / anonymous namespace<commit_after>#include "atom.h"
#include "details/ir/sequence.h"
#include "details/atom/classdef-table.h"
#include "details/atom/classdef-table-view.h"
#include "details/reporting/report.h"
#include "details/errors/errors.h"

using namespace Yuni;





namespace Nany
{

	namespace {


	template<class OutT, class ListT, class TableT>
	void atomParametersPrinter(OutT& out, ListT& list, const TableT* table, bool avoidSelf, AnyString sepBefore, AnyString sepAfter)
	{
		bool first = true;
		out << sepBefore;
		list.each([&](uint32_t i, const AnyString& paramname, const Vardef& vardef)
		{
			// avoid the first virtual parameter
			if (avoidSelf and i == 0 and paramname == "self")
				return;

			if (not first)
				out << ", ";
			first = false;
			out << paramname;

			if (table)
			{
				if (table) // and table->hasClassdef(vardef.clid))
				{
					if (table->hasClassdef(vardef.clid))
					{
						auto& retcdef = table->rawclassdef(vardef.clid);
						if (not retcdef.isVoid())
						{
							out << ": ";
							retcdef.print(out, *table, false);
							if (debugmode)
								out << ' ' << retcdef.clid;
						}
					}
				}
			}
			else
			{
				if (not vardef.clid.isVoid())
					out << ": any";
			}
		});
		out << sepAfter;
	}


	} // anonymous namespace



{'fraction_non_alphanumeric': 0.14156626506024098, 'fraction_numerical': 0.002259036144578313, 'mean_word_length': 2.595399188092016, 'pattern_counts': {'":': 4, '<': 37, '<?xml version=': 0, '>': 11, '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': '3303901', 'n_tokens_mistral': 1193, 'n_tokens_neox': 918, 'n_words': 215}