<commit_before>function ModuleInjectorCtrl($scope, ModuleService, $routeParams, $compile, $http, $timeout) {
  $scope.module = undefined;
  $scope.moduleName = $routeParams.moduleName;

  // Load the current module
  var loadModule = function() {
    ModuleService.module($scope.moduleName).then(function(module) {
      $scope.module = module;
      $scope.module.show = true;
    });
  };
  loadModule();

  // Poll the current module for its status
  var pollModule = function() {
    var updateRate = 1, poll = $timeout(function() {
      loadModule();
      if ($scope.module) {
        updateRate = $scope.module.updateRate;
      }
      poll = $timeout(poll, 1000*updateRate);
    }, 1000*updateRate);

    $scope.$on('$routeChangeSuccess', function () {
      $timeout.cancel(poll);
    });
  };
  pollModule();

  // Load the angular-like html to be injected
  $http.get('/api/modules/' + $scope.moduleName + '/public/partial.html').then(function(result) {
    $('#inject').html($compile(result.data)($scope));
  });

  // Load the angular-like html to be injected
  $http.get('/api/modules/' + moduleName + '/public/independant.html').then(function(result) {
    $('#inject-independant').html($compile(result.data)($scope));
  });
}
<commit_msg>Fix small merge bug<commit_after>function ModuleInjectorCtrl($scope, ModuleService, $routeParams, $compile, $http, $timeout) {
  $scope.module = undefined;
  $scope.moduleName = $routeParams.moduleName;

  // Load the current module
  var loadModule = function() {
    ModuleService.module($scope.moduleName).then(function(module) {
      $scope.module = module;
      $scope.module.show = true;
    });
  };
  loadModule();

  // Poll the current module for its status
  var pollModule = function() {
    var updateRate = 1, poll = $timeout(function() {
      loadModule();
      if ($scope.module) {
        updateRate = $scope.module.updateRate;
      }
      poll = $timeout(poll, 1000*updateRate);
    }, 1000*updateRate);

    $scope.$on('$routeChangeSuccess', function () {
      $timeout.cancel(poll);
    });
  };
  pollModule();

  // Load the angular-like html to be injected
  $http.get('/api/modules/' + $scope.moduleName + '/public/partial.html').then(function(result) {
    $('#inject').html($compile(result.data)($scope));
  });

  // Load the angular-like html to be injected
  $http.get('/api/modules/' + $scope.moduleName + '/public/independant.html').then(function(result) {
    $('#inject-independant').html($compile(result.data)($scope));
  });
}

{'fraction_non_alphanumeric': 0.1710891089108911, 'fraction_numerical': 0.007128712871287129, 'mean_word_length': 3.535008976660682, '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': '5211797', 'n_tokens_mistral': 789, 'n_tokens_neox': 766, 'n_words': 151}