56017c9931222ab3d87692a71d138285d8a5d86a,estnltk/dividing.py,,contains,#Any#Any#,11

Before Change



    if outer_is_list:
        if inner_is_list:
            return all(contains(outer, span) for span in inner)
        else:
            return any(contains(span, inner) for span in outer)
    else:

After Change


        if outer_is_list:
            return list_contains_list(outer, inner)
        return span_contains_list(outer, inner)
    if outer_is_list:
        return list_contains_span(outer, inner)
    return span_contains_span(outer, inner)


def any_filters_span(outer, inner):
    if contains(outer, inner):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: estnltk/estnltk
Commit Name: 56017c9931222ab3d87692a71d138285d8a5d86a
Time: 2015-06-03
Author: tpetmanson@gmail.com
File Name: estnltk/dividing.py
Class Name:
Method Name: contains


Project Name: OpenMined/Grid
Commit Name: 0bce5765b02513a167e454f112a61bd70d47d6ff
Time: 2020-03-02
Author: ionesiojr@gmail.com
File Name: gateway/app/main/processes/controller.py
Class Name: FLController
Method Name: last_participation


Project Name: Coder-Yu/RecQ
Commit Name: 06e423b08766d831d903cf4422d2c46735dd7821
Time: 2017-06-09
Author: yuyu2223@163.com
File Name: data/rating.py
Class Name: RatingDAO
Method Name: contains