defee23185b16afd836bad0a6cce7f791328666e,dipy/workflows/multi_io.py,IOIterator,file_existence_check,#IOIterator#Any#,270
Before Change
def file_existence_check(self, args):
// unpack variable string
unpack_args = list(chain.from_iterable(args) )
input_args = [fname for fname in list(unpack_args)
if isinstance(fname, str)]
for path in input_args:
if len(glob(path)) == 0:
After Change
if isinstance(fname, str):
input_args.append(fname)
// unpack variable string
if isinstance(fname, list) and all(isinstance(s, str)
for s in fname):
input_args += [f for f in fname]
for path in input_args:
if len(glob(path)) == 0:
raise IOError("File not found: " + path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: nipy/dipy
Commit Name: defee23185b16afd836bad0a6cce7f791328666e
Time: 2020-02-03
Author: skab12@gmail.com
File Name: dipy/workflows/multi_io.py
Class Name: IOIterator
Method Name: file_existence_check
Project Name: pantsbuild/pants
Commit Name: 705a3dcb90454c2d6ab2a857ac0b88dff2ef0bab
Time: 2020-08-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/lint.py
Class Name:
Method Name: lint
Project Name: pantsbuild/pants
Commit Name: b4eb76c08f9e613275f4b6bba4d32c8cc1224cdc
Time: 2021-03-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/dependency_inference/rules.py
Class Name:
Method Name: infer_python_dependencies_via_imports