4d6bc366a8ffb5bbef83f5a529616f9acaa31a15,skbio/io/format/blast7.py,,_blast7_sniffer,#,363

Before Change


            (lines[1][1][:8] == "// Query:" or
             lines[1][1][:11] == "// Database:") and
            (lines[2][1][:10] == "// Subject:" or
             lines[2][1][:8] == "// Query:" or
             lines[2][1][:11] == "// Database:")):
            return True, {}
        else:

After Change


    if not (lines[1].startswith("// Query:") or
            lines[1].startswith("// Database:")):
        return False, {}
    if not (lines[2].startswith("// Subject:") or
            lines[2].startswith("// Query:") or
            lines[2].startswith("// Database:")):
        return False, {}

    return True, {}


@blast7.reader(pd.DataFrame, monkey_patch=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: 4d6bc366a8ffb5bbef83f5a529616f9acaa31a15
Time: 2015-11-04
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast7.py
Class Name:
Method Name: _blast7_sniffer


Project Name: explosion/thinc
Commit Name: 317f4cdb2f2653abb3d4e1eb2cef38e04e0ec607
Time: 2020-01-04
Author: justin@dujardinconsulting.com
File Name: thinc/layers/chain.py
Class Name:
Method Name: chain


Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params