<commit_before><!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Slitscan via webcam demo</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<h2>Slitscan Demo (<a href="http://github.com/qix/slitscan">github.com/qix/slitscan</a>)</h2>

<table><tr>
<td><canvas id="draw" width="640" height="480"></canvas></td>
<td><canvas id="output" width="640" height="480"></canvas></td>
</tr></table>

Choose: 
<select id="defaults">
</select><br/>

Frames
<select id="frames">
  <option value="16">16</option>
  <option value="32">32</option>
  <option value="64" selected="selected">64</option>
  <option value="128">128</option>
  <option value="256">256</option>
</select>

<div style="display:none;">
<video id="video" autoplay="autoplay"></video>
<canvas id="snapshot"></canvas>
</div>

<pre><strong>Status</strong>
<div id="status">Trying to connect to webcam...</div><commit_msg>Add message about drawing on canvas<commit_after><!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Slitscan via webcam demo</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<h2>Slitscan Demo (<a href="http://github.com/qix/slitscan">github.com/qix/slitscan</a>)</h2>

<table><tr>
<td><canvas id="draw" width="640" height="480"></canvas></td>
<td><canvas id="output" width="640" height="480"></canvas></td>
</tr></table>

Choose: 
<select id="defaults">
</select><br/>

Frames
<select id="frames">
  <option value="16">16</option>
  <option value="32">32</option>
  <option value="64" selected="selected">64</option>
  <option value="128">128</option>
  <option value="256">256</option>
</select><br/>

Drag on the canvas to draw.


<div style="display:none;">
<video id="video" autoplay="autoplay"></video>
<canvas id="snapshot"></canvas>
</div>

<pre><strong>Status</strong>
<div id="status">Trying to connect to webcam...</div>
{'fraction_non_alphanumeric': 0.23671751709626512, 'fraction_numerical': 0.041031036296685953, 'mean_word_length': 6.5476190476190474, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 106, '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': '3886767', 'n_tokens_mistral': 747, 'n_tokens_neox': 691, 'n_words': 140}