<commit_before><?php
namespace AimDate\FacebookCanvas\Provider;

use Silex\Application;
use Silex\ServiceProviderInterface;
use Silex\Component\Security\Http\Authentication;

use AimDate\FacebookCanvas\Security\Http\EntryPoint\FacebookCanvasAuthenticationEntryPoint;
use AimDate\FacebookCanvas\Security\Http\Authentication\Provider\FacebookCanvasProvider;
use AimDate\FacebookCanvas\Security\Http\Firewall\FacebookCanvasListener;



class FacebookCanvasServiceProvider implements ServiceProviderInterface
{
	const PROVIDER_KEY = 'facebook_canvas';

	public function register(Application $app)
	{
		
		$app['security.authentication_listener.factory.'.self::PROVIDER_KEY] = $app->protect(function ($name, $options) use ($app) {

				$full_name = $name.'.'.self::PROVIDER_KEY;

				$app['security.entry_point.'.$full_name] = function() use ($app, $options) {
				    return new FacebookCanvasAuthenticationEntryPoint($app, $app['security.http_utils'], $options['login_path']);
				};

				$app['security.authentication_listener.'.$full_name] = function() use ($app) {
					return new FacebookCanvasListener($app['security.token_storage'],
						$app['security.authentication_manager'],
						self::PROVIDER_KEY
					);
				};

				$app['security.authentication_provider.'.$full_name] = function() use ($app, $name, $options) {
					return new FacebookCanvasProvider($app['security.user_provider.'.$name], $app['security.user_checker'], self::PROVIDER_KEY, $options['app_secret']);
				};
<commit_msg>fix namespace<commit_after><?php
namespace Junker\Silex\Provider;

use Silex\Application;
use Silex\ServiceProviderInterface;
use Silex\Component\Security\Http\Authentication;

use Junker\Silex\Security\Http\EntryPoint\FacebookCanvasAuthenticationEntryPoint;
use Junker\Silex\Security\Http\Authentication\Provider\FacebookCanvasProvider;
use Junker\Silex\Security\Http\Firewall\FacebookCanvasListener;



class FacebookCanvasServiceProvider implements ServiceProviderInterface
{
	const PROVIDER_KEY = 'facebook_canvas';

	public function register(Application $app)
	{
		
		$app['security.authentication_listener.factory.'.self::PROVIDER_KEY] = $app->protect(function ($name, $options) use ($app) {

				$full_name = $name.'.'.self::PROVIDER_KEY;

				$app['security.entry_point.'.$full_name] = function() use ($app, $options) {
				    return new FacebookCanvasAuthenticationEntryPoint($app, $app['security.http_utils'], $options['login_path']);
				};

				$app['security.authentication_listener.'.$full_name] = function() use ($app) {
					return new FacebookCanvasListener($app['security.token_storage'],
						$app['security.authentication_manager'],
						self::PROVIDER_KEY
					);
				};

				$app['security.authentication_provider.'.$full_name] = function() use ($app, $name, $options) {
					return new FacebookCanvasProvider($app['security.user_provider.'.$name], $app['security.user_checker'], self::PROVIDER_KEY, $options['app_secret']);
				};

{'fraction_non_alphanumeric': 0.13879485443466485, 'fraction_numerical': 0.0, 'mean_word_length': 6.002369668246446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3013790', 'n_tokens_mistral': 978, 'n_tokens_neox': 847, 'n_words': 131}