<commit_before># encoding: UTF-8
# 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: 20140925220227) do

  create_table "compiles", force: true do |t|
    t.integer  "phase_id"
    t.integer  "session_id"
    t.string   "light_color"
    t.integer  "git_tag"
    t.integer  "total_edited_line_count"
    t.integer  "production_edited_line_count"
    t.integer  "test_edited_line_count"
    t.integer  "total_test_method_count"
    t.integer  "total_test_run_count"
    t.integer  "total_test_run_fail_count"
    t.integer  "seconds_since_last_light"
    t.float    "statement_coverage"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.boolean  "test_change"
    t.boolean  "prod_change"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "compiles", ["phase_id"], name: "index_compiles_on_phase_id"
  add_index "compiles", ["session_id"], name: "index_compiles_on_session_id"

  create_table "cycles", force: true do |t|
    t.integer  "session_id"
    t.integer  "total_edit_count"
    t.integer  "production_edit_count"
    t.integer  "test_edit_count"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.float    "statement_coverage"
    t.integer  "cyclomatic_complexity"
    t.boolean  "valid_tdd"
    t.integer  "cycle_position"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "cycles", ["session_id"], name: "index_cycles_on_session_id"

  create_table "phases", force: true do |t|
    t.integer  "cycle_id"
    t.string   "tdd_color"
    t.integer  "seconds_in_phase"
    t.integer  "total_edit_count"
    t.integer  "production_edit_count"
    t.integer  "test_edit_count"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.integer  "total_line_change_count"
    t.integer  "production_line_change_count"
    t.integer  "test_line_change_count"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "phases", ["cycle_id"], name: "index_phases_on_cycle_id"

  create_table "sessions", force: true do |t|
    t.string   "kata_name"
    t.string   "cyberdojo_id"
    t.string   "language_framework"
    t.string   "path"
    t.string   "avatar"
    t.datetime "start_date"
    t.integer  "computed_time_secs"
    t.integer  "total_light_count"
    t.integer  "red_light_count"
    t.integer  "green_light_count"
    t.integer  "amber_light_count"
    t.integer  "max_consecutive_red_chain_length"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.integer  "total_edited_line_count"
    t.integer  "production_edited_line_count"
    t.integer  "test_edited_line_count"<commit_msg>added two fields to help with drawing<commit_after># encoding: UTF-8
# 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: 20140925220227) do

  create_table "compiles", force: true do |t|
    t.integer  "phase_id"
    t.integer  "session_id"
    t.string   "light_color"
    t.integer  "git_tag"
    t.integer  "total_edited_line_count"
    t.integer  "production_edited_line_count"
    t.integer  "test_edited_line_count"
    t.integer  "total_test_method_count"
    t.integer  "total_test_run_count"
    t.integer  "total_test_run_fail_count"
    t.integer  "seconds_since_last_light"
    t.float    "statement_coverage"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.boolean  "test_change"
    t.boolean  "prod_change"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "compiles", ["phase_id"], name: "index_compiles_on_phase_id"
  add_index "compiles", ["session_id"], name: "index_compiles_on_session_id"

  create_table "cycles", force: true do |t|
    t.integer  "session_id"
    t.integer  "total_edit_count"
    t.integer  "production_edit_count"
    t.integer  "test_edit_count"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.float    "statement_coverage"
    t.integer  "cyclomatic_complexity"
    t.boolean  "valid_tdd"
    t.integer  "cycle_position"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "cycles", ["session_id"], name: "index_cycles_on_session_id"

  create_table "phases", force: true do |t|
    t.integer  "cycle_id"
    t.string   "tdd_color"
    t.integer  "seconds_in_phase"
    t.integer  "total_edit_count"
    t.integer  "production_edit_count"
    t.integer  "test_edit_count"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.integer  "total_line_change_count"
    t.integer  "production_line_change_count"
    t.integer  "test_line_change_count"
    t.integer  "first_compile_in_phase"
    t.integer  "last_compile_in_phase"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "phases", ["cycle_id"], name: "index_phases_on_cycle_id"

  create_table "sessions", force: true do |t|
    t.string   "kata_name"
    t.string   "cyberdojo_id"
    t.string   "language_framework"
    t.string   "path"
    t.string   "avatar"
    t.datetime "start_date"
    t.integer  "computed_time_secs"
    t.integer  "total_light_count"
    t.integer  "red_light_count"
    t.integer  "green_light_count"
    t.integer  "amber_light_count"
    t.integer  "max_consecutive_red_chain_length"
    t.integer  "total_sloc_count"
    t.integer  "production_sloc_count"
    t.integer  "test_sloc_count"
    t.integer  "total_edited_line_count"
    t.integer  "production_edited_line_count"
    t.integer  "test_edited_line_count"
{'fraction_non_alphanumeric': 0.08589473684210526, 'fraction_numerical': 0.004210526315789474, 'mean_word_length': 3.8311864406779663, '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': '1717469', 'n_tokens_mistral': 2501, 'n_tokens_neox': 2438, 'n_words': 585}