fbf30ba6aadfecc94efa0d410612628507fa691f,bin/generate_crossref_doi_metadata.py,,main,#Any#,85

Before Change


            // TODO: this is not future-proof, should use anthology.util library functions
            aa_id = ""
            if len(url) == 6:
                aa_id = "{:02d}".format(int(paper.attrib["id"]))
            else:
                if len(url) == 5:
                    aa_id = "{:03d}".format(int(paper.attrib["id"]))

After Change


        for paper in v.findall("./paper"):
            //// Individual Paper Data
            paper_id = paper.attrib["id"]
            if paper.find("./url") is not None:
                url = paper.find("./url").text
            else:
                if is_newstyle_id(full_volume_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: acl-org/acl-anthology
Commit Name: fbf30ba6aadfecc94efa0d410612628507fa691f
Time: 2020-07-29
Author: post@cs.jhu.edu
File Name: bin/generate_crossref_doi_metadata.py
Class Name:
Method Name: main


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: dd13edfd8e2f10fe43499d89bf6abc875fbafd7b
Time: 2018-06-17
Author: yutiansut@qq.com
File Name: QUANTAXIS/QASU/save_local.py
Class Name:
Method Name: QA_SU_save_financial_files


Project Name: home-assistant/home-assistant
Commit Name: a65f196d1971757aa75819357efd9f255ea4951b
Time: 2016-07-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/swiss_hydrological_data.py
Class Name:
Method Name: setup_platform