<commit_before>(function(app) {

app.controller('TransportationListController', ['$scope', '$http', function($scope, $http) {

  $scope.provinces = undefined;
  $scope.transportations = undefined;
  $scope.loading = 0;

  $scope.init = function() {
  }

  $scope.$watch('panel', function(value, old) {
    if (value !== 'transportation-list') return;
    if ($scope.transportations === undefined) {
      $scope.reload();
    }
    $scope.map.editable = false;
  });

  $scope.reload = function() {
    $scope.loading++;
    var url = jQuery('body').data('url-transportation-list');
    $http.get(url)
      .success(function(data) {<commit_msg>Always reload transportation list when the panel is opened<commit_after>(function(app) {

app.controller('TransportationListController', ['$scope', '$http', function($scope, $http) {

  $scope.provinces = undefined;
  $scope.transportations = undefined;
  $scope.loading = 0;

  $scope.init = function() {
  }

  $scope.$watch('panel', function(value, old) {
    if (value !== 'transportation-list') return;
    $scope.reload();
    $scope.map.editable = false;
  });

  $scope.reload = function() {
    $scope.loading++;
    var url = jQuery('body').data('url-transportation-list');
    $http.get(url)
      .success(function(data) {
{'fraction_non_alphanumeric': 0.1821735731039875, 'fraction_numerical': 0.001563721657544957, 'mean_word_length': 4.0, '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': '5520981', 'n_tokens_mistral': 412, 'n_tokens_neox': 399, 'n_words': 75}