<commit_before>package net.hamnaberg.json;

import org.junit.Test;

import java.util.Arrays;

import static org.junit.Assert.*;

public class PropertyContainerTest {
    @Test
    public void replaceFooPropertiesInTemplate() throws Exception {
        Template template = Template.create(Arrays.asList(Property.template("foo"), Property.template("bar")));
        Property replacedFooProperty = Property.value("foo", ValueFactory.createValue("Hello"));
        Template replaced = template.replace(replacedFooProperty);
        assertNotSame(template, replaced);
        assertEquals(replacedFooProperty, replaced.getDataAsMap().get("foo"));
        assertEquals(replacedFooProperty, template.getDataAsMap().get("foo"));
    }
}
<commit_msg>Removed failing test, which was supposed to fail always<commit_after>package net.hamnaberg.json;

import org.junit.Test;

import java.util.Arrays;

import static org.junit.Assert.*;

public class PropertyContainerTest {
    @Test
    public void replaceFooPropertiesInTemplate() throws Exception {
        Template template = Template.create(Arrays.asList(Property.template("foo"), Property.template("bar")));
        Property replacedFooProperty = Property.value("foo", ValueFactory.createValue("Hello"));
        Template replaced = template.replace(replacedFooProperty);
        assertNotSame(template, replaced);
        assertEquals(replacedFooProperty, replaced.getDataAsMap().get("foo"));
    }
}

{'fraction_non_alphanumeric': 0.11557093425605536, 'fraction_numerical': 0.0, 'mean_word_length': 4.807228915662651, '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': '5561493', 'n_tokens_mistral': 376, 'n_tokens_neox': 372, 'n_words': 76}