<commit_before>##########################################################
### DEPRECATED: JSON operators are an hack and there is no
### reason not to use jsonb other than migrating your data
##########################################################
if ENV['HAVE_PLPYTHON'] == '1'

  require 'spec_helper'
  require 'support/helpers'

  require 'chrono_model/json'

  describe 'JSON equality operator' do
    include ChronoTest::Helpers::Adapter

    table 'json_test'

    before :all do
      ChronoModel::Json.create
    end

    after :all do
      ChronoModel::Json.drop
    end<commit_msg>Allow JSON OPS spec to start<commit_after>##########################################################
### DEPRECATED: JSON operators are an hack and there is no
### reason not to use jsonb other than migrating your data
##########################################################
if ENV['HAVE_PLPYTHON'] == '1'

  require 'spec_helper'
  require 'support/adapter/helpers'

  require 'chrono_model/json'

  describe 'JSON equality operator' do
    include ChronoTest::Adapter::Helpers

    table 'json_test'

    before :all do
      ChronoModel::Json.create
    end

    after :all do
      ChronoModel::Json.drop
    end
{'fraction_non_alphanumeric': 0.2609053497942387, 'fraction_numerical': 0.0016460905349794238, 'mean_word_length': 4.552511415525114, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6627030', 'n_tokens_mistral': 333, 'n_tokens_neox': 320, 'n_words': 102}