<commit_before>// @(#)root/core/meta:$Id$
// Author: <NAME>   14/03/2013

/*******************************************************************************
* Copyright (C) 1995-2013, <NAME> and <NAME>.                     *
 * All rights reserved.                                                        *
 *                                                                             *
 * For the licensing terms see $ROOTSYS/LICENSE.                               *
 * For the list of contributors see $ROOTSYS/README/CREDITS.                   *
 ******************************************************************************/

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
// TInterpreterValue                                                          //
//                                                                            //
// Bridge between cling::StoredValueRef and ROOT.                             //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

#include "TInterpreterValue.h"

#include "cling/Interpreter/StoredValueRef.h"

static cling::StoredValueRef& GetAsStoredValueRef(void* value) {
   return reinterpret_cast<cling::StoredValueRef&>(value);
}

TInterpreterValue::TInterpreterValue() {
   // We default initialize to invalid value so that we could keep a "sane" 
   // state.<commit_msg>Don't return a reference to a temporary.<commit_after>// @(#)root/core/meta:$Id$
// Author: <NAME>   14/03/2013

/*******************************************************************************
* Copyright (C) 1995-2013, <NAME> and <NAME>.                     *
 * All rights reserved.                                                        *
 *                                                                             *
 * For the licensing terms see $ROOTSYS/LICENSE.                               *
 * For the list of contributors see $ROOTSYS/README/CREDITS.                   *
 ******************************************************************************/

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
// TInterpreterValue                                                          //
//                                                                            //
// Bridge between cling::StoredValueRef and ROOT.                             //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

#include "TInterpreterValue.h"

#include "cling/Interpreter/StoredValueRef.h"

static const cling::StoredValueRef& GetAsStoredValueRef(void* const& value) {
   return reinterpret_cast<const cling::StoredValueRef&>(value);
}

static cling::StoredValueRef& GetAsStoredValueRef(void*& value) {
   return reinterpret_cast<cling::StoredValueRef&>(value);
}

TInterpreterValue::TInterpreterValue() {
   // We default initialize to invalid value so that we could keep a "sane" 
   // state.
{'fraction_non_alphanumeric': 0.26838235294117646, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 0.9469290399522957, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4993050', 'n_tokens_mistral': 625, 'n_tokens_neox': 573, 'n_words': 130}