<commit_before>require 'stacks/namespace'
require 'stacks/machine_def'

class Stacks::QuantAppServer < Stacks::MachineDef

  def initialize(virtual_service, index, &block)
    @virtual_service = virtual_service
    super(virtual_service.name + "-" + index)
  end

  def vip_fqdn
    return @virtual_service.vip_fqdn
  end

  def to_spec
   spec = super
   spec[:ram] = '4194304'
   spec
  end
<commit_msg>rpearce: Do not hardcode memory of quantapp servers<commit_after>require 'stacks/namespace'
require 'stacks/machine_def'

class Stacks::QuantAppServer < Stacks::MachineDef

  def initialize(virtual_service, index, &block)
    @virtual_service = virtual_service
    super(virtual_service.name + "-" + index)
  end

  def vip_fqdn
    return @virtual_service.vip_fqdn
  end

  def to_spec
   spec = super
   spec
  end

{'fraction_non_alphanumeric': 0.08637469586374696, 'fraction_numerical': 0.00851581508515815, 'mean_word_length': 4.208860759493671, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3803545', 'n_tokens_mistral': 288, 'n_tokens_neox': 277, 'n_words': 63}