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

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

		defaultConfig: {
			parent: "topBarContainer",
         	order: 4,
         	align: "right",
         	//visible: false,
         	itemsLimit: 12,
         	displayOnPlaybackDone: true,
         	autoContinueTime: null,
         	nextItemText: "Next: {mediaProxy.entry.name} in <span class='time'>{related.timeRemaining|timeFormat}</span>",
         	template: '<% _.each(items, function(item, idx) { %> \
         					<% if( idx == 0 ) { var className = "medium"; } else { var className = "small"; } %> \
         					<div class="item <%=className%>" data-entryid="<%=item.id%>"><div class="item-inner"> \
         					<div class="title"><%=item.name%></div> \
         					<img src="<%=item.thumbnailUrl%>/width/350" /></div></div><% }); %>',
         	playlistId: null,         	
		},
		$screen: null,
		setup: function(){
			var _this = this;

			// Underscore templates
			this.template = _.template( this.getConfig('template', true) );

			this.bind('playerReady', function(){
				_this.itemsData = null;
				_this.getItemsData(function(){
					if( _this.$screen ){
						_this.$screen.remove();
						_this.$screen = null;<commit_msg>wp fix<commit_after>( function( mw, $ ) {"use strict";

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

		defaultConfig: {
			parent: "topBarContainer",
			order: 4,
			align: "right",
			//visible: false,
			itemsLimit: 12,
			displayOnPlaybackDone: true,
			autoContinueTime: null,
			nextItemText: "Next: {mediaProxy.entry.name} in <span class='time'>{related.timeRemaining|timeFormat}</span>",
			template: '<% _.each(items, function(item, idx) { %> \
							<% if( idx == 0 ) { var className = "medium"; } else { var className = "small"; } %> \
							<div class="item <%=className%>" data-entryid="<%=item.id%>"><div class="item-inner"> \
							<div class="title"><%=item.name%></div> \
							<img src="<%=item.thumbnailUrl%>/width/350" /></div></div><% }); %>',
			playlistId: null,
		},
		$screen: null,
		setup: function(){
			var _this = this;

			// Underscore templates
			this.template = _.template( this.getConfig('template', true) );

			this.bind('playerReady', function(){
				_this.itemsData = null;
				_this.getItemsData(function(){
					if( _this.$screen ){
						_this.$screen.remove();
						_this.$screen = null;
{'fraction_non_alphanumeric': 0.18988391376451078, 'fraction_numerical': 0.005804311774461028, 'mean_word_length': 2.962233169129721, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '1205440', 'n_tokens_mistral': 941, 'n_tokens_neox': 775, 'n_words': 156}