<commit_before>/**
 * Created by ssw on 2014-04-08.
 */
(function(){
    if( Dk.gs( "flash" ) ) return;

    var Info = { name : "Dk garnet plugIn - flash", version : "v0.0.1", contact : "<EMAIL>" },
        Doc = document, _prototype, _dkDtt = Dk.gs( "Detector" ), _dkProto = Dk.gs( "prototype" ), _dkCore = Dk.gs( "core" );

    log( Info ),

        //----------------------------------------------------------------------------------------------------------------------------------------------//
        // prototype
        (function(){
            var flash, cSl = _dkCore.slice;

            _prototype = function(){
                var self = this, fl = flash, a = arguments, i = a.length, k0 = a[ 0 ];
                i == 1 ? fl[ k0 ].call( self ) : fl[ k0 ].apply( self, cSl.call( a, 1 ) );
                return self;
            },

                // flash
                (function(){
                    var dtt = _dkDtt, addSwf;

                    function checkVersion( $params ){
                        var version;
                        if( $params.version == undefined ) return dtt.flashVersion >= 10.1;
                        else  return version = $params.version, delete $params.version, dtt.flashVersion >= version;
                    }

                    addSwf = ( function(){
                        if( dtt.browser == "ie" && dtt.browserVersion < 9 ){
                            return function(){
                                var self = this, data = self.data, params = data.params, r, k;
                                r = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width=" + data.width + " height=" + data.height + " style='position:absolute; margin:0px; padding:0px'>"
                                    + "<param name='movie' value=" + data.url + " />";
                                for( k in params ){
                                    r += "<param name=" + k + " value=" + params[ k ] + " />";
                                }
                                r += "</object>",
                                    self.conElement.innerHTML = r,
                                    self.flash = self.conElement.firstChild;
                            }
                        } else {
                            return function(){
                                var self = this, data = self.data, params = data.params, r, k;
                                r = "<object type='application/x-shockwave-flash' data=" + data.url + " width=" + data.width + " height=" + data.height + " style='position:absolute; margin:0px; padding:0px'>";
                                for( k in params ){
                                    r += "<param name=" + k + " value=" + params[ k ] + " />";
                                }
                                r += "</object>",
                                    self.conElement.innerHTML = r,
                                    self.flash = self.conElement.firstChild;
                            }
                        }
                    }() ),
<commit_msg>detect<commit_after>/**
 * Created by ssw on 2014-04-08.
 */
(function(){
    if( Dk.gs( "flash" ) ) return;

    var Info = { name : "Dk garnet plugIn - flash", version : "v0.0.1", contact : "<EMAIL>" },
        Doc = document, _prototype, _dkDtt = Dk.gs( "Detector" ), _dkProto = Dk.gs( "prototype" ), _dkCore = Dk.gs( "core" );

    log( Info ),

        //----------------------------------------------------------------------------------------------------------------------------------------------//
        // prototype
        (function(){
            var flash, cSl = _dkCore.slice;

            _prototype = function(){
                var self = this, fl = flash, a = arguments, i = a.length, k0 = a[ 0 ];
                i == 1 ? fl[ k0 ].call( self ) : fl[ k0 ].apply( self, cSl.call( a, 1 ) );
                return self;
            },

                // flash
                (function(){
                    var dtt = _dkDtt, addSwf;

                    function checkVersion( $params ){
                        var version;
                        if( $params.version == undefined ) return dtt.flash >= 10.1;
                        else  return version = $params.version, delete $params.version, dtt.flash >= version;
                    }

                    addSwf = ( function(){
                        if( dtt.browser == "ie" && dtt.browserVersion < 9 ){
                            return function(){
                                var self = this, data = self.data, params = data.params, r, k;
                                r = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width=" + data.width + " height=" + data.height + " style='position:absolute; margin:0px; padding:0px'>"
                                    + "<param name='movie' value=" + data.url + " />";
                                for( k in params ){
                                    r += "<param name=" + k + " value=" + params[ k ] + " />";
                                }
                                r += "</object>",
                                    self.conElement.innerHTML = r,
                                    self.flash = self.conElement.firstChild;
                            }
                        } else {
                            return function(){
                                var self = this, data = self.data, params = data.params, r, k;
                                r = "<object type='application/x-shockwave-flash' data=" + data.url + " width=" + data.width + " height=" + data.height + " style='position:absolute; margin:0px; padding:0px'>";
                                for( k in params ){
                                    r += "<param name=" + k + " value=" + params[ k ] + " />";
                                }
                                r += "</object>",
                                    self.conElement.innerHTML = r,
                                    self.flash = self.conElement.firstChild;
                            }
                        }
                    }() ),

{'fraction_non_alphanumeric': 0.17119609438567943, 'fraction_numerical': 0.014971521562245729, 'mean_word_length': 0.9140454687013392, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4690408', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1470, 'n_words': 372}