<commit_before>require 'nokogiri'
require 'open-uri'

module BusTracker

  BASE_URI = 'http://mybustracker.co.uk/'

  def self.service(number)
    service = BusTracker::Service.new(:number => number)

    document  = Nokogiri::HTML(open("#{BASE_URI}getServicePoints.php?serviceMnemo=#{number}"))
    bus_stops = document.xpath('//map/markers/busstop')
    bus_stops.each do |bus_stop|
      name             = bus_stop.xpath('nom')[0].content
      longitude        = bus_stop.xpath('x')[0].content
      latitude         = bus_stop.xpath('y')[0].content<commit_msg>Helps if I put lat/long the right way around..<commit_after>require 'nokogiri'
require 'open-uri'

require 'bus_tracker/service'
require 'bus_tracker/bus_stop'

module BusTracker

  BASE_URI = 'http://mybustracker.co.uk/'

  def self.service(number)
    service = BusTracker::Service.new(:number => number)

    document  = Nokogiri::HTML(open("#{BASE_URI}getServicePoints.php?serviceMnemo=#{number}"))
    bus_stops = document.xpath('//map/markers/busstop')
    bus_stops.each do |bus_stop|
      name             = bus_stop.xpath('nom')[0].content
      latitude         = bus_stop.xpath('x')[0].content
      longitude        = bus_stop.xpath('y')[0].content
{'fraction_non_alphanumeric': 0.1491442542787286, 'fraction_numerical': 0.004889975550122249, 'mean_word_length': 3.599250936329588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1156814', 'n_tokens_mistral': 432, 'n_tokens_neox': 423, 'n_words': 63}