56017c9931222ab3d87692a71d138285d8a5d86a,estnltk/dividing.py,,contains,#Any#Any#,11
Before Change
if inner_is_list:
return all(contains(outer, span) for span in inner)
else:
return any(contains(span, inner) for span in outer)
else:
ostart, oend = outer
if inner_is_list:
After Change
def contains(outer, inner):
inner_is_list = isinstance(inner, list)
outer_is_list = isinstance(outer, list)
if inner_is_list:
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):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: sympy/sympy
Commit Name: d5e00bf699fcf3a8a7c00d92bc499e8b0526bef7
Time: 2021-03-05
Author: sidharthmundhra16@gmail.com
File Name: sympy/functions/elementary/trigonometric.py
Class Name: sin
Method Name: _eval_as_leading_term
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