This file is indexed.

/usr/share/dx/samples/programs/Duplicates.net is in dxsamples 4.4.0-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
 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
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
//
// time: Wed Apr  9 15:32:47 1997
//
// version: 3.1.1 (format), 3.1.4 (DX Beta)
//
//
// MODULE main
//
// comment: This visual program imports a simple table of data for a list of state names, and checks for duplicate values. Include is used to flag any state which had more than one line in the file, and a message is posted to the user of which states appeared in the file more than once. This would be useful for very large files.
// workspace: width = 404, height = 607
// layout: snap = 0, width = 50, height = 50, align = NN
//
macro main(
) -> (
) {
    // 
    // node ImportSpreadsheet[2]: x = 30, y = 13, inputs = 10, label = ImportSpreadsheet
    // input[1]: defaulting = 0, visible = 1, type = 32, value = "salesdata.data"
    // input[9]: defaulting = 1, visible = 0, type = 1, value = 1
    // input[10]: defaulting = 0, visible = 0, type = 1, value = 1
    //
main_ImportSpreadsheet_2_out_1,
main_ImportSpreadsheet_2_out_2 = 
    ImportSpreadsheet(
    main_ImportSpreadsheet_2_in_1,
    main_ImportSpreadsheet_2_in_2,
    main_ImportSpreadsheet_2_in_3,
    main_ImportSpreadsheet_2_in_4,
    main_ImportSpreadsheet_2_in_5,
    main_ImportSpreadsheet_2_in_6,
    main_ImportSpreadsheet_2_in_7,
    main_ImportSpreadsheet_2_in_8,
    main_ImportSpreadsheet_2_in_9,
    main_ImportSpreadsheet_2_in_10
    ) [instance: 2, cache: 1];
    // 
    // node Categorize[1]: x = 40, y = 103, inputs = 2, label = Categorize
    // input[2]: defaulting = 0, visible = 1, type = 16777248, value = {"state"}
    //
main_Categorize_1_out_1 = 
    Categorize(
    main_ImportSpreadsheet_2_out_1,
    main_Categorize_1_in_2
    ) [instance: 1, cache: 1];
    // 
    // node CategoryStatistics[2]: x = 31, y = 202, inputs = 5, label = CategoryStatistics
    // input[2]: defaulting = 0, visible = 1, type = 32, value = NULL
    // input[3]: defaulting = 0, visible = 1, type = 32, value = "state"
    // input[4]: defaulting = 0, visible = 1, type = 32, value = "sales"
    //
main_CategoryStatistics_2_out_1 = 
    CategoryStatistics(
    main_Categorize_1_out_1,
    main_CategoryStatistics_2_in_2,
    main_CategoryStatistics_2_in_3,
    main_CategoryStatistics_2_in_4,
    main_CategoryStatistics_2_in_5
    ) [instance: 2, cache: 1];
    // 
    // node Include[2]: x = 25, y = 299, inputs = 6, label = Include
    // input[2]: defaulting = 0, visible = 1, type = 5, value = 1.5
    // input[5]: defaulting = 1, visible = 1, type = 3, value = NULL
    // input[6]: defaulting = 0, visible = 1, type = 3, value = 1
    //
main_Include_2_out_1 = 
    Include(
    main_CategoryStatistics_2_out_1,
    main_Include_2_in_2,
    main_Include_2_in_3,
    main_Include_2_in_4,
    main_Include_2_in_5,
    main_Include_2_in_6
    ) [instance: 2, cache: 1];
    // 
    // node Lookup[1]: x = 66, y = 424, inputs = 7, label = Lookup
    // input[2]: defaulting = 0, visible = 1, type = 32, value = "state lookup"
    // input[3]: defaulting = 0, visible = 1, type = 32, value = "positions"
    // input[4]: visible = 1
    // input[5]: visible = 1
    // input[6]: defaulting = 0, visible = 1, type = 32, value = "data"
    // input[7]: visible = 1
    //
main_Lookup_1_out_1 = 
    Lookup(
    main_Include_2_out_1,
    main_Lookup_1_in_2,
    main_Lookup_1_in_3,
    main_Lookup_1_in_4,
    main_Lookup_1_in_5,
    main_Lookup_1_in_6,
    main_Lookup_1_in_7
    ) [instance: 1, cache: 1];
    // 
    // node Extract[22]: x = 129, y = 522, inputs = 2, label = Extract
    //
main_Extract_22_out_1 = 
    Extract(
    main_Lookup_1_out_1,
    main_Extract_22_in_2
    ) [instance: 22, cache: 1];
    // 
    // node Format[1]: x = 220, y = 543, inputs = 3, label = Format
    // input[1]: defaulting = 0, visible = 1, type = 32, value = "duplicate state name: %s"
    //
main_Format_1_out_1 = 
    Format(
    main_Format_1_in_1,
    main_Extract_22_out_1,
    main_Format_1_in_3
    ) [instance: 1, cache: 1];
    // 
    // node Message[1]: x = 332, y = 545, inputs = 3, label = Message
    // input[3]: defaulting = 0, visible = 1, type = 3, value = 1
    //
    Message(
    main_Format_1_out_1,
    main_Message_1_in_2,
    main_Message_1_in_3
    ) [instance: 1, cache: 1];
// network: end of macro body
}
main_ImportSpreadsheet_2_in_1 = "salesdata.data";
main_ImportSpreadsheet_2_in_2 = NULL;
main_ImportSpreadsheet_2_in_3 = NULL;
main_ImportSpreadsheet_2_in_4 = NULL;
main_ImportSpreadsheet_2_in_5 = NULL;
main_ImportSpreadsheet_2_in_6 = NULL;
main_ImportSpreadsheet_2_in_7 = NULL;
main_ImportSpreadsheet_2_in_8 = NULL;
main_ImportSpreadsheet_2_in_9 = NULL;
main_ImportSpreadsheet_2_in_10 = 1;
main_ImportSpreadsheet_2_out_1 = NULL;
main_Categorize_1_in_2 = {"state"};
main_Categorize_1_out_1 = NULL;
main_CategoryStatistics_2_in_2 = NULL;
main_CategoryStatistics_2_in_3 = "state";
main_CategoryStatistics_2_in_4 = "sales";
main_CategoryStatistics_2_in_5 = NULL;
main_CategoryStatistics_2_out_1 = NULL;
main_Include_2_in_2 = 1.5;
main_Include_2_in_3 = NULL;
main_Include_2_in_4 = NULL;
main_Include_2_in_5 = NULL;
main_Include_2_in_6 = 1;
main_Include_2_out_1 = NULL;
main_Lookup_1_in_2 = "state lookup";
main_Lookup_1_in_3 = "positions";
main_Lookup_1_in_4 = NULL;
main_Lookup_1_in_5 = NULL;
main_Lookup_1_in_6 = "data";
main_Lookup_1_in_7 = NULL;
main_Lookup_1_out_1 = NULL;
main_Extract_22_in_2 = NULL;
main_Extract_22_out_1 = NULL;
main_Format_1_in_1 = "duplicate state name: %s";
main_Format_1_in_3 = NULL;
main_Format_1_out_1 = NULL;
main_Message_1_in_2 = NULL;
main_Message_1_in_3 = 1;
Executive("product version 3 1 4");
$sync
main();