<commit_before>(function() {

    if (z.capabilities.mobile) {
        $('body').addClass('mobile');
    }
    if (z.capabilities.tablet) {
        $('body').addClass('tablet');
    }
    if (z.capabilities.desktop) {
        $('body').addClass('desktop');
    }

    // Touch-friendly drop-downs for auxillary nav.
    $('.menu-nav > ul > li > a').click(function(e) {
        var $this = $(this);
        if ($this.siblings('ul').length) {
            e.preventDefault();
            $this.closest('li').toggleClass('open');
        }
    });

    // Dim all desktop-only results.
    $('.data-grid .addon-row').each(function() {
        var $this = $(this),
            $devices = $this.find('.device-list li:not(.unavailable)');
        // If desktop is the only device supported, fade out this row.
        if (z.capabilities.mobile && $devices.length == 1 && $devices.filter('.desktop').length) {
            $this.addClass('unsupported');
        }
        if (z.capabilities.gaia) {
            if (!$devices.filter('.firefoxos').length) {
                $this.addClass('unsupported');
            }
        } else {
            if ((z.capabilities.mobile && !$devices.filter('.android-mobile').length) ||
                (z.capabilities.tablet && !$devices.filter('.android-tablet').length)) {
                $this.addClass('unsupported');
            }
        }
    });

    var $viewManifest = $('#view-manifest'),
        $manifest = $('#manifest-contents');
    if (!$viewManifest.length) {
        return;
    }

    // Prefetch manifest.
    var manifestContents;
    setTimeout(function() {
        $.getJSON($viewManifest.data('url'), function(data) {
            manifestContents = data;

            // Show manifest.
            $viewManifest.click(_pd(function() {
                var $this = $viewManifest,
                    $manifest = $('#manifest-headers, #manifest-contents');
                if ($manifest.length) {
                    $manifest.toggle();
                } else {
                    if (!manifestContents.success) {
                        // If requests couldn't fetch the manifest, let Firefox render it.
                        $('<iframe>', {'id': 'manifest-contents',
                                       'src': 'view-source:' + $this.data('manifest')}).insertAfter($this);
                    } else {
                        var contents = '',
                            headers = '';

                        _.each(manifestContents.content.split('\n'), function(v, k) {<commit_msg>show incompatible apps in Firefox OS review queue<commit_after>(function() {

    if (z.capabilities.mobile) {
        $('body').addClass('mobile');
    }
    if (z.capabilities.tablet) {
        $('body').addClass('tablet');
    }
    if (z.capabilities.desktop) {
        $('body').addClass('desktop');
    }

    // Touch-friendly drop-downs for auxillary nav.
    $('.menu-nav > ul > li > a').click(function(e) {
        var $this = $(this);
        if ($this.siblings('ul').length) {
            e.preventDefault();
            $this.closest('li').toggleClass('open');
        }
    });

    var $viewManifest = $('#view-manifest'),
        $manifest = $('#manifest-contents');
    if (!$viewManifest.length) {
        return;
    }

    // Prefetch manifest.
    var manifestContents;
    setTimeout(function() {
        $.getJSON($viewManifest.data('url'), function(data) {
            manifestContents = data;

            // Show manifest.
            $viewManifest.click(_pd(function() {
                var $this = $viewManifest,
                    $manifest = $('#manifest-headers, #manifest-contents');
                if ($manifest.length) {
                    $manifest.toggle();
                } else {
                    if (!manifestContents.success) {
                        // If requests couldn't fetch the manifest, let Firefox render it.
                        $('<iframe>', {'id': 'manifest-contents',
                                       'src': 'view-source:' + $this.data('manifest')}).insertAfter($this);
                    } else {
                        var contents = '',
                            headers = '';

                        _.each(manifestContents.content.split('\n'), function(v, k) {
{'fraction_non_alphanumeric': 0.1625408687529192, 'fraction_numerical': 0.00023353573096683791, 'mean_word_length': 1.6405672009864365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3483430', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1113, 'n_words': 210}