<commit_before>Shindo.tests("Fog::Compute[:joyent] | dataset requests", ["joyent"]) do
  @dataset_format = {
    "name" => String,
    "version" => String,
    "os" => String,
    "id" => String,
    "urn" => String,
    "default" => Fog::Boolean,
    "type" => String,
    "created" => String
  }

  if Fog.mock?
    Fog::Compute[:joyent].data[:datasets] = {
      "7456f2b0-67ac-11e0-b5ec-832e6cf079d5" => {
        "name" => "nodejs",
        "version" => "1.1.3",
        "os" => "smartos",
        "id" => "7456f2b0-67ac-11e0-b5ec-832e6cf079d5",
        "urn" => "sdc:sdc:nodejs:1.1.3",
        "default" => true,
        "type" => "smartmachine",
        "created" => Time.parse("2011-04-15T22:04:12+00:00")
      },
      "febaa412-6417-11e0-bc56-535d219f2590" => {
        "name" => "smartos",
        "version" => "1.3.12",
        "os" => "smartos",
        "id" => "febaa412-6417-11e0-bc56-535d219f2590",
        "urn" => "sdc:sdc:smartos:1.3.23",
        "default" => false,
        "type" => "smartmachine",
        "created" => Time.parse("2011-04-11T08:45:00+00:00")
      }
    }
  end

  tests("#list_datasets") do
    formats(@dataset_format) do
      Fog::Compute[:joyent].list_datasets.body.first
    end

    returns(Fog::Compute[:joyent].data[:datasets].length) do
      Fog::Compute[:joyent].list_datasets.body.length
    end
  end
end<commit_msg>[joyent|compute] fix format of joyent to match real output and remove mock-only test<commit_after>Shindo.tests("Fog::Compute[:joyent] | dataset requests", ["joyent"]) do
  @dataset_format = {
    "description" => String,
    "requirements" => {},
    "name" => String,
    "version" => String,
    "os" => String,
    "id" => String,
    "urn" => String,
    "default" => Fog::Boolean,
    "type" => String,
    "created" => String
  }

  if Fog.mock?
    Fog::Compute[:joyent].data[:datasets] = {
      "7456f2b0-67ac-11e0-b5ec-832e6cf079d5" => {
        "name" => "nodejs",
        "version" => "1.1.3",
        "os" => "smartos",
        "id" => "7456f2b0-67ac-11e0-b5ec-832e6cf079d5",
        "urn" => "sdc:sdc:nodejs:1.1.3",
        "default" => true,
        "type" => "smartmachine",
        "created" => Time.parse("2011-04-15T22:04:12+00:00")
      },
      "febaa412-6417-11e0-bc56-535d219f2590" => {
        "name" => "smartos",
        "version" => "1.3.12",
        "os" => "smartos",
        "id" => "febaa412-6417-11e0-bc56-535d219f2590",
        "urn" => "sdc:sdc:smartos:1.3.23",
        "default" => false,
        "type" => "smartmachine",
        "created" => Time.parse("2011-04-11T08:45:00+00:00")
      }
    }
  end

  tests("#list_datasets") do
    formats(@dataset_format) do
      Fog::Compute[:joyent].list_datasets.body.first
    end
  end
end
{'fraction_non_alphanumeric': 0.20350109409190373, 'fraction_numerical': 0.09773887673231219, 'mean_word_length': 2.5531088082901556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 57, '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': '5443600', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1096, 'n_words': 154}