<commit_before>(function() {

	'use strict';

	var Firebase = require('firebase');

	var _fbRef = new Firebase('https://kongtrackr.firebaseio.com');
	var _gamesRef = _fbRef.child('games');
	var _timelinesRef = _fbRef.child('timelines');

	var buildArcadeWRTimeline = function() {

		_gamesRef.once('value', function(gamesSnapshot) {

			// Grab every arcade platform game in the database.
			var arcadeGamesArray = [];

			gamesSnapshot.forEach(function(game) {

				var gameData = game.val();

				var splitDate = gameData.date.split('/');
				var isoStringDate = splitDate[2] + '-' + splitDate[0] + '-' + splitDate[1];
				var isoDate = new Date(isoStringDate);

				gameData.isoDate = isoDate;
				gameData.gameId = game.key();

				if (gameData.platform === 'Arcade') {
					arcadeGamesArray.push(gameData);
				}

			});

			// Sort by date.
			arcadeGamesArray.sort(function(a, b) {
				return a.isoDate - b.isoDate;
			});

			var worldRecordTimeline = [];
			var currentWorldRecordScore = 0;
			arcadeGamesArray.forEach(function(game) {

				if (game.score > currentWorldRecordScore) {

					worldRecordTimeline.push(game);
					currentWorldRecordScore = game.score;
<commit_msg>fix(timeline): exclude 1982 pre-Mitchell scores<commit_after>(function() {

	'use strict';

	var Firebase = require('firebase');

	var _fbRef = new Firebase('https://kongtrackr.firebaseio.com');
	var _gamesRef = _fbRef.child('games');
	var _timelinesRef = _fbRef.child('timelines');

	var buildArcadeWRTimeline = function() {

		_gamesRef.once('value', function(gamesSnapshot) {

			// Grab every arcade platform game in the database.
			var arcadeGamesArray = [];

			gamesSnapshot.forEach(function(game) {

				var gameData = game.val();

				var splitDate = gameData.date.split('/');
				var isoStringDate = splitDate[2] + '-' + splitDate[0] + '-' + splitDate[1];
				var isoDate = new Date(isoStringDate);

				gameData.isoDate = isoDate;
				gameData.gameId = game.key();

				if (gameData.platform === 'Arcade') {
					arcadeGamesArray.push(gameData);
				}

			});

			// Sort by date.
			arcadeGamesArray.sort(function(a, b) {
				return a.isoDate - b.isoDate;
			});

			var worldRecordTimeline = [];
			var currentWorldRecordScore = 0;
			arcadeGamesArray.forEach(function(game) {

				if (game.score > currentWorldRecordScore && game.score >= 800000) {

					worldRecordTimeline.push(game);
					currentWorldRecordScore = game.score;

{'fraction_non_alphanumeric': 0.14021381578947367, 'fraction_numerical': 0.007401315789473684, 'mean_word_length': 3.6520076481835564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '6623008', 'n_tokens_mistral': 971, 'n_tokens_neox': 784, 'n_words': 156}