<commit_before>require 'rubygems'
require 'yaml'
require 'pry'

require_relative '../lib/djoini'

conn_info = YAML.load(File.read(File.dirname(__dir__) + '/config/database.yml'))

Djoini::Connection.instance.establish_connection(conn_info['test'])

Djoini.db.exec("CREATE TABLE IF NOT EXISTS users
  (
    id integer NOT NULL DEFAULT nextval('\"User_id_seq\"'::regclass),
    name text,
    last_name text,
    age integer,
    CONSTRAINT user_pk PRIMARY KEY (id)
  )
")

require_relative 'models/post'
require_relative 'models/user'

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
end<commit_msg>Changed to marcos for creating autoincrement<commit_after>require 'rubygems'
require 'yaml'
require 'pry'

require_relative '../lib/djoini'

conn_info = YAML.load(File.read(File.dirname(__dir__) + '/config/database.yml'))

Djoini::Connection.instance.establish_connection(conn_info['test'])

Djoini.db.exec("CREATE TABLE IF NOT EXISTS users
  (
    id SERIAL,
    name text,
    last_name text,
    age integer,
    CONSTRAINT user_pk PRIMARY KEY (id)
  )
")

require_relative 'models/post'
require_relative 'models/user'

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
end
{'fraction_non_alphanumeric': 0.10397946084724005, 'fraction_numerical': 0.0, 'mean_word_length': 4.860902255639098, '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': '1636022', 'n_tokens_mistral': 541, 'n_tokens_neox': 526, 'n_words': 114}