<commit_before>require 'test_helper'
require 'roar/representer/feature/hypermedia'
require 'roar/representer/json'

class HypermediaTest
  describe "Hypermedia Feature" do


    before do
      @bookmarks = Class.new do
        include AttributesConstructor
        include Roar::Representer::XML
        include Roar::Representer::Feature::Hypermedia

        self.representation_wrap = "bookmarks"
      end

      @bookmarks_with_links = Class.new(@bookmarks)<commit_msg>derive test from MiniTest::Spec.<commit_after>require 'test_helper'
require 'roar/representer/feature/hypermedia'
require 'roar/representer/json'

class HypermediaTest < MiniTest::Spec
  describe "Hypermedia Feature" do


    before do
      @bookmarks = Class.new do
        include AttributesConstructor
        include Roar::Representer::XML
        include Roar::Representer::Feature::Hypermedia

        self.representation_wrap = "bookmarks"
      end

      @bookmarks_with_links = Class.new(@bookmarks)
{'fraction_non_alphanumeric': 0.08536585365853659, 'fraction_numerical': 0.0, 'mean_word_length': 3.8048780487804876, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1984855', 'n_tokens_mistral': 294, 'n_tokens_neox': 269, 'n_words': 59}