/usr/share/hyphy/ChartAddIns/Running Sum is in hyphy-common 2.2.6+dfsg-3build3.
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 | if (NON_EMPTY_SELECTION)
{
UPDATE_CELL_DATA = 1;
data_rows = Columns (SELECTED_CHART_ROWS);
temp = SELECTED_CHART_COLS[0];
for (count = 1; count<data_rows; count = count+1)
{
temp2 = SELECTED_CHART_COLS[count];
if (temp!=temp2)
{
break;
}
}
if (count == data_rows)
{
for (count = 1; count<data_rows; count = count+1)
{
SELECTED_CHART_DATA[count] = SELECTED_CHART_DATA[count-1]+SELECTED_CHART_DATA[count];
}
return 0;
}
fprintf (stdout, "Please select a single column to sort.\n");
}
else
{
NON_EMPTY_SELECTION = -1;
}
|