28d711443cedd33fd3ca9d6fa4c9305930568e20,holodeck/util.py,,get_holodeck_path,#,11

Before Change


    if "HOLODECKPATH" in os.environ and os.environ["HOLODECKPATH"] != "":
        return os.environ["HOLODECKPATH"]
    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")

After Change


    if "HOLODECKPATH" in os.environ and os.environ["HOLODECKPATH"] != "":
        return os.environ["HOLODECKPATH"]
    if os.name == "posix":
        path = os.path.expanduser("~/.local/share/holodeck")
    elif os.name == "nt":
        path = os.path.expanduser("~\\AppData\\Local\\holodeck")
    else:
        raise NotImplementedError("holodeck is only supported for Linux and Windows")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 10

Non-data size: 3

Instances


Project Name: BYU-PCCL/holodeck
Commit Name: 28d711443cedd33fd3ca9d6fa4c9305930568e20
Time: 2019-04-26
Author: jaydenmilne@users.noreply.github.com
File Name: holodeck/util.py
Class Name:
Method Name: get_holodeck_path


Project Name: cesium-ml/cesium
Commit Name: 959f3b070983a5dd89a701131c444311f06a6e04
Time: 2016-02-16
Author: stefanv@berkeley.edu
File Name: mltsp/cfg.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3de655f1c399329f3878c60ddeb11e12a29ccfec
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/utils.py
Class Name: NovaClient
Method Name: GetPassword


Project Name: tensorflow/datasets
Commit Name: f16a3e7f1a42fa07a3929c13d05538bd6491e65c
Time: 2020-07-31
Author: epot@google.com
File Name: tensorflow_datasets/scripts/cli/new.py
Class Name:
Method Name: _create_dataset_files


Project Name: tensorflow/tensorboard
Commit Name: c09ba2b34cad7722723ac650ad887bc8ebac6890
Time: 2016-08-17
Author: jart@google.com
File Name: tensorboard.py
Class Name:
Method Name: main


Project Name: PyThaiNLP/pythainlp
Commit Name: ed5951444ed5a84e65b0e262efb90676490bce00
Time: 2019-07-24
Author: david@i2x.ai
File Name: pythainlp/tools/__init__.py
Class Name:
Method Name: get_pythainlp_data_path


Project Name: flow-project/flow
Commit Name: f2898f28ec613f3086759a38d25e82c16e8625e4
Time: 2018-12-28
Author: akreidieh@gmail.com
File Name: flow/core/kernel/simulation/aimsun.py
Class Name: AimsunKernelSimulation
Method Name: start_simulation


Project Name: tensorflow/tensorboard
Commit Name: 0608f686fb9677885652f1e39b5ab99ed1778806
Time: 2016-08-31
Author: danmane@gmail.com
File Name: tensorboard.py
Class Name:
Method Name: main


Project Name: pantsbuild/pants
Commit Name: a52a5f2a4468ad575e323798f64a986f8d4143fa
Time: 2015-11-13
Author: matt@digital-wanderlust.com
File Name: src/python/pants/bin/repro.py
Class Name: Repro
Method Name: __init__


Project Name: ilastik/ilastik
Commit Name: 02480197d8b24414166eb23b573d7e5ac9e49a7a
Time: 2019-08-01
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: expand_path