37cc2db2c5cfdbb0ea45534259f22e5a36138a45,core/tokenizer.py,,tokenize,#Any#,17
Before Change
// Protect phrases
i = 0
for phrase in protected_phrases:
if phrase in sentence:
sentence = sentence.replace(phrase, " PROTECTEDPHRASE{}PROTECTEDPHRASE ".format(i))
i = i + 1
// Protected regex-based phrases
i = 0
After Change
// Regex-based protected phrases
protected_phrases_regex_replacements = []
for i, phrase in enumerate(protected_phrases_regex) :
// If phrase was found in sentence
if re.search(phrase, sentence):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 37cc2db2c5cfdbb0ea45534259f22e5a36138a45
Time: 2017-11-23
Author: daniel@kukiela.pl
File Name: core/tokenizer.py
Class Name:
Method Name: tokenize
Project Name: lanpa/tensorboardX
Commit Name: 5619f0a742cfee882b51b6798215362e227c2732
Time: 2018-04-28
Author: huang.dexter@gmail.com
File Name: tensorboardX/graph.py
Class Name:
Method Name: parse
Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass