<commit_before>package me.bauer.BauerCam.Commands;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import me.bauer.BauerCam.Main;
import me.bauer.BauerCam.Utils;
import me.bauer.BauerCam.Path.PathHandler;
import me.bauer.BauerCam.Path.Position;

public class SubLoad extends ASubExportImport {

	@Override
	protected void derivedExecute(final String filename) {
		final File file = new File(Main.bauercamDirectory, filename + extension);

		if (!file.exists() || !file.isFile()) {
			Utils.sendInformation(Main.fileDoesNotExist.toString());
			return;
		}

		final ArrayList<Position> points = new ArrayList<Position>();
		BufferedReader reader = null;

		try {
			reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));

			String s;
			while ((s = reader.readLine()) != null) {
				final Position point = Position.fromString(s);
				if (point == null) {
					reader.close();
					return;
				}
				points.add(point);
			}

			PathHandler.setWaypoints(points);
			Utils.sendInformation(Main.importSuccessful.toString());
		} catch (final IOException e) {
			Utils.sendInformation(Main.IOError.toString());
			Utils.sendInformation(e.getMessage());
		}

		if (reader == null) {
			return;
		}
		try {
			reader.close();
		} catch (final IOException e) {
		}
	}

	@Override
	public String getBase() {
		return "load";
	}

	@Override
	public String getDescription() {
		return "/cam load <filename>";
	}

}
<commit_msg>Remove unnecessary exists check<commit_after>package me.bauer.BauerCam.Commands;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import me.bauer.BauerCam.Main;
import me.bauer.BauerCam.Utils;
import me.bauer.BauerCam.Path.PathHandler;
import me.bauer.BauerCam.Path.Position;

public class SubLoad extends ASubExportImport {

	@Override
	protected void derivedExecute(final String filename) {
		final File file = new File(Main.bauercamDirectory, filename + extension);

		if (!file.isFile()) {
			Utils.sendInformation(Main.fileDoesNotExist.toString());
			return;
		}

		final ArrayList<Position> points = new ArrayList<Position>();
		BufferedReader reader = null;

		try {
			reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));

			String s;
			while ((s = reader.readLine()) != null) {
				final Position point = Position.fromString(s);
				if (point == null) {
					reader.close();
					return;
				}
				points.add(point);
			}

			PathHandler.setWaypoints(points);
			Utils.sendInformation(Main.importSuccessful.toString());
		} catch (final IOException e) {
			Utils.sendInformation(Main.IOError.toString());
			Utils.sendInformation(e.getMessage());
		}

		if (reader == null) {
			return;
		}
		try {
			reader.close();
		} catch (final IOException e) {
		}
	}

	@Override
	public String getBase() {
		return "load";
	}

	@Override
	public String getDescription() {
		return "/cam load <filename>";
	}

}

{'fraction_non_alphanumeric': 0.1256377551020408, 'fraction_numerical': 0.0, 'mean_word_length': 4.117455138662317, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5446812', 'n_tokens_mistral': 1110, 'n_tokens_neox': 977, 'n_words': 216}