This file is indexed.

/usr/share/pyshared/IPython/frontend/html/notebook/static/jquery/js/jquery.autogrow.js is in ipython-notebook 0.12.1+dfsg-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Auto Grow Textarea Plugin
 * by Jevin 5/11/2010
 * http://www.technoreply.com/autogrow-textarea-plugin/
 *
 * Modified by Rob G (aka Fudgey/Mottie)
 *  - Converted into a plugin
 *  - Added ability to calculate approximate # cols when textarea is set to 100%
 *
 * Simplified by Brian Granger on 5/2/2011
 */

(function($) {
    $.fn.autogrow = function() {

    var grow = function(d) {
        var linesCount = 0;
        // modified split rule from
        // http://stackoverflow.com/questions/2035910/how-to-get-the-number-of-lines-in-a-textarea/2036424#2036424
        var lines = d.txt.value.split(/\r|\r\n|\n/);
        linesCount = lines.length;
        if (linesCount >= d.rowsDefault) {
            d.txt.rows = linesCount;
        } else {
            d.txt.rows = d.rowsDefault;
        }
    };

    return this.each(function() {
        var d = {
            colsDefault : 0,
            rowsDefault : 1,
            txt         : this,
            $txt        : $(this)
        };
        d.txt.onkeyup = function() {
            grow(d);
        };
        grow(d);
    });
};
})(jQuery);