<commit_before>angular.module('Ventolone.routing', [
  'ngRouting',
  'Ventolone.resources.services',
  'Ventolone.configuration'
])
  .config(function($locationProvider) {
    $locationProvider.html5Mode(true);
  })
  .config(function(routingProvider, configuration) {
    var resolve = {
      anemometer: function(anemometerService, $route, $rootScope, $location, $q) {
        var anemometerId = $route.current.pathParams.anemometerId
        return $q.when(anemometerDeferred = anemometerService.findById(anemometerId)).then(function(anemometer) {
          $rootScope.anemometer = anemometer
          return anemometer
        }, function() {
          $location.path($rootScope.h.anemometersRoute())<commit_msg>fixing new controller<commit_after>angular.module('Ventolone.routing', [
  'ngRouting',
  'Ventolone.resources.services',
  'Ventolone.configuration'
])
  .config(function($locationProvider) {
    $locationProvider.html5Mode(true);
  })
  .config(function(routingProvider, configuration) {
    var resolve = {
      anemometer: function(anemometerService, $route, $rootScope, $location, $q) {
        var anemometerId = $route.current.pathParams.anemometerId
        
        if ("NewAnemometerCtrl" == $route.current.controller) return {}
        
        return anemometerService.findById(anemometerId).then(function(anemometer) {
          $rootScope.anemometer = anemometer
          return anemometer
        }, function() {
          $location.path($rootScope.h.anemometersRoute())
{'fraction_non_alphanumeric': 0.1248339973439575, 'fraction_numerical': 0.0013280212483399733, 'mean_word_length': 3.8301282051282053, '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': '1731092', 'n_tokens_mistral': 459, 'n_tokens_neox': 462, 'n_words': 60}