<commit_before>/*
 * (c) Copyright <NAME>, Germany. All rights reserved. Contact: <EMAIL>.
 *
 * Created on 27.01.2008
 */
package net.finmath.experiments.blackScholes;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import javax.swing.border.TitledBorder;

import net.finmath.swing.JNumberField;

/**
 * @author <NAME>
 * 
 */
public class BlackScholesOptionCalculator extends JApplet implements ActionListener {

    /**
     * 
     */
    private static final long serialVersionUID = -6829185838379446505L;

    private JPanel specificationPanel = null;
    private JNumberField spot = null;
    private JLabel labelForSpot = null;
    private JLabel labelForVolatility = null;
    private JNumberField riskFreeRate = null;
    private JLabel labelForRate = null;
    private JPanel modelPanel = null;
    private JNumberField volatility = null;
    private JPanel optionPanel = null;
    private JNumberField optionStrike = null;
    private JLabel labelForMaturity = null;
    private JNumberField optionMaturity = null;
    private JLabel labelForValue = null;
    private JNumberField optionValue = null;
    private JLabel labelForStrike = null;

    private JPanel appletPanel = null;

    private JTextArea descriptionTextField = null;

    /**
     * This is the BlackScholesOptionCaclulator default constructor
     */
    public BlackScholesOptionCalculator() {
        super();
    }

	/**
	 * Start this as a Java applet.
	 * 
	 * @param argv not used
	 */
	static public void main (String argv[]) {
	    JApplet applet = new BlackScholesOptionCalculator();
	    JFrame frame = new JFrame("BlackScholesOptionCalculator");			// create graphics frame
	    frame.getContentPane().add(applet);									// add the applet
	    frame.setSize(500,300);
	    applet.init();														// initialise applet
	    applet.start();
	    frame.setVisible(true);
	}

	/**
     * This method initializes this
     * 
     * @return void
     */
    public void init() {
        this.setSize(450, 250);<commit_msg>Added apache zepplin notebook demo.<commit_after>/*
 * (c) Copyright <NAME>, Germany. All rights reserved. Contact: <EMAIL>.
 *
 * Created on 27.01.2008
 */
package net.finmath.experiments.blackScholes;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import javax.swing.border.TitledBorder;

import net.finmath.swing.JNumberField;

/**
 * @author <NAME>
 * 
 */
public class BlackScholesOptionCalculator extends JApplet implements ActionListener {

    /**
     * 
     */
    private static final long serialVersionUID = -6829185838379446505L;

    private JPanel specificationPanel = null;
    private JNumberField spot = null;
    private JLabel labelForSpot = null;
    private JLabel labelForVolatility = null;
    private JNumberField riskFreeRate = null;
    private JLabel labelForRate = null;
    private JPanel modelPanel = null;
    private JNumberField volatility = null;
    private JPanel optionPanel = null;
    private JNumberField optionStrike = null;
    private JLabel labelForMaturity = null;
    private JNumberField optionMaturity = null;
    private JLabel labelForValue = null;
    private JNumberField optionValue = null;
    private JLabel labelForStrike = null;

    private JPanel appletPanel = null;

    private JTextArea descriptionTextField = null;

    /**
     * This is the BlackScholesOptionCaclulator default constructor
     */
    public BlackScholesOptionCalculator() {
        super();
    }

	/**
	 * Start this as a Java applet.
	 * 
	 * @param argv not used
	 */
	static public void main (String argv[]) {
	    JApplet applet = new BlackScholesOptionCalculator();
	    JFrame frame = new JFrame("BlackScholesOptionCalculator");			// create graphics frame
	    frame.getContentPane().add(applet);									// add the applet
	    frame.setSize(500,300);
	    applet.init();														// initialise applet
	    applet.start();
	    frame.setVisible(true);
	}

    /* (non-Javadoc)
     * @see java.applet.Applet#init()
     */
    public void init() {
        this.setSize(450, 250);
{'fraction_non_alphanumeric': 0.09190371991247265, 'fraction_numerical': 0.017067833698030634, 'mean_word_length': 3.2960526315789473, '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': '6722687', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1315, 'n_words': 358}