<commit_before>/*
  All Emoncms code is released under the GNU Affero General Public License.
  See COPYRIGHT.txt and LICENSE.txt.
    ---------------------------------------------------------------------
    Part of the OpenEnergyMonitor project:
    http://openenergymonitor.org

    Author: <NAME>
    If you have any questions please get in touch, try the forums here:
    http://openenergymonitor.org/emon/forum
 */

function feedtimestamp_widgetlist()
{
  var widgets =
  {
    "feedtimestamp":
    {
      "offsetx":-40,"offsety":-30,"width":120,"height":60,
      "menu":"Widgets",
      "options":    [],
      "optionstype":[],
      "optionsname":[],
      "optionshint":[],
      "optionsdata":[]
    }
  };

	var fontoptions = [
					[9, "Arial Black"],
					[8, "Arial Narrow"],
					[7, "sans-serif"],
					[6, "Helvetica Neue"],
					[5, "Helvetica"],
					[4, "Comic Sans MS"],
					[3, "Courier New"],
					[2, "Arial"],
					[1, "Georgia"],
					[0, "Impact"]
				];

	var fstyleoptions = [
					[2, _Tr("Normal")],
					[1, _Tr("Italic")],
					[0, _Tr("Oblique")]
				];

	var fweightoptions = [
					[1, _Tr("Bold")],
					[0, _Tr("Normal")]
				];

	var sizeoptions = [
					[14, "18"], // set size 18 to the top position to be the default value for creating new feedtimestamp widgets otherwise size 40 would be always the default
					[13, "40"],
					[12, "36"],
					[11, "32"],
					[10, "28"],
					[9, "24"],
					[8, "22"],
					[7, "20"],
					[6, "18"],
					[5, "16"],
					[4, "14"],
					[3, "12"],
					[2, "10"],
					[1, "8"],
					[0, "6"]
				];

	var alignmentOptions = [
		["center", _Tr("Center")],
		["left", _Tr("Left")],
		["right", _Tr("Right")]
	];

	var dateformatOptions = [
		[0, _Tr("Not Displayed")],
		[1, "DD/MM/YYYY"],
		[2, "DD-MM-YYYY"],
		[3, "DD.MM.YYYY"],
		[4, "YYYY/MM/DD"],
		[5, "YYYY-MM-DD"],
		[6, "YYYY.MM.DD"],
		[7, "MM/DD/YYYY"],
		[8, "MM-DD-YYYY"],
		[9, "MM.DD.YYYY"]
	];
	
	var timeformatOptions = [
		[0, _Tr("Not Displayed")],
		[1, "HH:MM:SS"],
		[2, "HH:MM"],
		[3, "H:MM:SS"],<commit_msg>fix typo<commit_after>/*
  All Emoncms code is released under the GNU Affero General Public License.
  See COPYRIGHT.txt and LICENSE.txt.
    ---------------------------------------------------------------------
    Part of the OpenEnergyMonitor project:
    http://openenergymonitor.org

    Author: <NAME>
    If you have any questions please get in touch, try the forums here:
    http://openenergymonitor.org/emon/forum
 */

function feedtimestamp_widgetlist()
{
  var widgets =
  {
    "feedtimestamp":
    {
      "offsetx":-40,"offsety":-30,"width":120,"height":60,
      "menu":"Widgets",
      "options":    [],
      "optionstype":[],
      "optionsname":[],
      "optionshint":[],
      "optionsdata":[]
    }
  };

	var fontoptions = [
					[9, "Arial Black"],
					[8, "Arial Narrow"],
					[7, "sans-serif"],
					[6, "Helvetica Neue"],
					[5, "Helvetica"],
					[4, "Comic Sans MS"],
					[3, "Courier New"],
					[2, "Arial"],
					[1, "Georgia"],
					[0, "Impact"]
				];

	var fstyleoptions = [
					[2, _Tr("Normal")],
					[1, _Tr("Italic")],
					[0, _Tr("Oblique")]
				];

	var fweightoptions = [
					[1, _Tr("Bold")],
					[0, _Tr("Normal")]
				];

	var sizeoptions = [
					[14, "18"], // set size 18 to the top position to be the default value for creating new feedtimestamp widgets otherwise size 40 would be always the default
					[13, "40"],
					[12, "36"],
					[11, "32"],
					[10, "28"],
					[9, "24"],
					[8, "22"],
					[7, "20"],
					[6, "18"],
					[5, "16"],
					[4, "14"],
					[3, "12"],
					[2, "10"],
					[1, "8"],
					[0, "6"]
				];

	var alignmentOptions = [
		["center", _Tr("Center")],
		["left", _Tr("Left")],
		["right", _Tr("Right")]
	];

	var dateformatOptions = [
		[0, _Tr("Not displayed")],
		[1, "DD/MM/YYYY"],
		[2, "DD-MM-YYYY"],
		[3, "DD.MM.YYYY"],
		[4, "YYYY/MM/DD"],
		[5, "YYYY-MM-DD"],
		[6, "YYYY.MM.DD"],
		[7, "MM/DD/YYYY"],
		[8, "MM-DD-YYYY"],
		[9, "MM.DD.YYYY"]
	];
	
	var timeformatOptions = [
		[0, _Tr("Not displayed")],
		[1, "HH:MM:SS"],
		[2, "HH:MM"],
		[3, "H:MM:SS"],
{'fraction_non_alphanumeric': 0.24933430162188333, 'fraction_numerical': 0.04357298474945534, 'mean_word_length': 2.2331768388106417, 'pattern_counts': {'":': 22, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6429906', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1590, 'n_words': 384}