<commit_before>function FormatIOS()
{
	this.toFile = function(language, translations)
	{
		var result = ''
		
		translations.forEach(translation =>
		{
			if (result != '')
			{
				result += '\n\n'
			}

			if (translation.description)
			{
				result += `/* ${translation.description} */\n`	
			}
			
			result += `"${translation.key}" = "${translation.value}";`
		})
	
		return result
	}

	this.fromFile = function(content)
	{
		return []
	}
}<commit_msg>Generating parameters in iOS exported file<commit_after>function FormatIOS()
{
	this.toFile = function(language, translations)
	{
		var result = ''
		
		translations.forEach(translation =>
		{
			if (result != '')
			{
				result += '\n\n'
			}

			if (translation.description)
			{
				result += `/* ${translation.description} */\n`	
			}
			
			result += `"${translation.key}" = "${sanitizeValue(translation.value)}";`
		})
	
		return result
	}

	function sanitizeValue(value)
	{
		return escapeString(setParameters(value))
	}

	function setParameters(value)
	{
		var result = value
		var index  = 1
		var REGEX  = /{{([^}}]*)}}/
		var match  = null

		while (match = REGEX.exec(result))
		{
			result = result.replace(REGEX, `%${index++}$${match[1]}`)

			if (index > 100)
			{
				break
			}
		}

		return result
	}

	function escapeString(value)
	{
		return value // TODO
	}

	this.fromFile = function(content)
	{
		return []
	}
}
{'fraction_non_alphanumeric': 0.16798277099784636, 'fraction_numerical': 0.003589375448671931, 'mean_word_length': 2.883008356545961, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3374007', 'n_tokens_mistral': 584, 'n_tokens_neox': 478, 'n_words': 89}