5d4a480c48a242c1d8051be502ecb98a9b273e9c,tests/candidates/test_candidates.py,,test_ngram_split,#Any#,33

Before Change


    caplog.set_level(logging.INFO)
    PARALLEL = 1
    max_docs = 1
    session = Meta.init("postgres://localhost:5432/" + DB).Session()

    docs_path = "tests/data/html/112823.html"
    pdf_path = "tests/data/pdf/112823.pdf"

After Change



    // When a text starts with a split_token.
    sent.text = "-Text"
    sent.words = ["-Text"]
    result = list(ngrams.apply(sent))

    assert len(result) == 2
    assert result[0].get_span() == "-Text"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: HazyResearch/fonduer
Commit Name: 5d4a480c48a242c1d8051be502ecb98a9b273e9c
Time: 2018-08-21
Author: hiromu.hota@hal.hitachi.com
File Name: tests/candidates/test_candidates.py
Class Name:
Method Name: test_ngram_split


Project Name: mortendahl/tf-encrypted
Commit Name: 7272af90d4f5916f61f8bc5660e5605e730bbd78
Time: 2019-07-16
Author: suriyaku@gmail.com
File Name: examples/securenn/network_a.py
Class Name:
Method Name:


Project Name: opencv/opencv_extra
Commit Name: 537fa61786b167655298cbd91717496c6588c3e3
Time: 2019-06-11
Author: dmitry.kurtaev+github@gmail.com
File Name: testdata/dnn/tensorflow/generate_tf_models.py
Class Name:
Method Name:


Project Name: bokeh/bokeh
Commit Name: 4999541f55a9fbbfb75b9b8b1256ab0f8b059bd5
Time: 2015-11-03
Author: fabio.pliger@gmail.com
File Name: examples/glyphs/prim_server.py
Class Name:
Method Name:


Project Name: geometalab/OSMDeepOD
Commit Name: f1329416e3daa1b6e4e591dd12cc0f1f4f369874
Time: 2016-08-02
Author: samuel.kurath@gmail.com
File Name: src/detection/tensor/detector.py
Class Name: Detector
Method Name: __init__