3cf4926ff1ffca2806e596f451acb08851f106b9,modules/s3/s3validators.py,IS_FLOAT_AMOUNT,widget,#Any#Any#,503
Before Change
def widget(f, v, **attributes):
from gluon.sqlhtml import StringWidget
attr = Storage(attributes)
classes = attr.get("_class", "").split(" ")
classes = " ".join([c for c in classes if c != "double"])
_class = "%s float_amount" % classes
attr.update(_class=_class)
return StringWidget.widget(f, v, **attr)
// =============================================================================
After Change
classes.discard("double")
classes.add("float_amount")
attr["_class"] = " ".join(classes)
return StringWidget.widget(field, value, **attr)
// =============================================================================
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: sahana/eden
Commit Name: 3cf4926ff1ffca2806e596f451acb08851f106b9
Time: 2020-09-14
Author: dominic@nursix.org
File Name: modules/s3/s3validators.py
Class Name: IS_FLOAT_AMOUNT
Method Name: widget
Project Name: sahana/eden
Commit Name: 3cf4926ff1ffca2806e596f451acb08851f106b9
Time: 2020-09-14
Author: dominic@nursix.org
File Name: modules/s3/s3validators.py
Class Name: IS_INT_AMOUNT
Method Name: widget
Project Name: prody/ProDy
Commit Name: ce40fdaaeed673b3271ac72920411731e18fe350
Time: 2013-11-22
Author: lordnapi@gmail.com
File Name: lib/prody/__init__.py
Class Name:
Method Name:
Project Name: dmlc/gluon-cv
Commit Name: 960a107ad419d2690e352972950e76495deb1ad6
Time: 2019-03-18
Author: xinyu1.chen@intel.com
File Name: scripts/detection/ssd/eval_ssd.py
Class Name:
Method Name: