55245b040eb08d1fe7846343d030f72e24313cbb,lib/prody/apps/apptools.py,UsageExample,__call__,#UsageExample#Any#Any#Any#Any#,70
Before Change
def __call__(self, parser, namespace, values, option_string=None):
tw = textwrap.TextWrapper()
for line in namespace.usage_example.splitlines():
if line.lstrip().startswith("$"):
print(line)
else:
print("\n".join(tw.wrap(line)))
parser.exit()
class ProDyCitation(argparse.Action):
After Change
//from code import interact; interact(local=locals())
buff = ""
for line in lines:
if not line and buff:
print("\n".join(tw.wrap(buff)))
print("")
buff = ""
elif line.startswith("$"):
print(" " + line)
print("")
else:
if buff:
buff += " " if buff.endswith(".") else " "
buff += line
parser.exit()
class ProDyCitation(argparse.Action):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: prody/ProDy
Commit Name: 55245b040eb08d1fe7846343d030f72e24313cbb
Time: 2012-12-12
Author: lordnapi@gmail.com
File Name: lib/prody/apps/apptools.py
Class Name: UsageExample
Method Name: __call__
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: fxsjy/jieba
Commit Name: 99d0fb1a8a00c80c97271b2cc58d52c4fcff0032
Time: 2015-11-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name: Tokenizer
Method Name: load_userdict