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)

// =============================================================================

After Change



        classes = set(css_class.split(" ")) if css_class else set()
        classes.discard("integer")
        classes.add("int_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_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: ysig/GraKeL
Commit Name: 8f00ab4ca319da50c20d5ffb3be1b4d64a9fa4c8
Time: 2017-12-06
Author: y.siglidis@gmail.com
File Name: grakel/kernels/odd_sth.py
Class Name:
Method Name: big_dag_append