<commit_before>// Copyright MWC 1999, Debrief 3 Project
// $RCSfile: TimeFrequencyPropertyEditor.java,v $
// @author $Author: Ian.Mayo $
// @version $Revision: 1.4 $
// $Log: TimeFrequencyPropertyEditor.java,v $
// Revision 1.4  2004/11/25 11:05:15  Ian.Mayo
// Switch to HiResDate internally
//
// Revision 1.3  2004/11/24 16:05:28  Ian.Mayo
// Switch to hi-res timers
//
// Revision 1.2  2004/05/25 15:29:10  Ian.Mayo
// Commit updates from home
//
// Revision 1.1.1.1  2004/03/04 20:31:19  ian
// no message
//
// Revision 1.1.1.1  2003/07/17 10:07:24  Ian.Mayo
// Initial import
//
// Revision 1.3  2002-12-16 15:17:59+00  ian_mayo
// Tidy comments, extend frequency
//
// Revision 1.2  2002-05-28 09:25:42+01  ian_mayo
// after switch to new system
//
// Revision 1.1  2002-05-28 09:14:43+01  ian_mayo
// Initial revision
//
// Revision 1.1  2002-04-11 14:01:45+01  ian_mayo
// Initial revision
//
// Revision 1.1  2001-10-01 12:48:59+01  administrator
// Use accessor methods to get at tags & labels (so that we can over-ride this class more easily)
//
// Revision 1.0  2001-07-17 08:43:52+01  administrator
// Initial revision
//
// Revision 1.1  2001-01-03 13:42:49+00  novatech
// Initial revision
//
// Revision 1.1.1.1  2000/12/12 21:45:21  ianmayo
// initial version
//
// Revision 1.1  2000-09-26 10:53:02+01  ian_mayo
// Initial revision
//


package MWC.GUI.Properties;

import java.beans.PropertyEditorSupport;

import MWC.GenericData.HiResDate;
import MWC.GenericData.TimePeriod;

/**
 * class to provide list of time frequencies, together with ALL value
 */
public class TimeFrequencyPropertyEditor extends PropertyEditorSupport
{

  /**
   * the value used to represent ALL items
   */
  public static long SHOW_ALL_FREQUENCY = TimePeriod.INVALID_TIME;

  /**
   * the currently selected frequency (in micros)
   */
  protected HiResDate _myFreq;

  // HI-RES NOT DONE
  // switch to two modes - with hi-res options when in hi-res mode

  /**
   * the list of tags shown in the drop-down list
   */
  private String _stringTags[] =
    {
      "All",
      "1 Secs",
      "5 Secs",
      "10 Secs",
      "30 Secs",
      "1 Min",
      "2 Min",
      "3 Min",
      "5 Mins",
      "10 Mins",
      "15 Mins",
      "30 Mins",
      "60 Mins",
      "2 Hours",
      "6 Hours",
      "12 Hours",
      "24 Hours",
      "None"};

  /**
   * the values to use for the tags in the list
   */
  private long _freqs[] =
    {
      SHOW_ALL_FREQUENCY,
      1 * 1000000l,
      5 * 1000000l,
      10 * 1000000l,
      30 * 1000000l,
      1 * 60 * 1000000l,
      2 * 60 * 1000000l,
      3 * 60 * 1000000l,
      5 * 60 * 1000000l,
      10 * 60 * 1000000l,
      15 * 60 * 1000000l,
      30 * 60 * 1000000l,
      60 * 60 * 1000000l,
      2 * 60 * 60 * 1000000l,
      6 * 60 * 60 * 1000000l,
      12 * 60 * 60 * 1000000l,
      24 * 60 * 60 * 1000000l,
      0};


  public String[] getTags()
  {
    return _stringTags;
  }
<commit_msg>expose some useful time intervals<commit_after>// Copyright MWC 1999, Debrief 3 Project
// $RCSfile: TimeFrequencyPropertyEditor.java,v $
// @author $Author: Ian.Mayo $
// @version $Revision: 1.4 $
// $Log: TimeFrequencyPropertyEditor.java,v $
// Revision 1.4  2004/11/25 11:05:15  Ian.Mayo
// Switch to HiResDate internally
//
// Revision 1.3  2004/11/24 16:05:28  Ian.Mayo
// Switch to hi-res timers
//
// Revision 1.2  2004/05/25 15:29:10  Ian.Mayo
// Commit updates from home
//
// Revision 1.1.1.1  2004/03/04 20:31:19  ian
// no message
//
// Revision 1.1.1.1  2003/07/17 10:07:24  Ian.Mayo
// Initial import
//
// Revision 1.3  2002-12-16 15:17:59+00  ian_mayo
// Tidy comments, extend frequency
//
// Revision 1.2  2002-05-28 09:25:42+01  ian_mayo
// after switch to new system
//
// Revision 1.1  2002-05-28 09:14:43+01  ian_mayo
// Initial revision
//
// Revision 1.1  2002-04-11 14:01:45+01  ian_mayo
// Initial revision
//
// Revision 1.1  2001-10-01 12:48:59+01  administrator
// Use accessor methods to get at tags & labels (so that we can over-ride this class more easily)
//
// Revision 1.0  2001-07-17 08:43:52+01  administrator
// Initial revision
//
// Revision 1.1  2001-01-03 13:42:49+00  novatech
// Initial revision
//
// Revision 1.1.1.1  2000/12/12 21:45:21  ianmayo
// initial version
//
// Revision 1.1  2000-09-26 10:53:02+01  ian_mayo
// Initial revision
//


package MWC.GUI.Properties;

import java.beans.PropertyEditorSupport;

import MWC.GenericData.HiResDate;
import MWC.GenericData.TimePeriod;

/**
 * class to provide list of time frequencies, together with ALL value
 */
public class TimeFrequencyPropertyEditor extends PropertyEditorSupport
{

  public static final long _60_MINS = 60 * 60 * 1000000l;

  public static final long _30_MINS = 30 * 60 * 1000000l;

  public static final long _15_MINS = 15 * 60 * 1000000l;

  public static final long _10_MINS = 10 * 60 * 1000000l;

  public static final long _5_MINS = 5 * 60 * 1000000l;

	/**
   * the value used to represent ALL items
   */
  public static long SHOW_ALL_FREQUENCY = TimePeriod.INVALID_TIME;

  /**
   * the currently selected frequency (in micros)
   */
  protected HiResDate _myFreq;

  // HI-RES NOT DONE
  // switch to two modes - with hi-res options when in hi-res mode

  /**
   * the list of tags shown in the drop-down list
   */
  private String _stringTags[] =
    {
      "All",
      "1 Secs",
      "5 Secs",
      "10 Secs",
      "30 Secs",
      "1 Min",
      "2 Min",
      "3 Min",
      "5 Mins",
      "10 Mins",
      "15 Mins",
      "30 Mins",
      "60 Mins",
      "2 Hours",
      "6 Hours",
      "12 Hours",
      "24 Hours",
      "None"};

  /**
   * the values to use for the tags in the list
   */
  private long _freqs[] =
    {
      SHOW_ALL_FREQUENCY,
      1 * 1000000l,
      5 * 1000000l,
      10 * 1000000l,
      30 * 1000000l,
      1 * 60 * 1000000l,
      2 * 60 * 1000000l,
      3 * 60 * 1000000l,
      _5_MINS,
      _10_MINS,
      _15_MINS,
      _30_MINS,
      _60_MINS,
      2 * _60_MINS,
      6 * _60_MINS,
      12 * _60_MINS,
      24 * _60_MINS,
      0};


  public String[] getTags()
  {
    return _stringTags;
  }

{'fraction_non_alphanumeric': 0.1279296875, 'fraction_numerical': 0.14225260416666666, 'mean_word_length': 2.2616772823779194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '3754558', 'n_tokens_mistral': 2888, 'n_tokens_neox': 2237, 'n_words': 654}