<commit_before>require 'minitest/autorun'
require 'mongoid'
require_relative '../mongo_wrapper'

Mongoid.load! File.join(File.dirname(__FILE__), 'mongoid.yml'), :development


# define the models

class Checkin
  include Mongoid::Document
  belongs_to :user
  belongs_to :venue
end

class User
  include Mongoid::Document
  has_many :checkins
end

class Venue
  include Mongoid::Document
  has_many :checkins
end


describe Mongoid do
  mongo = MongoWrapper.new

  before do<commit_msg>have the participant define the mongoid models<commit_after>require 'minitest/autorun'
require 'mongoid'
require_relative '../mongo_wrapper'

Mongoid.load! File.join(File.dirname(__FILE__), 'mongoid.yml'), :development


# TODO define the models for User, Venue and Checkin


describe Mongoid do
  mongo = MongoWrapper.new

  before do
{'fraction_non_alphanumeric': 0.08647990255785627, 'fraction_numerical': 0.0, 'mean_word_length': 5.180451127819549, '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': '5070650', 'n_tokens_mistral': 272, 'n_tokens_neox': 261, 'n_words': 74}