<commit_before>require "jekyll"
require "contentful"
require "jekyll-contentful/version"
require "jekyll-contentful/language_switcher_tag"

module Jekyll
  class ContentfulEntryPage < Page
    def initialize(site, entry, content_type_name, prefix)
      
      @site = site
      @base = site.source
      @name = 'index.html'
      
      content_type_slug = Utils.slugify content_type_name

      layout_filename = site.layouts.key?(content_type_slug) ? "#{content_type_slug}.html" : "default.html"
      self.read_yaml(File.join(@base, '_layouts'), layout_filename)

      # stringify hash keys
      fields = entry.fields.inject({}){|x,(k,v)| x[k.to_s] = v; x}

      # merge data
      self.data.merge!(fields)
<commit_msg>Do not merge Contentful fields with properties<commit_after>require "jekyll"
require "contentful"
require "jekyll-contentful/version"
require "jekyll-contentful/language_switcher_tag"

module Jekyll
  class ContentfulEntryPage < Page
    def initialize(site, entry, content_type_name, prefix)
      
      @site = site
      @base = site.source
      @name = 'index.html'
      
      content_type_slug = Utils.slugify content_type_name

      layout_filename = site.layouts.key?(content_type_slug) ? "#{content_type_slug}.html" : "default.html"
      self.read_yaml(File.join(@base, '_layouts'), layout_filename)

      # stringify hash keys
      fields = entry.fields.inject({}){|x,(k,v)| x[k.to_s] = v; x}
      self.data['fields'] = fields

{'fraction_non_alphanumeric': 0.11948404616429056, 'fraction_numerical': 0.0, 'mean_word_length': 3.6645569620253164, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5076077', 'n_tokens_mistral': 482, 'n_tokens_neox': 488, 'n_words': 95}