<commit_before>define(["conversion"],
    function(conversion) {
		QUnit.test('conversion - latLngToGridRef - should return actual grid refs', function (assert) {
			assert.equal(conversion.latLngToGridRef(52.657977, 1.716038), 'TG 51408 13177');
		});

		QUnit.test('conversion - osgbToLngLat - should work for valid OSBGs', function (assert) {
			assert.deepEqual(conversion.osgbToLngLat(651409, 313177), [1.716038442825891, 52.65797660129557]); // array is long, lat
		});

		QUnit.test('conversion - gridRefToOsgb - should work for valid grid refs', function (assert) {
			assert.deepEqual(conversion.gridRefToOsgb('TG 51408 13177'), [651408, 313177]); // array is long, lat
		});

		QUnit.test('conversion - gridRefToLngLat - should work for valid grid refs', function (assert) {
			assert.deepEqual(conversion.gridRefToLngLat('TG 51408 13177'), [1.7160236901080013, 52.657977064472796]); // array is long, lat
		});
	}
);<commit_msg>Fixing mutating test<commit_after>define(["conversion"],
    function(conversion) {
		QUnit.test('conversion - latLngToGridRef - should return actual grid refs', function (assert) {
			assert.equal(conversion.latLngToGridRef(52.657977, 1.716038), 'TG 51408 13177');
		});

		QUnit.test('conversion - osgbToLngLat - should work for valid OSBGs', function (assert) {
			//the exact conversion seems to change slightly depending on the javscript runtime... but that level of detail won't matter so much, so just validate the range.
			var minExpectedValue = [1.716038442825891, 52.65797660129557];
			var maxExpectedValue = [1.716038442825891, 52.65797660129558];
			var actualValue = conversion.osgbToLngLat(651409, 313177);// array is long, lat
			assert.equal(actualValue.length, 2);
			assert.ok(actualValue[0] >= minExpectedValue[0]);
			assert.ok(actualValue[0] <= maxExpectedValue[0]);
			assert.ok(actualValue[1] >= minExpectedValue[1]);
			assert.ok(actualValue[1] <= maxExpectedValue[1]);
		});

		QUnit.test('conversion - gridRefToOsgb - should work for valid grid refs', function (assert) {
			assert.deepEqual(conversion.gridRefToOsgb('TG 51408 13177'), [651408, 313177]); // array is long, lat
		});

		QUnit.test('conversion - gridRefToLngLat - should work for valid grid refs', function (assert) {
			assert.deepEqual(conversion.gridRefToLngLat('TG 51408 13177'), [1.7160236901080013, 52.657977064472796]); // array is long, lat
		});
	}
);
{'fraction_non_alphanumeric': 0.1346153846153846, 'fraction_numerical': 0.13001672240802675, 'mean_word_length': 4.836585365853659, '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': '2608415', 'n_tokens_mistral': 1069, 'n_tokens_neox': 796, 'n_words': 188}