<commit_before><?php
require_once('cascade_ws_ns/auth_chanw.php');

use cascade_ws_constants as c;
use cascade_ws_asset as a;
use cascade_ws_property as p;
use cascade_ws_utility as u;
use cascade_ws_exception as e;

try
{
    $site_name    = 'cascade-admin';
    $block_folder =
        $cascade->getAsset( a\Folder::TYPE, '_cascade/blocks/test', $site_name );
    $block_name   = 'folder-index';

    // create a folder index block
    $cib = $cascade->getIndexBlock( $block_folder->getPath() . "/" . $block_name );
    
    if( is_null( $cib ) )
    {
        $cascade->createIndexBlock(
            $block_folder,
            'folder-index',
            c\T::FOLDER,
            NULL,
            $cascade->getAsset( a\Folder::TYPE, '/', $site_name ) // Base Folder
        )->
        setDepthOfIndex( 5 )->
        setIndexFiles( true )->
        setIndexPages( true )->
        edit();
    }
}
catch( \Exception $e )
{
    echo S_PRE . $e . E_PRE;
}
?><commit_msg>Added comments.<commit_after><?php
require_once('cascade_ws_ns/auth_chanw.php');

use cascade_ws_constants as c;
use cascade_ws_asset as a;
use cascade_ws_property as p;
use cascade_ws_utility as u;
use cascade_ws_exception as e;

try
{
    $site_name    = 'cascade-admin';
    $block_folder =
        $cascade->getAsset( a\Folder::TYPE, '_cascade/blocks/test', $site_name );
    $block_name   = 'folder-index';

    // create a folder index block
    $cib = $cascade->getIndexBlock( $block_folder->getPath() . "/" . $block_name );
    
    if( is_null( $cib ) )
    {
        $cascade->createIndexBlock(
            $block_folder,   // parent folder
            $block_name,
            c\T::FOLDER,     // type
            NULL,            // content type
            $cascade->getAsset( a\Folder::TYPE, '/', $site_name ) // folder to index
        )->
        setDepthOfIndex( 5 )->
        setIndexFiles( true )->
        setIndexPages( true )->
        edit();
    }
}
catch( \Exception $e )
{
    echo S_PRE . $e . E_PRE;
}
?>
{'fraction_non_alphanumeric': 0.14028956565152273, 'fraction_numerical': 0.000998502246630055, 'mean_word_length': 2.2532467532467533, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '6337054', 'n_tokens_mistral': 711, 'n_tokens_neox': 688, 'n_words': 143}