<commit_before><?php

namespace CoderSpotting\Bundle\ToastMessageBundle\Service;

use Symfony\Component\DependencyInjection\ContainerAware,
    Symfony\Component\DependencyInjection\ContainerInterface;

class ToastMessageService extends ContainerAware
{
	public function __construct(ContainerInterface $container)
	{
		$this->setContainer($container);
	}

	public function addToast($message)
	{
		$session = $this->container->get('session');

		$toasts = $session->get('CoderSpotting_ToastMessages');
<commit_msg>Switched from extends ContainerAware to use ContainerAwareTrait<commit_after><?php

namespace CoderSpotting\Bundle\ToastMessageBundle\Service;

use Symfony\Component\DependencyInjection\ContainerAware,
    Symfony\Component\DependencyInjection\ContainerInterface;

class ToastMessageService
{
	use ContainerAwareTrait;

	public function __construct(ContainerInterface $container)
	{
		$this->setContainer($container);
	}

	public function addToast($message)
	{
		$session = $this->container->get('session');

		$toasts = $session->get('CoderSpotting_ToastMessages');

{'fraction_non_alphanumeric': 0.10462962962962963, 'fraction_numerical': 0.0, 'mean_word_length': 7.251908396946565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7533770', 'n_tokens_mistral': 324, 'n_tokens_neox': 308, 'n_words': 50}