<commit_before>(function(angular, $, _, TL) {
  'use strict';
  var deps = _.union(window.dependencies || [], [
    'ngAria',
    'ngAnimate',
    'ngMessages',
    'ui.bootstrap',
    'restangular',
    'irida.session',
    'irida.notifications',
    'irida.cart'
  ]);

  function UIGalaxyController() {
    var vm = this;

    //A page is in Galaxy if it's in an iframe and IRIDA was accessed from Galaxy
    vm.inGalaxy = inIframe() && TL.galaxyCallback;

    function inIframe() {
      try {
        return window.self !== window.top;
      } catch (e) {
        return true;
      }
    }
  }

  angular.module('irida', deps)
    // This configures the base url globally for all restangular calls.
    .config(function(RestangularProvider) {
      RestangularProvider.setBaseUrl(TL.BASE_URL);
    })
    .config(function($httpProvider) {
      $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

      // Make sure that all ajax form data is sent in the correct format.
      $httpProvider.defaults.transformRequest = function(data) {
        if (data === undefined) {
          return data;
        }
        return $.param(data);
      };
    })
    .run(function(paginationConfig) {
      paginationConfig.firstText = TL.lang.page.first;<commit_msg>Removed restangular base configuration<commit_after>(function(angular, $, _, TL) {
  'use strict';
  var deps = _.union(window.dependencies || [], [
    'ngAria',
    'ngAnimate',
    'ngMessages',
    'ui.bootstrap',
    'restangular',
    'irida.session',
    'irida.notifications',
    'irida.cart'
  ]);

  function UIGalaxyController() {
    var vm = this;

    //A page is in Galaxy if it's in an iframe and IRIDA was accessed from Galaxy
    vm.inGalaxy = inIframe() && TL.galaxyCallback;

    function inIframe() {
      try {
        return window.self !== window.top;
      } catch (e) {
        return true;
      }
    }
  }

  angular.module('irida', deps)
    .config(function($httpProvider) {
      $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

      // Make sure that all ajax form data is sent in the correct format.
      $httpProvider.defaults.transformRequest = function(data) {
        if (data === undefined) {
          return data;
        }
        return $.param(data);
      };
    })
    .run(function(paginationConfig) {
      paginationConfig.firstText = TL.lang.page.first;
{'fraction_non_alphanumeric': 0.13270722743977134, 'fraction_numerical': 0.0, 'mean_word_length': 2.566229985443959, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6870087', 'n_tokens_mistral': 770, 'n_tokens_neox': 745, 'n_words': 172}