a1d3f7a50ce53ebc5362bdae7a3231f7b4aade34,resources/utilities.py,,setup_es,#,29

Before Change



def setup_es():
    try:
        if "Server" in parser.sections():
            es_ip = parser.get("Server", "geonames")
        else:
            es_ip = os.environ["ELASTIC_PORT_9200_TCP_ADDR"]

        es_url = "http://{}:{}/".format(es_ip, "9200")
        CLIENT = Elasticsearch(es_url)
        S = Search(CLIENT)

After Change


def setup_es():
    try:
        es_ip = parser.get("Server", "geonames_host")
        es_port = parser.get("Server", "geonames_port")

        es_url = "http://{}:{}/".format(es_ip, es_port)
        CLIENT = Elasticsearch(es_url)
        S = Search(CLIENT)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: openeventdata/mordecai
Commit Name: a1d3f7a50ce53ebc5362bdae7a3231f7b4aade34
Time: 2016-07-09
Author: ahalterman0@gmail.com
File Name: resources/utilities.py
Class Name:
Method Name: setup_es


Project Name: UFAL-DSG/tgen
Commit Name: 2fc12196a70b67bbfc62f64766ac9f7df4eadef0
Time: 2014-09-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank.py
Class Name: PerceptronRanker
Method Name: __init__


Project Name: erikbern/ann-benchmarks
Commit Name: 24fff6fb8f97316581006dd5765b5bce9fe168b1
Time: 2018-09-30
Author: maau@itu.dk
File Name: ann_benchmarks/main.py
Class Name:
Method Name: main