<commit_before>#encoding: utf-8
require 'rubygems'
require 'rake'
require 'active_record/fixtures'
require 'uuidtools'
require 'colorize'


namespace :seek do

  #these are the tasks required for this version upgrade
  task :upgrade_version_tasks=>[
            :environment,
            :update_assay_types_from_ontology,
            :update_technology_types_from_ontology,
             :update_top_level_assay_type_titles,
            :resynchronise_assay_types,
            :resynchronise_technology_types,
            :increase_sheet_empty_rows,
            :clear_filestore_tmp,
            :repopulate_missing_publication_book_titles,

            :clean_up_sop_specimens,
            :update_jws_online_root,
            :update_bioportal_concepts,
            :repopulate_auth_lookup_tables,
            :drop_solr_index
  ]

  desc("upgrades SEEK from the last released version to the latest released version")
  task(:upgrade=>[:environment,"db:migrate","db:sessions:clear","tmp:clear"]) do

    solr=Seek::Config.solr_enabled

    Seek::Config.solr_enabled=false
<commit_msg>add 'update_admin_assigned_roles' to upgrade task<commit_after>#encoding: utf-8
require 'rubygems'
require 'rake'
require 'active_record/fixtures'
require 'uuidtools'
require 'colorize'


namespace :seek do

  #these are the tasks required for this version upgrade
  task :upgrade_version_tasks=>[
            :environment,
            :update_admin_assigned_roles,
            :update_assay_types_from_ontology,
            :update_technology_types_from_ontology,
             :update_top_level_assay_type_titles,
            :resynchronise_assay_types,
            :resynchronise_technology_types,
            :increase_sheet_empty_rows,
            :clear_filestore_tmp,
            :repopulate_missing_publication_book_titles,

            :clean_up_sop_specimens,
            :update_jws_online_root,
            :update_bioportal_concepts,
            :repopulate_auth_lookup_tables,
            :drop_solr_index
  ]

  desc("upgrades SEEK from the last released version to the latest released version")
  task(:upgrade=>[:environment,"db:migrate","db:sessions:clear","tmp:clear"]) do

    solr=Seek::Config.solr_enabled

    Seek::Config.solr_enabled=false

{'fraction_non_alphanumeric': 0.07644444444444444, 'fraction_numerical': 0.0008888888888888889, 'mean_word_length': 3.2632575757575757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '897914', 'n_tokens_mistral': 710, 'n_tokens_neox': 677, 'n_words': 117}