<commit_before><!DOCTYPE html>
<html>
    <head>
        <title>MediaKeys</title>
        <script src=../video-test.js></script>
        <script>
            function stringToUint8Array(str)
            {
                var arr=[];
                for(var i=0,j=str.length;i<j;++i)
                  arr[i]=str.charCodeAt(i);
                return new Uint8Array(arr);
            }

            var mediaKeys;
            var mediaKeySession;
            var initData = stringToUint8Array('mock');
            var invalidKey = stringToUint8Array('invalid');
            var validKey = stringToUint8Array(
                '{"keys":[{"kty":"oct","kid":"<KEY>');

            function runTest() 
            {
                run('mediaKeys = new MediaKeys("org.w3.clearkey")');<commit_msg>Remove base64 padding from EME tests<commit_after><!DOCTYPE html>
<html>
    <head>
        <title>MediaKeys</title>
        <script src=../video-test.js></script>
        <script>
            function stringToUint8Array(str)
            {
                var arr=[];
                for(var i=0,j=str.length;i<j;++i)
                  arr[i]=str.charCodeAt(i);
                return new Uint8Array(arr);
            }

            var mediaKeys;
            var mediaKeySession;
            var initData = stringToUint8Array('mock');
            var invalidKey = stringToUint8Array('invalid');
            var validKey = stringToUint8Array(
                '{"keys":[{"<KEY>');

            function runTest() 
            {
                run('mediaKeys = new MediaKeys("org.w3.clearkey")');
{'fraction_non_alphanumeric': 0.1331230283911672, 'fraction_numerical': 0.010094637223974764, 'mean_word_length': 1.591503267973856, 'pattern_counts': {'":': 4, '<': 23, '<?xml version=': 0, '>': 21, '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': '417177', 'n_tokens_mistral': 469, 'n_tokens_neox': 442, 'n_words': 78}