<commit_before>module.exports = function (container, opts) {
  var canvas = document.createElement('canvas')
  var height = container.clientHeight || opts.size

  if (height * 0.7 > window.innerWidth) {
    height = window.innerWidth * (1 / 0.7) - 30
  }

  container.style.width = height * 0.7 + 'px'
  container.style.height = height + 'px'
  container.style.position = 'relative'
  container.style.background = 'rgb(55,55,55)'

  canvas.id = 'game'
  canvas.width = height * 0.7
  canvas.height = height * 0.7
  canvas.style.marginTop = height * 0.15
  canvas.style.position = 'absolute'
  container.appendChild(canvas)

  function hide () {
    canvas.style.opacity = 0
  }

  function show () {
    canvas.style.opacity = 1<commit_msg>Vertical center for tall viewport<commit_after>module.exports = function (container, opts) {
  var canvas = document.createElement('canvas')
  var height = container.clientHeight || opts.size

  if (height * 0.7 > window.innerWidth) {
    height = window.innerWidth * (1 / 0.7) - 30
  }

  container.style.width = height * 0.7 + 'px'
  container.style.height = height + 'px'
  container.style.position = 'relative'
  container.style.top = (window.innerHeight - height) * 0.5
  container.style.background = 'rgb(55,55,55)'

  canvas.id = 'game'
  canvas.width = height * 0.7
  canvas.height = height * 0.7
  canvas.style.marginTop = height * 0.15
  canvas.style.position = 'absolute'
  container.appendChild(canvas)

  function hide () {
    canvas.style.opacity = 0
  }

  function show () {
    canvas.style.opacity = 1
{'fraction_non_alphanumeric': 0.13653846153846153, 'fraction_numerical': 0.03205128205128205, 'mean_word_length': 3.3002754820936637, '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': '2579723', 'n_tokens_mistral': 535, 'n_tokens_neox': 495, 'n_words': 113}