<commit_before>module VagrantCloud

  class Version

    attr_accessor :box
    attr_accessor :number
    attr_accessor :data

    def initialize(box, number, data = nil)
      @box = box
      @number = number
      @data = data
    end

    def version
      data['version']
    end

    def description
      data['description_markdown']
    end

    def providers
      data['providers'].map { |data| Provider.new(self, data['name'], data) }
    end

    def data
      @data ||= account.request('get', "/box/#{account.username}/#{box.name}/version/#{number}")
    end

    def update(description)
      version = {:description => description}
      @data = account.request('put', "/box/#{account.username}/#{box.name}/version/#{number}", {:version => version})
    end

    def delete
      account.request('delete', "/box/#{account.username}/#{box.name}/version/#{number}")
    end
<commit_msg>Add version status getter<commit_after>module VagrantCloud

  class Version

    attr_accessor :box
    attr_accessor :number
    attr_accessor :data

    def initialize(box, number, data = nil)
      @box = box
      @number = number
      @data = data
    end

    def version
      data['version']
    end

    def description
      data['description_markdown']
    end

    def status
      data['status']
    end

    def providers
      data['providers'].map { |data| Provider.new(self, data['name'], data) }
    end

    def data
      @data ||= account.request('get', "/box/#{account.username}/#{box.name}/version/#{number}")
    end

    def update(description)
      version = {:description => description}
      @data = account.request('put', "/box/#{account.username}/#{box.name}/version/#{number}", {:version => version})
    end

    def delete
      account.request('delete', "/box/#{account.username}/#{box.name}/version/#{number}")
    end

{'fraction_non_alphanumeric': 0.14754981152396338, 'fraction_numerical': 0.0, 'mean_word_length': 2.7535353535353537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2201615', 'n_tokens_mistral': 563, 'n_tokens_neox': 545, 'n_words': 127}