<commit_before><!-- 
/*
*    Copyright 2017 APPNEXUS INC
*
*    Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*        http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*/
-->

<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    </head>
    <body style="margin: 0;padding: 0;">
        <script src="MobileVastPlayer.js"></script>
        <script src="ASTMediationManager.js"></script>
        <script>
            var final_video_content = '<div id="video-content" style="width: 375px; height: 375px, background-color:#000000">';
            var ua = getMobileOperatingSystem();
            var options = {
                "autoInitialSize": true,
                "aspectRatio": "16:9",
                "delayExpandUntilVPAIDImpression": false,
                "delayExpandUntilVPAIDInit": true,
                "initialAudio": "on",
                "initialPlayback": "click", //this needs to be click for the load & play option else the player will load the ad & play automatically
                "showProgressBar": true,
                "allowFullscreen":false, //show the fullscreen control
                "forceAdInFullscreen": false,
                "showBigPlayButton":false, //hide the play/pause big button
                "showPlayToggle":false, //Hide the play/pause small button
                "disableCollapse": false,
                "preloadInlineAudioForIos": true, //this is set to toggle the audio play... if false then there will be no audio until the user clicks on the volume button for IOS player... Not required for HTML player
                "fixedSizePlayer": true,
                "terminateUnresponsiveVPAIDCreative": false,
                "vpaidTimeout": 20000,
                "waterfallTimeout": 15000,
                "waterfallSteps": -1,
                "fitInContainer":false,
                "mobileSDK": true,
                "showFullScreenButton":false,
                "shouldResizeVideoToFillMobileWebview":true,
                "enableNativeInline":true, //this option is required if we are using HTML 5 player
                "controlBarPosition":"below",//important to set the control bar below else it will float
                "learnMore": {
                    "enabled": true,
                    "clickToPause": false
                },
                "data": {
                    "skipOffset": "",
                    "durationMsec": null,
                    "skipOffsetMsec": null,
                    "isVastVideoSkippable": false,
                    "vastProgressEvent": {},
                    "vastDurationMsec": null,
                    "adIcons": null
                },
                "vpaidEnvironmentVars": {
                    "rhythmone": true
                },
                "playerSkin": {
                    "dividerColor": "black",
                },
                "skippable": {
                    "videoThreshold": 15,
                    "videoOffset": 5,
                    "skipLocation": "top-right",
                    "skipText": "Video can be skipped in %%TIME%% seconds",
                    "skipButtonText": "SKIP"
                }
                
            };
        
            function createVastPlayerWithContent(vastContent){
                try{
                    var targetId = "video-content";
                    window.document.write(final_video_content);
                    
                    var targetElement = document.getElementById(targetId);
                    
                    options.targetElementId = targetId;
                    setPlayerLayout(targetElement);
                    
                    APNVideo_MobileVastPlayer.playVast(targetElement,options, vastContent, function(eventName){
                                                       console.log(eventName);
                                                       sendBackMessage(eventName);
                                                       
                                                       });
                }
                catch(e){
                    console.log('Issue loading video into document :' + e.message);
                }
                
            }
        
        function createVastPlayerWithURL(vastUrl){
            try{
                
                var targetId = "video-content";
                window.document.write(final_video_content);
                
                var targetElement = document.getElementById(targetId);
                
                options.targetElementId = targetId;
                
                APNVideo_MobileVastPlayer.loadAndPlayVast(targetElement,options, vastUrl, function(eventName){
                                                          console.log(eventName);
                                                          sendBackMessage(eventName);
                });
            }
            catch(e){
                console.log('Issue loading video into document :' + e.message);
            }
            }
        
        
        
        function sendBackMessage(message){
            if(ua == "iOS")
            {
                window.webkit.messageHandlers.observe.postMessage(message);
            } else {
                window.location = "video://"+message;
            }
        }
        
            function setPlayerLayout(targetDiv){
                var maxScreenSize = Math.max(screen.width, screen.height);
                
                if(targetDiv !== undefined){
                    targetDiv.style.position = "absolute";
                    targetDiv.style.left = 0;
                    targetDiv.style.width = maxScreenSize;
                    targetDiv.style.height = maxScreenSize;<commit_msg>modified index.html that has changes made for android<commit_after><!-- 
/*
*    Copyright 2017 APPNEXUS INC
*
*    Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*        http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*/
-->

<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    </head>
    <body style="margin: 0;padding: 0;">
        <script src="MobileVastPlayer.js"></script>
        <script src="ASTMediationManager.js"></script>
        <script>
            var final_video_content = '<div id="video-content" style="width: 375px; height: 375px, background-color:#000000">';
            var ua = getMobileOperatingSystem();
            var options = {
                "autoInitialSize": true,
                "aspectRatio": "16:9",
                "delayExpandUntilVPAIDImpression": false,
                "delayExpandUntilVPAIDInit": true,
                "initialAudio": "on",
                "initialPlayback": "click", //this needs to be click for the load & play option else the player will load the ad & play automatically
                "showProgressBar": true,
                "allowFullscreen":false, //show the fullscreen control
                "forceAdInFullscreen": false,
                "showBigPlayButton":false, //hide the play/pause big button
                "showPlayToggle":false, //Hide the play/pause small button
                "disableCollapse": false,
                "preloadInlineAudioForIos": true, //this is set to toggle the audio play... if false then there will be no audio until the user clicks on the volume button for IOS player... Not required for HTML player
                "fixedSizePlayer": true,
                "terminateUnresponsiveVPAIDCreative": false,
                "vpaidTimeout": 20000,
                "waterfallTimeout": 15000,
                "waterfallSteps": -1,
                "fitInContainer":false,
                "mobileSDK": true,
                "showFullScreenButton":false,
                "shouldResizeVideoToFillMobileWebview":true,
                "enableNativeInline":true, //this option is required if we are using HTML 5 player
                "controlBarPosition":"below",//important to set the control bar below else it will float
                "learnMore": {
                    "enabled": true,
                    "clickToPause": false
                },
                "data": {
                    "skipOffset": "",
                    "durationMsec": null,
                    "skipOffsetMsec": null,
                    "isVastVideoSkippable": false,
                    "vastProgressEvent": {},
                    "vastDurationMsec": null,
                    "adIcons": null
                },
                "vpaidEnvironmentVars": {
                    "rhythmone": true
                },
                "playerSkin": {
                    "dividerColor": "black",
                },
                "skippable": {
                    "videoThreshold": 15,
                    "videoOffset": 5,
                    "skipLocation": "top-right",
                    "skipText": "Video can be skipped in %%TIME%% seconds",
                    "skipButtonText": "SKIP"
                }
                
            };
        
            function createVastPlayerWithContent(vastContent){
                try{
                    var targetId = "video-content";
                    window.document.write(final_video_content);
                    
                    var targetElement = document.getElementById(targetId);
                    
                    options.targetElementId = targetId;
                    setPlayerLayout(targetElement);
                    
                    APNVideo_MobileVastPlayer.playVast(targetElement,options, vastContent, function(eventName){
                                                       console.log(eventName);
                                                       sendBackMessage(eventName);
                                                       
                                                       });
                }
                catch(e){
                    console.log('Issue loading video into document :' + e.message);
                }
                
            }
        
        function createVastPlayerWithURL(vastUrl){
            try{
                
                var targetId = "video-content";
                window.document.write(final_video_content);
                
                var targetElement = document.getElementById(targetId);
                
                options.targetElementId = targetId;
                
                APNVideo_MobileVastPlayer.loadAndPlayVast(targetElement,options, vastUrl, function(eventName){
                                                          console.log(eventName);
                                                          sendBackMessage(eventName);
                });
            }
            catch(e){
                console.log('Issue loading video into document :' + e.message);
            }
            }
        
        
        
        function sendBackMessage(message){
            if(ua == "iOS")
            {
                window.webkit.messageHandlers.observe.postMessage(message);
            } else {
                var jsonString = JSON.stringify(message);
                window.location = "video://"+jsonString;
            }
        }
        
            function setPlayerLayout(targetDiv){
                var maxScreenSize = Math.max(screen.width, screen.height);
                
                if(targetDiv !== undefined){
                    targetDiv.style.position = "absolute";
                    targetDiv.style.left = 0;
                    targetDiv.style.width = maxScreenSize;
                    targetDiv.style.height = maxScreenSize;
{'fraction_non_alphanumeric': 0.08912992218816317, 'fraction_numerical': 0.006759412088343944, 'mean_word_length': 1.3321114369501466, 'pattern_counts': {'":': 90, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5921078', 'n_tokens_mistral': 3070, 'n_tokens_neox': 2811, 'n_words': 727}