<commit_before>/*global angular */
(function() {
  'use strict';
  var QUERY_URL = "https://address.digitalservices.surreyi.gov.uk/addresses?postcode=";
  var AUTH_TOKEN = "<KEY>";

  var addressesApp;

  addressesApp = angular.module('addressesApp', []);

  addressesApp.config(function($httpProvider) {
    //Enable cross domain calls
    $httpProvider.defaults.useXDomain = true;
  });
  
  addressesApp.controller("AddressesController", [
    '$scope', '$http', function($scope, $http) {
      $scope.addresses = {};
      $scope.addresses.data = [];
      $scope.addresses.isShowMessage = false;

      $scope.addressSearch = function(item, $event) {
        var responsePromise;
        var config = {
          headers: {
           'Authorization': 'Bearer ' + AUTH_TOKEN
          },
        }

        responsePromise = $http.get(QUERY_URL + $scope.addresses.search, config);
        responsePromise.then(function(response) {
          $scope.addresses.data = response.data;<commit_msg>updated addresses.js<commit_after>/*global angular */
(function() {
  'use strict';
  var QUERY_URL = "https://address.digitalservices.surreyi.gov.uk/addresses?postcode=";
  var AUTH_TOKEN = "<PASSWORD>";

  var addressesApp;

  addressesApp = angular.module('addressesApp', []);

  addressesApp.config(function($httpProvider) {
    //Enable cross domain calls
    $httpProvider.defaults.useXDomain = true;
  });
  
  addressesApp.controller("AddressesController", [
    '$scope', '$http', function($scope, $http) {
      $scope.addresses = {};
      $scope.addresses.data = [];
      $scope.addresses.isShowMessage = false;

      $scope.addressSearch = function(item, $event) {
        var responsePromise;
        var config = {
          headers: {
           'Authorization': 'Bearer ' + AUTH_TOKEN
          },
        }

        responsePromise = $http.get(QUERY_URL + $scope.addresses.search, config);
        responsePromise.then(function(response) {
          $scope.addresses.data = response.data;
{'fraction_non_alphanumeric': 0.14321357285429143, 'fraction_numerical': 0.0, 'mean_word_length': 3.03420523138833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7342147', 'n_tokens_mistral': 599, 'n_tokens_neox': 597, 'n_words': 98}