Skip to content

Instantly share code, notes, and snippets.

@jhirn
Created September 19, 2013 21:29
Show Gist options
  • Save jhirn/6630112 to your computer and use it in GitHub Desktop.
Save jhirn/6630112 to your computer and use it in GitHub Desktop.
; nREPL 20130829.156
user>
#<Namespace opinionlab.lib.generate-test-edn>
opinionlab.lib.generate-test-edn> (init-geoip)
true
opinionlab.lib.generate-test-edn> (clojure.pprint/pp(take 1 (apply (partial data-set-stream "resources/comments.xml") generators)))
ArityException Wrong number of args (1) passed to: pprint$pp clojure.lang.Compiler.macroexpand1 (Compiler.java:6473)
opinionlab.lib.generate-test-edn> (clojure.pprint/pp (take 1 (apply (partial data-set-stream "resources/comments.xml") generators)))
ArityException Wrong number of args (1) passed to: pprint$pp clojure.lang.Compiler.macroexpand1 (Compiler.java:6473)
opinionlab.lib.generate-test-edn> (clojure.pprint/pp (first (take 1 (apply (partial data-set-stream "resources/comments.xml") generators))))
ArityException Wrong number of args (1) passed to: pprint$pp clojure.lang.Compiler.macroexpand1 (Compiler.java:6473)
opinionlab.lib.generate-test-edn> (clojure.pprint/pp {:a :b})
ArityException Wrong number of args (1) passed to: pprint$pp clojure.lang.Compiler.macroexpand1 (Compiler.java:6473)
opinionlab.lib.generate-test-edn> (clojure.pprint/pprint {:a :b})
{:a :b}
nil
opinionlab.lib.generate-test-edn> (clojure.pprint/pprint (first (take 1 (apply (partial data-set-stream "resources/comments.xml") generators))))
{:user_agent_string
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
:submission_unix_timestamp 1105128060,
:custom_questions nil,
:ol_week 275,
:browser_version "9 0",
:submission_date "20050107T200100.00+0000",
:card_id nil,
:device_is_mobile nil,
:geoloc_geo_country_code "CA",
:custom_variables nil,
:browser_name "IE",
:ip_address "142.171.138.113",
:fbench_general_num nil,
:nps_score 2,
:last_updated nil,
:comment "Are you using fresh herbs or dry? What is the dish?",
:geoloc_geo_region "QC",
:url_parsed
{:protocol "https",
:host "login.example.com",
:port 443,
:user-info nil,
:path
({:position 1, :fragment "cgi-bin"}
{:position 2, :fragment "safe-login.pl"}),
:query nil,
:fragment nil,
:tld "com"},
:browser_version_minor "0",
:geoloc_geo_city "Verdun",
:original_url_parsed nil,
:browser_name_version "IE 9",
:screen_height nil,
:verticals nil,
:screen_width nil,
:design_rating 4,
:fbench_general nil,
:original_url nil,
:device_model nil,
:legacy_rowguid "c2396487-fb65-4f87-8b64-fa9e29c10625",
:device_family "Other",
:ol_wes "20050109T200100.00+0000",
:device_type nil,
:geoloc_geo_postal_code "H3E",
:url "https://login.example.com/cgi-bin/safe-login.pl",
:os_name "Windows 7",
:device_vendor nil,
:url_analyst_tags nil,
:browser_version_major "9",
:domain_analyst_tags nil,
:fbench_industry_num nil,
:has_comment true,
:geoloc_geo_coordinates {:lat 45.467896, :lon -73.5457},
:comment_lang_engine nil,
:legacy_record_id 1,
:card_analyst_tags nil,
:os_name_version "Windows 7 ",
:referrer nil,
:subscriber_id "RealEstatePlace",
:legacy_server_id 1,
:industry_name nil,
:ol_quarter 1,
:os_version_major nil,
:site_url nil,
:content_rating nil,
:comment_lang nil,
:overall_rating 3,
:id 1,
:usability_rating 2,
:os_version " ",
:time_on_page nil,
:os_version_minor nil,
:fbench_industry nil}
nil
opinionlab.lib.generate-test-edn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment