<commit_before>package net.sf.jabref.logic.l10n;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class LocalizationKeyParamsTest {

    @Test
    public void testReplacePlaceholders() throws Exception {
        assertEquals("BibLaTeX mode", new LocalizationKeyParams("%0 mode", "BibLaTeX").replacePlaceholders());
        assertEquals("What \n : %e %c a b", new LocalizationKeyParams("What \n : %e %c_%0 %1", "a", "b").replacePlaceholders());
    }

}<commit_msg>More tests.<commit_after>package net.sf.jabref.logic.l10n;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class LocalizationKeyParamsTest {

    @Test
    public void testReplacePlaceholders() throws Exception {
        assertEquals("BibLaTeX mode", new LocalizationKeyParams("BibLaTeX mode").replacePlaceholders());
        assertEquals("BibLaTeX mode", new LocalizationKeyParams("%0 mode", "BibLaTeX").replacePlaceholders());
        assertEquals("What \n : %e %c a b", new LocalizationKeyParams("What \n : %e %c_%0 %1", "a", "b").replacePlaceholders());
    }

}
{'fraction_non_alphanumeric': 0.13774104683195593, 'fraction_numerical': 0.009182736455463728, 'mean_word_length': 4.706806282722513, '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': '2277665', 'n_tokens_mistral': 340, 'n_tokens_neox': 318, 'n_words': 78}