At present (v0.22.2) two (maybe three) data structures are created to
display information selected by bucket on the Buckets page. This patch
places all of the data into a single data structure which permits skinners to
group the data with greater flexibility.
For example, the Unique Word count need not be in the Buckets
Configuration portion of the page but can be grouped with Messages
Classified and Word Counts in a single statistical portion of the page. The
Classification Accuracy portion can be made into a total of that same
statistical portion if the skinner so desires.
This patch also makes additional data available to the skins in the form of
"Hit Rate" and "Strike Rate" values on a per bucket basis.
At the time this is being submitted, template elements corpus-page.thtml
and bar-chart-widget.thtml are the only ones that make use of these data
structures and they have not been altered from the default by any
supported skin. That having been said, I have created a skin that does
need this patch. After other skinners see the flexibility I believe there may
be other skins that will be developed that also make use of this patch.
This patch does NOT remove any data from any data structures so no
existing skin has to be changed to permit this to be added. However, if all
skins would take their data from this revised data structure then there is a
sizeable piece of code that could be removed from UI/HTML.pm.
Patch for UI/HTML.pm (Data Structure)