<commit_before><?php
namespace Metabor\Statemachine\Graph;
use Metabor\Statemachine\Command;

use MetaborStd\Statemachine\TransitionInterface;

use Fhaculty\Graph\Vertex;

use MetaborStd\Statemachine\StateInterface;

use MetaborStd\Statemachine\StateCollectionInterface;

use Fhaculty\Graph\Graph as GraphLib;

/**
 * @author otischlinger
 *
 */
class Graph extends GraphLib
{
    /**
     * @var array
     */
    private $eventLayout = array();

    /**
     * @var array
     */
    private $stateLayout = array();

    /**
     * @param string $flag
     * @param scalar $value
     * @param array $layout
     */
    public function setEventLayout($flag, $value, array $layout)
    {
        $value = (string) $value;
        $this->eventLayout[$flag][$value] = $layout;
    }

    /**
     * @param string $flag
     * @param scalar $value
     * @param array $layout
     */<commit_msg>add layout styles for metadata of states and events to graph<commit_after><?php
namespace Metabor\Statemachine\Graph;
use Metabor\Statemachine\Command;

use MetaborStd\Statemachine\TransitionInterface;

use Fhaculty\Graph\Vertex;

use MetaborStd\Statemachine\StateInterface;

use MetaborStd\Statemachine\StateCollectionInterface;

use Fhaculty\Graph\Graph as GraphLib;

/**
 * @author otischlinger
 *
 */
class Graph extends GraphLib
{
    /**
     * @var array
     */
    private $eventLayout = array();

    /**
     * @var array
     */
    private $stateLayout = array();

    /**
     * @link http://www.graphviz.org/doc/info/attrs.html
     * 
     * @param string $flag
     * @param scalar $value
     * @param array $layout
     */
    public function setEventLayout($flag, $value, array $layout)
    {
        $value = (string) $value;
        $this->eventLayout[$flag][$value] = $layout;
    }

    /**
     * @link http://www.graphviz.org/doc/info/attrs.html
     * 
     * @param string $flag
     * @param scalar $value
     * @param array $layout
     */
{'fraction_non_alphanumeric': 0.12837493632195618, 'fraction_numerical': 0.0, 'mean_word_length': 2.6986817325800376, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2636862', 'n_tokens_mistral': 623, 'n_tokens_neox': 614, 'n_words': 138}