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

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

		defaultConfig: {
			'buttonsSize': null,
			'buttonsColor': null,
			'buttonsIconColor': null,
			'sliderColor': null,
			'controlsBkgColor': null,
			'scrubberColor': null,
			'watchedSliderColor':null,
			'bufferedSliderColor':null,
			'timeLabelColor':null,
			'buttonsIconColorDropShadow': null,
			'dropShadowColor': null,
			'applyToLargePlayButton': true
		},

		setup: function( embedPlayer ) {
			this.addBindings();
		},
		addBindings: function() {
			var _this = this;
			// update drop shadow after the layout is ready
			this.bind('layoutBuildDone', function(){
				_this.onConfigChange('buttonsIconColorDropShadow', _this.getConfig('buttonsIconColorDropShadow'));
				if ( mw.isIE() ){
					$(".btn").not(".playHead").css({'margin-left': 1+'px','margin-right': 1+'px'});
				}
			});
		},
		onConfigChange: function( property, value ){
			if (value != null){
				switch( property ) {
					case 'applyToLargePlayButton':
						if (!this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn").attr("style", "background-color: #222222 !important; color: #ffffff !important");
						} else {
							$(".largePlayBtn").attr("style", "background-color: " + this.getConfig('buttonsColor') + " !important; color: " + this.getConfig('buttonsIconColor') + " !important");
						}
						break;
					case 'buttonsSize':
						$("body").css("font-size",value + "px");
						break;
					case 'buttonsColor':
						$(".btn").not(".playHead").attr("style","background-color: " + value + " !important; color: "+ this.getConfig('buttonsIconColor') +" !important; text-shadow: "+ this.getConfig('dropShadowColor') +" !important");
						if (this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn").attr("style", "background-color: " + value + " !important");
						}
						break;
					case 'buttonsIconColor':
						$(".btn").not(".playHead").attr("style","color: " + value + " !important; background-color: "+ this.getConfig('buttonsColor') +" !important; text-shadow: "+ this.getConfig('dropShadowColor') +" !important");
						if (this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn ").attr("style", "color: " + value + " !important; background-color: " + this.getConfig('buttonsColor') + " !important");
						}
						break;
					case 'sliderColor':
						$(".ui-slider").attr("style","background-color: " + value + " !important");
						break;
					case 'controlsBkgColor':
						$(".controlsContainer").attr("style","background-color: " + value + " !important");
						$(".controlsContainer").attr("style","background: " + value + " !important");
						break;<commit_msg>#SUP-5535 #comment fix icon color for largePlayBtn #time 1h<commit_after>( function( mw, $ ) {"use strict";

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

		defaultConfig: {
			'buttonsSize': null,
			'buttonsColor': null,
			'buttonsIconColor': null,
			'sliderColor': null,
			'controlsBkgColor': null,
			'scrubberColor': null,
			'watchedSliderColor':null,
			'bufferedSliderColor':null,
			'timeLabelColor':null,
			'buttonsIconColorDropShadow': null,
			'dropShadowColor': null,
			'applyToLargePlayButton': true
		},

		setup: function( embedPlayer ) {
			this.addBindings();
		},
		addBindings: function() {
			var _this = this;
			// update drop shadow after the layout is ready
			this.bind('layoutBuildDone', function(){
				_this.onConfigChange('buttonsIconColorDropShadow', _this.getConfig('buttonsIconColorDropShadow'));
				if ( mw.isIE() ){
					$(".btn").not(".playHead").css({'margin-left': 1+'px','margin-right': 1+'px'});
				}
			});
		},
		onConfigChange: function( property, value ){
			if (value != null){
				switch( property ) {
					case 'applyToLargePlayButton':
						if (!this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn").attr("style", "background-color: #222222 !important; color: #ffffff !important");
						} else {
							$(".largePlayBtn").attr("style", "background-color: " + this.getConfig('buttonsColor') + " !important; color: " + this.getConfig('buttonsIconColor') + " !important");
						}
						break;
					case 'buttonsSize':
						$("body").css("font-size",value + "px");
						break;
					case 'buttonsColor':
						$(".btn").not(".playHead").attr("style","background-color: " + value + " !important; color: "+ this.getConfig('buttonsIconColor') +" !important; text-shadow: "+ this.getConfig('dropShadowColor') +" !important");
						if (this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn").attr("style", "background-color: " + value + " !important; color: "+ this.getConfig('buttonsIconColor') +" !important;");
						}
						break;
					case 'buttonsIconColor':
						$(".btn").not(".playHead").attr("style","color: " + value + " !important; background-color: "+ this.getConfig('buttonsColor') +" !important; text-shadow: "+ this.getConfig('dropShadowColor') +" !important");
						if (this.getConfig('applyToLargePlayButton')) {
							$(".largePlayBtn ").attr("style", "color: " + value + " !important; background-color: " + this.getConfig('buttonsColor') + " !important");
						}
						break;
					case 'sliderColor':
						$(".ui-slider").attr("style","background-color: " + value + " !important");
						break;
					case 'controlsBkgColor':
						$(".controlsContainer").attr("style","background-color: " + value + " !important");
						$(".controlsContainer").attr("style","background: " + value + " !important");
						break;
{'fraction_non_alphanumeric': 0.1935193519351935, 'fraction_numerical': 0.0037803780378037805, 'mean_word_length': 4.005405405405406, 'pattern_counts': {'":': 0, '<': 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': '1203320', 'n_tokens_mistral': 2103, 'n_tokens_neox': 1681, 'n_words': 300}