<commit_before>require 'rubygems'
require 'active_resource'

module RedmineApi
  class Client < ActiveResource::Base; end
  class Issue < RedmineApi::Client; end
end

module Stagecoach
  class Redmine
    def self.issue(issue_number)
      return RedmineApi::Issue.find(issue_number)
    end

    def self.issue_url(issue)
      RedmineApi::Client.site + "/issues/" + issue.id
    end

    # API testing - can be removed once the redmine API supports changing of
    # issue status, currently this is broken.
    # More information at http://www.redmine.org/boards/2/topics/25920
    def self.view_issue(issue)
      issue_url = Redmine.issue_url(issue)
        print "Open planio issue in browser? [Y]es or anything else to exit:  "
        `open #{issue_url.to_s}` if gets.chomp == "Y"
        puts "Staging completed!  Exiting..."
    end
  end
end
<commit_msg>comment correction<commit_after>require 'rubygems'
require 'active_resource'

module RedmineApi
  class Client < ActiveResource::Base; end
  class Issue < RedmineApi::Client; end
end

module Stagecoach
  class Redmine
    def self.issue(issue_number)
      return RedmineApi::Issue.find(issue_number)
    end

    def self.issue_url(issue)
      RedmineApi::Client.site + "/issues/" + issue.id
    end

    # Open the issue in a browser.
    def self.view_issue(issue)
      issue_url = Redmine.issue_url(issue)
        print "Open planio issue in browser? [Y]es or anything else to exit:  "
        `open #{issue_url.to_s}` if gets.chomp == "Y"
        puts "Staging completed!  Exiting..."
    end
  end
end

{'fraction_non_alphanumeric': 0.09466327827191867, 'fraction_numerical': 0.0038119440914866584, 'mean_word_length': 3.1447368421052633, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3363217', 'n_tokens_mistral': 503, 'n_tokens_neox': 497, 'n_words': 145}