<commit_before>// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.

#include "CLRenderFlattener.h"

#include <map>
#include <list>
#include <string>
#include <assert.h>
#include <typeinfo>
#include <algorithm>

#include "copasi/layout/CLLocalStyle.h"
#include "copasi/layout/CLGlobalStyle.h"
#include "copasi/layout/CLRenderInformationBase.h"
#include "copasi/utilities/CCopasiMessage.h"

/**
 * static method that takes a const reference to a global render
 * information object and resolves all references.
 * The returned object is a new global render information object and the
 * caller is responsible for freeing the memory once it is no longer used.
 * If references can not be resolved, an unresolved_reference_exception is
 * thrown.
 */
CLGlobalRenderInformation* CLRenderFlattener::flatten_render_information(const CLGlobalRenderInformation& globalRenderInformation, const CCopasiVector<CLGlobalRenderInformation>& globalList) throw(CLUnresolvedReferenceException)
{
  return dynamic_cast<CLGlobalRenderInformation*>(CLRenderFlattener::flatten(globalRenderInformation, globalList, CCopasiVector<CLLocalRenderInformation>()));
}

/**
 * static method that takes a const reference to a local render
 * information object and resolves all references.
 * The returned object is a new local render information object and the
 * caller is responsible for freeing the memory once it is no longer used.
 * If references can not be resolved, an unresolved_reference_exception is
 * thrown.
 */<commit_msg>Finally fixed the compiler error under MacOS X.<commit_after>// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.

#include "CLRenderFlattener.h"

#include <map>
#include <list>
#include <string>
#include <assert.h>
#include <typeinfo>
#include <algorithm>

#include "copasi/layout/CLLocalStyle.h"
#include "copasi/layout/CLGlobalStyle.h"
#include "copasi/layout/CLRenderInformationBase.h"
#include "copasi/utilities/CCopasiMessage.h"

/**
 * static method that takes a const reference to a global render
 * information object and resolves all references.
 * The returned object is a new global render information object and the
 * caller is responsible for freeing the memory once it is no longer used.
 * If references can not be resolved, an unresolved_reference_exception is
 * thrown.
 */
CLGlobalRenderInformation* CLRenderFlattener::flatten_render_information(const CLGlobalRenderInformation& globalRenderInformation, const CCopasiVector<CLGlobalRenderInformation>& globalList) throw(CLUnresolvedReferenceException)
{
  CCopasiVector<CLLocalRenderInformation> empty;

  return dynamic_cast<CLGlobalRenderInformation*>(CLRenderFlattener::flatten(globalRenderInformation, globalList, empty));
}

/**
 * static method that takes a const reference to a local render
 * information object and resolves all references.
 * The returned object is a new local render information object and the
 * caller is responsible for freeing the memory once it is no longer used.
 * If references can not be resolved, an unresolved_reference_exception is
 * thrown.
 */
{'fraction_non_alphanumeric': 0.07859733978234583, 'fraction_numerical': 0.0048367593712212815, 'mean_word_length': 5.725609756097561, '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': '5545544', 'n_tokens_mistral': 876, 'n_tokens_neox': 855, 'n_words': 331}