<commit_before>%w[rubygems active_record markaby metaid ostruct tempfile].each{|l|require l}
module Camping;C=self;S=File.read(__FILE__).gsub(/_{2}FILE_{2}/,__FILE__.dump)
module Helpers;def R c,*args;p=/\(.+?\)/;args.inject(c.urls.detect{|x|x.scan(p
).size==args.size}.dup){|str,a|str.sub(p,(a.method(a.class.primary_key)[]rescue
a).to_s)};end;def / p;p[/^\//]?@root+p:p end;end;module Controllers;module Base
include Helpers;attr_accessor :input,:cookies,:headers,:body,:status,:root;def
method_missing(m,*args,&blk);str=m==:render ? markaview(*args,&blk):eval(
"markaby.#{m}(*args,&blk)");str=markaview(:layout){str}rescue nil;r(200,str.
to_s);end;def r(s,b,h={});@status=s;@headers.merge!(h);@body=b;end;def 
redirect(c,*args);c=R(c,*args);r(302,'','Location'=>self/c);end;def service(r,
e,m,a)@status,@headers,@root=200,{},e['SCRIPT_NAME'];cook=C.cookie_parse(e[
'HTTP_COOKIE']||e['COOKIE']);qs=C.qs_parse(e['QUERY_STRING']);if "POST"==m;inp=r.read(e[
'CONTENT_LENGTH'].to_i);if %r|\Amultipart/form-data.*boundary=\"?([^\";,]+)|n.
match(e['CONTENT_TYPE']);b="--#$1";inp.split(/(?:\r?\n|\A)#{Regexp::quote(
b)}(?:--)?\r\n/m).each{|pt|h,v=pt.split("\r\n\r\n",2);fh={};[:name,:filename].
each{|x|fh[x]=$1 if h=~/^Content-Disposition: form-data;.*(?:\s#{x}="([^"]+)")\
/m};fn=fh[:name];if fh[:filename];fh[:type]=$1 if h =~ /^Content-Type: (.+?)(\
\r\n|\Z)/m;fh[:tempfile]=Tempfile.new("#{C}").instance_eval{binmode;write v<commit_msg>adding errors_for helper to compressed version<commit_after>%w[rubygems active_record markaby metaid ostruct tempfile].each{|l|require l}
module Camping;C=self;S=File.read(__FILE__).gsub(/_{2}FILE_{2}/,__FILE__.dump)
module Helpers;def R c,*args;p=/\(.+?\)/;args.inject(c.urls.detect{|x|x.scan(p
).size==args.size}.dup){|str,a|str.sub(p,(a.method(a.class.primary_key)[]rescue
a).to_s)};end;def / p;p[/^\//]?@root+p:p end; def errors_for(o); ul.errors { 
o.errors.each_full { |er| li er } } unless o.errors.empty?; end; end; module Controllers;
module Base; include Helpers;attr_accessor :input,:cookies,:headers,:body,:status,:root;def
method_missing(m,*args,&blk);str=m==:render ? markaview(*args,&blk):eval(
"markaby.#{m}(*args,&blk)");str=markaview(:layout){str}rescue nil;r(200,str.
to_s);end;def r(s,b,h={});@status=s;@headers.merge!(h);@body=b;end;def 
redirect(c,*args);c=R(c,*args);r(302,'','Location'=>self/c);end;def service(r,
e,m,a)@status,@headers,@root=200,{},e['SCRIPT_NAME'];cook=C.cookie_parse(e[
'HTTP_COOKIE']||e['COOKIE']);qs=C.qs_parse(e['QUERY_STRING']);if "POST"==m;inp=r.read(e[
'CONTENT_LENGTH'].to_i);if %r|\Amultipart/form-data.*boundary=\"?([^\";,]+)|n.
match(e['CONTENT_TYPE']);b="--#$1";inp.split(/(?:\r?\n|\A)#{Regexp::quote(
b)}(?:--)?\r\n/m).each{|pt|h,v=pt.split("\r\n\r\n",2);fh={};[:name,:filename].
each{|x|fh[x]=$1 if h=~/^Content-Disposition: form-data;.*(?:\s#{x}="([^"]+)")\
/m};fn=fh[:name];if fh[:filename];fh[:type]=$1 if h =~ /^Content-Type: (.+?)(\
\r\n|\Z)/m;fh[:tempfile]=Tempfile.new("#{C}").instance_eval{binmode;write v
{'fraction_non_alphanumeric': 0.30073186959414505, 'fraction_numerical': 0.00998003992015968, 'mean_word_length': 9.333333333333334, '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': '5898724', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1346, 'n_words': 113}