<commit_before>angular.module('exploreModule')
.controller('exploreCtrl', function($scope, queryAPI, $rootScope) {

  queryAPI.getTags()
  .then(function(data) {
    if(data.status.code === 100)
    {
      var tags = data.result;
      $scope.categories = [];

      for (var tag in tags) {
        obj = tags[tag];
        if (obj.parent === "0") {
          $scope.categories.push(obj);
        };
      };

      $scope.categories = queryAPI.cleanCategory($scope.categories);
      queryAPI.setCategoryColors();

    } else {
      console.log('Error retrieving Tags: ' + data.status.code);
    }
  }, function (status) {<commit_msg>added loading indication to the Explore page<commit_after>angular.module('exploreModule')
.controller('exploreCtrl', function($scope, queryAPI, $rootScope, $ionicLoading) {

  $scope.pageLoading = {
    status: true,
    loading: $ionicLoading.show({
      template: '<div class="spinner-animation"></div>',
      noBackdrop: false
    })
  }

  queryAPI.getTags()
  .then(function(data) {
    if(data.status.code === 100) {
      $scope.pageLoading.status = false;
      $ionicLoading.hide();

      var tags = data.result;
      $scope.categories = [];

      for (var tag in tags) {
        obj = tags[tag];
        if (obj.parent === "0") {
          $scope.categories.push(obj);
        };
      };

      $scope.categories = queryAPI.cleanCategory($scope.categories);
      queryAPI.setCategoryColors();

    } else {
      $scope.pageLoading.status = false;
      $ionicLoading.hide();
      console.log('Error retrieving Tags: ' + data.status.code);
    }
  }, function (status) {
    $scope.pageLoading.status = false;
    $ionicLoading.hide();
{'fraction_non_alphanumeric': 0.15621301775147928, 'fraction_numerical': 0.004733727810650888, 'mean_word_length': 2.7328918322295808, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '340934', 'n_tokens_mistral': 534, 'n_tokens_neox': 513, 'n_words': 94}