6dc8eab5507e235ef0dfdc14331c8d7b3c81daea,rastervision2/pipeline/rv_config.py,RVConfig,set_tmp_dir,#Any#,108

Before Change


            if k in os.environ
        ]
        current_array = [RVConfig.tmp_dir]
        it = tmp_dir_array + env_array + current_array
        it = list(filter(lambda p: p is not None, it))
        if it:
            explicit_tmp_dir = it[0]
        else:
            explicit_tmp_dir = tempfile.TemporaryDirectory().name

        try:

After Change


            if k in os.environ
        ]

        dir_arr = [tmp_dir] + env_arr + [RVConfig.tmp_dir]
        dir_arr = [d for d in dir_arr if d is not None]
        tmp_dir = dir_arr[0] if dir_arr else tempfile.TemporaryDirectory().name

        try:
            // Try to create directory
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: azavea/raster-vision
Commit Name: 6dc8eab5507e235ef0dfdc14331c8d7b3c81daea
Time: 2020-02-06
Author: lewfish@gmail.com
File Name: rastervision2/pipeline/rv_config.py
Class Name: RVConfig
Method Name: set_tmp_dir


Project Name: comic/grand-challenge.org
Commit Name: 6499769919b50f645fd3d76623225eacf0cd141d
Time: 2013-07-08
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: ViewsTest
Method Name: _signup_user


Project Name: comic/grand-challenge.org
Commit Name: 3c53d87a9515c81df25b818e577d7dce66f18f90
Time: 2013-07-08
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: ViewsTest
Method Name: _signup_user