<commit_before>package ee.shy.core;

import ee.shy.io.Jsonable;
import ee.shy.io.Validated;

import java.net.URI;
import java.util.Objects;

/**
 * Class representing a remote repository's URI.
 */
public class Remote implements Jsonable, Validated {
    /**
     * Repository's URI.
     */
    private final URI remote;

    /**
     * Constructs a remote with given URI.
     * @param remote remote URI for repository
     */
    public Remote(URI remote) {
        this.remote = remote;
        assertValid();
    }

    public URI getURI() {
        return this.remote;
    }

    @Override
    public void assertValid() {
        Objects.requireNonNull(remote, "repository has no URI");
    }
}<commit_msg>Rename remote field to uri.<commit_after>package ee.shy.core;

import ee.shy.io.Jsonable;
import ee.shy.io.Validated;

import java.net.URI;
import java.util.Objects;

/**
 * Class representing a remote repository's URI.
 */
public class Remote implements Jsonable, Validated {
    /**
     * Repository's URI.
     */
    private final URI uri;

    /**
     * Constructs a remote with given URI.
     * @param uri remote URI for repository
     */
    public Remote(URI uri) {
        this.uri = uri;
        assertValid();
    }

    public URI getURI() {
        return this.uri;
    }

    @Override
    public void assertValid() {
        Objects.requireNonNull(uri, "repository has no URI");
    }
}
{'fraction_non_alphanumeric': 0.10938602681721948, 'fraction_numerical': 0.0, 'mean_word_length': 2.376190476190476, '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': '6707204', 'n_tokens_mistral': 438, 'n_tokens_neox': 426, 'n_words': 124}