MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / create_top_values_to_plot_structure

Function create_top_values_to_plot_structure

web/static/js/main.js:57–63  ·  view source on GitHub ↗

* Create object structure for the given event type and element, if it doesn't already exist * @param {*} event_type * @param {*} element

(event_type, element)

Source from the content-addressed store, hash-verified

55 * @param {*} element
56 */
57function create_top_values_to_plot_structure(event_type, element) {
58 !(event_type in top_values_to_plot) ? top_values_to_plot[event_type] = {} : true;
59 !(element in top_values_to_plot[event_type]) ? top_values_to_plot[event_type][element] = {} : true;
60 !("keys" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].keys = [] : true;
61 !("values" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].values = [] : true;
62 !("colors" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].colors = [] : true;
63}
64
65
66/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected