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

Before Change


    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: 5

Non-data size: 4

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: data_dir_base


Project Name: streamlit/streamlit
Commit Name: 96f6b184a558ba6d8ea1ff383a08cf50c165dced
Time: 2020-06-18
Author: thiago@streamlit.io
File Name: lib/streamlit/config.py
Class Name:
Method Name: _server_cookie_secret


Project Name: catalyst-team/catalyst
Commit Name: 7bd2d8b379d93b9179a57a96cd9b703f5604ff62
Time: 2020-04-29
Author: scitator@gmail.com
File Name: catalyst/utils/distributed.py
Class Name:
Method Name: is_apex_available