<commit_before>/*****************************************************************************
 *  Limpet - the Lightweight InforMation ProcEssing Toolkit
 *  http://limpet.info
 *
 *  (C) 2015-2016, Deep Blue C Technologies Ltd
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the Eclipse Public License v1.0
 *  (http://www.eclipse.org/legal/epl-v10.html)
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *****************************************************************************/
package info.limpet.rcp.product;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import info.limpet.ui.analysis_view.AnalysisView;
import info.limpet.ui.data_frequency.DataFrequencyView;
import info.limpet.ui.range_slider.RangeSliderView;
import info.limpet.ui.time_frequency.TimeFrequencyView;
import info.limpet.ui.xy_plot.XyPlotView;

public class Perspective implements IPerspectiveFactory
{
  public static final String ID = "info.limpet.product.perspective";

  @SuppressWarnings("deprecation")
  public void createInitialLayout(IPageLayout layout)
  {
    final String editorArea = layout.getEditorArea();

    final IFolderLayout topLeft =
        layout.createFolder("topLeft", IPageLayout.LEFT, 0.3f, editorArea);
    topLeft.addView(IPageLayout.ID_RES_NAV);

    final IFolderLayout bottomLeft =
        layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.6f, "topLeft");
    bottomLeft.addView(IPageLayout.ID_PROP_SHEET);

    final IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, 0.6f, editorArea);
    bottom.addView(DataFrequencyView.ID);

    final IFolderLayout bottomRight =
        layout.createFolder("bottomRight", IPageLayout.BOTTOM, 0.5f, "bottom");
    bottomRight.addView(XyPlotView.ID);
    bottomRight.addView(TimeFrequencyView.ID);

    final IFolderLayout topRight =
        layout.createFolder("topRight", IPageLayout.RIGHT, 0.6f, editorArea);
    topRight.addView(AnalysisView.ID);

    final IFolderLayout underAnalysis =
        layout.createFolder("underAnalysis", IPageLayout.BOTTOM, 0.7f,
            "topRight");
    underAnalysis.addView(RangeSliderView.ID);

    // and our view shortcuts
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(AnalysisView.ID);
    layout.addShowViewShortcut(DataFrequencyView.ID);
    layout.addShowViewShortcut(XyPlotView.ID);
    layout.addShowViewShortcut(RangeSliderView.ID);
    
    // and shortcuts to create new Limpet files
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
    layout.addNewWizardShortcut("info.limpet.rcp.wizards.NewFileWizard");
    
  }
}<commit_msg>add the new views, tidy the layout<commit_after>/*****************************************************************************
 *  Limpet - the Lightweight InforMation ProcEssing Toolkit
 *  http://limpet.info
 *
 *  (C) 2015-2016, Deep Blue C Technologies Ltd
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the Eclipse Public License v1.0
 *  (http://www.eclipse.org/legal/epl-v10.html)
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *****************************************************************************/
package info.limpet.rcp.product;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import info.limpet.ui.analysis_view.AnalysisView;
import info.limpet.ui.data_frequency.DataFrequencyView;
import info.limpet.ui.range_slider.RangeSliderView;
import info.limpet.ui.time_frequency.TimeFrequencyView;
import info.limpet.ui.xy_plot.HeatmapView;
import info.limpet.ui.xy_plot.TabularView;
import info.limpet.ui.xy_plot.XyPlotView;

public class Perspective implements IPerspectiveFactory
{
  public static final String ID = "info.limpet.product.perspective";

  @SuppressWarnings("deprecation")
  public void createInitialLayout(IPageLayout layout)
  {
    final String editorArea = layout.getEditorArea();

    final IFolderLayout topLeft =
        layout.createFolder("topLeft", IPageLayout.LEFT, 0.3f, editorArea);
    topLeft.addView(IPageLayout.ID_RES_NAV);

    final IFolderLayout bottomLeft =
        layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.6f, "topLeft");
    bottomLeft.addView(IPageLayout.ID_PROP_SHEET);

    final IFolderLayout topRight =
        layout.createFolder("topRight", IPageLayout.RIGHT, 0.6f, editorArea);
    topRight.addView(AnalysisView.ID);

    final IFolderLayout underAnalysis =
        layout.createFolder("underAnalysis", IPageLayout.BOTTOM, 0.7f,
            "topRight");
    underAnalysis.addView(RangeSliderView.ID);

    final IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, 0.6f, editorArea);
    bottom.addView(XyPlotView.ID);
    bottom.addPlaceholder(TimeFrequencyView.ID);
    bottom.addPlaceholder(TabularView.ID);
    bottom.addPlaceholder(HeatmapView.ID);
    bottom.addPlaceholder(DataFrequencyView.ID);

    // and our view shortcuts
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(AnalysisView.ID);
    layout.addShowViewShortcut(DataFrequencyView.ID);
    layout.addShowViewShortcut(XyPlotView.ID);
    layout.addShowViewShortcut(RangeSliderView.ID);
    layout.addShowViewShortcut(TabularView.ID);
    layout.addShowViewShortcut(HeatmapView.ID);
    
    
    // and shortcuts to create new Limpet files
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
    layout.addNewWizardShortcut("info.limpet.rcp.wizards.NewFileWizard");
    
  }
}
{'fraction_non_alphanumeric': 0.14370175726720316, 'fraction_numerical': 0.007554606667761537, 'mean_word_length': 4.691588785046729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2890260', 'n_tokens_mistral': 1899, 'n_tokens_neox': 1817, 'n_words': 351}