<commit_before>package de.eightbitboy.hijacr.data.comic;

//TODO use getters and stuff

/**
 * Contains data for a comic whose page URLs can be counted easily.
 */
public class ComicData {
	/**
	 * The comic's title.
	 */
	private String title;

	/**
	 * The comic's website URL.
	 */
	private String url;

	/**
	 * The URL to the first page of the comic.
	 */
	private String firstUrl;

	/**
	 * The URL for a simple comic page, without the page number.
	 * http://www.examplecomic.com/comicId=
	 */
	private String baseUrl;

	/**
	 * The number of the first comic. It is only used when baseUrl is given.
	 */
	private int firstNumber;

	/**
	 * The jsoup query for getting the comic img element.
	 */
	private String imageQuery;

	/**
	 * The jsoup query for getting the anchor with the href to the previous page.
	 */
	private String previousQuery;

	/**
	 * The jsoup query for getting the anchor with the href to the next page.
	 */
	private String nextQuery;

	private boolean simple = false;

	//TODO for simple
	public ComicData(String title, String url, String baseUrl, int firstNumber, String
			imageQuery) {
		this.title = title;
		this.url = url;
		this.baseUrl = baseUrl;
		this.firstNumber = firstNumber;
		this.imageQuery = imageQuery;
		this.simple = true;
	}

	//TODO for full
	public ComicData() {
		this.simple = false;
	}

	public String getTitle() {
		return title;
	}

	public String getUrl() {
		return url;
	}

	public String getFirstUrl() {
		return firstUrl;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	public int getFirstNumber() {
		return firstNumber;
	}

	public String getImageQuery() {
		return imageQuery;
	}

	public String getPreviousQuery() {
		return previousQuery;
	}

	public String getNextQuery() {
		return nextQuery;
	}

	public boolean isSimple() {
		return simple;
	}

	//TODO improve cleanup
	public String getCleanUrl() {
		String cleanUrl;
		cleanUrl = url.replaceAll("/", "");
		cleanUrl = cleanUrl.replaceAll("http", "");
		cleanUrl = cleanUrl.replaceAll(":", "");
		cleanUrl = cleanUrl.replaceAll("www.", "");
		return cleanUrl;
	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof ComicData)) {
			return false;
		}

		return title.equals(((ComicData) o).getTitle());
	}
}<commit_msg>Simplify<commit_after>package de.eightbitboy.hijacr.data.comic;

//TODO use getters and stuff

/**
 * Contains data for a comic whose page URLs can be counted easily.
 */
public class ComicData {
	/**
	 * The comic's title.
	 */
	private String title;

	/**
	 * The comic's website URL.
	 */
	private String url;

	/**
	 * The URL to the first page of the comic.
	 */
	private String firstUrl;

	/**
	 * The URL for a simple comic page, without the page number.
	 * http://www.examplecomic.com/comicId=
	 */
	private String baseUrl;

	/**
	 * The number of the first comic. It is only used when baseUrl is given.
	 */
	private int firstNumber;

	/**
	 * The jsoup query for getting the comic img element.
	 */
	private String imageQuery;

	/**
	 * The jsoup query for getting the anchor with the href to the previous page.
	 */
	private String previousQuery;

	/**
	 * The jsoup query for getting the anchor with the href to the next page.
	 */
	private String nextQuery;

	private boolean simple = false;

	//TODO for simple
	public ComicData(String title, String url, String baseUrl, int firstNumber, String
			imageQuery) {
		this.title = title;
		this.url = url;
		this.baseUrl = baseUrl;
		this.firstNumber = firstNumber;
		this.imageQuery = imageQuery;
		this.simple = true;
	}

	//TODO for full
	public ComicData() {
		this.simple = false;
	}

	public String getTitle() {
		return title;
	}

	public String getUrl() {
		return url;
	}

	public String getFirstUrl() {
		return firstUrl;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	public int getFirstNumber() {
		return firstNumber;
	}

	public String getImageQuery() {
		return imageQuery;
	}

	public String getPreviousQuery() {
		return previousQuery;
	}

	public String getNextQuery() {
		return nextQuery;
	}

	public boolean isSimple() {
		return simple;
	}

	//TODO improve cleanup
	public String getCleanUrl() {
		String cleanUrl;
		cleanUrl = url.replaceAll("/", "");
		cleanUrl = cleanUrl.replaceAll("http", "");
		cleanUrl = cleanUrl.replaceAll(":", "");
		cleanUrl = cleanUrl.replaceAll("www.", "");
		return cleanUrl;
	}

	@Override
	public boolean equals(Object o) {
		return o instanceof ComicData && title.equals(((ComicData) o).getTitle());
	}
}
{'fraction_non_alphanumeric': 0.11160515784793242, 'fraction_numerical': 0.0, 'mean_word_length': 3.2483474976392825, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4251195', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1394, 'n_words': 475}