<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved

#include "ExampleTourHelpers.h"
#include <vector>
#include "SearchResultModel.h"
#include "TimeHelpers.h"
#include "SearchVendorNames.h"
#include "TourStateModel.h"
#include "document.h"
#include "writer.h"
#include "stringbuffer.h"

namespace ExampleApp
{
    namespace Tours
    {
        namespace SdkModel
        {
            namespace TourInstances
            {
                namespace Example
                {
                    Search::SdkModel::SearchResultModel CreateSearchResultModelFromTourStateModel(const TourStateModel& model)
                    {
                        
                        Search::SdkModel::SearchResultModel searchResultModel(Search::SdkModel::SearchResultModel::CurrentVersion,
                                                                  "",
                                                                  model.Headline(),
                                                                  model.Description(),
                                                                  Eegeo::Space::LatLong::FromDegrees(0.0f,
                                                                                                     0.0f),
                                                                  0,
                                                                  false,
                                                                  Eegeo::Resources::Interiors::InteriorId(""),
                                                                  0,
                                                                  "",
                                                                  std::vector<std::string>(),
                                                                  Search::ExampleTourVendorName,
                                                                  CreateJsonDataFromTourStateModel(model),<commit_msg>Fixing reversion. Use icon from tours model in CreateSearchResultModelFromTourStateModel. Buddy Jonty<commit_after>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved

#include "ExampleTourHelpers.h"
#include <vector>
#include "SearchResultModel.h"
#include "TimeHelpers.h"
#include "SearchVendorNames.h"
#include "TourStateModel.h"
#include "document.h"
#include "writer.h"
#include "stringbuffer.h"

namespace ExampleApp
{
    namespace Tours
    {
        namespace SdkModel
        {
            namespace TourInstances
            {
                namespace Example
                {
                    Search::SdkModel::SearchResultModel CreateSearchResultModelFromTourStateModel(const TourStateModel& model)
                    {
                        
                        Search::SdkModel::SearchResultModel searchResultModel(Search::SdkModel::SearchResultModel::CurrentVersion,
                                                                  "",
                                                                  model.Headline(),
                                                                  model.Description(),
                                                                  Eegeo::Space::LatLong::FromDegrees(0.0f,
                                                                                                     0.0f),
                                                                  0,
                                                                  false,
                                                                  Eegeo::Resources::Interiors::InteriorId(""),
                                                                  0,
                                                                  model.Icon(),
                                                                  std::vector<std::string>(),
                                                                  Search::ExampleTourVendorName,
                                                                  CreateJsonDataFromTourStateModel(model),
{'fraction_non_alphanumeric': 0.06259351620947631, 'fraction_numerical': 0.006982543640897756, 'mean_word_length': 0.75, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4739776', 'n_tokens_mistral': 669, 'n_tokens_neox': 626, 'n_words': 116}