<commit_before><?php
declare(ENCODING = 'utf-8');
namespace F3\Welcome\Controller;

/*                                                                        *
 * This script belongs to the FLOW3 package "Welcome".                    *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License as published by the *
 * Free Software Foundation, either version 3 of the License, or (at your *
 * option) any later version.                                             *
 *                                                                        *
 * This script is distributed in the hope that it will be useful, but     *
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
 * General Public License for more details.                               *
 *                                                                        *
 * You should have received a copy of the GNU Lesser General Public       *
 * License along with the script.                                         *
 * If not, see http://www.gnu.org/licenses/lgpl.html                      *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

/**
 * Controller with a welcome start screen for FLOW3
 *
 * @version $Id$
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
 */
class StandardController extends \F3\FLOW3\MVC\Controller\ActionController {

	/**
	 * @var \F3\FLOW3\Package\ManagerInterface
	 * @inject
	 */
	protected $packageManager;

	/**
	 * Index action
	 *
	 * @return void
	 * @author <NAME> <<EMAIL>>
	 * @author <NAME> <<EMAIL>>
	 * @author <NAME> <<EMAIL>>
	 */
	public function indexAction() {
		$this->view->assign('baseURI', $this->request->getBaseURI());
		$this->view->assign('flow3PathRoot', realpath(FLOW3_PATH_ROOT));
		$this->view->assign('flow3PathWeb', realpath(FLOW3_PATH_WEB));
		$this->view->assign('myPackageUrl', $this->uriBuilder->uriFor('index', array(), 'Standard', 'MyPackage'));
		$this->view->assign('isWindows', $this->isWindows());

		$flow3Package = $this->packageManager->getPackage('FLOW3');
		$version = $flow3Package->getPackageMetaData()->getVersion();
		$this->view->assign('version', $version);

		$activePackages = $this->packageManager->getActivePackages();
		$this->view->assign('activePackages', $activePackages);

		$this->view->assign('notDevelopmentContext', $this->objectManager->getContext() !== 'Development');
	}

	/**
	 * Determines whether FLOW3 runs on a Windows machine.
	 * @todo this might be a useful static method for F3/FLOW3/Utility/Environment
	 *
	 * @return boolean TRUE if current OS is Windows based, otherwise FALSE.
	 * @author <NAME> <<EMAIL>>
	 */
	protected function isWindows() {
		return (strtolower(substr(PHP_OS, 0, 3)) === 'win');
	}

	/**
	 * @return void
	 * @author <NAME> <<EMAIL>>
	 */
	public function redirectAction() {
		$this->redirect('index');
	}
}
?><commit_msg>[~API] FLOW3 (Log): setLogFileURL() was renamed to setLogFileUrl() in FileBackend. [~API] FLOW3 (MVC): redirectToURI() was renamed to redirectToUri() in AbstractController. [~API] FLOW3 (MVC): setRequestURI(), getRequestURI(), setBaseURI() and getBaseURI() were renamed to *Uri() in Request. [~API] FLOW3 (Property): DataType\URI was renamed to DataType\Uri. [~API] FLOW3 (Utility): getRequestURI() was renamed to getRequestUri() in Environment. [~TASK] Fluid (Service): Refactored XML generators a little. [~TASK] DocumentationBrowser: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed. [~TASK] FLOW3: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed. [~TASK] Fluid: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed. [~TASK] Kickstart: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed. [~TASK] Testing: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed. [~TASK] Welcome: Moved towards more consistent class, function and variable naming: changed uppercase acronyms to studlyCaps or StudlyCaps as needed.<commit_after><?php
declare(ENCODING = 'utf-8');
namespace F3\Welcome\Controller;

/*                                                                        *
 * This script belongs to the FLOW3 package "Welcome".                    *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License as published by the *
 * Free Software Foundation, either version 3 of the License, or (at your *
 * option) any later version.                                             *
 *                                                                        *
 * This script is distributed in the hope that it will be useful, but     *
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
 * General Public License for more details.                               *
 *                                                                        *
 * You should have received a copy of the GNU Lesser General Public       *
 * License along with the script.                                         *
 * If not, see http://www.gnu.org/licenses/lgpl.html                      *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

/**
 * Controller with a welcome start screen for FLOW3
 *
 * @version $Id$
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
 */
class StandardController extends \F3\FLOW3\MVC\Controller\ActionController {

	/**
	 * @var \F3\FLOW3\Package\ManagerInterface
	 * @inject
	 */
	protected $packageManager;

	/**
	 * Index action
	 *
	 * @return void
	 * @author <NAME> <<EMAIL>>
	 * @author <NAME> <<EMAIL>>
	 * @author <NAME> <<EMAIL>>
	 */
	public function indexAction() {
		$this->view->assign('flow3PathRoot', realpath(FLOW3_PATH_ROOT));
		$this->view->assign('flow3PathWeb', realpath(FLOW3_PATH_WEB));
		$this->view->assign('myPackageUrl', $this->uriBuilder->uriFor('index', array(), 'Standard', 'MyPackage'));
		$this->view->assign('isWindows', $this->isWindows());

		$flow3Package = $this->packageManager->getPackage('FLOW3');
		$version = $flow3Package->getPackageMetaData()->getVersion();
		$this->view->assign('version', $version);

		$activePackages = $this->packageManager->getActivePackages();
		$this->view->assign('activePackages', $activePackages);

		$this->view->assign('notDevelopmentContext', $this->objectManager->getContext() !== 'Development');
	}

	/**
	 * Determines whether FLOW3 runs on a Windows machine.
	 * @todo this might be a useful static method for F3/FLOW3/Utility/Environment
	 *
	 * @return boolean TRUE if current OS is Windows based, otherwise FALSE.
	 * @author <NAME> <<EMAIL>>
	 */
	protected function isWindows() {
		return (strtolower(substr(PHP_OS, 0, 3)) === 'win');
	}

	/**
	 * @return void
	 * @author <NAME> <<EMAIL>>
	 */
	public function redirectAction() {
		$this->redirect('index');
	}
}
?>
{'fraction_non_alphanumeric': 0.11367069486404834, 'fraction_numerical': 0.006545820745216516, 'mean_word_length': 2.2244318181818183, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '399646', 'n_tokens_mistral': 2108, 'n_tokens_neox': 1990, 'n_words': 663}