<commit_before>require 'rest_client'

r=RestClient.get 'https://api.opened.io/resources.json?descriptive=Fibonacci%20sequence&limit=3'

puts r["meta"]<commit_msg>better samples<commit_after>require 'rest_client'
require 'json'

phrase="Fibonacci%20sequence"
limit=10
response=RestClient.get 'https://api.opened.io/resources.json?descriptive=#{phrase}&limit=#{limit}'
result=JSON.parse(result)

p "Resources return\n=============="
resources=result["resources"]
resources.each do |r|
  p "Resource: #{r['title']}: #{r['share_url']}"
end

{'fraction_non_alphanumeric': 0.1958955223880597, 'fraction_numerical': 0.013059701492537313, 'mean_word_length': 9.529411764705882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4178712', 'n_tokens_mistral': 192, 'n_tokens_neox': 182, 'n_words': 27}