<commit_before>module StartupGiraffe
  module Uncut
    module Controller
      def self.included base
        Rails.application.routes.draw do
          match( "/processed_images/:img_protocol/:img_host/:img_path" => "application#cut_image",
                        :via => :get,
                        :constraints => {
                            :host => /[^\/]+/,
                            :path => /.*/
                        }
          )
        end
      end

      def cut_image
        @img = StartupGiraffe::Uncut::Image.new( params[:img_host], params[:img_path], params[:style], params[:img_protocol] )
      end
    end
  end
end<commit_msg>finessing these routes<commit_after>module StartupGiraffe
  module Uncut
    module Controller
      def self.included base
        base.send( :extend, ClassMethods )
      end

      module ClassMethods
        def uncut_routes routing
          routing.match( "/processed_images/:img_protocol/:img_host/:img_path" => "application#cut_image",
                        :via => :get,
                        :constraints => {
                            :host => /[^\/]+/,
                            :path => /.*/
                        }
          )
        end
      end

      def cut_image
        @img = StartupGiraffe::Uncut::Image.new( params[:img_host], params[:img_path], params[:style], params[:img_protocol] )
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11158493248045487, 'fraction_numerical': 0.0, 'mean_word_length': 1.4745166959578206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1773639', 'n_tokens_mistral': 391, 'n_tokens_neox': 384, 'n_words': 74}