<commit_before>.nested-fields
  .row
    .col.col-md-auto
      %label.trigger-number
        - if f.index == 'new_conditions'
          +
        - else
          = f.index + 1
    .col
      = f.association :sensor, collection:  Proc.new{ Sensor.order('name').find_each.collect { |s| [s.name_and_id, s.id, 'data-range-min'=> s.min, 'data-range-max' => s.max, 'data-range-step' => (10 ** - s.fractionDigits).to_f, 'data-range-unit' => s.unit ] } }, label: false, prompt: '...add Sensor', input_html: {class: 'choose_sensor'}
    .col.form-group.d-flex.align-items-center
      - if f.object.sensor
        - s = f.object.sensor
        - options = {min: s.min, max: s.max, step: (10 ** - s.fractionDigits).to_f, unit: s.unit}
      - else
        - options = {min: -20.0, max: 100.0, step: 1, unit: ''}
      .range{data: options}
        .row.range__fallback
          .col
            = f.input :from, label: false, input_html: {class: 'range__hidden range__hidden--min'}
          .col
            = f.input :to, label: false, input_html: {class: 'range__hidden range__hidden--max'}

    .col.col-md-auto
      = link_to_remove_association button_tag("×", type: 'button', class: 'btn btn-danger '), f

<commit_msg>attempt to fix cucumber tests<commit_after>.nested-fields
  .row
    .col.col-md-auto
      %label.trigger-number
        - if f.index == 'new_conditions'
          +
        - else
          = f.index + 1
    .col
      = f.association :sensor, collection:  Proc.new{ Sensor.order('name').find_each.collect { |s| [s.name, s.id, 'data-range-min'=> s.min, 'data-range-max' => s.max, 'data-range-step' => (10 ** - s.fractionDigits).to_f, 'data-range-unit' => s.unit ] } }, label: false, prompt: '...add Sensor', input_html: {class: 'choose_sensor'}
    .col.form-group.d-flex.align-items-center
      - if f.object.sensor
        - s = f.object.sensor
        - options = {min: s.min, max: s.max, step: (10 ** - s.fractionDigits).to_f, unit: s.unit}
      - else
        - options = {min: -20.0, max: 100.0, step: 1, unit: ''}
      .range{data: options}
        .row.range__fallback
          .col
            = f.input :from, label: false, input_html: {class: 'range__hidden range__hidden--min'}
          .col
            = f.input :to, label: false, input_html: {class: 'range__hidden range__hidden--max'}

    .col.col-md-auto
      = link_to_remove_association button_tag("×", type: 'button', class: 'btn btn-danger '), f
{'fraction_non_alphanumeric': 0.1735571019238641, 'fraction_numerical': 0.010642652476463364, 'mean_word_length': 2.2893674293405115, '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': '6262798', 'n_tokens_mistral': 894, 'n_tokens_neox': 863, 'n_words': 184}