<commit_before># This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20170523145129) do

  create_table "incidents", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.integer "driver_id"
    t.string "run"
    t.string "block"
    t.string "bus"
    t.datetime "occurred_at"
    t.integer "passengers_onboard"
    t.integer "courtesy_cards_distributed"
    t.integer "courtesy_cards_collected"
    t.integer "speed"
    t.string "location"
    t.string "town"
    t.string "weather_conditions"
    t.string "road_conditions"
    t.string "light_conditions"
    t.boolean "headlights_used"
    t.boolean "motor_vehicle_collision"
    t.string "other_vehicle_plate"
    t.string "other_vehicle_state"
    t.string "other_vehicle_make"
    t.string "other_vehicle_model"
    t.string "other_vehicle_year"
    t.string "other_vehicle_color"
    t.integer "other_vehicle_passengers"
    t.string "direction"
    t.string "other_vehicle_direction"
    t.string "other_driver_name"
    t.string "other_driver_license_number"
    t.string "other_driver_license_state"
    t.boolean "other_vehicle_owned_by_other_driver"
    t.string "other_vehicle_owner_name"
    t.string "other_vehicle_driver_address"
    t.string "other_vehicle_driver_address_town"
    t.string "other_vehicle_driver_address_state"
    t.string "other_vehicle_driver_address_zip"
    t.string "other_vehicle_driver_home_phone"
    t.string "other_vehicle_driver_cell_phone"
    t.string "other_vehicle_driver_work_phone"
    t.string "other_vehicle_owner_address"
    t.string "other_vehicle_owner_address_town"
    t.string "other_vehicle_owner_address_state"
    t.string "other_vehicle_owner_address_zip"
    t.string "other_vehicle_owner_home_phone"
    t.string "other_vehicle_owner_cell_phone"
    t.string "other_vehicle_owner_work_phone"
    t.boolean "police_on_scene"
    t.string "police_badge_number"
    t.string "police_town_or_state"
    t.string "police_case_assigned"
    t.string "damage_to_bus_point_of_impact"
    t.string "damage_to_other_vehicle_point_of_impact"
    t.string "insurance_carrier"
    t.string "insurance_policy_number"
    t.date "insurance_effective_date"
    t.boolean "passenger_incident"
    t.boolean "occurred_front_door"
    t.boolean "occurred_rear_door"
    t.boolean "occurred_front_steps"
    t.boolean "occurred_rear_steps"
    t.boolean "occurred_sudden_stop"
    t.boolean "occurred_before_boarding"
    t.boolean "occurred_while_boarding"
    t.boolean "occurred_after_boarding"
    t.boolean "occurred_while_exiting"
    t.boolean "occurred_after_exiting"
    t.string "motion_of_bus"
    t.string "condition_of_steps"
    t.boolean "bus_kneeled"
    t.boolean "bus_up_to_curb"
    t.string "reason_not_up_to_curb"
    t.string "vehicle_in_bus_stop_plate"
    t.text "injured_passengers"
    t.text "description"
    t.boolean "completed"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  create_table "staff_reviews", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.integer "incident_id"
    t.integer "user_id"
    t.text "text"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end
<commit_msg>Set booleans default false<commit_after># This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20170523145129) do

  create_table "incidents", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.integer "driver_id"
    t.string "run"
    t.string "block"
    t.string "bus"
    t.datetime "occurred_at"
    t.integer "passengers_onboard"
    t.integer "courtesy_cards_distributed"
    t.integer "courtesy_cards_collected"
    t.integer "speed"
    t.string "location"
    t.string "town"
    t.string "weather_conditions"
    t.string "road_conditions"
    t.string "light_conditions"
    t.boolean "headlights_used", default: false
    t.boolean "motor_vehicle_collision", default: false
    t.string "other_vehicle_plate"
    t.string "other_vehicle_state"
    t.string "other_vehicle_make"
    t.string "other_vehicle_model"
    t.string "other_vehicle_year"
    t.string "other_vehicle_color"
    t.integer "other_vehicle_passengers"
    t.string "direction"
    t.string "other_vehicle_direction"
    t.string "other_driver_name"
    t.string "other_driver_license_number"
    t.string "other_driver_license_state"
    t.boolean "other_vehicle_owned_by_other_driver", default: false
    t.string "other_vehicle_owner_name"
    t.string "other_vehicle_driver_address"
    t.string "other_vehicle_driver_address_town"
    t.string "other_vehicle_driver_address_state"
    t.string "other_vehicle_driver_address_zip"
    t.string "other_vehicle_driver_home_phone"
    t.string "other_vehicle_driver_cell_phone"
    t.string "other_vehicle_driver_work_phone"
    t.string "other_vehicle_owner_address"
    t.string "other_vehicle_owner_address_town"
    t.string "other_vehicle_owner_address_state"
    t.string "other_vehicle_owner_address_zip"
    t.string "other_vehicle_owner_home_phone"
    t.string "other_vehicle_owner_cell_phone"
    t.string "other_vehicle_owner_work_phone"
    t.boolean "police_on_scene", default: false
    t.string "police_badge_number"
    t.string "police_town_or_state"
    t.string "police_case_assigned"
    t.string "damage_to_bus_point_of_impact"
    t.string "damage_to_other_vehicle_point_of_impact"
    t.string "insurance_carrier"
    t.string "insurance_policy_number"
    t.date "insurance_effective_date"
    t.boolean "passenger_incident", default: false
    t.boolean "occurred_front_door", default: false
    t.boolean "occurred_rear_door", default: false
    t.boolean "occurred_front_steps", default: false
    t.boolean "occurred_rear_steps", default: false
    t.boolean "occurred_sudden_stop", default: false
    t.boolean "occurred_before_boarding", default: false
    t.boolean "occurred_while_boarding", default: false
    t.boolean "occurred_after_boarding", default: false
    t.boolean "occurred_while_exiting", default: false
    t.boolean "occurred_after_exiting", default: false
    t.string "motion_of_bus"
    t.string "condition_of_steps"
    t.boolean "bus_kneeled", default: false
    t.boolean "bus_up_to_curb", default: false
    t.string "reason_not_up_to_curb"
    t.string "vehicle_in_bus_stop_plate"
    t.text "injured_passengers"
    t.text "description"
    t.boolean "completed", default: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  create_table "staff_reviews", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.integer "incident_id"
    t.integer "user_id"
    t.text "text"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

{'fraction_non_alphanumeric': 0.0809854860348823, 'fraction_numerical': 0.003902914989632882, 'mean_word_length': 4.459387483355526, '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': '856662', 'n_tokens_mistral': 2798, 'n_tokens_neox': 2643, 'n_words': 641}