<commit_before>/**
 * Created by Daniel on 20.07.15.
 */

CmdRemoveObject = function ( object ) {

	Cmd.call( this );

	this.type = 'CmdRemoveObject';

	this.object = object;
	this.parent = object !== undefined ? object.parent : undefined;
	this.parentUuid = object !== undefined ? object.parent.uuid : undefined;

	if ( object !== undefined ) {

		meta = {
			geometries: {},
			materials: {},
			textures: {},
			images: {}
		};
		this.objectJSON = object.toJSON( meta );

		if ( object.geometry !== undefined ) {

			this.objectJSON.geometries = [];
			this.objectJSON.geometries.push( object.geometry.toJSON( meta ) );

		}

		if ( object.material !== undefined ) {

			this.objectJSON.materials = [];
			this.objectJSON.materials.push( object.material.toJSON( meta ) );

		}

	}

};

CmdRemoveObject.prototype = {

	execute: function () {<commit_msg>CmdRemoveObject: simplification<commit_after>/**
 * Created by Daniel on 20.07.15.
 */

CmdRemoveObject = function ( object ) {

	Cmd.call( this );

	this.type = 'CmdRemoveObject';

	this.object = object;
	this.parent = object !== undefined ? object.parent : undefined;
	this.parentUuid = object !== undefined ? object.parent.uuid : undefined;

	if ( object !== undefined ) {

		meta = {
			geometries: {},
			materials: {},
			textures: {},
			images: {}
		};
		this.objectJSON = object.toJSON( meta );

		if ( object.geometry !== undefined ) {

			this.objectJSON.geometries = [ object.geometry.toJSON( meta ) ];

		}

		if ( object.material !== undefined ) {

			this.objectJSON.materials = [ object.material.toJSON( meta ) ];

		}

	}

};

CmdRemoveObject.prototype = {

	execute: function () {
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.007259528130671506, 'mean_word_length': 3.2193877551020407, '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': '2824207', 'n_tokens_mistral': 597, 'n_tokens_neox': 515, 'n_words': 105}