<commit_before>var x = require('casper').selectXPath;
casper.options.viewportSize = {width: 1670, height: 585};
casper.on('page.error', function(msg, trace) {
   this.echo('Error: ' + msg, 'ERROR');
   for(var i=0; i<trace.length; i++) {
       var step = trace[i];
       this.echo('   ' + step.file + ' (line ' + step.line + ')', 'ERROR');
   }
});

captureScreen = function() {
   var file_name = casper.cli.get("output")+'test_failed_va_check_screen_error.png';
   this.capture(file_name);
   this.echo('Captured "'+file_name+'"');
}

casper.test.begin('Test test VA feed that checker finds errors in', function(test) {<commit_msg>Check jenkins regression build test and produce screenshot. #125<commit_after>var x = require('casper').selectXPath;
casper.options.viewportSize = {width: 1670, height: 585};
casper.on('page.error', function(msg, trace) {
   this.echo('Error: ' + msg, 'ERROR');
   for(var i=0; i<trace.length; i++) {
       var step = trace[i];
       this.echo('   ' + step.file + ' (line ' + step.line + ')', 'ERROR');
   }
   var file_name = casper.cli.get("output")+'test_failed_va_check_pagr_error.png';
   this.capture(file_name);
   this.echo('Captured "'+file_name+'"');
});

captureScreen = function() {
   var file_name = casper.cli.get("output")+'test_failed_va_check_screen_error.png';
   this.capture(file_name);
   this.echo('Captured "'+file_name+'"');
}

casper.test.begin('Test test VA feed that checker finds errors in', function(test) {
{'fraction_non_alphanumeric': 0.18453188602442333, 'fraction_numerical': 0.012890094979647219, 'mean_word_length': 4.52434456928839, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1565056', 'n_tokens_mistral': 533, 'n_tokens_neox': 519, 'n_words': 102}