<commit_before><?php 
include_once(dirname(__FILE__)."/HTMLBlock.php");
abstract class HTMLList extends HTMLBlock{
    public function __construct(array $list){
        foreach($list as $li){
            if(!($li instanceof HTMLListItem) && !($li instanceof HTMLList)){
                $li = new HTMLListItem($li);
            }
            $this->addView($li);
        }
    }
}
?><commit_msg>Fixed a validation issue with lists.<commit_after><?php 
include_once(dirname(__FILE__)."/HTMLBlock.php");
abstract class HTMLList extends HTMLBlock{
    public function __construct(array $list){
        foreach($list as $li){
	    if($li instanceof HTMLList){
		//TODO: If the list already has a list style on it, we don't
		//need to add our own list-style.
		$new = new HTMLListItem($li);		
		$new->addStyle("list-style", "none");
		$li = $new;
	    }
            if(!($li instanceof HTMLListItem)){
                $li = new HTMLListItem($li);
            }
            $this->addView($li);
        }
    }
}
?>
{'fraction_non_alphanumeric': 0.14370664023785926, 'fraction_numerical': 0.0, 'mean_word_length': 2.519163763066202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '6313722', 'n_tokens_mistral': 309, 'n_tokens_neox': 315, 'n_words': 79}