5cb94b6e5b7b338fd93eaf630ce0bdd634bffcc1,poseidon/poseidonStorage/poseidonStorage.py,poseidonStorage,__init__,#poseidonStorage#,49

Before Change


        self.modName = "poseidonStorage"

        database_container_ip = ""
        database_container_ip = check_output(
            "env | grep DOCKER_HOST | cut -d":" -f2 | cut -c 3-",
            shell=True).strip()
        if not database_container_ip:
            // did not find env variable DOCKER_HOST
            try:
                self.config = ConfigParser.ConfigParser()

After Change



        database_container_ip = ""
        if "DOCKER_HOST" in environ:
            database_container_ip = environ["DOCKER_HOST"]
        if not database_container_ip:
            // did not find env variable DOCKER_HOST
            try:
                self.config = ConfigParser.ConfigParser()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CyberReboot/poseidon
Commit Name: 5cb94b6e5b7b338fd93eaf630ce0bdd634bffcc1
Time: 2016-08-15
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/poseidonStorage.py
Class Name: poseidonStorage
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 1d1cfbaea0c640ed20defa24d2cc688c6132f32b
Time: 2019-11-19
Author: ericarellano@me.com
File Name: contrib/awslambda/python/tests/python/pants_test/contrib/awslambda/python/test_python_awslambda_integration.py
Class Name: PythonAWSLambdaIntegrationTest
Method Name: test_awslambda_bundle


Project Name: CyberReboot/poseidon
Commit Name: 1e31662e13af69823c58cbc4c4332b8530aaaa47
Time: 2016-08-12
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/poseidonStorage.py
Class Name: poseidonStorage
Method Name: __init__