This file is indexed.

/usr/share/dynare/matlab/@dseries/display.m is in dynare-common 4.4.1-1build1.

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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
function display(A)
%@info:
%! @deftypefn {Function File} display (@var{A})
%! @anchor{@dseries/display}
%! @sp 1
%! Overloads the disp method for the Dynare time series class (@ref{dseries}).
%! @sp 2
%! @strong{Inputs}
%! @sp 1
%! @table @ @var
%! @item A
%! Dynare time series object instantiated by @ref{dseries}.
%! @end table
%! @sp 1
%! @strong{Outputs}
%! @sp 1
%! None
%! @end deftypefn
%@eod:

vspace = ' ';
TABLE = ' ';

if A.nobs<=40
    separator = repmat(' | ',A.nobs+1,1);
    for t=1:A.nobs
        TABLE = char(TABLE, date2string(A.dates(t)));
    end
    for i = 1:A.vobs
        TABLE = horzcat(TABLE,separator);
        tmp = A.name{i};
        for t=1:A.nobs
            tmp = char(tmp,num2str(A.data(t,i)));
        end
        TABLE = horzcat(TABLE, tmp);
    end
else
    n = 10;
    separator = repmat(' | ',2*n+3,1);
    for t=1:n
        TABLE = char(TABLE, date2string(A.dates(t)));
    end
    TABLE = char(TABLE,vspace);
    for t = A.nobs-n:A.nobs
        TABLE = char(TABLE, date2string(A.dates(t)));
    end
    for i=1:A.vobs
        TABLE = horzcat(TABLE,separator);
        tmp = A.name{i};
        for t=1:10
            tmp = char(tmp,num2str(A.data(t,i)));
        end
        tmp = char(tmp,vspace);
        for t=A.nobs-10:A.nobs
            tmp = char(tmp,num2str(A.data(t,i)));
        end
        TABLE = horzcat(TABLE, tmp);
    end
end

disp(vspace)
disp([inputname(1) ' is a dseries object:'])
disp(vspace);
disp(TABLE);
disp(vspace);