<commit_before>var vumigo = require('vumigo_v02');
var AppTester = vumigo.AppTester;
var LocationApp = require('../lib/app').LocationApp;
var location = require('../../lib');
var GoogleMaps = location.GoogleMaps;

describe("app", function() {
    describe("LocationApp", function() {
        var app;
        var tester;
        var locations;

        beforeEach(function(){
            app = new LocationApp();
            tester = new AppTester(app);
            locations = [];

            locations.push({
                request:"Example Street",
                response_data: {
                    results:
                    [{
                        formatted_address:"Example Street, Suburb",
                        geometry: {
                            location:{
                                latitude: '3.1415926535',
                                longitude: '2.7182818284'
                            }
                        }
                    },
                    {
                        formatted_address:"Another Street, Suburb",
                        geometry: {
                            location: {
                                latitude: '2.7182818284',
                                longitude: '3.1415926535'
                            }
                        }
                    }],
                    status:"OK"
                }
            });

            locations.push({
                request:"Single Street",
                response_data: {
                    results:
                    [{
                        formatted_address:"Single Street, Suburb",
                        geometry: {
                            location:{
                                latitude: '1.4142135623',
                                longitude: '1.6180339887'
                            }
                        }
                    }],
                    status:"OK"
                }
            });

            tester
                .setup.config.app({
                    name: 'test_app'
                })
                .setup(function(api) {
                    locations.forEach(function(location) {
                        api.http.fixtures.add(GoogleMaps.fixture(location));
                    });
                });
        });

        describe("When the user starts a session", function(){
            it("should ask the user for a location", function() {
                return tester
                    .start()
                    .check.interaction({
                        state: 'states:start',<commit_msg>Minor formatting fix for address fixtures.<commit_after>var vumigo = require('vumigo_v02');
var AppTester = vumigo.AppTester;
var LocationApp = require('../lib/app').LocationApp;
var location = require('../../lib');
var GoogleMaps = location.GoogleMaps;

describe("app", function() {
    describe("LocationApp", function() {
        var app;
        var tester;
        var locations;

        beforeEach(function(){
            app = new LocationApp();
            tester = new AppTester(app);
            locations = [];

            locations.push({
                request:"Example Street",
                response_data: {
                    results:
                    [{
                        formatted_address: "Example Street, Suburb",
                        geometry: {
                            location:{
                                latitude: '3.1415926535',
                                longitude: '2.7182818284'
                            }
                        }
                    },
                    {
                        formatted_address: "Another Street, Suburb",
                        geometry: {
                            location: {
                                latitude: '2.7182818284',
                                longitude: '3.1415926535'
                            }
                        }
                    }],
                    status:"OK"
                }
            });

            locations.push({
                request:"Single Street",
                response_data: {
                    results:
                    [{
                        formatted_address: "Single Street, Suburb",
                        geometry: {
                            location:{
                                latitude: '1.4142135623',
                                longitude: '1.6180339887'
                            }
                        }
                    }],
                    status:"OK"
                }
            });

            tester
                .setup.config.app({
                    name: 'test_app'
                })
                .setup(function(api) {
                    locations.forEach(function(location) {
                        api.http.fixtures.add(GoogleMaps.fixture(location));
                    });
                });
        });

        describe("When the user starts a session", function(){
            it("should ask the user for a location", function() {
                return tester
                    .start()
                    .check.interaction({
                        state: 'states:start',
{'fraction_non_alphanumeric': 0.09284073506891272, 'fraction_numerical': 0.026033690658499236, 'mean_word_length': 0.8104643104643104, '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': '5363238', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1079, 'n_words': 207}