c5d68be852b280323a1a2176905a16b5858efdcf,src/python/pants/base/scm_project_tree.py,ScmProjectTree,glob1,#ScmProjectTree#Any#Any#,30
Before Change
return os.path.relpath(os.path.join(self.build_root, build_root_relpath), self._scm_worktree)
def glob1(self, dir_relpath, glob):
files = self._reader.listdir(self._scm_relpath(dir_relpath))
return [filename for filename in files if fnmatch.fnmatch(filename, glob)]
def content(self, file_relpath):
with self._reader.open(self._scm_relpath(file_relpath)) as source:
return source.read()
After Change
dirnames = []
for filename in self._reader.listdir(scm_relpath):
path = os.path.join(scm_relpath, filename)
if self._reader.isdir(path):
dirnames.append(filename)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: pantsbuild/pants
Commit Name: c5d68be852b280323a1a2176905a16b5858efdcf
Time: 2016-04-26
Author: yujieproject@gmail.com
File Name: src/python/pants/base/scm_project_tree.py
Class Name: ScmProjectTree
Method Name: glob1
Project Name: pantsbuild/pants
Commit Name: e63d4aed345e9b29081e0361d30ea6b9d8fa24c8
Time: 2016-04-27
Author: yujieproject@gmail.com
File Name: src/python/pants/base/scm_project_tree.py
Class Name: ScmProjectTree
Method Name: glob1
Project Name: rtavenar/tslearn
Commit Name: 7eda0ba9f842e7b125f397182abd513d5d22b17d
Time: 2018-04-21
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/datasets.py
Class Name: UCR_UEA_datasets
Method Name: list_datasets