<commit_before>module Marantz
  extend self
  VOLUME_THRESHOLD = 80.0
  COMMANDS = {
    volume: 'PutMasterVolumeSet/-%s',
    source: 'PutZone_InputFunction/%s',
    power: 'PutZone_OnOff/%s',
    mute: 'PutVolumeMute/%s'
  }
  PATHS = {
    main_zone: '/MainZone/index.put.asp',
    status: '/goform/formMainZone_MainZoneXml.xml'
  }
  SOURCES = {
    satellite: 'SAT/CBL',
    iradio: 'IRADIO',
    hdradio: 'HDRADIO',
    internet: 'NET/USB',
    cd: 'CD',
    tv: 'TV',
    sat: 'SAT',
    dvd: 'DVD',
    aux: 'AUX',
    game: 'GAME',
    blueray: 'BD',
    spotify: 'SPOTIFY'
  }
  SUPPORTED_MODELS = {
    1 => 'SR7005',
    9 => 'SR5008'
  }

  def configure(&block)
    yield @config ||= Configuration.new
  end

  def config
    @config
  end

  class Configuration
    attr_accessor :host, :max_volume
  end<commit_msg>Support new Model<commit_after>module Marantz
  extend self
  VOLUME_THRESHOLD = 80.0
  COMMANDS = {
    volume: 'PutMasterVolumeSet/-%s',
    source: 'PutZone_InputFunction/%s',
    power: 'PutZone_OnOff/%s',
    mute: 'PutVolumeMute/%s'
  }
  PATHS = {
    main_zone: '/MainZone/index.put.asp',
    status: '/goform/formMainZone_MainZoneXml.xml'
  }
  SOURCES = {
    satellite: 'SAT/CBL',
    iradio: 'IRADIO',
    hdradio: 'HDRADIO',
    internet: 'NET/USB',
    cd: 'CD',
    tv: 'TV',
    sat: 'SAT',
    dvd: 'DVD',
    aux: 'AUX',
    game: 'GAME',
    blueray: 'BD',
    spotify: 'SPOTIFY',
    mpd: 'MPLAY'
  }
  SUPPORTED_MODELS = {
    1 => 'SR7005',
    7 => 'NR1506',
    9 => 'SR5008'
  }

  def configure(&block)
    yield @config ||= Configuration.new
  end

  def config
    @config
  end

  class Configuration
    attr_accessor :host, :max_volume
  end
{'fraction_non_alphanumeric': 0.15208455666470932, 'fraction_numerical': 0.0182031708749266, 'mean_word_length': 2.6724137931034484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1837651', 'n_tokens_mistral': 721, 'n_tokens_neox': 686, 'n_words': 137}