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


            //// 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):
                    url = f"{full_volume_id}.{paper_id}"
                elif len(full_volume_id) == 6:
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: pgmpy/pgmpy
Commit Name: c77025f3e13183782d19e0ff578df40cfc4c2d45
Time: 2014-05-16
Author: ankurankan@gmail.com
File Name: pgmpy/readwrite/ProbModelXML.py
Class Name: ProbModelXMLReader
Method Name: add_node


Project Name: acl-org/acl-anthology
Commit Name: 8da2cf9d1c7af308ffcf906fe828b0dc23b52056
Time: 2020-05-22
Author: post@cs.jhu.edu
File Name: bin/ingest.py
Class Name:
Method Name: main