<commit_before>package eu.goodlike.twitch.token;

import eu.goodlike.okhttp.JsonCallback;
import eu.goodlike.utils.StringFormatter;
import okhttp3.*;

import java.util.concurrent.CompletableFuture;

public final class TokenFetcher {

    public CompletableFuture<Token> generateNewToken(String vodId) {
        String finalUrl = StringFormatter.format(TOKEN_URL, vodId);
        Request request = new Request.Builder()
                .url(finalUrl)
                .build();

        return JsonCallback.asFuture(client.newCall(request), Token.class);
    }

    // CONSTRUCTORS

    public TokenFetcher(OkHttpClient client) {
        this.client = client;
    }

    // PRIVATE

    private final OkHttpClient client;

    private static final String TOKEN_URL = "https://api.twitch.tv/api/vods/{}/access_token";

}
<commit_msg>Added a debug message about the URL used for token fetching<commit_after>package eu.goodlike.twitch.token;

import eu.goodlike.okhttp.JsonCallback;
import eu.goodlike.utils.StringFormatter;
import okhttp3.OkHttpClient;
import okhttp3.Request;

import java.util.concurrent.CompletableFuture;

public final class TokenFetcher {

    public CompletableFuture<Token> generateNewToken(int vodId) {
        String finalUrl = StringFormatter.format(TOKEN_URL, vodId);
        System.out.println("Requesting token at: " + finalUrl);
        Request request = new Request.Builder()
                .url(finalUrl)
                .build();

        return JsonCallback.asFuture(client.newCall(request), Token.class);
    }

    // CONSTRUCTORS

    public TokenFetcher(OkHttpClient client) {
        this.client = client;
    }

    // PRIVATE

    private final OkHttpClient client;

    private static final String TOKEN_URL = "https://api.twitch.tv/api/vods/{}/access_token";

}

{'fraction_non_alphanumeric': 0.097669256381798, 'fraction_numerical': 0.001664816870144284, 'mean_word_length': 3.1930232558139533, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2492905', 'n_tokens_mistral': 536, 'n_tokens_neox': 525, 'n_words': 112}