<commit_before><?php
/*
 *	Lizzy - default and initial settings
 *
 *  Default Values
*/

class Defaults
{

// User configurable Settings -> config/config.yaml:
private $userConfigurableSettingsAndDefaults      = [
            'admin_activityLogging'             => [true, 'If true, logs activities to file '.LOG_FILE.'.' ],
            'admin_allowDisplaynameForLogin'    => [false, 'If true, logs activities to file '.LOG_FILE.'.' ],
            'admin_autoAdminOnLocalhost'        => [false, 'If true, on local host user has admin privileges without login.' ],
            'admin_enableAccessLink'            => [true, 'Activates one-time-access-link login mechanism.' ],
            'admin_defaultAccessLinkValidyTime' => [900,    'Default Time in seconds during whith an access-link is valid.' ],
            'admin_defaultGuestGroup'           => ['guest', 'Name of default group for self-registration.' ],
            'admin_defaultLoginValidityPeriod'  => [86400, 'Defines how long a user can access the page since the last login.' ],
            'admin_enableDailyUserTask'         => [true, '[false|true] If true, looks for "code/user-daily-task.php" and executes it.' ],
            'admin_enableEditing'               => [true, '[true|false] enables online editing' ],
            'admin_hideWhileEditing'            => [false, 'List of CSS-selectors which shall be hidden while online editing is active, e.g. [#menu, .logo]' ],
            'admin_logClientAccesses'           => [false, 'Activates logging of user accesses.' ],
            'admin_useRequestRewrite'           => [true, '[true|false] If true, assumes web-server supports request-rewrite (e.g. .htaccess).' ],
            'admin_userAllowSelfAdmin'          => [true, 'If true, user can modify their account after they logged in' ],
            'admin_webmasterEmail'              => [true, 'E-mail address of webmaster' ],

            'custom_permitUserCode'             => [false, "[true|false] Only if true, user-provided code can be executed. And only if located in '".USER_CODE_PATH."'" ],
            'custom_permitUserInitCode'         => [false, "[true|false] Only if true, user-provided init-code can be executed. And only if located in '".USER_CODE_PATH."'" ],
            'custom_permitUserVarDefs'          => ['sandboxed', '[\'sandboxed\'|true|false] Only if true, "_code/user-var-defs.php" will be executed.' ],
            'custom_wrapperTag'                 => [false, 	'The HTML tag in which MD-files are wrapped (default: section)' ],

            'debug_allowDebugInfo'              => [false, '[false|true|group] If true, debugging Info can be activated: log in as admin and invoke URL-cmd "?debug"' ],
            'debug_autoForceBrowserCache'       => [false, '[true|false] Determines whether the browser is forced to reload css and js resources when they have been modified.' ],
            'debug_collectBrowserSignatures'    => [false, '[false|true] If true, Lizzy records browser signatures of visitors.' ],
            'debug_compileScssWithLineNumbers'  => [false, '[false|true] If true, original line numbers are added as comments to compiled CSS."' ],
            'debug_errorLogging'                => [false, 'Enable or disabling logging.' ],
            'debug_forceBrowserCacheUpdate'     => [false, 'Forces the browser to reload css and js resources' ],
            'debug_logClientAccesses'           => [false, '[false|true] If true, Lizzy records visits (IP-addresses and browser/os types).' ],
            'debug_showDebugInfo'               => [false, '[false|true|group] If true, debugging info is appended to the page (prerequisite: localhost or logged in as editor/admin)' ],
            'debug_showUndefinedVariables'      => [false, '[false|true] If true, all undefined static variables (i.e. obtained from yaml-files) are marked.' ],
            'debug_showVariablesUnreplaced'     => [false, '[false|true] If true, all static variables (i.e. obtained from yaml-files) are render as &#123;&#123; name }}.' ],
            'debug_suppressInsecureConnectWarning' => [false, '[false|true] If true, doesn\'t warn when detecting an insecure connection (i.e. HTTP, not HTTPS).' ],
            'debug_monitorUnusedVariables'      => [false, '[false|true] If true, Lizzy keeps track of variable usage. Initialize tracking with url-arg "?reset"' ],

            //'feature_autoAttrFile'              => [false, 'Name of file (in $configPath) which defines the automatic assignment of class-names to HTML-elements. Used to simplify deployment of CSS-Frameworks, such as Bootstrap.' ],
            'feature_autoLoadClassBasedModules' => [true, '[false|true] If true, automatically loads modules that are invoked by applying classes, e.g. .editable' ],
            'feature_autoLoadJQuery'            => [true, '[true|false] whether jQuery should be loaded automatically (even if not initiated by one of the macros)' ],
            'feature_cssFramework'              => ['', 'Name of CSS-Framework to be invoked {PureCSS/w3.css}' ],
            'feature_enableAllowOrigin'         => [false, '[true|false] If true, Lizzy allows to produce a "allow origin" header' ],
            'feature_enableIFrameResizing'      => [true, '[true|false] If true, includes js code required by other pages to iFrame-enbedd this site' ],
            'feature_enableSelfSignUp'          => [false, '[true|false] If true, visitors can create a guest account on their own.' ],
            'feature_filterRequestString'       => [false, '[true|false] If true, permits only regular text in requests. Special characters and anything enclosed by them will be discarded.' ],
            'feature_frontmatterCssLocalToSection' => [false, '[true|false] If true, all CSS rules in Frontmatter will be modified to apply only to the current section (i.e. md-file content).' ],
            'feature_jQueryModule'              => ['JQUERY', 'One of [ JQUERY | JQUERY1 | JQUERY2 | JQUERY3 ], default is jQuery 3.x.' ],
            'feature_loadFontAwesome'           => [false, '[true|false] loads Font-Awesome support' ],
            'feature_pageSwitcher'              => [false, '[true|false] whether code should be added to support page switching (by arrow-keys or swipe gestures)' ],
            'feature_lateImgLoading'            => [false, '[true|false] enables general use of lazy-loading of images' ],
            'feature_quickview'                 => [true, '[true|false] enables automatic Quickview of images' ],
            'feature_ImgDefaultMaxDim'          => ['1600x1200', 'Defines the max dimensions ("WxH") to which Lizzy automatically converts images which it finds in the pages folders.' ],
            'feature_SrcsetDefaultStepSize'     => [300, 'Defines the step size when Lizzy creates srcsets for images.' ],
            'feature_preloadLoginForm'          => [false, '[true|false] If true, code for login popup is preloaded and opens without page load.' ],
            'feature_renderTxtFiles'            => [false, '[true|false] If true, all .txt files in the pages folder are rendered (in &lt;pre>-tags, i.e. as is). Otherwise they are ignored.' ],
            'feature_screenSizeBreakpoint'      => [480, '[px] Determines the point where Lizzy switches from small to large screen mode.' ],
            'feature_selflinkAvoid'             => [true, '[true|false] If true, the nav-link of the current page is replaced with a local page link (to improve accessibility).' ],
            'feature_sitemapFromFolders'        => [false, '[true|false] If true, the sitemap will be derieved from the folder structure under pages/, rather than the config/sitemap.yaml file.' ],
            'feature_slideShowSupport'          => [false, '[true|false] If true, provides support for slide-shows' ],
            'feature_supportLegacyBrowsers'     => [false, '[true|false] Determines whether jQuery 3 can be loaded, if false jQuery 1 is invoked' ],
            'feature_touchDeviceSupport'        => [true, '[true|false] Determines whether to support swipe gestures etc. on touch devices.' ],

            'path_logPath'                      => [LOGS_PATH, '[true|Name] Name of folder to which logging output should be sent. Or "false" for disabling logging.' ],<commit_msg>Default for feature_enableIFrameResizing -> false<commit_after><?php
/*
 *	Lizzy - default and initial settings
 *
 *  Default Values
*/

class Defaults
{

// User configurable Settings -> config/config.yaml:
private $userConfigurableSettingsAndDefaults      = [
            'admin_activityLogging'             => [true, 'If true, logs activities to file '.LOG_FILE.'.' ],
            'admin_allowDisplaynameForLogin'    => [false, 'If true, logs activities to file '.LOG_FILE.'.' ],
            'admin_autoAdminOnLocalhost'        => [false, 'If true, on local host user has admin privileges without login.' ],
            'admin_enableAccessLink'            => [true, 'Activates one-time-access-link login mechanism.' ],
            'admin_defaultAccessLinkValidyTime' => [900,    'Default Time in seconds during whith an access-link is valid.' ],
            'admin_defaultGuestGroup'           => ['guest', 'Name of default group for self-registration.' ],
            'admin_defaultLoginValidityPeriod'  => [86400, 'Defines how long a user can access the page since the last login.' ],
            'admin_enableDailyUserTask'         => [true, '[false|true] If true, looks for "code/user-daily-task.php" and executes it.' ],
            'admin_enableEditing'               => [true, '[true|false] enables online editing' ],
            'admin_hideWhileEditing'            => [false, 'List of CSS-selectors which shall be hidden while online editing is active, e.g. [#menu, .logo]' ],
            'admin_logClientAccesses'           => [false, 'Activates logging of user accesses.' ],
            'admin_useRequestRewrite'           => [true, '[true|false] If true, assumes web-server supports request-rewrite (e.g. .htaccess).' ],
            'admin_userAllowSelfAdmin'          => [true, 'If true, user can modify their account after they logged in' ],
            'admin_webmasterEmail'              => [true, 'E-mail address of webmaster' ],

            'custom_permitUserCode'             => [false, "[true|false] Only if true, user-provided code can be executed. And only if located in '".USER_CODE_PATH."'" ],
            'custom_permitUserInitCode'         => [false, "[true|false] Only if true, user-provided init-code can be executed. And only if located in '".USER_CODE_PATH."'" ],
            'custom_permitUserVarDefs'          => ['sandboxed', '[\'sandboxed\'|true|false] Only if true, "_code/user-var-defs.php" will be executed.' ],
            'custom_wrapperTag'                 => [false, 	'The HTML tag in which MD-files are wrapped (default: section)' ],

            'debug_allowDebugInfo'              => [false, '[false|true|group] If true, debugging Info can be activated: log in as admin and invoke URL-cmd "?debug"' ],
            'debug_autoForceBrowserCache'       => [false, '[true|false] Determines whether the browser is forced to reload css and js resources when they have been modified.' ],
            'debug_collectBrowserSignatures'    => [false, '[false|true] If true, Lizzy records browser signatures of visitors.' ],
            'debug_compileScssWithLineNumbers'  => [false, '[false|true] If true, original line numbers are added as comments to compiled CSS."' ],
            'debug_errorLogging'                => [false, 'Enable or disabling logging.' ],
            'debug_forceBrowserCacheUpdate'     => [false, 'Forces the browser to reload css and js resources' ],
            'debug_logClientAccesses'           => [false, '[false|true] If true, Lizzy records visits (IP-addresses and browser/os types).' ],
            'debug_showDebugInfo'               => [false, '[false|true|group] If true, debugging info is appended to the page (prerequisite: localhost or logged in as editor/admin)' ],
            'debug_showUndefinedVariables'      => [false, '[false|true] If true, all undefined static variables (i.e. obtained from yaml-files) are marked.' ],
            'debug_showVariablesUnreplaced'     => [false, '[false|true] If true, all static variables (i.e. obtained from yaml-files) are render as &#123;&#123; name }}.' ],
            'debug_suppressInsecureConnectWarning' => [false, '[false|true] If true, doesn\'t warn when detecting an insecure connection (i.e. HTTP, not HTTPS).' ],
            'debug_monitorUnusedVariables'      => [false, '[false|true] If true, Lizzy keeps track of variable usage. Initialize tracking with url-arg "?reset"' ],

            //'feature_autoAttrFile'              => [false, 'Name of file (in $configPath) which defines the automatic assignment of class-names to HTML-elements. Used to simplify deployment of CSS-Frameworks, such as Bootstrap.' ],
            'feature_autoLoadClassBasedModules' => [true, '[false|true] If true, automatically loads modules that are invoked by applying classes, e.g. .editable' ],
            'feature_autoLoadJQuery'            => [true, '[true|false] whether jQuery should be loaded automatically (even if not initiated by one of the macros)' ],
            'feature_cssFramework'              => ['', 'Name of CSS-Framework to be invoked {PureCSS/w3.css}' ],
            'feature_enableAllowOrigin'         => [false, '[true|false] If true, Lizzy allows to produce a "allow origin" header' ],
            'feature_enableIFrameResizing'      => [false, '[true|false] If true, includes js code required by other pages to iFrame-enbedd this site' ],
            'feature_enableSelfSignUp'          => [false, '[true|false] If true, visitors can create a guest account on their own.' ],
            'feature_filterRequestString'       => [false, '[true|false] If true, permits only regular text in requests. Special characters and anything enclosed by them will be discarded.' ],
            'feature_frontmatterCssLocalToSection' => [false, '[true|false] If true, all CSS rules in Frontmatter will be modified to apply only to the current section (i.e. md-file content).' ],
            'feature_jQueryModule'              => ['JQUERY', 'One of [ JQUERY | JQUERY1 | JQUERY2 | JQUERY3 ], default is jQuery 3.x.' ],
            'feature_loadFontAwesome'           => [false, '[true|false] loads Font-Awesome support' ],
            'feature_pageSwitcher'              => [false, '[true|false] whether code should be added to support page switching (by arrow-keys or swipe gestures)' ],
            'feature_lateImgLoading'            => [false, '[true|false] enables general use of lazy-loading of images' ],
            'feature_quickview'                 => [true, '[true|false] enables automatic Quickview of images' ],
            'feature_ImgDefaultMaxDim'          => ['1600x1200', 'Defines the max dimensions ("WxH") to which Lizzy automatically converts images which it finds in the pages folders.' ],
            'feature_SrcsetDefaultStepSize'     => [300, 'Defines the step size when Lizzy creates srcsets for images.' ],
            'feature_preloadLoginForm'          => [false, '[true|false] If true, code for login popup is preloaded and opens without page load.' ],
            'feature_renderTxtFiles'            => [false, '[true|false] If true, all .txt files in the pages folder are rendered (in &lt;pre>-tags, i.e. as is). Otherwise they are ignored.' ],
            'feature_screenSizeBreakpoint'      => [480, '[px] Determines the point where Lizzy switches from small to large screen mode.' ],
            'feature_selflinkAvoid'             => [true, '[true|false] If true, the nav-link of the current page is replaced with a local page link (to improve accessibility).' ],
            'feature_sitemapFromFolders'        => [false, '[true|false] If true, the sitemap will be derieved from the folder structure under pages/, rather than the config/sitemap.yaml file.' ],
            'feature_slideShowSupport'          => [false, '[true|false] If true, provides support for slide-shows' ],
            'feature_supportLegacyBrowsers'     => [false, '[true|false] Determines whether jQuery 3 can be loaded, if false jQuery 1 is invoked' ],
            'feature_touchDeviceSupport'        => [true, '[true|false] Determines whether to support swipe gestures etc. on touch devices.' ],

            'path_logPath'                      => [LOGS_PATH, '[true|Name] Name of folder to which logging output should be sent. Or "false" for disabling logging.' ],
{'fraction_non_alphanumeric': 0.11316884840441575, 'fraction_numerical': 0.004222718224045364, 'mean_word_length': 2.7866605756052993, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 118, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2439330', 'n_tokens_mistral': 4465, 'n_tokens_neox': 4324, 'n_words': 1567}