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



        css_class = attr.get("_class")

        classes = set(css_class.split(" ")) if css_class else set()
        classes.discard("double")
        classes.add("float_amount")

        attr["_class"] = " ".join(classes)

        return StringWidget.widget(field, value, **attr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: luyishisi/Anti-Anti-Spider
Commit Name: 95bda804c2d02ecbe824b5e7f9849baf395da03d
Time: 2017-01-04
Author: admin@copie.cn
File Name: 6.爬虫项目源码/9.gs.amac.org.cn/shimu.py
Class Name:
Method Name: