<commit_before>/*
 * Created on Sep 15, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.apache.jmeter.gui;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JPanel;

import org.apache.jmeter.samplers.SampleSaveConfiguration;
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.jorphan.reflect.Functor;
import org.apache.log.Logger;

/**
 * @author mstover
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class SavePropertyDialog extends JDialog implements ActionListener
{
   protected static transient Logger log = LoggingManager.getLoggerForClass();
   static Map functors = new HashMap();
   
   static final long serialVersionUID = 1;
   SampleSaveConfiguration saveConfig;
   
   /**
    * @param owner
    * @param title
    * @param modal
    * @throws java.awt.HeadlessException
    */
   public SavePropertyDialog(Frame owner, String title, boolean modal,SampleSaveConfiguration s)
         throws HeadlessException
   {
      super(owner, title, modal);
      saveConfig = s;
      log.info("SampleSaveConfiguration = " + saveConfig);
      dialogInit();
   }
   
   private int countMethods(Method[] m)<commit_msg>Remove throw of HeadlessException - does not appear to be needed, and is not defined on JDK1.3<commit_after>/*
 * Created on Sep 15, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.apache.jmeter.gui;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GridLayout;
//import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JPanel;

import org.apache.jmeter.samplers.SampleSaveConfiguration;
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.jorphan.reflect.Functor;
import org.apache.log.Logger;

/**
 * @author mstover
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class SavePropertyDialog extends JDialog implements ActionListener
{
   protected static transient Logger log = LoggingManager.getLoggerForClass();
   static Map functors = new HashMap();
   
   static final long serialVersionUID = 1;
   SampleSaveConfiguration saveConfig;
   
   /**
    * @param owner
    * @param title
    * @param modal
    * @throws java.awt.HeadlessException
    */
   public SavePropertyDialog(Frame owner, String title, boolean modal,SampleSaveConfiguration s)
         //throws HeadlessException
   {
      super(owner, title, modal);
      saveConfig = s;
      log.info("SampleSaveConfiguration = " + saveConfig);
      dialogInit();
   }
   
   private int countMethods(Method[] m)
{'fraction_non_alphanumeric': 0.09153122326775022, 'fraction_numerical': 0.004562303963501569, 'mean_word_length': 3.892608089260809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5213173', 'n_tokens_mistral': 1013, 'n_tokens_neox': 988, 'n_words': 290}