<commit_before>package at.ac.ait.ariadne.routeformat.instruction;

/**
 * TODO replace with a new class extending Location?
 * 
 * @author AIT Austrian Institute of Technology GmbH
 */
public class Landmark {

	public enum Preposition {
		BEFORE, AT, AFTER
	}

	public final Preposition preposition;
	public final String description;

	public Landmark(Preposition preposition, String description) {
		super();
		this.preposition = preposition;
		this.description = description;
	}

}<commit_msg>properly implemented Landmark<commit_after>package at.ac.ait.ariadne.routeformat.instruction;

import at.ac.ait.ariadne.routeformat.location.Location;

/**
 * @author AIT Austrian Institute of Technology GmbH
 */
public class Landmark {

    public enum Preposition {
        BEFORE, AT, AFTER
    }

    private final Preposition preposition;
    private final Location location;

    public Preposition getPreposition() {
        return preposition;
    }

    public Location getLocation() {
        return location;
    }

    private Landmark(Builder builder) {
        super();
        this.preposition = builder.preposition;
        this.location = builder.location;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(Preposition preposition, Location location) {
        return new Builder().withPreposition(preposition).withLocation(location);
    }

    @Override
    public String toString() {
        return "Landmark [preposition=" + preposition + ", location=" + location + "]";
    }

    public static class Builder {
        private Preposition preposition;
        private Location location;

        public Builder withPreposition(Preposition preposition) {
            this.preposition = preposition;
            return this;
        }

        public Builder withLocation(Location location) {
            this.location = location;
            return this;
        }

        public Landmark build() {
            return new Landmark(this);
        }
    }

}
{'fraction_non_alphanumeric': 0.08141245708680726, 'fraction_numerical': 0.0, 'mean_word_length': 2.7569060773480665, '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': '679817', 'n_tokens_mistral': 543, 'n_tokens_neox': 511, 'n_words': 151}