<commit_before><?php

namespace Reach\Service;

use InvalidArgumentException;
use Reach\DI\AdapterInterface;
use Reach\DI\DefaultAdapter;
use Reach\SingletonTrait;

class Container
{

	use SingletonTrait;

	/** @var  AdapterInterface */
	private static $di;


	/**
	 * @return AdapterInterface
	 */
	public static function getDI()
	{
		return self::$di;
	}

	/**
	 * @param AdapterInterface $di
	 */
	public static function setDI(AdapterInterface $di)
	{
		self::$di = $di;
	}

	/**
	 * @deprecated
	 * @param $name
	 * @param $service
	 */
	public static function set($name, $service)
	{
		self::$di->set($name, $service);
	}

	/**
	 * @deprecated
	 * @param $name
	 * @return mixed
	 * @throws \Exception
	 */
	public static function get($name)
	{
		if (!self::$di instanceof DefaultAdapter) {
			throw new \Exception('It is not Default Adapter');
		}

		return self::$di->get($name);
	}

	public static function has($name)<commit_msg>small fix<commit_after><?php

namespace Reach\Service;

use InvalidArgumentException;
use Reach\DI\AdapterInterface;
use Reach\DI\DefaultAdapter;
use Reach\SingletonTrait;

class Container
{

	use SingletonTrait;

	private static $di;


	/**
	 * @return AdapterInterface
	 */
	public static function getDI()
	{
		return self::$di;
	}

	/**
	 * @param AdapterInterface $di
	 */
	public static function setDI($di)
	{
		self::$di = $di;
	}

	/**
	 * @deprecated
	 * @param $name
	 * @param $service
	 */
	public static function set($name, $service)
	{
		self::$di->set($name, $service);
	}

	/**
	 * @deprecated
	 * @param $name
	 * @return mixed
	 * @throws \Exception
	 */
	public static function get($name)
	{
		if (!self::$di instanceof DefaultAdapter) {
			throw new \Exception('It is not Default Adapter');
		}

		return self::$di->get($name);
	}

	public static function has($name)
{'fraction_non_alphanumeric': 0.14709110867178923, 'fraction_numerical': 0.0, 'mean_word_length': 3.5919395465994963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3483840', 'n_tokens_mistral': 653, 'n_tokens_neox': 604, 'n_words': 153}