<commit_before>/*
 * @(#)VADocument.java          1.5 07/15/2004
 *
 * Copyright (c) 2001-2004 Oak Ridge National Laboratory
 * Oak Ridge, Tenessee 37831, U.S.A.
 * All rights reserved.
 *
 */

package xal.app.virtualaccelerator;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Shape;
import java.awt.event.*;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.NumberFormat;

import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import javax.swing.JToggleButton.ToggleButtonModel;

import java.util.*;

import xal.extension.application.smf.*;
import xal.extension.application.*;
import xal.extension.bricks.WindowReference;
import xal.ca.*;
import xal.smf.*;
import xal.smf.attr.*;
import xal.smf.data.*;
import xal.smf.impl.*;
import xal.smf.impl.qualify.*;
import xal.model.*;
import xal.model.probe.*;  // Probe for t3d header
import xal.model.alg.*;
import xal.model.probe.traj.TransferMapState;
import xal.model.probe.traj.ProbeState;
import xal.model.probe.traj.EnvelopeProbeState;
import xal.sim.scenario.*;
import xal.smf.*;
import xal.model.xml.*;
import xal.tools.beam.calc.*;
import xal.tools.xml.*;
import xal.tools.data.*;
import xal.tools.beam.Twiss;
import xal.tools.beam.PhaseVector;
import xal.extension.widgets.plot.BasicGraphData;
import xal.extension.widgets.plot.FunctionGraphsJPanel;
import xal.extension.widgets.swing.KeyValueFilteredTableModel;
import xal.extension.widgets.swing.DecimalField;
import xal.tools.apputils.files.*;
import xal.extension.widgets.apputils.SimpleProbeEditor;
import xal.service.pvlogger.apputils.browser.PVLogSnapshotChooser;
import xal.service.pvlogger.sim.PVLoggerDataSource;
import xal.tools.dispatch.*;
//TODO: CKA - Many unused imports

/**
 * <p>
 * <h4>CKA NOTES:</h4>
 * - In method <code>{@link #createDefaultProbe()}</code> a <code>TransferMapProbe</code>
 * is created in the case of a ring.  The method <code>TransferMapState#setPhaseCoordinates</code>
 * is called to create an initial offset.  This does nothing because transfer map probes
 * do not have phase coordinates any longer, the method is deprecated.
 * <br/>
 * <br/>
 * - The offset for the above call is hard coded.  As are many features in this class.
 * </p>
 * 
 * VADocument is a custom AcceleratorDocument for virtual accelerator application.
 * @version 1.5 15 Jul 2004
 * @author <NAME>
 */<commit_msg>[apps] #57 replaced <br/> -> <br>  according to javadoc error/warnings  Java 8r45  checked that it compiles with ant on OSX<commit_after>/*
 * @(#)VADocument.java          1.5 07/15/2004
 *
 * Copyright (c) 2001-2004 Oak Ridge National Laboratory
 * Oak Ridge, Tenessee 37831, U.S.A.
 * All rights reserved.
 *
 */

package xal.app.virtualaccelerator;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Shape;
import java.awt.event.*;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.NumberFormat;

import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import javax.swing.JToggleButton.ToggleButtonModel;

import java.util.*;

import xal.extension.application.smf.*;
import xal.extension.application.*;
import xal.extension.bricks.WindowReference;
import xal.ca.*;
import xal.smf.*;
import xal.smf.attr.*;
import xal.smf.data.*;
import xal.smf.impl.*;
import xal.smf.impl.qualify.*;
import xal.model.*;
import xal.model.probe.*;  // Probe for t3d header
import xal.model.alg.*;
import xal.model.probe.traj.TransferMapState;
import xal.model.probe.traj.ProbeState;
import xal.model.probe.traj.EnvelopeProbeState;
import xal.sim.scenario.*;
import xal.smf.*;
import xal.model.xml.*;
import xal.tools.beam.calc.*;
import xal.tools.xml.*;
import xal.tools.data.*;
import xal.tools.beam.Twiss;
import xal.tools.beam.PhaseVector;
import xal.extension.widgets.plot.BasicGraphData;
import xal.extension.widgets.plot.FunctionGraphsJPanel;
import xal.extension.widgets.swing.KeyValueFilteredTableModel;
import xal.extension.widgets.swing.DecimalField;
import xal.tools.apputils.files.*;
import xal.extension.widgets.apputils.SimpleProbeEditor;
import xal.service.pvlogger.apputils.browser.PVLogSnapshotChooser;
import xal.service.pvlogger.sim.PVLoggerDataSource;
import xal.tools.dispatch.*;
//TODO: CKA - Many unused imports

/**
 * <p>
 * <h4>CKA NOTES:</h4>
 * - In method <code>{@link #createDefaultProbe()}</code> a <code>TransferMapProbe</code>
 * is created in the case of a ring.  The method <code>TransferMapState#setPhaseCoordinates</code>
 * is called to create an initial offset.  This does nothing because transfer map probes
 * do not have phase coordinates any longer, the method is deprecated.
 * <br>
 * <br>
 * - The offset for the above call is hard coded.  As are many features in this class.
 * </p>
 * 
 * VADocument is a custom AcceleratorDocument for virtual accelerator application.
 * @version 1.5 15 Jul 2004
 * @author <NAME>
 */
{'fraction_non_alphanumeric': 0.1288619475948377, 'fraction_numerical': 0.014274540477121627, 'mean_word_length': 4.523758099352052, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6744857', 'n_tokens_mistral': 1761, 'n_tokens_neox': 1660, 'n_words': 426}