<commit_before><?php
$site_name = "_common_assets_barebone"; // name of the site to be upgraded
$source    = "http://www.upstate.edu/cascade-admin/standard-model/source/";

/*
This program reads source code from the Upstate server,
and update all library formats and xml blocks.
*/

require_once('auth_tutorial7.php');

// to prevent time-out
set_time_limit( 10000 );
// to prevent using up memory when traversing a large site
ini_set( 'memory_limit', '2048M' );

use cascade_ws_AOHS      as aohs;
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
{
    $formats_folder = $cascade->getAsset(
        a\Folder::TYPE, "formats", $site_name
    );
    $velocity_folder = $cascade->getAsset(
        a\Folder::TYPE, "formats/library/velocity", $site_name
    );
    
    $library_format_names = array(
        "chanw_database_utilities",
        "chanw_global_deque",<commit_msg>Initial commit<commit_after><?php
$site_name = "_common_assets_barebone"; // name of the site to be upgraded
$source    = "http://www.upstate.edu/cascade-admin/standard-model/source/";

/*
This program reads source code from the Upstate server,
and updates all library formats and xml blocks.
*/

require_once('auth_tutorial7.php');

// to prevent time-out
set_time_limit( 10000 );
// to prevent using up memory when traversing a large site
ini_set( 'memory_limit', '2048M' );

use cascade_ws_AOHS      as aohs;
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
{
    $formats_folder = $cascade->getAsset(
        a\Folder::TYPE, "formats", $site_name
    );
    $velocity_folder = $cascade->getAsset(
        a\Folder::TYPE, "formats/library/velocity", $site_name
    );
    
    $library_format_names = array(
        "chanw_database_utilities",
        "chanw_global_deque",
{'fraction_non_alphanumeric': 0.1075050709939148, 'fraction_numerical': 0.010141987829614604, 'mean_word_length': 3.7888349514563107, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2472073', 'n_tokens_mistral': 702, 'n_tokens_neox': 655, 'n_words': 174}