d131e25d86e6bd79e4c1b3bd707d5d63209193ef,nltk/test/unit/test_stem.py,PorterTest,test_vocabulary_original_mode,#PorterTest#,88

Before Change


        // http://tartarus.org/martin/PorterStemmer/c.txt
        // and removing all the --DEPARTURE-- sections from it and
        // running it against Martin"s test vocabulary.
        self._test_against_expected_output(
            PorterStemmer.ORIGINAL_ALGORITHM,
            data.find("stemmers/porter_test/porter_original_output.txt")
                .open(encoding="utf-8")
                .read()
                .splitlines()
        )

After Change


        // http://tartarus.org/martin/PorterStemmer/c.txt
        // and removing all the --DEPARTURE-- sections from it and
        // running it against Martin"s test vocabulary.
        with closing(data.find("stemmers/porter_test/porter_original_output.txt").open(encoding="utf-8")) as fp:
            self._test_against_expected_output(
                PorterStemmer.ORIGINAL_ALGORITHM,
                fp.read().splitlines()
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nltk/nltk
Commit Name: d131e25d86e6bd79e4c1b3bd707d5d63209193ef
Time: 2017-01-07
Author: markamery@btinternet.com
File Name: nltk/test/unit/test_stem.py
Class Name: PorterTest
Method Name: test_vocabulary_original_mode


Project Name: nltk/nltk
Commit Name: d131e25d86e6bd79e4c1b3bd707d5d63209193ef
Time: 2017-01-07
Author: markamery@btinternet.com
File Name: nltk/test/unit/test_stem.py
Class Name: PorterTest
Method Name: test_vocabulary_nltk_mode


Project Name: nltk/nltk
Commit Name: d131e25d86e6bd79e4c1b3bd707d5d63209193ef
Time: 2017-01-07
Author: markamery@btinternet.com
File Name: nltk/test/unit/test_stem.py
Class Name: PorterTest
Method Name: test_vocabulary_martin_mode