c0c0122aa66eaad70526999fe8e582529d0f8737,padatious/intent_container.py,IntentContainer,calc_intents,#IntentContainer#Any#,147

Before Change


        
        if self.must_train:
            self.train()
        intents = {} if self.train_thread.is_alive() else {
            i.name: i for i in self.intents.calc_intents(query, self.entities)
        }
        sent = tokenize(query)

After Change


        
        if self.must_train:
            self.train()
        intents = {} if self.train_thread and self.train_thread.is_alive() else {
            i.name: i for i in self.intents.calc_intents(query, self.entities)
        }
        sent = tokenize(query)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: MycroftAI/padatious
Commit Name: c0c0122aa66eaad70526999fe8e582529d0f8737
Time: 2019-03-07
Author: matthew331199@gmail.com
File Name: padatious/intent_container.py
Class Name: IntentContainer
Method Name: calc_intents


Project Name: ray-project/ray
Commit Name: 6c49c01837ef9d83b998a2ec1a269a1a6767fc66
Time: 2020-06-15
Author: rliaw@berkeley.edu
File Name: python/ray/tune/function_runner.py
Class Name: FunctionRunner
Method Name: _train


Project Name: rlworkgroup/garage
Commit Name: 8b83832156fd8f11cc4f97603d17c85191627120
Time: 2018-07-12
Author: jonashen@users.noreply.github.com
File Name: garage/plotter/plotter.py
Class Name: Plotter
Method Name: shutdown