<commit_before>angular.module("static-include", []).directive('staticInclude', function($templateRequest, $compile) {
  return {
    restrict: 'A',
    transclude: true,
    replace: true,
    scope: false,
    link: function($scope, element, attrs, ctrl, transclude) {
      var templatePath = attrs.staticInclude;

      try{
        templatePath = $scope.$eval(templatePath);
      }catch(err){
        throw new Error(attrs.staticInclude+' is not a valid object');
      }

      $templateRequest(templatePath)
        .then(function(response) {
          var contents = element.html(response).contents();
          $compile(contents)($scope.$new(false, $scope.$parent));
        });
    }
  };
});<commit_msg>Removing unnecessary eval<commit_after>angular.module("static-include", []).directive('staticInclude', function($templateRequest, $compile) {
  return {
    restrict: 'A',
    transclude: true,
    replace: true,
    scope: false,
    link: function($scope, element, attrs, ctrl, transclude) {
      var templatePath = attrs.staticInclude;

      $templateRequest(templatePath)
        .then(function(response) {
          var contents = element.html(response).contents();
          $compile(contents)($scope.$new(false, $scope.$parent));
        });
    }
  };
});
{'fraction_non_alphanumeric': 0.15011727912431588, 'fraction_numerical': 0.0, 'mean_word_length': 3.23841059602649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5652552', 'n_tokens_mistral': 359, 'n_tokens_neox': 362, 'n_words': 72}