<commit_before>module Middleman
  module GoogleAnalytics
    class Options < Struct.new(:tracking_id, :anonymize_ip, :debug); end

    class << self
      def options
        @@options ||= Options.new(options)
      end

      def registered(app, options={})
        @@options ||= Options.new(options)
        yield @@options if block_given?

        app.send :include, InstanceMethods
      end
      alias :included :registered
    end

    module InstanceMethods
      def google_analytics_tag
        options = ::Middleman::GoogleAnalytics.options
        options.debug ||= development?
        ga = options.debug ? 'ga' : '/u/ga_debug'
        if tracking_id = options.tracking_id
          gaq = []<commit_msg>Actually use `ga_debug` when `debug` is `true`<commit_after>module Middleman
  module GoogleAnalytics
    class Options < Struct.new(:tracking_id, :anonymize_ip, :debug); end

    class << self
      def options
        @@options ||= Options.new(options)
      end

      def registered(app, options={})
        @@options ||= Options.new(options)
        yield @@options if block_given?

        app.send :include, InstanceMethods
      end
      alias :included :registered
    end

    module InstanceMethods
      def google_analytics_tag
        options = ::Middleman::GoogleAnalytics.options
        options.debug ||= development?
        ga = options.debug ? '/u/ga_debug' : 'ga'
        if tracking_id = options.tracking_id
          gaq = []
{'fraction_non_alphanumeric': 0.10102389078498293, 'fraction_numerical': 0.0, 'mean_word_length': 2.549636803874092, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6804985', 'n_tokens_mistral': 428, 'n_tokens_neox': 404, 'n_words': 106}