<commit_before><?php

namespace Spark\Event;

class Handler
{
    protected $event;
    protected $subject;
    protected $callback;    
    
	public function __construct($event, $subject, $callback)
	{
	    $this->event    = $event;
	    $this->subject  = $subject;
	    $this->callback = $callback;
	}
	
	public function __invoke($event, $memo = null)
	{
	    if ($event !== $this->event) return true;
	    
	    $callback = $this->getCallback();
	    return $callback($this->subject, $memo);
	}
	
	public function getCallback()
	{
	    $callback = $this->callback;
	    if (!is_callable($callback)) {
	        throw new \UnexpectedValueException("No valid Callback");
	    }<commit_msg>Adhere to my own new coding style<commit_after><?php

namespace Spark\Event;

class Handler
{
    protected $event;
    protected $subject;
    protected $callback;    
    
	function __construct($event, $subject, $callback)
	{
	    $this->event    = $event;
	    $this->subject  = $subject;
	    $this->callback = $callback;
	}
	
	function __invoke($event, $memo = null)
	{
	    if ($event !== $this->event) return true;
	    
	    $callback = $this->getCallback();
	    return $callback($this->subject, $memo);
	}
	
	function getCallback()
	{
	    $callback = $this->callback;
	    if (!is_callable($callback)) {
	        throw new \UnexpectedValueException("No valid Callback");
	    }
{'fraction_non_alphanumeric': 0.1437908496732026, 'fraction_numerical': 0.0, 'mean_word_length': 2.9826589595375723, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4709932', 'n_tokens_mistral': 453, 'n_tokens_neox': 419, 'n_words': 101}