<commit_before><?php
    /**
     * @desc Sandbox (test) file for VAST library
     * @author <NAME> a.k.a. Manti
     * @author <EMAIL>
     * @link http://www.niiar.com
     * @date 18.06.12 12:24
     * @version 1.0
     */

    // Get VAST instance
    // Default version 3.0
    require_once 'VAST.php';
    $vast = VAST::getInstance();

    // Set params
    $vast->setSystem('NewVASTDataProvider');
    $vast->setTitle('title');

    $vast->setSource('http://www.data-provider.com/source');
    $vast->setWidth(600);
    $vast->setHeight(400);
    $vast->setBitrate(512);
    $vast->setDuration(300);

    // Set additional params
    $vast->setDelivery('progressive');
    $vast->setMIMEType('video/x-flv');
    $xml = $vast->inline()->toString();

    echo '<code>' . $xml . '</code>';<commit_msg>Add simple template for sandbox<commit_after><?php
    /**
     * @desc Sandbox (test) file for VAST library
     * @author <NAME> a.k.a. Manti
     * @author <EMAIL>
     * @link http://www.niiar.com
     * @date 18.06.12 12:24
     * @version 1.0a
     */

    try {
        // Get VAST instance
        // Default version 3.0
        require_once 'VAST.php';
        $vast = VAST::getInstance();

        // Set params
        $vast->setSystem('NewVASTDataProvider');
        $vast->setTitle('title');

        $vast->setSource('http://www.data-provider.com/source');
        $vast->setWidth(600);
        $vast->setHeight(400);
        $vast->setBitrate(512);
        $vast->setDuration(300);

        // Set additional params
        $vast->setDelivery('progressive');
        $vast->setMIMEType('video/x-flv');

        // Get XML result
        $xml = $vast->inline()->toString();
        $result .= '<h3>VAST3.0 Inline</h3>';
        $result .= '<pre>' . htmlentities($xml) . '</pre>';

        $xml = $vast->wrap()->toString();
        $result .= '<h3>VAST3.0 Wrapper</h3>';
        $result .= '<pre>' . htmlentities($xml) . '</pre>';
    } catch (Exception $e) {
        $result .= '<h3>Catchable Error</h3>';
        $result = '<pre>' . $e->getMessage() . '</pre>';
        $result .= '<h3>Backtrace</h3>';
        $result = '<pre>' . $e->getTraceAsString() . '</pre>';
    }
?>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="http://dx.niiar.com/lts/m2/default.css" />
    </head>
    <body>
        <div id="wrapper">
            <?php echo $result; ?>
        </div>
    </body>
</html>
{'fraction_non_alphanumeric': 0.20461095100864554, 'fraction_numerical': 0.026759983532317826, 'mean_word_length': 2.172323759791123, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 62, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '4456423', 'n_tokens_mistral': 885, 'n_tokens_neox': 823, 'n_words': 153}