<commit_before>(function(){
	moment.locale("en");

	var $map = $('.map-inset'),
		$labelName = $('.map-label-name'),
		$labelTime = $('.map-label-time'),
		$axisX = $('.map-axis-x'),
		$axisY = $('.map-axis-y'),
		width = $map.outerWidth(),
		height = $map.outerHeight(),
		lastCenter,
		centers = [];

	$(window).resize(function () {
		width = $map.outerWidth();
		height = $map.outerHeight();
	}).resize();

	function changeCenter (center) {
		if (center === lastCenter) {
			return;
		}
		if (lastCenter) {
			lastCenter.deactivate();
		}
		center.activate();
		lastCenter = center;
	}

	function Center (data) {
		this.name = data.name;
		this.x = (180 + data.long) / 360;
		this.y = (90 - data.lat) / 180;
		this.dom = $('<span>').appendTo($map).css({
			left: this.x * 100 + '%',
			top: this.y * 100 + '%'
		});
		if (this.name === 'America/Los_Angeles') {
			changeCenter(this);
		}
	}

	Center.prototype = {
		distSqr : function (x, y) {
			var dx = this.x - x,
				dy = this.y - y;
			return dx * dx + dy * dy;
		},
		activate : function () {
			var m = moment().tz(this.name);
			$labelName.text(this.name);
			$labelTime.text(m.format("hh:mm a ") + m.zoneAbbr());
			$axisX.css('left', this.x * 100 + '%');
			$axisY.css('top', this.y * 100 + '%');
		},
		deactivate : function ()  {
			this.dom.removeClass('active');
		}
	};

	$.getJSON('/data/moment-timezone-meta.json').then(function (data) {
		for (var i = 0; i < data.length; i++) {
			centers.push(new Center(data[i]));
		}
	});
<commit_msg>Fix timezone metadata changes.<commit_after>(function(){
	moment.locale("en");

	var $map = $('.map-inset'),
		$labelName = $('.map-label-name'),
		$labelTime = $('.map-label-time'),
		$axisX = $('.map-axis-x'),
		$axisY = $('.map-axis-y'),
		width = $map.outerWidth(),
		height = $map.outerHeight(),
		lastCenter,
		centers = [];

	$(window).resize(function () {
		width = $map.outerWidth();
		height = $map.outerHeight();
	}).resize();

	function changeCenter (center) {
		if (center === lastCenter) {
			return;
		}
		if (lastCenter) {
			lastCenter.deactivate();
		}
		center.activate();
		lastCenter = center;
	}

	function Center (data) {
		this.name = data.name;
		this.x = (180 + data.long) / 360;
		this.y = (90 - data.lat) / 180;
		this.dom = $('<span>').appendTo($map).css({
			left: this.x * 100 + '%',
			top: this.y * 100 + '%'
		});
		if (this.name === 'America/Los_Angeles') {
			changeCenter(this);
		}
	}

	Center.prototype = {
		distSqr : function (x, y) {
			var dx = this.x - x,
				dy = this.y - y;
			return dx * dx + dy * dy;
		},
		activate : function () {
			var m = moment().tz(this.name);
			$labelName.text(this.name);
			$labelTime.text(m.format("hh:mm a ") + m.zoneAbbr());
			$axisX.css('left', this.x * 100 + '%');
			$axisY.css('top', this.y * 100 + '%');
		},
		deactivate : function ()  {
			this.dom.removeClass('active');
		}
	};

	$.getJSON('/data/moment-timezone-meta.json').then(function (data) {
		for (var name in data.zones) {
			centers.push(new Center(data.zones[name]));
		}
	});

{'fraction_non_alphanumeric': 0.225880803424432, 'fraction_numerical': 0.015475798485347383, 'mean_word_length': 2.9973684210526317, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4007917', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1146, 'n_words': 219}