<commit_before>require 'sinatra'
require 'data_mapper'

require './helpers/birthday'

require './models/vip_clients.rb'
require './models/invitations.rb'

include Birthday

DataMapper.setup(:default, ENV['DATABASE_URL'])

get '/' do
  send_invitations
end

def send_invitations
 @vip_clients = VipClients.all
 return Birthday.greetings(@vip_clients) if @vip_clients.any?<commit_msg>Refactoring load of vip_clients<commit_after>require 'sinatra'
require 'data_mapper'

require './helpers/birthday'

require './models/vip_clients.rb'
require './models/invitations.rb'

include Birthday

DataMapper.setup(:default, ENV['DATABASE_URL'])

get '/' do
  @vip_clients = VipClients.all
  send_invitations
end

def send_invitations
 return Birthday.greetings(@vip_clients) if @vip_clients.any?
{'fraction_non_alphanumeric': 0.11749680715197956, 'fraction_numerical': 0.0, 'mean_word_length': 6.063063063063063, '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': '2377768', 'n_tokens_mistral': 287, 'n_tokens_neox': 286, 'n_words': 54}