<commit_before><?php
App::uses('File', 'Utility');
App::uses('ConnectionManager', 'Model');

class InstallController extends GalleryAppController
{


    public function configuration_form()
    {
        $this->render('Gallery.Install/config');
    }

    /**
     * Configure galleries and create mysql tables
     */
    public function configure()
    {
        $files_path = WWW_ROOT . 'files/';
        if (!file_exists($files_path)) {
            mkdir($files_path, 0755);
        }
        $galleries_path = $files_path . 'gallery/';
        if (!file_exists($galleries_path)) {
            mkdir($galleries_path, 0755);
        }

        $this->_configureDatabase();

        sleep(10);

        $this->Session->setFlash('Success! Gallery is now installed in your app.');

        $this->redirect(
            array(
                'controller' => 'gallery',
                'action' => 'index',
                'plugin' => 'gallery'
            )
        );

        $this->render(false, false);
    }
<commit_msg>Remvoing useless sleep<commit_after><?php
App::uses('File', 'Utility');
App::uses('ConnectionManager', 'Model');

class InstallController extends GalleryAppController
{


    public function configuration_form()
    {
        $this->render('Gallery.Install/config');
    }

    /**
     * Configure galleries and create mysql tables
     */
    public function configure()
    {
        $files_path = WWW_ROOT . 'files/';
        if (!file_exists($files_path)) {
            mkdir($files_path, 0755);
        }
        $galleries_path = $files_path . 'gallery/';
        if (!file_exists($galleries_path)) {
            mkdir($galleries_path, 0755);
        }

        $this->_configureDatabase();

        $this->Session->setFlash('Success! Gallery is now installed in your app.');

        $this->redirect(
            array(
                'controller' => 'gallery',
                'action' => 'index',
                'plugin' => 'gallery'
            )
        );

        $this->render(false, false);
    }

{'fraction_non_alphanumeric': 0.14257716805487505, 'fraction_numerical': 0.008819206271435572, 'mean_word_length': 2.043219076005961, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '7368635', 'n_tokens_mistral': 607, 'n_tokens_neox': 556, 'n_words': 113}