<commit_before>content("text/html")

-- output the given code within a prettyprint class
function prettyprint(code)
  print([[<div style="width: 80%;"><pre class="prettyprint">]]..code..[[</pre></div>]])
end

-- format the title as relatively large letters
function title(text)
  mprint("# "..text)
end

-- format the title as big letters
function bigtitle(text)
  print([[<div style="font-size: 3em; font-weight: bold;">]]..text..[[</div>]])
end

--  horizontal space. There are better ways, but this works too.
function some_space()
  print[[<br><br>]]
end

-- the beginning of the HTML document
function head()
  print[[<!doctype html><html>
  <head>
    <title>prettify</title>
    <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
    <link rel="stylesheet" type="text/css" href="https://google-code-prettify.googlecode.com/svn/trunk/styles/sunburst.css">
  </head>
  <body style="background: gray; color: black; font-family: sans-serif; margin: 5em;">]]
end
<commit_msg>Better URL for the prettify library<commit_after>content("text/html")

-- output the given code within a prettyprint class
function prettyprint(code)
  print([[<div style="width: 80%;"><pre class="prettyprint">]]..code..[[</pre></div>]])
end

-- format the title as relatively large letters
function title(text)
  mprint("# "..text)
end

-- format the title as big letters
function bigtitle(text)
  print([[<div style="font-size: 3em; font-weight: bold;">]]..text..[[</div>]])
end

--  horizontal space. There are better ways, but this works too.
function some_space()
  print[[<br><br>]]
end

-- the beginning of the HTML document
function head()
  print[[<!doctype html><html>
  <head>
    <title>prettify</title>
    <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?skin=sunburst"></script>
  </head>
  <body style="background: gray; color: black; font-family: sans-serif; margin: 5em;">]]
end

{'fraction_non_alphanumeric': 0.17716333845366103, 'fraction_numerical': 0.00409626216077829, 'mean_word_length': 4.680232558139535, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 3, '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': '1433449', 'n_tokens_mistral': 654, 'n_tokens_neox': 634, 'n_words': 171}