<commit_before>
class ServerTestHelper
  @@server_cache = {}

  def self.create(name)
    return @@server_cache[name] unless @@server_cache[name].nil?
    keypair = KeypairTestHelper.create("cli_test_key1")
    servers = HP::Cloud::Servers.new
    server = servers.get(name)
    if server.is_valid?
      @@server_cache[name] = server
      return server
    end
    server = servers.create()
    server.name = name
    server.flavor = AccountsHelper.get_flavor_id()
    server.image = AccountsHelper.get_image_id()
    server.set_keypair(keypair.name)
    server.save<commit_msg>add network<commit_after>
class ServerTestHelper
  @@server_cache = {}

  def self.create(name)
    return @@server_cache[name] unless @@server_cache[name].nil?
    keypair = KeypairTestHelper.create("cli_test_key1")
    servers = HP::Cloud::Servers.new
    server = servers.get(name)
    if server.is_valid?
      @@server_cache[name] = server
      return server
    end
    server = servers.create()
    server.name = name
    server.flavor = AccountsHelper.get_flavor_id().to_i
    server.image = AccountsHelper.get_image_id()
    server.set_keypair(keypair.name)
    server.set_network('cli_test_network1')
    server.save
{'fraction_non_alphanumeric': 0.11267605633802817, 'fraction_numerical': 0.0024855012427506215, 'mean_word_length': 3.774703557312253, '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': '3379204', 'n_tokens_mistral': 410, 'n_tokens_neox': 393, 'n_words': 67}