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

	mw.PluginManager.add('video360', mw.KBasePlugin.extend({

		defaultConfig: {
			manualControl:false
		},
		setup: function() {
			mw.setConfig("disableOnScreenClick",true);
			var renderer;
			var _this = this;
			this.bind("playing play pause seek" , function(){
				$(_this.getPlayer().getPlayerElement() ).hide();
			});
			this.bind("updateLayout", function(){
				renderer.setSize(window.innerWidth, window.innerHeight);
			});
			this.bind("playerReady sourcesReplaced" , function(){
				_this.getPlayer().layoutBuilder.removePlayerClickBindings();
				var player = _this.getPlayer();
				var video = player.getPlayerElement();
				var container = player.getVideoDisplay();
				var manualControl = _this.getConfig("manualControl");
				var longitude = 0;
				var latitude = 0;
				var savedX;
				var savedY;
				var savedLongitude;
				var savedLatitude;
				var texture;

				// setting up the renderer
				renderer = new THREE.WebGLRenderer();
				renderer.setSize(window.innerWidth, window.innerHeight);
				container.append(renderer.domElement);
				video.setAttribute('crossorigin', 'anonymous');
				// creating a new scene
				var scene = new THREE.Scene();

				// adding a camera
				var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1000);
				camera.target = new THREE.Vector3(0, 0, 0);

				// creation of a big sphere geometry
				var sphere = new THREE.SphereGeometry(100, 100, 40);<commit_msg>fix seek and update from master<commit_after>(function (mw, $, THREE) {
	"use strict";

	mw.PluginManager.add('video360', mw.KBasePlugin.extend({

		defaultConfig: {
			manualControl:false
		},
		setup: function() {
			mw.setConfig("disableOnScreenClick",true);
			var renderer;
			var _this = this;
			this.bind("playing play pause seek seeked" , function(){
				$(_this.getPlayer().getPlayerElement() ).hide();
			});
			this.bind("updateLayout", function(){
				renderer.setSize(window.innerWidth, window.innerHeight);
			});
			this.bind("playerReady sourcesReplaced" , function(){
				_this.getPlayer().layoutBuilder.removePlayerClickBindings();
				var player = _this.getPlayer();
				var video = player.getPlayerElement();
				var container = player.getVideoDisplay();
				var manualControl = _this.getConfig("manualControl");
				var longitude = 0;
				var latitude = 0;
				var savedX;
				var savedY;
				var savedLongitude;
				var savedLatitude;
				var texture;
				$(_this.getPlayer().getPlayerElement() ).css('z-index','-1');
				// setting up the renderer
				renderer = new THREE.WebGLRenderer();
				renderer.setSize(window.innerWidth, window.innerHeight);
				container.append(renderer.domElement);
				video.setAttribute('crossorigin', 'anonymous');
				// creating a new scene
				var scene = new THREE.Scene();

				// adding a camera
				var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1000);
				camera.target = new THREE.Vector3(0, 0, 0);

				// creation of a big sphere geometry
				var sphere = new THREE.SphereGeometry(100, 100, 40);
{'fraction_non_alphanumeric': 0.13230571612074501, 'fraction_numerical': 0.01573538856775851, 'mean_word_length': 3.7268588770864945, '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': '5991844', 'n_tokens_mistral': 1185, 'n_tokens_neox': 916, 'n_words': 223}