<commit_before>require 'nokogiri'
require 'open-uri'
require 'pry'
require 'json'
require 'geocoder'

html = open('https://github.com/stevekinney/pizza/blob/master/README.md')
#html = open('https://github.com/cluhring/pizza/blob/master/README.md')

pizza  = Nokogiri::HTML(html)
cities = pizza.css('div#readme h4')
pizzerias = pizza.css('div#readme li')

pizzeria_hash =
{
  "type" => "FeatureCollection",
  "crs" => {
    "type" => "name",
    "properties" => {
      "name" => "urn:ogc:def:crs:OGC:1.3:CRS84"
    }
  },
  "features" => [
  ]
}

pizzerias.each { |pizzeria|
  pizzeria_obj = {
    "type" => "Feature",
    "properties" => {
      "City" => nil,
      "Pizzeria" => pizzeria.text.chomp,
      "website" => pizzeria.child['href'].chomp,
      "marker-size" => "medium",<commit_msg>mapped pizzerias using nokogiri & geocoder<commit_after>require 'nokogiri'
require 'open-uri'
require 'pry'
require 'json'
require 'geocoder'

html = open('https://github.com/stevekinney/pizza/blob/master/README.md')
#html = open('https://github.com/cluhring/pizza/blob/master/README.md')

pizza  = Nokogiri::HTML(html)

cities = pizza.css('div#readme h4')
pizzerias = pizza.css('div#readme li')

pizzeria_hash =
{
  "type" => "FeatureCollection",
  "crs" => {
    "type" => "name",
    "properties" => {
      "name" => "urn:ogc:def:crs:OGC:1.3:CRS84"
    }
  },
  "features" => [
  ]
}

pizzerias.each { |pizzeria|
  pizzeria_obj = {
    "type" => "Feature",
    "properties" => {
      "City" => nil,
      "Pizzeria" => pizzeria.text.chomp,
      "website" => pizzeria.child['href'].chomp,
      "marker-size" => "medium",
{'fraction_non_alphanumeric': 0.2003699136868064, 'fraction_numerical': 0.006165228113440197, 'mean_word_length': 3.677233429394813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 4, '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': '7434963', 'n_tokens_mistral': 682, 'n_tokens_neox': 665, 'n_words': 95}