<commit_before>import tornado.web
import os
import pytest
import brainspell
import models
import search
import selenium
from selenium import webdriver

application = brainspell.make_app()


"""Configuring SauceLabs for Selenium Testing"""
capabilities = {}
username = os.environ["SAUCE_USERNAME"]
access_key = os.environ["SAUCE_ACCESS_KEY"]
capabilities["tunnel-identifier"] = os.environ["TRAVIS_JOB_NUMBER"]
hub_url = "%s:%s@localhost:4445" % (username, access_key)
capabilities["build"] = os.environ["TRAVIS_BUILD_NUMBER"]
capabilities["tags"] = [os.environ["TRAVIS_PYTHON_VERSION"], "CI"]
driver = webdriver.Remote(desired_capabilities=capabilities, command_executor="http://%s/wd/hub" % hub_url)<commit_msg>Added browser specification for Chrome<commit_after>import tornado.web
import os
import pytest
import brainspell
import models
import search
import selenium
from selenium import webdriver

application = brainspell.make_app()


"""Configuring SauceLabs for Selenium Testing"""
capabilities = {}
profile = webdriver.Chrome()
username = os.environ["SAUCE_USERNAME"]
access_key = os.environ["SAUCE_ACCESS_KEY"]
capabilities["tunnel-identifier"] = os.environ["TRAVIS_JOB_NUMBER"]
hub_url = "%s:%s@localhost:4445" % (username, access_key)
capabilities["build"] = os.environ["TRAVIS_BUILD_NUMBER"]
capabilities["tags"] = [os.environ["TRAVIS_PYTHON_VERSION"], "CI"]
driver = webdriver.Remote(browser_profile=profile,desired_capabilities=capabilities, command_executor="http://%s/wd/hub" % hub_url)
{'fraction_non_alphanumeric': 0.128, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 8.81045751633987, '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': '5182916', 'n_tokens_mistral': 491, 'n_tokens_neox': 482, 'n_words': 95}