9ce50fe221a40ce0ffc91140c22fa4c275fa8b83,extractors/ir.py,IrIndex,create_query,#IrIndex#Any#Any#Any#,174

Before Change


        if isinstance(raw_text, list):
            raw_text = u" ".join(raw_text)
        search_tokens = [x.translate(punct_tbl)
                         for x in tokenizer(unicode(raw_text))
                         if len(x) > 3]
        search_string = u" ".join(filter(lambda y: y in
                                         kQUERY_CHARS, unidecode(x))
                                  for x in search_tokens)
        // print(search_string)
        query = self._text_parser.parse(search_string)

        return query, len(search_tokens)

    def full_search(self, query, time_limit=-1, search_limit=50,
                    edit_dist=0):
        val = {}

After Change


        search_string, search_len = self.prepare_query(raw_text)
        search_query = self._text_parser.parse(search_string)

        return search_query, search_len

    def full_search(self, query, time_limit=-1, search_limit=50,
                    edit_dist=0):
        val = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Pinafore/qb
Commit Name: 9ce50fe221a40ce0ffc91140c22fa4c275fa8b83
Time: 2015-12-03
Author: jordanbg@gmail.com
File Name: extractors/ir.py
Class Name: IrIndex
Method Name: create_query


Project Name: pyinstaller/pyinstaller
Commit Name: 5b2327e051d5243f80b9b9f39f6800bbc8749bed
Time: 2018-09-09
Author: contact@tiger-222.fr
File Name: setup.py
Class Name:
Method Name: read


Project Name: tensorlayer/tensorlayer
Commit Name: 6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2
Time: 2018-04-17
Author: DEKHTIARJonathan@users.noreply.github.com
File Name: tests/test_yapf_format.py
Class Name:
Method Name: _read_utf_8_file