<commit_before>#include "symbol_table_class.hpp"

namespace assembler
{

bool symbol_table::sym_name_has_dot_f( const string_view& name ) const
{
	if ( name.size() >= 2 )
	{
		return ( ( *( name.cend() - 2 ) == '.' ) 
			&& ( *( name.cend() - 1 ) == 'f' ) );
	}
	
	return false;
}

string_view symbol_table::get_name( std::string&& name_as_str )
{
	//auto maybe_ret = str_set().find(name_as_str);
	//
	//if ( maybe_ret != str_set().end() )
	//{
	//	return string_view(*maybe_ret);
	//}
	//
	//return string_view();
	
	return string_view(*str_set().insert(std::move(name_as_str)).first);
}


symbol& symbol_table::enter( std::string&& name_as_str, tok typ, 
	int val, size_t instr_grp )
{
	string_view name = get_name(std::move(name_as_str));<commit_msg>stuffs<commit_after>#include "symbol_table_class.hpp"

namespace assembler
{

bool symbol_table::sym_name_has_dot_f( const string_view& name ) const
{
	if ( name.size() >= 2 )
	{
		return ( ( *( name.cend() - 2 ) == '.' ) 
			&& ( *( name.cend() - 1 ) == 'f' ) );
	}
	
	return false;
}

string_view symbol_table::get_name( std::string&& name_as_str )
{
	return string_view(*str_set().insert(std::move(name_as_str)).first);
}


symbol& symbol_table::enter( std::string&& name_as_str, tok typ, 
	int val, size_t instr_grp )
{
	string_view name = get_name(std::move(name_as_str));
{'fraction_non_alphanumeric': 0.18421052631578946, 'fraction_numerical': 0.004511278195488722, 'mean_word_length': 4.366935483870968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2103529', 'n_tokens_mistral': 547, 'n_tokens_neox': 524, 'n_words': 89}