old_contents: ###############################################################################
  # The MIT License (MIT)
  #
  # Copyright (c) 2013 Cássio Paixão
  #
  # Permission is hereby granted, free of charge, to any person obtaining a copy
  # of this software and associated documentation files (the "Software"), to deal
  # in the Software without restriction, including without limitation the rights
  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  # copies of the Software, and to permit persons to whom the Software is
  # furnished to do so, subject to the following conditions:
  #
  # The above copyright notice and this permission notice shall be included in
  # all copies or substantial portions of the Software.
  #
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  # THE SOFTWARE.
  ###############################################################################
  
  from core.resource_manager import EnvironmentBuilder
  from core.server import Server
  
  class GoogleEnvironmentBuilder(EnvironmentBuilder):
  
      # Heterogeneity and Dynamicity of Clouds at Scale: Google Trace Analysis
      # Charles Reiss, Alexey Tumanov, Gregory R. Ganger, Randy H. Katz, Machael A. Kozuch
      @staticmethod
      def build(resource_manager):
          resource_manager.add_servers_of_type(Server('', 0.50, 0.50), 6732)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.25), 3863)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.75), 1001)
          resource_manager.add_servers_of_type(Server('', 1.00, 1.00), 795)
          resource_manager.add_servers_of_type(Server('', 0.25, 0.25), 126)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.12), 52)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.03), 5)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.97), 5)
          resource_manager.add_servers_of_type(Server('', 1.00, 0.50), 3)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.06), 1)
  
  # 5% of GoogleEnvironment
  class MiniGoogleEnvironmentBuilder(EnvironmentBuilder):
      @staticmethod
      def build(resource_manager):
          resource_manager.add_servers_of_type(Server('', 0.50, 0.50), 336)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.25), 193)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.75), 50)
          resource_manager.add_servers_of_type(Server('', 1.00, 1.00), 40)
          resource_manager.add_servers_of_type(Server('', 0.25, 0.25), 6)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.12), 3)
  
new_contents: ###############################################################################
  # The MIT License (MIT)
  #
  # Copyright (c) 2013 Cássio Paixão
  #
  # Permission is hereby granted, free of charge, to any person obtaining a copy
  # of this software and associated documentation files (the "Software"), to deal
  # in the Software without restriction, including without limitation the rights
  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  # copies of the Software, and to permit persons to whom the Software is
  # furnished to do so, subject to the following conditions:
  #
  # The above copyright notice and this permission notice shall be included in
  # all copies or substantial portions of the Software.
  #
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  # THE SOFTWARE.
  ###############################################################################
  
  from core.resource_manager import EnvironmentBuilder
  from core.server import Server
  
  class GoogleEnvironmentBuilder(EnvironmentBuilder):
  
      # Heterogeneity and Dynamicity of Clouds at Scale: Google Trace Analysis
      # Charles Reiss, Alexey Tumanov, Gregory R. Ganger, Randy H. Katz, Machael A. Kozuch
      @staticmethod
      def build(resource_manager):
          resource_manager.add_servers_of_type(Server('', 0.50, 0.50), 6732)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.25), 3863)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.75), 1001)
          resource_manager.add_servers_of_type(Server('', 1.00, 1.00), 795)
          resource_manager.add_servers_of_type(Server('', 0.25, 0.25), 126)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.12), 52)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.03), 5)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.97), 5)
          resource_manager.add_servers_of_type(Server('', 1.00, 0.50), 3)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.06), 1)
  
  # 5% of GoogleEnvironment
  class MiniGoogleEnvironmentBuilder(EnvironmentBuilder):
      @staticmethod
      def build(resource_manager):
          resource_manager.add_servers_of_type(Server('', 0.50, 0.50), 337)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.25), 193)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.75), 50)
          resource_manager.add_servers_of_type(Server('', 1.00, 1.00), 40)
          resource_manager.add_servers_of_type(Server('', 0.25, 0.25), 6)
          resource_manager.add_servers_of_type(Server('', 0.50, 0.12), 3)
  
subject: Update quantity of servers on MiniGoogleEnvironment (based on 5% of total)