<commit_before>module Gares
  # Represents a station on gares-sncf.com
  class Base < Hashie::Mash

    OPEN_DATA_SNCF = "https://ressources.data.sncf.com/api/records/1.0/search?dataset=referentiel-gares-voyageurs&q=%s"

    GARES_SNCF = "http://www.gares-sncf.com/fr/train-times/%s/%s/gl"

    # Whether this station has a "borne" (yellow self-service ticket machine)
    # @return [Boolean]
    def has_borne?
      has_bls == "t"
    end

    # @deprecated
    def slug
      warn "[DEPRECATION] favor the 'sncf_id' method instead of 'slug'."
      sncf_id.downcase
    end

    # @deprecated
    def lat
      warn "[DEPRECATION] favor the 'latitude' method instead of 'lat'."
      latitude
    end

    # @deprecated
    def long
      warn "[DEPRECATION] favor the 'longitude' method instead of 'long'."
      longitude
    end

    # List of the next departing trains from this station.
    # @param refresh [Boolean] whether to fetch fresh data from gares-sncf.com or not.
    # @return [Array<Train>]
    def departures(refresh = false)
      if tvs<commit_msg>Renamed field for sncf self service machine<commit_after>module Gares
  # Represents a station on gares-sncf.com
  class Base < Hashie::Mash

    OPEN_DATA_SNCF = "https://ressources.data.sncf.com/api/records/1.0/search?dataset=referentiel-gares-voyageurs&q=%s"

    GARES_SNCF = "http://www.gares-sncf.com/fr/train-times/%s/%s/gl"

    # Whether this station has a "borne" (yellow self-service ticket machine)
    # @return [Boolean]
    def has_borne?
      sncf_self_service_machine == "t"
    end

    # @deprecated
    def slug
      warn "[DEPRECATION] favor the 'sncf_id' method instead of 'slug'."
      sncf_id.downcase
    end

    # @deprecated
    def lat
      warn "[DEPRECATION] favor the 'latitude' method instead of 'lat'."
      latitude
    end

    # @deprecated
    def long
      warn "[DEPRECATION] favor the 'longitude' method instead of 'long'."
      longitude
    end

    # List of the next departing trains from this station.
    # @param refresh [Boolean] whether to fetch fresh data from gares-sncf.com or not.
    # @return [Array<Train>]
    def departures(refresh = false)
      if tvs
{'fraction_non_alphanumeric': 0.10410958904109589, 'fraction_numerical': 0.0018264840182648401, 'mean_word_length': 2.823734729493892, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2923882', 'n_tokens_mistral': 742, 'n_tokens_neox': 716, 'n_words': 207}