This file is indexed.

/usr/lib/python2.7/dist-packages/notebook/static/base/js/promises.js is in python-notebook 5.2.2-1.

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
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

// Define an object to attach promises to for one-time events.

define(['base/js/events', 'base/js/namespace'], function(events, Jupyter) {
    "use strict";

    // Promise to be resolved when the application is initialized.
    // The value is the name of the app on the current page.
    var app_initialized = new Promise(function(resolve, reject) {
        events.on('app_initialized.NotebookApp', function() {
            resolve('NotebookApp');
        });
        events.on('app_initialized.DashboardApp', function() {
            resolve('DashboardApp');
        });
    });

    var promises = {
        app_initialized: app_initialized
    };
    Jupyter.promises = promises;

    return promises;
});