8dbd6d943cafe4d0e9a066e17442ff0ed1600b5f,scipy/ndimage/doccer.py,,docformat,#Any#Any#,6
Before Change
indentno = sys.maxint
for line in lines[1:]:
stripped = line.lstrip()
if stripped :
indentno = min(indentno, len(line) - len(stripped))
indent = " " * indentno
// Insert this indent to dictionary docstrings
indented = {}
for name, dstr in docdict.items():
After Change
return docstring
if docdict is None:
docdict = {}
if not docdict:
return docstring
lines = docstring.expandtabs().splitlines()
// Find the minimum indent of the main docstring, after first line
if len(lines) < 2:
icount = 0
else:
icount = indentcount_lines(lines[1:])
indent = " " * icount
// Insert this indent to dictionary docstrings
indented = {}
for name, dstr in docdict.items():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: scipy/scipy
Commit Name: 8dbd6d943cafe4d0e9a066e17442ff0ed1600b5f
Time: 2008-12-14
Author: matthew.brett@gmail.com
File Name: scipy/ndimage/doccer.py
Class Name:
Method Name: docformat
Project Name: EpistasisLab/scikit-rebate
Commit Name: ece383696800b9b34854df27a65a3d1d74669952
Time: 2020-05-28
Author: alexmxu@alexs-mbp-3.attlocal.net
File Name: skrebate/iterrelief.py
Class Name: IterRelief
Method Name: fit
Project Name: EpistasisLab/scikit-rebate
Commit Name: 163eb7df13667e21b0e02a2706e18d1f53eee610
Time: 2020-01-29
Author: alexmxu99@gmail.com
File Name: skrebate/iterrelief.py
Class Name: IterRelief
Method Name: fit