fffc67bc45e40607951af0a23f4a86bd7b4efae3,setup/prepare_data.py,,prepare,#,21

Before Change


                        if i:
                            prev = entity[i - 1:i + 1]
                            stats[prev] += freq
                            if stats[prev] > partial_stats_min:
                                update_partial_stats = True
                            indices[prev][j] += 1

                        // Increase frequency of (new pair) "BC D" in "A BC D", but do not touch if "A BC BC" as stats for "BC BC" will be adjusted win next occurence of "BC" pair
                        if i < len(entity) - 1 and entity[i + 1] != new_pair:

After Change



                // Update partial stats or frequency of most frequent pair is less than saved minimum for partial stats
                if update_partial_stats or freq < partial_stats_min:
                    partial_stats_min = stats.most_common(500)[-1][1]
                    partial_stats = Counter()
                    for k, v in stats.most_common():
                        if v < partial_stats_min:
                            break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: daniel-kukiela/nmt-chatbot
Commit Name: fffc67bc45e40607951af0a23f4a86bd7b4efae3
Time: 2018-03-24
Author: daniel@kukiela.pl
File Name: setup/prepare_data.py
Class Name:
Method Name: prepare


Project Name: mozilla/bugbug
Commit Name: 03a907732b244d553236a3b1f3b79aaaa2945ad5
Time: 2020-10-20
Author: mcastelluccio@mozilla.com
File Name: scripts/testing_policy_stats.py
Class Name: TestingPolicyStatsGenerator
Method Name: go


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: c7d92c9df54a69a21d32984e837485e2de245fd1
Time: 2018-01-02
Author: max.lapan@gmail.com
File Name: ch12/tools/sub_reader.py
Class Name:
Method Name: