11e58b34f02134738852aa007816dc2c73e0dfa7,pyemma/coordinates/data/py_csv_reader.py,PyCSVIterator,_select_file,#PyCSVIterator#,92

Before Change



    def _select_file(self, itraj):
        self._itraj = itraj
        while not self.uniform_stride and self._itraj not in self.traj_keys \
                and self._itraj < self.number_of_trajectories():
            self._itraj += 1
        if self._itraj < self.number_of_trajectories():
            // close current file handle
            self._file_handle.close()
            // open next one

After Change



    def _select_file(self, itraj):
        if itraj != self._selected_itraj:
            self._itraj = self._selected_itraj = itraj
            // close current file handle
            self._file_handle.close()
            // open next one
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 11e58b34f02134738852aa007816dc2c73e0dfa7
Time: 2018-04-23
Author: m.scherer@fu-berlin.de
File Name: pyemma/coordinates/data/py_csv_reader.py
Class Name: PyCSVIterator
Method Name: _select_file


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 7fffa98b9166a03b4a53fb40202d97b09e8e9036
Time: 2018-05-29
Author: eriklindernoren@gmail.com
File Name: utils/datasets.py
Class Name: ListDataset
Method Name: __getitem__


Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 4f04391f1dfc718da74d2153f6812b3002d93235
Time: 2019-04-07
Author: ikostrikov@gmail.com
File Name: a2c_ppo_acktr/algo/gail.py
Class Name: ExpertDataset
Method Name: __getitem__