<commit_before>wd.cdv.validators.registerValidator("custom", function(validation, rs){
  var validationResult = wd.cdv.validationResult({
      name: validation.validationName, 
      type: validation.validationType
  });

  var result = validation.validationFunction.call(this,rs,[]);

  if (typeof result == "object") {
    validationResult.setAlert(wd.cdv.alert(result));
  } else {
    validationResult.setAlert(this.parseAlert(result));
    print(JSON.stringify(validation));
    print(result);
    switch(result){
      case "OK":
        if(validation.successMessage) validationResult.getAlert().setDescription(validation.successMessage);
        break;
      case "CRITICAL":
      case "ERROR":
      case "WARNING":
      default:
        if(validation.failureMessage) validationResult.getAlert().setDescription(validation.failureMessage);
        break;
    }
  }<commit_msg>Remove print calls from custom validator<commit_after>wd.cdv.validators.registerValidator("custom", function(validation, rs){
  var validationResult = wd.cdv.validationResult({
      name: validation.validationName, 
      type: validation.validationType
  });

  var result = validation.validationFunction.call(this,rs,[]);

  if (typeof result == "object") {
    validationResult.setAlert(wd.cdv.alert(result));
  } else {
    validationResult.setAlert(this.parseAlert(result));
    switch(result){
      case "OK":
        if(validation.successMessage) validationResult.getAlert().setDescription(validation.successMessage);
        break;
      case "CRITICAL":
      case "ERROR":
      case "WARNING":
      default:
        if(validation.failureMessage) validationResult.getAlert().setDescription(validation.failureMessage);
        break;
    }
  }
{'fraction_non_alphanumeric': 0.1234922458357266, 'fraction_numerical': 0.0, 'mean_word_length': 3.852367688022284, 'pattern_counts': {'":': 8, '<': 3, '<?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': '7648302', 'n_tokens_mistral': 477, 'n_tokens_neox': 469, 'n_words': 79}