<commit_before><?php

abstract class Layoutable {
    /**
     * associative array of layout settings
     * 
     * @var array
     */
    private $layout = array();
    
    /**
     * get array of layout settings
     * 
     * @return array
     */
    public function getLayout(){
    	return $this->layout;
    }
    
    /**
     * set raw layout without applying escaping rules
     * 
     * @param string $name
     * @param mixed  $value
     * @return Layoutable|Graph|Vertex|Edge $this (chainable)
     */
    public function setLayoutRaw($name,$value){
    	if($value === NULL){
    		unset($this->layout[$name]);
    	}else{
    		$this->layout[$name] = $value;
    	}
    	return $this;
    }
    
    /**
     * set layout option
     * 
     * @param string|array $name
     * @param mixed        $value
     * @return Layoutable|Graph|Vertex|Edge $this (chainable)
     * @uses GraphViz::escape()
     * @uses Layoutable::setLayoutRaw()
     */
    public function setLayout($name,$value=NULL){
        if($name === NULL){
            $this->layout = array();
            return $this;
        }
        if(!is_array($name)){
            $name = array($name,$value);
        }
        foreach($name as $key=>$value){
            $this->setLayoutRaw($key,GraphViz::escape($value));
        }
    	return $this;
    }
}
<commit_msg>Fix typo<commit_after><?php

abstract class Layoutable {
    /**
     * associative array of layout settings
     * 
     * @var array
     */
    private $layout = array();
    
    /**
     * get array of layout settings
     * 
     * @return array
     */
    public function getLayout(){
    	return $this->layout;
    }
    
    /**
     * set raw layout without applying escaping rules
     * 
     * @param string $name
     * @param mixed  $value
     * @return Layoutable|Graph|Vertex|Edge $this (chainable)
     */
    public function setLayoutRaw($name,$value){
    	if($value === NULL){
    		unset($this->layout[$name]);
    	}else{
    		$this->layout[$name] = $value;
    	}
    	return $this;
    }
    
    /**
     * set layout option
     * 
     * @param string|array $name
     * @param mixed        $value
     * @return Layoutable|Graph|Vertex|Edge $this (chainable)
     * @uses GraphViz::escape()
     * @uses Layoutable::setLayoutRaw()
     */
    public function setLayout($name,$value=NULL){
        if($name === NULL){
            $this->layout = array();
            return $this;
        }
        if(!is_array($name)){
            $name = array($name=>$value);
        }
        foreach($name as $key=>$value){
            $this->setLayoutRaw($key,GraphViz::escape($value));
        }
    	return $this;
    }
}

{'fraction_non_alphanumeric': 0.1451373422420193, 'fraction_numerical': 0.0, 'mean_word_length': 1.9040948275862069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '6567963', 'n_tokens_mistral': 826, 'n_tokens_neox': 815, 'n_words': 179}