<commit_before>#pragma once

#include <string>

namespace supermarx
{

enum class measure
{
	UNITS,
	MILLILITERS,
	MILLIGRAMS,
	MILLIMETERS
};

inline std::string to_string(measure m)
{
	switch(m)
	{
	case measure::UNITS:
		return "UNITS";
	case measure::MILLILITERS:
		return "MILLILITERS";
	case measure::MILLIGRAMS:
		return "MILLIGRAMS";
	case measure::MILLIMETERS:
		return "MILLIMETERS";
	}
}

inline measure to_measure(std::string const& str)
{
	if(str == "UNITS")
		return measure::UNITS;
	else if(str == "MILLILITERS")
		return measure::MILLILITERS;
	else if(str == "MILLIGRAMS")
		return measure::MILLIGRAMS;
	else if(str == "MILLIMETERS")
		return measure::MILLIMETERS;

	throw std::runtime_error("Could not parse measure");
}

}<commit_msg>Changed measure_t to international standards<commit_after>#pragma once

#include <string>

namespace supermarx
{

enum class measure
{
	UNITS,
	MILLILITRES,
	MILLIGRAMS,
	MILLIMETRES
};

inline std::string to_string(measure m)
{
	switch(m)
	{
	case measure::UNITS:
		return "UNITS";
	case measure::MILLILITRES:
		return "MILLILITRES";
	case measure::MILLIGRAMS:
		return "MILLIGRAMS";
	case measure::MILLIMETRES:
		return "MILLIMETRES";
	}
}

inline measure to_measure(std::string const& str)
{
	if(str == "UNITS")
		return measure::UNITS;
	else if(str == "MILLILITRES")
		return measure::MILLILITRES;
	else if(str == "MILLIGRAMS")
		return measure::MILLIGRAMS;
	else if(str == "MILLIMETRES")
		return measure::MILLIMETRES;

	throw std::runtime_error("Could not parse measure");
}

}
{'fraction_non_alphanumeric': 0.1289902280130293, 'fraction_numerical': 0.0, 'mean_word_length': 5.536170212765957, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1277395', 'n_tokens_mistral': 643, 'n_tokens_neox': 603, 'n_words': 130}