<commit_before><template>
  <div class="range-slider" :class="color ? 'color-' + color : ''">
    <input
      type="range"
      :name="name"
      :id="id"
      :value="value"
      :disabled="disabled"
      :readonly="readonly"
      :required="required"
      :style="style"
      :max="max"
      :min="min"
      :step="step"

      @input="onInput"
      @change="onChange"
      @click="onClick"
    >
  </div>
</template>
<script>
  export default {
    props: {
      name: String,
      id: String,
      value: [String, Number],
      disabled: Boolean,
      readonly: Boolean,
      required: Boolean,
      style: String,
      max: [String, Number],
      min: [String, Number],
      step: [String, Number],

      color: String
    },
    methods: (function () {
      var eventMethods = {
        onInput: function (event) {
          this.$emit('input', event.target.value);
        }
      };
      'Change Click'.split(' ').forEach(function (ev) {
        eventMethods['on' + ev] = function (event) {
          this.$emit(ev.toLowerCase(), event)
        }
      });
      return eventMethods
    })()
  }
</script><commit_msg>Events to object<commit_after><template>
  <div class="range-slider" :class="color ? 'color-' + color : ''">
    <input
      type="range"
      :name="name"
      :id="id"
      :value="value"
      :disabled="disabled"
      :readonly="readonly"
      :required="required"
      :style="style"
      :max="max"
      :min="min"
      :step="step"

      @input="onInput"
      @change="onChange"
      @click="onClick"
    >
  </div>
</template>
<script>
  export default {
    props: {
      name: String,
      id: String,
      value: [String, Number],
      disabled: Boolean,
      readonly: Boolean,
      required: Boolean,
      style: String,
      max: [String, Number],
      min: [String, Number],
      step: [String, Number],

      color: String
    },
    methods: {
      onInput: function (event) {
        this.$emit('input', event.target.value);
      },
      onChange: function (event) {
        this.$emit('change', event);
      },
      onClick: function (event) {
        this.$emit('click', event);
      }
    }
  }
</script>
{'fraction_non_alphanumeric': 0.16636446056210336, 'fraction_numerical': 0.0, 'mean_word_length': 2.073816155988858, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5499680', 'n_tokens_mistral': 696, 'n_tokens_neox': 689, 'n_words': 146}