<commit_before>﻿// Copyright © Naked Objects Group Ltd ( http://www.nakedobjects.net). 
// All Rights Reserved. This code released under the terms of the 
// Microsoft Public License (MS-PL) ( http://opensource.org/licenses/ms-pl.html) 

using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NakedObjects.DatabaseHelpers;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;

namespace NakedObjects.Web.UnitTests.Selenium {
    [TestClass]
    public abstract class AWWebTest {
        #region overhead

        protected const string url = "http://mvc.nakedobjects.net:1081/unittestajax";
        protected const string server = @"Saturn\SqlExpress";
        protected const string database = "AdventureWorks";
        protected const string backup = "AdventureWorks";

        //protected const string url = "http://localhost:53103/";
        //protected const string server = @".\SQLEXPRESS";
        //protected const string database = "AdventureWorks";
        //protected const string backup = "AdventureWorksInitialState";


        protected IWebDriver br;

        [ClassInitialize]
        public static void InitialiseClass(TestContext context) {
            //DatabaseUtils.RestoreDatabase(database, backup, server);
            KillAllProcesses("iexplore");
            KillAllProcesses("firefox");
        }

        private static void KillAllProcesses(string name) {
            try {<commit_msg>fix tests<commit_after>﻿// Copyright © Naked Objects Group Ltd ( http://www.nakedobjects.net). 
// All Rights Reserved. This code released under the terms of the 
// Microsoft Public License (MS-PL) ( http://opensource.org/licenses/ms-pl.html) 

using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NakedObjects.DatabaseHelpers;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;

namespace NakedObjects.Web.UnitTests.Selenium {
    [TestClass]
    public abstract class AWWebTest {
        #region overhead

        protected const string url = "http://mvc.nakedobjects.net:1081/unittestajax";
        protected const string server = @"Saturn\SqlExpress";
        protected const string database = "AdventureWorks";
        protected const string backup = "AdventureWorks";

        //protected const string url = "http://localhost:53103/";
        //protected const string server = @".\SQLEXPRESS";
        //protected const string database = "AdventureWorks";
        //protected const string backup = "AdventureWorksInitialState";


        protected IWebDriver br;

        [ClassInitialize]
        public static void InitialiseClass(TestContext context) {
            DatabaseUtils.RestoreDatabase(database, backup, server);
            KillAllProcesses("iexplore");
            KillAllProcesses("firefox");
        }

        private static void KillAllProcesses(string name) {
            try {
{'fraction_non_alphanumeric': 0.09634551495016612, 'fraction_numerical': 0.005980066445182724, 'mean_word_length': 3.170360110803324, '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': '2487289', 'n_tokens_mistral': 829, 'n_tokens_neox': 786, 'n_words': 219}