<commit_before># https://buildkite.com/docs/agent/osx
# https://buildkite.com/docs/guides/environment-variables

module Danger
  module CISource
    class Buildkite < CI
      def self.validates?(env)
        return !env["BUILDKITE"].nil?
      end

      def initialize(env)
        repo = env["BUILDKITE_REPO"]
        unless repo.nil?
          repo_matches = repo.match(/([\/:])([^\/]+\/[^\/.]+)(?:.git)?$/)
          self.repo_slug = repo_matches[2] unless repo_matches.nil?
        end

        self.pull_request_id = env["BUILDKITE_PULL_REQUEST"]
      end
    end
  end
end<commit_msg>Updated code style<commit_after># https://buildkite.com/docs/agent/osx
# https://buildkite.com/docs/guides/environment-variables

module Danger
  module CISource
    class Buildkite < CI
      def self.validates?(env)
        return !env["BUILDKITE"].nil?
      end

      def initialize(env)
        repo = env["BUILDKITE_REPO"]
        unless repo.nil?
          repo_matches = repo.match(%r{([\/:])([^\/]+\/[^\/.]+)(?:.git)?$})
          self.repo_slug = repo_matches[2] unless repo_matches.nil?
        end

        self.pull_request_id = env["BUILDKITE_PULL_REQUEST"]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.15171835708298406, 'fraction_numerical': 0.0016764459346186086, 'mean_word_length': 2.501466275659824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '951992', 'n_tokens_mistral': 409, 'n_tokens_neox': 405, 'n_words': 69}