<commit_before># update settings for searchable models
#if ActiveRecord::Base.connection.tables.include?('settings')
#  if Setting.columns_hash.key?('state_current') # TODO: remove me later
#    models_current = Models.searchable.map(&:to_s)
#    models_config = Setting.get('models_searchable')
#    setting = Setting.find_by(name: 'models_searchable')
#    if setting && models_current != models_config
#      Setting.set('models_searchable', models_current)
#    end
#  end
#end<commit_msg>Revert "test failure reason"<commit_after># update settings for searchable models
if ActiveRecord::Base.connection.tables.include?('settings')
  if Setting.columns_hash.key?('state_current') # TODO: remove me later
    models_current = Models.searchable.map(&:to_s)
    models_config = Setting.get('models_searchable')
    setting = Setting.find_by(name: 'models_searchable')
    if setting && models_current != models_config
      Setting.set('models_searchable', models_current)
    end
  end
end
{'fraction_non_alphanumeric': 0.11907164480322906, 'fraction_numerical': 0.0, 'mean_word_length': 5.441558441558442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2965224', 'n_tokens_mistral': 298, 'n_tokens_neox': 295, 'n_words': 62}