0816c636b7d7832a0177a08a08888840d717bed4,theanolm/commands/score.py,,_score_text,#Any#Any#Any#Any#Any#Any#Any#,92

Before Change


            // number of words, including <unk>"s
            num_words += len(merged_words)
            // number of word probabilities computed (may not include <unk>"s)
            num_probs += len(filter(None, merged_logprobs))
            // number of <unk>"s (just for reporting)
            num_unks += merged_words.count("<unk>")
            // number of sequences
            num_sentences += 1

After Change


            // number of words, including <unk>"s
            num_words += len(merged_words)
            // number of word probabilities computed (may not include <unk>"s)
            num_probs += sum(not x is None for x in merged_logprobs)
            // number of <unk>"s (just for reporting)
            num_unks += sum(x is None for x in merged_logprobs)
            // number of sequences
            num_sentences += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


Project Name: senarvi/theanolm
Commit Name: 0816c636b7d7832a0177a08a08888840d717bed4
Time: 2017-01-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/score.py
Class Name:
Method Name: _score_text


Project Name: home-assistant/home-assistant
Commit Name: 5a26d4c039e8339d13d0b446dfa1a813657ec61f
Time: 2018-01-16
Author: mail+github@tinloaf.de
File Name: homeassistant/components/recorder/purge.py
Class Name:
Method Name: purge_old_data


Project Name: senarvi/theanolm
Commit Name: a09308a3593b2639c2ca644c9aba061e77e68e3b
Time: 2017-05-09
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/score.py
Class Name:
Method Name: _score_text


Project Name: home-assistant/home-assistant
Commit Name: fc302186b27d04f01415b829e1e48adf19cb17f9
Time: 2018-01-16
Author: mail+github@tinloaf.de
File Name: homeassistant/components/recorder/purge.py
Class Name:
Method Name: purge_old_data


Project Name: pantsbuild/pants
Commit Name: 7c3f95d1505944f54c998f27f144d4dcb8968477
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/cache_manager.py
Class Name: CacheManager
Method Name: _order_target_list


Project Name: pantsbuild/pants
Commit Name: 9eff888f9e472acbe05967389a35787eefde2622
Time: 2013-11-07
Author: pl@foursquare.com
File Name: src/python/twitter/pants/tasks/cache_manager.py
Class Name: CacheManager
Method Name: _order_target_list


Project Name: pantsbuild/pants
Commit Name: f783edcd371ea4860982c55f16a24695be142c99
Time: 2018-07-06
Author: ericarellano@me.com
File Name: src/python/pants/base/worker_pool.py
Class Name: WorkerPool
Method Name: submit_async_work_chain