<commit_before><?php

namespace SlotMachine;

use Silex\Application;
use Silex\ServiceProviderInterface;

/**
 * This class is created specifically for the Silex micro-framework.
 * To use this Silex service provider, add the following:
 *
 *      $app->register(new SlotMachine\SlotMachineServiceProvider(), array(
 *          'slotmachine.config' => 'path/to/slotmachine.config.php',
 *      ));
 *
 * @package slotmachine
 * @author <NAME> <<EMAIL>>
 */
class SlotMachineServiceProvider implements ServiceProviderInterface
{
    /**
     * The SlotMachine\Page class is accessed as a service by Silex and the
     * configuration array is passed through as a service parameter.
     *
     * @todo Allow other parameters to be set by the service provider
     * @param Application $app
     * @return Page
     */
    public function register(Application $app)
    {
        $app['slotmachine'] = $app->share(function ($name) use ($app) {
            $defaultConfig = $app['slotmachine.config'] ? $app['slotmachine.config'] : array();
            return new Page($defaultConfig);
        });
    }

    /**
     * @param Application $app
     */
    public function boot(Application $app)
    {
    }
}<commit_msg>Remove redundant anonymous function parameter<commit_after><?php

namespace SlotMachine;

use Silex\Application;
use Silex\ServiceProviderInterface;

/**
 * This class is created specifically for the Silex micro-framework.
 * To use this Silex service provider, add the following:
 *
 *      $app->register(new SlotMachine\SlotMachineServiceProvider(), array(
 *          'slotmachine.config' => 'path/to/slotmachine.config.php',
 *      ));
 *
 * @package slotmachine
 * @author <NAME> <<EMAIL>>
 */
class SlotMachineServiceProvider implements ServiceProviderInterface
{
    /**
     * The SlotMachine\Page class is accessed as a service by Silex and the
     * configuration array is passed through as a service parameter.
     *
     * @todo Allow other parameters to be set by the service provider
     * @param Application $app
     * @return Page
     */
    public function register(Application $app)
    {
        $app['slotmachine'] = $app->share(function () use ($app) {
            $config = $app['slotmachine.config'] ? $app['slotmachine.config'] : array();

            return new Page($config);
        });
    }

    /**
     * @param Application $app
     */
    public function boot(Application $app)
    {
    }
}
{'fraction_non_alphanumeric': 0.11397058823529412, 'fraction_numerical': 0.0, 'mean_word_length': 2.9627831715210355, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3824999', 'n_tokens_mistral': 672, 'n_tokens_neox': 667, 'n_words': 201}