<commit_before>var elem, two, gen, height, width, params, gene, rects, topOffset, pivot;
var steps, base, str, type;



document.addEventListener("DOMContentLoaded", function() {
  $('#R').click(function(){ R(); return false; });
  $('#G').click(function(){ G(); return false; });
  $('#B').click(function(){ B(); return false; });

  $('#more').click(function(){ moreV(); return false; });
  $('#less').click(function(){ lessV(); return false; });

  topOffset = document.getElementById('links').offsetHeight;
  initialize();
  elem = document.getElementById('background-box');
  params = {
    fullscreen: true
  };
  two = new Two(params).appendTo(elem);
  runMe();
  if (window.attachEvent) {
    window.attachEvent('onresize', function() {
      runMe(top);
    });
  }
  else if (window.addEventListener) {
    window.addEventListener('resize', function() {
      runMe(top);
    }, true);
  }
  else {
    //The browser does not support Javascript event binding
  }
});

function moreV(){
  var value = getV();
  value += 5;
  if (value > 255){
    value=255;
  }
  base = setV(value);
  runMe();
}

function lessV(){
  var value = getV();
  value -= 5;
  if (value < 0){
    value=0;
  }
  base = setV(value);
  runMe();
}

function getV(){
  var value =base[pivot];
  return value;
}

function setV(value){
  var v1 = base[0].toString(16);
  var v2 = base[1].toString(16);
  var v3 = base[2].toString(16);
  value = value.toString(16);
  while (value.length != 2){
    value =  "0"+value;
  }
  if (pivot == 0){
    return ""+value+v2+v3;
  }
  if (pivot == 1){
    return ""+v1+value+v3;
  }
  if (pivot == 2){
    return ""+v1+v2+value;
  }
}

function R(){
  pivot = 0;
  runMe();
}

function G(){
  pivot = 1;
  runMe();
}

function B(){
  pivot = 2;
  runMe();
}

function moreC(){
  if (steps<window.innerHeight/35){
    steps++;
  }<commit_msg>Further bug fixing, that whole 2 digit hex thing really messes with me<commit_after>var elem, two, gen, height, width, params, gene, rects, topOffset, pivot;
var steps, base, str, type;



document.addEventListener("DOMContentLoaded", function() {
  $('#R').click(function(){ R(); return false; });
  $('#G').click(function(){ G(); return false; });
  $('#B').click(function(){ B(); return false; });

  $('#more').click(function(){ moreV(); return false; });
  $('#less').click(function(){ lessV(); return false; });

  topOffset = document.getElementById('links').offsetHeight;
  initialize();
  elem = document.getElementById('background-box');
  params = {
    fullscreen: true
  };
  two = new Two(params).appendTo(elem);
  runMe();
  if (window.attachEvent) {
    window.attachEvent('onresize', function() {
      runMe(top);
    });
  }
  else if (window.addEventListener) {
    window.addEventListener('resize', function() {
      runMe(top);
    }, true);
  }
  else {
    //The browser does not support Javascript event binding
  }
});

function moreV(){
  var value = getV();
  value += 5;
  if (value > 255){
    value=255;
  }
  base = setV(value);
  runMe();
}

function lessV(){
  var value = getV();
  value -= 5;
  if (value < 0){
    value=0;
  }
  base = setV(value);
  runMe();
}

function getV(){
  var value =base[pivot];
  return value;
}

function setV(value){
  var v1 = base[0].toString(16);
  var v2 = base[1].toString(16);
  var v3 = base[2].toString(16);
  value = value.toString(16);
  while (value.length != 2){
    value =  "0"+value;
  }
  while (v1.length != 2){
    v1 = "0"+v1;
  }
  while (v2.length != 2){
    v2 = "0"+v2;
  }
  while (v3.length != 2){
    v3 = "0"+v3;
  }
  if (pivot == 0){
    return ""+value+v2+v3;
  }
  if (pivot == 1){
    return ""+v1+value+v3;
  }
  if (pivot == 2){
    return ""+v1+v2+value;
  }
}

function R(){
  pivot = 0;
  runMe();
}

function G(){
  pivot = 1;
  runMe();
}

function B(){
  pivot = 2;
  runMe();
}

function moreC(){
  if (steps<window.innerHeight/35){
    steps++;
  }
{'fraction_non_alphanumeric': 0.19933639612046963, 'fraction_numerical': 0.02450229709035222, 'mean_word_length': 3.316079295154185, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1934981', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1414, 'n_words': 345}