b425d17022e8491f590cf5065bbb1b36822232cc,search/templatetags/search.py,,display_facet,#,30

Before Change


            if element["name"].count("_") > 0:
                // We also modify the dispay name to remove the id
                element["display_name"] = element["name"][element["name"].find("_")+1:]
                element["params"] = "%s %s:"%s"" % (filter_query, flt, urlquote_plus(element["name"]))
                filtered_facet.append(element)
        else:
            element["display_name"] = element["name"]
            element["params"] = "%s %s:"%s"" % (filter_query, flt, urlquote_plus(element["name"]))

After Change


            if element["name"].count("_") > 0:
                // We also modify the display name to remove the id
                element["display_name"] = element["name"][element["name"].find("_")+1:]
                element["params"] = u"{0} {1}:"{2}"".format(filter_query, flt, urlquote_plus(element["name"]))
            else:
                // If facet element belongs to "grouping pack" filter but does not have the "_" character in it, it
                // means this corresponds to the "no pack" grouping which we don"t want to show as a facet element.
                continue
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: MTG/freesound
Commit Name: b425d17022e8491f590cf5065bbb1b36822232cc
Time: 2020-11-27
Author: frederic.font@gmail.com
File Name: search/templatetags/search.py
Class Name:
Method Name: display_facet


Project Name: xinntao/BasicSR
Commit Name: 474ed3789d19fd1bdf40a7365a5d196e118132c0
Time: 2018-09-09
Author: wxt1994@126.com
File Name: codes/models/base_model.py
Class Name: BaseModel
Method Name: save_network


Project Name: luispedro/mahotas
Commit Name: ea2d9ed5f5cdb9ca5c694b2cb6b3e0f0e152148d
Time: 2018-10-19
Author: luis@luispedro.org
File Name: mahotas/internal.py
Class Name:
Method Name: _verify_is_floatingpoint_type


Project Name: scikit-optimize/scikit-optimize
Commit Name: ea8eeb61740626d22e6fcff79b8d49448d095d1b
Time: 2017-06-20
Author: jvmirca@gmail.com
File Name: skopt/space/space.py
Class Name: Categorical
Method Name: distance


Project Name: brian-team/brian2
Commit Name: 4ef0b3641c9c34c5a01504c2fe3b4ca00b61f12e
Time: 2018-03-20
Author: marcel.stimberg@inserm.fr
File Name: brian2/__init__.py
Class Name:
Method Name: check_cache