<commit_before>
module CORL
module Node
class AWS < Fog
 
  #-----------------------------------------------------------------------------
  # Node plugin interface
  
  def normalize(reload)
    super do
      region_info.import({
        'us-east-1'      => 'US East       -- North Virginia', 
        'us-west-1'      => 'US West       -- North California', 
        'us-west-2'      => 'US West       -- Oregon',
        'eu-west-1'      => 'EU            -- Ireland',
        'ap-northeast-1' => 'Asia Pacific  -- Tokyo', 
        'ap-southeast-1' => 'Asia Pacific  -- Singapore', 
        'ap-southeast-2' => 'Asia Pacific  -- Sydney',       
        'sa-east-1'      => 'South America -- São Paulo'
      })
      
      # Return machine provider      
      :aws
    end
  end
       
  #-----------------------------------------------------------------------------
  # Checks
  
  def usable_image?(image)
    image.state == 'available' && image.name
  end
  
  #-----------------------------------------------------------------------------
  # Property accessors / modifiers
    
  #-----------------------------------------------------------------------------
  # Settings groups<commit_msg>Eliminating multibyte character from region name in the AWS node provider.<commit_after>
module CORL
module Node
class AWS < Fog
 
  #-----------------------------------------------------------------------------
  # Node plugin interface
  
  def normalize(reload)
    super do
      region_info.import({
        'us-east-1'      => 'US East       -- North Virginia', 
        'us-west-1'      => 'US West       -- North California', 
        'us-west-2'      => 'US West       -- Oregon',
        'eu-west-1'      => 'EU            -- Ireland',
        'ap-northeast-1' => 'Asia Pacific  -- Tokyo', 
        'ap-southeast-1' => 'Asia Pacific  -- Singapore', 
        'ap-southeast-2' => 'Asia Pacific  -- Sydney',       
        'sa-east-1'      => 'South America -- Sao Paulo'
      })
      
      # Return machine provider      
      :aws
    end
  end
       
  #-----------------------------------------------------------------------------
  # Checks
  
  def usable_image?(image)
    image.state == 'available' && image.name
  end
  
  #-----------------------------------------------------------------------------
  # Property accessors / modifiers
    
  #-----------------------------------------------------------------------------
  # Settings groups
{'fraction_non_alphanumeric': 0.34766734279918865, 'fraction_numerical': 0.006490872210953347, 'mean_word_length': 0.8239644970414202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '4399219', 'n_tokens_mistral': 617, 'n_tokens_neox': 588, 'n_words': 145}