<commit_before>Sequel.migration do
  up do
    alter_table :visualizations do
      add_index :state_id
    end
  end

  down do
    alter_table :visualizations do
      drop_index :state_id
    end
  end
end<commit_msg>use concurrent index<commit_after>Sequel.migration do
  up do
    execute "commit;" # indexes need to be created outside of the transaction
    execute %{
      CREATE INDEX CONCURRENTLY "visualizations_state_id_index" ON "visualizations" ("state_id");
    }
  end

  down do
    execute %{ DROP INDEX "visualizations_state_id_index"; }
  end
end
{'fraction_non_alphanumeric': 0.06007067137809187, 'fraction_numerical': 0.0, 'mean_word_length': 3.395348837209302, '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': '6888998', 'n_tokens_mistral': 188, 'n_tokens_neox': 174, 'n_words': 54}