<commit_before>do

function run(msg, matches)
  local lat = matches[1]
  local lon = matches[2]
  local receiver = get_receiver(msg)

  local zooms = {16, 18}
  local urls = {}
  for i = 1, #zooms do
    local zoom = zooms[i]
    local url = "http://maps.googleapis.com/maps/api/staticmap?zoom=" .. zoom .. "&size=600x300&maptype=roadmap&center=" .. lat .. "," .. lon .. "&markers=color:blue%7Clabel:X%7C" .. lat .. "," .. lon
    table.insert(urls, url)
  end

  send_photos_from_url(receiver, urls)

  return "www.google.es/maps/place/@" .. lat .. "," .. lon
end

return {
  description = "Generate Map for GPS Coordinates", 
  usage = "/gps (latitude,longitude) : generate map by gps cods",
  patterns = {"^[!/]gps ([^,]*)[,%s]([^,]*)$"}, 
  run = run 
}

end<commit_msg>Update gps.lua<commit_after>do

function run(msg, matches)
  local lat = matches[1]
  local lon = matches[2]
  local receiver = get_receiver(msg)

  local zooms = {16, 18}
  local urls = {}
  for i = 1, #zooms do
    local zoom = zooms[i]
    local url = "http://maps.googleapis.com/maps/api/staticmap?zoom=" .. zoom .. "&size=600x300&maptype=roadmap&center=" .. lat .. "," .. lon .. "&markers=color:blue%7Clabel:X%7C" .. lat .. "," .. lon
    table.insert(urls, url)
  end

  send_photos_from_url(receiver, urls)

  return "www.google.es/maps/place/@" .. lat .. "," .. lon
end

return {
  description = "Generate Map for GPS Coordinates", 
  usage = "/gps (latitude,longitude) : generate map by gps cods",
  patterns = {"^[!/]gps ([^,]*)[,%s]([^,]*)$"}, 
  run = run 
}

end
--usage = {
		"gps loc (lat,lon) : لوکيشن موقعيت",
		"gps link (lat,lon) : لينک گوگل مپ",
		"gps map (lat,lon) : نقشه موقعيت",
		"gps view (lat,lon) : تصوير واقعي",
	},
	patterns = {
		"^[Gg]ps (loc) ([^,]*)[,%s]([^,]*)$",
		"^[Gg]ps (map) ([^,]*)[,%s]([^,]*)$",
		"^[Gg]ps (view) ([^,]*)[,%s]([^,]*)$",
		"^[Gg]ps (link) ([^,]*)[,%s]([^,]*)$",
}, 
{'fraction_non_alphanumeric': 0.23656480505795574, 'fraction_numerical': 0.015806111696522657, 'mean_word_length': 3.345537757437071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4462937', 'n_tokens_mistral': 860, 'n_tokens_neox': 786, 'n_words': 171}