<commit_before><?php

namespace RdnUpload\Factory\Adapter;

use RdnUpload\Adapter;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class Filesystem implements FactoryInterface
{
	public function createService(ServiceLocatorInterface $services)
	{
		$config = $services->get('Config');
		$config = $config['rdn_upload_adapters']['config']['Filesystem'];

		$helpers = $services->get('ViewHelperManager');<commit_msg>fix usage of parent locator<commit_after><?php

namespace RdnUpload\Factory\Adapter;

use RdnUpload\Adapter;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class Filesystem implements FactoryInterface
{
	public function createService(ServiceLocatorInterface $adapters)
	{
		if ($adapters instanceof ServiceLocatorAwareInterface)
		{
			$services = $adapters->getServiceLocator();
		}
		else
		{
			$services = $adapters;
		}

		$config = $services->get('Config');
		$config = $config['rdn_upload_adapters']['config']['Filesystem'];

		$helpers = $services->get('ViewHelperManager');
{'fraction_non_alphanumeric': 0.11929824561403508, 'fraction_numerical': 0.0, 'mean_word_length': 7.15, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7579756', 'n_tokens_mistral': 353, 'n_tokens_neox': 326, 'n_words': 60}