26bac29e6ffc90c53e05fd3a6cdf0c85d55e7cfa,tests/test_extract.py,,test_direct_quotations,#Any#,224

Before Change


        "he, said, "Is that what we want our kids to learn?"",
    ]
    observed = [
        ", ".join(item.text for item in triple)
        for triple in extract.direct_quotations(spacy_doc)
    ]
    assert observed == expected

After Change


        ("he", "said", ""I heard Donald Trump say we need to close mosques in the United States,""),
        ("he", "said", ""Is that what we want our kids to learn?""),
    ]
    result = list(extract.direct_quotations(spacy_doc))
    assert all(isinstance(dq, tuple) for dq in result)
    assert all(isinstance(obj, (Span, Token)) for dq in result for obj in dq)
    observed = [
        tuple(obj.text for obj in dq)
        for dq in result
    ]
    assert observed == expected
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 26bac29e6ffc90c53e05fd3a6cdf0c85d55e7cfa
Time: 2019-05-12
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_direct_quotations


Project Name: deepmind/sonnet
Commit Name: 2a3a5d3cef42e5bf997cfb9dac87163ccaa3c8f1
Time: 2019-09-16
Author: tomhennigan@google.com
File Name: sonnet/src/utils.py
Class Name:
Method Name: format_variables


Project Name: pantsbuild/pants
Commit Name: 8ec8a7d4d8260c9da7f920cda61255d580e326ff
Time: 2020-02-03
Author: ericarellano@me.com
File Name: src/python/pants/bin/goal_runner.py
Class Name: GoalRunnerFactory
Method Name: __init__