<commit_before><?php

$this->headLink()->appendStylesheet(
    $this->basePath() . '/modules/rcm-brightcove-player/style.css'
);
$this->headScript()->appendFile(
    $this->basePath() . 'https://sadmin.brightcove.com/js/BrightcoveExperiences.js'
);

$aspectRatio = explode(':', $instanceConfig['aspectRatio']);
$aspectHeight = $aspectRatio[1] / $aspectRatio[0] * 100;
?>
<style type="text/css">

</style>
<!-- <RcmBrightcovePlayer> -->
<div>
    <a id="bcPlayer_<?= $instanceId ?>"></a>
    <script>
        RcmBrightcoveApiService.bgReadToken = '<?= $config['rcmPlugin']['RcmBrightcovePlayer']['readToken']; ?>';
        RcmBrightcoveApiService.bgUrlToken = '<?= $config['rcmPlugin']['RcmBrightcovePlayer']['urlToken']; ?>';
        RcmBrightcovePlayerService.instantiatePlayerController(<?= htmlentities($instanceId)?>, <?=json_encode($instanceConfig)?>);
    </script>
    <?php

    if (($instanceConfig['type']) == 'single-embed') {
        require('single_player.phtml');
    } elseif (($instanceConfig['type']) == 'multi-embed') {
        require('multi-player.phtml');
    }

    // @todo this should only be loaded as needed
    require('plugin-edit.phtml');

    ?>
</div>
<!-- <RcmBrightcovePlayer> --><commit_msg>Hot fix for locale issues<commit_after><?php

$this->headLink()->appendStylesheet(
    $this->basePath() . '/modules/rcm-brightcove-player/style.css'
);
$this->headScript()->appendFile(
    $this->basePath() . 'https://sadmin.brightcove.com/js/BrightcoveExperiences.js'
);

$aspectRatio = explode(':', $instanceConfig['aspectRatio']);
$aspectHeight = number_format($aspectRatio[1] / $aspectRatio[0] * 100, 2, '.');
?>
<style type="text/css">

</style>
<!-- <RcmBrightcovePlayer> -->
<div>
    <a id="bcPlayer_<?= $instanceId ?>"></a>
    <script>
        RcmBrightcoveApiService.bgReadToken = '<?= $config['rcmPlugin']['RcmBrightcovePlayer']['readToken']; ?>';
        RcmBrightcoveApiService.bgUrlToken = '<?= $config['rcmPlugin']['RcmBrightcovePlayer']['urlToken']; ?>';
        RcmBrightcovePlayerService.instantiatePlayerController(<?= htmlentities($instanceId)?>, <?=json_encode($instanceConfig)?>);
    </script>
    <?php

    if (($instanceConfig['type']) == 'single-embed') {
        require('single_player.phtml');
    } elseif (($instanceConfig['type']) == 'multi-embed') {
        require('multi-player.phtml');
    }

    // @todo this should only be loaded as needed
    require('plugin-edit.phtml');

    ?>
</div>
<!-- <RcmBrightcovePlayer> -->
{'fraction_non_alphanumeric': 0.21287726358148892, 'fraction_numerical': 0.004426559356136821, 'mean_word_length': 4.573991031390134, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 53, 'https://': 2, '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': '3137359', 'n_tokens_mistral': 859, 'n_tokens_neox': 848, 'n_words': 109}