<commit_before>const triangle  = require('a-big-triangle')
const context   = require('gl-context')
const fit       = require('canvas-fit')
const Shader    = require('gl-shader')

module.exports = toy

const vert = `
precision mediump float;

attribute vec2 position;

void main() {
  gl_Position = vec4(position, 1, 1);
}
`.trim()

// str -> err, str
function toy(frag, cb) {
  const canvas = document.body.appendChild(document.createElement('canvas'))
  const gl     = context(canvas, render)
  const shader = Shader(gl, vert, frag)
  const fitter = fit(canvas)
<commit_msg>fix again :)<commit_after>const triangle  = require('a-big-triangle')
const context   = require('gl-context')
const fit       = require('canvas-fit')
const Shader    = require('gl-shader')

module.exports = toy

const vert = `
precision mediump float;

attribute vec2 position;

void main() {
  gl_Position = vec4(position, 1, 1);
}
`.trim()

// String -> WebGLRenderingContext, Shader
function toy(frag, cb) {
  const canvas = document.body.appendChild(document.createElement('canvas'))
  const gl     = context(canvas, render)
  const shader = Shader(gl, vert, frag)
  const fitter = fit(canvas)

{'fraction_non_alphanumeric': 0.13640238704177324, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 4.217777777777778, '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': '4371299', 'n_tokens_mistral': 373, 'n_tokens_neox': 365, 'n_words': 102}