<commit_before>class ServiceCreation
  attr_reader :attributes, :service
  def initialize(service_attributes, user)
    @attributes = service_attributes
    @user = user
  end

  def self.create(service_attributes, user)
    new(service_attributes, user).save
  end

  def save
    @service = Service.new(attributes)
    @service.organization_id = @user.organization_id
    @service.save!
    @service.versions.create
    @service
  end
end
<commit_msg>fix for Eleni<commit_after>class ServiceCreation
  attr_reader :attributes, :service
  def initialize(service_attributes, user)
    @attributes = service_attributes
    @user = user
  end

  def self.create(service_attributes, user)
    new(service_attributes, user).save
  end

  def save
    @service = Service.new(attributes)
    @service.organization_id = @user.organization_id
    @service.save!
    @service
  end
end

{'fraction_non_alphanumeric': 0.08323831242873432, 'fraction_numerical': 0.0, 'mean_word_length': 3.9886363636363638, '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': '905413', 'n_tokens_mistral': 266, 'n_tokens_neox': 257, 'n_words': 61}