89587cdd03d34055b013cc983357b10cc4b2e82c,holodeck/util.py,,get_holodeck_path,#,7

Before Change



def get_holodeck_path():
    holodeck_path = os.environ["HOLODECKPATH"]
    if holodeck_path == "":
        raise HolodeckException("Couldn"t find environment variable HOLODECKPATH.")
    return holodeck_path


def convert_unicode(value):

After Change


    if os.name == "posix":
        return os.path.expanduser("~/.local/share/holodeck")
    elif os.name == "nt":
        return os.path.expanduser("~\\AppData\\Local\\holodeck")
    else:
        raise NotImplementedError("holodeck is only supported for Linux and Windows")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: BYU-PCCL/holodeck
Commit Name: 89587cdd03d34055b013cc983357b10cc4b2e82c
Time: 2018-08-07
Author: joshua.greaves@gmail.com
File Name: holodeck/util.py
Class Name:
Method Name: get_holodeck_path


Project Name: vatlab/SoS
Commit Name: dd5dd1abff53aa57db42b0a1777c3971eb094f9e
Time: 2017-02-13
Author: ben.bog@gmail.com
File Name: sos/target.py
Class Name: RuntimeInfo
Method Name: __setstate__


Project Name: kwgoodman/numerox
Commit Name: 1960a233b2f869a9a1452bc9c2f656d44866da09
Time: 2018-01-08
Author: kwgoodman@gmail.com
File Name: numerox/numerai.py
Class Name:
Method Name: download_dataset