<commit_before>/*
 * Copyright (C) 2009, 2010, 2011, <NAME>.
 *
 * This software is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the
 * implied warranties of fitness for a particular purpose.
 *
 * See the LICENSE file for more information.
 */

#include <libport/hash.hh>
#include <urbi/fwd.hh>
#include <urbi/ucontext-impl.hh>

namespace urbi
{

  /*-------------.
  | UAutoValue.  |
  `-------------*/

  inline
  UAutoValue::UAutoValue()
    : UValue()
  {}

  template<typename T>
  inline
  UAutoValue::UAutoValue(T v)
    : UValue(v)
  {}

  inline
  UAutoValue::UAutoValue(const UValue& v)
  {
    set(v, false);
  }

  /*-----------.
  | UContext.  |
  `-----------*/

  inline
  UContext::UContext(impl::UContextImpl* impl)<commit_msg>UObject: Use extensible cast system in emit() and call().<commit_after>/*
 * Copyright (C) 2009, 2010, 2011, <NAME>.
 *
 * This software is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the
 * implied warranties of fitness for a particular purpose.
 *
 * See the LICENSE file for more information.
 */

#include <libport/hash.hh>
#include <urbi/fwd.hh>
#include <urbi/ucontext-impl.hh>

namespace urbi
{

  /*-------------.
  | UAutoValue.  |
  `-------------*/

  inline
  UAutoValue::UAutoValue()
    : UValue()
  {}

  template<typename T>
  inline
  UAutoValue::UAutoValue(T v)
  {
    *this, v;
  }

  inline
  UAutoValue::UAutoValue(const UValue& v)
  {
    set(v, false);
  }

  /*-----------.
  | UContext.  |
  `-----------*/

  inline
  UContext::UContext(impl::UContextImpl* impl)
{'fraction_non_alphanumeric': 0.18302227573750754, 'fraction_numerical': 0.014449127031908489, 'mean_word_length': 2.5286624203821657, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6870996', 'n_tokens_mistral': 590, 'n_tokens_neox': 552, 'n_words': 150}