<commit_before>
require 'sass'
require 'compass'
require 'ninesixty'


get( "/skins/:skin/css/:file.css" ) do |raw_skin, raw_file|

    response['Content-Type'] = 'text/css'
    
    skin_name = ( raw_skin =~ /([a-zA-Z0-9\_\-]{2,})/ && $1)
    file      = ( raw_file =~ /([a-zA-Z0-9\_\-]{2,})/ && $1 )
    
    sass_dir      = File.join( options.views, 'skins', skin_name, 'sass' )
    sass_template = Pow( sass_dir , file + '.sass')

    raise( "CSS file not found: #{request.path_info}" ) if !sass_template.file?
        
    ::Sass::Engine.new( 
        sass_template.read, 
        :load_paths=> [ sass_dir ] + Compass.sass_engine_options[:load_paths] 
    ).render 
   
end # === get

<commit_msg>Fixed minor bug for :development environment, preventing from SASS/CSS from being accessed.<commit_after>
require 'sass'
require 'compass'
require 'ninesixty'


get( "/skins/:skin/css/:file.css" ) do |raw_skin, raw_file|

    response['Content-Type'] = 'text/css'
    
    skin_name = ( raw_skin =~ /([a-zA-Z0-9\_\-]{2,})/ && $1)
    file      = ( raw_file =~ /([a-zA-Z0-9\_\-]{2,})/ && $1 )
    
    sass_dir      = File.join( options.views, 'sass' )
    sass_template = Pow( sass_dir , file + '.sass')

    raise( "CSS file not found: #{request.path_info}" ) if !sass_template.file?
        
    ::Sass::Engine.new( 
        sass_template.read, 
        :load_paths=> [ sass_dir ] + Compass.sass_engine_options[:load_paths] 
    ).render 
   
end # === get


{'fraction_non_alphanumeric': 0.18331053351573187, 'fraction_numerical': 0.01094391244870041, 'mean_word_length': 2.6758793969849246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '567065', 'n_tokens_mistral': 584, 'n_tokens_neox': 558, 'n_words': 107}