<commit_before>var VimeoState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3};
videojs.Vimeo=videojs.MediaTechController.extend({init:function(a,d,e){videojs.MediaTechController.call(this,a,d,e);this.player_=a;this.player_el_=document.getElementById(this.player_.id());this.player_.controls(!1);this.id_=this.player_.id()+"_vimeo_api";this.el_=videojs.Component.prototype.createEl("iframe",{id:this.id_,className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0,webkitAllowFullScreen:"true",mozallowfullscreen:"true",allowFullScreen:"true"});this.player_el_.insertBefore(this.el_,
this.player_el_.firstChild);this.baseUrl="https"==document.location.protocol?"https://secure.vimeo.com/video/":"http://player.vimeo.com/video/";this.vimeo={};this.vimeoInfo={};var h=this;this.el_.onload=function(){h.onLoad()};this.startMuted=a.options().muted;this.src(a.options().src)}});videojs.Vimeo.prototype.dispose=function(){this.vimeo.api("unload");delete this.vimeo;this.el_.parentNode.removeChild(this.el_);videojs.MediaTechController.prototype.dispose.call(this)};
videojs.Vimeo.prototype.src=function(a){this.isReady_=!1;if(a=a.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/))this.videoId=a[5];a={api:1,byline:0,portrait:0,show_title:0,show_byline:0,show_portait:0,fullscreen:1,player_id:this.id_,autoplay:this.player_.options().autoplay?1:0,loop:this.player_.options().loop?1:0};this.el_.src=this.baseUrl+this.videoId+"?"+videojs.Vimeo.makeQueryString(a)};videojs.Vimeo.prototype.load=function(){};
videojs.Vimeo.prototype.play=function(){this.vimeo.api("play")};videojs.Vimeo.prototype.pause=function(){this.vimeo.api("pause")};videojs.Vimeo.prototype.paused=function(){return this.lastState!==VimeoState.PLAYING&&this.lastState!==VimeoState.BUFFERING};videojs.Vimeo.prototype.currentTime=function(){return this.vimeoInfo.time||0};videojs.Vimeo.prototype.setCurrentTime=function(a){this.vimeo.api("seekTo",a);this.player_.trigger("timeupdate")};
videojs.Vimeo.prototype.duration=function(){return this.vimeoInfo.duration||0};videojs.Vimeo.prototype.buffered=function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered||0)};videojs.Vimeo.prototype.volume=function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume};videojs.Vimeo.prototype.setVolume=function(a){this.vimeo.api("setvolume",a);this.vimeoInfo.volume=a;this.player_.trigger("volumechange")};
videojs.Vimeo.prototype.muted=function(){return this.vimeoInfo.muted||!1};videojs.Vimeo.prototype.setMuted=function(a){a?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume);this.vimeoInfo.muted=a;this.player_.trigger("volumechange")};videojs.Vimeo.prototype.onReady=function(){this.isReady_=!0;this.triggerReady();this.startMuted&&(this.setMuted(!0),this.startMuted=!1)};
videojs.Vimeo.prototype.onLoad=function(){this.vimeo.api&&(this.vimeo.api("unload"),delete this.vimeo);this.vimeo=$f(this.el_);this.vimeoInfo={state:VimeoState.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:this.baseUrl+this.videoId,error:null};var a=this;this.vimeo.addEvent("ready",function(d){a.onReady()});this.vimeo.addEvent("loadProgress",function(d,e){a.onLoadProgress(d)});this.vimeo.addEvent("playProgress",function(d,e){a.onPlayProgress(d)});this.vimeo.addEvent("play",
function(d){a.onPlay()});this.vimeo.addEvent("pause",function(d){a.onPause()});this.vimeo.addEvent("finish",function(d){a.onFinish()});this.vimeo.addEvent("seek",function(d,e){a.onSeek(d)})};videojs.Vimeo.prototype.onLoadProgress=function(a){var d=!this.vimeoInfo.duration;this.vimeoInfo.duration=a.duration;this.vimeoInfo.buffered=a.percent;this.player_.trigger("progress");d&&this.player_.trigger("durationchange")};videojs.Vimeo.prototype.onPlayProgress=function(a){this.vimeoInfo.time=a.seconds;this.player_.trigger("timeupdate")};
videojs.Vimeo.prototype.onPlay=function(){this.vimeoInfo.state=VimeoState.PLAYING;this.player_.trigger("play")};videojs.Vimeo.prototype.onPause=function(){this.vimeoInfo.state=VimeoState.PAUSED;this.player_.trigger("pause")};videojs.Vimeo.prototype.onFinish=function(){this.vimeoInfo.state=VimeoState.ENDED;this.player_.trigger("ended")};videojs.Vimeo.prototype.onSeek=function(a){this.vimeoInfo.time=a.seconds;this.player_.trigger("timeupdate");this.player_.trigger("seeked")};
videojs.Vimeo.prototype.onError=function(a){this.player_.error=a;this.player_.trigger("error")};videojs.Vimeo.isSupported=function(){return!0};videojs.Vimeo.prototype.supportsFullScreen=function(){return!1};videojs.Vimeo.canPlaySource=function(a){return"video/vimeo"==a.type};videojs.Vimeo.makeQueryString=function(a){var d=[],e;for(e in a)a.hasOwnProperty(e)&&d.push(encodeURIComponent(e)+"="+encodeURIComponent(a[e]));return d.join("&")};
var Froogaloop=function(){function a(m){return new a.fn.init(m)}function d(a,c,b){if(!b.contentWindow.postMessage)return!1;var d=b.getAttribute("src").split("?")[0];a=JSON.stringify({method:a,value:c});"//"===d.substr(0,2)&&(d=window.location.protocol+d);b.contentWindow.postMessage(a,d)}function e(a){var c,b;try{c=JSON.parse(a.data),b=c.event||c.method}catch(d){}"ready"!=b||k||(k=!0);if(a.origin!=l)return!1;a=c.value;var e=c.data,g=""===g?null:c.player_id;c=g?f[g][b]:f[b];b=[];if(!c)return!1;void 0!==
a&&b.push(a);e&&b.push(e);g&&b.push(g);return 0<b.length?c.apply(null,b):c.call()}function h(a,c,b){b?(f[b]||(f[b]={}),f[b][a]=c):f[a]=c}var f={},k=!1,l="";a.fn=a.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;a=this.element.getAttribute("src");"//"===a.substr(0,2)&&(a=window.location.protocol+a);a=a.split("/");for(var c="",b=0,d=a.length;b<d;b++){if(3>b)c+=a[b];else break;2>b&&(c+="/")}l=c;return this},api:function(a,c){if(!this.element||
!a)return!1;var b=this.element,e=""!==b.id?b.id:null,f=c&&c.constructor&&c.call&&c.apply?null:c,g=c&&c.constructor&&c.call&&c.apply?c:null;g&&h(a,g,e);d(a,f,b);return this},addEvent:function(a,c){if(!this.element)return!1;var b=this.element,e=""!==b.id?b.id:null;h(a,c,e);"ready"!=a?d("addEventListener",a,b):"ready"==a&&k&&c.call(null,e);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,b=""!==c.id?c.id:null;a:{if(b&&f[b]){if(!f[b][a]){b=!1;break a}f[b][a]=null}else{if(!f[a]){b=
!1;break a}f[a]=null}b=!0}"ready"!=a&&b&&d("removeEventListener",a,c)}};a.fn.init.prototype=a.fn;window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e);return window.Froogaloop=window.$f=a}();<commit_msg>Updated min file with currentSrc method<commit_after>var VimeoState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3};videojs.Vimeo=videojs.MediaTechController.extend({init:function(player,options,ready){videojs.MediaTechController.call(this,player,options,ready);this.player_=player;this.player_el_=document.getElementById(this.player_.id());this.player_.controls(false);this.id_=this.player_.id()+"_vimeo_api";this.el_=videojs.Component.prototype.createEl("iframe",{id:this.id_,className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0,webkitAllowFullScreen:"true",mozallowfullscreen:"true",allowFullScreen:"true"});this.player_el_.insertBefore(this.el_,this.player_el_.firstChild);this.baseUrl=document.location.protocol=="https"?"https://secure.vimeo.com/video/":"http://player.vimeo.com/video/";this.vimeo={};this.vimeoInfo={};var self=this;this.el_.onload=function(){self.onLoad()};this.startMuted=player.options()["muted"];this.src(player.options()["src"])}});videojs.Vimeo.prototype.dispose=function(){this.vimeo.api("unload");delete this.vimeo;this.el_.parentNode.removeChild(this.el_);videojs.MediaTechController.prototype.dispose.call(this)};videojs.Vimeo.prototype.src=function(src){this.isReady_=false;var regExp=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/;var match=src.match(regExp);if(match){this.videoId=match[5]}var params={api:1,byline:0,portrait:0,show_title:0,show_byline:0,show_portait:0,fullscreen:1,player_id:this.id_,autoplay:this.player_.options()["autoplay"]?1:0,loop:this.player_.options()["loop"]?1:0};this.el_.src=this.baseUrl+this.videoId+"?"+videojs.Vimeo.makeQueryString(params)};videojs.Vimeo.prototype.load=function(){};videojs.Vimeo.prototype.play=function(){this.vimeo.api("play")};videojs.Vimeo.prototype.pause=function(){this.vimeo.api("pause")};videojs.Vimeo.prototype.paused=function(){return this.lastState!==VimeoState.PLAYING&&this.lastState!==VimeoState.BUFFERING};videojs.Vimeo.prototype.currentTime=function(){return this.vimeoInfo.time||0};videojs.Vimeo.prototype.setCurrentTime=function(seconds){this.vimeo.api("seekTo",seconds);this.player_.trigger("timeupdate")};videojs.Vimeo.prototype.duration=function(){return this.vimeoInfo.duration||0};videojs.Vimeo.prototype.buffered=function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered||0)};videojs.Vimeo.prototype.volume=function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume};videojs.Vimeo.prototype.setVolume=function(percentAsDecimal){this.vimeo.api("setvolume",percentAsDecimal);this.vimeoInfo.volume=percentAsDecimal;this.player_.trigger("volumechange")};videojs.Vimeo.prototype.currentSrc=function(){console.log(this.el_.src);return this.el_.src};videojs.Vimeo.prototype.muted=function(){return this.vimeoInfo.muted||false};videojs.Vimeo.prototype.setMuted=function(muted){if(muted){this.vimeoInfo.muteVolume=this.vimeoInfo.volume;this.setVolume(0)}else{this.setVolume(this.vimeoInfo.muteVolume)}this.vimeoInfo.muted=muted;this.player_.trigger("volumechange")};videojs.Vimeo.prototype.onReady=function(){this.isReady_=true;this.triggerReady();if(this.startMuted){this.setMuted(true);this.startMuted=false}};videojs.Vimeo.prototype.onLoad=function(){if(this.vimeo.api){this.vimeo.api("unload");delete this.vimeo}this.vimeo=$f(this.el_);this.vimeoInfo={state:VimeoState.UNSTARTED,volume:1,muted:false,muteVolume:1,time:0,duration:0,buffered:0,url:this.baseUrl+this.videoId,error:null};var self=this;this.vimeo.addEvent("ready",function(id){self.onReady()});this.vimeo.addEvent("loadProgress",function(data,id){self.onLoadProgress(data)});this.vimeo.addEvent("playProgress",function(data,id){self.onPlayProgress(data)});this.vimeo.addEvent("play",function(id){self.onPlay()});this.vimeo.addEvent("pause",function(id){self.onPause()});this.vimeo.addEvent("finish",function(id){self.onFinish()});this.vimeo.addEvent("seek",function(data,id){self.onSeek(data)})};videojs.Vimeo.prototype.onLoadProgress=function(data){var durationUpdate=!this.vimeoInfo.duration;this.vimeoInfo.duration=data.duration;this.vimeoInfo.buffered=data.percent;this.player_.trigger("progress");if(durationUpdate)this.player_.trigger("durationchange")};videojs.Vimeo.prototype.onPlayProgress=function(data){this.vimeoInfo.time=data.seconds;this.player_.trigger("timeupdate")};videojs.Vimeo.prototype.onPlay=function(){this.vimeoInfo.state=VimeoState.PLAYING;this.player_.trigger("play")};videojs.Vimeo.prototype.onPause=function(){this.vimeoInfo.state=VimeoState.PAUSED;this.player_.trigger("pause")};videojs.Vimeo.prototype.onFinish=function(){this.vimeoInfo.state=VimeoState.ENDED;this.player_.trigger("ended")};videojs.Vimeo.prototype.onSeek=function(data){this.vimeoInfo.time=data.seconds;this.player_.trigger("timeupdate");this.player_.trigger("seeked")};videojs.Vimeo.prototype.onError=function(error){this.player_.error=error;this.player_.trigger("error")};videojs.Vimeo.isSupported=function(){return true};videojs.Vimeo.prototype.supportsFullScreen=function(){return false};videojs.Vimeo.canPlaySource=function(srcObj){return srcObj.type=="video/vimeo"};videojs.Vimeo.makeQueryString=function(args){var array=[];for(var key in args){if(args.hasOwnProperty(key)){array.push(encodeURIComponent(key)+"="+encodeURIComponent(args[key]))}}return array.join("&")};var Froogaloop=function(){function Froogaloop(iframe){return new Froogaloop.fn.init(iframe)}var eventCallbacks={},hasWindowEvent=false,isReady=false,slice=Array.prototype.slice,playerDomain="";Froogaloop.fn=Froogaloop.prototype={element:null,init:function(iframe){if(typeof iframe==="string"){iframe=document.getElementById(iframe)}this.element=iframe;playerDomain=getDomainFromUrl(this.element.getAttribute("src"));return this},api:function(method,valueOrCallback){if(!this.element||!method){return false}var self=this,element=self.element,target_id=element.id!==""?element.id:null,params=!isFunction(valueOrCallback)?valueOrCallback:null,callback=isFunction(valueOrCallback)?valueOrCallback:null;if(callback){storeCallback(method,callback,target_id)}postMessage(method,params,element);return self},addEvent:function(eventName,callback){if(!this.element){return false}var self=this,element=self.element,target_id=element.id!==""?element.id:null;storeCallback(eventName,callback,target_id);if(eventName!="ready"){postMessage("addEventListener",eventName,element)}else if(eventName=="ready"&&isReady){callback.call(null,target_id)}return self},removeEvent:function(eventName){if(!this.element){return false}var self=this,element=self.element,target_id=element.id!==""?element.id:null,removed=removeCallback(eventName,target_id);if(eventName!="ready"&&removed){postMessage("removeEventListener",eventName,element)}}};function postMessage(method,params,target){if(!target.contentWindow.postMessage){return false}var url=target.getAttribute("src").split("?")[0],data=JSON.stringify({method:method,value:params});if(url.substr(0,2)==="//"){url=window.location.protocol+url}target.contentWindow.postMessage(data,url)}function onMessageReceived(event){var data,method;try{data=JSON.parse(event.data);method=data.event||data.method}catch(e){}if(method=="ready"&&!isReady){isReady=true}if(event.origin!=playerDomain){return false}var value=data.value,eventData=data.data,target_id=target_id===""?null:data.player_id,callback=getCallback(method,target_id),params=[];if(!callback){return false}if(value!==undefined){params.push(value)}if(eventData){params.push(eventData)}if(target_id){params.push(target_id)}return params.length>0?callback.apply(null,params):callback.call()}function storeCallback(eventName,callback,target_id){if(target_id){if(!eventCallbacks[target_id]){eventCallbacks[target_id]={}}eventCallbacks[target_id][eventName]=callback}else{eventCallbacks[eventName]=callback}}function getCallback(eventName,target_id){if(target_id){return eventCallbacks[target_id][eventName]}else{return eventCallbacks[eventName]}}function removeCallback(eventName,target_id){if(target_id&&eventCallbacks[target_id]){if(!eventCallbacks[target_id][eventName]){return false}eventCallbacks[target_id][eventName]=null}else{if(!eventCallbacks[eventName]){return false}eventCallbacks[eventName]=null}return true}function getDomainFromUrl(url){if(url.substr(0,2)==="//"){url=window.location.protocol+url}var url_pieces=url.split("/"),domain_str="";for(var i=0,length=url_pieces.length;i<length;i++){if(i<3){domain_str+=url_pieces[i]}else{break}if(i<2){domain_str+="/"}}return domain_str}function isFunction(obj){return!!(obj&&obj.constructor&&obj.call&&obj.apply)}function isArray(obj){return toString.call(obj)==="[object Array]"}Froogaloop.fn.init.prototype=Froogaloop.fn;if(window.addEventListener){window.addEventListener("message",onMessageReceived,false)}else{window.attachEvent("onmessage",onMessageReceived)}return window.Froogaloop=window.$f=Froogaloop}();
{'fraction_non_alphanumeric': 0.20783326880887856, 'fraction_numerical': 0.00671054329590915, 'mean_word_length': 16.43419572553431, 'pattern_counts': {'":': 2, '<': 8, '<?xml version=': 0, '>': 6, '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': '4387509', 'n_tokens_mistral': 5650, 'n_tokens_neox': 5619, 'n_words': 127}