b68ab2b4e4cbea341e9b2d16cc58cd24a5859aa5,bears/general/AnnotationBear.py,AnnotationBear,run,#AnnotationBear#Any#Any#Any#Any#,15

Before Change


        // Yield different results for strings and comments
        strings_found = tuple(filter(lambda arg: arg in unnested_annotations,
                                     strings_found))
        comments_found = tuple(filter(lambda arg: arg in unnested_annotations,
                                      comments_found))
        yield HiddenResult(self, {"comments": comments_found,
                                  "strings": strings_found})

After Change


            lang_dict["multiline_comment_delimiters"])
        comment_delimiter = dict(lang_dict["comment_delimiter"])
        string_ranges = comment_ranges = ()
        try:
            string_ranges, comment_ranges = self.find_annotation_ranges(
                file,
                filename,
                string_delimiters,
                multiline_string_delimiters,
                comment_delimiter,
                multiline_comment_delimiters)

        except NoCloseError as e:
            yield Result(self, str(e), severity=RESULT_SEVERITY.MAJOR,
                         affected_code=(e.code,))

        content = {"strings": string_ranges, "comments": comment_ranges}
        yield HiddenResult(self, content)

    def find_annotation_ranges(self,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: coala/coala-bears
Commit Name: b68ab2b4e4cbea341e9b2d16cc58cd24a5859aa5
Time: 2016-07-27
Author: toabhayraizada@gmail.com
File Name: bears/general/AnnotationBear.py
Class Name: AnnotationBear
Method Name: run


Project Name: MTG/freesound
Commit Name: ad76d9b9f2442e0c938ef100415f35055b823c11
Time: 2017-11-10
Author: andres.ferraro@upf.edu
File Name: search/management/commands/post_dirty_sounds_to_solr.py
Class Name: Command
Method Name: handle


Project Name: comic/grand-challenge.org
Commit Name: 44e7ef0b2b8218781b5fe7e2191b9790c42d73ec
Time: 2019-02-26
Author: code@jmsmkn.com
File Name: app/grandchallenge/container_exec/tasks.py
Class Name:
Method Name: validate_docker_image_async


Project Name: comic/grand-challenge.org
Commit Name: e8bafba0d6a342e0a6de13f4ca05b71a111f22e1
Time: 2018-10-18
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/views.py
Class Name:
Method Name: comicmain