<commit_before>/**
 * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
 * 
 * Please see distribution for license.
 */
package com.opengamma.web.spring.defaults;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.opengamma.financial.analytics.model.curve.forward.ForwardCurveValuePropertyNames;
import com.opengamma.financial.analytics.model.volatility.surface.black.BlackVolatilitySurfacePropertyNamesAndValues;

/**
 * 
 */
public abstract class EquityInstrumentDefaultValues {
  /**
   * 
   */
  private static final String SURFACE_INTERPOLATOR = "Spline";
  private static final String SURFACE_NAME = "BBG";
  private static final Map<String, String> EQUITY_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EXCHANGE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> DISCOUNTING_CURVE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_CALCULATION_CONFIG_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EX_VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> CCY_VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> EX_INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> CCY_INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EX_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> CCY_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  
  static {
    EQUITY_NAMES.put("DJX", "USD");
    EQUITY_NAMES.put("SPX", "USD");
    EQUITY_NAMES.put("SPXQ", "USD");
    EQUITY_NAMES.put("NDX", "USD");
    EQUITY_NAMES.put("RUY", "USD");
    EQUITY_NAMES.put("VIX", "USD");
    EQUITY_NAMES.put("NKY", "JPY");
    EQUITY_NAMES.put("AAPL US", "USD");
    EXCHANGE_NAMES.put("US", "USD");
    DISCOUNTING_CURVE_NAMES.put("USD", "Discounting");
    DISCOUNTING_CURVE_NAMES.put("JPY", "Discounting");
    FORWARD_CURVE_NAMES.put("USD", "Discounting");
    FORWARD_CURVE_NAMES.put("JPY", "Discounting");
    DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES.put("USD", "DefaultTwoCurveUSDConfig");
    DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES.put("JPY", "DefaultTwoCurveJPYConfig");
    FORWARD_CURVE_CALCULATION_CONFIG_NAMES.put("USD", "DefaultTwoCurveUSDConfig");
    FORWARD_CURVE_CALCULATION_CONFIG_NAMES.put("JPY", "DefaultTwoCurveJPYConfig");
    FORWARD_CURVE_CALCULATION_METHOD_NAMES.put("USD", ForwardCurveValuePropertyNames.PROPERTY_YIELD_CURVE_IMPLIED_METHOD);
    FORWARD_CURVE_CALCULATION_METHOD_NAMES.put("JPY", ForwardCurveValuePropertyNames.PROPERTY_YIELD_CURVE_IMPLIED_METHOD);
    VOLATILITY_SURFACE_NAMES.put("DJX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("SPX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("SPXQ", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("NDX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("RUY", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("NKY", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("VIX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("AAPL US", SURFACE_NAME);
    EX_VOLATILITY_SURFACE_NAMES.put("US", SURFACE_NAME);
    CCY_VOLATILITY_SURFACE_NAMES.put("USD", SURFACE_NAME);
    CCY_VOLATILITY_SURFACE_NAMES.put("JPY", SURFACE_NAME);
    INTERPOLATOR_NAMES.put("DJX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("SPX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("SPXQ", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("NDX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("RUY", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("NKY", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("VIX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("AAPL US", SURFACE_INTERPOLATOR);
    EX_INTERPOLATOR_NAMES.put("US", SURFACE_INTERPOLATOR);
    CCY_INTERPOLATOR_NAMES.put("USD", SURFACE_INTERPOLATOR);
    CCY_INTERPOLATOR_NAMES.put("JPY", SURFACE_INTERPOLATOR);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("DJX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("SPX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("SPXQ", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("NDX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("RUY", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("NKY", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("VIX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("AAPL US", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    EX_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("US", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    CCY_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("USD", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);<commit_msg> Added FB to EquityInstrumentDefaultValues<commit_after>/**
 * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
 * 
 * Please see distribution for license.
 */
package com.opengamma.web.spring.defaults;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.opengamma.financial.analytics.model.curve.forward.ForwardCurveValuePropertyNames;
import com.opengamma.financial.analytics.model.volatility.surface.black.BlackVolatilitySurfacePropertyNamesAndValues;

/**
 * 
 */
public abstract class EquityInstrumentDefaultValues {
  /**
   * 
   */
  private static final String SURFACE_INTERPOLATOR = "Spline";
  private static final String SURFACE_NAME = "BBG";
  private static final Map<String, String> EQUITY_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EXCHANGE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> DISCOUNTING_CURVE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_CALCULATION_CONFIG_NAMES = new HashMap<String, String>();
  private static final Map<String, String> FORWARD_CURVE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EX_VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> CCY_VOLATILITY_SURFACE_NAMES = new HashMap<String, String>();
  private static final Map<String, String> INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> EX_INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> CCY_INTERPOLATOR_NAMES = new HashMap<String, String>(); 
  private static final Map<String, String> VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> EX_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  private static final Map<String, String> CCY_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES = new HashMap<String, String>();
  
  static {
    EQUITY_NAMES.put("DJX", "USD");
    EQUITY_NAMES.put("SPX", "USD");
    EQUITY_NAMES.put("SPXQ", "USD");
    EQUITY_NAMES.put("NDX", "USD");
    EQUITY_NAMES.put("RUY", "USD");
    EQUITY_NAMES.put("VIX", "USD");
    EQUITY_NAMES.put("NKY", "JPY");
    EQUITY_NAMES.put("AAPL US", "USD");
    EQUITY_NAMES.put("FB US", "USD");
    EXCHANGE_NAMES.put("US", "USD");
    DISCOUNTING_CURVE_NAMES.put("USD", "Discounting");
    DISCOUNTING_CURVE_NAMES.put("JPY", "Discounting");
    FORWARD_CURVE_NAMES.put("USD", "Discounting");
    FORWARD_CURVE_NAMES.put("JPY", "Discounting");
    DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES.put("USD", "DefaultTwoCurveUSDConfig");
    DISCOUNTING_CURVE_CALCULATION_CONFIG_NAMES.put("JPY", "DefaultTwoCurveJPYConfig");
    FORWARD_CURVE_CALCULATION_CONFIG_NAMES.put("USD", "DefaultTwoCurveUSDConfig");
    FORWARD_CURVE_CALCULATION_CONFIG_NAMES.put("JPY", "DefaultTwoCurveJPYConfig");
    FORWARD_CURVE_CALCULATION_METHOD_NAMES.put("USD", ForwardCurveValuePropertyNames.PROPERTY_YIELD_CURVE_IMPLIED_METHOD);
    FORWARD_CURVE_CALCULATION_METHOD_NAMES.put("JPY", ForwardCurveValuePropertyNames.PROPERTY_YIELD_CURVE_IMPLIED_METHOD);
    VOLATILITY_SURFACE_NAMES.put("DJX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("SPX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("SPXQ", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("NDX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("RUY", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("NKY", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("VIX", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("AAPL US", SURFACE_NAME);
    VOLATILITY_SURFACE_NAMES.put("FB US", SURFACE_NAME);
    EX_VOLATILITY_SURFACE_NAMES.put("US", SURFACE_NAME);
    CCY_VOLATILITY_SURFACE_NAMES.put("USD", SURFACE_NAME);
    CCY_VOLATILITY_SURFACE_NAMES.put("JPY", SURFACE_NAME);
    INTERPOLATOR_NAMES.put("DJX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("SPX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("SPXQ", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("NDX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("RUY", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("NKY", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("VIX", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("AAPL US", SURFACE_INTERPOLATOR);
    INTERPOLATOR_NAMES.put("FB US", SURFACE_INTERPOLATOR);
    EX_INTERPOLATOR_NAMES.put("US", SURFACE_INTERPOLATOR);
    CCY_INTERPOLATOR_NAMES.put("USD", SURFACE_INTERPOLATOR);
    CCY_INTERPOLATOR_NAMES.put("JPY", SURFACE_INTERPOLATOR);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("DJX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("SPX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("SPXQ", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("NDX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("RUY", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("NKY", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("VIX", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("AAPL US", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("FB US", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    EX_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("US", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
    CCY_VOLATILTY_SURFACE_CALCULATION_METHOD_NAMES.put("USD", BlackVolatilitySurfacePropertyNamesAndValues.INTERPOLATED_BLACK_LOGNORMAL);
{'fraction_non_alphanumeric': 0.10278897053014142, 'fraction_numerical': 0.0006320613099470648, 'mean_word_length': 7.839385474860335, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '1924378', 'n_tokens_mistral': 4580, 'n_tokens_neox': 4387, 'n_words': 615}