<commit_before>/// \file TFrame.cxx
/// \ingroup Gpad ROOT7
/// \author <NAME> <<EMAIL>>
/// \date 2017-09-26
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!

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

#include "ROOT/TFrame.hxx"

#include "ROOT/TLogger.hxx"
#include "ROOT/TPadUserCoordBase.hxx"

#include <cassert>

namespace {
using namespace ROOT::Experimental;
// FIXME: this is probably worth documenting, thus not in unnamed namespace in source!
class TPadUserCoordDefault: public Detail::TPadUserCoordBase {
   bool fLogX = false;
   bool fLogY = false;

public:
   std::array<TPadCoord::Normal, 2> ToNormal(const std::array<TPadCoord::User, 2> &user) const override
   {
      R__ERROR_HERE("Gpad") << "Not yet implemented!";
      return {{user[0].fVal, user[1].fVal}};
   }
};
} // namespace

ROOT::Experimental::TFrame::TFrame(std::unique_ptr<Detail::TPadUserCoordBase> &&coords, const TPadPos &pos,
                                   const TPadExtent &size)
   : fUserCoord(std::move(coords)), fPalette(TPalette::GetPalette("default")), fPos(pos), fSize(size)<commit_msg>Silence "unused" warning for now; will be replaced by vector<TFrameAxis>.<commit_after>/// \file TFrame.cxx
/// \ingroup Gpad ROOT7
/// \author <NAME> <<EMAIL>>
/// \date 2017-09-26
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!

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

#include "ROOT/TFrame.hxx"

#include "ROOT/TLogger.hxx"
#include "ROOT/TPadUserCoordBase.hxx"

#include <cassert>

namespace {
using namespace ROOT::Experimental;
// FIXME: Replace by array of TFrameAxis!
class TPadUserCoordDefault: public Detail::TPadUserCoordBase {

public:
   std::array<TPadCoord::Normal, 2> ToNormal(const std::array<TPadCoord::User, 2> &user) const override
   {
      R__ERROR_HERE("Gpad") << "Not yet implemented!";
      return {{user[0].fVal, user[1].fVal}};
   }
};
} // namespace

ROOT::Experimental::TFrame::TFrame(std::unique_ptr<Detail::TPadUserCoordBase> &&coords, const TPadPos &pos,
                                   const TPadExtent &size)
   : fUserCoord(std::move(coords)), fPalette(TPalette::GetPalette("default")), fPos(pos), fSize(size)
{'fraction_non_alphanumeric': 0.2078599938593798, 'fraction_numerical': 0.013509364445809026, 'mean_word_length': 2.719178082191781, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4413880', 'n_tokens_mistral': 944, 'n_tokens_neox': 882, 'n_words': 231}