Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Sync
]q(X external_idqXcommandqXtsqe.M.}q(K}q(X __version__qKXcommandqXf = open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",encoding="utf-8")qX__id__qKX external_idqXpythonqXtsqcdatetime
datetime
q C
 zq
q Rq uK}q (hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",encoding="utf-8",'w')
for each in f:
print each
id = each.split("\t")[0]
if id in l:
w.write(each)
f.close()
w.close()qhKhhhh C
 2qqRquK}q(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",encoding="utf-8",'w')
for each in f:
print each
id = each.split("\t")[0]
if id in l:
w.write(each)
f.close()
w.close()qhKhhhh C
) qqRquK}q(hKhXlqhKhhhh C
 qqRquK}q(hKhXfqhKhhhh C
 qqRq uK}q!(hKhXQfor each in f:
print each
id = each.split("\t")[0]
if id in l:
w.write(each)q"hKhhhh C
  q#q$Rq%uK}q&(hKhX f.close()q'hKhhhh C
 Soq(q)Rq*uK}q+(hKhX w.close()q,hKhhhh C
 gq-q.Rq/uK}q0(hKhXwq1hKhhhh C

Iq2q3Rq4uK }q5(hKhhhK hhhh C
 bZq6q7Rq8uK
}q9(hKhXol = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",encoding="utf-8",'w')q:hK
hhhh C
 nq;q<Rq=uK }q>(hKhh1hK hhhh C
 \q?q@RqAuK }qB(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",'w',encoding="utf-8")
for each in f:
print each
id = each.split("\t")[0]
if id in l:
w.write(each)
f.close()
w.close()qChK hhhh C
 ".qDqERqFuK }qG(hKhh1hK hhhh C
 9 qHqIRqJuK}qK(hKhhhKhhhh C
 ;qLqMRqNuK}qO(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",'w',encoding="utf-8")
for each in f:
print each
id = each.split("\t")[0]
if id in l:
w.write(each)qPhKhhhh C
  ;qQqRRqSuK}qT(hKhhhKhhhh C
 
+qUqVRqWuK}qX(hKhh1hKhhhh C
 #qYqZRq[uK}q\(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",'w',encoding="utf-8")
for each in f:
#print each
id = each.split("\t")[0]
print id
if id in l:
w.write(each)q]hKhhhh C
 ,7q^q_Rq`uK}qa(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",'w',encoding="utf-8")
for each in f:
#print each
id = each.split("\t")[1]
print id
if id in l:
w.write(each)qbhKhhhh C
 }qcqdRqeuK}qf(hKhXl = [1047669615,1048296970,1067326000,1071750167,1081021387,1188868702,1197011891,1216026271,1226162531,1236709234,1269475093,1290153010,1299970031,1369633971,1395365674,1400272691,1411824754,1415859710,1449204363,1455131001,1460570074,1462311881,1565687157,1642991815,1647345487,1649196637,1650008680,1653744734,1654010852,1655668652,1680683820,1686443664,1687540800,1697227057,1705396685,1727747065,1733119815,1734612364,1735778800,1737943787,1741617712,1742483557,1742733704,1747171950,1749244184,1760344377,1766476347,1772689980,1780766333,1791072365,1792251887,1793087587,1799934707,1800392783,1827724077,1828351354,1831675953,1834806924,1837723125,1853249121,1862280574,1864325224,1867377877,1874015735,1877354201,1878626740,1890049394,1893001834,1903840065,1932145947,1944543251,1944868691,1957780014,1970303293,1971998197,2012379292,2058046203,2112691433,2270384762,2319455251,2404872514]
l = [str(x) for x in l]
import codecs
f = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_oldtreat.txt",encoding="utf-8")
w = codecs.open("/Users/han/Documents/workspace/WeiboDeleted/log_old_useful.txt",'w',encoding="utf-8")
for each in f:
#print each
id = each.split("\t")[2]
print id
if id in l:
w.write(each)qghKhhhh C
ZqhqiRqjuK}qk(hKhX w.close()qlhKhhhh C
& qmqnRqouK}qp(hKhX f.close()qqhKhhhh C
( 4qrqsRqtuK}qu(X __version__qvKXcommandqwXprint "hello world"qxX__id__qyKX external_idqzXpythonq{Xtsq|h C
 &%q}q~RquK}q(X __version__qKXcommandqX import numpyqX__id__qKX external_idqXpythonqXtsqh C
 2 :*qqRquK}q(hKhX, from gensim.models.word2vec import Word2VecqhKhhhh C
 ;qqRquK}q(hKhX+from gensim.models.word2vec import Word2VecqhKhhhh C
 qqRquK}q(hKhX5from sklearn.cross_validation import train_test_splitqhKhhhh C
 ,qqRquK}q(hKhXimport sklearnqhKhhhh C
 2DQqqRquK}q(X __version__qKXcommandqX1s = '发表了一篇转载博文'.decode('utf-8')qX__id__qKX external_idqXpythonqXtsqh C

.; jqqRquK}q(hKhXlen(s)qhKhhhh C

/ qqRquK}q(X __version__qKXcommandqXts = "{"info": {"达人": "游戏 动漫 财经 ", "地区": "河南 新乡", "简介": "关心时事,有自由派倾向。爱好广泛,喜欢知识、高度和格局。", "感情状况": "单身", "昵称": "90后旅鼠", "标签": "", "生日": "0001-00-00", "性取向": "女", "性别": "男"}, "text": "哥们很悲剧,我很同情。", "user_id": "1592639351"}"qX__id__qKX external_idqXpythonqXtsqh C

 /eqqRquK }q(hKhXts = '{"info": {"达人": "游戏 动漫 财经 ", "地区": "河南 新乡", "简介": "关心时事,有自由派倾向。爱好广泛,喜欢知识、高度和格局。", "感情状况": "单身", "昵称": "90后旅鼠", "标签": "", "生日": "0001-00-00", "性取向": "女", "性别": "男"}, "text": "哥们很悲剧,我很同情。", "user_id": "1592639351"}'qhK hhhh C

 /qqRquK!}q(hKhXx = json.load(s)qhK!hhhh C

 /%iqqRquK"}q(hKhX import jsonqhK"hhhh C

 /(*qƅqRquK#}q(hKhXx = json.load(s)qhK#hhhh C

 /*q˅qRquK$}q(hKhXx = json.loads(s)qhK$hhhh C

 0ZqЅqRquK%}q(hKhXxqhK%hhhh C

 0KqՅqRquK&}q(hKhX x['info']qhK&hhhh C

 0 oqڅqRquK'}q(hKhX x['text']qhK'hhhh C

 0q߅qRquK(}q(hKhXprint x['text']qhK(hhhh C

 0}qqRquK)}q(hKhXprint x['user_id']qhK)hhhh C

 0%% qqRquK*}q(hKhXimport hashlibqhK*hhhh C

 - ,YqqRquK+}q(hKhXEhashlib.sha224("Nobody inspects the spammish repetition").hexdigest()qhK+hhhh C

 /qqRquK,}q(hKhX9hashlib.sha224("Nobody inspects the spammish repetition")qhK,hhhh C

 4uMqqRquK-}q(hKhX/hashlib.sha1("Nobody inspects the").hexdigest()qhK-hhhh C

 ;qqRquK.}r(hKhX/hashlib.sha2("Nobody inspects the").hexdigest()rhK.hhhh C

 +rrRruK/}r(hKhX1hashlib.sha224("Nobody inspects the").hexdigest()rhK/hhhh C

 NrrRr uK0}r
(hKhhhK0hhhh C

  2Wr r Rr uK1}r(hKhX#x['info']['地区'.decode('utf-8')]rhK1hhhh C

 rrRruK2}r(hKhX#x['info']['性别'.decode('utf-8')]rhK2hhhh C

  rrRruK3}r(hKhX3x['info']['性别'.decode('utf-8')].decode('utf-8')rhK3hhhh C

  rrRruK4}r(hKhX3x['info']['性别'.decode('utf-8')].encode('utf-8')rhK4hhhh C

 
=rr Rr!uK5}r"(hKhX7y = "哥们很悲剧,我很同情。".decode('utf-8')r#hK5hhhh C

 Vr$r%Rr&uK6}r'(hKhXhashlib.sha224(y).hexdigest()r(hK6hhhh C

 '5r)r*Rr+uK7}r,(hKhXyr-hK7hhhh C

 ,|r.r/Rr0uK8}r1(hKhX$hashlib.sha224('中国').hexdigest()r2hK8hhhh C

 8_!r3r4Rr5uK9}r6(hKhX$hashlib.sha224('人民').hexdigest()r7hK9hhhh C

  :r8r9Rr:uK:}r;(hKhX?hashlib.sha224('哥们很悲剧,我很同情。').hexdigest()r<hK:hhhh C

 
tr=r>Rr?uK;}r@(hKhX-hashlib.sha224(y.encode('utf-8')).hexdigest()rAhK;hhhh C

  2rBrCRrDuK<}rE(hKhX=hashlib.sha224(y.encode('utf-8')).hexdigest().decode('utf-8')rFhK<hhhh C

 <rGrHRrIuK=}rJ(X __version__rKKXcommandrLXs = 'sdfsd_sd!sdf'rMX__id__rNK=X external_idrOXpythonrPXtsrQh C
 /.rRrSRrTuK>}rU(jKKjLX import rerVjNK>jOjPjQh C
 /0 brWrXRrYuK?}rZ(jKKjLX text_str = re.sub("[A-Za-z0-9\[\【\》\《\】\-\`\~\!\@\#\$\^\&\*\(\)\=\|\{\}\'\:\;\'\,\[\]\.\<\>\/\?\~\!\@\#\\\&\*\%]".decode("utf-8"), "", s)r[jNK?jOjPjQh C
 0
r\r]Rr^uK@}r_(jKKjLXtext_str = re.sub("[A-Za-z0-9\[\【\》\《\】\-\`\~\!\@\#\$\^\&\*\(\)\=\|\{\}\'\:\;\'\,\[\]\.\<\>\/\?\~\!\@\#\\\&\*\%]".decode("utf-8"), "", s)r`jNK@jOjPjQh C
 0<FrarbRrcuKA}rd(jKKjLXtext_strrejNKAjOjPjQh C
 0BrfrgRrhuKB}ri(jKKjLXfiltrate = re.compile(u'[^\u4E00-\u9FA5A-Za-z0-9_]')#中文字,字母,下划线
filtered_str = filtrate.sub(r' ', string)#replacerjjNKBjOjPjQh C
 2 rkrlRrmuKC}rn(jKKjLX import stringrojNKCjOjPjQh C
 2#3rprqRrruKD}rs(jKKjLX~string = 'abc测试123<>《》!*(^)$%~!@#$…&%¥—+=、。,;‘’“”:·`中文'
string = string.decode("utf-8")rtjNKDjOjPjQh C
 2-rurvRrwuKE}rx(jKKjLXyfiltrate = re.compile(u'[^\u4E00-\u9FA5]')#非中文
filtered_str = filtrate.sub(r' ', string)#replace
print filtered_strryjNKEjOjPjQh C
 22Yrzr{Rr|uKF}r}(jKKjLXstring = "[]测试#server?user_id=110"
string = string.decode("utf-8")
filtrate = re.compile(u'[^\u4E00-\u9FA5A-Za-z0-9_]')#中文字,字母,下划线
filtered_str = filtrate.sub(r' ', string)#replace
print filtered_strr~jNKFjOjPjQh C
 28 rrRruKG}r(jKKjLXx = [1,2,3,4,5]rjNKGjOjPjQh C
 6*rrRruKH}r(jKKjLhjNKHjOjPjQh C
 6+ rrRruKI}r(jKKjLXx["2"]rjNKIjOjPjQh C
 63
rrRruKJ}r(jKKjLXx[:2]rjNKJjOjPjQh C
 66}rrRruKK}r(jKKjLXastring = 'abc测试123<>《》!*(^)$%~!@#$…&%¥—+=、。,;‘’“”:·`中文*'rjNKKjOjPjQh C
 9АrrRruKL}r(jKKjLXfiltrate.sub(r' ', string)rjNKLjOjPjQh C
 9!LrrRruKM}r(jKKjLXqstring = 'abc测试123<>《》!*(^)$%~!@#$…&%¥—+=、。,;‘’“”:·`中文*'.decode('utf-8')rjNKMjOjPjQh C
 95 +rrRruKN}r(jKKjLXfiltrate.sub(r' ', string)rjNKNjOjPjQh C
 98 rrRruKO}r(jKKjLX*filtrate = re.compile(u'[^\u4E00-\u9FA5]')rjNKOjOjPjQh C
 :rrRruKP}r(jKKjLXfiltrate.sub(r' ', string)rjNKPjOjPjQh C
 :rrRruKQ}r(jKKjLXfiltrate.sub(r'', string)rjNKQjOjPjQh C
 :&rrRruKR}r(jKKjLXfiltrate.sub(r' ', string)rjNKRjOjPjQh C
 :-rrRruKS}r(jKKjLX print filtrate.sub(r' ', string)rjNKSjOjPjQh C
 :2
^rrRruKT}r(jKKjLXx = "371 江西景德镇市 2016-06-07 点 分 景德镇 瓷都 大道 发生 车祸 两死 三伤 两 轻 生命 行人 道 上 无辜 枉死 事情 已 去 星期 政府部门 不闻 死 不 安息 家属 不 安慰 事情 不 解决 好心 人 良知 人 帮忙 转 其他"rjNKTjOjPjQh C
 9$1rrRruKU}r(jKKjLXx = "371 江西景德镇市 2016-06-07 点 分 景德镇 瓷都 大道 发生 车祸 两死 三伤 两 轻 生命 行人 道 上 无辜 枉死 事情 已 去 星期 政府部门 不闻 死 不 安息 家属 不 安慰 事情 不 解决 好心 人 良知 人 帮忙 转 其他".decode('utf-8')rjNKUjOjPjQh C
 9+ 9rrRruKV}r(jKKjLhjNKVjOjPjQh C
 9-a rrRruKW}r(jKKjLX x.split()rjNKWjOjPjQh C
 95 rrRruKX}r(jKKjLXprint u'\uff08'rjNKXjOjPjQh C
 
=rrRruKY}r(jKKjLXprint u'\u8fdf\u8fdf'rjNKYjOjPjQh C
 OrrRruKZ}r(jKKjLXHs = [u'\u843d\u6237', u'\u7c73\u5bb6', u'\u5927\u5bcc\u7fc1', u'\u4e1a']rjNKZjOjPjQh C
  rrRruK[}r(jKKjLXsrjNK[jOjPjQh C
  \rrRruK\}r(jKKjLXprint srjNK\jOjPjQh C
  
[rrRruK]}r(jKKjLX for ss in s:rjNK]jOjPjQh C
  arrRruK^}r(jKKjLXprint ssrjNK^jOjPjQh C
   :rrRruK_}r(jKKjLX for ss in s:rjNK_jOjPjQh C
  YrrRruK`}r(jKKjLX print ssrjNK`jOjPjQh C
  "rrRruKa}r(X __version__rKXcommandrX 10**[0., -3.]rX__id__rKaX external_idrXpythonrXtsr h C
 $"xr
r Rr uKb}r (X __version__rKXcommandrX seq(0,1,0.1)rX__id__rKbX external_idrXpythonrXtsrh C
  >rrRruKc}r(jKjXrange(0,1,0.1)rjKcjjjh C
  TrrRruKd}r(jKjX$[x / 10.0 for x in range(5, 50, 15)]rjKdjjjh C
 -rr Rr!uKe}r"(jKjX%[x / 1000.0 for x in range(1, 10, 1)]r#jKejjjh C
 8ɡr$r%Rr&uKf}r'(jKjX&[x / 10000.0 for x in range(1, 10, 1)]r(jKfjjjh C
 Jr)r*Rr+uKg}r,(jKjX import siter-jKgjjjh C
  !$ r.r/Rr0uKh}r1(jKjXsite.getsitepackages()r2jKhjjjh C
  !; q'r3r4Rr5uKi}r6(jKjX x = [3,4,5]r7jKijjjh C
  6qr8r9Rr:uKj}r;(jKjXfor i,s in enumerate(x):r<jKjjjjh C
   r=r>Rr?uKk}r@(jKjX print i, srAjKkjjjh C
  |rBrCRrDuKl}rE(jKjX stopwords = open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt").readlines()[0]
stopwords = stopwords.strip().split(",")
stopwords = [x.decode("utf-8") for x in stopwords]rFjKljjjh C
 1'9rGrHRrIuKm}rJ(jKjX`stopwords = open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt").readlines()[0]rKjKmjjjh C
 1.rLrMRrNuKn}rO(jKjXlength(stopwords)rPjKnjjjh C
 12BrQrRRrSuKo}rT(jKjXlen(stopwords)rUjKojjjh C
 17 =?rVrWRrXuKp}rY(jKjXlen(set(stopwords))rZjKpjjjh C
 2r[r\Rr]uKq}r^(jKjX stopwords[1]r_jKqjjjh C
 2]r`raRrbuKr}rc(jKjX~stopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt", 'r', encoding='utf-8').readlines()[0]rdjKrjjjh C
 4
rerfRrguKs}rh(jKjX import codecsrijKsjjjh C
 4|rjrkRrluKt}rm(jKjX~stopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt", 'r', encoding='utf-8').readlines()[0]rnjKtjjjh C
 4 rorpRrquKu}rr(jKjXlength(stopwords)rsjKujjjh C
 4rtruRrvuKv}rw(jKjXlen(stopwords)rxjKvjjjh C
 4ryrzRr{uKw}r|(jKjXstopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords1.txt", 'r', encoding='utf-8').readlines()[0]r}jKwjjjh C
 4*xr~rRruKx}r(jKjXlength(stopwords)rjKxjjjh C
 4.rrRruKy}r(jKjXlen(stopwords)rjKyjjjh C
 41IrrRruKz}r(jKjX stopwords[1]rjKzjjjh C
 46_ErrRruK{}r(jKjX stopwords[2]rjK{jjjh C
 48-rrRruK|}r(jKjX stopwords[3]rjK|jjjh C
 4;rrRruK}}r(jKjX stopwords[4]rjK}jjjh C
 5SrrRruK~}r(jKjXstopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt", 'r', encoding='utf-8').readlines()[0]stopwords = stopwords.strip().split(",")rjK~jjjh C
 5&rrRruK}r(jKjX~stopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords.txt", 'r', encoding='utf-8').readlines()[0]rjKjjjh C
 514WrrRruK}r(jKjX(stopwords = stopwords.strip().split(",")rjKjjjh C
 5:rrRruK}r(jKjXlength(stopwords)rjKjjjh C
 6 rrRruK}r(jKjXlen(stopwords)rjKjjjh C
 6
95rrRruK}r(jKjX stopwords[1]rjKjjjh C
 6rrRruK}r(jKjXprint stopwords[1]rjKjjjh C
 6 CDrrRruK}r(jKjXstopwords = codecs.open("/Users/han/Dropbox/ideology_weibo/code/testcode/stopwords1.txt", 'r', encoding='utf-8').readlines()[0]rjKjjjh C
 7rrRruK}r(jKjXlen(stopwords)rjKjjjh C
 7 drrRruK}r(jKjX(stopwords = stopwords.strip().split(",")rjKjjjh C
 7%_3rrRruK}r(jKjXlen(stopwords)rjKjjjh C
 7' rrRruK}r(jKjXlen(set(stopwords))rjKjjjh C
 7+ \rrRruK}r(jKjX1e6/4000rjKjjjh C
 2irrRruK}r(jKjXimport numpy as nprjKjjjh C
 " rrRruK}r(jKjX10.0**-np.arange(1,7).rjKjjjh C
 %f=rrRruK}r(jKjX10.0**-np.arange(1,7)rjKjjjh C
 )arrRruK}r(jKjX>s = "4109 广东汕尾市海丰县政府 2016-04-18 no_text"rjKjjjh C
 rrRruK}r(jKjX s.split("\t")rjKjjjh C
  1rrRruK}r(jKjXNs = "4109 广东汕尾市海丰县政府 2016-04-18 no_text".decode('utf-8')rjKjjjh C
  irrRruK}r(jKjXsall = s.split('\t')rjKjjjh C
 }rrRruK}r(jKjXsallrjKjjjh C
 :rrRruK}r(X __version__r KXcommandr
Xdef addTimescope(perTimescope):
if not (perTimescope=='-'):
times_list = perTimescope.split(':')
start_date = datetime(int(times_list[-1][0:4]), int(times_list[-1][5:7]), int(times_list[-1][8:10]) )
start_new_date = start_date + timedelta(days = 1)
start_str = start_new_date.strftime("%Y-%m-%d")
return start_str + ":" + start_str
else:
return '-'r X__id__r KX external_idr XpythonrXtsrh C

)*@rrRruK}r(j Kj
XstartTime = '2014-03-03'rj Kj jjh C

) rrRruK}r(j Kj
XaddTimescope(startTime)rj Kj jjh C

)rrRruK}r(j Kj
Ximport datetimerj Kj jjh C

)
rr Rr!uK}r"(j Kj
XaddTimescope(startTime)r#j Kj jjh C

) ^r$r%Rr&uK}r'(j Kj
X startTimer(j Kj jjh C

+ r)r*Rr+uK}r,(j Kj
Xdef nextDay (date):
times_list = date.split('-')
start_date = datetime(int(times_list[0]), int(times_list[1]), int(times_list[2]) )
start_new_date = start_date + timedelta(days = 1)
start_str = start_new_date.strftime("%Y-%m-%d")
return start_str + "-0"r-j Kj jjh C

1 ar.r/Rr0uK}r1(j Kj
Xdef nextDay (date):
times_list = date.split('-')
start_date = datetime(int(times_list[0]), int(times_list[1]), int(times_list[2]) )
start_new_date = start_date + timedelta(days = 1)
start_str = start_new_date.strftime("%Y-%m-%d")
return start_str + "-0"r2j Kj jjh C

11 r3r4Rr5uK}r6(j Kj
XnextDay('2014-01-01')r7j Kj jjh C

18 r8r9Rr:uK}r;(j Kj
X<from datetime import datetime
from datetime import timedeltar<j Kj jjh C

2"r=r>Rr?uK}r@(j Kj
XnextDay('2014-01-01')rAj Kj jjh C

2& rBrCRrDuK}rE(j Kj
XnextDay('2013-12-31')rFj Kj jjh C

2/ WrGrHRrIuK}rJ(X __version__rKKXcommandrLX&s = "3297 四川德阳市嘉皇心悦城 2016-04-28 房子 业主 悲哀 悲哀 血汗钱 房子 烂尾 烂尾 求法 拖延 镇压 正义 价鱼 成百 平民 百姓 血汗钱 水漂 房贷 房租 德阳 心悦城 维权 德阳 维权 业主 业主 跪求 政府 扩散 维权 部门 政府 3"rMX__id__rNKX external_idrOXpythonrPXtsrQh C
 0rRrSRrTuK}rU(jKKjLXs = s.decode('utf-8')rVjNKjOjPjQh C
 0rWrXRrYuK}rZ(jKKjLjjNKjOjPjQh C
 0,r[r\Rr]uK}r^(jKKjLXsall = s.split('\t')r_jNKjOjPjQh C
 0br`raRrbuK}rc(jKKjLX len(sall)rdjNKjOjPjQh C
 0rerfRrguK}rh(jKKjLXsall[3]rijNKjOjPjQh C
 0{rjrkRrluK}rm(jKKjLXsall[5]rnjNKjOjPjQh C
 0!^rorpRrquK}rr(jKKjLXsall[4]rsjNKjOjPjQh C
 0#drtruRrvuK}rw(jKKjLXsall[3]rxjNKjOjPjQh C
 2/
zryrzRr{uK}r|(jKKjLXTs = "49 河南郑州市国家电网 2016-06-13 范爆 脾气 其他".decode('utf-8')r}jNKjOjPjQh C
 4(r~rRruK}r(jKKjLXsall = s.split('\t')rjNKjOjPjQh C
 4- ArrRruK}r(jKKjLXsall[4]rjNKjOjPjQh C
 4/ rrRruK}r(jKKjLXsall[3]rjNKjOjPjQh C
 41rrRruK}r(jKKjLX print sall[3]rjNKjOjPjQh C
 46 rrRruK}r(jKKjLXJs = "53 河北石家庄市环城水系 2016-06-13 未知".decode('utf-8')rjNKjOjPjQh C
 6,xrrRruK}r(jKKjLXsall = s.split('\t')rjNKjOjPjQh C
 6mrrRruK}r(jKKjLXsall[3]rjNKjOjPjQh C
 6 `rrRruK}r(jKKjLX len(sall[3])rjNKjOjPjQh C
 6@rrRruK}r(jKKjLXds = "51 福建泉州市晋州市腾达陶瓷 2016-06-13 睡觉 解决 厂门 其他".decode('utf-8')rjNKjOjPjQh C
 krrRruK}r(jKKjLXsall = s.split('\t')rjNKjOjPjQh C
 rrRruK}r(jKKjLXsall[4]rjNKjOjPjQh C
 rrRruK}r(jKKjLXsall[3]rjNKjOjPjQh C
  &rrRruK}r(jKKjLX print sall[3]rjNKjOjPjQh C
 !rrRruK}r(jKKjLX.s = "42855 N/A 欠薪 欠薪".decode('utf-8')rjNKjOjPjQh C
 FrrRruK}r(jKKjLXsall[4]rjNKjOjPjQh C
  ڄrrRruK}r(jKKjLXsall[3]rjNKjOjPjQh C
 
prrRruK}r(jKKjLX print sall[3]rjNKjOjPjQh C
  \?rrRruK}r(jKKjLXsall = s.split('\t')rjNKjOjPjQh C
  rrRruK}r(jKKjLX print sall[3]rjNKjOjPjQh C
 YrrRruK}r(jKKjLX print sall[4]rjNKjOjPjQh C
  rrRruK}r(jKKjLXsall = [u'7226', u'JY_20160303_38', u'https://newsworthknowingcn.blogspot.jp/2016/03/2016-02-29.html', u'http://wickedonna.blogspot.com/2016/03/2016229_86.html', u'', u'miaopai_shipin', u'3/3/2016', u'2/29/2016', u'\u6cb3\u5357\u5e73\u9876\u5c71\u5e02\u5e73\u7164\u795e\u9a6c\u5efa\u5de5\u96c6\u56e2\u571f\u5efa\u5904', u'\u6cb3\u5357', u'\u5e73\u9876\u5c71', u'', u'Migrant workers protest against wage arrears.', u'1', u'migrant workers', u'large group', u'peaceful', u'NA', u'NA', u'no police', u'none', u'\r\n']rjNKjOjPjQh C
 !rrRruK}r(jKKjLX len(sall)rjNKjOjPjQh C
 !"8
rrRruK}r(jKKjLXsall[13]rjNKjOjPjQh C
 !&rrRruK}r(jKKjLXsall[14]rjNKjOjPjQh C
 !) rrRruK}r(jKKjLXsall[15]rjNKjOjPjQh C
 !- rrRruK}r(jKKjLXKsall = [u'7228', u'JY_20160303_39', u'https://newsworthknowingcn.blogspot.jp/2016/03/2016-02-29.html', u'http://wickedonna.blogspot.com/2016/03/2016229_9.html', u'', u'sina_weibo', u'3/3/2016', u'2/29/2016', u'\u9655\u897f\u5b9d\u9e21\u5e02\u897f\u5efa\u5eb7\u57ce', u'\u9655\u897f', u'\u5b9d\u9e21', u'', u'"Propietor protest \n']rjNKjOjPjQh C
 " rrRruK}r(jKKjLX len(sall)rjNKjOjPjQh C
 " [rrRruK}r(jKKjLXsall[13]r jNKjOjPjQh C
 " r
r Rr uK}r (jKKjLXsall[12]rjNKjOjPjQh C
 "irrRruK}r(jKKjLXsall[11]rjNKjOjPjQh C
 " @rrRruK}r(jKKjLXsall = [u'37475', u'', u'', u'http://wickedonna.blogspot.com/2015/02/201529_675.html', u'', u'"http://tieba.baidu.com/home/main?un=%E6%9F%8F%E4%B9%A1%E9%AB%98%E7%A7%91%E5%AE%89%E9%98%B2&amp;ie=utf-8&amp;fr=pb&amp;ie=utf-8"">\u67cf\u4e61\u9ad8\u79d1\u5b89\u9632>"', u'', u'2/9/2015', u'\u6cb3\u5317 \u90a2\u53f0\u5e02 \u67cf\u4e61\u53bf \u9f99\u534e\u4e61 \u516b\u91cc\u5e84\u6751', u'', u'', u'', u'"\n']rjNKjOjPjQh C
 &+ .rrRruK}r(jKKjLXsall[1]rjNKjOjPjQh C
 &.rrRr uK}r!(jKKjLX len(sall)r"jNKjOjPjQh C
 &5lr#r$Rr%uK}r&(jKKjLXsall[13]r'jNKjOjPjQh C
 &7r(r)Rr*uK}r+(jKKjLXsall[12]r,jNKjOjPjQh C
 &8r-r.Rr/uK}r0(jKKjLXsall[11]r1jNKjOjPjQh C
 &:r2r3Rr4uK}r5(jKKjLXsall[10]r6jNKjOjPjQh C
 ' 9r7r8Rr9uK}r:(jKKjLXsall[9]r;jNKjOjPjQh C
 '
r<r=Rr>uK}r?(jKKjLXsall[8]r@jNKjOjPjQh C
 ' rArBRrCuK}rD(jKKjLX print sall[8]rEjNKjOjPjQh C
 ' -rFrGRrHuK}rI(jKKjLXs = "37475,,,http://wickedonna.blogspot.com/2015/02/201529_675.html,,"http://tieba.baidu.com/home/main?un=%E6%9F%8F%E4%B9%A1%E9%AB%98%E7%A7%91%E5%AE%89%E9%98%B2&amp;ie=utf-8&amp;fr=pb&amp;ie=utf-8"">柏乡高科安防>",,2/9/2015,河北 邢台市 柏乡县 龙华乡 八里庄村,,,,""rJjNKjOjPjQh C
 ( rKrLRrMuK}rN(jKKjLXs = '37475,,,http://wickedonna.blogspot.com/2015/02/201529_675.html,,"http://tieba.baidu.com/home/main?un=%E6%9F%8F%E4%B9%A1%E9%AB%98%E7%A7%91%E5%AE%89%E9%98%B2&amp;ie=utf-8&amp;fr=pb&amp;ie=utf-8"">柏乡高科安防>",,2/9/2015,河北 邢台市 柏乡县 龙华乡 八里庄村,,,,"'rOjNKjOjPjQh C
 ( rPrQRrRuK}rS(jKKjLXsall = s.split(',')rTjNKjOjPjQh C
 (
7rUrVRrWuK}rX(jKKjLX len(sall)rYjNKjOjPjQh C
 (rZr[Rr\uK}r](X __version__r^KXcommandr_Xs = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 tencent_weibo F1314520LZC http://t.qq.com/F1314520LZC 罗志成".decode('utf-8')r`X__id__raKX external_idrbXpythonrcXtsrdh C
 )@rerfRrguK}rh(j^Kj_Xsall = s.split('\t')rijaKjbjcjdh C
 . RPrjrkRrluK}rm(j^Kj_X len(sall)rnjaKjbjcjdh C
 0
rorpRrquK}rr(j^Kj_Xsall[7]rsjaKjbjcjdh C
 5 RmrtruRrvuK}rw(j^Kj_Xsall[8]rxjaKjbjcjdh C
 ;ՖryrzRr{uK}r|(j^Kj_X<s = "2013.7.11 441881 广东省 清远市 英德 望埠镇,镇政府门口 2013.7.11 广东省 英德市 望埠镇 镇政府门口 weibo_selfuser zFsKsixMF http://weibo.com/1761329770/zFsKsixMF @_KeNn_Y(示威,横幅:还我原新村地,还我留用地)望埠镇政府门口,群众聚集".decode('utf-8')r}jaKjbjcjdh C
 sr~rRruK}r(j^Kj_Xsall = s.split('\t')rjaKjbjcjdh C
  qrrRruK}r(j^Kj_X len(sall)rjaKjbjcjdh C
 
ԟrrRruK}r(j^Kj_Xsall[8]rjaKjbjcjdh C
 "_rrRruK}r(j^Kj_Xsall[-1]rjaKjbjcjdh C
  rrRruK}r(X __version__rKXcommandrX.3.4 310115 上海市 浦东新区 浦东新区 惠南镇 2014.3.4 上海市 浦东新区 惠南镇 tencent_weibo 389371007139628?apiType=14 http://t.qq.com/p/t/389371007139628?apiType=14 22:15]≈≈
2014.3.4 310115 上海市 浦东新区 浦东新区 惠南镇 2014.3.4 上海市 浦东新区 惠南镇 tencent_weibo 389371007139628?apiType=14 http://t.qq.com/p/t/389371007139628?apiType=14 22:15]≈≈
>>> s = "2015.6.22 310116 上海市 金山区http://weibo.com/u/2726054821?from=feed&loc=nickname 金山区 YYC嗳,其他,环境 其他,环境 2015.6.22 上海 金山区http://weibo.com/u/2726054821?from=feed&loc=nickname YYC嗳 weibo_user 2401617047 http://weibo.com/u/2401617047?from=feed&loc=nickname Callista槑 还我大金山~~没道理!求扩散".decode('utf-8')rX__id__rKX external_idrXpythonrXtsrh C
 !{rrRruK}r(jKjXs = '2015.6.22 310116 上海市 金山区http://weibo.com/u/2726054821?from=feed&loc=nickname 金山区 YYC嗳,其他,环境 其他,环境 2015.6.22 上海 金山区http://weibo.com/u/2726054821?from=feed&loc=nickname YYC嗳 weibo_user 3225706400 http://weibo.com/u/3225706400?from=feed&loc=nickname 丹青不知老将至7 不是作为金山人,也不是作为上海人,作为中国人都应该反对!!!'.decode('utf-8')rjKjjjh C
 !*rrRruK}r(jKjXsall = s.split('\t')rjKjjjh C
 !1rrRruK}r(jKjXfor e in sall:rjKjjjh C
 !4XrrRruK}r(jKjX print erjKjjjh C
 !7],rrRruK}r(X __version__rKXcommandrXs = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 unknown http://url.cn/OYCcbW http://url.cn/OYCcbW 湖南省桂东县政府,利用开发征地,谋取暴利。几年过去了,拆迁征地应有的安置地却不见落实,同时又私吞开发商工程款,开发商承受不住损失,想强行开发,村民应有利益不能落实,故而前去阻工。经过多次协商未果,导致开发商逼压政府,6月19号,开发商又来强行开发,茅柳几户村民前去阻工,未想黑心的官员没办法之下找来几十号小混混,追入茅柳村民家里进行殴打,导致一五旬妇女被打得重伤昏倒,另多名村名受伤。村民报警后,公安民警赶到现场却不见处理,直到镇政府官员到场,才把伤者送往医院,却仍不见处理打人者,当然,本来就是他们当官找来的,又怎么会处理呢。事发后,现场聚集大量村民,要求给个说法,却迟迟得不到答复。政府欺我们农民百姓淳朴,善良,这就是我们的好政府啊,养条狗还不咬自己人呢,这些桂东养了几十年的狗,却只知道欺负自己人,世界之大,何地还有我们百姓的乐土。".decode('utf-8')rX__id__rKX external_idrXpythonrXtsrh C
 '5RrrRruK}r(jKjXsall = s.split('\t')rjKjjjh C
 ' yrrRruK}r(jKjXfor e in sall:rjKjjjh C
 ' irrRruK}r(jKjX print erjKjjjh C
 ' rrRruK}r(jKjXwr = sall[0,1,2,3,8,9,10,11]rjKjjjh C
 '-
1rrRruK}r(jKjXsall[0]rjKjjjh C
 '8rrRruK}r(jKjX sall[0,1]rjKjjjh C
 ';ZrrrRruK}r(jKjXs = "2016.6.2 410803 河南省 焦作 中站 中站区,易生元酒厂,投资人,融资诈骗 投资人,融资诈骗 2016.6.2 河南 焦作市 中站区 易生元酒厂 weibo http://verified.weibo.com/verify ".decode('utf-8')rjKjjjh C
 * trrRruK}r(jKjjjKjjjh C
 *
rrrRruK}r(jKjXlen(s)rjKjjjh C
 *rrRruK}r(jKjXsall = s.split("\t")rjKjjjh C
 *("rrRruK}r(jKjX len(sall)rjKjjjh C
 **rrRruK}r(jKjXsall[0]rjKjjjh C
 *,{rrRruK}r(jKjXsall[1]rjKjjjh C
 *.XHrrRruK}r(jKjXsall[2]rjKjjjh C
 *1rrRruK}r(jKjXsall[3]rjKjjjh C
 *2 dwrrRruK}r (jKjXsall[4]r
jKjjjh C
 *4#r r Rr uK}r(jKjXsall[5]rjKjjjh C
 *5 )rrRruK}r(X __version__rKXcommandrXTs"劳斡 居延汉简(版图之部) 中央研究院历史语言研究所 3/1/57"rX__id__rKX external_idrXpythonrXtsrh C
 
-{rrRruK}r(jKjXWs = "劳斡 居延汉简(版图之部) 中央研究院历史语言研究所 3/1/57"rjKjjjh C
 
-ir r!Rr"uK}r#(jKjXgs = "劳斡 居延汉简(版图之部) 中央研究院历史语言研究所 3/1/57".decode('utf-8')r$jKjjjh C
 
-" r%r&Rr'uK}r((jKjjjKjjjh C
 
-$r)r*Rr+uK}r,(jKjXsall = s.split('\t')r-jKjjjh C
 
-- 7r.r/Rr0uK}r1(jKjXsallr2jKjjjh C
 
-5r3r4Rr5uK}r6(jKjXsall[0]r7jKjjjh C
 
-9r8r9Rr:uK}r;(jKjXfor e in sall:r<jKjjjh C
 
.r=r>Rr?uK}r@(jKjX print erAjKjjjh C
 
.
zrBrCRrDuK}rE(jKjXSs =" 居延新简(下) 中华书局 7/2/94 7-101-01338-4/H.120".decode('utf-8')rFjKjjjh C
 
0
BerGrHRrIuM}rJ(jKjXsall = s.split('\t')rKjMjjjh C
 
0ۭrLrMRrNuM}rO(jKjXfor e in sall:rPjMjjjh C
 
0 ;rQrRRrSuM}rT(jKjX print erUjMjjjh C
 
0rVrWRrXuM}rY(X __version__rZKXcommandr[Xs = "938 广东东莞市虎门镇松鹰制衣厂 2016-05-30 曾经虎门松鹰制衣厂那么辉煌,今日也拖欠员工2个月工资,工厂员工为了拿到工资通宵24小时守着前后门,不让货车把货拉走!!! *曾经风光无限的虎门松鹰实业有限公司,今日也拖欠员工2个月工资,工厂员工为了拿到工资通宵24小时守在后大门,不让货车把货拉走。 0_workers 1 large group peaceful no police".decode('utf-8')r\X__id__r]MX external_idr^Xpythonr_Xtsr`h C
 
)rarbRrcuM}rd(jZKj[jj]Mj^j_j`h C
 
*rerfRrguM}rh(jZKj[Xsall = s.split("\t")rij]Mj^j_j`h C
 
5lrjrkRrluM}rm(jZKj[Xsallrnj]Mj^j_j`h C
 
7 ׸rorpRrquM}rr(jZKj[Xfor e in sall:rsj]Mj^j_j`h C
 
: rtruRrvuM}rw(jZKj[X print erxj]Mj^j_j`h C
  hgryrzRr{uM }r|(jZKj[Xvs = "85 河南许昌市 2016-06-13 老百姓要个合格证真难啊!两年了! 2_other 未知 ".decode('utf-8')r}j]M j^j_j`h C
 %8 r~rRruM
}r(jZKj[Xlen(s)rj]M
j^j_j`h C
 %: frrRruM }r(jZKj[Xsall = s.split("\t")rj]M j^j_j`h C
 &rrRruM }r(jZKj[Xfor e in sall:rj]M j^j_j`h C
 & rrRruM }r(jZKj[X print erj]M j^j_j`h C
 & rrRruM}r(jZKj[Xss = ""rj]Mj^j_j`h C
 ), rrRruM}r(jZKj[Xif ss:rj]Mj^j_j`h C
 )/rrRruM}r(jZKj[X print "sd"rj]Mj^j_j`h C
 )27rrRruM}r(jZKj[Xss = '1'rj]Mj^j_j`h C
 )9 WrrRruM}r(jZKj[Xif ss:rj]Mj^j_j`h C
 ); rrRruM}r(jZKj[X
print "s"rj]Mj^j_j`h C
 *
rrRruM}r(jZKj[Xlen(set([1,1,1,2,3]))rj]Mj^j_j`h C
 6rrRruM}r(jZKj[X[1]*3rj]Mj^j_j`h C
 8+rrRruM}r(jZKj[X tuple([1])*3rj]Mj^j_j`h C
 8/rrRruM}r(jZKj[X
tuple([1])rj]Mj^j_j`h C
 85rrRruM}r(jZKj[X tuple([1]*3)rj]Mj^j_j`h C
 8; TrrRruM}r(jZKj[X
nclass = 3rj]Mj^j_j`h C
 9 XrrRruM}r(jZKj[X [nclass] *3rj]Mj^j_j`h C
 9 rrRruM}r(jZKj[X[nclass] *nclassrj]Mj^j_j`h C
 93arrRruM}r(jZKj[X
nclass = 4rj]Mj^j_j`h C
 97 u3rrRruM}r(jZKj[X[nclass] *nclassrj]Mj^j_j`h C
 9:rrRruM}r(jZKj[X"np.zeros(tuple([nclass] * nclass))rj]Mj^j_j`h C
 :!rrRruM}r(jZKj[X4np.zeros(tuple([nclass] * nclass))import numpy as nprj]Mj^j_j`h C
 :GrrRruM }r(jZKj[Ximport numpy as nprj]M j^j_j`h C
 : SrrRruM!}r(jZKj[X"np.zeros(tuple([nclass] * nclass))rj]M!j^j_j`h C
 :$0rrRruM"}r(jZKj[X np.zeros(4)rj]M"j^j_j`h C
 :, -/rrRruM#}r(jZKj[Xtuple([nclass] * nclass)rj]M#j^j_j`h C
 ;rrRruM$}r(jZKj[Xvs = "85 河南许昌市 2016-06-13 老百姓要个合格证真难啊!两年了! 2_other 未知 ".decode('utf-8')rj]M$j^j_j`h C
 լrrRruM%}r(jZKj[Xsall = s.split("\t")r j]M%j^j_j`h C
 _r
r Rr uM&}r (jZKj[X len(sall)rj]M&j^j_j`h C
 7rrRruM'}r(jZKj[X
isdigit(1)rj]M'j^j_j`h C
 49rrRruM(}r(jZKj[Xs = "17 河北邯郸市华煌房地产 2016-06-13 华煌开发商不给过渡费,不盖房子。堵路了。 L秒拍视频 . 1_land 1 large group peaceful police".decode('utf-8')rj]M(j^j_j`h C
 #rrRruM)}r(jZKj[Xsall = s.split("\t")rj]M)j^j_j`h C
 # rrRr uM*}r!(jZKj[X len(sall)r"j]M*j^j_j`h C
 # 8r#r$Rr%uM+}r&(jZKj[X
tuple(2,2)r'j]M+j^j_j`h C
 /ACr(r)Rr*uM,}r+(jZKj[X tuple([2,2])r,j]M,j^j_j`h C
 /"
ur-r.Rr/uM-}r0(jZKj[Xs = "42830 江苏徐州市紫金东郡二期紫金奥玲花园 2015-01-04 商品房 维权 交钱 组织 孩子 no_label".decode('utf-8')r1j]M-j^j_j`h C
 2# Mr2r3Rr4uM.}r5(jZKj[Xsall = s.split("\t")r6j]M.j^j_j`h C
 2)r7r8Rr9uM/}r:(jZKj[X
len(salll)r;j]M/j^j_j`h C
 2-orr<r=Rr>uM0}r?(jZKj[X len(sall)r@j]M0j^j_j`h C
 2.5,rArBRrCuM1}rD(jZKj[Xs = "3294 陕西西安市罗马花园西岸国际滨水花城 2016-04-28 1_land 2 large group violence police".decode('utf-8')rEj]M1j^j_j`h C
 8XrFrGRrHuM2}rI(jZKj[Xsall = s.split("\t")rJj]M2j^j_j`h C
 8# ?rKrLRrMuM3}rN(jZKj[X len(sall)rOj]M3j^j_j`h C
 8&vrPrQRrRuM4}rS(jZKj[Xsall[0]rTj]M4j^j_j`h C
 8) EcrUrVRrWuM5}rX(jZKj[Xsall[3]rYj]M5j^j_j`h C
 8+ rZr[Rr\uM6}r](jZKj[Xsall[4]r^j]M6j^j_j`h C
 8/ӷr_r`RrauM7}rb(jZKj[Xsall[2]rcj]M7j^j_j`h C
 81 Q#rdreRrfuM8}rg(jZKj[X len(sall[3])rhj]M8j^j_j`h C
 9v0rirjRrkuM9}rl(jZKj[Xs = "41858 广东佛山市顺德区乐从家具城 2015-01-06 广东省 佛山市 家具城 租户 抗议 济潇条 生意 惨淡 减租 扩散 no_label"rmj]M9j^j_j`h C
 'rnroRrpuM:}rq(jZKj[Xs = "41858 广东佛山市顺德区乐从家具城 2015-01-06 广东省 佛山市 家具城 租户 抗议 济潇条 生意 惨淡 减租 扩散 no_label".decode('utf-8')rrj]M:j^j_j`h C
 0 /rsrtRruuM;}rv(jZKj[Xsall = s.split("\t")rwj]M;j^j_j`h C
 4 rxryRrzuM<}r{(jZKj[X len(sall)r|j]M<j^j_j`h C
 86r}r~RruM=}r(jZKj[Xs = "12909 湖南永州市冷水滩区舜德摩尔步步高商城渝州集团 2016-01-01 #永州身边事#2016年的第一天,永州市冷水滩区舜德摩尔步步高商城的商铺业主们就开始了维 #八方头条#权的艰辛历程,久拖不决的返租大幅下降,一直没有一个可信的说法,更得不到切实的解决。 2_other 1 large group peaceful no police".decode('utf-8')rj]M=j^j_j`h C
 5)rrRruM>}r(jZKj[Xsall = s.split("\t")rj]M>j^j_j`h C
 5/ rrRruM?}r(jZKj[X len(sall)rj]M?j^j_j`h C
 52rrRruM@}r(jZKj[Xus = "12909 TS_20160101_32 https://newsworthknowingcn.blogspot.com/2016/01/2016-01-01.html http://wickedonna.blogspot.com/2016/01/a-201611_37.html sina_weibo 1/1/2016 1/1/2016 湖南 永州市 冷水滩区 舜德摩尔步步高商城 渝州集团 湖南 永州 冷水滩 businesses protesting corrupt rent 1 businesses large group peaceful no police none".decode("utf-8")rj]M@j^j_j`h C
 65 MrrRruMA}r(jZKj[Xsall = s.split("\t")rj]MAj^j_j`h C
 69jhrrRruMB}r(jZKj[X len(sall)rj]MBj^j_j`h C
 6;brrRruMC}r(jZKj[Xsall[12]rj]MCj^j_j`h C
 7 7 rrRruMD}r(jZKj[Xsall[13]rj]MDj^j_j`h C
 7 K%rrRruME}r(jZKj[Xsall[14]rj]MEj^j_j`h C
 7 rrRruMF}r(jZKj[Xsall[15]rj]MFj^j_j`h C
 7 MrrRruMG}r(X __version__rKXcommandrXxs = "/Users/han/Dropbox/Collaborations/Jen Pan/historyWeiboCrawler/keywordSearchResults/weiboData_业主_2015-01-06.csv"rX__id__rMGX external_idrXpythonrXtsrh C
  8rrRruMH}r(jKjX{file = "/Users/han/Dropbox/Collaborations/Jen Pan/historyWeiboCrawler/keywordSearchResults/weiboData_业主_2015-01-06.csv"rjMHjjjh C
  RrrRruMI}r(jKjXfile.split('.')[0]rjMIjjjh C
  rrRruMJ}r(jKjX&file.split('.')[0] + "_segemented.tsv"rjMJjjjh C
  " rrRruMK}r(jKjX'file.split('.')[-1] + "_segemented.tsv"rjMKjjjh C
 9w rrRruML}r(jKjXfilerjMLjjjh C
  ]rrRruMM}r(jKjX&file.split('.')[0] + "_segemented.tsv"rjMMjjjh C
 
FrrRruMN}r(jKjX newpath = file.split('.')[0] # /Users/han/Dropbox/Collaborations/Jen Pan/historyWeiboCrawler/keywordSearchResults/weiboData_业主_2015-01-06
newpath_root = newpath.split("/")[-1]rjMNjjjh C
 9rrRruMO}r(jKjXnewpath = file.split('.')[0]rjMOjjjh C
 
+4rrRruMP}r(jKjXnewpathrjMPjjjh C
  &rrRruMQ}r(jKjX&newpath_root = newpath.split("/")[-1]rjMQjjjh C
 V+rrRruMR}r(jKjX newpath_rootrjMRjjjh C
 9)rrRruMS}r(jKjX.s = "刁煜梦扬,拖欠农民工工资是中国一种特有的现象,不久的将来必定成为世界一道靓丽的风景线。我想问问你们,人家给你干活了了你凭什么不给人家钱啊。http://t.cn/RZIMIE1,2015-1-7 21:38,http://weibo.com/u/5464942415?refer_flag=1001030103_,0,0"rjMSjjjh C
 4rrRruMT}r(jKjXsall = s.split(",")rjMTjjjh C
  {rrRruMU}r(jKjX len(sall)rjMUjjjh C
  rrRruMV}r(jKjXsall[1]rjMVjjjh C
  FrrRruMW}r(X __version__r KXcommandr
Ximport numpy as npr X__id__r MWX external_idr XpythonrXtsrh C
 8rrRruMX}r(j Kj
XX = 0.3 * np.random.randn(100, 2)
X_train = np.r_[X + 2, X - 2]
# Generate some regular novel observations
X = 0.3 * np.random.randn(20, 2)
X_test = np.r_[X + 2, X - 2]rj MXj jjh C
 8rrRruMY}r(j Kj
XXrj MYj jjh C
 8rrRruMZ}r(j Kj
XX_trainrj MZj jjh C
 8!lrr Rr!uM[}r"(j Kj
XVs = [ u'\u94f6\u884c \u767e\u59d3 \u767e\u59d3 \u76ae\u5efa \u623f\u5b50 \u9ad8\u4ef7 \u767e\u59d3 \u767e\u59d3 \u8f9b\u8f9b\u82e6\u82e6 \u4e70\u623f \u5f00\u653e \u5546\u8dd1 \u8d37\u6b3e \u623f\u5b50 \u62d6\u62d6 \u62d6\u62d6 \u767e\u59d3 \u653f\u5e9c \u5bd2\u5fc3 \u5bd2\u5fc3\n'
u'\u8bbd\u523a \u8bbd\u523a \u653f\u5e9c \u8868\u5f70 \u7ade\u8d5b \u82f1\u96c4\u699c \u53bf\u653f\u5e9c \u5916\u9762 \u4e24\u6279 \u6b3a\u6b3a \u8363\u699c\n'
u'\u80cc\u5305\u5ba2\n'
u'\u8679\u53e3\u533a \u5b87\u6cf0 \u516c\u5bd3 \u7ef4\u6743 \u63d0\u7bee\u6865 \u8857\u9053 \u9886\u5bfc \u8f96\u533a \u5c45\u6c11 \u8bc9\u6c42 \u75be\u82e6 \u5c45\u6c11 \u95e8\u53e3 \u7eb3\u7a0e \u5c45\u6c11 \u5e72\u5b9e \u626a\u5fc3\n'
u'\u8679\u53e3\u533a \u5546\u4e18 \u897f\u5b89 \u884c\u51f6 \u8679\u53e3\u533a \u5546\u4e18 \u897f\u5b89 \u96c7\u4f63 \u5c45\u6c11 \u884c\u51f6 \u516c\u9053\n'
u'\u7ed5\u884c \u5e7f\u573a \u6c11\u95f9\n'
u'\u505c\u7535 \u5c45\u6c11 \u7206\u4e71 \u911e\u53bf \u5835\u8def \u907f\u96f7\n'
u'\u911e\u5dde \u521b\u65b0 \u4e1c\u5174 \u5c45\u6c11 \u9020\u53cd \u624b\u62c9\u624b \u911e\u53bf \u8f66\u8f86 \u8f66\u8f86 \u8f86\u8f66 \u5c45\u6c11 \u8fb1\u9a82 \u9020\u53cd \u5c45\u6c11 \u505c\u7535 \u9694\u58c1 \u5546\u4e1a\u5e7f\u573a \u767e\u59d3 \u8054\u5408 \u9a6c\u8def\n'
u'\u5357\u9633 \u94a2\u7b4b \u7626\u8eab \u9000\u623f \u9ebb\u70e6 \u5357\u9633\n']r#j M[j jjh C
  +r$r%Rr&uM\}r'(j Kj
Xlen(s)r(j M\j jjh C
  0
*/r)r*Rr+uM]}r,(j Kj
XTs = u'\u94f6\u884c \u767e\u59d3 \u767e\u59d3 \u76ae\u5efa \u623f\u5b50 \u9ad8\u4ef7 \u767e\u59d3 \u767e\u59d3 \u8f9b\u8f9b\u82e6\u82e6 \u4e70\u623f \u5f00\u653e \u5546\u8dd1 \u8d37\u6b3e \u623f\u5b50 \u62d6\u62d6 \u62d6\u62d6 \u767e\u59d3 \u653f\u5e9c \u5bd2\u5fc3 \u5bd2\u5fc3\n'
u'\u8bbd\u523a \u8bbd\u523a \u653f\u5e9c \u8868\u5f70 \u7ade\u8d5b \u82f1\u96c4\u699c \u53bf\u653f\u5e9c \u5916\u9762 \u4e24\u6279 \u6b3a\u6b3a \u8363\u699c\n'
u'\u80cc\u5305\u5ba2\n'
u'\u8679\u53e3\u533a \u5b87\u6cf0 \u516c\u5bd3 \u7ef4\u6743 \u63d0\u7bee\u6865 \u8857\u9053 \u9886\u5bfc \u8f96\u533a \u5c45\u6c11 \u8bc9\u6c42 \u75be\u82e6 \u5c45\u6c11 \u95e8\u53e3 \u7eb3\u7a0e \u5c45\u6c11 \u5e72\u5b9e \u626a\u5fc3\n'
u'\u8679\u53e3\u533a \u5546\u4e18 \u897f\u5b89 \u884c\u51f6 \u8679\u53e3\u533a \u5546\u4e18 \u897f\u5b89 \u96c7\u4f63 \u5c45\u6c11 \u884c\u51f6 \u516c\u9053\n'
u'\u7ed5\u884c \u5e7f\u573a \u6c11\u95f9\n'
u'\u505c\u7535 \u5c45\u6c11 \u7206\u4e71 \u911e\u53bf \u5835\u8def \u907f\u96f7\n'
u'\u911e\u5dde \u521b\u65b0 \u4e1c\u5174 \u5c45\u6c11 \u9020\u53cd \u624b\u62c9\u624b \u911e\u53bf \u8f66\u8f86 \u8f66\u8f86 \u8f86\u8f66 \u5c45\u6c11 \u8fb1\u9a82 \u9020\u53cd \u5c45\u6c11 \u505c\u7535 \u9694\u58c1 \u5546\u4e1a\u5e7f\u573a \u767e\u59d3 \u8054\u5408 \u9a6c\u8def\n'
u'\u5357\u9633 \u94a2\u7b4b \u7626\u8eab \u9000\u623f \u9ebb\u70e6 \u5357\u9633\n'r-j M]j jjh C
 +Rr.r/Rr0uM^}r1(j Kj
Xs = "u'@\u4ffa\u5fcd\u4e0d\u4f4f\u4e86:\n' u'\u848b\u4f1f\u660e \u7ea0\u7ed3\n'
u'\u6c64\u5305\n' u'\u5b59\u610f\n' u'\u840c\u4ed4\n'
u'@\u5927\u5b5d\u611f\u8bba\u575b\n'
u'\u6587\u5316\u8def \u963b\u585e \u7f51\u53cb \u6587\u5316\u8def \u6446\u644a \u5546\u6237 \u6297\u8bae \u4e71\u6536\u8d39 \u624b\u62c9\u624b \u5835\u8857 \u6587\u5316\u8def \u8b66\u5bdf \u8f66\u4e3b \u7ed5\u9053\n'
u'\u5835\u8def \u6fc0\u52a8 \u793a\u5a01 \u6587\u660e\n'
u'\u5835\u8def \u6fc0\u52a8 \u793a\u5a01 \u6587\u660e\n'"r2j M^j jjh C
 # $r3r4Rr5uM_}r6(j Kj
X+print u'@\u4ffa\u5fcd\u4e0d\u4f4f\u4e86:\n'r7j M_j jjh C
 / Yr8r9Rr:uM`}r;(j Kj
X*print u'\u848b\u4f1f\u660e \u7ea0\u7ed3\n'r<j M`j jjh C
 8Er=r>Rr?uMa}r@(j Kj
Xprint u'\u6c64\u5305\n'rAj Maj jjh C
 
7rBrCRrDuMb}rE(j Kj
X-s = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 weibo_selfuser zC77r0jK4 http://weibo.com/3304898425/zC77r0jK4 @樱木花道玩足球打不上车,好不容易打上了还堵车,好不容易快到了还有人堵路,步行到达 樱木花道 足球 堵车 堵路 步行"rFj Mbj jjh C
  , rGrHRrIuMc}rJ(j Kj
Xsall = s.split("\t")rKj Mcj jjh C
  7 rLrMRrNuMd}rO(j Kj
X len(sall)rPj Mdj jjh C
  ;SrQrRRrSuMe}rT(j Kj
Xsall[12]rUj Mej jjh C
   rVrWRrXuMf}rY(j Kj
X=s = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 weibo_selfuser zC77r0jK4 http://weibo.com/3304898425/zC77r0jK4 @樱木花道玩足球打不上车,好不容易打上了还堵车,好不容易快到了还有人堵路,步行到达 樱木花道 足球 堵车 堵路 步行".decode('utf-8')rZj Mfj jjh C
  :r[r\Rr]uMg}r^(j Kj
Xsall = s.split("\t")r_j Mgj jjh C
  r`raRrbuMh}rc(j Kj
Xsall[12]rdj Mhj jjh C
  \rerfRrguMi}rh(j Kj
Xprint sall[12]rij Mij jjh C
  TrjrkRrluMj}rm(j Kj
Xs = "2013.7.11 141031 山西 临汾市 隰县 隰县,上友村 2013.7.11 山西省 临汾市 隰县 上友村 weibo_selfuser zFGZnmBrt http://weibo.com/3207671657/zFGZnmBrt @刘涛luck蔑视Ta的感情:山西省临汾市隰县上友村人,昨日(11),太原百姓渔村老板丁建红,伙同隰县派出所的人,带领20多名打手,对当地几位村民进行殴打,并拆掉刚盖好的房屋数间,及装载机一辆 报警后,警察并没有制止,而是在旁边看热闹 在此发微博,借助网络的力量来寻求帮助,请大家出一把力,谢谢 刘涛 蔑视 山西省 汾市 隰县 百姓 板丁建红 隰县 拆掉 房屋 数间 装载机 报警 警察 制止 热闹 网络 力量 寻求".decode('utf-8')rnj Mjj jjh C
  #-0rorpRrquMk}rr(j Kj
Xsall = s.split('\t')rsj Mkj jjh C
  #3 . rtruRrvuMl}rw(j Kj
Xsall[12]rxj Mlj jjh C
  #8ryrzRr{uMm}r|(j Kj
Xprint sall[12]r}j Mmj jjh C
  #;hr~rRruMn}r(X __version__rKXcommandrXs = [0,0,0,0,0,0,1,2,0,2,1,0,1,0,0,1,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]rX__id__rMnX external_idrXpythonrXtsrh C
 'SrrRruMo}r(X __version__rKXcommandrXs = "2015.1.1 350629 福建 漳州市 华安县 华安县,丰山镇,银塘村,龙翔草酸厂,农民,环境 农民,环境 2015.1.1 福建省 漳州市 华安县 丰山镇 银塘村 龙翔草酸厂 weibo_user 3107626595 http://weibo.com/u/3107626595?from=feed&loc=nickname 手机用户3107626595 华安县经济开发区潭口村等 银塘村村民把工产大门围起来啊! 华安县 济开 区潭口 银塘 工产 门围".decode('utf-8')rX__id__rMoX external_idrXpythonrXtsrh C
  rrRruMp}r(jKjXsall = s.split("\t")rjMpjjjh C
 $]/rrRruMq}r(jKjX len(sall)rjMqjjjh C
 & rrRruMr}r(jKjXsall[-1]rjMrjjjh C
 *:rrRruMs}r(jKjXprint sall[-1]rjMsjjjh C
 -
9rrRruMt}r(jKjXprint sall[-2]rjMtjjjh C
 8 WrrRruMu}r(jKjX print sall[2]rjMujjjh C
 (rrRruMv}r(jKjX print sall[3]rjMvjjjh C
 (W0rrRruMw}r(jKjX print sall[4]rjMwjjjh C
 ( rrRruMx}r(X __version__rKXcommandrXe^0.1rX__id__rMxX external_idrXpythonrXtsrh C
  LrrRruMy}r(jKjX power(e,0.1)rjMyjjjh C
  ̧rrRruMz}r(jKjX
exp(e,0.1)rjMzjjjh C
  hrrRruM{}r(X __version__rKXcommandrXs = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 weibo_selfuser zC77r0jK4 http://weibo.com/3304898425/zC77r0jK4 @樱木花道玩足球打不上车,好不容易打上了还堵车,好不容易快到了还有人堵路,步行到达".decode('utf-8')rX__id__rM{X external_idrXpythonrXtsrh C
 #?frrRruM|}r(jKjXsall = s.split("\t")rjM|jjjh C
 )rrRruM}}r(jKjX len(sall)rjM}jjjh C
 +>rrRruM~}r(jKjXsall[11]rjM~jjjh C
 .errRruM}r(jKjXs = "2013.6.19 431027 湖南 郴州 桂东 2013.6 19 湖南省 桂东县 unknown http://url.cn/OYCcbW http://url.cn/OYCcbW 湖南省桂东县政府,利用开发征地,谋取暴利。几年过去了,拆迁征地应有的安置地却不见落实,同时又私吞开发商工程款,开发商承受不住损失,想强行开发,村民应有利益不能落实,故而前去阻工。经过多次协商未果,导致开发商逼压政府,6月19号,开发商又来强行开发,茅柳几户村民前去阻工,未想黑心的官员没办法之下找来几十号小混混,追入茅柳村民家里进行殴打,导致一五旬妇女被打得重伤昏倒,另多名村名受伤。村民报警后,公安民警赶到现场却不见处理,直到镇政府官员到场,才把伤者送往医院,却仍不见处理打人者,当然,本来就是他们当官找来的,又怎么会处理呢。事发后,现场聚集大量村民,要求给个说法,却迟迟得不到答复。政府欺我们农民百姓淳朴,善良,这就是我们的好政府啊,养条狗还不咬自己人呢,这些桂东养了几十年的狗,却只知道欺负自己人,世界之大,何地还有我们百姓的乐土。".decode('utf-8')rjMjjjh C
 rrRruM}r(jKjXsall = s.split("\t")rjMjjjh C
 ! rrRruM}r(jKjX len(sall)rjMjjjh C
 # rrRruM}r(X __version__rKXcommandrX 0.669 -2.575 * 0.3rX__id__rMX external_idrXpythonrXtsrh C
rrRruM}r(jKjX0.669 -2.575 * 0.3r jMjjjh C
 pr
r Rr uM}r (jKjX0.587-2.575*0.071rjMjjjh C
*arrRruM}r(jKjX0.587-2.575*0.71rjMjjjh C
-rrRruM}r(jKjX(0.587-0.11)/1.96rjMjjjh C
, -rrRruM}r(jKjX0.587-2.575*0.243rjMjjjh C
7TrrRr uM}r!(X __version__r"KXcommandr#Xs = "\u6ca1_v"r$X__id__r%MX external_idr&Xpythonr'Xtsr(h C
r)r*Rr+uM}r,(j"Kj#jj%Mj&j'j(h C
 r-r.Rr/uM}r0(j"Kj#Xprint sr1j%Mj&j'j(h C
r2r3Rr4uM}r5(j"Kj#Xs = u"\u6ca1_v"r6j%Mj&j'j(h C
r7r8Rr9uM}r:(j"Kj#jj%Mj&j'j(h C
 `r;r<Rr=uM}r>(j"Kj#Xprint sr?j%Mj&j'j(h C
r@rARrBuM}rC(X __version__rDKXcommandrEXimport affinityrFX__id__rGMX external_idrHXpythonrIXtsrJh C
4ܨrKrLRrMuM}rN(jDKjEX%affinity.get_process_affinity_mask(0)rOjGMjHjIjJh C
rPrQRrRuM}rS(jDKjEXimport multiprocessing as mprTjGMjHjIjJh C
"brUrVRrWuM}rX(jDKjEX!mp.set_start_method('forkserver')rYjGMjHjIjJh C
" vrZr[Rr\uM}r](X __version__r^KXcommandr_X1from sklearn import datasets, svm, metrics
# The digits dataset
digits = datasets.load_digits()
# The data that we are interested in is made of 8x8 images of digits, let's
# have a look at the first 4 images, stored in the `images` attribute of the
# dataset. If we were working from image files, we could load them using
# matplotlib.pyplot.imread. Note that each image must have the same size. For these
# images, we know which digit they represent: it is given in the 'target' of
# the dataset.
images_and_labels = list(zip(digits.images, digits.target))r`X__id__raMX external_idrbXpythonrcXtsrdh C
9rerfRrguM}rh(j^Kj_Xhead(digits.images)rijaMjbjcjdh C
YrjrkRrluM}rm(j^Kj_Xlength(digits.images)rnjaMjbjcjdh C
!FrorpRrquM}rr(j^Kj_Xlen(digits.images)rsjaMjbjcjdh C
$ rtruRrvuM}rw(j^Kj_Xdigits.images[1]rxjaMjbjcjdh C
)ryrzRr{uM}r|(j^Kj_Xdigits.images[2]r}jaMjbjcjdh C
-r~rRruM}r(j^Kj_Ximages_and_labels[1]rjaMjbjcjdh C

$t}rrRruM}r(j^Kj_XLn_samples = len(digits.images)
data = digits.images.reshape((n_samples, -1))rjaMjbjcjdh C

( KOrrRruM}r(j^Kj_Xdata[1]rjaMjbjcjdh C

* VprrRruM}r(j^Kj_X digits[1]rjaMjbjcjdh C

9rrRruM}r(j^Kj_X rep(1,10)rjaMjbjcjdh C
 rrrRruM}r(j^Kj_X[1]*10rjaMjbjcjdh C
 & rrRruM}r(j^Kj_X[[1]*10, [0]*10]rjaMjbjcjdh C
 3rrRruM}r(X __version__rKXcommandrXimport matplotlib.pyplot as plt
# Import datasets, classifiers and performance metrics
from sklearn import datasets, svm, metrics
# The digits dataset
digits = datasets.load_digits()rX__id__rMX external_idrXpythonrXtsrh C
%XrrRruM}r(jKjXimages_and_labels = list(zip(digits.images, digits.target))
for index, (image, label) in enumerate(images_and_labels[:4]):
plt.subplot(2, 4, index + 1)
plt.axis('off')
plt.imshow(image, cmap=plt.cm.gray_r, interpolation='nearest')
plt.title('Training: %i' % label)
# To apply a classifier on this data, we need to flatten the image, to
# turn the data in a (samples, feature) matrix:
n_samples = len(digits.images)
data = digits.images.reshape((n_samples, -1))rjMjjjh C
&(rrRruM}r(jKjX!classifier = svm.SVC(gamma=0.001)rjMjjjh C
&4rrRruM}r(jKjXdata[1]rjMjjjh C
&5`rrRruM}r(jKjXprint digits.image[1]rjMjjjh C
* ZrrRruM}r(jKjXprint digits.images[1]rjMjjjh C
*rrRruM}r(jKjX digits.imagesrjMjjjh C
,4rrRruM}r(jKjXdigits.images[1].reshape(-1)rjMjjjh C
. rrRruM}r(jKjXdigits.images[1]rjMjjjh C
.rrRruM}r(jKjXdata[:3]rjMjjjh C
7
J5rrRruM}r(jKjXdata[1].__class__rjMjjjh C
mrrRruM}r(jKjX digits.target[1]rjMjjjh C
 7rrRruM}r(jKjXdigits.target[1]rjMjjjh C

rrRruM}r(jKjX digits.targetrjMjjjh C
'rrRruM}r(jKjXdigits.target.__class__rjMjjjh C
ٴrrRruM}r(jKjXnp.array([1] * 10)rjMjjjh C
(rrRruM}r(jKjX$npimport numpy as np.array([1] * 10)rjMjjjh C
8 rrRruM}r(jKjXimport numpy as npr jMjjjh C
:r r Rr uM}r (jKjX$npimport numpy as np.array([1] * 10)r jMjjjh C
;r r Rr uM}r (jKjXnp.array([1] * 10)r
jMjjjh C
r r Rr uM}r (jKjXnp.array([1] * 10).__class__r jMjjjh C

 ur r Rr uM}r (jKjXnp.array([1] * 10)[1].__class__r jMjjjh C

r r Rr uM}r (jKjXdatar jMjjjh C
}zr r Rr uM}r (jKjX digits.targetr jMjjjh C
 V"r r Rr! uM}r" (jKjX digits.imagesr# jMjjjh C
r$ r% Rr& uM}r' (jKjXdigits.images.shaper( jMjjjh C
r) r* Rr+ uM}r, (jKjXfor x in data:r- jMjjjh C
7 r. r/ Rr0 uM}r1 (jKjX print len(x)r2 jMjjjh C

r3 r4 Rr5 uM}r6 (jKjXfor x in data:r7 jMjjjh C
r8 r9 Rr: uM}r; (jKjX print len(x)r< jMjjjh C
 (or= r> Rr? uM}r@ (jKjXfor x in digits.images:rA jMjjjh C
0 *0rB rC RrD uM}rE (jKjX print x.shaperF jMjjjh C
7rG rH RrI uM}rJ (jKjX a = np.array([[1,2,3], [4,5,6]])rK jMjjjh C
 8 sqrL rM RrN uM}rO (jKjXa.reshape(1,-1)rP jMjjjh C
 rQ rR RrS uM}rT (jKjXa.reshape(-1,1)rU jMjjjh C
 
¼rV rW RrX uM}rY (jKjX b = np.array([[1,2,3], [4,5,6]])rZ jMjjjh C
 "Cr[ r\ Rr] uM}r^ (jKjXar_ jMjjjh C
 "
r` ra Rrb uM}rc (jKjXbrd jMjjjh C
 " re rf Rrg uM}rh (jKjX c = [a,b]ri jMjjjh C
 "|rj rk Rrl uM}rm (jKjXcrn jMjjjh C
 "ro rp Rrq uM}rr (jKjXc = np.array(c)rs jMjjjh C
 "
9rt ru Rrv uM}rw (jKjjn jMjjjh C
 "rx ry Rrz uM}r{ (jKjXc.shaper| jMjjjh C
 ""r} r~ Rr uM}r (jKjXa.shaper jMjjjh C
 "*2Ar r Rr uM}r (jKjX c.shape(-1,1)r jMjjjh C
 #9r r Rr uM}r (jKjXc.reshape(-1,1)r jMjjjh C
 # r r Rr uM}r (jKjXa.reshape(1,-1)r jMjjjh C
 #!ݶr r Rr uM}r (jKjX import numpyr jMjjjh C
  ]r r Rr uM}r (X __version__r KXcommandr Ximport networkxr X__id__r MX external_idr Xpythonr Xtsr h C
  Rr r Rr uM}r (j Kj X import igraphr j Mj j j h C
  xr r Rr uM}r (j Kj X import numpyr j Mj j j h C
 r r Rr uM}r (j Kj X import siter j Mj j j h C
 
r r Rr uM}r (j Kj Xsite.getsitepackages()r j Mj j j h C
 r r Rr uM}r (X __version__r KXcommandr X import siter X__id__r MX external_idr Xpythonr Xtsr h C
 !}r r Rr uM}r (j Kj Xsite.getsitepackages()r j Mj j j h C
 #r r Rr uM}r (j Kj X import siter j Mj j j h C
 1r r Rr uM}r (j Kj Xsite.getsitepackages()r j Mj j j h C
 2Mr r Rr uM}r (X __version__r KXcommandr X import siter X__id__r MX external_idr Xpythonr Xtsr h C
 7
r r Rr uM}r (j Kj Xsite.getsitepackages()r j Mj j j h C
 8 Tr r Rr uM}r (j Kj X import numpyr j Mj j j h C
 M
r r Rr uM}r (X __version__r KXcommandr X.from distutils.sysconfig import get_python_incr X__id__r MX external_idr Xpythonr Xtsr h C

  Fr r Rr uM}r (j Kj Xget_python_inc()r j Mj j j h C

  7r r Rr uM}r (X __version__r KXcommandr Ximport resourcer X__id__r MX external_idr Xpythonr Xtsr h C
 2 r r
Rr
uM}r
(j Kj Xresource.getrlimit()r
j Mj j j h C
 zr
r
Rr
uM}r
(j Kj Xresource.RLIMIT_COREr
j Mj j j h C
  36r
r
Rr
uM}r
(j Kj Xresource.RLIMIT_FSIZEr
j Mj j j h C
 % Rr
r
Rr
uM}r
(X __version__r
KXcommandr
XRimport resource
rsrc = resource.RLIMIT_DATA
soft, hard = resource.getrlimit(rsrc)r
X__id__r
MX external_idr
Xpythonr
Xtsr
h C
 /Ӵr
r
Rr
uM}r
(j
Kj
Xsoftr
j
Mj
j
j
h C
 1
r
r
Rr
uM}r!
(j
Kj
Xhardr"
j
Mj
j
j
h C
 2 r#
r$
Rr%
uM}r&
(X __version__r'
KXcommandr(
X s = [1,2,3]r)
X__id__r*
MX external_idr+
Xpythonr,
Xtsr-
h C
 +2<r.
r/
Rr0
uM}r1
(j'
Kj(
Xs[1,2,]r2
j*
Mj+
j,
j-
h C
 +4 r3
r4
Rr5
uM}r6
(j'
Kj(
Xs[(1,2)]r7
j*
Mj+
j,
j-
h C
 +: r8
r9
Rr:
uM}r;
(j'
Kj(
Xs[[1,2]]r<
j*
Mj+
j,
j-
h C
 ,r=
r>
Rr?
uM}r@
(X __version__rA
KXcommandrB
X import timeitrC
X__id__rD
MX external_idrE
XpythonrF
XtsrG
h C
 rH
rI
RrJ
uM}rK
(jA
KjB
Xprint timeit(x = [1,2,3])rL
jD
MjE
jF
jG
h C
 WrM
rN
RrO
uM}rP
(jA
KjB
X print timeit.timeit(x = [1,2,3])rQ
jD
MjE
jF
jG
h C
 @8rR
rS
RrT
uM}rU
(jA
KjB
Xstr(3.3)rV
jD
MjE
jF
jG
h C
 irW
rX
RrY
uM}rZ
(jA
KjB
X x = [1,2,3]r[
jD
MjE
jF
jG
h C
  r\
r]
Rr^
uM}r_
(jA
KjB
X ",".join(x)r`
jD
MjE
jF
jG
h C
 %
ra
rb
Rrc
uM}rd
(jA
KjB
X",".join([str(i) for i in x])re
jD
MjE
jF
jG
h C
 4 rf
rg
Rrh
uM}ri
(jA
KjB
Xzip([1,2,3],[4,5,6])rj
jD
MjE
jF
jG
h C
  rk
rl
Rrm
uM}rn
(X __version__ro
KXcommandrp
X range(10)rq
X__id__rr
MX external_idrs
Xpythonrt
Xtsru
h C
 %]Frv
rw
Rrx
uM}ry
(jo
Kjp
X x = [1,2,3]rz
jr
Mjs
jt
ju
h C
 
 &r{
r|
Rr}
uM}r~
(jo
Kjp
Xx[[:10]]r
jr
Mjs
jt
ju
h C
 
"
mr
r
Rr
uM}r
(jo
Kjp
Xx[:10]r
jr
Mjs
jt
ju
h C
 
) r
r
Rr
uM}r
(jo
Kjp
X [1] * 1.5r
jr
Mjs
jt
ju
h C
   r
r
Rr
uM}r
(jo
Kjp
X
round(1.5)r
jr
Mjs
jt
ju
h C
  r
r
Rr
uM}r
(jo
Kjp
Xround(199999/2)r
jr
Mjs
jt
ju
h C
  r
r
Rr
uM}r
(jo
Kjp
hjr
Mjs
jt
ju
h C
 r
r
Rr
uM}r
(jo
Kjp
X del x[:2]r
jr
Mjs
jt
ju
h C
 
0r
r
Rr
uM}r
(jo
Kjp
hjr
Mjs
jt
ju
h C
  r
r
Rr
uM}r
(jo
Kjp
Xdel x[2]r
jr
Mjs
jt
ju
h C
  br
r
Rr
uM}r
(jo
Kjp
X del x[:2]r
jr
Mjs
jt
ju
h C
 r
r
Rr
uM}r
(jo
Kjp
hjr
Mjs
jt
ju
h C
 <r
r
Rr
uM}r
(X __version__r
KXcommandr
X#from collections import defaultdictr
X__id__r
MX external_idr
Xpythonr
Xtsr
h C
9:[r
r
Rr
uM}r
(j
Kj
Xdefaultdict([0,1,2])r
j
Mj
j
j
h C
:r
r
Rr
uM}r
(j
Kj
Xx = defaultdict(str)r
j
Mj
j
j
h C
: r
r
Rr
uM}r
(j
Kj
Xx = defaultdict(int, [0,1,2])r
j
Mj
j
j
h C
;2[r
r
Rr
uM}r
(j
Kj
Xx = defaultdict([(1,2), (2,3)])r
j
Mj
j
j
h C
;r
r
Rr
uM}r
(j
Kj
X import randomr
j
Mj
j
j
h C
 1r
r
Rr
uM}r
(j
Kj
Xrandom.random(10)r
j
Mj
j
j
h C
r
r
Rr
uM}r
(j
Kj
Xrandom.int(10)r
j
Mj
j
j
h C
r
r
Rr
uM}r
(j
Kj
X
xrange(10)r
j
Mj
j
j
h C
#8r
r
Rr
uM}r
(j
Kj
X range(10)r
j
Mj
j
j
h C
&Jr
r
Rr
uM}r
(j
Kj
Xrandom.shuffle(xrange(10))r
j
Mj
j
j
h C
, r
r
Rr
uM}r
(j
Kj
Xrandom.shuffle(range(10))r
j
Mj
j
j
h C
0)r
r
Rr
uM }r
(j
Kj
Xprint random.shuffle(range(10))r
j
M j
j
j
h C
4 Hr
r
Rr
uM
}r
(j
Kj
X range(10)r
j
M
j
j
j
h C
7vr
r
Rr
uM }r
(j
Kj
X x = range(10)r
j
M j
j
j
h C
мr r Rr uM }r (j
Kj
Xrandom.shuffle(x)r j
M j
j
j
h C
r r Rr uM }r (j
Kj
hj
M j
j
j
h C

er r
Rr uM}r (X __version__r KXcommandr X l = "834-850"r X__id__r MX external_idr Xpythonr Xtsr h C
;#r r Rr uM}r (j Kj X!re.match(r'.*([0-9]?-[0-9]?)', l)r j Mj j j h C
)r r Rr uM}r (j Kj X import rer j Mj j j h C
 r r Rr uM}r! (j Kj X!re.match(r'.*([0-9]?-[0-9]?)', l)r" j Mj j j h C
Rr# r$ Rr% uM}r& (j Kj X)match = re.match(r'.*([0-9]?-[0-9]?)', l)r' j Mj j j h C
r( r) Rr* uM}r+ (j Kj X print matchr, j Mj j j h C
ur- r. Rr/ uM}r0 (j Kj Xprint match.group(1)r1 j Mj j j h C
!r2 r3 Rr4 uM}r5 (j Kj X'match = re.match(r'([0-9]?-[0-9]?)', l)r6 j Mj j j h C
1r7 r8 Rr9 uM}r: (j Kj X print matchr; j Mj j j h C
5 ]Jr< r= Rr> uM}r? (j Kj X%match = re.match(r'[0-9]?-[0-9]?', l)r@ j Mj j j h C
#rA rB RrC uM}rD (j Kj XmatchrE j Mj j j h C
XrF rG RrH uM}rI (j Kj X print matchrJ j Mj j j h C

FrK rL RrM uM}rN (j Kj X'match = re.match(r'^[0-9]?-[0-9]?$', l)rO j Mj j j h C
 rP rQ RrR uM}rS (j Kj XmatchrT j Mj j j h C
hrU rV RrW uM}rX (j Kj X'match = re.match(r'^[0-9]+-[0-9]+$', l)rY j Mj j j h C
JrZ r[ Rr\ uM}r] (j Kj Xmatchr^ j Mj j j h C
r_ r` Rra uM}rb (j Kj X print matchrc j Mj j j h C
rd re Rrf uM}rg (j Kj Xprint match.group(1)rh j Mj j j h C
$ ri rj Rrk uM }rl (j Kj Xprint match.group(0)rm j M j j j h C
(ern ro Rrp uM!}rq (j Kj hj M!j j j h C
4rr rs Rrt uM"}ru (j Kj Xl1 = "766?-832?"rv j M"j j j h C
6 rw rx Rry uM#}rz (j Kj Xl1.replace("?","")r{ j M#j j j h C
Vr| r} Rr~ uM$}r (j Kj X"".replace("?","")r j M$j j j h C
&4r r Rr uM%}r (j Kj X;r j M%j j j h C
 % r r Rr uM&}r (j Kj hj M&j j j h C
 'r r Rr uM'}r (j Kj Xa = "1"r j M'j j j h C
8
Fr r Rr uM(}r (j Kj X a.split(",")r j M(j j j h C
 r r Rr uM)}r (j Kj Xa.split(",")[0]r j M)j j j h C
0r r Rr uM*}r (j Kj Xprint u'\u2013'r j M*j j j h C
r r Rr uM+}r (j Kj Xint((847+860)/2)r j M+j j j h C
!5r r Rr uM,}r (X __version__r KXcommandr X import mathr X__id__r M,X external_idr Xpythonr Xtsr h C

r r Rr uM-}r (j Kj Xmath.mean([1,2,3])r j M-j j j h C
Hir r Rr uM.}r (X __version__r KXcommandr X# -*- coding: utf-8 -*-
import numpy as np
from fancyimpute import BiScaler, KNN, NuclearNormMinimization, SoftImpute
X_incomplete = np.array([1,2],[3,NaN])r X__id__r M.X external_idr Xpythonr Xtsr h C
r r Rr uM/}r (j Kj X*
X_incomplete = np.array([1,2],[3,np.NaN])r j M/j j j h C
5V+r r Rr uM0}r (j Kj X0
X_incomplete = np.array([1,2],[3,float("nan")])r j M0j j j h C
3 9gr r Rr uM1}r (j Kj X(
X_incomplete = np.matrix([1,2],[3,NaN])r j M1j j j h C
 r r Rr uM2}r (j Kj X+
X_incomplete = np.matrix([1,2],[3,np.NaN])r j M2j j j h C
'&r r Rr uM3}r (j Kj X/X_incomplete = np.matrix([[1, 2], [3, np.NaN]])r j M3j j j h C
kur r Rr uM4}r (j Kj X range(-9, -1)r j M4j j j h C
zr r Rr uM5}r (j Kj X range(-9, 0)r j M5j j j h C
 >lr r Rr uM6}r (j Kj Xs = "ss"r j M6j j j h C
+ r r Rr uM7}r (j Kj X s.__class__r j M7j j j h C
+.r r Rr uM8}r (X __version__r KXcommandr X> print u'\u589e\u52a0'r X__id__r M8X external_idr Xpythonr Xtsr h C
 r r Rr uM9}r (X __version__r KXcommandr X(237532.0 / (237532 + 237+ 192478 * 0.07)r X__id__r M9X external_idr Xpythonr Xtsr h C
 r r Rr uM:}r (X __version__r KXcommandr Xprint u'\u4f60'r X__id__r M:X external_idr Xpythonr
Xtsr h C
/;r r Rr uM;}r (j Kj Xdef clean_str(string):
"""
Tokenization/string cleaning for all datasets except for SST.
Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
"""
# string = re.sub(r"[^A-Za-z0-9(),!?\'\`]", " ", string)
string = re.sub(r"\'s", " ", string)
string = re.sub(r"\'ve", " ", string)
string = re.sub(r"n\'t", " ", string)
string = re.sub(r"\'re", " ", string)
string = re.sub(r"\'d", " ", string)
string = re.sub(r"\'ll", " ", string)
string = re.sub(r",", " ", string)
string = re.sub(r"!", " ", string)
string = re.sub(r"\(", " ", string)
string = re.sub(r"\)", " ", string)
string = re.sub(r"\?", " ", string)
string = re.sub(r"\s{2,}", " ", string)
return string.strip().lower()r j M;j j
j h C
!% r r Rr uM<}r (j Kj Xclean_str('sdfsd')r j M<j j
j h C
!-Ar r Rr uM=}r (j Kj X import rer j M=j j
j h C
!0 r r Rr uM>}r (j Kj Xclean_str('sdfsd')r j M>j j
j h C
!1
r r! Rr" uM?}r# (j Kj Xclean_str('sdf dsf sdf')r$ j M?j j
j h C
!5 r% r& Rr' uM@}r( (j Kj Xclean_str('中国人')r) j M@j j
j h C
"mr* r+ Rr, uMA}r- (j Kj X&clean_str('中国人'.decode('utf-8'))r. j MAj j
j h C
"0r/ r0 Rr1 uMB}r2 (j Kj X'clean_str("simplistic , silly and tedious .
it's so laddish and juvenile , only teenage boys could possibly find it funny .
exploitative and largely devoid of the depth or sophistication that would make watching such a graphic treatment of the crimes bearable .
[garbus] discards the potential for pathological study , exhuming instead , the skewed melodrama of the circumstantial situation .
a visually flashy but narratively opaque and emotionally vapid exercise in style and mystification .
the story is also as unoriginal as they come , already having been recycled more times than i'd care to count .
about the only thing to give the movie points for is bravado -- to take an entirely stale concept and push it through the audience's meat grinder one more time .
not so much farcical as sour .")r3 j MBj j
j h C
*r4 r5 Rr6 uMC}r7 (j Kj X*clean_str("implistic , silly and tedious")r8 j MCj j
j h C
*' r9 r: Rr; uMD}r< (X __version__r= KXcommandr> Xprint u'\u6211'r? X__id__r@ MDX external_idrA XpythonrB XtsrC h C
6rD rE RrF uME}rG (j= Kj> X def clean_str(string):
"""
Tokenization/string cleaning for all datasets except for SST.
Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
"""
string = re.sub(r"[^A-Za-z0-9(),!?\'\`]", " ", string)
string = re.sub(r"\'s", " \'s", string)
string = re.sub(r"\'ve", " \'ve", string)
string = re.sub(r"n\'t", " n\'t", string)
string = re.sub(r"\'re", " \'re", string)
string = re.sub(r"\'d", " \'d", string)
string = re.sub(r"\'ll", " \'ll", string)
string = re.sub(r",", " , ", string)
string = re.sub(r"!", " ! ", string)
string = re.sub(r"\(", " \( ", string)
string = re.sub(r"\)", " \) ", string)
string = re.sub(r"\?", " \? ", string)
string = re.sub(r"\s{2,}", " ", string)
return string.strip().lower()rH j@ MEjA jB jC h C
 5QrI rJ RrK uMF}rL (j= Kj> X s = 'sdf ss'rM j@ MFjA jB jC h C
 ; !rN rO RrP uMG}rQ (j= Kj> X clean_str(s)rR j@ MGjA jB jC h C
 ?rS rT RrU uMH}rV (j= Kj> X import rerW j@ MHjA jB jC h C
\rX rY RrZ uMI}r[ (j= Kj> X clean_str(s)r\ j@ MIjA jB jC h C
hr] r^ Rr_ uMJ}r` (j= Kj> Xprint clear_str(s)ra j@ MJjA jB jC h C
 XRrb rc Rrd uMK}re (j= Kj> Xprint clean_str(s)rf j@ MKjA jB jC h C
2rg rh Rri uML}rj (j= Kj> Xs1= "sdf(0sdf---]"rk j@ MLjA jB jC h C
#Drl rm Rrn uMM}ro (j= Kj> Xprint clean_str(s1)rp j@ MMjA jB jC h C
%.rq rr Rrs uMN}rt (X __version__ru KXcommandrv Xprint u'\u5f53\u5730\u4eba'rw X__id__rx MNX external_idry Xpythonrz Xtsr{ h C
 Jr| r} Rr~ uMO}r (ju Kjv Xprint u'\u521d\u4e00'r jx MOjy jz j{ h C
 r r Rr uMP}r (ju Kjv Xu'\u7537\u751f'r jx MPjy jz j{ h C
6 vFr r Rr uMQ}r (ju Kjv Xprint u'\u7537\u751f'r jx MQjy jz j{ h C
8 rr r Rr uMR}r (ju Kjv Xprint u'\u6bcd\u4eb2'r jx MRjy jz j{ h C
  r r Rr uMS}r (ju Kjv Xprint u'\u524d\u6765'r jx MSjy jz j{ h C
 Ar r Rr uMT}r (ju Kjv Xprint u'\u5c01\u9501'r jx MTjy jz j{ h C
 &[r r Rr uMU}r (ju Kjv Xprint u'\u7248\u672c'r jx MUjy jz j{ h C
 (Or r Rr uMV}r (ju Kjv Xprint u'\u559c\u6b22'r jx MVjy jz j{ h C
 - r r Rr uMW}r (ju Kjv Xx = [u'\u7248\u672c', u'\u559c\u6b22', u'\u5e73\u91ce\u7eeb', u'\u4f0a\u85e4\u7531\u5948', u'\u65b0\u5802', u'\u5144\u5f1f', u'\u73b0\u573a\u7248', u'\u4f18\u9177\u7f51']r jx MWjy jz j{ h C
 :dr r Rr uMX}r (ju Kjv X for xx in x:r jx MXjy jz j{ h C
Fr r Rr uMY}r (ju Kjv Xprint xxr jx MYjy jz j{ h C
Vr r Rr uMZ}r (ju Kjv X for xx in x:r jx MZjy jz j{ h C
Nr r Rr uM[}r (ju Kjv X print xxr jx M[jy jz j{ h C
 r r Rr uM\}r (ju Kjv X[with open('vocab/vocab_pos_KGP50000.dict') as json_file:
wordpos = json.load(json_file)r jx M\jy jz j{ h C
 r r Rr uM]}r (ju Kjv Ximport json_filer jx M]jy jz j{ h C
 r r Rr uM^}r (ju Kjv X[with open('vocab/vocab_pos_KGP50000.dict') as json_file:
wordpos = json.load(json_file)r jx M^jy jz j{ h C
r r Rr uM_}r (ju Kjv X import jsonr jx M_jy jz j{ h C
!r r Rr uM`}r (ju Kjv X[with open('vocab/vocab_pos_KGP50000.dict') as json_file:
wordpos = json.load(json_file)r jx M`jy jz j{ h C
"r r Rr uMa}r (ju Kjv X len(wordpos)r jx Majy jz j{ h C
(!r r Rr uMb}r (ju Kjv X
wordpos[1]r jx Mbjy jz j{ h C
-l?r r Rr uMc}r (ju Kjv Xwordpos["\u5e73\u5b9a"]r jx Mcjy jz j{ h C
0#fr r Rr uMd}r (ju Kjv Xwordpos[u"\u5e73\u5b9a"]r jx Mdjy jz j{ h C
4!r r Rr uMe}r (ju Kjv X"wordpos[u"\u5e73\u5b9a"].__class__r jx Mejy jz j{ h C
:+r r Rr uMf}r (X __version__r KXcommandr XSs = "#广州火车站砍人事件#真tmd是禽兽。如果你对国家不满。对政府有敌意。你tmd冲着国家冲着政府去。为什么面对手无寸铁的百姓?百姓是弱者。这些暴徒面对弱者时那么有恃无恐。只会增加百姓对这些亡命之徒的愤恨。组织者一定是个丧心病狂的懦夫。 "r X__id__r MfX external_idr Xpythonr Xtsr h C
 - Nr r Rr uMg}r (j Kj X import rer j Mgj j j h C
 3Rr r Rr uMh}r (j Kj Xre.sub('#[^#]+#', '', s)r j Mhj j j h C
 r r Rr uMi}r (j Kj Xprint re.sub('#[^#]+#', '', s)r j Mij j j h C
 cr r
Rr uMj}r (j Kj Xprint re.sub('#[^#]+$', '', s)r j Mjj j j h C
 ) yr r Rr uMk}r (j Kj jj Mkj j j h C
 -
"r r Rr uMl}r (j Kj X)s1 = "山东济宁曲...看看这无良的保安,看看这手无寸铁的老百姓!请帮忙转发一下谢谢!@大众网@大冰@高迪GD@济宁电视台那冲@济宁发布@济宁市网络问政平台@大冰@济宁新闻网@齐鲁台独家@齐鲁台刘爽@齐鲁台小溪办事@山东卫视"r j Mlj j j h C
 (r r Rr uMm}r (j Kj Xprint re.sub('@[^#]+$', '', s1)r j Mmj j j h C
  G>r r Rr uMn}r (j Kj Xs1 = s1.decode('utf-8')r j Mnj j j h C
 " Er! r" Rr# uMo}r$ (j Kj Xprint re.sub('@[^#]+$', '', s1)r% j Moj j j h C
 %|r& r' Rr( uMp}r) (j Kj Xs2 = "【悦读】[一代人]作者:熊培云在自己的祖国寻找祖国在祖先的土地流浪四方只有哄堂大笑没有热泪盈眶手无寸铁的人学会了铁石心肠".decode('utf-8')r* j Mpj j j h C
 ,4r+ r, Rr- uMq}r. (j Kj X#print re.sub('【[^#]+】', '', s2)r/ j Mqj j j h C
 -
r0 r1 Rr2 uMr}r3 (j Kj X3print re.sub('【[^#]+】'.decode('utf-8'), '', s2)r4 j Mrj j j h C
 -gGr5 r6 Rr7 uMs}r8 (j Kj Xs3 = '【富兴镇“暖冬行动”进行中】#微公益有我在##暖冬行动#近日,中江县富兴镇启动“暖冬行动”,现场为10名贫困留守儿童发放慰问金4000元。该镇其余“暖冬行动”正加紧进行。详询富兴镇政府'r9 j Msj j j h C
 /!gr: r; Rr< uMt}r= (j Kj Xprint re.sub('#[^#]+#', '', 3)r> j Mtj j j h C
 /,Ӥr? r@ RrA uMu}rB (j Kj Xprint re.sub('#[^#]+#', '', s3)rC j Muj j j h C
 //s7rD rE RrF uMv}rG (j Kj X5print re.sub('【[^】]+】'.decode('utf-8'), '', s3)rH j Mvj j j h C
 0#rI rJ RrK uMw}rL (j Kj Xs3rM j Mwj j j h C
 0- rN rO RrP uMx}rQ (j Kj Xprint s3rR j Mxj j j h C
 01 rS rT RrU uMy}rV (j Kj Xs3 = re.sub('#[^#]+#', '', s3)rW j Myj j j h C
 1rX rY RrZ uMz}r[ (j Kj Xs3r\ j Mzj j j h C
 1U'r] r^ Rr_ uM{}r` (j Kj Xs3 = s3.decode('utf-8')ra j M{j j j h C
 1xrb rc Rrd uM|}re (j Kj Xs3rf j M|j j j h C
 1rg rh Rri uM}}rj (j Kj X5print re.sub('【[^】]+】'.decode('utf-8'), '', s3)rk j M}j j j h C
 1 rl rm Rrn uM~}ro (j Kj XCs4 = "[IN播报]11:53左右,凤城八路东段和渭滨路十字"rp j M~j j j h C
 28rq rr Rrs uM}rt (j Kj X/print re.sub('[[^]]+]'.decode('utf-8'), '', s3)ru j Mj j j h C
 3x\rv rw Rrx uM}ry (j Kj X/print re.sub('[[^]]+]'.decode('utf-8'), '', s4)rz j Mj j j h C
 3 r{ r| Rr} uM}r~ (j Kj X2print re.sub('\[[^\]]+\]'.decode('utf-8'), '', s4)r j Mj j j h C
 3Ir r Rr uM}r (j Kj Xs5 = "对@李慧婷-小小说:江海区现在住建局长是唐建安,干部违法强征我村耕地,上月我们村民到江海区信访局见的是住建局副局,我们准备见唐建安局长为何如此法盲法癫违法强征我村民耕地?这么快被捉?前位住建局长被捉就知道,应同现邓市长无关,邓市长未来江门他几个已经被了。邓市长好不好时间能证明。"r j Mj j j h C
 ."rr r Rr uM}r (j Kj X%print print re.sub('@[^#]+$', '', s1)r j Mj j j h C
 .: <r r Rr uM}r (j Kj X%print print re.sub('@[^#]+$', '', s5)r j Mj j j h C
 / 0r r Rr uM}r (j Kj Xprint re.sub('@[^#]+$', '', s1)r j Mj j j h C
 /r r Rr uM}r (j Kj Xprint re.sub('@[^#]+$', '', s5)r j Mj j j h C
 /"bgr r Rr uM}r (j Kj Xs5r j Mj j j h C
 /&,
r r Rr uM}r (X __version__r KXcommandr X time.time()r X__id__r MX external_idr Xpythonr Xtsr h C
 r r Rr uM}r (j Kj X import timer j Mj j j h C
" Kr r Rr uM}r (j Kj X time.time()r j Mj j j h C
#=r r Rr uM}r (j Kj Xint (time.time())r j Mj j j h C
%Dr r Rr uM}r (X __version__r KXcommandr Xs = "姐姐 沒脾氣 啊 年 月 日 下午 在 山西省 长治市 襄垣 王桥镇 郭庄村 项目 处 因 项目部 晚上 偷 把 村里 奶奶 庙 推 了 村民 把 项目 部门 堵 了 要 个 说法 谁知 项目部 那些 狗日 的 竟然 雇佣 黑社会 人 开车 从 人群 硬过 把 一位 多 的 老人 轧死 就 这样 还 没停 加油 冲撞 人群 想 偷跑 被 村民 围上来 控制 住 发生 这样".decode('utf-8')r X__id__r MX external_idr Xpythonr Xtsr h C
dr r Rr uM}r (j Kj jj Mj j j h C
jr r Rr uM}r (j Kj Xss = s.split()r j Mj j j h C
 
r r Rr uM}r (j Kj Xlen(ss)r j Mj j j h C

r r Rr uM}r (j Kj Xprint ssr j Mj j j h C

fr r Rr uM}r (X __version__r KXcommandr X/import whooshfrom whoosh import index, analysisr X__id__r MX external_idr Xpythonr Xtsr h C
%1 xr r Rr uM}r (j Kj X"from whoosh import index, analysisr j Mj j j h C
%3xr r Rr uM}r (j Kj Xana = analysis.NgramAnalyzer(2)r j Mj j j h C
& 1r r Rr uM}r (j Kj X=[token.text for token in ana("央视新闻").decode('utf-8')]r j Mj j j h C
& zr r Rr uM}r (j Kj X=[token.text for token in ana("央视新闻".decode('utf-8'))]r j Mj j j h C
&&r r Rr uM}r (j Kj XAs = [token.text for token in ana("央视新闻".decode('utf-8'))]r j Mj j j h C
&* tr r Rr uM}r (j Kj jj Mj j j h C
&, N\r r RruM}r(j Kj X for e in s:rj Mj j j h C
&/ rrRruM}r(j Kj X print erj Mj j j h C
&1 !rr Rr
uM}r (j Kj X-ana = analysis.NgramAnalyzer(2, maxsize = 10)r j Mj j j h C
'
[[r rRruM}r(j Kj XAs = [token.text for token in ana("央视新闻".decode('utf-8'))]rj Mj j j h C
' errRruM}r(j Kj jj Mj j j h C
'݌rrRruM}r(j Kj X for e in s:rj Mj j j h C
'rcrrRruM}r(j Kj X print erj Mj j j h C
'nr r!Rr"uM}r#(j Kj X
import csvr$j Mj j j h C
_r%r&Rr'uM}r((j Kj Xprint csv.QUOTE_ALLr)j Mj j j h C
 J r*r+Rr,uM}r-(j Kj X csv.QUOTE_ALLr.j Mj j j h C
Er/r0Rr1uM}r2(j Kj Xcsv.QUOTE_ALL.__class__r3j Mj j j h C
r4r5Rr6uM}r7(X __version__r8KXcommandr9Xs = "2013.6.19 431027 湖南 郴州 桂东 2013.6.19 湖南省 桂东县 unknown http://url.cn/GtCzz0 http://url.cn/GtCzz0 2".decode('utf-8')r:X__id__r;MX external_idr<Xpythonr=Xtsr>h C
1 Ĥr?r@RrAuM}rB(j8Kj9jj;Mj<j=j>h C
1
rCrDRrEuM}rF(j8Kj9Xsall = s.split("\t")rGj;Mj<j=j>h C
1 &rHrIRrJuM}rK(j8Kj9X len(sall)rLj;Mj<j=j>h C
1rMrNRrOuM}rP(j8Kj9Xs2 = "2013.6.19 431027 湖南 郴州 桂东 2013.6.19 湖南省 桂东县 unknown http://url.cn/GtCzz0?u=hopeagainstnope&t=260640015296191&msgfrom=1010&area=msgtext&clickfrom=3&clickscene=other 2".decode('utf-8')rQj;Mj<j=j>h C
1: &rRrSRrTuM}rU(j8Kj9Xsall2 = s2.split("\t")rVj;Mj<j=j>h C
2 %rWrXRrYuM}rZ(j8Kj9X
len(sall2)r[j;Mj<j=j>h C
2 8r\r]Rr^uM}r_(j8Kj9Xsall2r`j;Mj<j=j>h C
2 \rarbRrcuM}rd(j8Kj9Xsallrej;Mj<j=j>h C
2
rfrgRrhuM}ri(j8Kj9Xfor e in sall:rjj;Mj<j=j>h C
2# krkrlRrmuM}rn(j8Kj9X print eroj;Mj<j=j>h C
2%rprqRrruM}rs(j8Kj9Xfor e in sall2"rtj;Mj<j=j>h C
2)'rurvRrwuM}rx(j8Kj9Xfor e in sall2:ryj;Mj<j=j>h C
2/rzr{Rr|uM}r}(j8Kj9X print er~j;Mj<j=j>h C
21~$rrRruM}r(j8Kj9Xprint u'\u5b9d\u5c71\u533a'rj;Mj<j=j>h C
3' rrRruM}r(X __version__rKXcommandrXs = "2013.6.19 431027 湖南 郴州 桂东 2013.6.19 湖南省 桂东县 tencent_weibo gavin1978 Gavin http://t.qq.com/gavin1978 Gavin 水富的士,这是在干嘛?(提示:左前方是运政) 2".decode('utf-8')rX__id__rMX external_idrXpythonrXtsrh C
96rrRruM}r(jKjjjMjjjh C
97zrrRruM}r(jKjXsall = s.split("\t")rjMjjjh C
:q9rrRruM}r(jKjX len(sall)rjMjjjh C
: o rrRruM}r(jKjXsall[-1]rjMjjjh C
: _rrRruM}r(jKjXsall[-2]rjMjjjh C
:rrRruM}r(jKjXfor e in sall:rjMjjjh C
:rrRruM}r(jKjX print erjMjjjh C
: $rrRruM}r(jKjXms = "2015.7.11 130638 河北 保定市 雄县 雄县,雄州镇,古庄头村,农民,强征 农民,强征 2015.7.11 河北 保定市 雄县 雄州镇 古庄头村 weibo_user 3196173747 http://weibo.com/u/3196173747?from=feed&loc=nickname 死神ljx 保定市温泉城白洋淀村民为耕地讨说法!相关部分出动警力维持秩序…… 60825".decode('utf-8')rjMjjjh C
" rrRruM}r(jKjXsall = s.split("\t")rjMjjjh C
' rrRruM}r(jKjX len(sall)rjMjjjh C
*%rrRruM}r(jKjXfor e in sall:rjMjjjh C
4: rrRruM}r(jKjX print erjMjjjh C
6ιrrRruM}r(jKjXfor i, e in enumerate(sall):rjMjjjh C
 trrRruM}r(jKjX print i, erjMjjjh C
#rrRruM}r(jKjXs = "2013.6.19 431027 湖南 郴州 桂东 2013.6.19 湖南省 桂东县 tencent_weibo gavin1978 Gavin http://t.qq.com/gavin1978 水富的士,这是在干嘛?(提示:左前方是运政) 2".decode('utf-8')rjMjjjh C
 grrRruM}r(jKjXsall = s.split("\t")rjMjjjh C
rrRruM}r(jKjX len(sall)rjMjjjh C
 rrRruM}r(jKjXfor i, e in enumerate(sall):rjMjjjh C
֫rrRruM}r(jKjX
print i,erjMjjjh C
O(rrRruM}r(jKjX s = [1,2,3]rjMjjjh C
:WrrRruM}r(jKjXtuple(s)rjMjjjh C
:ZrrRruM}r(X __version__rKXcommandrXprint u'\u897f\u5b89\u533a'rX__id__rMX external_idrXpythonrXtsrh C
 !0rrRruM}r(X __version__rKXcommandrXs = "abcdefgh"rX__id__r MX external_idr
Xpythonr Xtsr h C
#,ԝr rRruM}r(jKjXs[2:7]rj Mj
j j h C
#.rrRruM}r(jKjXs[2:6]rj Mj
j j h C
#1 $rrRruM}r(jKjXs[4:6]rj Mj
j j h C
$ %rrRruM}r(X __version__r KXcommandr!Xs = "随心而行天涯如风,镜头关注历史变革中小人物的命运。沈阳铁西拆迁,烟消云散,下岗工人,各奔东西。妻子改嫁大款,那位看上去有些冷、坏的父亲为了留住为女儿,召集昔日厂子里的兄弟们用破钢烂铁亲手打造钢琴。王千源的表常规不露痕迹,而24首经典名曲,送战友、山楂树,斗牛士舞曲,穿插在片中,怀旧、伤感、幽默。​,2012-1-1 22:52,http://weibo.com/u/2443227173?refer_flag=1001030103_,0,0,0,,镜头 关注 历史 变革 中 小人物 的 命运 沈阳 铁西 拆迁 烟消云散 下岗工人 各奔东西 妻子 改嫁 大款 那位 看上去 有些 冷 坏 的 父亲 为了 留住 为 女儿 召集 昔日 厂子 里 的 兄弟 们 用 破 钢烂 铁 亲手 打造 钢琴 王千源 的 表 常规 不露痕迹 而 首 经典名曲 送 战友 山楂树 斗牛士 舞曲 穿插在 片中 怀旧 伤感 幽默"r"X__id__r#MX external_idr$Xpythonr%Xtsr&h C
 %r'r(Rr)uM}r*(j Kj!Xs = "随心而行天涯如风,镜头关注历史变革中小人物的命运。沈阳铁西拆迁,烟消云散,下岗工人,各奔东西。妻子改嫁大款,那位看上去有些冷、坏的父亲为了留住为女儿,召集昔日厂子里的兄弟们用破钢烂铁亲手打造钢琴。王千源的表常规不露痕迹,而24首经典名曲,送战友、山楂树,斗牛士舞曲,穿插在片中,怀旧、伤感、幽默。​,2012-1-1 22:52,http://weibo.com/u/2443227173?refer_flag=1001030103_,0,0,0,,镜头 关注 历史 变革 中 小人物 的 命运 沈阳 铁西 拆迁 烟消云散 下岗工人 各奔东西 妻子 改嫁 大款 那位 看上去 有些 冷 坏 的 父亲 为了 留住 为 女儿 召集 昔日 厂子 里 的 兄弟 们 用 破 钢烂 铁 亲手 打造 钢琴 王千源 的 表 常规 不露痕迹 而 首 经典名曲 送 战友 山楂树 斗牛士 舞曲 穿插在 片中 怀旧 伤感 幽默".decode('utf-8')r+j#Mj$j%j&h C
 +8r,r-Rr.uM}r/(j Kj!Xlen(s)r0j#Mj$j%j&h C
 , ar1r2Rr3uM}r4(j Kj!Xsall = s.split("\t")r5j#Mj$j%j&h C
  @r6r7Rr8uM}r9(j Kj!X len(sall)r:j#Mj$j%j&h C
 
tDr;r<Rr=uM}r>(j Kj!X101 %% 1r?j#Mj$j%j&h C
!Tqr@rARrBuM}rC(j Kj!X101 % 1rDj#Mj$j%j&h C
"?rErFRrGuM}rH(j Kj!X 101 % 100rIj#Mj$j%j&h C
%ǍrJrKRrLuM}rM(X __version__rNKXcommandrOXs = "sdfsdfsdfsdf"rPX__id__rQMX external_idrRXpythonrSXtsrTh C
7- )rUrVRrWuM}rX(jNKjOXs[:3]rYjQMjRjSjTh C
70rZr[Rr\uM}r](jNKjOXimport pandas as pdr^jQMjRjSjTh C

jIr_r`RrauM}rb(jNKjOXpd.nanrcjQMjRjSjTh C
 rdreRrfuM}rg(jNKjOXpd.nullrhjQMjRjSjTh C
 ȾrirjRrkuM}rl(jNKjOXnanrmjQMjRjSjTh C
 rnroRrpuM}rq(jNKjOXpd.nanrrjQMjRjSjTh C
rsrtRruuM}rv(jNKjOXpd.NaNrwjQMjRjSjTh C
#rxryRrzuM}r{(jNKjOXNaNr|jQMjRjSjTh C

0r}r~RruM}r(jNKjOX numpy.nanrjQMjRjSjTh C
a9rrRruM}r(X __version__rKXcommandrX'print u'\u5c0f\u86cb\u86cb\u8fbe\u4eba'rX__id__rMX external_idrXpythonrXtsrh C
7rrRruM}r(jKjXQprint u'\u516d\u5b89\u5e02\u57ce\u5e02\u7efc\u5408\u7ba1\u7406\u5c40\u53d1\u5e03'rjMjjjh C
 rrRruM}r(jKjXprint u'\u5f20xiao\u6708\u554a'rjMjjjh C
&xqrrRruM}r(X __version__rKXcommandrXs = (u'4069154220915295', u'2540421837', u'\u5f53\u4e00\u4e2a\u4eba\u4e0d\u559c\u6b22\u505a\u67d0\u4ef6\u4e8b\uff0c\u5c31\u7b97\u4ed6\u624d\u534e\u6a2a\u6ea2\uff0c\u4e5f\u65e0\u6cd5\u53d1\u6325\uff1b\u5f53\u4e00\u4e2a\u4eba\u559c\u6b22\u4e0a\u4e86\u67d0\u4ef6\u4e8b\uff0c\u4ed6\u53d1\u6325\u51fa\u6765\u7684\u80fd\u529b\u4f1a\u8ba9\u4f60\u5927\u5403\u4e00\u60ca\u3002\u6240\u4ee5\uff0c\u4e00\u4e2a\u4eba\u6ca1\u6709\u6210\u7ee9\uff0c\u4e0d\u4e00\u5b9a\u662f\u4ed6\u6ca1\u6709\u80fd\u529b\uff0c\u5f88\u53ef\u80fd\u662f\u56e0\u4e3a\u4e0d\u559c\u6b22\u3002 http://t.cn/R2Wxa2R \u200b', u'41.4466', u'115.07537', u'41.4', u'115.1', u'[]', u'0', u'0', u'0', u'Sun Jan 29 07:17:10 +0800 2017', u'2017-01-28 18:55:06.246434', u'2.00TTI8cGJPkQCDa783f055c3Lf5e8E')rX__id__rMX external_idrXpythonrXtsrh C
*;#rrRruM}r(jKjX for i in s:rjMjjjh C
+pfrrRruM}r(jKjX print irjMjjjh C
+>rrRruM}r(X __version__rKXcommandrXs= '中央打虎拍蝇己有多时,大中小老虎打掉不少,困扰百姓的老鼠苍蝇在不少地区仍猖狂。明处看有收敛,暗地里勾结当地贪官劣绅大肆挖公有制墙脚。仅从郑州大学副属医院被强拆,就可看出为了"利益"不顾人民生命安全,置法律于不顾。试想公有医院遭强拆尚不得保,私有民房又当如何?人大须立法制止无理强拆。​'rX__id__rMX external_idrXpythonrXtsrh C
 rrRruM}r(jKjXs.replace('"','')rjMjjjh C
brrRruM}r(jKjXprint s.replace('"','')rjMjjjh C
"zrrRruM}r(jKjXs1 = s.decode('utf-8')rjMjjjh C
2ZrrRruM}r(jKjXprint s1.replace('"','')rjMjjjh C
7JrrRruM}r(X __version__rKXcommandrX import timerX__id__rMX external_idrXpythonrXtsrh C
rrRruM}r(jKjXJtime.strptime("Sun Jan 29 07:17:10 +0800 2017", "%a %b %d %H:%M:%S %z %Y")rjMjjjh C
1rrRruM}r(jKjXfrom dateutil.parser import *rjMjjjh C
2rrRruM}r(jKjX'parse("Sun Jan 29 07:17:10 +0800 2017")rjMjjjh C
 hrrRruM}r(jKjXOs1 = time.strptime("Sun Jan 29 07:17:10 +0800 2017", "%a %b %d %H:%M:%S %z %Y")rjMjjjh C
 %;rrRruM}r(jKjX,s1 = parse("Sun Jan 29 07:17:10 +0800 2017")rjMjjjh C
 ,rrRruM}r(jKjX-s2 = bgt = parse("Jan 1 00:00:00 +0800 2017")rjMjjjh C
 0)PrrRruM}r(jKjXs1> s2rjMjjjh C
 5 rrRruM}r(jKjXs1rjMjjjh C
+3 rrRruM}r(jKjX
s1 != NonerjMjjjh C
+5zrrRruM}r(jKjX e = (1,2,3)rjMjjjh C

dprr Rr
uM}r (jKjXe[2]r jMjjjh C
 r rRruM}r(jKjXe[2]=3rjMjjjh C
KrrRruM}r(jKjX e = list(e)rjMjjjh C
rrRruM}r(jKjXerjMjjjh C
 rrRruM}r(jKjXe[2]=3r jMjjjh C
r!r"Rr#uM}r$(X __version__r%KXcommandr&XZs = [u'006bxEQxly1fbebuw1lukj30zy0qok0w', u'006bxEQxly1fbebuwszkoj30zy0qoaf5', u'006bxEQxly1fbebuxsof4j30zy0qok2h']
[u'afb49033ly1fbe50yf74bj20qo0f0gom', u'afb49033ly1fbe50yo5btj20m80go3zp', u'afb49033ly1fbe50z2by5j21be0qojyo', u'afb49033ly1fbe50zkp65j21be0qojyt', u'afb49033ly1fbe510131xj21be0qotg5', u'afb49033ly1fbe510eiwjj21be0qo0z0', u'afb49033ly1fbe510qwcbj21be0qo7a3', u'afb49033ly1fbe5115qkoj21be0qotfh', u'afb49033ly1fbe511iaukj21be0qogqq']
[u'afb49033ly1fbe50yf74bj20qo0f0gom', u'afb49033ly1fbe50yo5btj20m80go3zp', u'afb49033ly1fbe50z2by5j21be0qojyo', u'afb49033ly1fbe50zkp65j21be0qojyt', u'afb49033ly1fbe510131xj21be0qotg5', u'afb49033ly1fbe510eiwjj21be0qo0z0', u'afb49033ly1fbe510qwcbj21be0qo7a3', u'afb49033ly1fbe5115qkoj21be0qotfh', u'afb49033ly1fbe511iaukj21be0qogqq']
[u'005zM5RTgw1fbeeccn6ohj31be0qoqa8', u'005zM5RTgw1fbeecdco17j31210qogpg']r'X__id__r(MX external_idr)Xpythonr*Xtsr+h C
2fr,r-Rr.uM}r/(j%Kj&jj(Mj)j*j+h C
2ȝr0r1Rr2uM}r3(j%Kj&XZimgl = ["http://ww4.sinaimg.cn/mw690/" + x + ".png" for x in d_loc_ind.iloc[ii]['image']]r4j(Mj)j*j+h C
2r5r6Rr7uM}r8(j%Kj&X@imgl = ["http://ww4.sinaimg.cn/mw690/" + x + ".png" for x in s]r9j(Mj)j*j+h C
2 tr:r;Rr<uM}r=(j%Kj&Ximglr>j(Mj)j*j+h C
2.r?r@RrAuM}rB(X __version__rCKXcommandrDX/s = c1_label = [1.0] * len(RA_protest_decision)rEX__id__rFMX external_idrGXpythonrHXtsrIh C
#grJrKRrLuM}rM(jCKjDX
[1.0] * 10rNjFMjGjHjIh C
#
rOrPRrQuM}rR(X __version__rSKXcommandrTXHs = "2013.7.7 330382 浙江省 温州市 乐清市 乐清市,温州柳市德力西有限公司 2013.7.7 浙江省 温州市 乐清市 温州柳市德力西有限公司 weibo_selfuser zERCJjTCx http://weibo.com/2934097780/zERCJjTCx 2013.7.7,安徽阜阳@___凹凸man(医疗纠纷,家属堵路)如果是医疗事故就和医院协商赔偿,堵门堵路扰乱社会秩序是不是算违法?除了闹中国人还有其他方式么?这是法制社会不是一哭二闹三上吊的旧社会了!!!!王东王东你爱谁 195 安徽 阜阳 凹凸 医疗纠纷 家属 堵路 如果 是 医疗事故 就 和 医院 协商 赔偿 堵门 堵路 扰乱 社会秩序 是不是 算 违法 除了 闹 中国 人 还有 其他 方式 么 这是 法制 社会 不是 一哭 二闹 三 上吊 的 旧社会 了 王东 王东 你 爱 谁"rUX__id__rVMX external_idrWXpythonrXXtsrYh C
3rZr[Rr\uM}r](jSKjTXlen(s.split("\t"))r^jVMjWjXjYh C
3
5r_r`RrauM}rb(jSKjTXHs2 = "2013.7.7 330382 浙江省 温州市 乐清市 乐清市,温州柳市德力西有限公司 2013.7.7 浙江省 温州市 乐清市 温州柳市德力西有限公司 weibo_selfuser zEPTsm04W http://weibo.com/270341022/zEPTsm04W 2013.7.7,安徽阜阳@___凹凸man(医疗纠纷,家属堵路)如果是医疗事故就和医院协商赔偿,堵门堵路扰乱社会秩序是不是算违法?除了闹中国人还有其他方式么?这是法制社会不是一哭二闹三上吊的旧社会了!!!!王东王东你爱谁 195 安徽 阜阳 凹凸 医疗纠纷 家属 堵路 如果 是 医疗事故 就 和 医院 协商 赔偿 堵门 堵路 扰乱 社会秩序 是不是 算 违法 除了 闹 中国 人 还有 其他 方式 么 这是 法制 社会 不是 一哭 二闹 三 上吊 的 旧社会 了 王东 王东 你 爱 谁"rcjVMjWjXjYh C
3!rdreRrfuM}rg(jSKjTXlen(s.split("\t"))rhjVMjWjXjYh C
3rrirjRrkuM}rl(jSKjTX+s = "2013.7.7 330382 浙江省 温州市 乐清市 乐清市,温州柳市德力西有限公司 2013.7.7 浙江省 温州市 乐清市 温州柳市德力西有限公司 weibo_selfuser zERpqjeie http://weibo.com/2196170385/zERpqjeie 如果协商能解决问题他们会闹医院吗?正是现在所谓的“医闹政策”才导致无医德的医生成为漏网之鱼 正因为这样,下层百姓的正义才不会得到伸张!!http://wickedonna.tumblr.com/post/54904592999/2013-7-7-man2013.7.7,黑龙江佳木斯@易文斋中山路161号门前,有残疾人机动三轮车闹事,堵塞联通http://wickedonna.tumblr.com/post/54904707685/2013-7-7-1612013.7.7 广东省,茂名市,茂南区,光华中路@LYX李昱熙(司机示威抗议)茂名市政府门口有大事发生!收割机的人闹事吧 @系建华仔_围攻市政府,农民工起义,捞佬跟武警打喔@-朱妞露又在政府示威,公安砸农民收割车@义工回眸一笑是什么原因让他们千里迢迢来到这里示威抗议?http://wickedonna.tumblr.com/post/54904895206/2013-7-7-lyx2013.7.7,山东省,济南市,历下区,解放路@Non潮儿济南华强国际中心楼盘虚假宣传,引起群众暴动啦@宫叶满阶红不扫下午朋友经过济南华强国际广场,拍下了这一幕,消费者穿白衣和平抗议华强地产的欺诈行为,随即被出动的特警镇压,他们是有多心虚,只不过几个手里拿着牌牌的老百姓。维稳费今年又创历史新高了吧。http://wickedonna.tumblr.com/post/54904969751/2013-7-7-non2013.7.7 江西省赣州市大余县黄龙镇长胜村@张天华Andy 江西省赣州市大余县黄龙镇长胜村暴力强征。在未经田主同意,村书记指挥挖掘机强行挖掘,田主上前找村书记理论,被其所雇黑社会人员围攻,并被黑社会人员驾驶皮卡车故意撞伤,这是所谓的“人民公仆”对农民生生世世赖以生存的良田践踏,今日家人被镇政府雇佣的黑社会暴力打伤住院,家人多次报警无果!http://wickedonna.tumblr.com/post/54905413151/2013-7-7-andy2013.7.7,湖北武汉@WH刘云保利五月花停水停电,引起群众不满,业主们上街堵路,导致华泰路段交通拥堵@欧欧欧兜麦保利海上五月花三天两头停电,业主找物业开发商理论,哪知开发商叫来警察抓走业主,还有一群持枪带棒的所谓防暴员守在售楼部门口企图再暴力对付业主,天啊,这就是我们信任的保利?http://wickedonna.tumblr.com/post/54905628179/2013-7-7-wh2013.7.7 广东省,江门市,开平市,龙中大道@Co-Trista(大量群众)又有什么闹事的,好奇好奇http://wickedonna.tumblr.com/post/54906039783/2013-7-7-co-trista2013.7.7,四川达州有梦就努力吧 现在的人惹不起,动辄就堵路。。。http://wickedonna.tumblr.com/post/54908267940/2013-7-72013.7.7 四川省,自贡市,自流井区,305省道@劫数余生太牛批啊,我嗯这几栋停电还不来全部下去把马路拦啊。全部把板凳整得马路中间坐起@李小冷很傻大家帮忙转发吧。小区停电!四川自贡新加坡花园小区居民起义!35度高温早上6点开始停电,到晚上10点都没有来电!!@一切归玲1021电业局你们惹的事,全南湖的住户都出来扎马路@佛语禅心随缘(堵路)自贡市政府你们搞毛啊,你的子民们搞暴动了,巿长大人你在家吹空调呢?政府确实让大中华子民失望!http://wickedonna.tumblr.com/post/54912648349/2013-7-7-3052013.7.7 广东省汕尾市陆河县新田镇@阿南有话说广东陆河政府联合村官强占出售陆河县新田镇屯寨管区五队片7连队村民山地,昨天出动防暴部队镇压百姓抓走十余名村民,强抢手机删除暴力图片并打伤村民,现已生命垂危!有关部门现已封锁当地网络,情况正进一步恶化!暴力执法的视频和图片已被现场强制删除,示威视频:http://t.cn/zQZttve 把此事传出去@东生3523842610还我山权,还我民权,我们村民去广东省陆河县政府讨说法,这事到今天上午止,政府来黑手乱抓人,怕我们闹大被双规。我们又没犯罪,请中央政府救救我们吧!天吖还我们的山权,当今贪官污吏太多了,让我们农民怎么活吖?希望有相关国家机关来还我们一个公道吖!冤枉冤枉吖,贪官污吏要严惩不贷吖还我山权,还我民权,我们村民去广东省陆河县政府讨说法,当官的就把县上的网络全屏蔽了,微博什么的都上传不了,是政府心里有鬼才怕人上传网络,想要封锁消息,怕外界人知道这事。看到的网友们请转载一下,帮帮我们农民吧。我们是广东陆河县新田镇屯寨五队,原七连队村民,村里的山地未得到村民们的签字就让村委和镇、县政府非法倒卖了。今年7月1日村里组织村民去县政府讨说法,去到县政府大门示威,县上的网络全屏蔽了,想要封锁消息,一直县政府也没有给出我们一个说法。希望相关部门市、省领导对此重视,还农民一个公道。http://wickedonna.tumblr.com/post/54914170112/2013-7-7-35238426102013.7.7 陕西省,西安市,雁塔区,南窑头@古川君的纤长指高新区:听附近居民说是因为拆迁的问题,警民发生冲突。其中有位情绪较为激动的居民打了警察脸一拳,该警察未还手,其同事抬脚反击(没看清踢到没),但最后两人还是快速远离暴怒的居民,加入后续赶来的警方增援队伍。偶尔听到民众叫骂,间或“警察打人了”。现在对峙依然继续……@_Cathy_Wang在什么情况下特警需要出动!你们是保卫人民还是个人@天天包装西安市高新区南窑头拆迁要来硬的了,党的好公务员们来抓群众呢!t团t 195 如果 协商 能 解决问题 他们 会闹 医院 吗 正是 现在 所谓 的 医闹 政策 才 导致 无 医德 的 医生 成为 漏网之鱼 正 因为 这样 下层 百姓 的 正义 才 不会 得到 伸张 黑龙江 佳木斯 易文斋 中山路 号 门前 有 残疾人 机动 三轮车 闹事 堵塞 联通 广东省 茂名市 茂南区 光华 中路 李昱熙 司机 示威抗议 茂名市 政府 门口 有 大事 发生 收割机 的 人 闹事 吧 系 建华 仔 围攻 市政府 农民工 起义 捞 佬 跟 武警 打 喔 朱妞露 又 在 政府 示威 公安 砸 农民 收割 车 义工 回眸一笑 是 什么 原因 让 他们 千里迢迢 来到 这里 示威抗议 山东省 济南市 历下区 解放路 潮儿 济南 华强 国际 中心 楼盘 虚假 宣传 引起 群众 暴动 啦 宫叶 满阶红 不 扫 下午 朋友 经过 济南 华强 国际 广场 拍下 了 这 一幕 消费者 穿 白衣 和平 抗议 华强 地产 的 欺诈 行为 随即 被 出动 的 特警 镇压 他们 是 有 多 心虚 只不过 几个 手里 拿 着 牌牌 的 老百姓 维稳费 今年 又 创 历史 新高 了 吧 江西省 赣州市 大余县 黄龙 镇长 胜村 张 天华 江西省 赣州市 大余县 黄龙 镇长 胜村 暴力 强征 在 未经 田主 同意 村 书记 指挥 挖掘机 强行 挖掘 田主 上前 找村 书记 理论 被 其 所 雇 黑社会 人员 围攻 并 被 黑社会 人员 驾驶 皮卡车 故意 撞伤 这是 所谓 的 人民公仆 对 农民 生生世世 赖以生存 的 良田 践踏 今日 家人 被 镇政府 雇佣 的 黑社会 暴力 打伤 住院 家人 多次 报警 无果 湖北 武汉 刘云 保利 五月花 停水 停电 引起 群众 不满 业主 们 上街 堵路 导致 华泰 路段 交通拥堵 欧欧 欧兜麦 保利 海上 五月花 三天两头 停电 业主 找 物业 开发商 理论 哪 知 开发商 叫 来 警察 抓走 业主 还有 一群 持枪 带棒 的 所谓 防暴 员守 在 售楼部 门口 企图 再 暴力 对付 业主 天 啊 这 就是 我们 信任 的 保利 广东省 江门市 开平市 龙中 大道 大量 群众 又 有 什么 闹事 的 好奇 好奇 四川 达州 有 梦 就 努力 吧 现在 的 人 惹不起 动辄 就 堵路 四川省 自贡市 自流井区 省 道 劫数 余生 太牛批 啊 我 嗯 这 几栋 停电 还 不来 全部 下去 把 马路 拦 啊 全部 把 板凳 整 得 马路 中间 坐 起 李小冷 很傻 大家 帮忙 转发 吧 小区 停电 四川 自贡 新加坡 花园 小区 居民 起义 度 高温 早上 点 开始 停电 到 晚上 点 都 没有 来电 一切 归玲 电业局 你们 惹 的 事 全 南湖 的 住户 都 出来 扎 马路 佛语 禅心 随缘 堵路 自贡市 政府 你们 搞 毛 啊 你 的 子民 们 搞 暴动 了 巿 长大 人 你 在家 吹 空调 呢 政府 确实 让 大中华 子民 失望 广东省 汕尾市 陆河县 新田 镇 阿南 有话 说 广东 陆河 政府 联合 村官 强占 出售 陆河县 新田 镇 屯寨 管区 五队 片 连队 村民 山地 昨天 出动 防暴 部队 镇压 百姓 抓走 十余名 村民 强抢 手机 删除 暴力 图片 并 打伤 村民 现已 生命垂危 有关 部门 现已 封锁 当地 网络 情况 正 进一步 恶化 暴力 执法 的 视频 和 图片 已 被 现场 强制 删除 示威 视频 把 此事 传出去 东生 还 我 山权 还 我 民权 我们 村民 去 广东省 陆河县 政府 讨说法 这事 到 今天上午 止 政府 来 黑手 乱 抓 人 怕 我们 闹大 被 双规 我们 又 没 犯罪 请 中央政府 救救 我们 吧 天 吖 还 我们 的 山权 当今 贪官污吏 太多 了 让 我们 农民 怎么 活 吖 希望 有 相关 国家机关 来 还 我们 一个 公道 吖 冤枉 冤枉 吖 贪官污吏 要 严惩不贷 吖 还 我 山权 还 我 民权 我们 村民 去 广东省 陆河县 政府 讨说法 当官 的 就 把 县上 的 网络 全 屏蔽 了 微博 什么 的 都 上传 不了 是 政府 心里 有 鬼才 怕人 上传 网络 想要 封锁消息 怕 外界 人 知道 这 事 看到 的 网友 们 请 转载 一下 帮帮 我们 农民 吧 我们 是 广东 陆河县 新田 镇 屯寨 五队 原七 连队 村民 村里 的 山地 未 得到 村民 们 的 签字 就让 村委 和 镇 县政府 非法 倒卖 了 今年 月 日 村里 组织 村民 去 县政府 讨说法 去 到 县政府 大门 示威 县上 的 网络 全 屏蔽 了 想要 封锁消息 一直 县政府 也 没有 给出 我们 一个 说法 希望 相关 部门 市 省 领导 对此 重视 还 农民 一个 公道 陕西省 西安市 雁塔区 南 窑头 古川 君 的 纤长 指 高新区 听 附近 居民 说 是因为 拆迁 的 问题 警民 发生冲突 其中 有位 情绪 较为 激动 的 居民 打 了 警察 脸 一拳 该 警察 未 还手 其 同事 抬脚 反击 没 看清 踢 到 没 但 最后 两人 还是 快速 远离 暴怒 的 居民 加入 后续 赶来 的 警方 增援 队伍 偶尔 听到 民众 叫骂 间或 警察 打人 了 现在 对峙 依然 继续 在 什么 情况 下 特警 需要 出动 你们 是 保卫 人民 还是 个人 天天 包装 西安市 高新区 南 窑头 拆迁 要来 硬 的 了 党 的 好 公务员 们 来 抓 群众 呢 团"rmjVMjWjXjYh C
3
]TrnroRrpuM}rq(jSKjTXlen(s.split("\t"))rrjVMjWjXjYh C
9}rsrtRruuM}rv(jSKjTXs = "2016.6.13 130100 河北 石家庄市 石家庄市 环城水系,未知,未知 未知,未知 2016.6.13 河北 石家庄市 环城水系 weibo_user 1918695234 http://weibo.com/u/1918695234?from=feed&loc=nickname 这么大热天的,合适吗?我们这么辛苦,政府倒是给个说法啊! 100227 这么 大热天 的 合适 吗 我们 这么 辛苦 政府 倒 是 给 个 说法 啊"rwjVMjWjXjYh C
RrxryRrzuM}r{(jSKjTXlen(s.split("\t"))r|jVMjWjXjYh C
%
&r}r~RruM }r(X __version__rKXcommandrX s = [1,2]rX__id__rM X external_idrXpythonrXtsrh C
+: VrrRruM
}r(jKjX b = [3,4]rjM
jjjh C
,wrrRruM }r(jKjXs+brjM jjjh C
,rrRruM }r(X __version__rKXcommandrXimport subprocessrX__id__rM X external_idrXpythonrXtsrh C

 3rrRruM }r(jKjX@applescript = """
display dialog "Some message goes here..."
"""rjM jjjh C

 3#rrRruM}r(jKjX applescriptrjMjjjh C

 3$ rrRruM}r(jKjX:applescript = "display dialog 'Some message goes here...'"rjMjjjh C

 4
rrRruM}r(jKjX applescriptrjMjjjh C

 4*rrRruM}r(jKjXDsubprocess.call("osascript -e '{}'".format(applescript), shell=True)rjMjjjh C

 4 ,hrrRruM}r(jKjX@applescript = """
display dialog "Some message goes here..."
"""rjMjjjh C

 4rrRruM}r(jKjXDsubprocess.call("osascript -e '{}'".format(applescript), shell=True)rjMjjjh C

 4" \rrRruM}r(X __version__rKXcommandrX import randomrX__id__rMX external_idrXpythonrXtsrh C

' VrrRruM}r(jKjX'random.randint(interval-25,interval-15)rjMjjjh C

(
7rrRruM}r(jKjXrandom.randint(5,15)rjMjjjh C

1vrrRruM}r(X __version__rKXcommandrX import osrX__id__rMX external_idrXpythonrXtsrh C

% rrRruM}r(jKjXFfn = "Oliver and Myers -2002 -The Coevolution Of Social Movements.pdf"rjMjjjh C

% rrRruM}r(jKjXNOUT= os.system ('find "/Users/han/Dropbox/Zotero/storage/" -name ' + filename)rjMjjjh C

%oHrrRruM}r(jKjXGOUT= os.system ('find "/Users/han/Dropbox/Zotero/storage/" -name ' + fnrjMjjjh C

% \qrrRruM}r(jKjX)rjMjjjh C

%" ԍrrRruM}r(jKjXLfilename = "Oliver and Myers -2002 -The Coevolution Of Social Movements.pdf"rjMjjjh C

%6 rrRruM}r(jKjXNOUT= os.system ('find "/Users/han/Dropbox/Zotero/storage/" -name ' + filename)rjMjjjh C

%9
rrRruM}r(jKjXBss = 'find "/Users/han/Dropbox/Zotero/storage/" -name ' + filenamerjMjjjh C

&rrRruM}r(jKjXssrjMjjjh C

& rr Rr
uM }r (jKjXUOUT= os.system ('find "/Users/han/Dropbox/Zotero/storage/" -name "' + filename + '"')r jM jjjh C

',
r rRruM!}r(jKjXOUTrjM!jjjh C

( rrRruM"}r(jKjXimport subprocessrjM"jjjh C

5
7rrRruM#}r(jKjXPsearchStr = 'find "/Users/han/Dropbox/Zotero/storage/" -name "' + filename + '"'rjM#jjjh C

5zrrRruM$}r(jKjX*x = subprocess.check_output(['searchStr'])r jM$jjjh C

5 7r!r"Rr#uM%}r$(jKjX&x = subprocess.check_output(searchStr)r%jM%jjjh C

7Hr&r'Rr(uM&}r)(jKjX:proc = subprocess.Popen(searchStr, stdout=subprocess.PIPE)r*jM&jjjh C

:0 r+r,Rr-uM'}r.(jKjX6proc = subprocess.Popen("last" stdout=subprocess.PIPE)r/jM'jjjh C

:; r0r1Rr2uM(}r3(jKjX4proc = subprocess.Popen("ls" stdout=subprocess.PIPE)r4jM(jjjh C

;r5r6Rr7uM)}r8(jKjX4proc = subprocess.Popen("ls",stdout=subprocess.PIPE)r9jM)jjjh C

; ]r:r;Rr<uM*}r=(jKjXtmp = proc.stdout.read()r>jM*jjjh C

;wr?r@RrAuM+}rB(jKjXtmprCjM+jjjh C

; nrDrERrFuM,}rG(jKjX4x = subprocess.check_output(searchStr, shell = True)rHjM,jjjh C

rIrJRrKuM-}rL(jKjhjM-jjjh C

 *rMrNRrOuM.}rP(jKjX4x = subprocess.check_output(searchStr, shell = True)rQjM.jjjh C

FrRrSRrTuM/}rU(jKjhjM/jjjh C

 rVrWRrXuM0}rY(X __version__rZKXcommandr[Xa = []r\X__id__r]M0X external_idr^Xpythonr_Xtsr`h C
 prarbRrcuM1}rd(jZKj[X b = [1,2,3]rej]M1j^j_j`h C
 ";rfrgRrhuM2}ri(jZKj[Xa + brjj]M2j^j_j`h C
 #ŝrkrlRrmuM3}rn(X __version__roKXcommandrpX import timerqX__id__rrM3X external_idrsXpythonrtXtsruh C
 ' UrvrwRrxuM4}ry(joKjpX time.sleep(5)rzjrM4jsjtjuh C
 'r{r|Rr}uM5}r~(X __version__rKXcommandrX# -*- coding: utf-8 -*-
from selenium import webdriver
import os
driver = '/Users/han/Dropbox/Codes/webdriver/chromedriver'
os.environ["webdriver.chrome.driver"] = driver
driver = webdriver.Chrome(driver)
driver.get("weiboscope.jmsc.hku.hk")rX__id__rM5X external_idrXpythonrXtsrh C
 9rrRruM6}r(jKjXdriverrjM6jjjh C
 
`rrRruM7}r(jKjX+driver.get("http://weiboscope.jmsc.hku.hk")rjM7jjjh C
 :~rrRruM8}r(X __version__rKXcommandrX
int(0.556)rX__id__rM8X external_idrXpythonrXtsrh C
 #2 #rrRruM9}r(jKjX floor(55.6)rjM9jjjh C
 #8trrRruM:}r(jKjX int(55.6)rjM:jjjh C
 $jrrRruM;}r(X __version__rKXcommandrX10 %%2rX__id__rM;X external_idrXpythonrXtsrh C
) +rrRruM<}r(jKjX10 %2rjM<jjjh C
)rrRruM=}r(jKjX11 %2rjM=jjjh C
)[rrRruM>}r(X __version__rKXcommandrX10 %%3rX__id__rM>X external_idrXpythonrXtsrh C
;
rrRruM?}r(jKjX10 % 3rjM?jjjh C
XrrRruM@}r(jKjX1000%101rjM@jjjh C
 VrrRruMA}r(jKjX1000%100rjMAjjjh C
 9orrRruMB}r(jKjX import timerjMBjjjh C
$ .rrRruMC}r(jKjX time.sleep(1)rjMCjjjh C
' rrRruMD}r(X __version__rKXcommandrXs = "5023589819"rX__id__rMDX external_idrXpythonrXtsrh C

 rrRruME}r(jKjX"os.path.exists(basedir + str(uid))rjMEjjjh C

 rrRruMF}r(jKjX import osrjMFjjjh C

&rrRruMG}r(jKjX"os.path.exists(basedir + str(uid))rjMGjjjh C


rrRruMH}r(jKjXAbasedir = "../output/weibo_by_protesters_and_grievancers/tweets/"rjMHjjjh C

#rrRruMI}r(jKjX"os.path.exists(basedir + str(uid))rjMIjjjh C

%գrrRruMJ}r(jKjXuid = "5023589819"rjMJjjjh C

/rYrrRr uMK}r
(jKjX"os.path.exists(basedir + str(uid))r jMKjjjh C

0
KEr r RruML}r(X __version__rKXcommandrX import osrX__id__rMLX external_idrXpythonrXtsrh C

.rrRruMM}r(jKjXos.stat('/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/tweets/ls58210')rjMMjjjh C

1 rrRruMN}r(jKjXos.stat('/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/tweets/ls58210').st_sizer jMNjjjh C


qr!r"Rr#uMO}r$(jKjXos.stat('/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/tweets/5097934591').st_sizer%jMOjjjh C

Cr&r'Rr(uMP}r)(X __version__r*KXcommandr+X import osr,X__id__r-MPX external_idr.Xpythonr/Xtsr0h C

ijr1r2Rr3uMQ}r4(j*Kj+Xfos.stat('/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/model/output/ls58210_tweets.csv')r5j-MQj.j/j0h C

# r6r7Rr8uMR}r9(j*Kj+X import osr:j-MRj.j/j0h C

35ܚr;r<Rr=uMS}r>(X __version__r?KXcommandr@X import osrAX__id__rBMSX external_idrCXpythonrDXtsrEh C

4^rFrGRrHuMT}rI(j?Kj@Xos.stat('/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/tweets/ls58210').st_sizerJjBMTjCjDjEh C

4 [rKrLRrMuMU}rN(X __version__rOKXcommandrPX!print u'2018-7\u5c0f\u65f6\u524d'rQX__id__rRMUX external_idrSXpythonrTXtsrUh C
  $ rVrWRrXuMV}rY(X __version__rZKXcommandr[X weibo_json_url = "https://m.weibo.cn/api/container/getSecond?containerid=%s_-_FOLLOWERS&page=%d" % (containerID, pagenum)r\X__id__r]MVX external_idr^Xpythonr_Xtsr`h C
* rarbRrcuMW}rd(jZKj[Xyweibo_json_url = "https://m.weibo.cn/api/container/getSecond?containerid=%s_-_FOLLOWERS&page=%d" % (containerID, pagenum)rej]MWj^j_j`h C
*
rfrgRrhuMX}ri(jZKj[X containerID = "1076035838098396"rjj]MXj^j_j`h C
**zrkrlRrmuMY}rn(jZKj[Xsweibo_json_url = "https://m.weibo.cn/api/container/getSecond?containerid=%s_-_FOLLOWERS&page=%d" % (containerID, 1)roj]MYj^j_j`h C
*/.rprqRrruMZ}rs(jZKj[Xweibo_json_urlrtj]MZj^j_j`h C
*2
rurvRrwuM[}rx(X __version__ryKXcommandrzX import osr{X__id__r|M[X external_idr}Xpythonr~Xtsrh C
'rrRruM\}r(jyKjzXx = "/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/profiles/5896479903_firstpage.html"rj|M\j}j~jh C
)rrrRruM]}r(jyKjzXy = "/Users/han/Dropbox/Collaborations/Jen Pan/potential_protest/supporting/output/weibo_by_protesters_and_grievancers/tweets/5896479903"rj|M]j}j~jh C
7*rrRruM^}r(jyKjzXos.path.exists(x)rj|M^j}j~jh C
ٿrrRruM_}r(jyKjzXos.path.exists(y)rj|M_j}j~jh C
 rrRruM`}r(X __version__rKXcommandrX(x = [1798810944, 1734856085, 1762379312, 1724694325, 1724694325, 1369633971, 1369633971, 1653744734, 1653744734, 1760577973, 1760577973, 1765834220, 1745316041, 1858994880, 1880597502, 1880597502, 1076601955, 1076601955, 1649304101, 1649304101, 1868785152, 1868785152, 1428210683, 1428210683, 1725613780, 1725613780, 1253469244, 1253469244, 1799934707, 1748065917, 1748065917, 1893511965, 1077814344, 1077814344, 1837723125, 1837723125, 1290153010, 1290153010, 1686158174, 1686158174, 1762369932, 1742829701, 1742829701, 1957780014, 1957780014, 1647345487, 1647345487, 1846962030, 1939566804, 1939566804, 1235844713, 1235844713, 1749970875, 1749970875, 1932032860, 1932032860, 1204661307, 1204661307, 1705396685, 1705396685, 1807843040, 1807843040, 1837446461, 1837446461, 1222698652, 2160095020, 2160095020, 1160011280, 1160011280, 2258914075, 2258914075, 1748054685, 1748054685, 1218144250, 1218144250, 1001671411, 1001671411, 1621899382, 1621899382, 2565447912, 2565447912, 1944868691, 1944868691, 1878626740, 1878626740, 2259316007, 2259316007, 1734612364, 1734612364, 2711468981, 2711468981, 1720489653, 1720489653, 1644412373, 1644412373, 1772576483, 1772576483, 1733304830, 1733304830, 1882541530, 1882541530, 1455131001, 1455131001, 1735778800, 1735778800, 1861960825, 1861960825, 1852071957, 1852071957, 2077403841, 1662623180, 1662623180, 1772689980, 1772689980, 1678244921, 1735987845, 1735987845, 1765936885, 1765936885, 1782826125, 1782826125, 1860383420, 1860383420, 1870976272, 1876456661, 1876456661, 1916871142, 1965073185, 2197038727, 2362659470, 2362659470]rX__id__rM`X external_idrXpythonrXtsrh C
 -0 rrRruMa}r(jKjXy = [1277924040, 1277924040, 1252879037, 1252879037, 1059926177, 1059926177, 1226735864, 1072732953, 1072732953, 1110300251, 1110300251, 1102794977, 1069582262, 1069582262, 1008415610, 1008415610, 1163910815, 1163910815, 1210867881, 1210867881, 1131105554, 1131105554, 1106733742, 1106733742, 1074388117, 1074388117, 1228317164, 1228317164, 1048842945, 1048842945, 1063035210, 1069473354, 1074002922, 1076943482, 1205864125, 1220750422, 1221140553, 1235900375, 1239496983, 1239496983]rjMajjjh C
 -7 {rrRruMb}r(jKjXlen(x)rjMbjjjh C
 -9 rrRruMc}r(jKjXlen(y)rjMcjjjh C
 .NrrRruMd}r(jKjX
x = set(x)rjMdjjjh C
 . ՎrrRruMe}r(jKjXlen(x)rjMejjjh C
 .
+urrRruMf}r(jKjX
y = set(y)rjMfjjjh C
 .'rrRruMg}r(jKjXlen(y)rjMgjjjh C
 .( rrRruMh}r(jKjX
union(x,y)rjMhjjjh C
 .,rrRruMi}r(jKjX
len(x | y)rjMijjjh C
 /
rrRruMj}r(X __version__rKXcommandrXws = "/Users/han/Codes/Jen Pan/image_classification/testimage/tagged_images_resize/3bfb171bjw1essd1uyo6bj20bc0c9t9e.jpg"rX__id__rMjX external_idrXpythonrXtsrh C

3crrRruMk}r(jKjX s.split(";")rjMkjjjh C

*PrrRruMl}r(X __version__rKXcommandrXimport subprocessrX__id__rMlX external_idrXpythonrXtsrh C

2 rrRruMm}r(jKjXUsubprocess.call('jupyter-notebook --notebook-dir="/Users/han/Codes/Jen Pan/reports"')rjMmjjjh C

 DrrRruMn}r(jKjXcsubprocess.call('jupyter-notebook --notebook-dir="/Users/han/Codes/Jen Pan/reports"', shell = True)rjMnjjjh C

0rrRruMo}r(X __version__rKXcommandrX import osrX__id__rMoX external_idrXpythonrXtsrh C

-rrRruMp}r(jKjX'cd = "/Users/han/Codes/Jen Pan/reports"rjMpjjjh C

 rrRruMq}r(jKjX<os.system('jupyter-notebook --notebook-dir="{}"'.format(cd))rjMqjjjh C

 rrRruMr}r (X __version__r
KXcommandr Xwith open('/Users/han/Codes/Jen Pan/predictEvent/vocab/vocab_pos_grievance.dict') as json_file:
wordpos = json.load(json_file)r X__id__r MrX external_idrXpythonrXtsrh C

 ;hrrRruMs}r(j
Kj X import jsonrj Msjjjh C

 rrRruMt}r(j
Kj Xwith open('/Users/han/Codes/Jen Pan/predictEvent/vocab/vocab_pos_grievance.dict') as json_file:
wordpos = json.load(json_file)rj Mtjjjh C

*rrRruMu}r(j
Kj X len(wordpos)rj Mujjjh C

 br r!Rr"uMv}r#(X __version__r$KXcommandr%Ximport datetimer&X__id__r'MvX external_idr(Xpythonr)Xtsr*h C

 Br+r,Rr-uMw}r.(j$Kj%Xdatetime.datetime.now()r/j'Mwj(j)j*h C

 r0r1Rr2uMx}r3(j$Kj%Xstr(datetime.datetime.now())r4j'Mxj(j)j*h C

vr5r6Rr7uMy}r8(X __version__r9KXcommandr:Xs = "\xd0\xc3\xd6\xdd\xca\xd0"r;X__id__r<MyX external_idr=Xpythonr>Xtsr?h C
 &r@rARrBuMz}rC(j9Kj:jj<Mzj=j>j?h C
 &grDrERrFuM{}rG(j9Kj:Xprint srHj<M{j=j>j?h C
 &rIrJRrKuM|}rL(X __version__rMKX external_idrNXpythonrOX__id__rPM|XcommandrQX5l = [(u'\u897f\u5b89\u533a', [u'220403', u'231005'])]rRXtsrSh C
 "srTrURrVuM}}rW(jMKjNjOjPM}jQj jSh C
 "rXrYRrZuM~}r[(jMKjNjOjPM~jQhjSh C
 " Hr\r]Rr^uM}r_(jMKjNjOjPMjQXfor k, v in l:r`jSh C
 "(rarbRrcuM}rd(jMKjNjOjPMjQX$ l1 = [x[0] for x in l if x[0] != k]rejSh C
 "0arfrgRrhuM}ri(jMKjNjOjPMjQX print l1rjjSh C
 "2lrkrlRrmuM}rn(jMKjNjOjPMjQX.l = [(u'\u897f\u5b89\u533a', u'220403')]
>>> ;rojSh C
 #rprqRrruM}rs(jMKjNjOjPMjQX,l = [(u'\u897f\u5b89\u533a', u'220403')]
>>>rtjSh C
 #,]rurvRrwuM}rx(jMKjNjOjPMjQX(l = [(u'\u897f\u5b89\u533a', u'220403')]ryjSh C
 #rzr{Rr|uM}r}(jMKjNjOjPMjQXfor k, v in l:r~jSh C
 #' GPrrRruM}r(jMKjNjOjPMjQX$ l1 = [x[0] for x in l if x[0] != k]rjSh C
 #1tUrrRruM}r(jMKjNjOjPMjQX print l1rjSh C
 #3srrRruu.}q.
]q(X external_idqXcommandqXtsqe.K.}q(K}q(X external_idqXshellqX__id__qKXcommandqXlsqX __version__qKXtsqcdatetime
datetime
q C
 Q4q
q Rq uK}q (hhhKhX print $WDqhKhh C
 qqRquu.}q.
{
"noteStoreUrl": "https://www.evernote.com/shard/s72/notestore",
"token": "S=s72:U=7a0f47:E=15869ff614b:C=151124e34f0:P=1cd:A=en-devtoken:V=2:H=fa4a598806d542747cf0fab2b7c6e7c8"
}
// These settings override both User and Default settings for the LaTeX syntax
{
"line_padding_top": 1,
"line_padding_bottom": 1,
}
{
"zotero": true,
"zotero_user_id": "1851155",
"zotero_user_key": "Gswp6EvJQAhiAlguUQgTr9Gk",
"zotero_cite_key_pattern": "{Author}{Year}{Title}",
}
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AlignTab",
"AppleScript Extensions",
"AutoFileName",
"Boxy Theme",
"BracketHighlighter",
"Colorsublime",
"DashDoc",
"EncodingHelper",
"FuzzyFilePath",
"GBK Support",
"Git",
"Hermes",
"HTMLBeautify",
"JSON Reindent",
"Julia",
"LaTeXing",
"Monokai Extended",
"Package Control",
"Pretty JSON",
"rainbow_csv",
"SublimeLinter",
"SublimeLinter-contrib-lintr",
"SublimeREPL",
"Sync Settings",
"Terminal",
"Theme - Spacegray",
"TOML",
"WordCount"
]
}
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme",
"draw_white_space": "all",
"font_size": 28,
"ignored_packages":
[
],
"open_files_in_new_window": true,
"show_definitions": true,
"show_encoding": true,
"show_full_path": true,
"theme": "Adaptive.sublime-theme",
"update_check": false,
"word_wrap": true
}
{
"rainbow_csv_max_file_size_bytes": 1000000
}
{
"globals": {
"active_guide": "#6f6f6b",
"background": "#272822",
"bracket_contents_options": "underline",
"caret": "#f8f8f2",
"find_highlight": "#ffe792",
"find_highlight_foreground": "#000000",
"foreground": "#f8f8f2",
"invisibles": "#75715e",
"line_highlight": "#ffffff10",
"misspelling": "#ff0000",
"selection": "#ffffff16",
"selection_border": "#ffffff16",
"tags_options": "stippled_underline"
},
"rules": [
{
"foreground": "#E6194B",
"name": "rainbow csv rainbow1",
"scope": "rainbow1"
},
{
"foreground": "#3CB44B",
"name": "rainbow csv rainbow2",
"scope": "keyword.rainbow2"
},
{
"foreground": "#FFE119",
"name": "rainbow csv rainbow3",
"scope": "entity.name.rainbow3"
},
{
"foreground": "#0082C8",
"name": "rainbow csv rainbow4",
"scope": "comment.rainbow4"
},
{
"foreground": "#FABEBE",
"name": "rainbow csv rainbow5",
"scope": "string.rainbow5"
},
{
"foreground": "#46F0F0",
"name": "rainbow csv rainbow6",
"scope": "entity.name.tag.rainbow6"
},
{
"foreground": "#F032E6",
"name": "rainbow csv rainbow7",
"scope": "storage.type.rainbow7"
},
{
"foreground": "#008080",
"name": "rainbow csv rainbow8",
"scope": "support.rainbow8"
},
{
"foreground": "#F58231",
"name": "rainbow csv rainbow9",
"scope": "constant.language.rainbow9"
},
{
"foreground": "#FFFFFF",
"name": "rainbow csv rainbow10",
"scope": "variable.language.rainbow10"
}
]
}
/Users/han/Codes/Jen Pan/predictEvent/predicte_on_target_dataset/keyword/keyword_tagged_Han_labels.csv_normal.txt , quoted
/Users/han/Codes/CASM_replication_codes_AWS/calculate_precision_recall/secondstage_c2_text_image_precision_recall_use_weight=True.csv , quoted
/Users/han/Data/protestevent/metadata/prov_code.txt TAB simple
/Users/han/Codes/CASM_replication_codes_AWS/clean/daily_c1_input_and_c1_output_secondround_need_to_process_2.txt TAB simple
/Users/han/Codes/Jen Pan/historyWeiboCrawler/high_frequency_word.txt TAB simple
/Users/han/Codes/Jen Pan/potential_protest/supporting/output/grievance_id_skipped_accounts_with_more_than_10000_posts.txt TAB simple
/Users/han/Codes/Jen Pan/keyword_generation/high_frequency_word.txt TAB simple
/Users/han/Dropbox/Writings/ProtestMethods/replication_codes/output_codes/county_code_dedup_valuecounts.txt , quoted
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/python scripts/membership-cluster-2.txt , quoted
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img clustering/vgg-4096 Agglomerative 2000 2.txt TAB simple
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img clustering/Xception Agglomerative 2000 2.txt TAB simple
/Users/han/Dropbox/Writings/ProtestMethods/replication_codes/output_codes/county_code_dedup_valuecounts_na_removed.txt , quoted
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img clustering/resnet50 KMeans 2742 10.txt TAB simple
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img clustering/resnet50 KMeans 2742 20.txt TAB simple
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img-filename-one-per-single-user-withusername.txt , quoted
/Users/han/Dropbox/Collaborations/with_Yilang_Peng/YP protest/img topic model/doc-topics-combine.txt TAB simple
/Users/han/Data/aws_weibo/distributed/weibo_accounts_usable_firstdistributed.txt , quoted
/Users/han/Data/aws_weibo/distributed/weibo_accounts_usable.txt , quoted
/Users/han/Data/download-weibo-keyword-search/weibo_accounts_2019-06-05.txt , quoted
/Users/han/Data/download-weibo-keyword-search/foo.txt TAB simple
/Users/han/Dropbox/AJPS/replication/code/build/all_newly_downloaded_HK.tsv TAB simple
/Users/han/Codes/Attitudes/profile.txt TAB simple
/Users/han/Data/download-weibo/download_historical_posts_managers/.csv TAB simple
/Users/han/Codes/protest_grievances/parse-scripts/no_gov_usernames.txt , quoted
/Users/han/Codes/Crawl-Dingyou/dingyou/allurls.txt TAB simple
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"lintr": {
"@disable": false,
"args": [],
"cache": "TRUE",
"excludes": [],
"linters": "default_linters"
}
},
"mark_style": "fill",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"coffeescript (gulpfile)": "coffeescript",
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"javascript (eslint)": "javascript",
"javascript (gruntfile)": "javascript",
"javascript (gulpfile)": "javascript",
"javascript (postcss)": "javascript",
"javascript (puglint)": "javascript",
"javascript (stylelint)": "javascript",
"javascript (webpack)": "javascript",
"json (babel)": "json",
"json (bower)": "json",
"json (composer)": "json",
"json (eslint)": "json",
"json (npm)": "json",
"json (postcss)": "json",
"json (puglint)": "json",
"json (settings)": "json",
"json (stylelint)": "json",
"json (sublime)": "json",
"json (tern js)": "json",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python",
"xml (config)": "xml",
"xml (svg)": "xml",
"yaml (circleci)": "yaml",
"yaml (docker)": "yaml",
"yaml (eslint)": "yaml",
"yaml (lock)": "yaml",
"yaml (procfile)": "yaml",
"yaml (stylelint)": "yaml",
"yaml (yarn)": "yaml"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>1337</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#191919</string>
<key>caret</key>
<string>#F8F8F0</string>
<key>foreground</key>
<string>#F8F8F2</string>
<key>invisibles</key>
<string>#3B3A32</string>
<key>lineHighlight</key>
<string>#3D3D3D55</string>
<key>selection</key>
<string>#515151</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comment</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#6d6d6d</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#fbe3bf</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number</string>
<key>scope</key>
<string>constant.numeric</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#fdb082</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Built-in constant</string>
<key>scope</key>
<string>constant.language</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff8942</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>User-defined constant</string>
<key>scope</key>
<string>constant.character, constant.other</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#fdb082</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#e9fdac</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff5e5e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#ff5e5e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage type</string>
<key>scope</key>
<string>storage.type</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#fbdfb5</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Class name</string>
<key>scope</key>
<string>entity.name.class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
<key>foreground</key>
<string>#8cdaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Inherited class</string>
<key>scope</key>
<string>entity.other.inherited-class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic underline</string>
<key>foreground</key>
<string>#8cdaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function name</string>
<key>scope</key>
<string>entity.name.function</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#8cdaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function argument</string>
<key>scope</key>
<string>variable.parameter</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#fc9354</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#ff5e5e</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag attribute</string>
<key>scope</key>
<string>entity.other.attribute-name</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#97d8ea</string>