<commit_before>/*
 * Created on Oct 24, 2003
 */
package xal.smf.proxy;

import java.util.*;

import xal.smf.AcceleratorNode;
import xal.smf.impl.Electromagnet;
import xal.ca.Channel;

/**
 * Access property values for an Electromagnet
 * @author <NAME>
 * @author <NAME>
 */
public class ElectromagnetPropertyAccessor extends AbstractPropertyAccessor {
	
	// Constants ===============================================================
	
	// Property Names
	public static final String PROPERTY_FIELD = Electromagnet.Property.FIELD.toString();
	
	
	// Static Variables ========================================================

	final private static List<String> PROPERTY_NAMES;
		
	
	// Static Initialization ===================================================
	
	static {
		PROPERTY_NAMES = new ArrayList<String>();
		PROPERTY_NAMES.add( PROPERTY_FIELD );
	}


	/** get the map of design values keyed by property name */
	public Map<String,Double> getDesignValueMap( final AcceleratorNode node ) {
		return getDesignValueMap( node, PROPERTY_NAMES );
	}
<commit_msg>bugfix: enumerations toString() replaced with name(), which works equally on all implementations<commit_after>/*
 * Created on Oct 24, 2003
 */
package xal.smf.proxy;

import java.util.*;

import xal.smf.AcceleratorNode;
import xal.smf.impl.Electromagnet;
import xal.ca.Channel;

/**
 * Access property values for an Electromagnet
 * @author <NAME>
 * @author <NAME>
 */
public class ElectromagnetPropertyAccessor extends AbstractPropertyAccessor {
	
	// Constants ===============================================================
	
	// Property Names
	public static final String PROPERTY_FIELD = Electromagnet.Property.FIELD.name();
	
	
	// Static Variables ========================================================

	final private static List<String> PROPERTY_NAMES;
		
	
	// Static Initialization ===================================================
	
	static {
		PROPERTY_NAMES = new ArrayList<String>();
		PROPERTY_NAMES.add( PROPERTY_FIELD );
	}


	/** get the map of design values keyed by property name */
	public Map<String,Double> getDesignValueMap( final AcceleratorNode node ) {
		return getDesignValueMap( node, PROPERTY_NAMES );
	}

{'fraction_non_alphanumeric': 0.23582766439909297, 'fraction_numerical': 0.005442176870748299, 'mean_word_length': 5.127777777777778, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6717350', 'n_tokens_mistral': 638, 'n_tokens_neox': 569, 'n_words': 161}