<commit_before>((Form) ->

  ###*
  # List editor
  # 
  # An array editor. Creates a list of other editor items.
  #
  # Special options:
  # @param {String} [options.schema.itemType]          The editor type for each item in the list. Default: 'Text'
  # @param {String} [options.schema.confirmDelete]     Text to display in a delete confirmation dialog. If falsey, will not ask for confirmation.
  ###

  Form.editors.List = Form.editors.Base.extend({
    events: 'click [data-action="add"]': (event) ->
      event.preventDefault()
      @addItem null, true
      return
    initialize: (options) ->
      options = options or {}
      editors = Form.editors
      editors.Base::initialize.call this, options
      schema = @schema
      if !schema
        throw new Error('Missing required option \'schema\'')
      @template = options.template or @constructor.template
      #Determine the editor to use
      @Editor = do -><commit_msg>Specify a list template in schema definition<commit_after>((Form) ->

  ###*
  # List editor
  # 
  # An array editor. Creates a list of other editor items.
  #
  # Special options:
  # @param {String} [options.schema.itemType]          The editor type for each item in the list. Default: 'Text'
  # @param {String} [options.schema.confirmDelete]     Text to display in a delete confirmation dialog. If falsey, will not ask for confirmation.
  ###

  Form.editors.List = Form.editors.Base.extend({
    events: 'click [data-action="add"]': (event) ->
      event.preventDefault()
      @addItem null, true
      return
    initialize: (options) ->
      options = options or {}
      editors = Form.editors
      editors.Base::initialize.call this, options
      schema = @schema
      if !schema
        throw new Error('Missing required option \'schema\'')
      @template = options.template or schema.listTemplate or @constructor.template
      #Determine the editor to use
      @Editor = do ->
{'fraction_non_alphanumeric': 0.11288659793814433, 'fraction_numerical': 0.0, 'mean_word_length': 2.761627906976744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '218402', 'n_tokens_mistral': 545, 'n_tokens_neox': 536, 'n_words': 186}