<commit_before><?php

/**
 * UberGallery is an easy to use, simple to manage, web photo gallery written in
 * PHP. UberGallery does not require a database and supports JPEG, GIF and PNG 
 * file types. Simply upload your images and UberGallery will automatically 
 * generate thumbnails and output standards complaint XHTML markup on the fly.
 * 
 * This software is distributed under the MIT License
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * More info available at http://www.ubergallery.net
 * 
 * @author <NAME> (http://www.chriskankiewicz.com)
 * @copyright 2012 <NAME>
 */
class UberGallery {
    
    // Define application version
    const VERSION = '2.4.2-dev';
    
    // Reserve some variables
    protected $_config     = array();
    protected $_imgDir     = NULL;
    protected $_appDir     = NULL;
    protected $_index      = NULL;
    protected $_rThumbsDir = NULL;
    protected $_rImgDir    = NULL;
    protected $_now        = NULL;
    
    
    /**
     * UberGallery construct function. Runs on object creation.
     */
    public function __construct() {
        
        // Get timestamp for the current time
        $this->_now = time();
        
        // Sanitize input and set current page
        if (isset($_GET['page'])) {
            $this->_page = (integer) $_GET['page'];
        } else {
            $this->_page = 1;
        }
        
        // Set class directory constant<commit_msg>Bumpped version to 2.4.2<commit_after><?php

/**
 * UberGallery is an easy to use, simple to manage, web photo gallery written in
 * PHP. UberGallery does not require a database and supports JPEG, GIF and PNG 
 * file types. Simply upload your images and UberGallery will automatically 
 * generate thumbnails and output standards complaint XHTML markup on the fly.
 * 
 * This software is distributed under the MIT License
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * More info available at http://www.ubergallery.net
 * 
 * @author <NAME> (http://www.chriskankiewicz.com)
 * @copyright 2012 <NAME>
 */
class UberGallery {
    
    // Define application version
    const VERSION = '2.4.2';
    
    // Reserve some variables
    protected $_config     = array();
    protected $_imgDir     = NULL;
    protected $_appDir     = NULL;
    protected $_index      = NULL;
    protected $_rThumbsDir = NULL;
    protected $_rImgDir    = NULL;
    protected $_now        = NULL;
    
    
    /**
     * UberGallery construct function. Runs on object creation.
     */
    public function __construct() {
        
        // Get timestamp for the current time
        $this->_now = time();
        
        // Sanitize input and set current page
        if (isset($_GET['page'])) {
            $this->_page = (integer) $_GET['page'];
        } else {
            $this->_page = 1;
        }
        
        // Set class directory constant
{'fraction_non_alphanumeric': 0.0998272884283247, 'fraction_numerical': 0.0065630397236614854, 'mean_word_length': 2.221357063403782, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '1042948', 'n_tokens_mistral': 817, 'n_tokens_neox': 787, 'n_words': 276}