<commit_before>package org.handwerkszeug.riak.http;

public class LinkCondition {

	public static final String ANY = "_";

	final String bucket;

	final String tag;

	final boolean keep;

	public LinkCondition(String bucket, String tag, boolean keep) {
		if (bucket == null) {
			this.bucket = ANY;
		} else {
			this.bucket = bucket;
		}
		if (tag == null) {
			this.tag = ANY;
		} else {
			this.tag = tag;
		}
		this.keep = keep;
	}

	public static LinkCondition bucket(String bucket) {
		return bucket(bucket, false);
	}

	public static LinkCondition bucket(String bucket, boolean keep) {
		return new LinkCondition(bucket, ANY, keep);
	}

	public static LinkCondition tag(String tag) {
		return tag(tag, false);
	}

	public static LinkCondition tag(String tag, boolean keep) {
		return new LinkCondition(ANY, tag, keep);
	}

	public String getBucket() {
		return this.bucket;
	}

	public String getTag() {
		return this.tag;
	}

	public int getKeep() {
		return this.keep ? 1 : 0;
	}
}
<commit_msg>int to boolean<commit_after>package org.handwerkszeug.riak.http;

public class LinkCondition {

	public static final String ANY = "_";

	final String bucket;

	final String tag;

	final boolean keep;

	public LinkCondition(String bucket, String tag, boolean keep) {
		if (bucket == null) {
			this.bucket = ANY;
		} else {
			this.bucket = bucket;
		}
		if (tag == null) {
			this.tag = ANY;
		} else {
			this.tag = tag;
		}
		this.keep = keep;
	}

	public static LinkCondition bucket(String bucket) {
		return bucket(bucket, false);
	}

	public static LinkCondition bucket(String bucket, boolean keep) {
		return new LinkCondition(bucket, ANY, keep);
	}

	public static LinkCondition tag(String tag) {
		return tag(tag, false);
	}

	public static LinkCondition tag(String tag, boolean keep) {
		return new LinkCondition(ANY, tag, keep);
	}

	public String getBucket() {
		return this.bucket;
	}

	public String getTag() {
		return this.tag;
	}

	public boolean getKeep() {
		return this.keep;
	}
}

{'fraction_non_alphanumeric': 0.10232117479867361, 'fraction_numerical': 0.0009474182851729038, 'mean_word_length': 2.8330308529945554, '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': '7653961', 'n_tokens_mistral': 735, 'n_tokens_neox': 643, 'n_words': 202}