<commit_before>require "statsd"
require "gds_api"
require "gds_api/publishing_api_v2"
require "gds_api/content_store"
require "gds_api/imminence"

module Services
  def self.publishing_api
    @publishing_api ||= GdsApi::PublishingApiV2.new(
      Plek.new.find("publishing-api"),
      bearer_token: ENV["PUBLISHING_API_BEARER_TOKEN"] || "example",
    )
  end<commit_msg>Resolve GdsApi::PublishingApiV2 deprecation<commit_after>require "statsd"
require "gds_api"
require "gds_api/publishing_api"
require "gds_api/content_store"
require "gds_api/imminence"

module Services
  def self.publishing_api
    @publishing_api ||= GdsApi::PublishingApi.new(
      Plek.new.find("publishing-api"),
      bearer_token: ENV["PUBLISHING_API_BEARER_TOKEN"] || "example",
    )
  end
{'fraction_non_alphanumeric': 0.11673151750972763, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 5.71304347826087, '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': '1948656', 'n_tokens_mistral': 297, 'n_tokens_neox': 293, 'n_words': 43}