<commit_before>module TicketEvolution
  class Shipments < Endpoint
    include TicketEvolution::Modules::Create
    include TicketEvolution::Modules::List
    include TicketEvolution::Modules::Show
    include TicketEvolution::Modules::Update

    def generate_airbill(params = nil)
      ensure_id
      request(:POST, "/airbill", nil) do |response|
        singular_class.new(response.body.merge({
          :status_code => response.response_code,
          :server_message => response.server_message,<commit_msg>adding delivery status endpoint<commit_after>module TicketEvolution
  class Shipments < Endpoint
    include TicketEvolution::Modules::Create
    include TicketEvolution::Modules::List
    include TicketEvolution::Modules::Show
    include TicketEvolution::Modules::Update

    def status(params = {})
      handler ||= method(:collection_handler)
      request(:GET, '/status', params, &handler)
    end

    def generate_airbill(params = nil)
      ensure_id
      request(:POST, "/airbill", nil) do |response|
        singular_class.new(response.body.merge({
          :status_code => response.response_code,
          :server_message => response.server_message,
{'fraction_non_alphanumeric': 0.10084745762711865, 'fraction_numerical': 0.0, 'mean_word_length': 4.004237288135593, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2626898', 'n_tokens_mistral': 323, 'n_tokens_neox': 324, 'n_words': 65}