<commit_before><?php

namespace Provider;

use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Symfony\Component\Yaml\Parser;
use Abraham\TwitterOAuth\TwitterOAuth;

class TwitterProvider implements ServiceProviderInterface 
{
	private $connection;

	public function register(Container $app)
	{
		$config = $this->getTwitterConfig();
		$this->setConnection($config);
		$app['TwitterProvider'] = $this->getConnection();
	}

	private function getTwitterConfig()
	{
		$yaml = new Parser();
		return $yaml->parse(
			file_get_contents(__DIR__ . '/../../config/twitter.yml')
		);
	}

	private function setConnection($config) 
	{
		$this->connection = new TwitterOAuth(
			$config['Twitter']['consumer_key'],
			$config['Twitter']['consumer_secret'],
			$config['Twitter']['access_token'],
			$config['Twitter']['access_token_secret']
		);
	}

	public function getConnection()
	{
		return $this->connection;	
	}

    public function boot(Container $app)
    {
    }
}<commit_msg>Fix indentation<commit_after><?php

namespace Provider;

use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Symfony\Component\Yaml\Parser;
use Abraham\TwitterOAuth\TwitterOAuth;

class TwitterProvider implements ServiceProviderInterface 
{
	private $connection;

	public function register(Container $app)
	{
		$config = $this->getTwitterConfig();
		$this->setConnection($config);
		$app['TwitterProvider'] = $this->getConnection();
	}

	private function getTwitterConfig()
	{
		$yaml = new Parser();
		return $yaml->parse(
			file_get_contents(__DIR__ . '/../../config/twitter.yml')
		);
	}

	private function setConnection($config) 
	{
		$this->connection = new TwitterOAuth(
			$config['Twitter']['consumer_key'],
			$config['Twitter']['consumer_secret'],
			$config['Twitter']['access_token'],
			$config['Twitter']['access_token_secret']
		);
	}

	public function getConnection()
	{
		return $this->connection;	
	}

	public function boot(Container $app)
	{
	}
}
{'fraction_non_alphanumeric': 0.14890362060173382, 'fraction_numerical': 0.0, 'mean_word_length': 5.074303405572755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3200993', 'n_tokens_mistral': 673, 'n_tokens_neox': 593, 'n_words': 111}