<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: 20200728163038) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "api_clients", force: :cascade do |t|
    t.string "description"
    t.string "token"
    t.bigint "user_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["user_id"], name: "index_api_clients_on_user_id"
  end

  create_table "assignments", id: :serial, force: :cascade do |t|
    t.text "solution"
    t.integer "exercise_id"
    t.integer "submission_status", default: 0
    t.text "result"
    t.integer "submitter_id"
    t.text "expectation_results"
    t.text "feedback"
    t.text "test_results"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "submissions_count", default: 0, null: false
    t.string "submission_id"
    t.string "queries", default: [], array: true
    t.text "query_results"
    t.text "manual_evaluation_comment"
    t.integer "attemps_count", default: 0
    t.bigint "organization_id"
    t.datetime "submitted_at"
    t.bigint "parent_id"
    t.index ["exercise_id"], name: "index_assignments_on_exercise_id"
    t.index ["organization_id"], name: "index_assignments_on_organization_id"
    t.index ["parent_id"], name: "index_assignments_on_parent_id"
    t.index ["submission_id"], name: "index_assignments_on_submission_id"
    t.index ["submitter_id"], name: "index_assignments_on_submitter_id"
  end

  create_table "avatars", force: :cascade do |t|
    t.string "image_url"
    t.string "description"
  end

  create_table "books", id: :serial, force: :cascade do |t|
    t.string "name"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string "locale", default: "en"
    t.text "description"
    t.string "slug"
    t.boolean "private", default: false
    t.index ["slug"], name: "index_books_on_slug", unique: true
  end

  create_table "chapters", id: :serial, force: :cascade do |t|
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "number", default: 0, null: false
    t.integer "book_id"
    t.integer "topic_id"
  end

  create_table "complements", id: :serial, force: :cascade do |t|
    t.integer "guide_id"
    t.integer "book_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.index ["book_id"], name: "index_complements_on_book_id"
    t.index ["guide_id"], name: "index_complements_on_guide_id"
  end

  create_table "courses", force: :cascade do |t|
    t.string "slug"
    t.string "days", array: true
    t.string "code"
    t.string "shifts", array: true
    t.string "period"
    t.string "description"
    t.integer "organization_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  create_table "discussions", force: :cascade do |t|
    t.integer "status", default: 0
    t.string "title"
    t.text "description"
    t.bigint "initiator_id"
    t.string "item_type"
    t.bigint "item_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.text "solution"
    t.integer "submission_status", default: 0
    t.text "result"
    t.text "expectation_results"
    t.text "feedback"
    t.text "test_results"
    t.string "submission_id"
    t.string "queries", default: [], array: true
    t.text "query_results"
    t.text "manual_evaluation_comment"
    t.integer "upvotes_count", default: 0
    t.bigint "organization_id"
    t.integer "messages_count", default: 0
    t.integer "validated_messages_count", default: 0
    t.boolean "requires_moderator_response", default: true
    t.index ["initiator_id"], name: "index_discussions_on_initiator_id"
    t.index ["item_type", "item_id"], name: "index_discussions_on_item_type_and_item_id"
    t.index ["organization_id"], name: "index_discussions_on_organization_id"
  end

  create_table "exam_authorizations", force: :cascade do |t|
    t.integer "exam_id"
    t.integer "user_id"
    t.boolean "started", default: false
    t.datetime "started_at"
    t.index ["exam_id"], name: "index_exam_authorizations_on_exam_id"
    t.index ["user_id"], name: "index_exam_authorizations_on_user_id"
  end<commit_msg>Updating schema with domain migrations<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: 20200731081757) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "api_clients", force: :cascade do |t|
    t.string "description"
    t.string "token"
    t.bigint "user_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["user_id"], name: "index_api_clients_on_user_id"
  end

  create_table "assignments", id: :serial, force: :cascade do |t|
    t.text "solution"
    t.integer "exercise_id"
    t.integer "submission_status", default: 0
    t.text "result"
    t.integer "submitter_id"
    t.text "expectation_results"
    t.text "feedback"
    t.text "test_results"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "submissions_count", default: 0, null: false
    t.string "submission_id"
    t.string "queries", default: [], array: true
    t.text "query_results"
    t.text "manual_evaluation_comment"
    t.integer "attemps_count", default: 0
    t.bigint "organization_id"
    t.datetime "submitted_at"
    t.bigint "parent_id"
    t.index ["exercise_id"], name: "index_assignments_on_exercise_id"
    t.index ["organization_id"], name: "index_assignments_on_organization_id"
    t.index ["parent_id"], name: "index_assignments_on_parent_id"
    t.index ["submission_id"], name: "index_assignments_on_submission_id"
    t.index ["submitter_id"], name: "index_assignments_on_submitter_id"
  end

  create_table "avatars", force: :cascade do |t|
    t.string "image_url"
    t.string "description"
  end

  create_table "books", id: :serial, force: :cascade do |t|
    t.string "name"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string "locale", default: "en"
    t.text "description"
    t.string "slug"
    t.boolean "private", default: false
    t.index ["slug"], name: "index_books_on_slug", unique: true
  end

  create_table "chapters", id: :serial, force: :cascade do |t|
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "number", default: 0, null: false
    t.integer "book_id"
    t.integer "topic_id"
  end

  create_table "complements", id: :serial, force: :cascade do |t|
    t.integer "guide_id"
    t.integer "book_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.index ["book_id"], name: "index_complements_on_book_id"
    t.index ["guide_id"], name: "index_complements_on_guide_id"
  end

  create_table "courses", force: :cascade do |t|
    t.string "slug"
    t.string "days", array: true
    t.string "code"
    t.string "shifts", array: true
    t.string "period"
    t.string "description"
    t.integer "organization_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  create_table "discussions", force: :cascade do |t|
    t.integer "status", default: 0
    t.string "title"
    t.text "description"
    t.bigint "initiator_id"
    t.string "item_type"
    t.bigint "item_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.text "solution"
    t.integer "submission_status", default: 0
    t.text "result"
    t.text "expectation_results"
    t.text "feedback"
    t.text "test_results"
    t.string "submission_id"
    t.string "queries", default: [], array: true
    t.text "query_results"
    t.text "manual_evaluation_comment"
    t.integer "upvotes_count", default: 0
    t.bigint "organization_id"
    t.integer "messages_count", default: 0
    t.integer "validated_messages_count", default: 0
    t.boolean "requires_moderator_response", default: true
    t.string "last_moderator_access_by_id"
    t.datetime "last_moderator_access_at"
    t.index ["initiator_id"], name: "index_discussions_on_initiator_id"
    t.index ["item_type", "item_id"], name: "index_discussions_on_item_type_and_item_id"
    t.index ["organization_id"], name: "index_discussions_on_organization_id"
  end

  create_table "exam_authorizations", force: :cascade do |t|
    t.integer "exam_id"
    t.integer "user_id"
    t.boolean "started", default: false
    t.datetime "started_at"
    t.index ["exam_id"], name: "index_exam_authorizations_on_exam_id"
    t.index ["user_id"], name: "index_exam_authorizations_on_user_id"
  end
{'fraction_non_alphanumeric': 0.10952858575727181, 'fraction_numerical': 0.004613841524573721, 'mean_word_length': 3.958229736449528, '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': '203097', 'n_tokens_mistral': 3432, 'n_tokens_neox': 3314, 'n_words': 935}