9ce50fe221a40ce0ffc91140c22fa4c275fa8b83,extractors/ir.py,IrIndex,create_query,#IrIndex#Any#Any#Any#,174
Before Change
// sped up.
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 = {}
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
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: ray-project/ray
Commit Name: d7c95a4a9065cbad73901b4c1de087837e260316
Time: 2020-11-17
Author: simon.mo@hey.com
File Name: python/ray/serve/api.py
Class Name: Client
Method Name: get_handle
Project Name: MTG/freesound
Commit Name: f96a9c451ebc69e761baa633a33472e974a014d5
Time: 2019-07-24
Author: frederic.font@upf.edu
File Name: accounts/models.py
Class Name: Profile
Method Name: get_enabled_email_types
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 5b396e9125b9d5f7aa6a46f9d0dc1e1728b3f0b3
Time: 2016-05-11
Author: jonwayne@google.com
File Name: dns/api/main.py
Class Name:
Method Name: get_zone