ce229c76dfffda7563071fc461ee1f7e31080172,pgmpy/readwrite/BIF.py,BifReader,__init__,#BifReader#Any#Any#,13

Before Change


        if path:
            path = open(path, "r").read()                                               

            if """ in path:
                path = path.replace(""", " ")
                 
                Replacing quotes by spaces to remove case sensitivity like:
                "Dog-problem" and Dog-problem
                or "true""false" and "true" "false" and true false
                
            path = remove_multipule_spaces.sub(" ", path)                               // replacing multiple spaces or tabs by one space
            if "/*" or "//" in path:
                path = cppStyleComment.suppress().transformString(path)                 // removing comments from the file

After Change


        else:
            raise ValueError("Must specify either path or string")

        if """ in self.network:
            
            Replacing quotes by spaces to remove case sensitivity like:
            "Dog-Problem" and Dog-problem
            or "true""false" and "true" "false" and true false
            
            self.network = self.network.replace(""", " ")

        self.network = remove_multipule_spaces.sub(" ", self.network)                // replacing mulitple spaces or tabs by one space

        if "/*" or "//" in self.network:
            self.network = cppStyleComment.suppress().transformString(self.network)  // removing comments from the file
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pgmpy/pgmpy
Commit Name: ce229c76dfffda7563071fc461ee1f7e31080172
Time: 2015-11-10
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BifReader
Method Name: __init__


Project Name: Rostlab/nalaf
Commit Name: 4a85440c3fd4415d605923befab65172ef86f4d1
Time: 2016-05-22
Author: i@juanmi.rocks
File Name: nalaf/utils/annotation_readers.py
Class Name: AnnJsonAnnotationReader
Method Name: annotate


Project Name: biotite-dev/biotite
Commit Name: f7e6a5c544859ce6b0d6626e2f815b2db0c7813a
Time: 2019-11-13
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/io/genbank/annotation.py
Class Name:
Method Name: get_annotation