<commit_before><?php
/**
 * PHP Command Line Tools
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010 <NAME> (http://girsbrain.org)
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 */

namespace cli;

/**
 * The `Shell` class is a utility class for shell related tasks such as
 * information on width.
 */
class Shell {

	/**
	 * Returns the number of columns the current shell has for display.
	 *
	 * @return int  The number of columns.
	 * @todo Test on more systems.
	 */
	static public function columns() {
		static $columns;

		if ( null === $columns ) {
			if (self::is_windows() ) {
				$output = array();
				exec('mode CON', $output);
				foreach ($output as $line) {
					if (preg_match('/Columns:( )*([0-9]+)/', $line, $matches)) {
						$columns = (int)$matches[2];
						break;
					}
				}
			} else if ( !preg_match( "/(^|,)(\s*)?exec(\s*)?(,|$)/", ini_get( "disable_functions" ) ) ) {<commit_msg>Update fix coding style<commit_after><?php
/**
 * PHP Command Line Tools
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010 <NAME> (http://girsbrain.org)
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 */

namespace cli;

/**
 * The `Shell` class is a utility class for shell related tasks such as
 * information on width.
 */
class Shell {

	/**
	 * Returns the number of columns the current shell has for display.
	 *
	 * @return int  The number of columns.
	 * @todo Test on more systems.
	 */
	static public function columns() {
		static $columns;

		if ( null === $columns ) {
			if (self::is_windows() ) {
				$output = array();
				exec('mode CON', $output);
				foreach ($output as $line) {
					if (preg_match('/Columns:( )*([0-9]+)/', $line, $matches)) {
						$columns = (int)$matches[2];
						break;
					}
				}
			} else if (!preg_match('/(^|,)(\s*)?exec(\s*)?(,|$)/', ini_get('disable_functions'))) {
{'fraction_non_alphanumeric': 0.16682375117813383, 'fraction_numerical': 0.006597549481621112, 'mean_word_length': 3.0670498084291187, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4355978', 'n_tokens_mistral': 775, 'n_tokens_neox': 674, 'n_words': 225}