Created
July 12, 2012 18:59
-
-
Save mapmeld/3100149 to your computer and use it in GitHub Desktop.
Soothsayer and Macon Houses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'Soothsayer' | |
Soothsayer.config do |c| | |
# get keys from http://rubydoc.info/gems/soothsayer/0.0.3/frames | |
c.client_id = "" | |
c.client_secret = "" | |
c.access_token = "" | |
c.refresh_token = "" | |
end | |
# "KITCHENS RD, 1654","1654",0,"F","","",20090819,201000523,20090819,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190" | |
hundredadds = [ | |
["MIKADO AVE","4064",0,"F","","",20091215,201100357,20091215,"NDPV","No Violations","","F","F","MACON","MACON","","","","Systematic","","","","560"],["MIKADO AVE","4051",0,"F","","",20091215,201100358,20091215,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4077",0,"F","","",20090827,201100363,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3904",0,"F","","",20090827,201100365,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3912",0,"F","","",20090827,201100366,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3913",0,"F","","",20090827,201100367,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3920",0,"F","","",20090827,201100368,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3928",0,"F","","",20090827,201100369,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3937",0,"F","","",20090827,201100370,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3945",0,"F","","",20090827,201100371,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3952",0,"F","","",20090827,201100372,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3953",0,"F","","",20090827,201100373,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3976",0,"F","","",20090827,201100374,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3984",0,"F","","",20090827,201100375,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3985",0,"F","","",20090827,201100376,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","3969",0,"F","","",20090827,201100377,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4025",0,"F","","",20090827,201100378,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4042",0,"F","","",20090827,201100379,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4050",0,"F","","",20090827,201100380,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4051", 37000,"F","","",20090827,201100381,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4057",0,"F","","",20090827,201100382,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4069",0,"F","","",20090827,201100383,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4070",0,"F","","",20090827,201100384,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["BLAIR CT","4076", 34943,"F","","",20090827,201100386,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PUTNAM ST","",0,"F","","",20091210,201100393,20091210,"NVLV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["THOMAS ST","",0,"F","","",20091210,201100394,20091210,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["BURKE ST","",0,"F","","",20091210,201100395,20091210,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["THOMAS ST","",0,"F","","",20091208,201100397,20091208,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["PINEFIELD DR","4901",0,"F","","",20090827,201100398,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4921",0,"F","","",20090827,201100399,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4911",0,"F","","",20090827,201100401,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4941",0,"F","","",20090827,201100402,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4959",0,"F","","",20090827,201100403,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4951", 53900,"F","","",20090827,201100404,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4985",0,"F","","",20090827,201100405,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5001",0,"F","","",20090827,201100406,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4995",0,"F","","",20090827,201100407,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5027",0,"F","","",20090827,201100409,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5019", 43446,"F","","",20090827,201100410,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5049",0,"F","","",20090827,201100411,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5069",0,"F","","",20090827,201100413,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5093",0,"F","","",20090827,201100414,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5085",0,"F","","",20090827,201100415,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["PINEFIELD DR","5129",0,"F","","",20090827,201100416,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5111", 41500,"F","","",20090827,201100417,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5145",0,"F","","",20090827,201100418,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5137",0,"F","","",20090827,201100419,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5161",0,"F","","",20090827,201100420,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5104",0,"F","","",20090827,201100421,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5112",0,"F","","",20090827,201100423,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5068",0,"F","","",20090827,201100424,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5076",0,"F","","",20090827,201100425,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5052",0,"F","","",20090827,201100426,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4994",0,"F","","",20090827,201100427,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["PINEFIELD DR","5000",0,"F","","",20090827,201100428,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","5008",0,"F","","",20090827,201100429,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4950",0,"F","","",20090827,201100430,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4928",0,"F","","",20090827,201100431,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["PINEFIELD DR","4900",0,"F","","",20090827,201100432,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["PINEFIELD DR","4910",0,"F","","",20090827,201100433,20090827,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","1020",0,"F","","",0,201100442,20090828,"NVLV","","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4385",0,"F","","",20091214,201100444,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4366",0,"F","","",20091214,201100445,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4374",0,"F","","",20091214,201100446,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4357",0,"F","","",20091214,201100447,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4361",0,"F","","",20091214,201100448,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4333",0,"F","","",20091214,201100449,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4338",0,"F","","",20091214,201100450,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4319",0,"F","","",20091214,201100476,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["CAPITOL AVE","4306",0,"F","","",20091214,201100477,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["CAPITOL AVE","4309",0,"F","","",20091214,201100491,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4287",0,"F","","",20091214,201100492,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4290",0,"F","","",20091214,201100494,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4295",0,"F","","",20110318,201100495,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4256", 75000,"F","","",20091214,201100497,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4257",0,"F","","",20091214,201100498,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4269",0,"F","","",20091214,201100500,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4248",0,"F","","",20091214,201100501,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","",0,"F","","",20091214,201100502,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["CAPITOL AVE","4251",0,"F","","",20091214,201100503,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4226",0,"F","","",20091214,201100504,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4241",0,"F","","",20091214,201100505,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4242",0,"F","","",20091214,201100506,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4217", 33000,"F","","",20091214,201100507,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["CAPITOL AVE","4209",0,"F","","",20091214,201100508,20091214,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","1032",0,"F","","",0,201100509,20090828,"NDPV","","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","1057", 9000,"F","","",0,201100510,20090828,"NDPV","","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","",0,"F","","",0,201100511,20090828,"NDPV","","","F","F","Macon","Macon","","","","","","","","560"],["ERNEST ST","0976",0,"F","","",0,201100512,20090828,"NDPV","","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","1008",0,"F","","",0,201100513,20090828,"NDPV","","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0420",0,"F","","",20090828,201100514,20090828,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["MIKADO AVE","",0,"F","","",20091215,201100543,20091215,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["HALL ST","",0,"F","","",20090918,201100550,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"],["HALL ST","1031", 53000,"F","","",20090918,201100551,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["HALL ST","",0,"F","","",20090918,201100552,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","240"],["HALL ST","1157",0,"F","","",20090918,201100553,20090918,"NVLV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","1179",0,"F","","",20090918,201100554,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","1207",0,"F","","",20090918,201100555,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","1245",0,"F","","",20090918,201100556,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","","","","","190"],["HALL ST","1252",0,"F","","",20090918,201100557,20090918,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0459",0,"F","","",20090922,201100558,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0521",0,"F","","",20090922,201100559,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0513",0,"F","","",20090922,201100560,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0531",0,"F","","",20090922,201100561,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0543",0,"F","","",20090922,201100562,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","",0,"F","","",20090922,201100563,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","240"],["HALL ST","",0,"F","","",20090922,201100564,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","240"],["HALL ST","0587",0,"F","","",20090922,201100565,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","",0,"F","","",20090922,201100566,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","240"],["HALL ST","0710",0,"F","","",20090922,201100567,20090922,"NVLV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0722",0,"F","","",20090922,201100569,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0730",0,"F","","",20090922,201100570,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0735",0,"F","","",20090922,201100571,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0743",0,"F","","",20090922,201100573,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","",0,"F","","",20090922,201100575,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","240"],["HALL ST","0882",0,"F","","",20090922,201100577,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["HALL ST","0885",0,"F","","",20090922,201100578,20090922,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["MIKADO AVE","4273",0,"F","","",20091215,201100728,20091215,"NDPV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","190"],["ERNEST ST","",0,"F","","",0,201100996,20090828,"NVLV","","","F","F","Macon","Macon","","","","Systematic","","","","560"],["HALL ST","",0,"F","","",20090918,201101002,20090918,"NVLV","No Violations","","F","F","Macon","Macon","","","","Systematic","","","","560"] | |
] | |
hundredadds.each do |add| | |
street = add[0] | |
num = add[1] | |
a = add[2] | |
b = add[3] | |
c = add[4] | |
d = add[5] | |
closedate = add[6] | |
caseid = add[7] | |
opendate = add[8] | |
inspectors = add[9] | |
action = add[10] | |
e = add[11] | |
f = add[12] | |
g = add[13] | |
h = add[16] | |
i = add[17] | |
j = add[18] | |
cause = add[19] | |
k = add[20] | |
l = add[21] | |
m = add[22] | |
n = add[23] | |
print "\n" | |
print num | |
print street | |
print Soothsayer::HostedModel.predict("rocket", {:input => {:csvInstance => [ street, num, a, b, c, d, closedate, caseid, opendate, inspectors, action, e, f, g, "Macon", "Macon", h, i, j, cause, k, l, m, n ]}}) | |
print "\n" | |
sleep 1.0 | |
end | |
return "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment