<commit_before>package org.loklak.http;

import org.junit.Test;
import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.util.HashMap;

public class ClientConnectionTest {

    @Test
    public void metaUrlExtractorTest() throws IOException {
        HashMap<String, String> linkMap = new HashMap<>();

        linkMap.put("http://yacy.net", "http://yacy.net/en/index.html");

        for (HashMap.Entry<String, String> pair : linkMap.entrySet()) {
            assertEquals(pair.getValue(), ClientConnection.getRedirect(pair.getKey()));
        }
    }

}<commit_msg>Fixes #1537: Build issue on development branch (#1542)<commit_after>package org.loklak.http;

import org.junit.Test;
import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.util.HashMap;

public class ClientConnectionTest {

    @Test
    public void metaUrlExtractorTest() throws IOException {
        HashMap<String, String> linkMap = new HashMap<>();

        linkMap.put("https://yacy.net", "https://yacy.net/en/index.html");

        for (HashMap.Entry<String, String> pair : linkMap.entrySet()) {
            assertEquals(pair.getValue(), ClientConnection.getRedirect(pair.getKey()));
        }
    }

}
{'fraction_non_alphanumeric': 0.13360323886639677, 'fraction_numerical': 0.006477732793522267, 'mean_word_length': 3.611940298507463, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5620718', 'n_tokens_mistral': 366, 'n_tokens_neox': 360, 'n_words': 75}