8fe3f75bd7dc4022c3cd4fcf4c6f7a1832ec6364,Orange/misc/environ.py,,cache_dir,#,70

Before Change


    if sys.platform == "darwin":
        base = os.path.expanduser("~/Library/Caches")
    elif sys.platform == "win32":
        base = os.getenv("APPDATA", os.path.expanduser("~/AppData/Local"))
    elif os.name == "posix":
        base = os.getenv("XDG_CACHE_HOME", os.path.expanduser("~/.cache"))
    else:
        base = os.path.expanduser("~/.cache")

    base = os.path.join(base, "Orange", Orange.__version__)
    if sys.platform == "win32":
        // On Windows cache and data dir are the same.
        // Microsoft suggest using a Cache subdirectory
        return os.path.join(base, "Cache")
    else:
        return base

After Change


    
    Return the platform dependent Orange cache directory.
    
    return get_path("cache_dir", _default_cache_dir())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: biolab/orange3
Commit Name: 8fe3f75bd7dc4022c3cd4fcf4c6f7a1832ec6364
Time: 2020-03-26
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/misc/environ.py
Class Name:
Method Name: cache_dir


Project Name: biolab/orange3
Commit Name: 8fe3f75bd7dc4022c3cd4fcf4c6f7a1832ec6364
Time: 2020-03-26
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/misc/environ.py
Class Name:
Method Name: cache_dir


Project Name: wandb/client
Commit Name: 5535b861bc9ca33dc06f92a143694040d837f3de
Time: 2020-11-16
Author: tim.s.sweeney@gmail.com
File Name: wandb/sdk_py27/wandb_artifacts.py
Class Name: WBArtifactHandler
Method Name: load_path


Project Name: biolab/orange3
Commit Name: 8fe3f75bd7dc4022c3cd4fcf4c6f7a1832ec6364
Time: 2020-03-26
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/misc/environ.py
Class Name:
Method Name: data_dir_base


Project Name: wandb/client
Commit Name: 5535b861bc9ca33dc06f92a143694040d837f3de
Time: 2020-11-16
Author: tim.s.sweeney@gmail.com
File Name: wandb/sdk/wandb_artifacts.py
Class Name: WBArtifactHandler
Method Name: load_path