<commit_before>angular.module 'param', []
angular.module('param').directive 'param', [
  '$filter'
  ($filter) ->

    link = (scope, element, attrs, ctrl) ->
      scope.unique_id = Math.random()
    return {
      link: link
      restrict: 'A'
      require: 'ngModel'
      scope:
        parameter: '=ngModel'
      template: '' +
        '<div class="col-md-4 text-right" ng-if=\'parameter.type != "array"\'>' +
        '  <b>{{ parameter.name }}</b>' +
        '  <span class="text-muted label label-warning">{{ parameter.type }}</span>' +
        '</div>' +
        '<div class="col-md-8" ng-if=\'parameter.type != "array"\'>' +
        '  <div ng-switch="parameter.type">' +
        '    <input ng-switch-when="string" type="text" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '    <input ng-switch-when="integer" type="number" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '    <div ng-switch-when="boolean" class="onoffswitch">' +
        '      <input class="onoffswitch-checkbox" ng-model="parameter.value" type="checkbox" id="{{ unique_id }}-on-off-switch">' +
        '      <label class="onoffswitch-label" for="{{ unique_id }}-on-off-switch"></label>' +
        '      <span class="onoffswitch-inner"></span>' +
        '      <span class="onoffswitch-switch"></span>' +
        '    </div>' +
        '    <div ng-switch-when="image" image=true" ng-model="parameter.value">' +
        '    <input ng-switch-default type="text" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '  </div>' +
        '  <div class="text-muted small">{{ parameter.description }}</div>' +
        '</div>' +
        '<div class="col-md-12" ng-if=\'parameter.type == "array"\'>' +
        '  <div class="row">' +
        '    <div class="col-md-4 text-right">' +
        '      <b>{{ parameter.name }}</b>' +
        '      <span class="text-muted label label-warning">{{ parameter.type }}</span>' +
        '    </div>' +
        '    <div class="col-md-8">' +
        '      <div class="text-muted small">{{ parameter.description }}</div>' +<commit_msg>Fix not closed <div>.<commit_after>angular.module 'param', []
angular.module('param').directive 'param', [
  '$filter'
  ($filter) ->

    link = (scope, element, attrs, ctrl) ->
      scope.unique_id = Math.random()
    return {
      link: link
      restrict: 'A'
      require: 'ngModel'
      scope:
        parameter: '=ngModel'
      template: '' +
        '<div class="col-md-4 text-right" ng-if=\'parameter.type != "array"\'>' +
        '  <b>{{ parameter.name }}</b>' +
        '  <span class="text-muted label label-warning">{{ parameter.type }}</span>' +
        '</div>' +
        '<div class="col-md-8" ng-if=\'parameter.type != "array"\'>' +
        '  <div ng-switch="parameter.type">' +
        '    <input ng-switch-when="string" type="text" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '    <input ng-switch-when="integer" type="number" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '    <div ng-switch-when="boolean" class="onoffswitch">' +
        '      <input class="onoffswitch-checkbox" ng-model="parameter.value" type="checkbox" id="{{ unique_id }}-on-off-switch">' +
        '      <label class="onoffswitch-label" for="{{ unique_id }}-on-off-switch"></label>' +
        '      <span class="onoffswitch-inner"></span>' +
        '      <span class="onoffswitch-switch"></span>' +
        '    </div>' +
        '    <div ng-switch-when="image" image=true" ng-model="parameter.value"></div>' +
        '    <input ng-switch-default type="text" class="form-control" ng-model="parameter.value" placeholder=\'{{ parameter.required ? "required" : "optional"}}\'>' +
        '  </div>' +
        '  <div class="text-muted small">{{ parameter.description }}</div>' +
        '</div>' +
        '<div class="col-md-12" ng-if=\'parameter.type == "array"\'>' +
        '  <div class="row">' +
        '    <div class="col-md-4 text-right">' +
        '      <b>{{ parameter.name }}</b>' +
        '      <span class="text-muted label label-warning">{{ parameter.type }}</span>' +
        '    </div>' +
        '    <div class="col-md-8">' +
        '      <div class="text-muted small">{{ parameter.description }}</div>' +
{'fraction_non_alphanumeric': 0.2192676547515257, 'fraction_numerical': 0.0026155187445510027, 'mean_word_length': 2.58515625, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 81, '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': '5625363', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1468, 'n_words': 261}