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

import java.io.Serializable;

import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * An Identification Domain defines a particular domain in which values
 * can be limited. By doing this, it provides a particular universe
 * of keys for an underlying object.
 * Fundamentally, this is nothing other than a typesafe wrapper on top of
 * a name describing the identification domain.
 * <p/>
 * Real-world examples of an Identification Domain might include:
 * <ul>
 *   <li>ISIN, CUSIP for globally unique identifiers on traded securities.</li>
 *   <li>A trading system instance name for trades and positions.</li>
 *   <li>RIC for a reuters-provided market data object.</li>
 * </ul>
 *
 * @author kirk
 */
public class IdentificationDomain implements Serializable, Cloneable, Comparable<IdentificationDomain> {

  public static final IdentificationDomain BLOOMBERG_BUID = new IdentificationDomain("BLOOMBERG_BUID");
  public static final IdentificationDomain BLOOMBERG_TICKER = new IdentificationDomain("BLOOMBERG_TICKER");
  public static final IdentificationDomain CUSIP = new IdentificationDomain("CUSIP");
  public static final IdentificationDomain ISIN = new IdentificationDomain("ISIN");
  public static final IdentificationDomain RIC = new IdentificationDomain("RIC");
  public static final IdentificationDomain SICOVAM = new IdentificationDomain("SICOVAM");
  public static final IdentificationDomain SEDOL2 = new IdentificationDomain("SEDOL2");

  private final String _domainName;
  
  public IdentificationDomain(String domainName) {
    if(domainName == null) {
      throw new NullPointerException("Must name this domain.");
    }
    _domainName = domainName;
  }

  /**
   * @return the domainName
   */
  public String getDomainName() {
    return _domainName;<commit_msg>removed SICOVAM and SEDOL2 from IdentificationDomain<commit_after>/**
 * Copyright (C) 2009 - 2009 by OpenGamma Inc.
 *
 * Please see distribution for license.
 */
package com.opengamma.id;

import java.io.Serializable;

import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * An Identification Domain defines a particular domain in which values
 * can be limited. By doing this, it provides a particular universe
 * of keys for an underlying object.
 * Fundamentally, this is nothing other than a typesafe wrapper on top of
 * a name describing the identification domain.
 * <p/>
 * Real-world examples of an Identification Domain might include:
 * <ul>
 *   <li>ISIN, CUSIP for globally unique identifiers on traded securities.</li>
 *   <li>A trading system instance name for trades and positions.</li>
 *   <li>RIC for a reuters-provided market data object.</li>
 * </ul>
 *
 * @author kirk
 */
public class IdentificationDomain implements Serializable, Cloneable, Comparable<IdentificationDomain> {

  public static final IdentificationDomain BLOOMBERG_BUID = new IdentificationDomain("BLOOMBERG_BUID");
  public static final IdentificationDomain BLOOMBERG_TICKER = new IdentificationDomain("BLOOMBERG_TICKER");
  public static final IdentificationDomain CUSIP = new IdentificationDomain("CUSIP");
  public static final IdentificationDomain ISIN = new IdentificationDomain("ISIN");
  public static final IdentificationDomain RIC = new IdentificationDomain("RIC");
  public static final IdentificationDomain SEDOL1 = new IdentificationDomain("SEDOL1");

  private final String _domainName;
  
  public IdentificationDomain(String domainName) {
    if(domainName == null) {
      throw new NullPointerException("Must name this domain.");
    }
    _domainName = domainName;
  }

  /**
   * @return the domainName
   */
  public String getDomainName() {
    return _domainName;
{'fraction_non_alphanumeric': 0.08356130315841831, 'fraction_numerical': 0.005222581447401144, 'mean_word_length': 4.7457142857142856, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1361758', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1046, 'n_words': 371}