<commit_before>require 'rubygems'
require 'aliyun_ruby_api'
require 'json'

#$DEBUG=true

options = {:access_key_id => "<KEY>",
           :access_key_secret => "<KEY>",
           :endpoint_url => "https://ecs.aliyuncs.com/"}


service = Aliyun::Service.new options


parameters = {:RegionId => "cn-beijing"}

#puts service.DescribeInstanceStatus parameters

my_hash = service.DescribeInstances parameters

puts JSON.pretty_generate(my_hash) <commit_msg>list instances<commit_after>require 'rubygems'
require 'aliyun_ruby_api'
require 'json'

#$DEBUG=true

options = {:access_key_id => "xxxxx",
           :access_key_secret => "xxxxx",
           :endpoint_url => "https://ecs.aliyuncs.com/"}


service = Aliyun::Service.new options


parameters = {:RegionId => "cn-beijing"}

#puts service.DescribeInstanceStatus parameters

my_hash = service.DescribeInstances parameters

puts JSON.pretty_generate(my_hash) 
{'fraction_non_alphanumeric': 0.13172338090010977, 'fraction_numerical': 0.0, 'mean_word_length': 4.846153846153846, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '7556349', 'n_tokens_mistral': 311, 'n_tokens_neox': 302, 'n_words': 57}