<commit_before>class CreateSchools < CassandraMigrations::Migration
  def up
    create_table :schools, :primary_keys => :id do |t|
      t.uuid :id
      t.string :school_id
      t.string :name
      t.string :address
      t.string :city
      t.string :state
      t.string :zipcode
      t.string :zipcode4
      t.string :number_of_students
      t.string :phone
      t.string :urbanicity_code
      t.string :school_type
      t.string :school_level
      t.string :low_grade_offered
      t.string :high_grade_offered
      t.string :school_status
      t.double :latitude
      t.double :longitude
      t.set :geocells, :type => :string
      t.boolean :geocoded
    end
    
    create_index :schools, :city, :name => 'by_city'
    create_index :schools, :state, :name => 'by_state'
    create_index :schools, :zipcode, :name => 'by_zipcode'
    create_index :schools, :school_id, :name => 'by_school_id'
  end
  
  def down
    drop_index 'by_zipcode'
    drop_index 'by_state'
    drop_index 'by_city'
    drop_index 'by_school_id'
    
    drop_table :schools
  end
end
<commit_msg>Added by_geocoded index (bad idea since the values are only true or false, but I needed it to do fix the records that failed to geocoded during seeding<commit_after>class CreateSchools < CassandraMigrations::Migration
  def up
    create_table :schools, :primary_keys => :id do |t|
      t.uuid :id
      t.string :school_id
      t.string :name
      t.string :address
      t.string :city
      t.string :state
      t.string :zipcode
      t.string :zipcode4
      t.string :number_of_students
      t.string :phone
      t.string :urbanicity_code
      t.string :school_type
      t.string :school_level
      t.string :low_grade_offered
      t.string :high_grade_offered
      t.string :school_status
      t.double :latitude
      t.double :longitude
      t.set :geocells, :type => :string
      t.boolean :geocoded
    end
    
    create_index :schools, :city, :name => 'by_city'
    create_index :schools, :state, :name => 'by_state'
    create_index :schools, :zipcode, :name => 'by_zipcode'
    create_index :schools, :school_id, :name => 'by_school_id'
    create_index :schools, :geocoded, :name => 'by_geocoded'
  end
  
  def down
    drop_index 'by_zipcode'
    drop_index 'by_state'
    drop_index 'by_city'
    drop_index 'by_school_id'
    drop_index 'by_geocoded'
    
    drop_table :schools
  end
end

{'fraction_non_alphanumeric': 0.09124690338563171, 'fraction_numerical': 0.0008257638315441783, 'mean_word_length': 2.7507739938080493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '672209', 'n_tokens_mistral': 843, 'n_tokens_neox': 842, 'n_words': 212}