<commit_before><?php

  /**
  * Checks step - check environment - PHP version, are folder writable etc
  *
  * @package ScriptInstaller
  * @subpackage installation
  * @version 1.0
  * @http://www.projectpier.org/
  */
  class ChecksStep extends ScriptInstallerStep {
    
    /**
    * Array of files and folders that need to writable
    *
    * @var array
    */
    private $check_is_writable = null;
    
    /**
    * Array of extensions that need to be present for ProjectPier to be installed
    *
    * @var array
    */
    private $check_extensions = null;
  
    /**
    * Construct the ChecksStep
    *
    * @access public
    * @param void
    * @return ChecksStep
    */
    function __construct() {
      $this->setName('Server check');
      
      $this->check_is_writable = array(
        '/config',
        '/public/files',
        '/cache',
        '/upload'
      ); // array
      
      $this->check_extensions = array(
        'mysql' => true, 
        'calendar' => false, 
        'gd' => false, 
        'simplexml' => false
      ); // array

    } // __construct
    
    /**
    * Execute environment checks
    *<commit_msg>commit 65 add /tmp to writable directories<commit_after><?php

  /**
  * Checks step - check environment - PHP version, are folder writable etc
  *
  * @package ScriptInstaller
  * @subpackage installation
  * @version 1.0
  * @http://www.projectpier.org/
  */
  class ChecksStep extends ScriptInstallerStep {
    
    /**
    * Array of files and folders that need to writable
    *
    * @var array
    */
    private $check_is_writable = null;
    
    /**
    * Array of extensions that need to be present for ProjectPier to be installed
    *
    * @var array
    */
    private $check_extensions = null;
  
    /**
    * Construct the ChecksStep
    *
    * @access public
    * @param void
    * @return ChecksStep
    */
    function __construct() {
      $this->setName('Server check');
      
      $this->check_is_writable = array(
        '/config',
        '/public/files',
        '/tmp',
        '/cache',
        '/upload'
      ); // array
      
      $this->check_extensions = array(
        'mysql' => true, 
        'calendar' => false, 
        'gd' => false, 
        'simplexml' => false
      ); // array

    } // __construct
    
    /**
    * Execute environment checks
    *
{'fraction_non_alphanumeric': 0.1207115628970775, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 1.8186157517899761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2137867', 'n_tokens_mistral': 719, 'n_tokens_neox': 703, 'n_words': 185}