<commit_before><?php
/**
 * Copyright 2005-2010, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2005-2010, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

/**
 * Template Shell
 *
 * @package templates
 * @subpackage templates.subtemplates
 */
class TemplateShell extends Shell {


	public function main() {
		$model = $this->in('Model name');
		$controller = Inflector::pluralize($model);
		$modelSlugged = $this->in('Do you want to bake model using slug or id: slug/id', 's/i', 'i');
		$hasParent = $this->in('Do you want to bake model that have parent model: yes/no', 'y/n', 'n');
		if ($hasParent == 'y') {
			$parent = $this->in('Parent model name');
			$parentSlugged = $this->in('Do you have parent model accessed using slug or id: slug/id', 's/i', 'i');
		}
		$userDependent = $this->in('Do you want to bake model that depend of user model: yes/no', 'y/n', 'n');
		if ($userDependent == 'y') {
			$user = $this->in('User model name', null, 'User');
		}
		$controllerActions = $this->in('Do you want to bake controller with all methods: yes/public/admin', 'y/p/a', 'y');
		$appTestCase = $this->in('Do you want to inherit test cases from AppTestCase: yes/no', 'y/n', 'n');
		
		if ($controllerActions == 'y') {
			$controllerActions = 'public admin';
		} elseif ($controllerActions == 'p') {<commit_msg>Tweaked grammar in the questions asked after running 'cake template' command<commit_after><?php
/**
 * Copyright 2005-2010, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2005-2010, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

/**
 * Template Shell
 *
 * @package templates
 * @subpackage templates.subtemplates
 */
class TemplateShell extends Shell {


	public function main() {
		$model = $this->in('Model name:');
		$controller = Inflector::pluralize($model);
		$modelSlugged = $this->in("Do you want to bake model '$model' using a slug or id: slug/id", 's/i', 'i');
		$hasParent = $this->in("Is the model '$model' dependent on a parent model: yes/no", 'y/n', 'n');
		if ($hasParent == 'y') {
			$parent = $this->in('Parent model name');
			$parentSlugged = $this->in('Do you have parent model accessed using slug or id: slug/id', 's/i', 'i');
		}
		$userDependent = $this->in("Is the model '$model' dependent on the user model: yes/no", 'y/n', 'n');
		if ($userDependent == 'y') {
			$user = $this->in('Name of your user model:', null, 'User');
		}
		$controllerActions = $this->in('Do you want to bake the controller with all methods: yes/public/admin', 'y/p/a', 'y');
		$appTestCase = $this->in('Do you want to inherit test cases from AppTestCase: yes/no', 'y/n', 'n');
		
		if ($controllerActions == 'y') {
			$controllerActions = 'public admin';
		} elseif ($controllerActions == 'p') {
{'fraction_non_alphanumeric': 0.17032792104425343, 'fraction_numerical': 0.010187838268067495, 'mean_word_length': 4.142389525368249, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1179672', 'n_tokens_mistral': 1075, 'n_tokens_neox': 978, 'n_words': 328}