<commit_before>
it     'sanitizes :css :expression regardless of the case'
input  "eXprEssioN(alert('xss!'));"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes :css :expression when ( or ) is an html entity: &#40; &#41;'
input "eXprEssioN&#40;alert('xss!')&#41;"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/


it     'sanitizes :css :expression when ( is html entity regardless of case: &rPaR;'
input  "eXprEssioN&rPaR;alert('xss!'))"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes css_href'
input  "smtp://file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes css_href event if slash is html entity: &#47;'
input "smtp:&#47;&#47;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes css_href event if slash is html entity: &#x0002F;'
input "smtp:&#x0002F;&#x0002F;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/


it     'sanitizes css_href event if slash is html entity: &sol;' 
input  "smtp:&sol;&sol;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes css_href with encoded slashes' 
input  "smtp:&#047;&#047;file.com&#047;img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes javascript: href'
input 'jAvAscript://alert()'
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes javascript: href with encoded colons:'
input "javascript&#058;//alert()"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes javascript: href with encoded slashes'
input  "javascript:&#047;&#047;alert()"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'returns cleaned string'
input  '1px solid #000'
output '1px solid #000'<commit_msg>Dev. checkpoint: Touchups.<commit_after>
it     'sanitizes :css :expression regardless of the case'
input  "eXprEssioN(alert('xss!'));"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes :css :expression when ( or ) is an html entity: &#40; &#41;'
input "eXprEssioN&#40;alert('xss!')&#41;"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/


it     'sanitizes :css :expression when ( is html entity regardless of case: &rPaR;'
input  "eXprEssioN&rPaR;alert('xss!'))"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes css_href'
input  "smtp://file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes css_href event if slash is html entity: &#47;'
input "smtp:&#47;&#47;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes css_href event if slash is html entity: &#x0002F;'
input "smtp:&#x0002F;&#x0002F;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/


it     'sanitizes css_href event if slash is html entity: &sol;' 
input  "smtp:&sol;&sol;file.com/img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes css_href with encoded slashes' 
input  "smtp:&#047;&#047;file.com&#047;img.png"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes javascript: href'
input 'jAvAscript://alert()'
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it    'sanitizes javascript: href with encoded colons:'
input "javascript&#058;//alert()"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'sanitizes javascript: href with encoded slashes'
input  "javascript:&#047;&#047;alert()"
raises Escape_Escape_Escape::Invalid, /contains invalid chars/

it     'returns cleaned string'
input  '1px solid #000'
output '1px solid #000'



{'fraction_non_alphanumeric': 0.1261854583772392, 'fraction_numerical': 0.0273972602739726, 'mean_word_length': 5.501712328767123, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2818982', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1310, 'n_words': 359}