<commit_before># coding: utf-8

module Fog
  module Network
    class SakuraCloud
      class Real
        def create_router(options)
          bandwidthmbps = options[:bandwidthmbps] ? options[:bandwidthmbps].to_i : 100

          body = {
            "Internet" => {
              "Name" => options[:name],
              "NetworkMaskLen"=> options[:networkmasklen].to_i,
              "BandWidthMbps"=> bandwidthmbps
            }
          }

          request(
            :headers => {
              'Authorization' => "Basic #{@auth_encord}"
            },
            :expects  => 202,
            :method => 'POST',
            :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/internet",
            :query => URL.encode(Fog::JSON.encode(body))
          )
        end
      end # Real

      class Mock
        def create_router(options)
          response = Excon::Response.new
          response.status = 202
          response.body = {
          }
          response
        end
      end
    end # SakuraCloud
  end # Network
end # Fog<commit_msg>fix wrong update for create_router<commit_after># coding: utf-8

module Fog
  module Network
    class SakuraCloud
      class Real
        def create_router(options)
          bandwidthmbps = options[:bandwidthmbps] ? options[:bandwidthmbps].to_i : 100

          body = {
            "Internet" => {
              "Name" => options[:name],
              "NetworkMaskLen"=> options[:networkmasklen].to_i,
              "BandWidthMbps"=> bandwidthmbps
            }
          }

          request(
            :headers => {
              'Authorization' => "Basic #{@auth_encord}"
            },
            :expects  => 202,
            :method => 'POST',
            :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/internet",
            :body => Fog::JSON.encode(body)
          )
        end
      end # Real

      class Mock
        def create_router(options)
          response = Excon::Response.new
          response.status = 202
          response.body = {
          }
          response
        end
      end
    end # SakuraCloud
  end # Network
end # Fog
{'fraction_non_alphanumeric': 0.10784313725490197, 'fraction_numerical': 0.009337068160597572, 'mean_word_length': 1.5390995260663507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '1786346', 'n_tokens_mistral': 627, 'n_tokens_neox': 600, 'n_words': 121}