<commit_before>angular.module('dashboard.directives.ModelField', [
  'dashboard.directives.ModelFieldImage',
  'dashboard.directives.ModelFieldVideo',
  'dashboard.directives.ModelFieldFile',
  'dashboard.directives.ModelFieldReference',
  'dashboard.directives.ModelFieldReferenceSort',
  'dashboard.directives.ModelFieldList',
  'dashboard.directives.ModelFieldWYSIWYG',
  'dashboard.directives.ModelFieldCanvas',
  'dashboard.directives.ModelFieldLocation',
  'dashboard.directives.ModelFieldPointsOfInterest',
  'dashboard.directive.DateTimePicker',
  'ngCookies',
  'ngSlider',
  'ngSignaturePad'
])

.directive('modelFieldView', function($compile) {
  function getTemplate(type) {
    var template = '';
    switch(type) {
      default:
        template = '<b>{{ field.label }}</b>: {{ data[field.name] }}';
    }
    return template;
  }
  return {
    restrict: 'E',
    scope: {
      key: '=key',
      model: '=model',
      data: '=ngModel'
    },
    link: function(scope, element, attrs) {
        element.html(getTemplate(scope.field.type)).show();
        $compile(element.contents())(scope);
    }
  };<commit_msg>Included cwill747.phonenumber to ModelField module<commit_after>angular.module('dashboard.directives.ModelField', [
  'dashboard.directives.ModelFieldImage',
  'dashboard.directives.ModelFieldVideo',
  'dashboard.directives.ModelFieldFile',
  'dashboard.directives.ModelFieldReference',
  'dashboard.directives.ModelFieldReferenceSort',
  'dashboard.directives.ModelFieldList',
  'dashboard.directives.ModelFieldWYSIWYG',
  'dashboard.directives.ModelFieldCanvas',
  'dashboard.directives.ModelFieldLocation',
  'dashboard.directives.ModelFieldPointsOfInterest',
  'dashboard.directive.DateTimePicker',
  'ngCookies',
  'ngSlider',
  'ngSignaturePad',
  'cwill747.phonenumber'
])

.directive('modelFieldView', function($compile) {
  function getTemplate(type) {
    var template = '';
    switch(type) {
      default:
        template = '<b>{{ field.label }}</b>: {{ data[field.name] }}';
    }
    return template;
  }
  return {
    restrict: 'E',
    scope: {
      key: '=key',
      model: '=model',
      data: '=ngModel'
    },
    link: function(scope, element, attrs) {
        element.html(getTemplate(scope.field.type)).show();
        $compile(element.contents())(scope);
    }
  };
{'fraction_non_alphanumeric': 0.15083798882681565, 'fraction_numerical': 0.002578427159432746, 'mean_word_length': 4.219730941704036, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1555689', 'n_tokens_mistral': 732, 'n_tokens_neox': 753, 'n_words': 97}