<commit_before># # Test OpenTripPlanner
import requests
import urllib

from datetime import datetime
from test_base import TestBase


class TestClass(TestBase):

    def __init__(self, *args, **kwargs):
        super(TestClass, self).__init__(*args, **kwargs)

        if not self.options.url:
            self.options.url = 'http://localhost:8080/otp-rest-servlet/ws/plan'

    def plan_trip(self, test):
        url = self.build_url(test)
        response = requests.get(url)
        if response:
            return self.parse_result(test, response.json())
        else:
            return None

    def build_url(self, test):
        time = datetime.strptime(test['time'], self.DATE_TIME_FORMAT)
        coords = lambda c: '%f,%f' % (c['latitude'], c['longitude'])

        params = {
            'date': time.strftime('%Y-%m-%d'),
            'time': time.strftime('%H:%M:%S'),
            'arriveBy': (test['timeType'] == 'A'),
            'optimize': 'QUICK',
            'mode': 'WALK,TRANSIT',
            'walkSpeed': 1.389,<commit_msg>Add debug URL display back in<commit_after># # Test OpenTripPlanner
import requests
import urllib

from datetime import datetime
from test_base import TestBase


class TestClass(TestBase):

    def __init__(self, *args, **kwargs):
        super(TestClass, self).__init__(*args, **kwargs)

        if not self.options.url:
            self.options.url = 'http://localhost:8080/otp-rest-servlet/ws/plan'

    def plan_trip(self, test):
        url = self.build_url(test)
        self.logger.debug("calling url: %s" % url)
        response = requests.get(url)
        if response:
            return self.parse_result(test, response.json())
        else:
            return None

    def build_url(self, test):
        time = datetime.strptime(test['time'], self.DATE_TIME_FORMAT)
        coords = lambda c: '%f,%f' % (c['latitude'], c['longitude'])

        params = {
            'date': time.strftime('%Y-%m-%d'),
            'time': time.strftime('%H:%M:%S'),
            'arriveBy': (test['timeType'] == 'A'),
            'optimize': 'QUICK',
            'mode': 'WALK,TRANSIT',
            'walkSpeed': 1.389,
{'fraction_non_alphanumeric': 0.15159944367176634, 'fraction_numerical': 0.007417709782104775, 'mean_word_length': 2.4528, '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': '1727158', 'n_tokens_mistral': 702, 'n_tokens_neox': 669, 'n_words': 148}