f43b3405eb836d28c376c7ad244c49ecdde93ca2,test/map/test_core.py,TestMapperCore,test_mapper_default_args,#TestMapperCore#,103

Before Change


        self.assertEqual(x_mapped.num, 8)
        self.assertEqual(x_mapped.text, "Henry has fun")
        self.assertEqual(x_mapped.lower, "henry has fun")
        self.assertEqual(x_mapped.words, ["Henry", "has", "fun"])

    def test_mapper_in_place(self) -> None:
        x = self._get_x_dict()
        x_mapped = modify_in_place(x)

After Change


        split_words = SplitWordsMapperDefaultArgs()
        x_mapped = split_words(self._get_x())
        assert x_mapped is not None
        x_expected = SimpleNamespace(
            num=8,
            text="Henry has fun",
            lower="henry has fun",
            words=["Henry", "has", "fun"],
        )
        self.assertEqual(x_mapped, x_expected)

    def test_mapper_in_place(self) -> None:
        x = self._get_x_dict()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snorkel-team/snorkel
Commit Name: f43b3405eb836d28c376c7ad244c49ecdde93ca2
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: test/map/test_core.py
Class Name: TestMapperCore
Method Name: test_mapper_default_args


Project Name: snorkel-team/snorkel
Commit Name: f43b3405eb836d28c376c7ad244c49ecdde93ca2
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: test/map/test_core.py
Class Name: TestMapperCore
Method Name: test_numeric_mapper


Project Name: snorkel-team/snorkel
Commit Name: f43b3405eb836d28c376c7ad244c49ecdde93ca2
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: test/map/test_core.py
Class Name: TestMapperCore
Method Name: test_text_mapper