<commit_before>// @(#)root/meta:$Id$

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

#include "rootclingTCling.h"

#include "TROOT.h"
#include "TInterpreter.h"

extern "C"
const char ** *TROOT__GetExtraInterpreterArgs()
{
  return &TROOT::GetExtraInterpreterArgs();
}

extern "C"
cling::Interpreter *TCling__GetInterpreter()
{
  static bool isInitialized = false;
  gROOT; // trigger initialization
  if (!isInitialized) {
    gInterpreter->SetClassAutoloading(false);
    isInitialized = true;
  }
  return (cling::Interpreter*) gInterpreter->GetInterpreterImpl();
}

<commit_msg>Use TCling directly; no need for a virtual interface.<commit_after>// @(#)root/meta:$Id$

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

#include "rootclingTCling.h"

#include "TROOT.h"
#include "TCling.h"

extern "C"
const char ** *TROOT__GetExtraInterpreterArgs()
{
  return &TROOT::GetExtraInterpreterArgs();
}

extern "C"
cling::Interpreter *TCling__GetInterpreter()
{
  static bool isInitialized = false;
  gROOT; // trigger initialization
  if (!isInitialized) {
    gInterpreter->SetClassAutoloading(false);
    isInitialized = true;
  }
  return (cling::Interpreter*) ((TCling*)gCling)->GetInterpreterImpl();
}


{'fraction_non_alphanumeric': 0.2381843706130089, 'fraction_numerical': 0.007487131492746842, 'mean_word_length': 2.5164473684210527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7542726', 'n_tokens_mistral': 577, 'n_tokens_neox': 548, 'n_words': 120}