<commit_before>var hotLoadZLift = 50;

var printerStatus = "Checking...";
var api = "http://" + window.location.host + "/api/";
var apikey = "ABAABABB";
var etemp = "--";
var etempTarget = "--";
var btemp = "--";
var btempTarget = "--";
var tempCount = 1;
var sock = new SockJS('http://' + window.location.host + '/sockjs?apikey='+apikey);
var sortBy = "name";
var sortRev = false;
var fileTimeout = new Date().valueOf();
var printerId;
var headedBed = false;
var currentZ;
var returnZ;
var returnE;
var watchLogFor = [];
var watchLogForE = false;
var watchForZ = [];
var hotLoading = false;
var maxZHeight = 0;

watchLogFor[0]['height'] = 10;
watchLogFor[1]['height'] = 20;
watchLogFor[2]['height'] = 30;
watchLogFor[3]['height'] = 40;
watchLogFor[4]['height'] = 50;
watchLogFor[5]['height'] = 60;
watchLogFor[6]['height'] = 70;
watchLogFor[7]['height'] = 72;
watchLogFor[8]['height'] = 74;
watchLogFor[9]['height'] = 76;
watchLogFor[10]['height'] = 78;
watchLogFor[0]['action'] = "Wahoo";
watchLogFor[1]['action'] = "Waho20";
watchLogFor[2]['action'] = "Waho30";
watchLogFor[3]['action'] = "Waho40";
watchLogFor[4]['action'] = "Waho50";
watchLogFor[5]['action'] = "Waho60";
watchLogFor[6]['action'] = "Waho70";
watchLogFor[7]['action'] = "Waho72";
watchLogFor[8]['action'] = "Waho74";
watchLogFor[9]['action'] = "Waho76";
watchLogFor[10]['action'] = "Waho78";

var calibrateString = [];
calibrateString['eris'] = [ "M202 Z1850", "G69 S2", "G68", "G30 S2", "M202 Z400", "M500", "G4 S2" ];
calibrateString['rostock_max_v3'] = [ "G69 S2", "M117 ENDSTOPS CALIBRATED", "G68 ", "M117 HORIZONTAL RADIUS CALIBRATED", "G30 S2 ", "M117 Z Height Calibrated", "G4 S2", "M500", "M117 CALIBRATION SAVED" ];
calibrateString['orion'] = [ "G69 S2", "M117 ENDSTOPS CALIBRATED", "G68 ", "M117 HORIZONTAL RADIUS CALIBRATED", "G30 S2 ", "M117 Z Height Calibrated", "G4 S2", "M500", "M117 CALIBRATION SAVED" ];
<commit_msg>smarter z test<commit_after>var hotLoadZLift = 50;

var printerStatus = "Checking...";
var api = "http://" + window.location.host + "/api/";
var apikey = "ABAABABB";
var etemp = "--";
var etempTarget = "--";
var btemp = "--";
var btempTarget = "--";
var tempCount = 1;
var sock = new SockJS('http://' + window.location.host + '/sockjs?apikey='+apikey);
var sortBy = "name";
var sortRev = false;
var fileTimeout = new Date().valueOf();
var printerId;
var headedBed = false;
var currentZ;
var returnZ;
var returnE;
var watchLogFor = [];
var watchLogForE = false;
var watchForZ = [];
var hotLoading = false;
var maxZHeight = 0;

var tempArray;
for(l = 0;l <= 20;l++){
  tempArray['height'] = l * 5;
  tempArray['action'] = "Yay, " + tempArray['height'];
  watchLogFor[l] = tempArray;
}

var calibrateString = [];
calibrateString['eris'] = [ "M202 Z1850", "G69 S2", "G68", "G30 S2", "M202 Z400", "M500", "G4 S2" ];
calibrateString['rostock_max_v3'] = [ "G69 S2", "M117 ENDSTOPS CALIBRATED", "G68 ", "M117 HORIZONTAL RADIUS CALIBRATED", "G30 S2 ", "M117 Z Height Calibrated", "G4 S2", "M500", "M117 CALIBRATION SAVED" ];
calibrateString['orion'] = [ "G69 S2", "M117 ENDSTOPS CALIBRATED", "G68 ", "M117 HORIZONTAL RADIUS CALIBRATED", "G30 S2 ", "M117 Z Height Calibrated", "G4 S2", "M500", "M117 CALIBRATION SAVED" ];

{'fraction_non_alphanumeric': 0.2031104199066874, 'fraction_numerical': 0.07216174183514774, 'mean_word_length': 5.576687116564417, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '775524', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1262, 'n_words': 311}