3cf4926ff1ffca2806e596f451acb08851f106b9,modules/s3/s3validators.py,IS_INT_AMOUNT,widget,#Any#Any#,419
Before Change
from gluon.sqlhtml import StringWidget
attr = Storage(attributes)
classes = attr.get("_class", "").split(" ")
classes = " ".join([c for c in classes if c != "integer"])
_class = "%s int_amount" % classes
attr.update(_class=_class)
return StringWidget.widget(f, v, **attr)
// =============================================================================
class IS_FLOAT_AMOUNT(IS_FLOAT_IN_RANGE):
After Change
css_class = attr.get("_class")
classes = set(css_class.split(" ")) if css_class else set()
classes.discard("integer")
classes.add("int_amount")
attr["_class"] = " ".join(classes)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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_INT_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_FLOAT_AMOUNT
Method Name: widget
Project Name: pantsbuild/pants
Commit Name: 02aad68bd3ee98e864bb22c1fba0b6493bad6b61
Time: 2016-02-03
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/scheduler.py
Class Name: LocalScheduler
Method Name: schedule