<commit_before><?php

namespace wcf\system\request\route;

/**
 * Default interface for route implementations.
 *
 * @author  <NAME>
 * @copyright   2001-2019 WoltLab GmbH
 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package WoltLabSuite\Core\System\Request
 * @since   3.0
 */
interface IRequestRoute
{
    /**
     * Builds a link upon route components.
     *
     * @param array $components
     * @return  string
     */
    public function buildLink(array $components);

    /**
     * Returns true if current route can handle the build request.
     *
     * @param array $components
     * @return  bool
     */
    public function canHandle(array $components);

    /**
     * Returns parsed route data.
     *
     * @return  array
     */
    public function getRouteData();

    /**
     * Returns true if route applies for ACP.
     *
     * @return  bool
     */
    public function isACP();

    /**
     * Returns true if given request url matches this route.
     *
     * @param string $requestURL
     * @return  bool
     */
    public function matches($requestURL);

    /**
     * Configures this route to handle either ACP or frontend requests.
     *
     * @param bool $isACP true if route handles ACP requests
     */
    public function setIsACP($isACP);
}<commit_msg>Remove IRequestRoute::setIsACP()<commit_after><?php

namespace wcf\system\request\route;

/**
 * Default interface for route implementations.
 *
 * @author  <NAME>
 * @copyright   2001-2019 WoltLab GmbH
 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package WoltLabSuite\Core\System\Request
 * @since   3.0
 */
interface IRequestRoute
{
    /**
     * Builds a link upon route components.
     *
     * @param array $components
     * @return  string
     */
    public function buildLink(array $components);

    /**
     * Returns true if current route can handle the build request.
     *
     * @param array $components
     * @return  bool
     */
    public function canHandle(array $components);

    /**
     * Returns parsed route data.
     *
     * @return  array
     */
    public function getRouteData();

    /**
     * Returns true if route applies for ACP.
     *
     * @return  bool
     */
    public function isACP();

    /**
     * Returns true if given request url matches this route.
     *
     * @param string $requestURL
     * @return  bool
     */
    public function matches($requestURL);
}
{'fraction_non_alphanumeric': 0.10499207606973059, 'fraction_numerical': 0.00792393026941363, 'mean_word_length': 2.326745718050066, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5397580', 'n_tokens_mistral': 743, 'n_tokens_neox': 702, 'n_words': 221}