<commit_before>package DDG::Spice::UV;
# Use the web service provided by EPA to display the UV Index for locations in the US.
# The web service is described here: http://www.epa.gov/enviro/facts/services.html#uvindex

use DDG::Spice;

spice is_cached => 1;

name "UV Index";
source "EPA - United States Environmental Protection Agency";
description "Display the UV Index for the user's location in the US";
primary_example_queries "uv", "uv index";
category "location_aware";
topics "everyday", "travel", "geography";
code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/UV.pm";
attribution github => ["https://github.com/Bjoern", "<NAME>"],
            twitter => ["https://twitter.com/fractality", "Fractality"],
            web => ["http://blinker.net", "Bjoern's Blog"];

# Triggers
triggers startend => 'uv', 'uv index', 'current uv index';

spice from => '([^/]*)/?([^/]*)';

#hourly data - for the next version...
#spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVHOURLY/CITY/$1/STATE/$2/JSON';

#daily data - just one value for the day...
spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVDAILY/CITY/$1/STATE/$2/JSON';

#UV Index might change daily, but not in the middle of the night. 
spice proxy_cache_valid => "200 304 4h";<commit_msg>added real name for developer's twitter account<commit_after>package DDG::Spice::UV;
# Use the web service provided by EPA to display the UV Index for locations in the US.
# The web service is described here: http://www.epa.gov/enviro/facts/services.html#uvindex

use DDG::Spice;

spice is_cached => 1;

name "UV Index";
source "EPA - United States Environmental Protection Agency";
description "Display the UV Index for the user's location in the US";
primary_example_queries "uv", "uv index";
category "location_aware";
topics "everyday", "travel", "geography";
code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/UV.pm";
attribution github => ["https://github.com/Bjoern", "<NAME>"],
            twitter => ["https://twitter.com/fractality", "<NAME>"],
            web => ["http://blinker.net", "Bjoern's Blog"];

# Triggers
triggers startend => 'uv', 'uv index', 'current uv index';

spice from => '([^/]*)/?([^/]*)';

#hourly data - for the next version...
#spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVHOURLY/CITY/$1/STATE/$2/JSON';

#daily data - just one value for the day...
spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVDAILY/CITY/$1/STATE/$2/JSON';

#UV Index might change daily, but not in the middle of the night. 
spice proxy_cache_valid => "200 304 4h";
{'fraction_non_alphanumeric': 0.16103603603603603, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 4.405679513184584, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 24, 'https://': 6, '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': '6917017', 'n_tokens_mistral': 937, 'n_tokens_neox': 902, 'n_words': 255}