a38c773548db1a20983f794e16898f83f8c86249,sos/sos_eval.py,,param_of,#Any#Any#,369
Before Change
params = re.split(r"({}\s*=\s*)".format(name), text)
exprs = []
for param in params[2::2]:
pieces = param.split(",")
for i in range(len(pieces)):
try:
compile(",".join(pieces[:i+1]), "<string>", "eval")
exprs.append(",".join(pieces[:i+1]))
break
except:
continue
return exprs
def SoS_eval(expr, sigil):
"""Evaluate an expression after modifying (convert " " string to raw string,
After Change
exprs = []
for param in params[2::2]:
expr = ""
for _, tokval, _, _, _ in generate_tokens(StringIO(param).readline):
try:
expr += tokval
compile(expr, "<string>", "eval")
exprs.append(expr)
break
except:
continue
return exprs
def SoS_eval(expr, sigil):
"""Evaluate an expression after modifying (convert " " string to raw string,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: vatlab/SoS
Commit Name: a38c773548db1a20983f794e16898f83f8c86249
Time: 2016-12-17
Author: ben.bog@gmail.com
File Name: sos/sos_eval.py
Class Name:
Method Name: param_of
Project Name: vatlab/SoS
Commit Name: 4ae321a17f862aaf4a399609550539d022565138
Time: 2016-12-17
Author: ben.bog@gmail.com
File Name: sos/sos_eval.py
Class Name:
Method Name: param_of
Project Name: estnltk/estnltk
Commit Name: cf5f38373ec0a08518dae7051e53e44c316c166c
Time: 2015-07-28
Author: karl.valliste@gmail.com
File Name: estnltk/prettyprinter/prettyprinter.py
Class Name: PrettyPrinter
Method Name: render