<commit_before>module Octopress
  module Ink
    class Page < Jekyll::Page
      attr_accessor :default_url

      # Override the destination for a page
      #
      # url - Path relative to destination directory.
      #       examples: 
      #         - '/' for the _site/index.html page
      #         - '/archive/' for the _site/archive/index.html page
      #
      def initialize(site, base, dir, name, config)
        @plugin_config = config
        super(site, base, dir, name)
      end

      def destination(dest)
        path = File.join(dest, self.url)
        path
      end

      # Allow pages to read url from plugin configuration
      #
      def url
        if @url
          @url
        else
          begin
            if path_config = self.data['url_config']
              config = @plugin_config
              path_config.split('.').each { |key| config = config[key] }
              @url = config if config.is_a? String
            end
          rescue; end

          @default_url = true if @url.nil?

          if @url =~ /\/$/
            if self.ext == '.xml'
              @url = File.join(@url, "index.xml")
            else
              @url = File.join(@url, "index.html")
            end
          end

          super
        end
      end
    end
  end
end
<commit_msg>Removed default_url from page class as it was not being used<commit_after>module Octopress
  module Ink
    class Page < Jekyll::Page

      # Override the destination for a page
      #
      # url - Path relative to destination directory.
      #       examples: 
      #         - '/' for the _site/index.html page
      #         - '/archive/' for the _site/archive/index.html page
      #
      def initialize(site, base, dir, name, config)
        @plugin_config = config
        super(site, base, dir, name)
      end

      def destination(dest)
        path = File.join(dest, self.url)
        path
      end

      # Allow pages to read url from plugin configuration
      #
      def url
        if @url
          @url
        else
          begin
            if path_config = self.data['url_config']
              config = @plugin_config
              path_config.split('.').each { |key| config = config[key] }
              @url = config if config.is_a? String
            end
          rescue; end

          if @url && @url =~ /\/$/
            if self.ext == '.xml'
              @url = File.join(@url, "index.xml")
            else
              @url = File.join(@url, "index.html")
            end
          end

          super
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0928351309707242, 'fraction_numerical': 0.0, 'mean_word_length': 1.352355072463768, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3288587', 'n_tokens_mistral': 734, 'n_tokens_neox': 720, 'n_words': 219}