b46114a5b8076c38e765811bd6d55ed2930d9975,lingpy/convert/html.py,,alm2html,#,53

Before Change


        filename = rcParams["filename"]
    
    // read in the templates
    path = os.path.dirname(os.path.realpath(__file__))
    
    if main_template:
        try:
            html = codecs.open(main_template,"r","utf-8").read()
        except:
            html = codecs.open(
                    os.path.join(path,"templates",main_template),
                    "r",
                    "utf-8"
                    ).read()
    else:
        html_path = os.path.join(path, "templates", "alm2html.html")
        html = codecs.open(html_path,"r","utf-8").read()
    
    if table_template:
        try:

After Change


    if table_template:
        table = codecs.open(table_template,"r","utf-8").read()
    else:
        table = codecs.open(
                os.path.join(
                    rcParams["_path"],
                    "data",
                    "templates",
                    "alm2html.table.html"
                    ),
                "r",
                "utf-8"
                ).read()


    // check for windows-compatibility
    data = data.replace(os.linesep,"\n")[:-1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: lingpy/lingpy
Commit Name: b46114a5b8076c38e765811bd6d55ed2930d9975
Time: 2013-11-14
Author: mattis.list@posteo.de
File Name: lingpy/convert/html.py
Class Name:
Method Name: alm2html


Project Name: kk7nc/RMDL
Commit Name: 292510232cd2f32d498c032488c38215af4a1601
Time: 2018-04-19
Author: kk7nc@virginia.edu
File Name: setup.py
Class Name:
Method Name: readfile


Project Name: snorkel-team/snorkel
Commit Name: cf21a8fc7224dd55aa42774db62c59be2ff846df
Time: 2019-08-13
Author: henry.ehrenberg@outlook.com
File Name: setup.py
Class Name:
Method Name: