<commit_before><?php
namespace Cygnite\Foundation;

use Cygnite\Container\ContainerAwareInterface;

/**
 * interface ApplicationInterface
 *
 * @package Cygnite\Foundation
 */
interface ApplicationInterface extends ContainerAwareInterface
{
    /**
     * Returns a Instance of Application either as Closure
     * or static instance.
     *
     * @param Closure $callback
     * @param array   $argument
     * @return Application
     */
    public static function instance(\Closure $callback = null, $argument = []);

    /**
     * Create an instance of the class and return it
     *
     * @param $class
     * @return mixed
     */
    public function compose($class, $arguments = []);

    /**
     * Service Closure callback
     * @param callable $callback
     * @return mixed
     * @throws \Exception
     */
    public static function service(\Closure $callback);

    /**
     * Override parent method
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function set($key, $value);

    /**
     * Set language to the translator
     *
     * @return locale
     */
    public function setLocale();

    /**
     * Set all configurations and boot application
     *
     * @return $this
     */
    public function bootApplication();

    /**
     * We will trigger after booting application event if it is
     * activated in Event Middleware
     *
     * @return bool
     */
    public function beforeBootingApplication();

    /**
     * We will trigger after booting application event if it is
     * activated in Event Middleware
     *
     * @return bool
     */
    public function afterBootingApplication();
<commit_msg>Updated ApplicationInterface for setLocale method.<commit_after><?php
namespace Cygnite\Foundation;

use Cygnite\Container\ContainerAwareInterface;

/**
 * interface ApplicationInterface
 *
 * @package Cygnite\Foundation
 */
interface ApplicationInterface extends ContainerAwareInterface
{
    /**
     * Returns a Instance of Application either as Closure
     * or static instance.
     *
     * @param Closure $callback
     * @param array   $argument
     * @return Application
     */
    public static function instance(\Closure $callback = null, $argument = []);

    /**
     * Create an instance of the class and return it
     *
     * @param $class
     * @return mixed
     */
    public function compose($class, $arguments = []);

    /**
     * Service Closure callback
     * @param callable $callback
     * @return mixed
     * @throws \Exception
     */
    public static function service(\Closure $callback);

    /**
     * Override parent method
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function set($key, $value);

    /**
     * Set language to the translator
     *
     * @return locale
     */
    public function setLocale($localization = null);

    /**
     * Set all configurations and boot application
     *
     * @return $this
     */
    public function bootApplication();

    /**
     * We will trigger after booting application event if it is
     * activated in Event Middleware
     *
     * @return bool
     */
    public function beforeBootingApplication();

    /**
     * We will trigger after booting application event if it is
     * activated in Event Middleware
     *
     * @return bool
     */
    public function afterBootingApplication();

{'fraction_non_alphanumeric': 0.09558608593978368, 'fraction_numerical': 0.0, 'mean_word_length': 2.3094777562862667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6880861', 'n_tokens_mistral': 902, 'n_tokens_neox': 877, 'n_words': 291}