135f02fb461bd31bcb3d2d32e5f7d72fe6417478,rl_coach/dashboard_components/globals.py,DialogApp,getDirDialog,#DialogApp#,126
Before Change
def getDirDialog(self):
with wx.DirDialog(None, "Choose input directory", "",
style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_CHANGE_DIR) as dirDialog:
if dirDialog.ShowModal() == wx.ID_CANCEL:
return None // the user changed their mind
else:
// Proceed loading the dir chosen by the user
return dirDialog.GetPath()
class RunType(Enum):
SINGLE_FOLDER_SINGLE_FILE = 1
SINGLE_FOLDER_MULTIPLE_FILES = 2
MULTIPLE_FOLDERS_SINGLE_FILES = 3
After Change
answer = filedialog.askdirectory(parent=application_window,
initialdir=os.getcwd(),
title="Please select a folder")
application_window.destroy()
return answer
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: NervanaSystems/coach
Commit Name: 135f02fb461bd31bcb3d2d32e5f7d72fe6417478
Time: 2019-01-23
Author: gal.novik@intel.com
File Name: rl_coach/dashboard_components/globals.py
Class Name: DialogApp
Method Name: getDirDialog
Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/collective_group/nccl_collective_group.py
Class Name: NCCLGroup
Method Name: destroy_group
Project Name: NervanaSystems/coach
Commit Name: 135f02fb461bd31bcb3d2d32e5f7d72fe6417478
Time: 2019-01-23
Author: gal.novik@intel.com
File Name: rl_coach/dashboard_components/globals.py
Class Name: DialogApp
Method Name: getFileDialog