<commit_before>
package com.quexten.ravtech.components;

import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.quexten.ravtech.RavTech;
import com.quexten.ravtech.scripts.Script;
import com.quexten.ravtech.util.Debug;

public class ScriptComponent extends GameComponent implements Json.Serializable {

	public Script script;
	public String scriptSource;
	public String path;

	@Override
	public ComponentType getType () {
		return ComponentType.ScriptComponent;
	}

	@Override
	public String getName () {
		String scriptName;
		if(path != null && !path.isEmpty()) {
			scriptName = path.substring(path.lastIndexOf('/') > -1 ? path.lastIndexOf('/') + 1 : 0);
			scriptName = scriptName.substring(0, scriptName.length() - 4);
		} else {
			scriptName = "Empty Script Component";
		}
		return scriptName;
	}

	public ScriptComponent () {
	}

	@SuppressWarnings("rawtypes")
	@Override<commit_msg>Remove unused import<commit_after>
package com.quexten.ravtech.components;

import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.quexten.ravtech.RavTech;
import com.quexten.ravtech.scripts.Script;

public class ScriptComponent extends GameComponent implements Json.Serializable {

	public Script script;
	public String scriptSource;
	public String path;

	@Override
	public ComponentType getType () {
		return ComponentType.ScriptComponent;
	}

	@Override
	public String getName () {
		String scriptName;
		if(path != null && !path.isEmpty()) {
			scriptName = path.substring(path.lastIndexOf('/') > -1 ? path.lastIndexOf('/') + 1 : 0);
			scriptName = scriptName.substring(0, scriptName.length() - 4);
		} else {
			scriptName = "Empty Script Component";
		}
		return scriptName;
	}

	public ScriptComponent () {
	}

	@SuppressWarnings("rawtypes")
	@Override
{'fraction_non_alphanumeric': 0.11692447679708826, 'fraction_numerical': 0.00545950864422202, 'mean_word_length': 4.89544235924933, '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': '5449696', 'n_tokens_mistral': 748, 'n_tokens_neox': 699, 'n_words': 145}