<commit_before>class AddColumnForCourseCategory< ActiveRecord::Migration
    tag :predeploy

    def self.up
        add_column :course_categories, :used, :integer, :default => 0

        change_column_used_to_default
    end

    def change_column_used_to_default
        CourseCategory.update_all("used=0")
    end

    #ingore
    def self.down
    end
end<commit_msg>Fix undefined method `change_column_used_to_default`<commit_after>class AddColumnForCourseCategory< ActiveRecord::Migration
    tag :predeploy

    def self.up
        add_column :course_categories, :used, :integer, :default => 0

        change_column_used_to_default
    end

    def self.change_column_used_to_default
        CourseCategory.update_all("used=0")
    end

    #ingore
    def self.down
    end
end
{'fraction_non_alphanumeric': 0.06743002544529263, 'fraction_numerical': 0.005089058524173028, 'mean_word_length': 3.3966480446927374, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6612208', 'n_tokens_mistral': 248, 'n_tokens_neox': 237, 'n_words': 50}