<commit_before>#
#  environment.rb
#
#  Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
#

module MSTeamsStep

  class Environment

    def initialize(nenv)
      @nenv = nenv
    end

    def build_title
      nenv.bitrise_app_title
    end

    def build_number
      nenv.bitrise_build_number
    end

    def build_url
      nenv.bitrise_public_install_page_url
    end

    def build_successful?
      !nenv.bitrise_build_status?
    end

    def git_commit
      nenv.git_clone_commit_hash[0...7]
    end

    def git_commit_full
      nenv.git_clone_commit_hash
    end

    def git_message
      nenv.git_clone_commit_message_subject
    end

    def git_author
      nenv.git_clone_commit_commiter_name
    end

    def git_branch<commit_msg>Add email for commiter<commit_after>#
#  environment.rb
#
#  Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
#

module MSTeamsStep

  class Environment

    def initialize(nenv)
      @nenv = nenv
    end

    def build_title
      nenv.bitrise_app_title
    end

    def build_number
      nenv.bitrise_build_number
    end

    def build_url
      nenv.bitrise_public_install_page_url
    end

    def build_successful?
      !nenv.bitrise_build_status?
    end

    def git_commit
      nenv.git_clone_commit_hash[0...7]
    end

    def git_commit_full
      nenv.git_clone_commit_hash
    end

    def git_message
      nenv.git_clone_commit_message_subject
    end

    def git_author
      "#{nenv.git_clone_commit_commiter_name} (#{nenv.git_clone_commit_commiter_email})"
    end

    def git_branch
{'fraction_non_alphanumeric': 0.05126582278481013, 'fraction_numerical': 0.007594936708860759, 'mean_word_length': 2.529017857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7225436', 'n_tokens_mistral': 577, 'n_tokens_neox': 549, 'n_words': 113}