<commit_before><?php
namespace piGallery;

require_once __DIR__."/db/entities/User.php";
require_once __DIR__."/db/entities/Role.php";

use piGallery\db\entities\Role;


class Properties{
    /* The language of the site, pick one from the lang directory.
     * If your language not exist, translate from eng :) */
    public static $language = "eng";

    /*The base directory relative to the document root (the www folder)
    Eg.: If the site folder is /var/www/PiGallery than set is 'PiGallery'*/
	public static $documentRoot  = "PiGallery";

    /*The image directory relative to the base folder (the www folder)
    Eg.: If the images folder is /var/www/PiGallery/testimages than set is './testimages'
    Note: it should be relative to the site root.
          If your folder is somewhere else, create a link to the images folder in your site root directory*/
    public static $imageFolder = "./testimages";

    /*-----------Thumbnail settings--------------*/
    /*The thumbnail folder relative to the base folder. !IMPORTANT the folder must be writable!
    Eg.: If the images folder is /var/www/PiGallery/thumbnails than set is './thumbnails'
    Note: it should be relative to the site root.
          If your folder is somewhere else, create a link to the thumbnail folder in your site root directory*/
    public static $thumbnailFolder = "./thumbnails";
    /*The thumbnail sizes that the site generates automatically. (Thumbnail generation is a long process, give only 1 or 2 sizes only)*/
    public static $thumbnailSizes = array(100,300, 500);
    /*The JPEG quality of the thumbnail*/
    public static $thumbnailJPEGQuality = 75;
    /*Set true for resampling or false for resizing only. (true: nice thumbnails, false: better performance)*/
    public static $EnableThumbnailResample = true;


    /*Enables thumbnail and image caching for the browser, true is recommended.*/
    public static $enableImageCaching = true;

    /*Set it true, if the directory names don't appear properly*/
    public static $enableUTF8Encode = true;


    /*Enable the database usage*/
    public static $databaseEnabled = true;

    /*-------------Database settings----------*/
    /*if $databaseEnabled == true*/
    public static $databaseAddress = "localhost";
    public static $databseUserName = "root";
    public static $databsePassword = "<PASSWORD>";
    public static $databseName = "pigallery";

    /*If its true, the site will check at every directory open if indexing is needed or not.
     if need, the site will index the given folder automatically*/
    public static $enableOnTheFlyIndexing = true;

    /*The max number of results, that a search can give. */
    public static $maxSearchResultItems = 500;

    /*No-Database settings*/
    /*if $databaseEnabled == false*/
    /*Following roles are available:
     * - User -- code: 0
     * - Admin -- code: 1
     * */<commit_msg>config adjustment<commit_after><?php
namespace piGallery;

require_once __DIR__."/db/entities/User.php";
require_once __DIR__."/db/entities/Role.php";

use piGallery\db\entities\Role;


class Properties{
    /* The language of the site, pick one from the lang directory.
     * If your language not exist, translate from eng :) */
    public static $language = "eng";

    /*The base directory relative to the document root (the www folder)
    Eg.: If the site folder is /var/www/PiGallery than set is 'PiGallery'*/
	public static $documentRoot  = "PiGallery";

    /*The image directory relative to the base folder (the www folder)
    Eg.: If the images folder is /var/www/PiGallery/testimages than set is './testimages'
    Note: it should be relative to the site root.
          If your folder is somewhere else, create a link to the images folder in your site root directory*/
    public static $imageFolder = "./testimages";

    /*-----------Thumbnail settings--------------*/
    /*The thumbnail folder relative to the base folder. !IMPORTANT the folder must be writable!
    Eg.: If the images folder is /var/www/PiGallery/thumbnails than set is './thumbnails'
    Note: it should be relative to the site root.
          If your folder is somewhere else, create a link to the thumbnail folder in your site root directory*/
    public static $thumbnailFolder = "./thumbnails";
    /*The thumbnail sizes that the site generates automatically. (Thumbnail generation is a long process, give only 1 or 2 sizes only)*/
    public static $thumbnailSizes = array(100,300, 500);
    /*The JPEG quality of the thumbnail*/
    public static $thumbnailJPEGQuality = 75;
    /*Set true for resampling or false for resizing only. (true: nice thumbnails, false: better performance)*/
    public static $EnableThumbnailResample = true;


    /*Enables thumbnail and image caching for the browser, true is recommended.*/
    public static $enableImageCaching = true;

    /*Set it true, if the directory names don't appear properly*/
    public static $enableUTF8Encode = false;


    /*Enable the database usage*/
    public static $databaseEnabled = true;

    /*-------------Database settings----------*/
    /*if $databaseEnabled == true*/
    public static $databaseAddress = "localhost";
    public static $databseUserName = "root";
    public static $databsePassword = "<PASSWORD>";
    public static $databseName = "pigallery";

    /*If its true, the site will check at every directory open if indexing is needed or not.
     if need, the site will index the given folder automatically*/
    public static $enableOnTheFlyIndexing = true;

    /*The max number of results, that a search can give. */
    public static $maxSearchResultItems = 500;

    /*No-Database settings*/
    /*if $databaseEnabled == false*/
    /*Following roles are available:
     * - User -- code: 0
     * - Admin -- code: 1
     * */
{'fraction_non_alphanumeric': 0.10482900842069084, 'fraction_numerical': 0.0065303316721086095, 'mean_word_length': 3.013793103448276, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, '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': '6379536', 'n_tokens_mistral': 1591, 'n_tokens_neox': 1533, 'n_words': 689}