<commit_before>define([
	'goo/scripts/Scripts',
	'goo/scripts/OrbitCamControlScript',
	'goo/scriptpack/PanCamScript',
	'goo/util/ObjectUtils'
], function (
	Scripts,
	OrbitCamControlScript,
	PanCamControlScript,
	_
) {
	'use strict';

	function OrbitNPan() {
		var orbitScript = Scripts.create(OrbitCamControlScript);
		var panScript = Scripts.create(PanCamControlScript);
		function setup(parameters, environment, goo) {
			orbitScript.setup(parameters, environment, goo);
			panScript.setup(parameters, environment, goo);
		}
		function update(parameters, environment, goo) {
			panScript.update(parameters, environment, goo);
			orbitScript.update(parameters, environment, goo);
		}
		function cleanup(parameters, environment, goo) {
			panScript.cleanup(parameters, environment, goo);
			orbitScript.cleanup(parameters, environment, goo);
		}

		return {
			setup: setup,
			cleanup: cleanup,
			update: update
		};
	}

	var orbitParams = OrbitCamControlScript.externals.parameters;
	var panParams = PanCamControlScript.externals.parameters;

	// Make sure we don't change parameters for the other scripts
	var params = _.deepClone(orbitParams.concat(panParams.slice(1)));

	// Remove the panSpeed and touchMode parameters
	for (var i = params.length - 1; i >= 0; i--) {
		var param = params[i];
		if (param.key === 'panSpeed' || param.key === 'touchMode') {
			params.splice(i, 1);
		}<commit_msg>fix OrbitNPanControlScript - parameter not set for pan<commit_after>define([
	'goo/scripts/Scripts',
	'goo/scripts/OrbitCamControlScript',
	'goo/scriptpack/PanCamScript',
	'goo/util/ObjectUtils'
], function (
	Scripts,
	OrbitCamControlScript,
	PanCamControlScript,
	_
) {
	'use strict';

	function OrbitNPan() {
		var orbitScript = Scripts.create(OrbitCamControlScript);
		var panScript = Scripts.create(PanCamControlScript);
		function setup(parameters, environment, goo) {
			parameters.touchMode = 'Double'; // should alaways be 2 touch mode for panning
			orbitScript.setup(parameters, environment, goo);
			panScript.setup(parameters, environment, goo);
		}
		function update(parameters, environment, goo) {
			panScript.update(parameters, environment, goo);
			orbitScript.update(parameters, environment, goo);
		}
		function cleanup(parameters, environment, goo) {
			panScript.cleanup(parameters, environment, goo);
			orbitScript.cleanup(parameters, environment, goo);
		}

		return {
			setup: setup,
			cleanup: cleanup,
			update: update
		};
	}

	var orbitParams = OrbitCamControlScript.externals.parameters;
	var panParams = PanCamControlScript.externals.parameters;

	// Make sure we don't change parameters for the other scripts
	var params = _.deepClone(orbitParams.concat(panParams.slice(1)));

	// Remove the panSpeed and touchMode parameters
	for (var i = params.length - 1; i >= 0; i--) {
		var param = params[i];
		if (param.key === 'panSpeed' || param.key === 'touchMode') {
			params.splice(i, 1);
		}
{'fraction_non_alphanumeric': 0.12162623846942262, 'fraction_numerical': 0.0030748206354629312, 'mean_word_length': 4.729941291585127, 'pattern_counts': {'":': 0, '<': 3, '<?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': '924210', 'n_tokens_mistral': 1014, 'n_tokens_neox': 916, 'n_words': 214}