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

import com.opengamma.id.IdentifierBundle;

/**
 * Resolves the timeseries metadata based on instrument type
 */
public class DefaultTimeSeriesResolver implements TimeSeriesResolver {
  private static final String DEFAULT_DATA_SOURCE = "BLOOMBERG";
  private static final String DEFAULT_DATA_PROVIDER = "CMPL";
  private static final String DEFAULT_DATA_FIELD = "L-CLOSE";
  private static final String DEFAULT_OBSERVATION_TIME = "L-CLOSE";

  @Override
  public TimeSeriesMetaData resolve(IdentifierBundle identifiers) {
    TimeSeriesMetaData result = new TimeSeriesMetaData();
    result.setDataField(DEFAULT_DATA_FIELD);
    result.setDataProvider(DEFAULT_DATA_PROVIDER);
    result.setDataSource(DEFAULT_DATA_SOURCE);
    result.setIdentifiers(identifiers);
    result.setObservationTime(DEFAULT_OBSERVATION_TIME);
    return result;
  }

}
<commit_msg>[TSS-26] Changed default Timeseries metadata values<commit_after>/**
 * Copyright (C) 2009 - 2010 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.timeseries;

import com.opengamma.id.IdentifierBundle;

/**
 * Resolves the timeseries metadata based on instrument type
 */
public class DefaultTimeSeriesResolver implements TimeSeriesResolver {
  private static final String DEFAULT_DATA_SOURCE = "BLOOMBERG";
  private static final String DEFAULT_DATA_PROVIDER = "CMPL";
  private static final String DEFAULT_DATA_FIELD = "PX_LAST";
  private static final String DEFAULT_OBSERVATION_TIME = "LONDON_CLOSE";

  @Override
  public TimeSeriesMetaData resolve(IdentifierBundle identifiers) {
    TimeSeriesMetaData result = new TimeSeriesMetaData();
    result.setDataField(DEFAULT_DATA_FIELD);
    result.setDataProvider(DEFAULT_DATA_PROVIDER);
    result.setDataSource(DEFAULT_DATA_SOURCE);
    result.setIdentifiers(identifiers);
    result.setObservationTime(DEFAULT_OBSERVATION_TIME);
    return result;
  }

}

{'fraction_non_alphanumeric': 0.07744763760350706, 'fraction_numerical': 0.00876765708718948, 'mean_word_length': 5.398753894080997, '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': '2140539', 'n_tokens_mistral': 595, 'n_tokens_neox': 575, 'n_words': 145}