<commit_before>(function (mw, $) {
	"use strict";

	mw.PluginManager.add('currentTimeLabel', mw.KBaseComponent.extend({

		defaultConfig: {
			"parent": "controlsContainer",
			"order": 21,
			"displayImportance": "high"
		},

		updateEnabled: true,

		setup: function () {
			var _this = this;
			if ( this.embedPlayer.isMobileSkin() ){
				this.getComponent().data("width",0.1);
			}
			this.bindTimeUpdate();
			this.bind('externalTimeUpdate', function (e, newTime) {
				if (newTime != undefined) {
					_this.updateUI(newTime);
				}
			});
			//will stop listening to native timeupdate events
			this.bind('detachTimeUpdate', function () {
				_this.unbind('timeupdate');
			});
			//will re-listen to native timeupdate events
			this.bind('reattachTimeUpdate', function () {
				_this.bindTimeUpdate();
			});
			// Bind to Ad events
			this.bind('AdSupport_AdUpdatePlayhead', function (e, currentTime) {
				if (_this.getPlayer().isInSequence()) {
					_this.updateUI(currentTime);
				}
			});
			this.bind('AdSupport_EndAdPlayback', function () {
				_this.updateUI(_this.getCurrentTime());
			});
			this.bind('seeked', function () {
				_this.updateUI(_this.getCurrentTime());
			});
			this.bind("freezeTimeIndicators", function (e, state) {
				if (state === true) {
					_this.updateEnabled = false;
				} else {<commit_msg>zero the current time when changing media<commit_after>(function (mw, $) {
	"use strict";

	mw.PluginManager.add('currentTimeLabel', mw.KBaseComponent.extend({

		defaultConfig: {
			"parent": "controlsContainer",
			"order": 21,
			"displayImportance": "high"
		},

		updateEnabled: true,

		setup: function () {
			var _this = this;
			if ( this.embedPlayer.isMobileSkin() ){
				this.getComponent().data("width",0.1);
			}
			this.bindTimeUpdate();
			this.bind('externalTimeUpdate', function (e, newTime) {
				if (newTime != undefined) {
					_this.updateUI(newTime);
				}
			});
			// zero the current time when changing media
			this.bind('onChangeMediaDone', function () {
				_this.updateUI(0);
			});
			//will stop listening to native timeupdate events
			this.bind('detachTimeUpdate', function () {
				_this.unbind('timeupdate');
			});
			//will re-listen to native timeupdate events
			this.bind('reattachTimeUpdate', function () {
				_this.bindTimeUpdate();
			});
			// Bind to Ad events
			this.bind('AdSupport_AdUpdatePlayhead', function (e, currentTime) {
				if (_this.getPlayer().isInSequence()) {
					_this.updateUI(currentTime);
				}
			});
			this.bind('AdSupport_EndAdPlayback', function () {
				_this.updateUI(_this.getCurrentTime());
			});
			this.bind('seeked', function () {
				_this.updateUI(_this.getCurrentTime());
			});
			this.bind("freezeTimeIndicators", function (e, state) {
				if (state === true) {
					_this.updateEnabled = false;
				} else {
{'fraction_non_alphanumeric': 0.15783898305084745, 'fraction_numerical': 0.0031779661016949155, 'mean_word_length': 3.554662379421222, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, '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': '1366581', 'n_tokens_mistral': 1119, 'n_tokens_neox': 907, 'n_words': 172}