<commit_before>/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.financial.position.master.db;

/**
 * Configuration object defining the workers in use for {@code DbPositionMaster}.
 * <p>
 * This class is designed for injection of alternative implementations.
 */
public class DbPositionMasterWorkers {

  /** Worker. */
  private DbPositionMasterWorker _searchPortfolioTreesWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getPortfolioTreeWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _addPortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _updatePortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _removePortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchHistoricPortfolioTreesWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _correctPortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchPositionsWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getPositionWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _addPositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _updatePositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _removePositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchHistoricPositionsWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _correctPositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getFullPortfolioWorker = new QueryPositionDbPositionMasterWorker();  // TODO
  /** Worker. */
  private DbPositionMasterWorker _getFullPortfolioNodeWorker = new QueryPositionDbPositionMasterWorker();  // TODO
  /** Worker. */
  private DbPositionMasterWorker _getFullPositionWorker = new QueryPositionDbPositionMasterWorker();  // TODO

  /**
   * Creates an instance.
   */
  public DbPositionMasterWorkers() {
  }
<commit_msg>[FIN-112] Create new PositionMaster API<commit_after>/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.financial.position.master.db;

/**
 * Configuration object defining the workers in use for {@code DbPositionMaster}.
 * <p>
 * This class is designed for injection of alternative implementations.
 */
public class DbPositionMasterWorkers {

  /** Worker. */
  private DbPositionMasterWorker _searchPortfolioTreesWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getPortfolioTreeWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _addPortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _updatePortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _removePortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchHistoricPortfolioTreesWorker = new QueryPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _correctPortfolioTreeWorker = new ModifyPortfolioTreeDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchPositionsWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getPositionWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _addPositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _updatePositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _removePositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _searchHistoricPositionsWorker = new QueryPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _correctPositionWorker = new ModifyPositionDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getFullPortfolioWorker = new QueryFullDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getFullPortfolioNodeWorker = new QueryFullDbPositionMasterWorker();
  /** Worker. */
  private DbPositionMasterWorker _getFullPositionWorker = new QueryFullDbPositionMasterWorker();

  /**
   * Creates an instance.
   */
  public DbPositionMasterWorkers() {
  }

{'fraction_non_alphanumeric': 0.08684670681950651, 'fraction_numerical': 0.0036914707596658247, 'mean_word_length': 5.747051114023591, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1567889', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1287, 'n_words': 297}