<commit_before>//
//  KnobMagician.java
//  xal
//
//  Created by <NAME> on 8/10/07.
//  Copyright 2007 Oak Ridge National Lab. All rights reserved.
//

package xal.app.knobs;

import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.text.*;
import java.util.*;

import xal.extension.application.*;
import xal.tools.bricks.WindowReference;
import xal.tools.text.FormattedNumber;


/** Controller that magically creates knob coefficients for two specified machine states */
public class KnobMagician {
	/** reference to the dialog window */
	final protected WindowReference WINDOW_REFERENCE;
	
	/** table of knob element states */
	final protected KnobElementStateTableModel ELEMENT_STATE_TABLE_MODEL;
	
	/** currently active knob */
	protected Knob _knob;
	
	/** list of initial and final states for the the knob elements */
	protected final List<KnobElementStateRecord> ELEMENT_STATE_RECORDS;
	
	
	/** Constructor */
	public KnobMagician( final JFrame owner ) {
		WINDOW_REFERENCE = Application.getAdaptor().getDefaultWindowReference( "KnobMagicDialog", owner );
		ELEMENT_STATE_RECORDS = new ArrayList<KnobElementStateRecord>();
		ELEMENT_STATE_TABLE_MODEL = new KnobElementStateTableModel( ELEMENT_STATE_RECORDS );
		
		setupView( WINDOW_REFERENCE );<commit_msg>-n  Rename the bricks extension package to be distinct from the core.<commit_after>//
//  KnobMagician.java
//  xal
//
//  Created by <NAME> on 8/10/07.
//  Copyright 2007 Oak Ridge National Lab. All rights reserved.
//

package xal.app.knobs;

import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.text.*;
import java.util.*;

import xal.extension.application.*;
import xal.extension.bricks.WindowReference;
import xal.tools.text.FormattedNumber;


/** Controller that magically creates knob coefficients for two specified machine states */
public class KnobMagician {
	/** reference to the dialog window */
	final protected WindowReference WINDOW_REFERENCE;
	
	/** table of knob element states */
	final protected KnobElementStateTableModel ELEMENT_STATE_TABLE_MODEL;
	
	/** currently active knob */
	protected Knob _knob;
	
	/** list of initial and final states for the the knob elements */
	protected final List<KnobElementStateRecord> ELEMENT_STATE_RECORDS;
	
	
	/** Constructor */
	public KnobMagician( final JFrame owner ) {
		WINDOW_REFERENCE = Application.getAdaptor().getDefaultWindowReference( "KnobMagicDialog", owner );
		ELEMENT_STATE_RECORDS = new ArrayList<KnobElementStateRecord>();
		ELEMENT_STATE_TABLE_MODEL = new KnobElementStateTableModel( ELEMENT_STATE_RECORDS );
		
		setupView( WINDOW_REFERENCE );
{'fraction_non_alphanumeric': 0.09830007390983, 'fraction_numerical': 0.0066518847006651885, 'mean_word_length': 4.581443298969072, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5546195', 'n_tokens_mistral': 844, 'n_tokens_neox': 791, 'n_words': 229}