<commit_before>define([
	'require',
	'marionette',
	'i18n!nls/i18n.js'
], function(lrequire, Marionette, Lang)
{

	var helper = {

		__: function (key)
		{
			if (Lang[key] && typeof Lang[key] !== 'undefined')
				return Lang[key];
			return key;
		}

	};

	return helper;

});
<commit_msg>interpret variables into i18n string if necessary<commit_after>define([
	'require',
	'marionette',
	'i18n!nls/i18n.js'
], function(lrequire, Marionette, Translate)
{

	/**
	 * strtr() for JavaScript
	 * Translate characters or replace substrings
	 * The above licence and copyright is only applied to this function.
	 *
	 * @author <NAME> 
	 * @version strtr.js, v 1.0 
	 * @license MIT
	 * @copyright (c) <NAME> http://dsheiko.com
	 * @see https://gist.github.com/dsheiko/2774533
	 */
	String.prototype.strtr = function (replacePairs)
	{
		"use strict";
		var str = this.toString(), key, re;
		for (key in replacePairs) {
			if (replacePairs.hasOwnProperty(key)) {
				re = new RegExp(key, "g");
				str = str.replace(re, replacePairs[key]);
			}
		}
		return str;
	};

	var helper = {

		__: function (string, values)
		{
			// Find the translation string
			if (Translate[string] && typeof Translate[string] !== 'undefined')
				string = Translate[string];

			// Inject values if necessary
			if (typeof values === 'object')
				string = string.strtr(values);

			return string;
		}

	};

	return helper;

});

{'fraction_non_alphanumeric': 0.1502849002849003, 'fraction_numerical': 0.013532763532763533, 'mean_word_length': 3.390625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '246265', 'n_tokens_mistral': 564, 'n_tokens_neox': 484, 'n_words': 123}