<commit_before>﻿(function () {
  'use strict';

  angular
    .module('vtPortal')
    .controller('ApiCtrl', ApiCtrl);

  ApiCtrl.$inject = ['$routeParams', '$http', '$httpParamSerializer', 'APIService', 'AlertService'];

  function ApiCtrl($routeParams, $http, $httpParamSerializer, APIService, AlertService) {
    var vm = this;

    vm.documents = {};
    vm.applications = {};
    vm.selectedApplicationId = "";
    vm.apiId = "";

    vm.addSubscription = addSubscription;

    APIService.call('apisApiIdGet', [$routeParams.apiName + '/' + $routeParams.apiVersion + '/' + $routeParams.apiProvider])
      .then(aPIsIdGetResponse)
      .then(getDocumentsForApi);

    APIService.call('applicationsGet', [0.0, 0.0])
      .then(applicationsGetResponse);

    function applicationsGetResponse(response) {
      if (response.status === 200) {
        vm.applications = response.data.list;
      } else {
        AlertService.error("Problem retrieving application list");
      }
    }<commit_msg>Missing scope inject, misc cleanup.<commit_after>﻿(function () {
  'use strict';

  angular
    .module('vtPortal')
    .controller('ApiCtrl', ApiCtrl);

  ApiCtrl.$inject = ['$scope', '$routeParams', '$http', '$httpParamSerializer', 'APIService', 'AlertService'];

  function ApiCtrl($routeParams, $http, $httpParamSerializer, APIService, AlertService) {
    var vm = this;

    vm.documents = {};
    vm.applications = {};

    vm.addSubscription = addSubscription;

    APIService.call('apisApiIdGet', [$routeParams.apiName + '/' + $routeParams.apiVersion + '/' + $routeParams.apiProvider])
      .then(aPIsIdGetResponse)
      .then(getDocumentsForApi);

    APIService.call('applicationsGet', [0.0, 0.0])
      .then(applicationsGetResponse);

    function applicationsGetResponse(response) {
      if (response.status === 200) {
        vm.applications = response.data.list;
      } else {
        AlertService.error("Problem retrieving application list");
      }
    }
{'fraction_non_alphanumeric': 0.1519756838905775, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 3.6252927400468384, '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': '1769323', 'n_tokens_mistral': 621, 'n_tokens_neox': 588, 'n_words': 103}