<commit_before>package com.anthonynsimon.url;

/**
 * URLBuilder is a helper class for the construction of a URL object.
 */
class URLBuilder {
    private String scheme;
    private String username;
    private String password;
    private String host;
    private String path;
    private String query;
    private String fragment;
    private String opaque;

    public URL build() {
        return new URL(scheme, username, password, host, path, query, fragment, opaque);
    }

    public String getScheme() {
        return scheme;
    }

    public URLBuilder setScheme(String scheme) {
        this.scheme = scheme;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public URLBuilder setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public URLBuilder setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getHost() {
        return host;
    }

    public URLBuilder setHost(String host) {
        this.host = host;
        return this;
    }

    public String getPath() {
        return path;
    }

    public URLBuilder setPath(String path) {
        this.path = path;
        return this;
    }

    public String getQuery() {
        return query;
    }

    public URLBuilder setQuery(String query) {
        this.query = query;
        return this;
    }

    public String getFragment() {
        return fragment;
    }

    public URLBuilder setFragment(String fragment) {
        this.fragment = fragment;
        return this;
    }

    public String getOpaque() {
        return opaque;
    }

    public URLBuilder setOpaque(String opaque) {
        this.opaque = opaque;
        return this;
    }
}
<commit_msg>Protect class from extension and remove unused methods<commit_after>package com.anthonynsimon.url;

/**
 * URLBuilder is a helper class for the construction of a URL object.
 */
final class URLBuilder {
    private String scheme;
    private String username;
    private String password;
    private String host;
    private String path;
    private String query;
    private String fragment;
    private String opaque;

    public URL build() {
        return new URL(scheme, username, password, host, path, query, fragment, opaque);
    }

    public URLBuilder setScheme(String scheme) {
        this.scheme = scheme;
        return this;
    }

    public URLBuilder setUsername(String username) {
        this.username = username;
        return this;
    }

    public URLBuilder setPassword(String password) {
        this.password = password;
        return this;
    }

    public URLBuilder setHost(String host) {
        this.host = host;
        return this;
    }

    public URLBuilder setPath(String path) {
        this.path = path;
        return this;
    }

    public URLBuilder setQuery(String query) {
        this.query = query;
        return this;
    }

    public URLBuilder setFragment(String fragment) {
        this.fragment = fragment;
        return this;
    }

    public URLBuilder setOpaque(String opaque) {
        this.opaque = opaque;
        return this;
    }
}

{'fraction_non_alphanumeric': 0.07430150445194965, 'fraction_numerical': 0.0, 'mean_word_length': 2.172346640701071, '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': '7552893', 'n_tokens_mistral': 885, 'n_tokens_neox': 849, 'n_words': 282}