

def get_view_from_another_group(self, window, filename):
    if self.calling_view_index:
        calling_group = self.calling_view_index[0]
    else:
        calling_group = window.get_view_index(window.active_view())[0]
    for group in range(window.num_groups()):
        if (group == calling_group):
            continue
        for view in window.views_in_group(group):
            if (view.file_name() == filename):
                return view

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.get_view_from_another_group/original