<commit_before>define 'cs!xlform/view.icons', [
        'backbone',
        ], (
            Backbone,
            )->

  iconDetails = [
    # row 1
      label: "Select one"
      faClass: "dot-circle-o"
      grouping: "r1"
      id: "select_one"
    ,
      label: "Select many"
      faClass: "list-ul"
      grouping: "r1"
      id: "select_multiple"
    ,
      label: "Text"
      faClass: "lato-text"
      grouping: "r1"
      id: "text"
    ,
      label: "Integer"
      faClass: "lato-integer"
      grouping: "r1"
      id: "integer"
    ,

    # row 2
      label: "Decimal"
      faClass: "lato-decimal"
      grouping: "r2"
      id: "decimal"
    ,
      label: "Date"
      faClass: "calendar"
      grouping: "r2"
      id: "date"
    ,
      label: "Time"
      faClass: "clock-o"
      grouping: "r2"
      id: "time"
    ,
      label: "Date + time"
      faClass: "calendar clock-over"
      grouping: "r2"
      id: "datetime"
    ,

    # r3
      label: "GPS Location"
      faClass: "map-marker"
      grouping: "r3"
      id: "geopoint"
    ,
      label: "Upload photo"
      faClass: "picture-o"
      grouping: "r3"
      id: "image"
    ,
      label: "Record audio"
      faClass: "volume-up"
      grouping: "r3"
      id: "audio"
    ,
      label: "Record video"
      faClass: "video-camera"
      grouping: "r3"
      id: "video"
    ,

    # r4
      label: "Read a note"
      faClass: "bars"
      grouping: "r4"
      id: "note"
    ,
      label: "Scan barcode"
      faClass: "barcode"
      grouping: "r4"
      id: "barcode"
    ,
      label: "Acknowledge"
      faClass: "check-square-o"
      grouping: "r4"
      id: "acknowledge"
    ,
      label: "Calculate value"
      faClass: "lato-calculate"
      grouping: "r4"
      id: "calculate"
    ,
    ]

  class QtypeIcon extends Backbone.Model
    defaults:
      faClass: "question-circle"

  class QtypeIconCollection extends Backbone.Collection
    model: QtypeIcon
    grouped: ()->
      unless @_groups
        @_groups = []
        grp_keys = []
        @each (model)=>
          grping = model.get("grouping")
          grp_keys.push(grping)  unless grping in grp_keys
          ii = grp_keys.indexOf(grping)
          @_groups[ii] or @_groups[ii] = []
          @_groups[ii].push model
      _.zip.apply(null, @_groups)

  new QtypeIconCollection(iconDetails)<commit_msg>#1061 - Response type labels are incorrect<commit_after>define 'cs!xlform/view.icons', [
        'backbone',
        ], (
            Backbone,
            )->

  iconDetails = [
    # row 1
      label: "Select One"
      faClass: "dot-circle-o"
      grouping: "r1"
      id: "select_one"
    ,
      label: "Select Many"
      faClass: "list-ul"
      grouping: "r1"
      id: "select_multiple"
    ,
      label: "Text"
      faClass: "lato-text"
      grouping: "r1"
      id: "text"
    ,
      label: "Number"
      faClass: "lato-integer"
      grouping: "r1"
      id: "integer"
    ,

    # row 2
      label: "Decimal"
      faClass: "lato-decimal"
      grouping: "r2"
      id: "decimal"
    ,
      label: "Date"
      faClass: "calendar"
      grouping: "r2"
      id: "date"
    ,
      label: "Time"
      faClass: "clock-o"
      grouping: "r2"
      id: "time"
    ,
      label: "Date & time"
      faClass: "calendar clock-over"
      grouping: "r2"
      id: "datetime"
    ,

    # r3
      label: "GPS"
      faClass: "map-marker"
      grouping: "r3"
      id: "geopoint"
    ,
      label: "Photo"
      faClass: "picture-o"
      grouping: "r3"
      id: "image"
    ,
      label: "Audio"
      faClass: "volume-up"
      grouping: "r3"
      id: "audio"
    ,
      label: "Video"
      faClass: "video-camera"
      grouping: "r3"
      id: "video"
    ,

    # r4
      label: "Note"
      faClass: "bars"
      grouping: "r4"
      id: "note"
    ,
      label: "Barcode"
      faClass: "barcode"
      grouping: "r4"
      id: "barcode"
    ,
      label: "Acknowledge"
      faClass: "check-square-o"
      grouping: "r4"
      id: "acknowledge"
    ,
      label: "Calculate"
      faClass: "lato-calculate"
      grouping: "r4"
      id: "calculate"
    ,
    ]

  class QtypeIcon extends Backbone.Model
    defaults:
      faClass: "question-circle"

  class QtypeIconCollection extends Backbone.Collection
    model: QtypeIcon
    grouped: ()->
      unless @_groups
        @_groups = []
        grp_keys = []
        @each (model)=>
          grping = model.get("grouping")
          grp_keys.push(grping)  unless grping in grp_keys
          ii = grp_keys.indexOf(grping)
          @_groups[ii] or @_groups[ii] = []
          @_groups[ii].push model
      _.zip.apply(null, @_groups)

  new QtypeIconCollection(iconDetails)
{'fraction_non_alphanumeric': 0.13142375737152484, 'fraction_numerical': 0.009267059814658803, 'mean_word_length': 1.6952326901248582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1775999', 'n_tokens_mistral': 1733, 'n_tokens_neox': 1706, 'n_words': 374}