GitHub PullRequestReviewCommentEvent at 2014-09-30 17:31:31
Repository: zeroclickinfo-spice
Actor: moollaza
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/18232988","id":18232988,"diff_hunk":"@@ -0,0 +1,56 @@\n+package DDG::Spice::Rainfall;\n+# ABSTRACT: Returns the annual rainfall (precipitation) of the country searched \n+\n+use DDG::Spice;\n+\n+primary_example_queries \"rainfall australia\";\n+secondary_example_queries \"australia annual rainfall\";\n+description \"Shows annual rainfall\";\n+name \"Rainfall\";\n+code_url \"https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Rainfall.pm\";\n+topics \"everyday\";\n+category \"geography\";\n+attribution github  => ['https://github.com/chrisjwilsoncom', 'chrisjwilsoncom'];\n+triggers start => \"rainfall\";\n+\n+spice from => '([^/]+)/?(?:([^/]+)/?(?:([^/]+)|)|)';\n+spice to => 'http://api.worldbank.org/countries/$1/indicators/AG.LND.PRCP.MM?&date=$2&format=json';\n+spice wrap_jsonp_callback => 1;\n+\n+#current date and time\n+my @localT = localtime;\n+my $curYear = $localT[5] + 1900;\n+\n+#vaild reporting dates for AG.LND.PRCP.MM indicator (every 5 years)\n+my @reportingDates = (2012,2017,2022,2027,2032);\n+\n+# list of countries with ISO 3166 alpha-3 code\n+my %countries = (\"afghanistan\" => \"afg\", \"Åland islands\" => \"ala\", \"albania\" => \"alb\", \"algeria\" => \"dza\", \"american samoa\" => \"asm\", \"andorra\" => \"and\", \"angola\" => \"ago\", \"anguilla\" => \"aia\", \"antarctica\" => \"ata\", \"antigua and barbuda\" => \"atg\", \"argentina\" => \"arg\", \"armenia\" => \"arm\", \"aruba\" => \"abw\", \"australia\" => \"aus\", \"austria\" => \"aut\", \"azerbaijan\" => \"aze\", \"bahamas\" => \"bhs\", \"bahrain\" => \"bhr\", \"bangladesh\" => \"bgd\", \"barbados\" => \"brb\", \"belarus\" => \"blr\", \"belgium\" => \"bel\", \"belize\" => \"blz\", \"benin\" => \"ben\", \"bermuda\" => \"bmu\", \"bhutan\" => \"btn\", \"bolivia, plurinational state of\" => \"bol\", \"bosnia and herzegovina\" => \"bih\", \"botswana\" => \"bwa\", \"bouvet island\" => \"bvt\", \"brazil\" => \"bra\", \"british indian ocean territory\" => \"iot\", \"brunei darussalam\" => \"brn\", \"bulgaria\" => \"bgr\", \"burkina faso\" => \"bfa\", \"burundi\" => \"bdi\", \"cambodia\" => \"khm\", \"cameroon\" => \"cmr\", \"canada\" => \"can\", \"cape verde\" => \"cpv\", \"cayman islands\" => \"cym\", \"central african republic\" => \"caf\", \"chad\" => \"tcd\", \"chile\" => \"chl\", \"china\" => \"chn\", \"christmas island\" => \"cxr\", \"cocos (keeling) islands\" => \"cck\", \"colombia\" => \"col\", \"comoros\" => \"com\", \"congo\" => \"cog\", \"congo, the democratic republic of the\" => \"cod\", \"cook islands\" => \"cok\", \"costa rica\" => \"cri\", \"Côte d'ivoire\" => \"civ\", \"croatia\" => \"hrv\", \"cuba\" => \"cub\", \"cyprus\" => \"cyp\", \"czech republic\" => \"cze\", \"denmark\" => \"dnk\", \"djibouti\" => \"dji\", \"dominica\" => \"dma\", \"dominican republic\" => \"dom\", \"ecuador\" => \"ecu\", \"egypt\" => \"egy\", \"el salvador\" => \"slv\", \"equatorial guinea\" => \"gnq\", \"eritrea\" => \"eri\", \"estonia\" => \"est\", \"ethiopia\" => \"eth\", \"falkland islands (malvinas)\" => \"flk\", \"faroe islands\" => \"fro\", \"fiji\" => \"fji\", \"finland\" => \"fin\", \"france\" => \"fra\", \"french guiana\" => \"guf\", \"french polynesia\" => \"pyf\", \"french southern territories\" => \"atf\", \"gabon\" => \"gab\", \"gambia\" => \"gmb\", \"georgia\" => \"geo\", \"germany\" => \"deu\", \"ghana\" => \"gha\", \"gibraltar\" => \"gib\", \"greece\" => \"grc\", \"greenland\" => \"grl\", \"grenada\" => \"grd\", \"guadeloupe\" => \"glp\", \"guam\" => \"gum\", \"guatemala\" => \"gtm\", \"guernsey\" => \"ggy\", \"guinea\" => \"gin\", \"guinea-bissau\" => \"gnb\", \"guyana\" => \"guy\", \"haiti\" => \"hti\", \"heard island and mcdonald islands\" => \"hmd\", \"holy see (vatican city state)\" => \"vat\", \"honduras\" => \"hnd\", \"hong kong\" => \"hkg\", \"hungary\" => \"hun\", \"iceland\" => \"isl\", \"india\" => \"ind\", \"indonesia\" => \"idn\", \"iran, islamic republic of\" => \"irn\", \"iraq\" => \"irq\", \"ireland\" => \"irl\", \"isle of man\" => \"imn\", \"israel\" => \"isr\", \"italy\" => \"ita\", \"jamaica\" => \"jam\", \"japan\" => \"jpn\", \"jersey\" => \"jey\", \"jordan\" => \"jor\", \"kazakhstan\" => \"kaz\", \"kenya\" => \"ken\", \"kiribati\" => \"kir\", \"korea, democratic people's republic of\" => \"prk\", \"korea, republic of\" => \"kor\", \"kuwait\" => \"kwt\", \"kyrgyzstan\" => \"kgz\", \"lao people's democratic republic\" => \"lao\", \"latvia\" => \"lva\", \"lebanon\" => \"lbn\", \"lesotho\" => \"lso\", \"liberia\" => \"lbr\", \"libyan arab jamahiriya\" => \"lby\", \"liechtenstein\" => \"lie\", \"lithuania\" => \"ltu\", \"luxembourg\" => \"lux\", \"macao\" => \"mac\", \"macedonia, the former yugoslav republic of\" => \"mkd\", \"madagascar\" => \"mdg\", \"malawi\" => \"mwi\", \"malaysia\" => \"mys\", \"maldives\" => \"mdv\", \"mali\" => \"mli\", \"malta\" => \"mlt\", \"marshall islands\" => \"mhl\", \"martinique\" => \"mtq\", \"mauritania\" => \"mrt\", \"mauritius\" => \"mus\", \"mayotte\" => \"myt\", \"mexico\" => \"mex\", \"micronesia, federated states of\" => \"fsm\", \"moldova, republic of\" => \"mda\", \"monaco\" => \"mco\", \"mongolia\" => \"mng\", \"montenegro\" => \"mne\", \"montserrat\" => \"msr\", \"morocco\" => \"mar\", \"mozambique\" => \"moz\", \"myanmar\" => \"mmr\", \"namibia\" => \"nam\", \"nauru\" => \"nru\", \"nepal\" => \"npl\", \"netherlands\" => \"nld\", \"netherlands antilles\" => \"ant\", \"new caledonia\" => \"ncl\", \"new zealand\" => \"nzl\", \"nicaragua\" => \"nic\", \"niger\" => \"ner\", \"nigeria\" => \"nga\", \"niue\" => \"niu\", \"norfolk island\" => \"nfk\", \"northern mariana islands\" => \"mnp\", \"norway\" => \"nor\", \"oman\" => \"omn\", \"pakistan\" => \"pak\", \"palau\" => \"plw\", \"palestinian territory, occupied\" => \"pse\", \"panama\" => \"pan\", \"papua new guinea\" => \"png\", \"paraguay\" => \"pry\", \"peru\" => \"per\", \"philippines\" => \"phl\", \"pitcairn\" => \"pcn\", \"poland\" => \"pol\", \"portugal\" => \"prt\", \"puerto rico\" => \"pri\", \"qatar\" => \"qat\", \"Réunion\" => \"reu\", \"romania\" => \"rou\", \"russian federation\" => \"rus\", \"rwanda\" => \"rwa\", \"saint barthélemy\" => \"blm\", \"saint helena, ascension and tristan da cunha\" => \"shn\", \"saint kitts and nevis\" => \"kna\", \"saint lucia\" => \"lca\", \"saint martin (french part)\" => \"maf\", \"saint pierre and miquelon\" => \"spm\", \"saint vincent and the grenadines\" => \"vct\", \"samoa\" => \"wsm\", \"san marino\" => \"smr\", \"sao tome and principe\" => \"stp\", \"saudi arabia\" => \"sau\", \"senegal\" => \"sen\", \"serbia\" => \"srb\", \"seychelles\" => \"syc\", \"sierra leone\" => \"sle\", \"singapore\" => \"sgp\", \"slovakia\" => \"svk\", \"slovenia\" => \"svn\", \"solomon islands\" => \"slb\", \"somalia\" => \"som\", \"south africa\" => \"zaf\", \"south georgia and the south sandwich islands\" => \"sgs\", \"spain\" => \"esp\", \"sri lanka\" => \"lka\", \"sudan\" => \"sdn\", \"suriname\" => \"sur\", \"svalbard and jan mayen\" => \"sjm\", \"swaziland\" => \"swz\", \"sweden\" => \"swe\", \"switzerland\" => \"che\", \"syrian arab republic\" => \"syr\", \"taiwan, province of china\" => \"twn\", \"tajikistan\" => \"tjk\", \"tanzania, united republic of\" => \"tza\", \"thailand\" => \"tha\", \"timor-leste\" => \"tls\", \"togo\" => \"tgo\", \"tokelau\" => \"tkl\", \"tonga\" => \"ton\", \"trinidad and tobago\" => \"tto\", \"tunisia\" => \"tun\", \"turkey\" => \"tur\", \"turkmenistan\" => \"tkm\", \"turks and caicos islands\" => \"tca\", \"tuvalu\" => \"tuv\", \"uganda\" => \"uga\", \"ukraine\" => \"ukr\", \"united arab emirates\" => \"are\", \"united kingdom\" => \"gbr\", \"united states\" => \"usa\", \"united states minor outlying islands\" => \"umi\", \"uruguay\" => \"ury\", \"uzbekistan\" => \"uzb\", \"vanuatu\" => \"vut\", \"venezuela, bolivarian republic of\" => \"ven\", \"viet nam\" => \"vnm\", \"virgin islands, british\" => \"vgb\", \"virgin islands, U.S.\" => \"vir\", \"wallis and futuna\" => \"wlf\", \"western sahara\" => \"esh\", \"yemen\" => \"yem\", \"zambia\" => \"zmb\", \"zimbabwe\" => \"zwe\");my $q=$ARGV[0];\n+my @names = reverse keys %countries;\n+\n+handle remainder => sub {\n+    my ($country, $vaildDate);\n+    return if ($_ eq '');\n+    \n+    # Check for country name in query - in a case-insensitive way\n+     foreach my $name (@names){\n+        if (m/\\b$name\\b/i){\n+          $country = $name;\n+          s/\\s*$name\\s*//g;","path":"lib/DDG/Spice/Rainfall.pm","position":39,"original_position":39,"commit_id":"342c89c68d07042a44bbdd4bc9c6bf8db2273c95","original_commit_id":"342c89c68d07042a44bbdd4bc9c6bf8db2273c95","user":{"login":"moollaza","id":873785,"avatar_url":"https://avatars.githubusercontent.com/u/873785?v=2","gravatar_id":"","url":"https://api.github.com/users/moollaza","html_url":"https://github.com/moollaza","followers_url":"https://api.github.com/users/moollaza/followers","following_url":"https://api.github.com/users/moollaza/following{/other_user}","gists_url":"https://api.github.com/users/moollaza/gists{/gist_id}","starred_url":"https://api.github.com/users/moollaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moollaza/subscriptions","organizations_url":"https://api.github.com/users/moollaza/orgs","repos_url":"https://api.github.com/users/moollaza/repos","events_url":"https://api.github.com/users/moollaza/events{/privacy}","received_events_url":"https://api.github.com/users/moollaza/received_events","type":"User","site_admin":false},"body":"I believe we can speed this up one of two ways:\r\n\r\n1) Iterate over the words in the query and check if they exist in the array (there's likely many fewer words than country names)\r\n\r\n2) Use the names to build a regex and simply run a replace against our remainder (this is probably the best approach)\r\n\r\n```perl\r\nmy $qr = join('|', @names);\r\ns/$qr//;\r\n```","created_at":"2014-09-30T17:31:31Z","updated_at":"2014-09-30T17:31:31Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133#discussion_r18232988","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/18232988"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133#discussion_r18232988"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133","id":21997308,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1133","number":1133,"state":"open","locked":false,"title":"Annual Rainfall Instant Answer","user":{"login":"chrisjwilsoncom","id":5282264,"avatar_url":"https://avatars.githubusercontent.com/u/5282264?v=2","gravatar_id":"","url":"https://api.github.com/users/chrisjwilsoncom","html_url":"https://github.com/chrisjwilsoncom","followers_url":"https://api.github.com/users/chrisjwilsoncom/followers","following_url":"https://api.github.com/users/chrisjwilsoncom/following{/other_user}","gists_url":"https://api.github.com/users/chrisjwilsoncom/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjwilsoncom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjwilsoncom/subscriptions","organizations_url":"https://api.github.com/users/chrisjwilsoncom/orgs","repos_url":"https://api.github.com/users/chrisjwilsoncom/repos","events_url":"https://api.github.com/users/chrisjwilsoncom/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjwilsoncom/received_events","type":"User","site_admin":false},"body":"Here goes nothing! Please by nice this is my first contribution :blush:\r\nLooking forward to making any changes necessary :+1:  \r\n\r\n**What does your Instant Answer do?**\r\nReturns the average annual rainfall (precipitation) in millimeters for a searched country.  \r\n\r\n**What problem does your Instant Answer solve (Why is it better than organic links)?**\r\nIt provides people searching for specific annual rainfall a quicker option then viewing a Wikipedia article or browsing another site.\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\n[WorldBank.org](http://data.worldbank.org/indicator/AG.LND.PRCP.MM) indicator API data.\r\n\r\n**Why did you choose this data source?**\r\nReliable and accurate data source. Free! \r\n\r\n**Are there any other alternative (better) data sources?**\r\nNo. Not that provide average precipitation data.\r\n\r\n**What are some example queries that trigger this Instant Answer?**\r\nrainfall Australia\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\nAnyway interested in Weather Data!\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**\r\nYes! https://duck.co/ideas/idea/4502/annual-rainfall\r\n\r\n**Which existing Instant Answers will this one supersede/overlap with?**\r\nNone.\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\nThe parts I'd like feedback/brainstorming on are a list of acceptable **triggers** and the **content template**. \r\n\r\n**What are the terms of use for the API? Will DuckDuckGo need specific authorization (e.g. an API key)? Are there any costs associated with API usage?**\r\nNo API key required.\r\nhttp://data.worldbank.org/summary-terms-of-use \r\n*You must include attribution for the data you use in the manner indicated in the metadata included with the data.*\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n![ejawcf3](https://cloud.githubusercontent.com/assets/5282264/4457221/64eaf084-4894-11e4-98b7-0119458fa848.png)\r\n\r\n**Please help with the layout! It's ugly!**\r\n\r\n## Checklist\r\nPlease place an 'X' where appropriate.\r\n\r\n```\r\n[X] Added metadata and attribution information\r\n[X] Wrote test file and added to t/ directory\r\n[X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)\r\n[X] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)\r\n[X] Tested cross-browser compatibility\r\n\r\n    Please let us know which browsers/devices you've tested on:\r\n    - Windows 8\r\n        [X] Google Chrome\r\n        [X] Firefox\r\n        [] Opera\r\n        [] IE 10\r\n\r\n    - Windows 7\r\n        [X] Google Chrome\r\n        [X] Firefox\r\n        [] Opera\r\n        [] IE 8\r\n        [] IE 9\r\n        [] IE 10\r\n\r\n    - Windows XP\r\n        [] IE 7\r\n        [] IE 8\r\n\r\n    - Mac OSX\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] Safari\r\n\r\n    - iOS (iPhone)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - iOS (iPad)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - Android\r\n        [X] Firefox\r\n        [X] Native Browser\r\n        [X] Google Chrome\r\n        [X] Opera\r\n```","created_at":"2014-09-30T11:26:55Z","updated_at":"2014-09-30T17:31:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe6fa1aee03bf9244d38faee4c1de41efabfb8df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/{number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1133/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/342c89c68d07042a44bbdd4bc9c6bf8db2273c95","head":{"label":"chrisjwilsoncom:master","ref":"master","sha":"342c89c68d07042a44bbdd4bc9c6bf8db2273c95","user":{"login":"chrisjwilsoncom","id":5282264,"avatar_url":"https://avatars.githubusercontent.com/u/5282264?v=2","gravatar_id":"","url":"https://api.github.com/users/chrisjwilsoncom","html_url":"https://github.com/chrisjwilsoncom","followers_url":"https://api.github.com/users/chrisjwilsoncom/followers","following_url":"https://api.github.com/users/chrisjwilsoncom/following{/other_user}","gists_url":"https://api.github.com/users/chrisjwilsoncom/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjwilsoncom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjwilsoncom/subscriptions","organizations_url":"https://api.github.com/users/chrisjwilsoncom/orgs","repos_url":"https://api.github.com/users/chrisjwilsoncom/repos","events_url":"https://api.github.com/users/chrisjwilsoncom/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjwilsoncom/received_events","type":"User","site_admin":false},"repo":{"id":24491125,"name":"zeroclickinfo-spice","full_name":"chrisjwilsoncom/zeroclickinfo-spice","owner":{"login":"chrisjwilsoncom","id":5282264,"avatar_url":"https://avatars.githubusercontent.com/u/5282264?v=2","gravatar_id":"","url":"https://api.github.com/users/chrisjwilsoncom","html_url":"https://github.com/chrisjwilsoncom","followers_url":"https://api.github.com/users/chrisjwilsoncom/followers","following_url":"https://api.github.com/users/chrisjwilsoncom/following{/other_user}","gists_url":"https://api.github.com/users/chrisjwilsoncom/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjwilsoncom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjwilsoncom/subscriptions","organizations_url":"https://api.github.com/users/chrisjwilsoncom/orgs","repos_url":"https://api.github.com/users/chrisjwilsoncom/repos","events_url":"https://api.github.com/users/chrisjwilsoncom/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjwilsoncom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisjwilsoncom/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":true,"url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/issues/comments/{number}","contents_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/chrisjwilsoncom/zeroclickinfo-spice/releases{/id}","created_at":"2014-09-26T07:53:14Z","updated_at":"2014-09-26T09:03:32Z","pushed_at":"2014-09-30T11:06:26Z","git_url":"git://github.com/chrisjwilsoncom/zeroclickinfo-spice.git","ssh_url":"git@github.com:chrisjwilsoncom/zeroclickinfo-spice.git","clone_url":"https://github.com/chrisjwilsoncom/zeroclickinfo-spice.git","svn_url":"https://github.com/chrisjwilsoncom/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":11702,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"73d9572ae99808116386b9032d04e4afc93aa6fe","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=2","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1997671,"name":"zeroclickinfo-spice","full_name":"duckduckgo/zeroclickinfo-spice","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=2","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments/{number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/releases{/id}","created_at":"2011-07-04T22:08:37Z","updated_at":"2014-09-27T04:45:33Z","pushed_at":"2014-09-30T17:25:11Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-spice.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-spice.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-spice.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":38387,"stargazers_count":179,"watchers_count":179,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":314,"mirror_url":null,"open_issues_count":79,"forks":314,"open_issues":79,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1133"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1133"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1133/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1133/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/342c89c68d07042a44bbdd4bc9c6bf8db2273c95"}}}}