<commit_before>module Fog
  module Compute
    class Bluebox
      class Real

        # Create a new block
        #
        # ==== Parameters
        # * product_id<~String> - ID of product to create block with
        # * template_id<~String> - ID of template to create block with
        # * location_id<~String> - ID of location to create block in
        # * options<~Hash>:
        #     * password<~String> - <PASSWORD>
        #   or
        #     * ssh_key<~String> - ssh public key
        #   * username<~String> - optional, defaults to deploy
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def create_block(product_id, template_id, location_id, options = {})

          unless options.has_key?(:password) || options.has_key?(:ssh_key)
            raise ArgumentError, 'Either password or ssh_key must be supplied'
          end

          query = {
            'product'  => product_id,
            'template' => template_id,<commit_msg>correct the options checking in BlueBox create_block<commit_after>module Fog
  module Compute
    class Bluebox
      class Real

        # Create a new block
        #
        # ==== Parameters
        # * product_id<~String> - ID of product to create block with
        # * template_id<~String> - ID of template to create block with
        # * location_id<~String> - ID of location to create block in
        # * options<~Hash>:
        #     * password<~String> - <PASSWORD>
        #   or
        #     * ssh_key<~String> - ssh public key
        #   * username<~String> - optional, defaults to deploy
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def create_block(product_id, template_id, location_id, options = {})

          unless options.has_key?('password') || options.has_key?('ssh_key')
            raise ArgumentError, 'Either password or ssh_key must be supplied'
          end

          query = {
            'product'  => product_id,
            'template' => template_id,
{'fraction_non_alphanumeric': 0.10857973824527388, 'fraction_numerical': 0.0, 'mean_word_length': 1.9527896995708154, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '1078415', 'n_tokens_mistral': 590, 'n_tokens_neox': 575, 'n_words': 157}