<commit_before>class Workflow
  include Mongoid::Document

  field    :name,                                            type: String
  #TODO: can we delete :key field? --AMS
  field    :key, 				                                     type: String
  field    :label,                                           type: String
  field    :first_task,                                      type: String
  field    :retire_limit, 		                               type: Float,   default: 0.75
  field    :subject_fetch_limit,                             type: Integer,   default: 10
  field    :generates_subjects,                              type: Boolean,   default: true
  field    :generates_subjects_after,                        type: Integer,   default: 0
  field    :generates_subjects,                              type: Boolean,   default: false
  field    :generates_subjects_for,                          type: String,    default: ""
  field    :generates_subjects_max,                          type: Integer
  field    :generates_subjects_method,                       type: String,    default: 'one-per-classification'
  field    :active_subjects,                                 type: Integer,   default: 0

  has_many     :subjects
  has_many     :classifications
  belongs_to   :project

  embeds_many :tasks, class_name: 'WorkflowTask'<commit_msg>add field :subject_request_scope to Workflow model<commit_after>class Workflow
  include Mongoid::Document

  field    :name,                                            type: String
  #TODO: can we delete :key field? --AMS
  field    :key, 				                                     type: String
  field    :label,                                           type: String
  field    :first_task,                                      type: String
  field    :retire_limit, 		                               type: Float,   default: 0.75
  field    :subject_fetch_limit,                             type: Integer,   default: 10
  field    :generates_subjects,                              type: Boolean,   default: true
  field    :generates_subjects_after,                        type: Integer,   default: 0
  field    :generates_subjects,                              type: Boolean,   default: false
  field    :generates_subjects_for,                          type: String,    default: ""
  field    :generates_subjects_max,                          type: Integer
  field    :generates_subjects_method,                       type: String,    default: 'one-per-classification'
  field    :active_subjects,                                 type: Integer,   default: 0
  field    :subject_request_scope,                           type: String,    default: "active"

  has_many     :subjects
  has_many     :classifications
  belongs_to   :project

  embeds_many :tasks, class_name: 'WorkflowTask'
{'fraction_non_alphanumeric': 0.059838085181274196, 'fraction_numerical': 0.004927842309046111, 'mean_word_length': 1.2448657187993681, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1320164', 'n_tokens_mistral': 719, 'n_tokens_neox': 682, 'n_words': 186}