<commit_before><?php if(!defined("SERVER_ROOT")){header("/error_404");exit;}

/**
*
* @Author <NAME> - <EMAIL>
*
*/

class MValidator {

  public static function email($email){
  
    if(filter_var($email, FILTER_VALIDATE_EMAIL)){
      return true;
    }
    
    return false;
    
  }
  
  public static function color_hex($color){
  
    $valid = false;
    
    $color = preg_replace('/[^0-9a-zA-Z\n]/', '', $color);
    
    if(strlen($color) == 3 || strlen($color) == 6){
      $valid = true;
    }
    
    return $valid;
  
  }

}

?><commit_msg>Altered the MValidator hex color function.<commit_after><?php if(!defined("SERVER_ROOT")){header("/error_404");exit;}

/**
*
* @Author <NAME> - <EMAIL>
*
*/

class MValidator {

  public static function email($email){
  
    if(filter_var($email, FILTER_VALIDATE_EMAIL)){
      return true;
    }
    
    return false;
    
  }
  
  public static function color_hex($color){
  
    $valid = false;
    
    $color = preg_replace('/[^0-9a-fA-F\n]/', '', $color);
    
    if(strlen($color) == 3 || strlen($color) == 6){
      $valid = true;
    }
    
    return $valid;
  
  }

}

?>
{'fraction_non_alphanumeric': 0.18349429323968394, 'fraction_numerical': 0.012291483757682178, 'mean_word_length': 2.5514018691588785, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '637884', 'n_tokens_mistral': 428, 'n_tokens_neox': 416, 'n_words': 73}